blob: 5755c621934687eb19ee85835549be447dfc73cd [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 Julliardc6326f02003-05-08 22:13:36 +00003# Generated by GNU Autoconf 2.57 for Wine 20030508.
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 Julliardc6326f02003-05-08 22:13:36 +0000269PACKAGE_VERSION='20030508'
270PACKAGE_STRING='Wine 20030508'
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000271PACKAGE_BUGREPORT=''
272
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000273ac_unique_file="server/atom.c"
274# Factoring default headers for most tests.
275ac_includes_default="\
276#include <stdio.h>
277#if HAVE_SYS_TYPES_H
278# include <sys/types.h>
279#endif
280#if HAVE_SYS_STAT_H
281# include <sys/stat.h>
282#endif
283#if STDC_HEADERS
284# include <stdlib.h>
285# include <stddef.h>
286#else
287# if HAVE_STDLIB_H
288# include <stdlib.h>
289# endif
290#endif
291#if HAVE_STRING_H
292# if !STDC_HEADERS && HAVE_MEMORY_H
293# include <memory.h>
294# endif
295# include <string.h>
296#endif
297#if HAVE_STRINGS_H
298# include <strings.h>
299#endif
300#if HAVE_INTTYPES_H
301# include <inttypes.h>
302#else
303# if HAVE_STDINT_H
304# include <stdint.h>
305# endif
306#endif
307#if HAVE_UNISTD_H
308# include <unistd.h>
309#endif"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000310
Alexandre Julliard21ee3292003-04-21 22:52:31 +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 WIN16_FILES WIN16_INSTALL LIBPTHREAD 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 EXTRACFLAGS DLLEXT DLLFLAGS DLLIBS LDDLLFLAGS LDSHARED LIBEXT IMPLIBEXT DLLTOOL ac_ct_DLLTOOL DLLWRAP ac_ct_DLLWRAP LDEXECFLAGS CROSSTEST CROSSCC CROSSWINDRES LDPATH CRTLIBS LDD ALLOCA LIBOBJS LTLIBOBJS'
Alexandre Julliard117436e2003-05-01 00:39:29 +0000312ac_subst_files='MAKE_RULES MAKE_DLL_RULES MAKE_TEST_RULES MAKE_LIB_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 Julliardc6326f02003-05-08 22:13:36 +0000780\`configure' configures Wine 20030508 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 Julliardc6326f02003-05-08 22:13:36 +0000845 short | recursive ) echo "Configuration of Wine 20030508:";;
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 Julliard6a9cea92003-04-03 02:54:54 +0000861 --with-nptl use glibc NPTL threading support
Alexandre Julliardfc01b722002-05-12 03:16:39 +0000862 --with-wine-tools=<dir> use Wine tools from directory <dir>
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000863 --with-x use the X Window System
864
865Some influential environment variables:
866 CC C compiler command
867 CFLAGS C compiler flags
868 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
869 nonstandard directory <lib dir>
870 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
871 headers in a nonstandard directory <include dir>
872 CPP C preprocessor
873
874Use these variables to override the choices made by `configure' or to help
875it to find libraries and programs with nonstandard names/locations.
876
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000877_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000878fi
879
880if test "$ac_init_help" = "recursive"; then
881 # If there are subdirs, report their specific --help.
882 ac_popdir=`pwd`
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000883 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
884 test -d $ac_dir || continue
885 ac_builddir=.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000886
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000887if test "$ac_dir" != .; then
888 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
889 # A "../" for each directory in $ac_dir_suffix.
890 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
891else
892 ac_dir_suffix= ac_top_builddir=
893fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000894
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000895case $srcdir in
896 .) # No --srcdir option. We are building in place.
897 ac_srcdir=.
898 if test -z "$ac_top_builddir"; then
899 ac_top_srcdir=.
900 else
901 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
902 fi ;;
903 [\\/]* | ?:[\\/]* ) # Absolute path.
904 ac_srcdir=$srcdir$ac_dir_suffix;
905 ac_top_srcdir=$srcdir ;;
906 *) # Relative path.
907 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
908 ac_top_srcdir=$ac_top_builddir$srcdir ;;
909esac
910# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
911# absolute.
912ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
Alexandre Julliard11af04e2002-10-10 03:48:04 +0000913ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000914ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
915ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
916
917 cd $ac_dir
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000918 # Check for guested configure; otherwise get Cygnus style configure.
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000919 if test -f $ac_srcdir/configure.gnu; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000920 echo
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000921 $SHELL $ac_srcdir/configure.gnu --help=recursive
922 elif test -f $ac_srcdir/configure; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000923 echo
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000924 $SHELL $ac_srcdir/configure --help=recursive
925 elif test -f $ac_srcdir/configure.ac ||
926 test -f $ac_srcdir/configure.in; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000927 echo
928 $ac_configure --help
929 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000930 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000931 fi
932 cd $ac_popdir
933 done
934fi
935
936test -n "$ac_init_help" && exit 0
937if $ac_init_version; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000938 cat <<\_ACEOF
Alexandre Julliardc6326f02003-05-08 22:13:36 +0000939Wine configure 20030508
Alexandre Julliarde24bcc72002-12-24 00:35:19 +0000940generated by GNU Autoconf 2.57
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000941
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000942Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000943Free Software Foundation, Inc.
944This configure script is free software; the Free Software Foundation
945gives unlimited permission to copy, distribute and modify it.
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000946_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000947 exit 0
948fi
949exec 5>config.log
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000950cat >&5 <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000951This file contains any messages produced by compilers while
952running configure, to aid debugging if configure makes a mistake.
953
Alexandre Julliardc6326f02003-05-08 22:13:36 +0000954It was created by Wine $as_me 20030508, which was
Alexandre Julliarde24bcc72002-12-24 00:35:19 +0000955generated by GNU Autoconf 2.57. Invocation command line was
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000956
957 $ $0 $@
958
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000959_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000960{
961cat <<_ASUNAME
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000962## --------- ##
963## Platform. ##
964## --------- ##
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000965
966hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
967uname -m = `(uname -m) 2>/dev/null || echo unknown`
968uname -r = `(uname -r) 2>/dev/null || echo unknown`
969uname -s = `(uname -s) 2>/dev/null || echo unknown`
970uname -v = `(uname -v) 2>/dev/null || echo unknown`
971
972/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
973/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
974
975/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
976/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
977/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
978hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
979/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
980/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
981/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
982
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000983_ASUNAME
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000984
985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
986for as_dir in $PATH
987do
988 IFS=$as_save_IFS
989 test -z "$as_dir" && as_dir=.
990 echo "PATH: $as_dir"
991done
992
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000993} >&5
994
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000995cat >&5 <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000996
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000997
998## ----------- ##
999## Core tests. ##
1000## ----------- ##
1001
1002_ACEOF
1003
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001004
1005# Keep a trace of the command line.
1006# Strip out --no-create and --no-recursion so they do not pile up.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001007# Strip out --silent because we don't want to record it for future runs.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001008# Also quote any args containing shell meta-characters.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001009# Make two passes to allow for proper duplicate-argument suppression.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001010ac_configure_args=
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001011ac_configure_args0=
1012ac_configure_args1=
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001013ac_sep=
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001014ac_must_keep_next=false
1015for ac_pass in 1 2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001016do
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001017 for ac_arg
1018 do
1019 case $ac_arg in
1020 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1021 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1022 | -silent | --silent | --silen | --sile | --sil)
1023 continue ;;
1024 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1025 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1026 esac
1027 case $ac_pass in
1028 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1029 2)
1030 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1031 if test $ac_must_keep_next = true; then
1032 ac_must_keep_next=false # Got value, back to normal.
1033 else
1034 case $ac_arg in
1035 *=* | --config-cache | -C | -disable-* | --disable-* \
1036 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1037 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1038 | -with-* | --with-* | -without-* | --without-* | --x)
1039 case "$ac_configure_args0 " in
1040 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1041 esac
1042 ;;
1043 -* ) ac_must_keep_next=true ;;
1044 esac
1045 fi
1046 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1047 # Get rid of the leading space.
1048 ac_sep=" "
1049 ;;
1050 esac
1051 done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001052done
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001053$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1054$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 +00001055
1056# When interrupted or exit'd, cleanup temporary files, and complete
1057# config.log. We remove comments because anyway the quotes in there
1058# would cause problems or look ugly.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001059# WARNING: Be sure not to use single quotes in there, as some shells,
1060# such as our DU 5.0 friend, will then `close' the trap.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001061trap 'exit_status=$?
1062 # Save into config.log some information that might help in debugging.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001063 {
1064 echo
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001065
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001066 cat <<\_ASBOX
1067## ---------------- ##
1068## Cache variables. ##
1069## ---------------- ##
1070_ASBOX
1071 echo
1072 # The following way of writing the cache mishandles newlines in values,
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001073{
1074 (set) 2>&1 |
1075 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1076 *ac_space=\ *)
1077 sed -n \
1078 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1079 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1080 ;;
1081 *)
1082 sed -n \
1083 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1084 ;;
1085 esac;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001086}
1087 echo
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001088
1089 cat <<\_ASBOX
1090## ----------------- ##
1091## Output variables. ##
1092## ----------------- ##
1093_ASBOX
1094 echo
1095 for ac_var in $ac_subst_vars
1096 do
1097 eval ac_val=$`echo $ac_var`
1098 echo "$ac_var='"'"'$ac_val'"'"'"
1099 done | sort
1100 echo
1101
1102 if test -n "$ac_subst_files"; then
1103 cat <<\_ASBOX
1104## ------------- ##
1105## Output files. ##
1106## ------------- ##
1107_ASBOX
1108 echo
1109 for ac_var in $ac_subst_files
1110 do
1111 eval ac_val=$`echo $ac_var`
1112 echo "$ac_var='"'"'$ac_val'"'"'"
1113 done | sort
1114 echo
1115 fi
1116
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001117 if test -s confdefs.h; then
1118 cat <<\_ASBOX
1119## ----------- ##
1120## confdefs.h. ##
1121## ----------- ##
1122_ASBOX
1123 echo
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001124 sed "/^$/d" confdefs.h | sort
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001125 echo
1126 fi
1127 test "$ac_signal" != 0 &&
1128 echo "$as_me: caught signal $ac_signal"
1129 echo "$as_me: exit $exit_status"
1130 } >&5
1131 rm -f core core.* *.core &&
1132 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001133 exit $exit_status
1134 ' 0
1135for ac_signal in 1 2 13 15; do
1136 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1137done
1138ac_signal=0
1139
1140# confdefs.h avoids OS command line length limits that DEFS can exceed.
1141rm -rf conftest* confdefs.h
1142# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1143echo >confdefs.h
1144
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001145# Predefined preprocessor variables.
1146
1147cat >>confdefs.h <<_ACEOF
1148#define PACKAGE_NAME "$PACKAGE_NAME"
1149_ACEOF
1150
1151
1152cat >>confdefs.h <<_ACEOF
1153#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1154_ACEOF
1155
1156
1157cat >>confdefs.h <<_ACEOF
1158#define PACKAGE_VERSION "$PACKAGE_VERSION"
1159_ACEOF
1160
1161
1162cat >>confdefs.h <<_ACEOF
1163#define PACKAGE_STRING "$PACKAGE_STRING"
1164_ACEOF
1165
1166
1167cat >>confdefs.h <<_ACEOF
1168#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1169_ACEOF
1170
1171
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001172# Let the site file select an alternate cache file if it wants to.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001173# Prefer explicitly selected file to automatically selected ones.
1174if test -z "$CONFIG_SITE"; then
1175 if test "x$prefix" != xNONE; then
1176 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1177 else
1178 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1179 fi
1180fi
1181for ac_site_file in $CONFIG_SITE; do
1182 if test -r "$ac_site_file"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001183 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001184echo "$as_me: loading site script $ac_site_file" >&6;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001185 sed 's/^/| /' "$ac_site_file" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001186 . "$ac_site_file"
1187 fi
1188done
1189
1190if test -r "$cache_file"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001191 # Some versions of bash will fail to source /dev/null (special
1192 # files actually), so we avoid doing that.
1193 if test -f "$cache_file"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001194 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001195echo "$as_me: loading cache $cache_file" >&6;}
1196 case $cache_file in
1197 [\\/]* | ?:[\\/]* ) . $cache_file;;
1198 *) . ./$cache_file;;
1199 esac
1200 fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001201else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001202 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001203echo "$as_me: creating cache $cache_file" >&6;}
1204 >$cache_file
1205fi
1206
1207# Check that the precious variables saved in the cache have kept the same
1208# value.
1209ac_cache_corrupted=false
1210for ac_var in `(set) 2>&1 |
1211 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1212 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1213 eval ac_new_set=\$ac_env_${ac_var}_set
1214 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1215 eval ac_new_val="\$ac_env_${ac_var}_value"
1216 case $ac_old_set,$ac_new_set in
1217 set,)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001218 { 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 +00001219echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1220 ac_cache_corrupted=: ;;
1221 ,set)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001222 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001223echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1224 ac_cache_corrupted=: ;;
1225 ,);;
1226 *)
1227 if test "x$ac_old_val" != "x$ac_new_val"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001228 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001229echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001230 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001231echo "$as_me: former value: $ac_old_val" >&2;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001232 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001233echo "$as_me: current value: $ac_new_val" >&2;}
1234 ac_cache_corrupted=:
1235 fi;;
1236 esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001237 # Pass precious variables to config.status.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001238 if test "$ac_new_set" = set; then
1239 case $ac_new_val in
1240 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001241 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1242 *) ac_arg=$ac_var=$ac_new_val ;;
1243 esac
1244 case " $ac_configure_args " in
1245 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1246 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001247 esac
1248 fi
1249done
1250if $ac_cache_corrupted; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001251 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001252echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001253 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001254echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1255 { (exit 1); exit 1; }; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001256fi
1257
1258ac_ext=c
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001259ac_cpp='$CPP $CPPFLAGS'
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001260ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1261ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1262ac_compiler_gnu=$ac_cv_c_compiler_gnu
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001263
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001289
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001290
1291 ac_config_headers="$ac_config_headers include/config.h"
Alexandre Julliard18f92e71996-07-17 20:02:21 +00001292
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001293ac_aux_dir=
1294for ac_dir in tools $srcdir/tools; do
1295 if test -f $ac_dir/install-sh; then
1296 ac_aux_dir=$ac_dir
1297 ac_install_sh="$ac_aux_dir/install-sh -c"
1298 break
1299 elif test -f $ac_dir/install.sh; then
1300 ac_aux_dir=$ac_dir
1301 ac_install_sh="$ac_aux_dir/install.sh -c"
1302 break
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001303 elif test -f $ac_dir/shtool; then
1304 ac_aux_dir=$ac_dir
1305 ac_install_sh="$ac_aux_dir/shtool install -c"
1306 break
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001307 fi
1308done
1309if test -z "$ac_aux_dir"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001310 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001311echo "$as_me: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&2;}
1312 { (exit 1); exit 1; }; }
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001313fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001314ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1315ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1316ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
Howard Abrams13277481999-07-10 13:16:29 +00001317
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001318
1319
Alexandre Julliardc728efc2002-10-02 02:34:09 +00001320# Check whether --enable-win16 or --disable-win16 was given.
1321if test "${enable_win16+set}" = set; then
1322 enableval="$enable_win16"
1323
1324fi;
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001325# Check whether --enable-debug or --disable-debug was given.
1326if test "${enable_debug+set}" = set; then
1327 enableval="$enable_debug"
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001328
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001329fi;
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001330# Check whether --enable-trace or --disable-trace was given.
1331if test "${enable_trace+set}" = set; then
1332 enableval="$enable_trace"
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001333
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001334fi;
Alexandre Julliardb8074992002-11-21 21:51:24 +00001335
1336
1337# Check whether --with-opengl or --without-opengl was given.
1338if test "${with_opengl+set}" = set; then
1339 withval="$with_opengl"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001340
1341fi;
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001342
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00001343# Check whether --with-curses or --without-curses was given.
1344if test "${with_curses+set}" = set; then
1345 withval="$with_curses"
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00001346
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001347fi;
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00001348
Alexandre Julliard6a9cea92003-04-03 02:54:54 +00001349# Check whether --with-nptl or --without-nptl was given.
1350if test "${with_nptl+set}" = set; then
1351 withval="$with_nptl"
1352
1353fi;
1354
Alexandre Julliardfc01b722002-05-12 03:16:39 +00001355# Check whether --with-wine-tools or --without-wine-tools was given.
1356if test "${with_wine_tools+set}" = set; then
1357 withval="$with_wine_tools"
1358
1359fi;
1360
Alexandre Julliardc728efc2002-10-02 02:34:09 +00001361WIN16_FILES="\$(WIN16_FILES)"
1362
1363WIN16_INSTALL="\$(WIN16_INSTALL)"
1364
1365if test "x$enable_win16" = "xno"
1366then
1367 WIN16_FILES=""
1368 WIN16_INSTALL=""
1369fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001370if test "x$enable_debug" = "xno"
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001371then
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00001372
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001373cat >>confdefs.h <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001374#define NO_DEBUG_MSGS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001375_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001376
1377fi
1378if test "x$enable_trace" = "xno" -o "x$enable_debug" = "xno"
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00001379then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001380
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001381cat >>confdefs.h <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001382#define NO_TRACE_MSGS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001383_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001384
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001385fi
Alexandre Julliard6a9cea92003-04-03 02:54:54 +00001386if test "x$with_nptl" = "xyes"
1387then
1388
1389cat >>confdefs.h <<\_ACEOF
1390#define HAVE_NPTL 1
1391_ACEOF
1392
1393 LIBPTHREAD="-lpthread"
1394
1395fi
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001396
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001397
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001398# Make sure we can run config.sub.
1399$ac_config_sub sun4 >/dev/null 2>&1 ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001400 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001401echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1402 { (exit 1); exit 1; }; }
Alexandre Julliarda0b2b1d1997-11-16 17:38:29 +00001403
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001404echo "$as_me:$LINENO: checking build system type" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001405echo $ECHO_N "checking build system type... $ECHO_C" >&6
1406if test "${ac_cv_build+set}" = set; then
1407 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001408else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001409 ac_cv_build_alias=$build_alias
1410test -z "$ac_cv_build_alias" &&
1411 ac_cv_build_alias=`$ac_config_guess`
1412test -z "$ac_cv_build_alias" &&
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001413 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001414echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1415 { (exit 1); exit 1; }; }
1416ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001417 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1418echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001419 { (exit 1); exit 1; }; }
1420
1421fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001422echo "$as_me:$LINENO: result: $ac_cv_build" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001423echo "${ECHO_T}$ac_cv_build" >&6
1424build=$ac_cv_build
1425build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1426build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1427build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1428
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001429
1430echo "$as_me:$LINENO: checking host system type" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001431echo $ECHO_N "checking host system type... $ECHO_C" >&6
1432if test "${ac_cv_host+set}" = set; then
1433 echo $ECHO_N "(cached) $ECHO_C" >&6
1434else
1435 ac_cv_host_alias=$host_alias
1436test -z "$ac_cv_host_alias" &&
1437 ac_cv_host_alias=$ac_cv_build_alias
1438ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001439 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001440echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1441 { (exit 1); exit 1; }; }
1442
1443fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001444echo "$as_me:$LINENO: result: $ac_cv_host" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001445echo "${ECHO_T}$ac_cv_host" >&6
1446host=$ac_cv_host
1447host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1448host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1449host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1450
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001451
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001452echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1453echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001454set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1455if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1456 echo $ECHO_N "(cached) $ECHO_C" >&6
1457else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001458 cat >conftest.make <<\_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001459all:
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001460 @echo 'ac_maketemp="$(MAKE)"'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001461_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001462# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001463eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001464if test -n "$ac_maketemp"; then
1465 eval ac_cv_prog_make_${ac_make}_set=yes
1466else
1467 eval ac_cv_prog_make_${ac_make}_set=no
1468fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001469rm -f conftest.make
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001470fi
1471if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001472 echo "$as_me:$LINENO: result: yes" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001473echo "${ECHO_T}yes" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001474 SET_MAKE=
1475else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001476 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001477echo "${ECHO_T}no" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001478 SET_MAKE="MAKE=${MAKE-make}"
1479fi
1480
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001481ac_ext=c
1482ac_cpp='$CPP $CPPFLAGS'
1483ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1484ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1485ac_compiler_gnu=$ac_cv_c_compiler_gnu
1486if test -n "$ac_tool_prefix"; then
1487 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1488set dummy ${ac_tool_prefix}gcc; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001489echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001490echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1491if test "${ac_cv_prog_CC+set}" = set; then
1492 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001493else
1494 if test -n "$CC"; then
1495 ac_cv_prog_CC="$CC" # Let the user override the test.
1496else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1498for as_dir in $PATH
1499do
1500 IFS=$as_save_IFS
1501 test -z "$as_dir" && as_dir=.
1502 for ac_exec_ext in '' $ac_executable_extensions; do
1503 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1504 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1506 break 2
1507 fi
1508done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001509done
1510
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001511fi
1512fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001513CC=$ac_cv_prog_CC
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001514if test -n "$CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001515 echo "$as_me:$LINENO: result: $CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001516echo "${ECHO_T}$CC" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001517else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001518 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001519echo "${ECHO_T}no" >&6
1520fi
1521
1522fi
1523if test -z "$ac_cv_prog_CC"; then
1524 ac_ct_CC=$CC
1525 # Extract the first word of "gcc", so it can be a program name with args.
1526set dummy gcc; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001527echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001528echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1529if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1530 echo $ECHO_N "(cached) $ECHO_C" >&6
1531else
1532 if test -n "$ac_ct_CC"; then
1533 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1534else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1536for as_dir in $PATH
1537do
1538 IFS=$as_save_IFS
1539 test -z "$as_dir" && as_dir=.
1540 for ac_exec_ext in '' $ac_executable_extensions; do
1541 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1542 ac_cv_prog_ac_ct_CC="gcc"
1543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1544 break 2
1545 fi
1546done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001547done
1548
1549fi
1550fi
1551ac_ct_CC=$ac_cv_prog_ac_ct_CC
1552if test -n "$ac_ct_CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001553 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001554echo "${ECHO_T}$ac_ct_CC" >&6
1555else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001556 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001557echo "${ECHO_T}no" >&6
1558fi
1559
1560 CC=$ac_ct_CC
1561else
1562 CC="$ac_cv_prog_CC"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001563fi
1564
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001565if test -z "$CC"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001566 if test -n "$ac_tool_prefix"; then
1567 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1568set dummy ${ac_tool_prefix}cc; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001569echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001570echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1571if test "${ac_cv_prog_CC+set}" = set; then
1572 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001573else
1574 if test -n "$CC"; then
1575 ac_cv_prog_CC="$CC" # Let the user override the test.
1576else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1578for as_dir in $PATH
1579do
1580 IFS=$as_save_IFS
1581 test -z "$as_dir" && as_dir=.
1582 for ac_exec_ext in '' $ac_executable_extensions; do
1583 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1584 ac_cv_prog_CC="${ac_tool_prefix}cc"
1585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1586 break 2
1587 fi
1588done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001589done
1590
1591fi
1592fi
1593CC=$ac_cv_prog_CC
1594if test -n "$CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001595 echo "$as_me:$LINENO: result: $CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001596echo "${ECHO_T}$CC" >&6
1597else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001598 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001599echo "${ECHO_T}no" >&6
1600fi
1601
1602fi
1603if test -z "$ac_cv_prog_CC"; then
1604 ac_ct_CC=$CC
1605 # Extract the first word of "cc", so it can be a program name with args.
1606set dummy cc; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001607echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001608echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1609if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1610 echo $ECHO_N "(cached) $ECHO_C" >&6
1611else
1612 if test -n "$ac_ct_CC"; then
1613 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1614else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1616for as_dir in $PATH
1617do
1618 IFS=$as_save_IFS
1619 test -z "$as_dir" && as_dir=.
1620 for ac_exec_ext in '' $ac_executable_extensions; do
1621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1622 ac_cv_prog_ac_ct_CC="cc"
1623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1624 break 2
1625 fi
1626done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001627done
1628
1629fi
1630fi
1631ac_ct_CC=$ac_cv_prog_ac_ct_CC
1632if test -n "$ac_ct_CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001633 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001634echo "${ECHO_T}$ac_ct_CC" >&6
1635else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001636 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001637echo "${ECHO_T}no" >&6
1638fi
1639
1640 CC=$ac_ct_CC
1641else
1642 CC="$ac_cv_prog_CC"
1643fi
1644
1645fi
1646if test -z "$CC"; then
1647 # Extract the first word of "cc", so it can be a program name with args.
1648set dummy cc; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001649echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001650echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1651if test "${ac_cv_prog_CC+set}" = set; then
1652 echo $ECHO_N "(cached) $ECHO_C" >&6
1653else
1654 if test -n "$CC"; then
1655 ac_cv_prog_CC="$CC" # Let the user override the test.
1656else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001657 ac_prog_rejected=no
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1659for as_dir in $PATH
1660do
1661 IFS=$as_save_IFS
1662 test -z "$as_dir" && as_dir=.
1663 for ac_exec_ext in '' $ac_executable_extensions; do
1664 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1665 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1666 ac_prog_rejected=yes
1667 continue
1668 fi
1669 ac_cv_prog_CC="cc"
1670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1671 break 2
1672 fi
1673done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001674done
1675
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001676if test $ac_prog_rejected = yes; then
1677 # We found a bogon in the path, so make sure we never use it.
1678 set dummy $ac_cv_prog_CC
1679 shift
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001680 if test $# != 0; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001681 # We chose a different compiler from the bogus one.
1682 # However, it has the same basename, so the bogon will be chosen
1683 # first if we set CC to just the basename; use the full file name.
1684 shift
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001685 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001686 fi
1687fi
1688fi
1689fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001690CC=$ac_cv_prog_CC
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001691if test -n "$CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001692 echo "$as_me:$LINENO: result: $CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001693echo "${ECHO_T}$CC" >&6
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001694else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001695 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001696echo "${ECHO_T}no" >&6
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001697fi
1698
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001699fi
1700if test -z "$CC"; then
1701 if test -n "$ac_tool_prefix"; then
1702 for ac_prog in cl
1703 do
1704 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1705set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001706echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001707echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1708if test "${ac_cv_prog_CC+set}" = set; then
1709 echo $ECHO_N "(cached) $ECHO_C" >&6
Eric Pouech18ad24a2000-01-16 22:16:33 +00001710else
1711 if test -n "$CC"; then
1712 ac_cv_prog_CC="$CC" # Let the user override the test.
1713else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1715for as_dir in $PATH
1716do
1717 IFS=$as_save_IFS
1718 test -z "$as_dir" && as_dir=.
1719 for ac_exec_ext in '' $ac_executable_extensions; do
1720 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1721 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1723 break 2
1724 fi
1725done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001726done
1727
Eric Pouech18ad24a2000-01-16 22:16:33 +00001728fi
1729fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001730CC=$ac_cv_prog_CC
Eric Pouech18ad24a2000-01-16 22:16:33 +00001731if test -n "$CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001732 echo "$as_me:$LINENO: result: $CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001733echo "${ECHO_T}$CC" >&6
Eric Pouech18ad24a2000-01-16 22:16:33 +00001734else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001735 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001736echo "${ECHO_T}no" >&6
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001737fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001738
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001739 test -n "$CC" && break
1740 done
1741fi
1742if test -z "$CC"; then
1743 ac_ct_CC=$CC
1744 for ac_prog in cl
1745do
1746 # Extract the first word of "$ac_prog", so it can be a program name with args.
1747set dummy $ac_prog; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001748echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001749echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1750if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1751 echo $ECHO_N "(cached) $ECHO_C" >&6
1752else
1753 if test -n "$ac_ct_CC"; then
1754 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1755else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1757for as_dir in $PATH
1758do
1759 IFS=$as_save_IFS
1760 test -z "$as_dir" && as_dir=.
1761 for ac_exec_ext in '' $ac_executable_extensions; do
1762 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1763 ac_cv_prog_ac_ct_CC="$ac_prog"
1764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1765 break 2
1766 fi
1767done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001768done
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001769
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001770fi
1771fi
1772ac_ct_CC=$ac_cv_prog_ac_ct_CC
1773if test -n "$ac_ct_CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001774 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001775echo "${ECHO_T}$ac_ct_CC" >&6
1776else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001777 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001778echo "${ECHO_T}no" >&6
1779fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001780
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001781 test -n "$ac_ct_CC" && break
1782done
Eric Pouech18ad24a2000-01-16 22:16:33 +00001783
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001784 CC=$ac_ct_CC
1785fi
1786
1787fi
1788
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001789
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001790test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1791See \`config.log' for more details." >&5
1792echo "$as_me: error: no acceptable C compiler found in \$PATH
1793See \`config.log' for more details." >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001794 { (exit 1); exit 1; }; }
1795
1796# Provide some information about the compiler.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001797echo "$as_me:$LINENO:" \
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001798 "checking for C compiler version" >&5
1799ac_compiler=`set X $ac_compile; echo $2`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001800{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001801 (eval $ac_compiler --version </dev/null >&5) 2>&5
1802 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001804 (exit $ac_status); }
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001805{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001806 (eval $ac_compiler -v </dev/null >&5) 2>&5
1807 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001809 (exit $ac_status); }
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001810{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001811 (eval $ac_compiler -V </dev/null >&5) 2>&5
1812 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001814 (exit $ac_status); }
1815
1816cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001817#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001818/* confdefs.h. */
1819_ACEOF
1820cat confdefs.h >>conftest.$ac_ext
1821cat >>conftest.$ac_ext <<_ACEOF
1822/* end confdefs.h. */
Eric Pouech18ad24a2000-01-16 22:16:33 +00001823
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001824int
1825main ()
1826{
1827
1828 ;
1829 return 0;
1830}
1831_ACEOF
1832ac_clean_files_save=$ac_clean_files
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001833ac_clean_files="$ac_clean_files a.out a.exe b.out"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001834# Try to create an executable without -o first, disregard a.out.
1835# It will help us diagnose broken compilers, and finding out an intuition
1836# of exeext.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001837echo "$as_me:$LINENO: checking for C compiler default output" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001838echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1839ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001840if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001841 (eval $ac_link_default) 2>&5
1842 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001844 (exit $ac_status); }; then
1845 # Find the output, starting from the most likely. This scheme is
1846# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1847# resort.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001848
1849# Be careful to initialize this variable, since it used to be cached.
1850# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1851ac_cv_exeext=
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001852# b.out is created by i960 compilers.
1853for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1854do
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001855 test -f "$ac_file" || continue
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001856 case $ac_file in
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001857 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1858 ;;
1859 conftest.$ac_ext )
1860 # This is the source file.
1861 ;;
1862 [ab].out )
1863 # We found the default executable, but exeext='' is most
1864 # certainly right.
1865 break;;
1866 *.* )
1867 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1868 # FIXME: I believe we export ac_cv_exeext for Libtool,
1869 # but it would be cool to find out if it's true. Does anybody
1870 # maintain Libtool? --akim.
1871 export ac_cv_exeext
1872 break;;
1873 * )
1874 break;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001875 esac
1876done
1877else
1878 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001879sed 's/^/| /' conftest.$ac_ext >&5
1880
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001881{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001882See \`config.log' for more details." >&5
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001883echo "$as_me: error: C compiler cannot create executables
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001884See \`config.log' for more details." >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001885 { (exit 77); exit 77; }; }
1886fi
1887
1888ac_exeext=$ac_cv_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001889echo "$as_me:$LINENO: result: $ac_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001890echo "${ECHO_T}$ac_file" >&6
1891
1892# Check the compiler produces executables we can run. If not, either
1893# the compiler is broken, or we cross compile.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001894echo "$as_me:$LINENO: checking whether the C compiler works" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001895echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1896# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1897# If not cross compiling, check that we can run a simple program.
1898if test "$cross_compiling" != yes; then
1899 if { ac_try='./$ac_file'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001901 (eval $ac_try) 2>&5
1902 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001904 (exit $ac_status); }; }; then
1905 cross_compiling=no
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00001906 else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001907 if test "$cross_compiling" = maybe; then
1908 cross_compiling=yes
1909 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001910 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001911If you meant to cross compile, use \`--host'.
1912See \`config.log' for more details." >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001913echo "$as_me: error: cannot run C compiled programs.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001914If you meant to cross compile, use \`--host'.
1915See \`config.log' for more details." >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001916 { (exit 1); exit 1; }; }
1917 fi
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00001918 fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001919fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001920echo "$as_me:$LINENO: result: yes" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001921echo "${ECHO_T}yes" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001922
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001923rm -f a.out a.exe conftest$ac_cv_exeext b.out
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001924ac_clean_files=$ac_clean_files_save
1925# Check the compiler produces executables we can run. If not, either
1926# the compiler is broken, or we cross compile.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001927echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001928echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001929echo "$as_me:$LINENO: result: $cross_compiling" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001930echo "${ECHO_T}$cross_compiling" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001931
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001932echo "$as_me:$LINENO: checking for suffix of executables" >&5
1933echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1934if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001935 (eval $ac_link) 2>&5
1936 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001938 (exit $ac_status); }; then
1939 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1940# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1941# work properly (i.e., refer to `conftest.exe'), while it won't with
1942# `rm'.
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001943for ac_file in conftest.exe conftest conftest.*; do
1944 test -f "$ac_file" || continue
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001945 case $ac_file in
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001946 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001947 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1948 export ac_cv_exeext
1949 break;;
1950 * ) break;;
1951 esac
1952done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001953else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001954 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1955See \`config.log' for more details." >&5
1956echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1957See \`config.log' for more details." >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001958 { (exit 1); exit 1; }; }
1959fi
1960
1961rm -f conftest$ac_cv_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001962echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001963echo "${ECHO_T}$ac_cv_exeext" >&6
1964
1965rm -f conftest.$ac_ext
1966EXEEXT=$ac_cv_exeext
1967ac_exeext=$EXEEXT
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001968echo "$as_me:$LINENO: checking for suffix of object files" >&5
1969echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001970if test "${ac_cv_objext+set}" = set; then
1971 echo $ECHO_N "(cached) $ECHO_C" >&6
1972else
1973 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001974#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001975/* confdefs.h. */
1976_ACEOF
1977cat confdefs.h >>conftest.$ac_ext
1978cat >>conftest.$ac_ext <<_ACEOF
1979/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001980
1981int
1982main ()
1983{
1984
1985 ;
1986 return 0;
1987}
1988_ACEOF
1989rm -f conftest.o conftest.obj
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001990if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001991 (eval $ac_compile) 2>&5
1992 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001994 (exit $ac_status); }; then
1995 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1996 case $ac_file in
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001997 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001998 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1999 break;;
2000 esac
2001done
2002else
2003 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002004sed 's/^/| /' conftest.$ac_ext >&5
2005
2006{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2007See \`config.log' for more details." >&5
2008echo "$as_me: error: cannot compute suffix of object files: cannot compile
2009See \`config.log' for more details." >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002010 { (exit 1); exit 1; }; }
2011fi
2012
2013rm -f conftest.$ac_cv_objext conftest.$ac_ext
2014fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002015echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002016echo "${ECHO_T}$ac_cv_objext" >&6
2017OBJEXT=$ac_cv_objext
2018ac_objext=$OBJEXT
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002019echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002020echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2021if test "${ac_cv_c_compiler_gnu+set}" = set; then
2022 echo $ECHO_N "(cached) $ECHO_C" >&6
2023else
2024 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002025#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002026/* confdefs.h. */
2027_ACEOF
2028cat confdefs.h >>conftest.$ac_ext
2029cat >>conftest.$ac_ext <<_ACEOF
2030/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002031
2032int
2033main ()
2034{
2035#ifndef __GNUC__
2036 choke me
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002037#endif
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002038
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002039 ;
2040 return 0;
2041}
2042_ACEOF
2043rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002044if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002045 (eval $ac_compile) 2>&5
2046 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002048 (exit $ac_status); } &&
2049 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002051 (eval $ac_try) 2>&5
2052 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002054 (exit $ac_status); }; }; then
2055 ac_compiler_gnu=yes
Eric Pouech18ad24a2000-01-16 22:16:33 +00002056else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002057 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002058sed 's/^/| /' conftest.$ac_ext >&5
2059
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002060ac_compiler_gnu=no
Eric Pouech18ad24a2000-01-16 22:16:33 +00002061fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002062rm -f conftest.$ac_objext conftest.$ac_ext
2063ac_cv_c_compiler_gnu=$ac_compiler_gnu
Eric Pouech18ad24a2000-01-16 22:16:33 +00002064
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002065fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002066echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002067echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2068GCC=`test $ac_compiler_gnu = yes && echo yes`
2069ac_test_CFLAGS=${CFLAGS+set}
2070ac_save_CFLAGS=$CFLAGS
2071CFLAGS="-g"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002072echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002073echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2074if test "${ac_cv_prog_cc_g+set}" = set; then
2075 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002076else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002077 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002078#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002079/* confdefs.h. */
2080_ACEOF
2081cat confdefs.h >>conftest.$ac_ext
2082cat >>conftest.$ac_ext <<_ACEOF
2083/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002084
2085int
2086main ()
2087{
2088
2089 ;
2090 return 0;
2091}
2092_ACEOF
2093rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002094if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002095 (eval $ac_compile) 2>&5
2096 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002098 (exit $ac_status); } &&
2099 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002101 (eval $ac_try) 2>&5
2102 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002104 (exit $ac_status); }; }; then
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00002105 ac_cv_prog_cc_g=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002106else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002107 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002108sed 's/^/| /' conftest.$ac_ext >&5
2109
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002110ac_cv_prog_cc_g=no
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002111fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002112rm -f conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002113fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002114echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002115echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
Eric Pouech18ad24a2000-01-16 22:16:33 +00002116if test "$ac_test_CFLAGS" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002117 CFLAGS=$ac_save_CFLAGS
Eric Pouech18ad24a2000-01-16 22:16:33 +00002118elif test $ac_cv_prog_cc_g = yes; then
2119 if test "$GCC" = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002120 CFLAGS="-g -O2"
2121 else
Eric Pouech18ad24a2000-01-16 22:16:33 +00002122 CFLAGS="-g"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002123 fi
2124else
Eric Pouech18ad24a2000-01-16 22:16:33 +00002125 if test "$GCC" = yes; then
2126 CFLAGS="-O2"
2127 else
2128 CFLAGS=
2129 fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002130fi
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002131echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2132echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2133if test "${ac_cv_prog_cc_stdc+set}" = set; then
2134 echo $ECHO_N "(cached) $ECHO_C" >&6
2135else
2136 ac_cv_prog_cc_stdc=no
2137ac_save_CC=$CC
2138cat >conftest.$ac_ext <<_ACEOF
2139#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002140/* confdefs.h. */
2141_ACEOF
2142cat confdefs.h >>conftest.$ac_ext
2143cat >>conftest.$ac_ext <<_ACEOF
2144/* end confdefs.h. */
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002145#include <stdarg.h>
2146#include <stdio.h>
2147#include <sys/types.h>
2148#include <sys/stat.h>
2149/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2150struct buf { int x; };
2151FILE * (*rcsopen) (struct buf *, struct stat *, int);
2152static char *e (p, i)
2153 char **p;
2154 int i;
2155{
2156 return p[i];
2157}
2158static char *f (char * (*g) (char **, int), char **p, ...)
2159{
2160 char *s;
2161 va_list v;
2162 va_start (v,p);
2163 s = g (p, va_arg (v,int));
2164 va_end (v);
2165 return s;
2166}
2167int test (int i, double x);
2168struct s1 {int (*f) (int a);};
2169struct s2 {int (*f) (double a);};
2170int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2171int argc;
2172char **argv;
2173int
2174main ()
2175{
2176return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2177 ;
2178 return 0;
2179}
2180_ACEOF
2181# Don't try gcc -ansi; that turns off useful extensions and
2182# breaks some systems' header files.
2183# AIX -qlanglvl=ansi
2184# Ultrix and OSF/1 -std1
2185# HP-UX 10.20 and later -Ae
2186# HP-UX older versions -Aa -D_HPUX_SOURCE
2187# SVR4 -Xc -D__EXTENSIONS__
2188for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2189do
2190 CC="$ac_save_CC $ac_arg"
2191 rm -f conftest.$ac_objext
2192if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2193 (eval $ac_compile) 2>&5
2194 ac_status=$?
2195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2196 (exit $ac_status); } &&
2197 { ac_try='test -s conftest.$ac_objext'
2198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2199 (eval $ac_try) 2>&5
2200 ac_status=$?
2201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2202 (exit $ac_status); }; }; then
2203 ac_cv_prog_cc_stdc=$ac_arg
2204break
2205else
2206 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002207sed 's/^/| /' conftest.$ac_ext >&5
2208
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002209fi
2210rm -f conftest.$ac_objext
2211done
2212rm -f conftest.$ac_ext conftest.$ac_objext
2213CC=$ac_save_CC
2214
2215fi
2216
2217case "x$ac_cv_prog_cc_stdc" in
2218 x|xno)
2219 echo "$as_me:$LINENO: result: none needed" >&5
2220echo "${ECHO_T}none needed" >&6 ;;
2221 *)
2222 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2223echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2224 CC="$CC $ac_cv_prog_cc_stdc" ;;
2225esac
2226
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002227# Some people use a C++ compiler to compile C. Since we use `exit',
2228# in C++ we need to declare it. In case someone uses the same compiler
2229# for both compiling C and C++ we need to have the C++ compiler decide
2230# the declaration of exit, since it's the most demanding environment.
2231cat >conftest.$ac_ext <<_ACEOF
2232#ifndef __cplusplus
2233 choke me
2234#endif
2235_ACEOF
2236rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002238 (eval $ac_compile) 2>&5
2239 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002241 (exit $ac_status); } &&
2242 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002244 (eval $ac_try) 2>&5
2245 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002247 (exit $ac_status); }; }; then
2248 for ac_declaration in \
2249 ''\
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002250 'extern "C" void std::exit (int) throw (); using std::exit;' \
2251 'extern "C" void std::exit (int); using std::exit;' \
2252 'extern "C" void exit (int) throw ();' \
2253 'extern "C" void exit (int);' \
Juan Lang38fa5ad2003-05-13 03:32:20 +00002254 'void exit (int);' \
2255 '#include <stdlib.h>'
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002256do
2257 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002258#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002259/* confdefs.h. */
2260_ACEOF
2261cat confdefs.h >>conftest.$ac_ext
2262cat >>conftest.$ac_ext <<_ACEOF
2263/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002264#include <stdlib.h>
2265$ac_declaration
2266int
2267main ()
2268{
2269exit (42);
2270 ;
2271 return 0;
2272}
2273_ACEOF
2274rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002275if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002276 (eval $ac_compile) 2>&5
2277 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002279 (exit $ac_status); } &&
2280 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002282 (eval $ac_try) 2>&5
2283 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002285 (exit $ac_status); }; }; then
2286 :
2287else
2288 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002289sed 's/^/| /' conftest.$ac_ext >&5
2290
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002291continue
2292fi
2293rm -f conftest.$ac_objext conftest.$ac_ext
2294 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002295#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002296/* confdefs.h. */
2297_ACEOF
2298cat confdefs.h >>conftest.$ac_ext
2299cat >>conftest.$ac_ext <<_ACEOF
2300/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002301$ac_declaration
2302int
2303main ()
2304{
2305exit (42);
2306 ;
2307 return 0;
2308}
2309_ACEOF
2310rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002311if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002312 (eval $ac_compile) 2>&5
2313 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002315 (exit $ac_status); } &&
2316 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002318 (eval $ac_try) 2>&5
2319 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002321 (exit $ac_status); }; }; then
2322 break
2323else
2324 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002325sed 's/^/| /' conftest.$ac_ext >&5
2326
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002327fi
2328rm -f conftest.$ac_objext conftest.$ac_ext
2329done
2330rm -f conftest*
2331if test -n "$ac_declaration"; then
2332 echo '#ifdef __cplusplus' >>confdefs.h
2333 echo $ac_declaration >>confdefs.h
2334 echo '#endif' >>confdefs.h
2335fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002336
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002337else
2338 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002339sed 's/^/| /' conftest.$ac_ext >&5
2340
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002341fi
2342rm -f conftest.$ac_objext conftest.$ac_ext
2343ac_ext=c
2344ac_cpp='$CPP $CPPFLAGS'
2345ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2346ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2347ac_compiler_gnu=$ac_cv_c_compiler_gnu
2348
2349ac_ext=c
2350ac_cpp='$CPP $CPPFLAGS'
2351ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2352ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2353ac_compiler_gnu=$ac_cv_c_compiler_gnu
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002354echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002355echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002356# On Suns, sometimes $CPP names a directory.
2357if test -n "$CPP" && test -d "$CPP"; then
2358 CPP=
2359fi
2360if test -z "$CPP"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002361 if test "${ac_cv_prog_CPP+set}" = set; then
2362 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002363else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002364 # Double quotes because CPP needs to be expanded
2365 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2366 do
2367 ac_preproc_ok=false
2368for ac_c_preproc_warn_flag in '' yes
2369do
2370 # Use a header file that comes with gcc, so configuring glibc
2371 # with a fresh cross-compiler works.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002372 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2373 # <limits.h> exists even on freestanding compilers.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002374 # On the NeXT, cc -E runs the code through the compiler's parser,
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002375 # not just through cpp. "Syntax error" is here to catch this case.
2376 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002377#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002378/* confdefs.h. */
2379_ACEOF
2380cat confdefs.h >>conftest.$ac_ext
2381cat >>conftest.$ac_ext <<_ACEOF
2382/* end confdefs.h. */
2383#ifdef __STDC__
2384# include <limits.h>
2385#else
2386# include <assert.h>
2387#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002388 Syntax error
2389_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002390if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002391 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2392 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002393 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002394 rm -f conftest.er1
2395 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002397 (exit $ac_status); } >/dev/null; then
2398 if test -s conftest.err; then
2399 ac_cpp_err=$ac_c_preproc_warn_flag
2400 else
2401 ac_cpp_err=
2402 fi
2403else
2404 ac_cpp_err=yes
2405fi
2406if test -z "$ac_cpp_err"; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002407 :
2408else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002409 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002410sed 's/^/| /' conftest.$ac_ext >&5
2411
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002412 # Broken: fails on valid input.
2413continue
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002414fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002415rm -f conftest.err conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002416
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002417 # OK, works on sane cases. Now check whether non-existent headers
2418 # can be detected and how.
2419 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002420#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002421/* confdefs.h. */
2422_ACEOF
2423cat confdefs.h >>conftest.$ac_ext
2424cat >>conftest.$ac_ext <<_ACEOF
2425/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002426#include <ac_nonexistent.h>
2427_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002428if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002429 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2430 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002431 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002432 rm -f conftest.er1
2433 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002435 (exit $ac_status); } >/dev/null; then
2436 if test -s conftest.err; then
2437 ac_cpp_err=$ac_c_preproc_warn_flag
2438 else
2439 ac_cpp_err=
2440 fi
2441else
2442 ac_cpp_err=yes
2443fi
2444if test -z "$ac_cpp_err"; then
2445 # Broken: success on invalid input.
2446continue
2447else
2448 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002449sed 's/^/| /' conftest.$ac_ext >&5
2450
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002451 # Passes both tests.
2452ac_preproc_ok=:
2453break
2454fi
2455rm -f conftest.err conftest.$ac_ext
2456
2457done
2458# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2459rm -f conftest.err conftest.$ac_ext
2460if $ac_preproc_ok; then
2461 break
2462fi
2463
2464 done
2465 ac_cv_prog_CPP=$CPP
2466
2467fi
2468 CPP=$ac_cv_prog_CPP
2469else
2470 ac_cv_prog_CPP=$CPP
2471fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002472echo "$as_me:$LINENO: result: $CPP" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002473echo "${ECHO_T}$CPP" >&6
2474ac_preproc_ok=false
2475for ac_c_preproc_warn_flag in '' yes
2476do
2477 # Use a header file that comes with gcc, so configuring glibc
2478 # with a fresh cross-compiler works.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002479 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2480 # <limits.h> exists even on freestanding compilers.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002481 # On the NeXT, cc -E runs the code through the compiler's parser,
2482 # not just through cpp. "Syntax error" is here to catch this case.
2483 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002484#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002485/* confdefs.h. */
2486_ACEOF
2487cat confdefs.h >>conftest.$ac_ext
2488cat >>conftest.$ac_ext <<_ACEOF
2489/* end confdefs.h. */
2490#ifdef __STDC__
2491# include <limits.h>
2492#else
2493# include <assert.h>
2494#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002495 Syntax error
2496_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002497if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002498 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2499 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002500 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002501 rm -f conftest.er1
2502 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002504 (exit $ac_status); } >/dev/null; then
2505 if test -s conftest.err; then
2506 ac_cpp_err=$ac_c_preproc_warn_flag
2507 else
2508 ac_cpp_err=
2509 fi
2510else
2511 ac_cpp_err=yes
2512fi
2513if test -z "$ac_cpp_err"; then
2514 :
2515else
2516 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002517sed 's/^/| /' conftest.$ac_ext >&5
2518
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002519 # Broken: fails on valid input.
2520continue
2521fi
2522rm -f conftest.err conftest.$ac_ext
2523
2524 # OK, works on sane cases. Now check whether non-existent headers
2525 # can be detected and how.
2526 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002527#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002528/* confdefs.h. */
2529_ACEOF
2530cat confdefs.h >>conftest.$ac_ext
2531cat >>conftest.$ac_ext <<_ACEOF
2532/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002533#include <ac_nonexistent.h>
2534_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002535if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002536 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2537 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002538 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002539 rm -f conftest.er1
2540 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002542 (exit $ac_status); } >/dev/null; then
2543 if test -s conftest.err; then
2544 ac_cpp_err=$ac_c_preproc_warn_flag
2545 else
2546 ac_cpp_err=
2547 fi
2548else
2549 ac_cpp_err=yes
2550fi
2551if test -z "$ac_cpp_err"; then
2552 # Broken: success on invalid input.
2553continue
2554else
2555 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002556sed 's/^/| /' conftest.$ac_ext >&5
2557
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002558 # Passes both tests.
2559ac_preproc_ok=:
2560break
2561fi
2562rm -f conftest.err conftest.$ac_ext
2563
2564done
2565# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2566rm -f conftest.err conftest.$ac_ext
2567if $ac_preproc_ok; then
2568 :
2569else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002570 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2571See \`config.log' for more details." >&5
2572echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2573See \`config.log' for more details." >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002574 { (exit 1); exit 1; }; }
2575fi
2576
2577ac_ext=c
2578ac_cpp='$CPP $CPPFLAGS'
2579ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2580ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2581ac_compiler_gnu=$ac_cv_c_compiler_gnu
2582
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002583
Alexandre Julliardfc01b722002-05-12 03:16:39 +00002584echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
2585echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6
2586if test "${wine_cv_toolsdir+set}" = set; then
2587 echo $ECHO_N "(cached) $ECHO_C" >&6
2588else
2589 if test -z "$with_wine_tools"; then
2590 if test "$cross_compiling" = "yes"; then
2591 { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
2592echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
2593 { (exit 1); exit 1; }; }
2594 else
2595 wine_cv_toolsdir="\$(TOPOBJDIR)"
2596 fi
2597 elif test -d "$with_wine_tools/tools/winebuild"; then
2598 case $with_wine_tools in
2599 /*) wine_cv_toolsdir="$with_wine_tools" ;;
2600 *) wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
2601 esac
2602 else
2603 { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
2604echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
2605 { (exit 1); exit 1; }; }
2606 fi
2607fi
2608echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
2609echo "${ECHO_T}$wine_cv_toolsdir" >&6
2610TOOLSDIR=$wine_cv_toolsdir
2611
2612
2613
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002614
2615echo "$as_me:$LINENO: checking for X" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002616echo $ECHO_N "checking for X... $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002617
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002618
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002619# Check whether --with-x or --without-x was given.
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002620if test "${with_x+set}" = set; then
2621 withval="$with_x"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002622
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002623fi;
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002624# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002625if test "x$with_x" = xno; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002626 # The user explicitly disabled X.
2627 have_x=disabled
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002628else
2629 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002630 # Both variables are already set.
2631 have_x=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002632 else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002633 if test "${ac_cv_have_x+set}" = set; then
2634 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002635else
2636 # One or both of the vars are not set, and there is no cached value.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002637ac_x_includes=no ac_x_libraries=no
2638rm -fr conftest.dir
2639if mkdir conftest.dir; then
2640 cd conftest.dir
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002641 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002642 cat >Imakefile <<'_ACEOF'
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002643acfindx:
2644 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002645_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002646 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002647 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002648 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002649 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2650 for ac_extension in a so sl; do
2651 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002652 test -f $ac_im_libdir/libX11.$ac_extension; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002653 ac_im_usrlibdir=$ac_im_libdir; break
2654 fi
2655 done
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002656 # Screen out bogus values from the imake configuration. They are
2657 # bogus both because they are the default anyway, and because
2658 # using them would break gcc on systems where it needs fixed includes.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002659 case $ac_im_incroot in
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002660 /usr/include) ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002661 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002662 esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002663 case $ac_im_usrlibdir in
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002664 /usr/lib | /lib) ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002665 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002666 esac
2667 fi
2668 cd ..
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002669 rm -fr conftest.dir
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002670fi
2671
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002672# Standard set of common directories for X headers.
2673# Check X11 before X11Rn because it is often a symlink to the current release.
2674ac_x_header_dirs='
2675/usr/X11/include
2676/usr/X11R6/include
2677/usr/X11R5/include
2678/usr/X11R4/include
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002679
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002680/usr/include/X11
2681/usr/include/X11R6
2682/usr/include/X11R5
2683/usr/include/X11R4
2684
2685/usr/local/X11/include
2686/usr/local/X11R6/include
2687/usr/local/X11R5/include
2688/usr/local/X11R4/include
2689
2690/usr/local/include/X11
2691/usr/local/include/X11R6
2692/usr/local/include/X11R5
2693/usr/local/include/X11R4
2694
2695/usr/X386/include
2696/usr/x386/include
2697/usr/XFree86/include/X11
2698
2699/usr/include
2700/usr/local/include
2701/usr/unsupported/include
2702/usr/athena/include
2703/usr/local/x11r5/include
2704/usr/lpp/Xamples/include
2705
2706/usr/openwin/include
2707/usr/openwin/share/include'
2708
2709if test "$ac_x_includes" = no; then
2710 # Guess where to find include files, by looking for Intrinsic.h.
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002711 # First, try using that file with no special directory specified.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002712 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002713#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002714/* confdefs.h. */
2715_ACEOF
2716cat confdefs.h >>conftest.$ac_ext
2717cat >>conftest.$ac_ext <<_ACEOF
2718/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002719#include <X11/Intrinsic.h>
2720_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002721if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002722 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2723 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002724 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002725 rm -f conftest.er1
2726 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002728 (exit $ac_status); } >/dev/null; then
2729 if test -s conftest.err; then
2730 ac_cpp_err=$ac_c_preproc_warn_flag
2731 else
2732 ac_cpp_err=
2733 fi
2734else
2735 ac_cpp_err=yes
2736fi
2737if test -z "$ac_cpp_err"; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002738 # We can compile using X headers with no special include directory.
2739ac_x_includes=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002740else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002741 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002742sed 's/^/| /' conftest.$ac_ext >&5
2743
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002744 for ac_dir in $ac_x_header_dirs; do
2745 if test -r "$ac_dir/X11/Intrinsic.h"; then
2746 ac_x_includes=$ac_dir
2747 break
2748 fi
2749done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002750fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002751rm -f conftest.err conftest.$ac_ext
2752fi # $ac_x_includes = no
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002753
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002754if test "$ac_x_libraries" = no; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002755 # Check for the libraries.
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002756 # See if we find them without any special options.
2757 # Don't add to $LIBS permanently.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002758 ac_save_LIBS=$LIBS
2759 LIBS="-lXt $LIBS"
2760 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002761#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002762/* confdefs.h. */
2763_ACEOF
2764cat confdefs.h >>conftest.$ac_ext
2765cat >>conftest.$ac_ext <<_ACEOF
2766/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002767#include <X11/Intrinsic.h>
2768int
2769main ()
2770{
2771XtMalloc (0)
2772 ;
2773 return 0;
2774}
2775_ACEOF
2776rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002777if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002778 (eval $ac_link) 2>&5
2779 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002781 (exit $ac_status); } &&
2782 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002784 (eval $ac_try) 2>&5
2785 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002787 (exit $ac_status); }; }; then
2788 LIBS=$ac_save_LIBS
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002789# We can link X programs with no special library path.
2790ac_x_libraries=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002791else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002792 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002793sed 's/^/| /' conftest.$ac_ext >&5
2794
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002795LIBS=$ac_save_LIBS
2796for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002797do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002798 # Don't even attempt the hair of trying to link an X program!
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002799 for ac_extension in a so sl; do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002800 if test -r $ac_dir/libXt.$ac_extension; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002801 ac_x_libraries=$ac_dir
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002802 break 2
2803 fi
2804 done
2805done
2806fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002807rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2808fi # $ac_x_libraries = no
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002809
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002810if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002811 # Didn't find X anywhere. Cache the known absence of X.
2812 ac_cv_have_x="have_x=no"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002813else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002814 # Record where we found X for the cache.
2815 ac_cv_have_x="have_x=yes \
2816 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002817fi
2818fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002819
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002820 fi
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002821 eval "$ac_cv_have_x"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002822fi # $with_x != no
2823
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002824if test "$have_x" != yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002825 echo "$as_me:$LINENO: result: $have_x" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002826echo "${ECHO_T}$have_x" >&6
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002827 no_x=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002828else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002829 # If each of the values was on the command line, it overrides each guess.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002830 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2831 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002832 # Update the cache value to reflect the command line values.
2833 ac_cv_have_x="have_x=yes \
2834 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002835 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002836echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002837fi
2838
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002839if test "$no_x" = yes; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002840 # Not all programs may use this symbol, but it does not hurt to define it.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002841
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002842cat >>confdefs.h <<\_ACEOF
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002843#define X_DISPLAY_MISSING 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002844_ACEOF
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002845
2846 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002847else
2848 if test -n "$x_includes"; then
2849 X_CFLAGS="$X_CFLAGS -I$x_includes"
2850 fi
2851
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002852 # It would also be nice to do this for all -L options, not just this one.
2853 if test -n "$x_libraries"; then
2854 X_LIBS="$X_LIBS -L$x_libraries"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002855 # For Solaris; some versions of Sun CC require a space after -R and
2856 # others require no space. Words are not sufficient . . . .
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002857 case `(uname -sr) 2>/dev/null` in
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002858 "SunOS 5"*)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002859 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002860echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
2861 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
2862 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002863#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002864/* confdefs.h. */
2865_ACEOF
2866cat confdefs.h >>conftest.$ac_ext
2867cat >>conftest.$ac_ext <<_ACEOF
2868/* end confdefs.h. */
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002869
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002870int
2871main ()
2872{
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002873
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002874 ;
2875 return 0;
2876}
2877_ACEOF
2878rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002880 (eval $ac_link) 2>&5
2881 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002883 (exit $ac_status); } &&
2884 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002886 (eval $ac_try) 2>&5
2887 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002889 (exit $ac_status); }; }; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002890 ac_R_nospace=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002891else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002892 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002893sed 's/^/| /' conftest.$ac_ext >&5
2894
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002895ac_R_nospace=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002896fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002897rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002898 if test $ac_R_nospace = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002899 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002900echo "${ECHO_T}no" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002901 X_LIBS="$X_LIBS -R$x_libraries"
2902 else
2903 LIBS="$ac_xsave_LIBS -R $x_libraries"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002904 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002905#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002906/* confdefs.h. */
2907_ACEOF
2908cat confdefs.h >>conftest.$ac_ext
2909cat >>conftest.$ac_ext <<_ACEOF
2910/* end confdefs.h. */
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002911
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002912int
2913main ()
2914{
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002915
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002916 ;
2917 return 0;
2918}
2919_ACEOF
2920rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002921if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002922 (eval $ac_link) 2>&5
2923 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002925 (exit $ac_status); } &&
2926 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002928 (eval $ac_try) 2>&5
2929 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002931 (exit $ac_status); }; }; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002932 ac_R_space=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002933else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002934 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002935sed 's/^/| /' conftest.$ac_ext >&5
2936
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002937ac_R_space=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002938fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002939rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002940 if test $ac_R_space = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002941 echo "$as_me:$LINENO: result: yes" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002942echo "${ECHO_T}yes" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002943 X_LIBS="$X_LIBS -R $x_libraries"
2944 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002945 echo "$as_me:$LINENO: result: neither works" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002946echo "${ECHO_T}neither works" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002947 fi
2948 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002949 LIBS=$ac_xsave_LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002950 esac
2951 fi
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002952
2953 # Check for system-dependent libraries X programs must link with.
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002954 # Do this before checking for the system-independent R6 libraries
2955 # (-lICE), since we may need -lsocket or whatever for X linking.
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002956
2957 if test "$ISC" = yes; then
2958 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
2959 else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002960 # Martyn Johnson says this is needed for Ultrix, if the X
2961 # libraries were built with DECnet support. And Karl Berry says
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002962 # the Alpha needs dnet_stub (dnet does not exist).
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002963 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
2964 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002965#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002966/* confdefs.h. */
2967_ACEOF
2968cat confdefs.h >>conftest.$ac_ext
2969cat >>conftest.$ac_ext <<_ACEOF
2970/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002971
Alexandre Julliard59730ae1996-03-24 16:20:51 +00002972/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002973#ifdef __cplusplus
2974extern "C"
2975#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00002976/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002977 builtin and then its argument prototype would still apply. */
2978char XOpenDisplay ();
2979int
2980main ()
2981{
2982XOpenDisplay ();
2983 ;
2984 return 0;
2985}
2986_ACEOF
2987rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002988if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002989 (eval $ac_link) 2>&5
2990 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002992 (exit $ac_status); } &&
2993 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002995 (eval $ac_try) 2>&5
2996 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002998 (exit $ac_status); }; }; then
2999 :
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003000else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003001 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003002sed 's/^/| /' conftest.$ac_ext >&5
3003
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003004echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003005echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
3006if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
3007 echo $ECHO_N "(cached) $ECHO_C" >&6
3008else
3009 ac_check_lib_save_LIBS=$LIBS
3010LIBS="-ldnet $LIBS"
3011cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003012#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003013/* confdefs.h. */
3014_ACEOF
3015cat confdefs.h >>conftest.$ac_ext
3016cat >>conftest.$ac_ext <<_ACEOF
3017/* end confdefs.h. */
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003018
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003019/* Override any gcc2 internal prototype to avoid an error. */
3020#ifdef __cplusplus
3021extern "C"
3022#endif
3023/* We use char because int might match the return type of a gcc2
3024 builtin and then its argument prototype would still apply. */
3025char dnet_ntoa ();
3026int
3027main ()
3028{
3029dnet_ntoa ();
3030 ;
3031 return 0;
3032}
3033_ACEOF
3034rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003035if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003036 (eval $ac_link) 2>&5
3037 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003039 (exit $ac_status); } &&
3040 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003042 (eval $ac_try) 2>&5
3043 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003045 (exit $ac_status); }; }; then
3046 ac_cv_lib_dnet_dnet_ntoa=yes
3047else
3048 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003049sed 's/^/| /' conftest.$ac_ext >&5
3050
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003051ac_cv_lib_dnet_dnet_ntoa=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003052fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003053rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3054LIBS=$ac_check_lib_save_LIBS
3055fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003056echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003057echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3058if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003059 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003060fi
3061
Alexandre Julliard59730ae1996-03-24 16:20:51 +00003062 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003063 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003064echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3065if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3066 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003067else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003068 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003069LIBS="-ldnet_stub $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003070cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003071#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003072/* confdefs.h. */
3073_ACEOF
3074cat confdefs.h >>conftest.$ac_ext
3075cat >>conftest.$ac_ext <<_ACEOF
3076/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003077
Alexandre Julliard59730ae1996-03-24 16:20:51 +00003078/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003079#ifdef __cplusplus
3080extern "C"
3081#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003082/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003083 builtin and then its argument prototype would still apply. */
3084char dnet_ntoa ();
3085int
3086main ()
3087{
3088dnet_ntoa ();
3089 ;
3090 return 0;
3091}
3092_ACEOF
3093rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003094if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003095 (eval $ac_link) 2>&5
3096 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003098 (exit $ac_status); } &&
3099 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003101 (eval $ac_try) 2>&5
3102 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003104 (exit $ac_status); }; }; then
3105 ac_cv_lib_dnet_stub_dnet_ntoa=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003106else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003107 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003108sed 's/^/| /' conftest.$ac_ext >&5
3109
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003110ac_cv_lib_dnet_stub_dnet_ntoa=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003111fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003112rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3113LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003114fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003115echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003116echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3117if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003118 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003119fi
3120
3121 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003122fi
3123rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3124 LIBS="$ac_xsave_LIBS"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003125
3126 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3127 # to get the SysV transport functions.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003128 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003129 # needs -lnsl.
3130 # The nsl library prevents programs from opening the X display
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003131 # on Irix 5.2, according to T.E. Dickey.
3132 # The functions gethostbyname, getservbyname, and inet_addr are
3133 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003134 echo "$as_me:$LINENO: checking for gethostbyname" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003135echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3136if test "${ac_cv_func_gethostbyname+set}" = set; then
3137 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003138else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003139 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003140#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003141/* confdefs.h. */
3142_ACEOF
3143cat confdefs.h >>conftest.$ac_ext
3144cat >>conftest.$ac_ext <<_ACEOF
3145/* end confdefs.h. */
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003146/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003147 which can conflict with char gethostbyname (); below.
3148 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3149 <limits.h> exists even on freestanding compilers. */
3150#ifdef __STDC__
3151# include <limits.h>
3152#else
3153# include <assert.h>
3154#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003155/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003156#ifdef __cplusplus
3157extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003158{
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003159#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003160/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003161 builtin and then its argument prototype would still apply. */
3162char gethostbyname ();
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003163/* The GNU C library defines this for functions which it implements
3164 to always fail with ENOSYS. Some functions are actually named
3165 something starting with __ and the normal name is an alias. */
3166#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3167choke me
3168#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003169char (*f) () = gethostbyname;
3170#endif
3171#ifdef __cplusplus
3172}
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003173#endif
3174
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003175int
3176main ()
3177{
3178return f != gethostbyname;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003179 ;
3180 return 0;
3181}
3182_ACEOF
3183rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003184if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003185 (eval $ac_link) 2>&5
3186 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003188 (exit $ac_status); } &&
3189 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003191 (eval $ac_try) 2>&5
3192 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003194 (exit $ac_status); }; }; then
3195 ac_cv_func_gethostbyname=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003196else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003197 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003198sed 's/^/| /' conftest.$ac_ext >&5
3199
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003200ac_cv_func_gethostbyname=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003201fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003202rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003203fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003204echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003205echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003206
3207 if test $ac_cv_func_gethostbyname = no; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003208 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003209echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3210if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3211 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003212else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003213 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003214LIBS="-lnsl $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003215cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003216#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003217/* confdefs.h. */
3218_ACEOF
3219cat confdefs.h >>conftest.$ac_ext
3220cat >>conftest.$ac_ext <<_ACEOF
3221/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003222
Alexandre Julliard59730ae1996-03-24 16:20:51 +00003223/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003224#ifdef __cplusplus
3225extern "C"
3226#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003227/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003228 builtin and then its argument prototype would still apply. */
3229char gethostbyname ();
3230int
3231main ()
3232{
3233gethostbyname ();
3234 ;
3235 return 0;
3236}
3237_ACEOF
3238rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003239if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003240 (eval $ac_link) 2>&5
3241 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003243 (exit $ac_status); } &&
3244 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003246 (eval $ac_try) 2>&5
3247 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003249 (exit $ac_status); }; }; then
3250 ac_cv_lib_nsl_gethostbyname=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003251else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003252 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003253sed 's/^/| /' conftest.$ac_ext >&5
3254
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003255ac_cv_lib_nsl_gethostbyname=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003256fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003257rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3258LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003259fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003260echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003261echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3262if test $ac_cv_lib_nsl_gethostbyname = yes; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003263 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003264fi
3265
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003266 if test $ac_cv_lib_nsl_gethostbyname = no; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003267 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003268echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3269if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3270 echo $ECHO_N "(cached) $ECHO_C" >&6
3271else
3272 ac_check_lib_save_LIBS=$LIBS
3273LIBS="-lbsd $LIBS"
3274cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003275#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003276/* confdefs.h. */
3277_ACEOF
3278cat confdefs.h >>conftest.$ac_ext
3279cat >>conftest.$ac_ext <<_ACEOF
3280/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003281
3282/* Override any gcc2 internal prototype to avoid an error. */
3283#ifdef __cplusplus
3284extern "C"
3285#endif
3286/* We use char because int might match the return type of a gcc2
3287 builtin and then its argument prototype would still apply. */
3288char gethostbyname ();
3289int
3290main ()
3291{
3292gethostbyname ();
3293 ;
3294 return 0;
3295}
3296_ACEOF
3297rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003298if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003299 (eval $ac_link) 2>&5
3300 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003302 (exit $ac_status); } &&
3303 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003305 (eval $ac_try) 2>&5
3306 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003308 (exit $ac_status); }; }; then
3309 ac_cv_lib_bsd_gethostbyname=yes
3310else
3311 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003312sed 's/^/| /' conftest.$ac_ext >&5
3313
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003314ac_cv_lib_bsd_gethostbyname=no
3315fi
3316rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3317LIBS=$ac_check_lib_save_LIBS
3318fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003319echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003320echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3321if test $ac_cv_lib_bsd_gethostbyname = yes; then
3322 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3323fi
3324
3325 fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003326 fi
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003327
3328 # lieder@skyler.mavd.honeywell.com says without -lsocket,
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003329 # socket/setsockopt and other routines are undefined under SCO ODT
3330 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003331 # on later versions), says Simon Leinen: it contains gethostby*
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003332 # variants that don't use the name server (or something). -lsocket
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003333 # must be given before -lnsl if both are needed. We assume that
3334 # if connect needs -lnsl, so does gethostbyname.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003335 echo "$as_me:$LINENO: checking for connect" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003336echo $ECHO_N "checking for connect... $ECHO_C" >&6
3337if test "${ac_cv_func_connect+set}" = set; then
3338 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003339else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003340 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003341#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003342/* confdefs.h. */
3343_ACEOF
3344cat confdefs.h >>conftest.$ac_ext
3345cat >>conftest.$ac_ext <<_ACEOF
3346/* end confdefs.h. */
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003347/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003348 which can conflict with char connect (); below.
3349 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3350 <limits.h> exists even on freestanding compilers. */
3351#ifdef __STDC__
3352# include <limits.h>
3353#else
3354# include <assert.h>
3355#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003356/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003357#ifdef __cplusplus
3358extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003359{
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003360#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003361/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003362 builtin and then its argument prototype would still apply. */
3363char connect ();
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003364/* The GNU C library defines this for functions which it implements
3365 to always fail with ENOSYS. Some functions are actually named
3366 something starting with __ and the normal name is an alias. */
3367#if defined (__stub_connect) || defined (__stub___connect)
3368choke me
3369#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003370char (*f) () = connect;
3371#endif
3372#ifdef __cplusplus
3373}
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003374#endif
3375
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003376int
3377main ()
3378{
3379return f != connect;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003380 ;
3381 return 0;
3382}
3383_ACEOF
3384rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003385if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003386 (eval $ac_link) 2>&5
3387 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003389 (exit $ac_status); } &&
3390 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003392 (eval $ac_try) 2>&5
3393 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003395 (exit $ac_status); }; }; then
3396 ac_cv_func_connect=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003397else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003398 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003399sed 's/^/| /' conftest.$ac_ext >&5
3400
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003401ac_cv_func_connect=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003402fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003403rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003404fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003405echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003406echo "${ECHO_T}$ac_cv_func_connect" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003407
3408 if test $ac_cv_func_connect = no; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003409 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003410echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
3411if test "${ac_cv_lib_socket_connect+set}" = set; then
3412 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003413else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003414 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003415LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003416cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003417#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003418/* confdefs.h. */
3419_ACEOF
3420cat confdefs.h >>conftest.$ac_ext
3421cat >>conftest.$ac_ext <<_ACEOF
3422/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003423
Alexandre Julliard59730ae1996-03-24 16:20:51 +00003424/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003425#ifdef __cplusplus
3426extern "C"
3427#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003428/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003429 builtin and then its argument prototype would still apply. */
3430char connect ();
3431int
3432main ()
3433{
3434connect ();
3435 ;
3436 return 0;
3437}
3438_ACEOF
3439rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003440if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003441 (eval $ac_link) 2>&5
3442 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003444 (exit $ac_status); } &&
3445 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003447 (eval $ac_try) 2>&5
3448 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003450 (exit $ac_status); }; }; then
3451 ac_cv_lib_socket_connect=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003452else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003453 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003454sed 's/^/| /' conftest.$ac_ext >&5
3455
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003456ac_cv_lib_socket_connect=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003457fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003458rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3459LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003460fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003461echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003462echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
3463if test $ac_cv_lib_socket_connect = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003464 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003465fi
3466
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003467 fi
3468
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003469 # Guillermo Gomez says -lposix is necessary on A/UX.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003470 echo "$as_me:$LINENO: checking for remove" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003471echo $ECHO_N "checking for remove... $ECHO_C" >&6
3472if test "${ac_cv_func_remove+set}" = set; then
3473 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003474else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003475 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003476#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003477/* confdefs.h. */
3478_ACEOF
3479cat confdefs.h >>conftest.$ac_ext
3480cat >>conftest.$ac_ext <<_ACEOF
3481/* end confdefs.h. */
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003482/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003483 which can conflict with char remove (); below.
3484 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3485 <limits.h> exists even on freestanding compilers. */
3486#ifdef __STDC__
3487# include <limits.h>
3488#else
3489# include <assert.h>
3490#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003491/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003492#ifdef __cplusplus
3493extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003494{
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003495#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003496/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003497 builtin and then its argument prototype would still apply. */
3498char remove ();
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003499/* The GNU C library defines this for functions which it implements
3500 to always fail with ENOSYS. Some functions are actually named
3501 something starting with __ and the normal name is an alias. */
3502#if defined (__stub_remove) || defined (__stub___remove)
3503choke me
3504#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003505char (*f) () = remove;
3506#endif
3507#ifdef __cplusplus
3508}
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003509#endif
3510
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003511int
3512main ()
3513{
3514return f != remove;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003515 ;
3516 return 0;
3517}
3518_ACEOF
3519rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003520if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003521 (eval $ac_link) 2>&5
3522 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003524 (exit $ac_status); } &&
3525 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003527 (eval $ac_try) 2>&5
3528 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003530 (exit $ac_status); }; }; then
3531 ac_cv_func_remove=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003532else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003533 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003534sed 's/^/| /' conftest.$ac_ext >&5
3535
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003536ac_cv_func_remove=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003537fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003538rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003539fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003540echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003541echo "${ECHO_T}$ac_cv_func_remove" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003542
3543 if test $ac_cv_func_remove = no; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003544 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003545echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
3546if test "${ac_cv_lib_posix_remove+set}" = set; then
3547 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003548else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003549 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003550LIBS="-lposix $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003551cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003552#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003553/* confdefs.h. */
3554_ACEOF
3555cat confdefs.h >>conftest.$ac_ext
3556cat >>conftest.$ac_ext <<_ACEOF
3557/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003558
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003559/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003560#ifdef __cplusplus
3561extern "C"
3562#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003563/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003564 builtin and then its argument prototype would still apply. */
3565char remove ();
3566int
3567main ()
3568{
3569remove ();
3570 ;
3571 return 0;
3572}
3573_ACEOF
3574rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003575if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003576 (eval $ac_link) 2>&5
3577 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003579 (exit $ac_status); } &&
3580 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003582 (eval $ac_try) 2>&5
3583 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003585 (exit $ac_status); }; }; then
3586 ac_cv_lib_posix_remove=yes
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003587else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003588 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003589sed 's/^/| /' conftest.$ac_ext >&5
3590
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003591ac_cv_lib_posix_remove=no
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003592fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003593rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3594LIBS=$ac_check_lib_save_LIBS
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003595fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003596echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003597echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
3598if test $ac_cv_lib_posix_remove = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003599 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003600fi
3601
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003602 fi
3603
3604 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003605 echo "$as_me:$LINENO: checking for shmat" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003606echo $ECHO_N "checking for shmat... $ECHO_C" >&6
3607if test "${ac_cv_func_shmat+set}" = set; then
3608 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003609else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003610 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003611#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003612/* confdefs.h. */
3613_ACEOF
3614cat confdefs.h >>conftest.$ac_ext
3615cat >>conftest.$ac_ext <<_ACEOF
3616/* end confdefs.h. */
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003617/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003618 which can conflict with char shmat (); below.
3619 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3620 <limits.h> exists even on freestanding compilers. */
3621#ifdef __STDC__
3622# include <limits.h>
3623#else
3624# include <assert.h>
3625#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003626/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003627#ifdef __cplusplus
3628extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003629{
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003630#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003631/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003632 builtin and then its argument prototype would still apply. */
3633char shmat ();
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003634/* The GNU C library defines this for functions which it implements
3635 to always fail with ENOSYS. Some functions are actually named
3636 something starting with __ and the normal name is an alias. */
3637#if defined (__stub_shmat) || defined (__stub___shmat)
3638choke me
3639#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003640char (*f) () = shmat;
3641#endif
3642#ifdef __cplusplus
3643}
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003644#endif
3645
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003646int
3647main ()
3648{
3649return f != shmat;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003650 ;
3651 return 0;
3652}
3653_ACEOF
3654rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003655if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003656 (eval $ac_link) 2>&5
3657 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003659 (exit $ac_status); } &&
3660 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003662 (eval $ac_try) 2>&5
3663 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003665 (exit $ac_status); }; }; then
3666 ac_cv_func_shmat=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003667else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003668 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003669sed 's/^/| /' conftest.$ac_ext >&5
3670
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003671ac_cv_func_shmat=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003672fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003673rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003674fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003675echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003676echo "${ECHO_T}$ac_cv_func_shmat" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003677
3678 if test $ac_cv_func_shmat = no; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003679 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003680echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
3681if test "${ac_cv_lib_ipc_shmat+set}" = set; then
3682 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003683else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003684 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003685LIBS="-lipc $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003686cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003687#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003688/* confdefs.h. */
3689_ACEOF
3690cat confdefs.h >>conftest.$ac_ext
3691cat >>conftest.$ac_ext <<_ACEOF
3692/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003693
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003694/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003695#ifdef __cplusplus
3696extern "C"
3697#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003698/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003699 builtin and then its argument prototype would still apply. */
3700char shmat ();
3701int
3702main ()
3703{
3704shmat ();
3705 ;
3706 return 0;
3707}
3708_ACEOF
3709rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003710if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003711 (eval $ac_link) 2>&5
3712 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003714 (exit $ac_status); } &&
3715 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003717 (eval $ac_try) 2>&5
3718 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003720 (exit $ac_status); }; }; then
3721 ac_cv_lib_ipc_shmat=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003722else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003723 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003724sed 's/^/| /' conftest.$ac_ext >&5
3725
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003726ac_cv_lib_ipc_shmat=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003727fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003728rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3729LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003730fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003731echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003732echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
3733if test $ac_cv_lib_ipc_shmat = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003734 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003735fi
3736
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003737 fi
3738 fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003739
3740 # Check for libraries that X11R6 Xt/Xaw programs need.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003741 ac_save_LDFLAGS=$LDFLAGS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003742 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
3743 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3744 # check for ICE first), but we must link in the order -lSM -lICE or
3745 # we get undefined symbols. So assume we have SM if we have ICE.
3746 # These have to be linked with before -lX11, unlike the other
3747 # libraries we check for below, so use a different variable.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003748 # John Interrante, Karl Berry
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003749 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003750echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
3751if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
3752 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003753else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003754 ac_check_lib_save_LIBS=$LIBS
Eric Pouech18ad24a2000-01-16 22:16:33 +00003755LIBS="-lICE $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003756cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003757#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003758/* confdefs.h. */
3759_ACEOF
3760cat confdefs.h >>conftest.$ac_ext
3761cat >>conftest.$ac_ext <<_ACEOF
3762/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003763
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003764/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003765#ifdef __cplusplus
3766extern "C"
3767#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003768/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003769 builtin and then its argument prototype would still apply. */
3770char IceConnectionNumber ();
3771int
3772main ()
3773{
3774IceConnectionNumber ();
3775 ;
3776 return 0;
3777}
3778_ACEOF
3779rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003780if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003781 (eval $ac_link) 2>&5
3782 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003784 (exit $ac_status); } &&
3785 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003787 (eval $ac_try) 2>&5
3788 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003790 (exit $ac_status); }; }; then
3791 ac_cv_lib_ICE_IceConnectionNumber=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003792else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003793 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003794sed 's/^/| /' conftest.$ac_ext >&5
3795
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003796ac_cv_lib_ICE_IceConnectionNumber=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003797fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003798rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3799LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003800fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003801echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003802echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
3803if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003804 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003805fi
3806
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003807 LDFLAGS=$ac_save_LDFLAGS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003808
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003809fi
3810
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003811for ac_prog in 'bison -y' byacc
3812do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003813 # Extract the first word of "$ac_prog", so it can be a program name with args.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003814set dummy $ac_prog; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003815echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003816echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3817if test "${ac_cv_prog_YACC+set}" = set; then
3818 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003819else
3820 if test -n "$YACC"; then
3821 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3822else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3824for as_dir in $PATH
3825do
3826 IFS=$as_save_IFS
3827 test -z "$as_dir" && as_dir=.
3828 for ac_exec_ext in '' $ac_executable_extensions; do
3829 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3830 ac_cv_prog_YACC="$ac_prog"
3831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3832 break 2
3833 fi
3834done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003835done
3836
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003837fi
3838fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003839YACC=$ac_cv_prog_YACC
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003840if test -n "$YACC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003841 echo "$as_me:$LINENO: result: $YACC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003842echo "${ECHO_T}$YACC" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003843else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003844 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003845echo "${ECHO_T}no" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003846fi
3847
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003848 test -n "$YACC" && break
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003849done
3850test -n "$YACC" || YACC="yacc"
3851
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003852for ac_prog in flex lex
3853do
3854 # Extract the first word of "$ac_prog", so it can be a program name with args.
3855set dummy $ac_prog; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003856echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003857echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3858if test "${ac_cv_prog_LEX+set}" = set; then
3859 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003860else
3861 if test -n "$LEX"; then
3862 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3863else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3865for as_dir in $PATH
3866do
3867 IFS=$as_save_IFS
3868 test -z "$as_dir" && as_dir=.
3869 for ac_exec_ext in '' $ac_executable_extensions; do
3870 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3871 ac_cv_prog_LEX="$ac_prog"
3872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3873 break 2
3874 fi
3875done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003876done
3877
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003878fi
3879fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003880LEX=$ac_cv_prog_LEX
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003881if test -n "$LEX"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003882 echo "$as_me:$LINENO: result: $LEX" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003883echo "${ECHO_T}$LEX" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003884else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003885 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003886echo "${ECHO_T}no" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003887fi
3888
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003889 test -n "$LEX" && break
3890done
3891test -n "$LEX" || LEX=":"
3892
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003893if test -z "$LEXLIB"
3894then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003895 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003896echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3897if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3898 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003899else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003900 ac_check_lib_save_LIBS=$LIBS
3901LIBS="-lfl $LIBS"
3902cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003903#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003904/* confdefs.h. */
3905_ACEOF
3906cat confdefs.h >>conftest.$ac_ext
3907cat >>conftest.$ac_ext <<_ACEOF
3908/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003909
Alexandre Julliard59730ae1996-03-24 16:20:51 +00003910/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003911#ifdef __cplusplus
3912extern "C"
3913#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003914/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003915 builtin and then its argument prototype would still apply. */
3916char yywrap ();
3917int
3918main ()
3919{
3920yywrap ();
3921 ;
3922 return 0;
3923}
3924_ACEOF
3925rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003926if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003927 (eval $ac_link) 2>&5
3928 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003930 (exit $ac_status); } &&
3931 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003933 (eval $ac_try) 2>&5
3934 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003936 (exit $ac_status); }; }; then
3937 ac_cv_lib_fl_yywrap=yes
3938else
3939 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003940sed 's/^/| /' conftest.$ac_ext >&5
3941
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003942ac_cv_lib_fl_yywrap=no
3943fi
3944rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3945LIBS=$ac_check_lib_save_LIBS
3946fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003947echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003948echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3949if test $ac_cv_lib_fl_yywrap = yes; then
3950 LEXLIB="-lfl"
3951else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003952 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003953echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3954if test "${ac_cv_lib_l_yywrap+set}" = set; then
3955 echo $ECHO_N "(cached) $ECHO_C" >&6
3956else
3957 ac_check_lib_save_LIBS=$LIBS
3958LIBS="-ll $LIBS"
3959cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003960#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003961/* confdefs.h. */
3962_ACEOF
3963cat confdefs.h >>conftest.$ac_ext
3964cat >>conftest.$ac_ext <<_ACEOF
3965/* end confdefs.h. */
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003966
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003967/* Override any gcc2 internal prototype to avoid an error. */
3968#ifdef __cplusplus
3969extern "C"
3970#endif
3971/* We use char because int might match the return type of a gcc2
3972 builtin and then its argument prototype would still apply. */
3973char yywrap ();
3974int
3975main ()
3976{
3977yywrap ();
3978 ;
3979 return 0;
3980}
3981_ACEOF
3982rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003983if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003984 (eval $ac_link) 2>&5
3985 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003987 (exit $ac_status); } &&
3988 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003990 (eval $ac_try) 2>&5
3991 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003993 (exit $ac_status); }; }; then
3994 ac_cv_lib_l_yywrap=yes
3995else
3996 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003997sed 's/^/| /' conftest.$ac_ext >&5
3998
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003999ac_cv_lib_l_yywrap=no
4000fi
4001rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4002LIBS=$ac_check_lib_save_LIBS
4003fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004004echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004005echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4006if test $ac_cv_lib_l_yywrap = yes; then
4007 LEXLIB="-ll"
4008fi
4009
4010fi
4011
4012fi
4013
4014if test "x$LEX" != "x:"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004015 echo "$as_me:$LINENO: checking lex output file root" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004016echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4017if test "${ac_cv_prog_lex_root+set}" = set; then
4018 echo $ECHO_N "(cached) $ECHO_C" >&6
4019else
4020 # The minimal lex program is just a single line: %%. But some broken lexes
4021# (Solaris, I think it was) want two %% lines, so accommodate them.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004022cat >conftest.l <<_ACEOF
4023%%
4024%%
4025_ACEOF
4026{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4027 (eval $LEX conftest.l) 2>&5
4028 ac_status=$?
4029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030 (exit $ac_status); }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004031if test -f lex.yy.c; then
4032 ac_cv_prog_lex_root=lex.yy
4033elif test -f lexyy.c; then
4034 ac_cv_prog_lex_root=lexyy
4035else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004036 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004037echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4038 { (exit 1); exit 1; }; }
4039fi
4040fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004041echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004042echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004043rm -f conftest.l
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004044LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4045
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004046echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004047echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4048if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4049 echo $ECHO_N "(cached) $ECHO_C" >&6
4050else
4051 # POSIX says lex can declare yytext either as a pointer or an array; the
4052# default is implementation-dependent. Figure out which it is, since
4053# not all implementations provide the %pointer and %array declarations.
4054ac_cv_prog_lex_yytext_pointer=no
4055echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4056ac_save_LIBS=$LIBS
4057LIBS="$LIBS $LEXLIB"
4058cat >conftest.$ac_ext <<_ACEOF
4059`cat $LEX_OUTPUT_ROOT.c`
4060_ACEOF
4061rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004062if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004063 (eval $ac_link) 2>&5
4064 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004066 (exit $ac_status); } &&
4067 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004069 (eval $ac_try) 2>&5
4070 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004072 (exit $ac_status); }; }; then
4073 ac_cv_prog_lex_yytext_pointer=yes
4074else
4075 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004076sed 's/^/| /' conftest.$ac_ext >&5
4077
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004078fi
4079rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4080LIBS=$ac_save_LIBS
4081rm -f "${LEX_OUTPUT_ROOT}.c"
4082
4083fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004084echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004085echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4086if test $ac_cv_prog_lex_yytext_pointer = yes; then
4087
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004088cat >>confdefs.h <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004089#define YYTEXT_POINTER 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004090_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004091
4092fi
4093
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004094fi
Marcus Meissner5c5a6212002-01-22 18:28:25 +00004095
4096for ac_prog in $YACC bison yacc
4097do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004098 # Extract the first word of "$ac_prog", so it can be a program name with args.
Marcus Meissner5c5a6212002-01-22 18:28:25 +00004099set dummy $ac_prog; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004100echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004101echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4102if test "${ac_cv_prog_XYACC+set}" = set; then
4103 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00004104else
4105 if test -n "$XYACC"; then
4106 ac_cv_prog_XYACC="$XYACC" # Let the user override the test.
4107else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4109for as_dir in $PATH
4110do
4111 IFS=$as_save_IFS
4112 test -z "$as_dir" && as_dir=.
4113 for ac_exec_ext in '' $ac_executable_extensions; do
4114 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4115 ac_cv_prog_XYACC="$ac_prog"
4116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4117 break 2
4118 fi
4119done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004120done
4121
Marcus Meissner5c5a6212002-01-22 18:28:25 +00004122fi
4123fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004124XYACC=$ac_cv_prog_XYACC
Marcus Meissner5c5a6212002-01-22 18:28:25 +00004125if test -n "$XYACC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004126 echo "$as_me:$LINENO: result: $XYACC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004127echo "${ECHO_T}$XYACC" >&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00004128else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004129 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004130echo "${ECHO_T}no" >&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00004131fi
4132
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004133 test -n "$XYACC" && break
Marcus Meissner5c5a6212002-01-22 18:28:25 +00004134done
4135test -n "$XYACC" || XYACC="none"
4136
4137if test "$XYACC" = "none"
4138then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004139 { { echo "$as_me:$LINENO: error: no suitable bison/yacc found. Please install the 'bison' package." >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004140echo "$as_me: error: no suitable bison/yacc found. Please install the 'bison' package." >&2;}
4141 { (exit 1); exit 1; }; }
Marcus Meissner5c5a6212002-01-22 18:28:25 +00004142fi
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004143for ac_prog in $LEX flex lex
4144do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004145 # Extract the first word of "$ac_prog", so it can be a program name with args.
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004146set dummy $ac_prog; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004147echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004148echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4149if test "${ac_cv_prog_XLEX+set}" = set; then
4150 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004151else
4152 if test -n "$XLEX"; then
4153 ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
4154else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4156for as_dir in $PATH
4157do
4158 IFS=$as_save_IFS
4159 test -z "$as_dir" && as_dir=.
4160 for ac_exec_ext in '' $ac_executable_extensions; do
4161 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4162 ac_cv_prog_XLEX="$ac_prog"
4163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4164 break 2
4165 fi
4166done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004167done
4168
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004169fi
4170fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004171XLEX=$ac_cv_prog_XLEX
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004172if test -n "$XLEX"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004173 echo "$as_me:$LINENO: result: $XLEX" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004174echo "${ECHO_T}$XLEX" >&6
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004175else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004176 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004177echo "${ECHO_T}no" >&6
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004178fi
4179
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004180 test -n "$XLEX" && break
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004181done
4182test -n "$XLEX" || XLEX="none"
4183
4184if test "$XLEX" = "none"
4185then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004186 { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004187echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
4188 { (exit 1); exit 1; }; }
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004189fi
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004190
4191if test -n "$ac_tool_prefix"; then
Alexandre Julliardc80c2902003-05-06 18:41:52 +00004192 for ac_prog in gas as
4193 do
4194 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4195set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Marcus Meissner1d4db782003-01-09 00:46:54 +00004196echo "$as_me:$LINENO: checking for $ac_word" >&5
4197echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4198if test "${ac_cv_prog_AS+set}" = set; then
4199 echo $ECHO_N "(cached) $ECHO_C" >&6
4200else
4201 if test -n "$AS"; then
4202 ac_cv_prog_AS="$AS" # Let the user override the test.
4203else
4204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4205for as_dir in $PATH
4206do
4207 IFS=$as_save_IFS
4208 test -z "$as_dir" && as_dir=.
4209 for ac_exec_ext in '' $ac_executable_extensions; do
4210 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Alexandre Julliardc80c2902003-05-06 18:41:52 +00004211 ac_cv_prog_AS="$ac_tool_prefix$ac_prog"
Marcus Meissner1d4db782003-01-09 00:46:54 +00004212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4213 break 2
4214 fi
4215done
4216done
4217
4218fi
4219fi
4220AS=$ac_cv_prog_AS
4221if test -n "$AS"; then
4222 echo "$as_me:$LINENO: result: $AS" >&5
4223echo "${ECHO_T}$AS" >&6
4224else
4225 echo "$as_me:$LINENO: result: no" >&5
4226echo "${ECHO_T}no" >&6
4227fi
4228
Alexandre Julliardc80c2902003-05-06 18:41:52 +00004229 test -n "$AS" && break
4230 done
Marcus Meissner1d4db782003-01-09 00:46:54 +00004231fi
Alexandre Julliardc80c2902003-05-06 18:41:52 +00004232if test -z "$AS"; then
Marcus Meissner1d4db782003-01-09 00:46:54 +00004233 ac_ct_AS=$AS
Alexandre Julliardc80c2902003-05-06 18:41:52 +00004234 for ac_prog in gas as
4235do
4236 # Extract the first word of "$ac_prog", so it can be a program name with args.
4237set dummy $ac_prog; ac_word=$2
Marcus Meissner1d4db782003-01-09 00:46:54 +00004238echo "$as_me:$LINENO: checking for $ac_word" >&5
4239echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4240if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4241 echo $ECHO_N "(cached) $ECHO_C" >&6
4242else
4243 if test -n "$ac_ct_AS"; then
4244 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4245else
4246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4247for as_dir in $PATH
4248do
4249 IFS=$as_save_IFS
4250 test -z "$as_dir" && as_dir=.
4251 for ac_exec_ext in '' $ac_executable_extensions; do
4252 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Alexandre Julliardc80c2902003-05-06 18:41:52 +00004253 ac_cv_prog_ac_ct_AS="$ac_prog"
Marcus Meissner1d4db782003-01-09 00:46:54 +00004254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4255 break 2
4256 fi
4257done
4258done
4259
Marcus Meissner1d4db782003-01-09 00:46:54 +00004260fi
4261fi
4262ac_ct_AS=$ac_cv_prog_ac_ct_AS
4263if test -n "$ac_ct_AS"; then
4264 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4265echo "${ECHO_T}$ac_ct_AS" >&6
4266else
4267 echo "$as_me:$LINENO: result: no" >&5
4268echo "${ECHO_T}no" >&6
4269fi
4270
Alexandre Julliardc80c2902003-05-06 18:41:52 +00004271 test -n "$ac_ct_AS" && break
4272done
4273test -n "$ac_ct_AS" || ac_ct_AS="as"
4274
Marcus Meissner1d4db782003-01-09 00:46:54 +00004275 AS=$ac_ct_AS
Marcus Meissner1d4db782003-01-09 00:46:54 +00004276fi
4277
4278if test -n "$ac_tool_prefix"; then
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +00004279 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4280set dummy ${ac_tool_prefix}ld; ac_word=$2
4281echo "$as_me:$LINENO: checking for $ac_word" >&5
4282echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4283if test "${ac_cv_prog_LD+set}" = set; then
4284 echo $ECHO_N "(cached) $ECHO_C" >&6
4285else
4286 if test -n "$LD"; then
4287 ac_cv_prog_LD="$LD" # Let the user override the test.
4288else
4289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4290for as_dir in $PATH
4291do
4292 IFS=$as_save_IFS
4293 test -z "$as_dir" && as_dir=.
4294 for ac_exec_ext in '' $ac_executable_extensions; do
4295 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4296 ac_cv_prog_LD="${ac_tool_prefix}ld"
4297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4298 break 2
4299 fi
4300done
4301done
4302
4303fi
4304fi
4305LD=$ac_cv_prog_LD
4306if test -n "$LD"; then
4307 echo "$as_me:$LINENO: result: $LD" >&5
4308echo "${ECHO_T}$LD" >&6
4309else
4310 echo "$as_me:$LINENO: result: no" >&5
4311echo "${ECHO_T}no" >&6
4312fi
4313
4314fi
4315if test -z "$ac_cv_prog_LD"; then
4316 ac_ct_LD=$LD
4317 # Extract the first word of "ld", so it can be a program name with args.
4318set dummy ld; ac_word=$2
4319echo "$as_me:$LINENO: checking for $ac_word" >&5
4320echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4321if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4322 echo $ECHO_N "(cached) $ECHO_C" >&6
4323else
4324 if test -n "$ac_ct_LD"; then
4325 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4326else
4327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4328for as_dir in $PATH
4329do
4330 IFS=$as_save_IFS
4331 test -z "$as_dir" && as_dir=.
4332 for ac_exec_ext in '' $ac_executable_extensions; do
4333 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4334 ac_cv_prog_ac_ct_LD="ld"
4335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4336 break 2
4337 fi
4338done
4339done
4340
4341 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
4342fi
4343fi
4344ac_ct_LD=$ac_cv_prog_ac_ct_LD
4345if test -n "$ac_ct_LD"; then
4346 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4347echo "${ECHO_T}$ac_ct_LD" >&6
4348else
4349 echo "$as_me:$LINENO: result: no" >&5
4350echo "${ECHO_T}no" >&6
4351fi
4352
4353 LD=$ac_ct_LD
4354else
4355 LD="$ac_cv_prog_LD"
4356fi
4357
4358if test -n "$ac_tool_prefix"; then
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004359 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4360set dummy ${ac_tool_prefix}ar; ac_word=$2
4361echo "$as_me:$LINENO: checking for $ac_word" >&5
4362echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4363if test "${ac_cv_prog_AR+set}" = set; then
4364 echo $ECHO_N "(cached) $ECHO_C" >&6
4365else
4366 if test -n "$AR"; then
4367 ac_cv_prog_AR="$AR" # Let the user override the test.
4368else
4369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4370for as_dir in $PATH
4371do
4372 IFS=$as_save_IFS
4373 test -z "$as_dir" && as_dir=.
4374 for ac_exec_ext in '' $ac_executable_extensions; do
4375 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4376 ac_cv_prog_AR="${ac_tool_prefix}ar"
4377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4378 break 2
4379 fi
4380done
4381done
4382
4383fi
4384fi
4385AR=$ac_cv_prog_AR
4386if test -n "$AR"; then
4387 echo "$as_me:$LINENO: result: $AR" >&5
4388echo "${ECHO_T}$AR" >&6
4389else
4390 echo "$as_me:$LINENO: result: no" >&5
4391echo "${ECHO_T}no" >&6
4392fi
4393
4394fi
4395if test -z "$ac_cv_prog_AR"; then
4396 ac_ct_AR=$AR
4397 # Extract the first word of "ar", so it can be a program name with args.
4398set dummy ar; ac_word=$2
4399echo "$as_me:$LINENO: checking for $ac_word" >&5
4400echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4401if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4402 echo $ECHO_N "(cached) $ECHO_C" >&6
4403else
4404 if test -n "$ac_ct_AR"; then
4405 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4406else
4407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4408for as_dir in $PATH
4409do
4410 IFS=$as_save_IFS
4411 test -z "$as_dir" && as_dir=.
4412 for ac_exec_ext in '' $ac_executable_extensions; do
4413 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4414 ac_cv_prog_ac_ct_AR="ar"
4415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4416 break 2
4417 fi
4418done
4419done
4420
4421 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4422fi
4423fi
4424ac_ct_AR=$ac_cv_prog_ac_ct_AR
4425if test -n "$ac_ct_AR"; then
4426 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4427echo "${ECHO_T}$ac_ct_AR" >&6
4428else
4429 echo "$as_me:$LINENO: result: no" >&5
4430echo "${ECHO_T}no" >&6
4431fi
4432
4433 AR=$ac_ct_AR
4434else
4435 AR="$ac_cv_prog_AR"
4436fi
4437
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004438if test -n "$ac_tool_prefix"; then
4439 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4440set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004441echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004442echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4443if test "${ac_cv_prog_RANLIB+set}" = set; then
4444 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004445else
4446 if test -n "$RANLIB"; then
4447 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4448else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4450for as_dir in $PATH
4451do
4452 IFS=$as_save_IFS
4453 test -z "$as_dir" && as_dir=.
4454 for ac_exec_ext in '' $ac_executable_extensions; do
4455 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4456 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4458 break 2
4459 fi
4460done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004461done
4462
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004463fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004464fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004465RANLIB=$ac_cv_prog_RANLIB
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004466if test -n "$RANLIB"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004467 echo "$as_me:$LINENO: result: $RANLIB" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004468echo "${ECHO_T}$RANLIB" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004469else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004470 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004471echo "${ECHO_T}no" >&6
4472fi
4473
4474fi
4475if test -z "$ac_cv_prog_RANLIB"; then
4476 ac_ct_RANLIB=$RANLIB
4477 # Extract the first word of "ranlib", so it can be a program name with args.
4478set dummy ranlib; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004479echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004480echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4481if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4482 echo $ECHO_N "(cached) $ECHO_C" >&6
4483else
4484 if test -n "$ac_ct_RANLIB"; then
4485 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4486else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4488for as_dir in $PATH
4489do
4490 IFS=$as_save_IFS
4491 test -z "$as_dir" && as_dir=.
4492 for ac_exec_ext in '' $ac_executable_extensions; do
4493 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4494 ac_cv_prog_ac_ct_RANLIB="ranlib"
4495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4496 break 2
4497 fi
4498done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004499done
4500
4501 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4502fi
4503fi
4504ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4505if test -n "$ac_ct_RANLIB"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004506 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004507echo "${ECHO_T}$ac_ct_RANLIB" >&6
4508else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004509 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004510echo "${ECHO_T}no" >&6
4511fi
4512
4513 RANLIB=$ac_ct_RANLIB
4514else
4515 RANLIB="$ac_cv_prog_RANLIB"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004516fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004517
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004518if test -n "$ac_tool_prefix"; then
4519 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4520set dummy ${ac_tool_prefix}strip; ac_word=$2
4521echo "$as_me:$LINENO: checking for $ac_word" >&5
4522echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4523if test "${ac_cv_prog_STRIP+set}" = set; then
4524 echo $ECHO_N "(cached) $ECHO_C" >&6
4525else
4526 if test -n "$STRIP"; then
4527 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4528else
4529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4530for as_dir in $PATH
4531do
4532 IFS=$as_save_IFS
4533 test -z "$as_dir" && as_dir=.
4534 for ac_exec_ext in '' $ac_executable_extensions; do
4535 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4536 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4538 break 2
4539 fi
4540done
4541done
4542
4543fi
4544fi
4545STRIP=$ac_cv_prog_STRIP
4546if test -n "$STRIP"; then
4547 echo "$as_me:$LINENO: result: $STRIP" >&5
4548echo "${ECHO_T}$STRIP" >&6
4549else
4550 echo "$as_me:$LINENO: result: no" >&5
4551echo "${ECHO_T}no" >&6
4552fi
4553
4554fi
4555if test -z "$ac_cv_prog_STRIP"; then
4556 ac_ct_STRIP=$STRIP
4557 # Extract the first word of "strip", so it can be a program name with args.
4558set dummy strip; ac_word=$2
4559echo "$as_me:$LINENO: checking for $ac_word" >&5
4560echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4561if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4562 echo $ECHO_N "(cached) $ECHO_C" >&6
4563else
4564 if test -n "$ac_ct_STRIP"; then
4565 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4566else
4567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4568for as_dir in $PATH
4569do
4570 IFS=$as_save_IFS
4571 test -z "$as_dir" && as_dir=.
4572 for ac_exec_ext in '' $ac_executable_extensions; do
4573 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4574 ac_cv_prog_ac_ct_STRIP="strip"
4575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4576 break 2
4577 fi
4578done
4579done
4580
4581 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="strip"
4582fi
4583fi
4584ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4585if test -n "$ac_ct_STRIP"; then
4586 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4587echo "${ECHO_T}$ac_ct_STRIP" >&6
4588else
4589 echo "$as_me:$LINENO: result: no" >&5
4590echo "${ECHO_T}no" >&6
4591fi
4592
4593 STRIP=$ac_ct_STRIP
4594else
4595 STRIP="$ac_cv_prog_STRIP"
4596fi
4597
4598if test -n "$ac_tool_prefix"; then
4599 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4600set dummy ${ac_tool_prefix}windres; ac_word=$2
4601echo "$as_me:$LINENO: checking for $ac_word" >&5
4602echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4603if test "${ac_cv_prog_WINDRES+set}" = set; then
4604 echo $ECHO_N "(cached) $ECHO_C" >&6
4605else
4606 if test -n "$WINDRES"; then
4607 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4608else
4609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4610for as_dir in $PATH
4611do
4612 IFS=$as_save_IFS
4613 test -z "$as_dir" && as_dir=.
4614 for ac_exec_ext in '' $ac_executable_extensions; do
4615 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4616 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
4617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4618 break 2
4619 fi
4620done
4621done
4622
4623fi
4624fi
4625WINDRES=$ac_cv_prog_WINDRES
4626if test -n "$WINDRES"; then
4627 echo "$as_me:$LINENO: result: $WINDRES" >&5
4628echo "${ECHO_T}$WINDRES" >&6
4629else
4630 echo "$as_me:$LINENO: result: no" >&5
4631echo "${ECHO_T}no" >&6
4632fi
4633
4634fi
4635if test -z "$ac_cv_prog_WINDRES"; then
4636 ac_ct_WINDRES=$WINDRES
4637 # Extract the first word of "windres", so it can be a program name with args.
4638set dummy windres; ac_word=$2
4639echo "$as_me:$LINENO: checking for $ac_word" >&5
4640echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4641if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
4642 echo $ECHO_N "(cached) $ECHO_C" >&6
4643else
4644 if test -n "$ac_ct_WINDRES"; then
4645 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
4646else
4647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4648for as_dir in $PATH
4649do
4650 IFS=$as_save_IFS
4651 test -z "$as_dir" && as_dir=.
4652 for ac_exec_ext in '' $ac_executable_extensions; do
4653 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4654 ac_cv_prog_ac_ct_WINDRES="windres"
4655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4656 break 2
4657 fi
4658done
4659done
4660
4661 test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES="false"
4662fi
4663fi
4664ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
4665if test -n "$ac_ct_WINDRES"; then
4666 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
4667echo "${ECHO_T}$ac_ct_WINDRES" >&6
4668else
4669 echo "$as_me:$LINENO: result: no" >&5
4670echo "${ECHO_T}no" >&6
4671fi
4672
4673 WINDRES=$ac_ct_WINDRES
4674else
4675 WINDRES="$ac_cv_prog_WINDRES"
4676fi
4677
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004678echo "$as_me:$LINENO: checking whether ln -s works" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004679echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4680LN_S=$as_ln_s
4681if test "$LN_S" = "ln -s"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004682 echo "$as_me:$LINENO: result: yes" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004683echo "${ECHO_T}yes" >&6
Alexandre Julliard641ee761997-08-04 16:34:36 +00004684else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004685 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004686echo "${ECHO_T}no, using $LN_S" >&6
Alexandre Julliard641ee761997-08-04 16:34:36 +00004687fi
4688
Alexandre Julliarddf234a92002-05-22 02:10:39 +00004689echo "$as_me:$LINENO: checking whether ln works" >&5
4690echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4691rm -f conf$$ conf$$.file
4692echo >conf$$.file
4693if ln conf$$.file conf$$ 2>/dev/null; then
4694 LN=ln
4695
4696 echo "$as_me:$LINENO: result: yes" >&5
4697echo "${ECHO_T}yes" >&6
4698else
4699 LN="cp -p"
4700
4701 echo "$as_me:$LINENO: result: no, using $LN" >&5
4702echo "${ECHO_T}no, using $LN" >&6
4703fi
4704rm -f conf$$ conf$$.file
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004705# Extract the first word of "c2man", so it can be a program name with args.
4706set dummy c2man; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004707echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004708echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4709if test "${ac_cv_prog_C2MAN+set}" = set; then
4710 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004711else
4712 if test -n "$C2MAN"; then
4713 ac_cv_prog_C2MAN="$C2MAN" # Let the user override the test.
4714else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4716for as_dir in $PATH
4717do
4718 IFS=$as_save_IFS
4719 test -z "$as_dir" && as_dir=.
4720 for ac_exec_ext in '' $ac_executable_extensions; do
4721 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4722 ac_cv_prog_C2MAN="c2man"
4723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4724 break 2
4725 fi
4726done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004727done
4728
Mike McCormacke0df32f2000-08-11 21:15:21 +00004729 test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN="\$(TOPSRCDIR)/tools/c2man.pl"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004730fi
4731fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004732C2MAN=$ac_cv_prog_C2MAN
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004733if test -n "$C2MAN"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004734 echo "$as_me:$LINENO: result: $C2MAN" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004735echo "${ECHO_T}$C2MAN" >&6
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004736else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004737 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004738echo "${ECHO_T}no" >&6
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00004739fi
4740
James Juranffe6b761999-06-12 08:21:57 +00004741# Extract the first word of "ldconfig", so it can be a program name with args.
4742set dummy ldconfig; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004743echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004744echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4745if test "${ac_cv_path_LDCONFIG+set}" = set; then
4746 echo $ECHO_N "(cached) $ECHO_C" >&6
James Juranffe6b761999-06-12 08:21:57 +00004747else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004748 case $LDCONFIG in
4749 [\\/]* | ?:[\\/]*)
James Juranffe6b761999-06-12 08:21:57 +00004750 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4751 ;;
4752 *)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Bill Medland91372b32002-04-20 21:00:42 +00004754for as_dir in /sbin /usr/sbin $PATH
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004755do
4756 IFS=$as_save_IFS
4757 test -z "$as_dir" && as_dir=.
4758 for ac_exec_ext in '' $ac_executable_extensions; do
4759 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4760 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4762 break 2
4763 fi
4764done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004765done
4766
Alexandre Julliard318f4ce2000-01-31 05:02:49 +00004767 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
James Juranffe6b761999-06-12 08:21:57 +00004768 ;;
4769esac
4770fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004771LDCONFIG=$ac_cv_path_LDCONFIG
4772
James Juranffe6b761999-06-12 08:21:57 +00004773if test -n "$LDCONFIG"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004774 echo "$as_me:$LINENO: result: $LDCONFIG" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004775echo "${ECHO_T}$LDCONFIG" >&6
James Juranffe6b761999-06-12 08:21:57 +00004776else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004777 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004778echo "${ECHO_T}no" >&6
James Juranffe6b761999-06-12 08:21:57 +00004779fi
4780
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004781# Find a good install program. We prefer a C program (faster),
4782# so one script is as good as another. But avoid the broken or
4783# incompatible versions:
4784# SysV /etc/install, /usr/sbin/install
4785# SunOS /usr/etc/install
4786# IRIX /sbin/install
4787# AIX /bin/install
4788# AmigaOS /C/install, which installs bootblocks on floppy discs
4789# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4790# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4791# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4792# ./install, which can be erroneously created by make from ./install.sh.
4793echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4794echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4795if test -z "$INSTALL"; then
4796if test "${ac_cv_path_install+set}" = set; then
4797 echo $ECHO_N "(cached) $ECHO_C" >&6
4798else
4799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4800for as_dir in $PATH
4801do
4802 IFS=$as_save_IFS
4803 test -z "$as_dir" && as_dir=.
4804 # Account for people who put trailing slashes in PATH elements.
4805case $as_dir/ in
4806 ./ | .// | /cC/* | \
4807 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4808 /usr/ucb/* ) ;;
4809 *)
4810 # OSF1 and SCO ODT 3.0 have their own names for install.
4811 # Don't use installbsd from OSF since it installs stuff as root
4812 # by default.
4813 for ac_prog in ginstall scoinst install; do
4814 for ac_exec_ext in '' $ac_executable_extensions; do
4815 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4816 if test $ac_prog = install &&
4817 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4818 # AIX install. It has an incompatible calling convention.
4819 :
4820 elif test $ac_prog = install &&
4821 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4822 # program-specific install script used by HP pwplus--don't use.
4823 :
4824 else
4825 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4826 break 3
4827 fi
4828 fi
4829 done
4830 done
4831 ;;
4832esac
4833done
4834
4835
4836fi
4837 if test "${ac_cv_path_install+set}" = set; then
4838 INSTALL=$ac_cv_path_install
4839 else
4840 # As a last resort, use the slow shell script. We don't cache a
4841 # path for INSTALL within a source directory, because that will
4842 # break other packages using the cache if that directory is
4843 # removed, or if the path is relative.
4844 INSTALL=$ac_install_sh
4845 fi
4846fi
4847echo "$as_me:$LINENO: result: $INSTALL" >&5
4848echo "${ECHO_T}$INSTALL" >&6
4849
4850# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4851# It thinks the first close brace ends the variable substitution.
4852test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4853
4854test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4855
4856test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4857
4858case "$INSTALL" in
Alexandre Julliard8418d8f2002-12-24 02:39:47 +00004859 [\\/$]* | ?:[\\/]* ) ;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004860 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
4861esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004862
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004863for ac_prog in lclint lint
4864do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004865 # Extract the first word of "$ac_prog", so it can be a program name with args.
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004866set dummy $ac_prog; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004867echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004868echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4869if test "${ac_cv_prog_LINT+set}" = set; then
4870 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004871else
4872 if test -n "$LINT"; then
4873 ac_cv_prog_LINT="$LINT" # Let the user override the test.
4874else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4876for as_dir in $PATH
4877do
4878 IFS=$as_save_IFS
4879 test -z "$as_dir" && as_dir=.
4880 for ac_exec_ext in '' $ac_executable_extensions; do
4881 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4882 ac_cv_prog_LINT="$ac_prog"
4883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4884 break 2
4885 fi
4886done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004887done
4888
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004889fi
4890fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004891LINT=$ac_cv_prog_LINT
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004892if test -n "$LINT"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004893 echo "$as_me:$LINENO: result: $LINT" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004894echo "${ECHO_T}$LINT" >&6
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004895else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004896 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004897echo "${ECHO_T}no" >&6
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004898fi
4899
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004900 test -n "$LINT" && break
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004901done
4902
4903if test "$LINT" = "lint"
4904then
4905 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4906 fi
4907
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004908
4909
Vincent Béron1d8cb6e2002-11-23 01:20:02 +00004910for ac_prog in docbook2html db2html
4911do
4912 # Extract the first word of "$ac_prog", so it can be a program name with args.
4913set dummy $ac_prog; ac_word=$2
4914echo "$as_me:$LINENO: checking for $ac_word" >&5
4915echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4916if test "${ac_cv_prog_DB2HTML+set}" = set; then
4917 echo $ECHO_N "(cached) $ECHO_C" >&6
4918else
4919 if test -n "$DB2HTML"; then
4920 ac_cv_prog_DB2HTML="$DB2HTML" # Let the user override the test.
4921else
4922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4923for as_dir in $PATH
4924do
4925 IFS=$as_save_IFS
4926 test -z "$as_dir" && as_dir=.
4927 for ac_exec_ext in '' $ac_executable_extensions; do
4928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4929 ac_cv_prog_DB2HTML="$ac_prog"
4930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4931 break 2
4932 fi
4933done
4934done
4935
4936fi
4937fi
4938DB2HTML=$ac_cv_prog_DB2HTML
4939if test -n "$DB2HTML"; then
4940 echo "$as_me:$LINENO: result: $DB2HTML" >&5
4941echo "${ECHO_T}$DB2HTML" >&6
4942else
4943 echo "$as_me:$LINENO: result: no" >&5
4944echo "${ECHO_T}no" >&6
4945fi
4946
4947 test -n "$DB2HTML" && break
4948done
4949test -n "$DB2HTML" || DB2HTML="false"
4950
4951
4952
4953for ac_prog in docbook2pdf db2pdf
4954do
4955 # Extract the first word of "$ac_prog", so it can be a program name with args.
4956set dummy $ac_prog; ac_word=$2
4957echo "$as_me:$LINENO: checking for $ac_word" >&5
4958echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4959if test "${ac_cv_prog_DB2PDF+set}" = set; then
4960 echo $ECHO_N "(cached) $ECHO_C" >&6
4961else
4962 if test -n "$DB2PDF"; then
4963 ac_cv_prog_DB2PDF="$DB2PDF" # Let the user override the test.
4964else
4965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4966for as_dir in $PATH
4967do
4968 IFS=$as_save_IFS
4969 test -z "$as_dir" && as_dir=.
4970 for ac_exec_ext in '' $ac_executable_extensions; do
4971 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4972 ac_cv_prog_DB2PDF="$ac_prog"
4973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4974 break 2
4975 fi
4976done
4977done
4978
4979fi
4980fi
4981DB2PDF=$ac_cv_prog_DB2PDF
4982if test -n "$DB2PDF"; then
4983 echo "$as_me:$LINENO: result: $DB2PDF" >&5
4984echo "${ECHO_T}$DB2PDF" >&6
4985else
4986 echo "$as_me:$LINENO: result: no" >&5
4987echo "${ECHO_T}no" >&6
4988fi
4989
4990 test -n "$DB2PDF" && break
4991done
4992test -n "$DB2PDF" || DB2PDF="false"
4993
4994
4995
4996for ac_prog in docbook2ps db2ps
4997do
4998 # Extract the first word of "$ac_prog", so it can be a program name with args.
4999set dummy $ac_prog; ac_word=$2
5000echo "$as_me:$LINENO: checking for $ac_word" >&5
5001echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5002if test "${ac_cv_prog_DB2PS+set}" = set; then
5003 echo $ECHO_N "(cached) $ECHO_C" >&6
5004else
5005 if test -n "$DB2PS"; then
5006 ac_cv_prog_DB2PS="$DB2PS" # Let the user override the test.
5007else
5008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5009for as_dir in $PATH
5010do
5011 IFS=$as_save_IFS
5012 test -z "$as_dir" && as_dir=.
5013 for ac_exec_ext in '' $ac_executable_extensions; do
5014 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5015 ac_cv_prog_DB2PS="$ac_prog"
5016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5017 break 2
5018 fi
5019done
5020done
5021
5022fi
5023fi
5024DB2PS=$ac_cv_prog_DB2PS
5025if test -n "$DB2PS"; then
5026 echo "$as_me:$LINENO: result: $DB2PS" >&5
5027echo "${ECHO_T}$DB2PS" >&6
5028else
5029 echo "$as_me:$LINENO: result: no" >&5
5030echo "${ECHO_T}no" >&6
5031fi
5032
5033 test -n "$DB2PS" && break
5034done
5035test -n "$DB2PS" || DB2PS="false"
5036
5037
5038
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005039
5040
5041echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005042echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
5043if test "${ac_cv_lib_m_sqrt+set}" = set; then
5044 echo $ECHO_N "(cached) $ECHO_C" >&6
Dimitrie O. Paun79e44ab2000-12-05 04:13:36 +00005045else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005046 ac_check_lib_save_LIBS=$LIBS
Howard Abrams13277481999-07-10 13:16:29 +00005047LIBS="-lm $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005048cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005049#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005050/* confdefs.h. */
5051_ACEOF
5052cat confdefs.h >>conftest.$ac_ext
5053cat >>conftest.$ac_ext <<_ACEOF
5054/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005055
Howard Abrams13277481999-07-10 13:16:29 +00005056/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005057#ifdef __cplusplus
5058extern "C"
5059#endif
Howard Abrams13277481999-07-10 13:16:29 +00005060/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005061 builtin and then its argument prototype would still apply. */
5062char sqrt ();
5063int
5064main ()
5065{
5066sqrt ();
5067 ;
5068 return 0;
5069}
5070_ACEOF
5071rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005072if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005073 (eval $ac_link) 2>&5
5074 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005076 (exit $ac_status); } &&
5077 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005079 (eval $ac_try) 2>&5
5080 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005082 (exit $ac_status); }; }; then
5083 ac_cv_lib_m_sqrt=yes
Howard Abrams13277481999-07-10 13:16:29 +00005084else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005085 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005086sed 's/^/| /' conftest.$ac_ext >&5
5087
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005088ac_cv_lib_m_sqrt=no
Howard Abrams13277481999-07-10 13:16:29 +00005089fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005090rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5091LIBS=$ac_check_lib_save_LIBS
Howard Abrams13277481999-07-10 13:16:29 +00005092fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005093echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005094echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
5095if test $ac_cv_lib_m_sqrt = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005096 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005097#define HAVE_LIBM 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005098_ACEOF
Howard Abrams13277481999-07-10 13:16:29 +00005099
5100 LIBS="-lm $LIBS"
5101
Howard Abrams13277481999-07-10 13:16:29 +00005102fi
5103
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005104
5105echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005106echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6
5107if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
5108 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard902da691995-11-05 14:39:02 +00005109else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005110 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliard902da691995-11-05 14:39:02 +00005111LIBS="-li386 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005112cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005113#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005114/* confdefs.h. */
5115_ACEOF
5116cat confdefs.h >>conftest.$ac_ext
5117cat >>conftest.$ac_ext <<_ACEOF
5118/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005119
Alexandre Julliard59730ae1996-03-24 16:20:51 +00005120/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005121#ifdef __cplusplus
5122extern "C"
5123#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00005124/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005125 builtin and then its argument prototype would still apply. */
5126char i386_set_ldt ();
5127int
5128main ()
5129{
5130i386_set_ldt ();
5131 ;
5132 return 0;
5133}
5134_ACEOF
5135rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005136if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005137 (eval $ac_link) 2>&5
5138 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005140 (exit $ac_status); } &&
5141 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005143 (eval $ac_try) 2>&5
5144 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005146 (exit $ac_status); }; }; then
5147 ac_cv_lib_i386_i386_set_ldt=yes
Alexandre Julliard902da691995-11-05 14:39:02 +00005148else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005149 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005150sed 's/^/| /' conftest.$ac_ext >&5
5151
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005152ac_cv_lib_i386_i386_set_ldt=no
Alexandre Julliard902da691995-11-05 14:39:02 +00005153fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005154rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5155LIBS=$ac_check_lib_save_LIBS
Alexandre Julliard902da691995-11-05 14:39:02 +00005156fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005157echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005158echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6
5159if test $ac_cv_lib_i386_i386_set_ldt = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005160 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005161#define HAVE_LIBI386 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005162_ACEOF
Alexandre Julliard02e90081998-01-04 17:49:09 +00005163
5164 LIBS="-li386 $LIBS"
5165
Alexandre Julliard02e90081998-01-04 17:49:09 +00005166fi
5167
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005168
5169echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005170echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5171if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5172 echo $ECHO_N "(cached) $ECHO_C" >&6
Todd Vierlingecc76691998-12-15 17:49:02 +00005173else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005174 ac_check_lib_save_LIBS=$LIBS
Todd Vierlingecc76691998-12-15 17:49:02 +00005175LIBS="-lossaudio $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005176cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005177#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005178/* confdefs.h. */
5179_ACEOF
5180cat confdefs.h >>conftest.$ac_ext
5181cat >>conftest.$ac_ext <<_ACEOF
5182/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005183
Todd Vierlingecc76691998-12-15 17:49:02 +00005184/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005185#ifdef __cplusplus
5186extern "C"
5187#endif
Todd Vierlingecc76691998-12-15 17:49:02 +00005188/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005189 builtin and then its argument prototype would still apply. */
5190char _oss_ioctl ();
5191int
5192main ()
5193{
5194_oss_ioctl ();
5195 ;
5196 return 0;
5197}
5198_ACEOF
5199rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005200if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005201 (eval $ac_link) 2>&5
5202 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005204 (exit $ac_status); } &&
5205 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005207 (eval $ac_try) 2>&5
5208 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005210 (exit $ac_status); }; }; then
5211 ac_cv_lib_ossaudio__oss_ioctl=yes
Todd Vierlingecc76691998-12-15 17:49:02 +00005212else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005213 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005214sed 's/^/| /' conftest.$ac_ext >&5
5215
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005216ac_cv_lib_ossaudio__oss_ioctl=no
Todd Vierlingecc76691998-12-15 17:49:02 +00005217fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005218rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5219LIBS=$ac_check_lib_save_LIBS
Todd Vierlingecc76691998-12-15 17:49:02 +00005220fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005221echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005222echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5223if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005224 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005225#define HAVE_LIBOSSAUDIO 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005226_ACEOF
Todd Vierlingecc76691998-12-15 17:49:02 +00005227
5228 LIBS="-lossaudio $LIBS"
5229
Todd Vierlingecc76691998-12-15 17:49:02 +00005230fi
5231
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005232
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005233for ac_func in iswalnum
Patrik Stridvallea584721998-11-01 16:22:07 +00005234do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005235as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005236echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005237echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5238if eval "test \"\${$as_ac_var+set}\" = set"; then
5239 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvallea584721998-11-01 16:22:07 +00005240else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005241 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005242#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005243/* confdefs.h. */
5244_ACEOF
5245cat confdefs.h >>conftest.$ac_ext
5246cat >>conftest.$ac_ext <<_ACEOF
5247/* end confdefs.h. */
Patrik Stridvallea584721998-11-01 16:22:07 +00005248/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005249 which can conflict with char $ac_func (); below.
5250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5251 <limits.h> exists even on freestanding compilers. */
5252#ifdef __STDC__
5253# include <limits.h>
5254#else
5255# include <assert.h>
5256#endif
Patrik Stridvallea584721998-11-01 16:22:07 +00005257/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005258#ifdef __cplusplus
5259extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005260{
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005261#endif
Patrik Stridvallea584721998-11-01 16:22:07 +00005262/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005263 builtin and then its argument prototype would still apply. */
5264char $ac_func ();
Patrik Stridvallea584721998-11-01 16:22:07 +00005265/* The GNU C library defines this for functions which it implements
5266 to always fail with ENOSYS. Some functions are actually named
5267 something starting with __ and the normal name is an alias. */
5268#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5269choke me
5270#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005271char (*f) () = $ac_func;
5272#endif
5273#ifdef __cplusplus
5274}
Patrik Stridvallea584721998-11-01 16:22:07 +00005275#endif
5276
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005277int
5278main ()
5279{
5280return f != $ac_func;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005281 ;
5282 return 0;
5283}
5284_ACEOF
5285rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005286if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005287 (eval $ac_link) 2>&5
5288 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005290 (exit $ac_status); } &&
5291 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005293 (eval $ac_try) 2>&5
5294 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005296 (exit $ac_status); }; }; then
5297 eval "$as_ac_var=yes"
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005298else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005299 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005300sed 's/^/| /' conftest.$ac_ext >&5
5301
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005302eval "$as_ac_var=no"
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005303fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005304rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005305fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005306echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005307echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5308if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005309 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005310#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005311_ACEOF
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005312
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005313else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005314
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005315echo "$as_me:$LINENO: checking for iswalnum in -lw" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005316echo $ECHO_N "checking for iswalnum in -lw... $ECHO_C" >&6
5317if test "${ac_cv_lib_w_iswalnum+set}" = set; then
5318 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005319else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005320 ac_check_lib_save_LIBS=$LIBS
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005321LIBS="-lw $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005322cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005323#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005324/* confdefs.h. */
5325_ACEOF
5326cat confdefs.h >>conftest.$ac_ext
5327cat >>conftest.$ac_ext <<_ACEOF
5328/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005329
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005330/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005331#ifdef __cplusplus
5332extern "C"
5333#endif
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005334/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005335 builtin and then its argument prototype would still apply. */
5336char iswalnum ();
5337int
5338main ()
5339{
5340iswalnum ();
5341 ;
5342 return 0;
5343}
5344_ACEOF
5345rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005346if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005347 (eval $ac_link) 2>&5
5348 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005350 (exit $ac_status); } &&
5351 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005353 (eval $ac_try) 2>&5
5354 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005356 (exit $ac_status); }; }; then
5357 ac_cv_lib_w_iswalnum=yes
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005358else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005359 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005360sed 's/^/| /' conftest.$ac_ext >&5
5361
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005362ac_cv_lib_w_iswalnum=no
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005363fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005364rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5365LIBS=$ac_check_lib_save_LIBS
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005366fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005367echo "$as_me:$LINENO: result: $ac_cv_lib_w_iswalnum" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005368echo "${ECHO_T}$ac_cv_lib_w_iswalnum" >&6
5369if test $ac_cv_lib_w_iswalnum = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005370 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005371#define HAVE_LIBW 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005372_ACEOF
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005373
5374 LIBS="-lw $LIBS"
5375
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005376fi
5377
5378fi
5379done
5380
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005381
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005382for ac_func in gethostbyname
5383do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005384as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005385echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005386echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5387if eval "test \"\${$as_ac_var+set}\" = set"; then
5388 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005389else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005390 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005391#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005392/* confdefs.h. */
5393_ACEOF
5394cat confdefs.h >>conftest.$ac_ext
5395cat >>conftest.$ac_ext <<_ACEOF
5396/* end confdefs.h. */
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005397/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005398 which can conflict with char $ac_func (); below.
5399 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5400 <limits.h> exists even on freestanding compilers. */
5401#ifdef __STDC__
5402# include <limits.h>
5403#else
5404# include <assert.h>
5405#endif
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005406/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005407#ifdef __cplusplus
5408extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005409{
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005410#endif
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005411/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005412 builtin and then its argument prototype would still apply. */
5413char $ac_func ();
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005414/* The GNU C library defines this for functions which it implements
5415 to always fail with ENOSYS. Some functions are actually named
5416 something starting with __ and the normal name is an alias. */
5417#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5418choke me
5419#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005420char (*f) () = $ac_func;
5421#endif
5422#ifdef __cplusplus
5423}
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005424#endif
5425
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005426int
5427main ()
5428{
5429return f != $ac_func;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005430 ;
5431 return 0;
5432}
5433_ACEOF
5434rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005435if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005436 (eval $ac_link) 2>&5
5437 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005439 (exit $ac_status); } &&
5440 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005442 (eval $ac_try) 2>&5
5443 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005445 (exit $ac_status); }; }; then
5446 eval "$as_ac_var=yes"
Patrik Stridvallea584721998-11-01 16:22:07 +00005447else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005448 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005449sed 's/^/| /' conftest.$ac_ext >&5
5450
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005451eval "$as_ac_var=no"
Patrik Stridvallea584721998-11-01 16:22:07 +00005452fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005453rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Patrik Stridvallea584721998-11-01 16:22:07 +00005454fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005455echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005456echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5457if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005458 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005459#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005460_ACEOF
Patrik Stridvallea584721998-11-01 16:22:07 +00005461
Patrik Stridvallea584721998-11-01 16:22:07 +00005462else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005463
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005464echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005465echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5466if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5467 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvallea584721998-11-01 16:22:07 +00005468else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005469 ac_check_lib_save_LIBS=$LIBS
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005470LIBS="-lnsl $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005471cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005472#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005473/* confdefs.h. */
5474_ACEOF
5475cat confdefs.h >>conftest.$ac_ext
5476cat >>conftest.$ac_ext <<_ACEOF
5477/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005478
Patrik Stridvallea584721998-11-01 16:22:07 +00005479/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005480#ifdef __cplusplus
5481extern "C"
5482#endif
Patrik Stridvallea584721998-11-01 16:22:07 +00005483/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005484 builtin and then its argument prototype would still apply. */
5485char gethostbyname ();
5486int
5487main ()
5488{
5489gethostbyname ();
5490 ;
5491 return 0;
5492}
5493_ACEOF
5494rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005495if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005496 (eval $ac_link) 2>&5
5497 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005499 (exit $ac_status); } &&
5500 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005502 (eval $ac_try) 2>&5
5503 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005505 (exit $ac_status); }; }; then
5506 ac_cv_lib_nsl_gethostbyname=yes
Patrik Stridvallea584721998-11-01 16:22:07 +00005507else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005508 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005509sed 's/^/| /' conftest.$ac_ext >&5
5510
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005511ac_cv_lib_nsl_gethostbyname=no
Patrik Stridvallea584721998-11-01 16:22:07 +00005512fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005513rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5514LIBS=$ac_check_lib_save_LIBS
Patrik Stridvallea584721998-11-01 16:22:07 +00005515fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005516echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005517echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5518if test $ac_cv_lib_nsl_gethostbyname = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005519 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005520#define HAVE_LIBNSL 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005521_ACEOF
Ron Recorde977d6c1999-09-05 12:32:05 +00005522
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005523 LIBS="-lnsl $LIBS"
5524
Ron Recorde977d6c1999-09-05 12:32:05 +00005525fi
5526
Patrik Stridvallea584721998-11-01 16:22:07 +00005527fi
Marcus Meissnerf070fda1999-04-24 12:02:14 +00005528done
5529
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005530
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005531for ac_func in connect
5532do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005533as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005534echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005535echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5536if eval "test \"\${$as_ac_var+set}\" = set"; then
5537 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005538else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005539 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005540#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005541/* confdefs.h. */
5542_ACEOF
5543cat confdefs.h >>conftest.$ac_ext
5544cat >>conftest.$ac_ext <<_ACEOF
5545/* end confdefs.h. */
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005546/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005547 which can conflict with char $ac_func (); below.
5548 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5549 <limits.h> exists even on freestanding compilers. */
5550#ifdef __STDC__
5551# include <limits.h>
5552#else
5553# include <assert.h>
5554#endif
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005555/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005556#ifdef __cplusplus
5557extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005558{
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005559#endif
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005560/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005561 builtin and then its argument prototype would still apply. */
5562char $ac_func ();
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005563/* The GNU C library defines this for functions which it implements
5564 to always fail with ENOSYS. Some functions are actually named
5565 something starting with __ and the normal name is an alias. */
5566#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5567choke me
5568#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005569char (*f) () = $ac_func;
5570#endif
5571#ifdef __cplusplus
5572}
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005573#endif
5574
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005575int
5576main ()
5577{
5578return f != $ac_func;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005579 ;
5580 return 0;
5581}
5582_ACEOF
5583rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005584if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005585 (eval $ac_link) 2>&5
5586 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005588 (exit $ac_status); } &&
5589 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005591 (eval $ac_try) 2>&5
5592 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005594 (exit $ac_status); }; }; then
5595 eval "$as_ac_var=yes"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005596else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005597 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005598sed 's/^/| /' conftest.$ac_ext >&5
5599
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005600eval "$as_ac_var=no"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005601fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005602rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005603fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005604echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005605echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5606if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005607 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005608#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005609_ACEOF
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005610
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005611else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005612
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005613echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005614echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5615if test "${ac_cv_lib_socket_connect+set}" = set; then
5616 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005617else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005618 ac_check_lib_save_LIBS=$LIBS
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005619LIBS="-lsocket $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005620cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005621#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005622/* confdefs.h. */
5623_ACEOF
5624cat confdefs.h >>conftest.$ac_ext
5625cat >>conftest.$ac_ext <<_ACEOF
5626/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005627
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005628/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005629#ifdef __cplusplus
5630extern "C"
5631#endif
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005632/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005633 builtin and then its argument prototype would still apply. */
5634char connect ();
5635int
5636main ()
5637{
5638connect ();
5639 ;
5640 return 0;
5641}
5642_ACEOF
5643rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005644if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005645 (eval $ac_link) 2>&5
5646 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005648 (exit $ac_status); } &&
5649 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005651 (eval $ac_try) 2>&5
5652 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005654 (exit $ac_status); }; }; then
5655 ac_cv_lib_socket_connect=yes
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005656else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005657 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005658sed 's/^/| /' conftest.$ac_ext >&5
5659
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005660ac_cv_lib_socket_connect=no
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005661fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005662rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5663LIBS=$ac_check_lib_save_LIBS
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005664fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005665echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005666echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5667if test $ac_cv_lib_socket_connect = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005668 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005669#define HAVE_LIBSOCKET 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005670_ACEOF
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005671
5672 LIBS="-lsocket $LIBS"
5673
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005674fi
5675
5676fi
Marcus Meissnerf070fda1999-04-24 12:02:14 +00005677done
5678
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005679
Alexandre Julliardc5552742002-04-03 20:24:44 +00005680for ac_func in inet_aton
5681do
5682as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005683echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00005684echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5685if eval "test \"\${$as_ac_var+set}\" = set"; then
5686 echo $ECHO_N "(cached) $ECHO_C" >&6
5687else
5688 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005689#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005690/* confdefs.h. */
5691_ACEOF
5692cat confdefs.h >>conftest.$ac_ext
5693cat >>conftest.$ac_ext <<_ACEOF
5694/* end confdefs.h. */
Alexandre Julliardc5552742002-04-03 20:24:44 +00005695/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005696 which can conflict with char $ac_func (); below.
5697 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5698 <limits.h> exists even on freestanding compilers. */
5699#ifdef __STDC__
5700# include <limits.h>
5701#else
5702# include <assert.h>
5703#endif
Alexandre Julliardc5552742002-04-03 20:24:44 +00005704/* Override any gcc2 internal prototype to avoid an error. */
5705#ifdef __cplusplus
5706extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005707{
Alexandre Julliardc5552742002-04-03 20:24:44 +00005708#endif
5709/* We use char because int might match the return type of a gcc2
5710 builtin and then its argument prototype would still apply. */
5711char $ac_func ();
Alexandre Julliardc5552742002-04-03 20:24:44 +00005712/* The GNU C library defines this for functions which it implements
5713 to always fail with ENOSYS. Some functions are actually named
5714 something starting with __ and the normal name is an alias. */
5715#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5716choke me
5717#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005718char (*f) () = $ac_func;
5719#endif
5720#ifdef __cplusplus
5721}
Alexandre Julliardc5552742002-04-03 20:24:44 +00005722#endif
5723
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005724int
5725main ()
5726{
5727return f != $ac_func;
Alexandre Julliardc5552742002-04-03 20:24:44 +00005728 ;
5729 return 0;
5730}
5731_ACEOF
5732rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005733if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00005734 (eval $ac_link) 2>&5
5735 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00005737 (exit $ac_status); } &&
5738 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00005740 (eval $ac_try) 2>&5
5741 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00005743 (exit $ac_status); }; }; then
5744 eval "$as_ac_var=yes"
5745else
5746 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005747sed 's/^/| /' conftest.$ac_ext >&5
5748
Alexandre Julliardc5552742002-04-03 20:24:44 +00005749eval "$as_ac_var=no"
5750fi
5751rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5752fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005753echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00005754echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5755if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005756 cat >>confdefs.h <<_ACEOF
Alexandre Julliardc5552742002-04-03 20:24:44 +00005757#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005758_ACEOF
Alexandre Julliardc5552742002-04-03 20:24:44 +00005759
5760else
5761
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005762echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00005763echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
5764if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
5765 echo $ECHO_N "(cached) $ECHO_C" >&6
5766else
5767 ac_check_lib_save_LIBS=$LIBS
5768LIBS="-lresolv $LIBS"
5769cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005770#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005771/* confdefs.h. */
5772_ACEOF
5773cat confdefs.h >>conftest.$ac_ext
5774cat >>conftest.$ac_ext <<_ACEOF
5775/* end confdefs.h. */
Francois Gouget3b943bc2002-04-01 21:05:15 +00005776
5777/* Override any gcc2 internal prototype to avoid an error. */
5778#ifdef __cplusplus
5779extern "C"
5780#endif
5781/* We use char because int might match the return type of a gcc2
5782 builtin and then its argument prototype would still apply. */
5783char inet_aton ();
5784int
5785main ()
5786{
5787inet_aton ();
5788 ;
5789 return 0;
5790}
5791_ACEOF
5792rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005793if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00005794 (eval $ac_link) 2>&5
5795 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00005797 (exit $ac_status); } &&
5798 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00005800 (eval $ac_try) 2>&5
5801 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00005803 (exit $ac_status); }; }; then
5804 ac_cv_lib_resolv_inet_aton=yes
5805else
5806 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005807sed 's/^/| /' conftest.$ac_ext >&5
5808
Francois Gouget3b943bc2002-04-01 21:05:15 +00005809ac_cv_lib_resolv_inet_aton=no
5810fi
5811rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5812LIBS=$ac_check_lib_save_LIBS
5813fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005814echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00005815echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
5816if test $ac_cv_lib_resolv_inet_aton = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005817 cat >>confdefs.h <<_ACEOF
Francois Gouget3b943bc2002-04-01 21:05:15 +00005818#define HAVE_LIBRESOLV 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005819_ACEOF
Francois Gouget3b943bc2002-04-01 21:05:15 +00005820
5821 LIBS="-lresolv $LIBS"
5822
5823fi
5824
Alexandre Julliardc5552742002-04-03 20:24:44 +00005825fi
5826done
5827
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005828
5829echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005830echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
5831if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
5832 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005833else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005834 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005835LIBS="-lxpg4 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005836cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005837#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005838/* confdefs.h. */
5839_ACEOF
5840cat confdefs.h >>conftest.$ac_ext
5841cat >>conftest.$ac_ext <<_ACEOF
5842/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005843
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005844/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005845#ifdef __cplusplus
5846extern "C"
5847#endif
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005848/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005849 builtin and then its argument prototype would still apply. */
5850char _xpg4_setrunelocale ();
5851int
5852main ()
5853{
5854_xpg4_setrunelocale ();
5855 ;
5856 return 0;
5857}
5858_ACEOF
5859rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005860if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005861 (eval $ac_link) 2>&5
5862 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005864 (exit $ac_status); } &&
5865 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005867 (eval $ac_try) 2>&5
5868 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005870 (exit $ac_status); }; }; then
5871 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005872else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005873 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005874sed 's/^/| /' conftest.$ac_ext >&5
5875
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005876ac_cv_lib_xpg4__xpg4_setrunelocale=no
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005877fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005878rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5879LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005880fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005881echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005882echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
5883if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005884 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005885#define HAVE_LIBXPG4 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005886_ACEOF
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005887
5888 LIBS="-lxpg4 $LIBS"
5889
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005890fi
5891
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005892
5893echo "$as_me:$LINENO: checking for mmap in -lmmap" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005894echo $ECHO_N "checking for mmap in -lmmap... $ECHO_C" >&6
5895if test "${ac_cv_lib_mmap_mmap+set}" = set; then
5896 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005897else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005898 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005899LIBS="-lmmap $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005900cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005901#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005902/* confdefs.h. */
5903_ACEOF
5904cat confdefs.h >>conftest.$ac_ext
5905cat >>conftest.$ac_ext <<_ACEOF
5906/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005907
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005908/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005909#ifdef __cplusplus
5910extern "C"
5911#endif
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005912/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005913 builtin and then its argument prototype would still apply. */
5914char mmap ();
5915int
5916main ()
5917{
5918mmap ();
5919 ;
5920 return 0;
5921}
5922_ACEOF
5923rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005924if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005925 (eval $ac_link) 2>&5
5926 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005928 (exit $ac_status); } &&
5929 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005931 (eval $ac_try) 2>&5
5932 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005934 (exit $ac_status); }; }; then
5935 ac_cv_lib_mmap_mmap=yes
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005936else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005937 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005938sed 's/^/| /' conftest.$ac_ext >&5
5939
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005940ac_cv_lib_mmap_mmap=no
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005941fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005942rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5943LIBS=$ac_check_lib_save_LIBS
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005944fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005945echo "$as_me:$LINENO: result: $ac_cv_lib_mmap_mmap" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005946echo "${ECHO_T}$ac_cv_lib_mmap_mmap" >&6
5947if test $ac_cv_lib_mmap_mmap = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005948 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005949#define HAVE_LIBMMAP 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005950_ACEOF
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005951
5952 LIBS="-lmmap $LIBS"
5953
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005954fi
5955
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005956
Alexandre Julliardfa3a5362002-05-09 01:49:54 +00005957JPEGLIB=""
Alexandre Julliard562089b2001-12-31 22:28:35 +00005958
Alexandre Julliard11af04e2002-10-10 03:48:04 +00005959echo "$as_me:$LINENO: checking for egrep" >&5
5960echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5961if test "${ac_cv_prog_egrep+set}" = set; then
5962 echo $ECHO_N "(cached) $ECHO_C" >&6
5963else
5964 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5965 then ac_cv_prog_egrep='grep -E'
5966 else ac_cv_prog_egrep='egrep'
5967 fi
5968fi
5969echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5970echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5971 EGREP=$ac_cv_prog_egrep
5972
5973
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005974echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5975echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5976if test "${ac_cv_header_stdc+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005977 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner2d7be871999-12-05 23:06:40 +00005978else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005979 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005980#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005981/* confdefs.h. */
5982_ACEOF
5983cat confdefs.h >>conftest.$ac_ext
5984cat >>conftest.$ac_ext <<_ACEOF
5985/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005986#include <stdlib.h>
5987#include <stdarg.h>
5988#include <string.h>
5989#include <float.h>
5990
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005991int
5992main ()
5993{
5994
5995 ;
5996 return 0;
5997}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005998_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005999rm -f conftest.$ac_objext
6000if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6001 (eval $ac_compile) 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006002 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006004 (exit $ac_status); } &&
6005 { ac_try='test -s conftest.$ac_objext'
6006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6007 (eval $ac_try) 2>&5
6008 ac_status=$?
6009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010 (exit $ac_status); }; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006011 ac_cv_header_stdc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006012else
6013 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006014sed 's/^/| /' conftest.$ac_ext >&5
6015
6016ac_cv_header_stdc=no
Marcus Meissner2d7be871999-12-05 23:06:40 +00006017fi
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006018rm -f conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006019
6020if test $ac_cv_header_stdc = yes; then
6021 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6022 cat >conftest.$ac_ext <<_ACEOF
6023#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006024/* confdefs.h. */
6025_ACEOF
6026cat confdefs.h >>conftest.$ac_ext
6027cat >>conftest.$ac_ext <<_ACEOF
6028/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006029#include <string.h>
6030
6031_ACEOF
6032if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +00006033 $EGREP "memchr" >/dev/null 2>&1; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006034 :
6035else
6036 ac_cv_header_stdc=no
Marcus Meissner2d7be871999-12-05 23:06:40 +00006037fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006038rm -f conftest*
6039
6040fi
6041
6042if test $ac_cv_header_stdc = yes; then
6043 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6044 cat >conftest.$ac_ext <<_ACEOF
6045#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006046/* confdefs.h. */
6047_ACEOF
6048cat confdefs.h >>conftest.$ac_ext
6049cat >>conftest.$ac_ext <<_ACEOF
6050/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006051#include <stdlib.h>
6052
6053_ACEOF
6054if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +00006055 $EGREP "free" >/dev/null 2>&1; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006056 :
6057else
6058 ac_cv_header_stdc=no
6059fi
6060rm -f conftest*
6061
6062fi
6063
6064if test $ac_cv_header_stdc = yes; then
6065 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6066 if test "$cross_compiling" = yes; then
6067 :
6068else
6069 cat >conftest.$ac_ext <<_ACEOF
6070#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006071/* confdefs.h. */
6072_ACEOF
6073cat confdefs.h >>conftest.$ac_ext
6074cat >>conftest.$ac_ext <<_ACEOF
6075/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006076#include <ctype.h>
6077#if ((' ' & 0x0FF) == 0x020)
6078# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6079# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6080#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006081# define ISLOWER(c) \
6082 (('a' <= (c) && (c) <= 'i') \
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006083 || ('j' <= (c) && (c) <= 'r') \
6084 || ('s' <= (c) && (c) <= 'z'))
6085# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6086#endif
6087
6088#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6089int
6090main ()
6091{
6092 int i;
6093 for (i = 0; i < 256; i++)
6094 if (XOR (islower (i), ISLOWER (i))
6095 || toupper (i) != TOUPPER (i))
6096 exit(2);
6097 exit (0);
6098}
6099_ACEOF
6100rm -f conftest$ac_exeext
6101if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6102 (eval $ac_link) 2>&5
6103 ac_status=$?
6104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6107 (eval $ac_try) 2>&5
6108 ac_status=$?
6109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110 (exit $ac_status); }; }; then
6111 :
6112else
6113 echo "$as_me: program exited with status $ac_status" >&5
6114echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006115sed 's/^/| /' conftest.$ac_ext >&5
6116
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006117( exit $ac_status )
6118ac_cv_header_stdc=no
6119fi
Alexandre Julliard11af04e2002-10-10 03:48:04 +00006120rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006121fi
6122fi
6123fi
6124echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6125echo "${ECHO_T}$ac_cv_header_stdc" >&6
6126if test $ac_cv_header_stdc = yes; then
6127
6128cat >>confdefs.h <<\_ACEOF
6129#define STDC_HEADERS 1
6130_ACEOF
6131
6132fi
6133
6134# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6145 inttypes.h stdint.h unistd.h
6146do
6147as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6148echo "$as_me:$LINENO: checking for $ac_header" >&5
6149echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6150if eval "test \"\${$as_ac_Header+set}\" = set"; then
6151 echo $ECHO_N "(cached) $ECHO_C" >&6
6152else
6153 cat >conftest.$ac_ext <<_ACEOF
6154#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006155/* confdefs.h. */
6156_ACEOF
6157cat confdefs.h >>conftest.$ac_ext
6158cat >>conftest.$ac_ext <<_ACEOF
6159/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006160$ac_includes_default
6161
6162#include <$ac_header>
6163_ACEOF
6164rm -f conftest.$ac_objext
6165if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6166 (eval $ac_compile) 2>&5
6167 ac_status=$?
6168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169 (exit $ac_status); } &&
6170 { ac_try='test -s conftest.$ac_objext'
6171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6172 (eval $ac_try) 2>&5
6173 ac_status=$?
6174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175 (exit $ac_status); }; }; then
6176 eval "$as_ac_Header=yes"
6177else
6178 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006179sed 's/^/| /' conftest.$ac_ext >&5
6180
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006181eval "$as_ac_Header=no"
6182fi
6183rm -f conftest.$ac_objext conftest.$ac_ext
6184fi
6185echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006186echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6187if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006188 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006189#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006190_ACEOF
6191
6192fi
6193
6194done
6195
6196
6197
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006198for ac_header in jpeglib.h
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006199do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006200as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006201if eval "test \"\${$as_ac_Header+set}\" = set"; then
6202 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006203echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6204if eval "test \"\${$as_ac_Header+set}\" = set"; then
6205 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006206fi
6207echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6208echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006209else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006210 # Is the header compilable?
6211echo "$as_me:$LINENO: checking $ac_header usability" >&5
6212echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6213cat >conftest.$ac_ext <<_ACEOF
6214#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006215/* confdefs.h. */
6216_ACEOF
6217cat confdefs.h >>conftest.$ac_ext
6218cat >>conftest.$ac_ext <<_ACEOF
6219/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006220$ac_includes_default
6221#include <$ac_header>
6222_ACEOF
6223rm -f conftest.$ac_objext
6224if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6225 (eval $ac_compile) 2>&5
6226 ac_status=$?
6227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228 (exit $ac_status); } &&
6229 { ac_try='test -s conftest.$ac_objext'
6230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6231 (eval $ac_try) 2>&5
6232 ac_status=$?
6233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234 (exit $ac_status); }; }; then
6235 ac_header_compiler=yes
6236else
6237 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006238sed 's/^/| /' conftest.$ac_ext >&5
6239
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006240ac_header_compiler=no
6241fi
6242rm -f conftest.$ac_objext conftest.$ac_ext
6243echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6244echo "${ECHO_T}$ac_header_compiler" >&6
6245
6246# Is the header present?
6247echo "$as_me:$LINENO: checking $ac_header presence" >&5
6248echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6249cat >conftest.$ac_ext <<_ACEOF
6250#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006251/* confdefs.h. */
6252_ACEOF
6253cat confdefs.h >>conftest.$ac_ext
6254cat >>conftest.$ac_ext <<_ACEOF
6255/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006256#include <$ac_header>
6257_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006258if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006259 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6260 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00006261 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006262 rm -f conftest.er1
6263 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006265 (exit $ac_status); } >/dev/null; then
6266 if test -s conftest.err; then
6267 ac_cpp_err=$ac_c_preproc_warn_flag
6268 else
6269 ac_cpp_err=
6270 fi
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006271else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006272 ac_cpp_err=yes
6273fi
6274if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006275 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006276else
6277 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006278sed 's/^/| /' conftest.$ac_ext >&5
6279
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006280 ac_header_preproc=no
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006281fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006282rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006283echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6284echo "${ECHO_T}$ac_header_preproc" >&6
6285
6286# So? What about this header?
6287case $ac_header_compiler:$ac_header_preproc in
6288 yes:no )
6289 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6290echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6291 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006292echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6293 (
6294 cat <<\_ASBOX
6295## ------------------------------------ ##
6296## Report this to bug-autoconf@gnu.org. ##
6297## ------------------------------------ ##
6298_ASBOX
6299 ) |
6300 sed "s/^/$as_me: WARNING: /" >&2
6301 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006302 no:yes )
6303 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6304echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6305 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6306echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6307 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006308echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6309 (
6310 cat <<\_ASBOX
6311## ------------------------------------ ##
6312## Report this to bug-autoconf@gnu.org. ##
6313## ------------------------------------ ##
6314_ASBOX
6315 ) |
6316 sed "s/^/$as_me: WARNING: /" >&2
6317 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006318esac
6319echo "$as_me:$LINENO: checking for $ac_header" >&5
6320echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6321if eval "test \"\${$as_ac_Header+set}\" = set"; then
6322 echo $ECHO_N "(cached) $ECHO_C" >&6
6323else
6324 eval "$as_ac_Header=$ac_header_preproc"
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006325fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006326echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006327echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006328
6329fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006330if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006331 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006332#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006333_ACEOF
6334 echo "$as_me:$LINENO: checking for jpeg_start_decompress in -ljpeg" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006335echo $ECHO_N "checking for jpeg_start_decompress in -ljpeg... $ECHO_C" >&6
6336if test "${ac_cv_lib_jpeg_jpeg_start_decompress+set}" = set; then
6337 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006338else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006339 ac_check_lib_save_LIBS=$LIBS
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006340LIBS="-ljpeg $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006341cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006342#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006343/* confdefs.h. */
6344_ACEOF
6345cat confdefs.h >>conftest.$ac_ext
6346cat >>conftest.$ac_ext <<_ACEOF
6347/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006348
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006349/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006350#ifdef __cplusplus
6351extern "C"
6352#endif
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006353/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006354 builtin and then its argument prototype would still apply. */
6355char jpeg_start_decompress ();
6356int
6357main ()
6358{
6359jpeg_start_decompress ();
6360 ;
6361 return 0;
6362}
6363_ACEOF
6364rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006365if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006366 (eval $ac_link) 2>&5
6367 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006369 (exit $ac_status); } &&
6370 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006372 (eval $ac_try) 2>&5
6373 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006375 (exit $ac_status); }; }; then
6376 ac_cv_lib_jpeg_jpeg_start_decompress=yes
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006377else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006378 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006379sed 's/^/| /' conftest.$ac_ext >&5
6380
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006381ac_cv_lib_jpeg_jpeg_start_decompress=no
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006382fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006383rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6384LIBS=$ac_check_lib_save_LIBS
6385fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006386echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_start_decompress" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006387echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_decompress" >&6
6388if test $ac_cv_lib_jpeg_jpeg_start_decompress = yes; then
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006389
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006390cat >>confdefs.h <<\_ACEOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006391#define HAVE_LIBJPEG 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006392_ACEOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006393
6394 JPEGLIB="-ljpeg"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006395
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006396fi
6397
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006398
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006399fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006400
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006401done
6402
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006403
Marcus Meissner728bedc2003-01-09 06:04:33 +00006404GIFLIB=""
6405
6406
6407for ac_header in gif_lib.h
6408do
6409as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6410if eval "test \"\${$as_ac_Header+set}\" = set"; then
6411 echo "$as_me:$LINENO: checking for $ac_header" >&5
6412echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6413if eval "test \"\${$as_ac_Header+set}\" = set"; then
6414 echo $ECHO_N "(cached) $ECHO_C" >&6
6415fi
6416echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6417echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6418else
6419 # Is the header compilable?
6420echo "$as_me:$LINENO: checking $ac_header usability" >&5
6421echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6422cat >conftest.$ac_ext <<_ACEOF
6423#line $LINENO "configure"
6424/* confdefs.h. */
6425_ACEOF
6426cat confdefs.h >>conftest.$ac_ext
6427cat >>conftest.$ac_ext <<_ACEOF
6428/* end confdefs.h. */
6429$ac_includes_default
6430#include <$ac_header>
6431_ACEOF
6432rm -f conftest.$ac_objext
6433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6434 (eval $ac_compile) 2>&5
6435 ac_status=$?
6436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437 (exit $ac_status); } &&
6438 { ac_try='test -s conftest.$ac_objext'
6439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6440 (eval $ac_try) 2>&5
6441 ac_status=$?
6442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443 (exit $ac_status); }; }; then
6444 ac_header_compiler=yes
6445else
6446 echo "$as_me: failed program was:" >&5
6447sed 's/^/| /' conftest.$ac_ext >&5
6448
6449ac_header_compiler=no
6450fi
6451rm -f conftest.$ac_objext conftest.$ac_ext
6452echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6453echo "${ECHO_T}$ac_header_compiler" >&6
6454
6455# Is the header present?
6456echo "$as_me:$LINENO: checking $ac_header presence" >&5
6457echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6458cat >conftest.$ac_ext <<_ACEOF
6459#line $LINENO "configure"
6460/* confdefs.h. */
6461_ACEOF
6462cat confdefs.h >>conftest.$ac_ext
6463cat >>conftest.$ac_ext <<_ACEOF
6464/* end confdefs.h. */
6465#include <$ac_header>
6466_ACEOF
6467if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6468 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6469 ac_status=$?
6470 grep -v '^ *+' conftest.er1 >conftest.err
6471 rm -f conftest.er1
6472 cat conftest.err >&5
6473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474 (exit $ac_status); } >/dev/null; then
6475 if test -s conftest.err; then
6476 ac_cpp_err=$ac_c_preproc_warn_flag
6477 else
6478 ac_cpp_err=
6479 fi
6480else
6481 ac_cpp_err=yes
6482fi
6483if test -z "$ac_cpp_err"; then
6484 ac_header_preproc=yes
6485else
6486 echo "$as_me: failed program was:" >&5
6487sed 's/^/| /' conftest.$ac_ext >&5
6488
6489 ac_header_preproc=no
6490fi
6491rm -f conftest.err conftest.$ac_ext
6492echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6493echo "${ECHO_T}$ac_header_preproc" >&6
6494
6495# So? What about this header?
6496case $ac_header_compiler:$ac_header_preproc in
6497 yes:no )
6498 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6499echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6500 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6501echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6502 (
6503 cat <<\_ASBOX
6504## ------------------------------------ ##
6505## Report this to bug-autoconf@gnu.org. ##
6506## ------------------------------------ ##
6507_ASBOX
6508 ) |
6509 sed "s/^/$as_me: WARNING: /" >&2
6510 ;;
6511 no:yes )
6512 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6513echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6514 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6515echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6516 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6517echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6518 (
6519 cat <<\_ASBOX
6520## ------------------------------------ ##
6521## Report this to bug-autoconf@gnu.org. ##
6522## ------------------------------------ ##
6523_ASBOX
6524 ) |
6525 sed "s/^/$as_me: WARNING: /" >&2
6526 ;;
6527esac
6528echo "$as_me:$LINENO: checking for $ac_header" >&5
6529echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6530if eval "test \"\${$as_ac_Header+set}\" = set"; then
6531 echo $ECHO_N "(cached) $ECHO_C" >&6
6532else
6533 eval "$as_ac_Header=$ac_header_preproc"
6534fi
6535echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6536echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6537
6538fi
6539if test `eval echo '${'$as_ac_Header'}'` = yes; then
6540 cat >>confdefs.h <<_ACEOF
6541#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6542_ACEOF
6543 echo "$as_me:$LINENO: checking for DGifOpen in -lungif" >&5
6544echo $ECHO_N "checking for DGifOpen in -lungif... $ECHO_C" >&6
6545if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then
6546 echo $ECHO_N "(cached) $ECHO_C" >&6
6547else
6548 ac_check_lib_save_LIBS=$LIBS
6549LIBS="-lungif $LIBS"
6550cat >conftest.$ac_ext <<_ACEOF
6551#line $LINENO "configure"
6552/* confdefs.h. */
6553_ACEOF
6554cat confdefs.h >>conftest.$ac_ext
6555cat >>conftest.$ac_ext <<_ACEOF
6556/* end confdefs.h. */
6557
6558/* Override any gcc2 internal prototype to avoid an error. */
6559#ifdef __cplusplus
6560extern "C"
6561#endif
6562/* We use char because int might match the return type of a gcc2
6563 builtin and then its argument prototype would still apply. */
6564char DGifOpen ();
6565int
6566main ()
6567{
6568DGifOpen ();
6569 ;
6570 return 0;
6571}
6572_ACEOF
6573rm -f conftest.$ac_objext conftest$ac_exeext
6574if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6575 (eval $ac_link) 2>&5
6576 ac_status=$?
6577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578 (exit $ac_status); } &&
6579 { ac_try='test -s conftest$ac_exeext'
6580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6581 (eval $ac_try) 2>&5
6582 ac_status=$?
6583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584 (exit $ac_status); }; }; then
6585 ac_cv_lib_ungif_DGifOpen=yes
6586else
6587 echo "$as_me: failed program was:" >&5
6588sed 's/^/| /' conftest.$ac_ext >&5
6589
6590ac_cv_lib_ungif_DGifOpen=no
6591fi
6592rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6593LIBS=$ac_check_lib_save_LIBS
6594fi
6595echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_DGifOpen" >&5
6596echo "${ECHO_T}$ac_cv_lib_ungif_DGifOpen" >&6
6597if test $ac_cv_lib_ungif_DGifOpen = yes; then
6598
6599cat >>confdefs.h <<\_ACEOF
6600#define HAVE_LIBGIF 1
6601_ACEOF
6602
6603 GIFLIB="-lungif"
6604else
6605 echo "$as_me:$LINENO: checking for DGifOpen in -lgif" >&5
6606echo $ECHO_N "checking for DGifOpen in -lgif... $ECHO_C" >&6
6607if test "${ac_cv_lib_gif_DGifOpen+set}" = set; then
6608 echo $ECHO_N "(cached) $ECHO_C" >&6
6609else
6610 ac_check_lib_save_LIBS=$LIBS
6611LIBS="-lgif $LIBS"
6612cat >conftest.$ac_ext <<_ACEOF
6613#line $LINENO "configure"
6614/* confdefs.h. */
6615_ACEOF
6616cat confdefs.h >>conftest.$ac_ext
6617cat >>conftest.$ac_ext <<_ACEOF
6618/* end confdefs.h. */
6619
6620/* Override any gcc2 internal prototype to avoid an error. */
6621#ifdef __cplusplus
6622extern "C"
6623#endif
6624/* We use char because int might match the return type of a gcc2
6625 builtin and then its argument prototype would still apply. */
6626char DGifOpen ();
6627int
6628main ()
6629{
6630DGifOpen ();
6631 ;
6632 return 0;
6633}
6634_ACEOF
6635rm -f conftest.$ac_objext conftest$ac_exeext
6636if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6637 (eval $ac_link) 2>&5
6638 ac_status=$?
6639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640 (exit $ac_status); } &&
6641 { ac_try='test -s conftest$ac_exeext'
6642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6643 (eval $ac_try) 2>&5
6644 ac_status=$?
6645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646 (exit $ac_status); }; }; then
6647 ac_cv_lib_gif_DGifOpen=yes
6648else
6649 echo "$as_me: failed program was:" >&5
6650sed 's/^/| /' conftest.$ac_ext >&5
6651
6652ac_cv_lib_gif_DGifOpen=no
6653fi
6654rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6655LIBS=$ac_check_lib_save_LIBS
6656fi
6657echo "$as_me:$LINENO: result: $ac_cv_lib_gif_DGifOpen" >&5
6658echo "${ECHO_T}$ac_cv_lib_gif_DGifOpen" >&6
6659if test $ac_cv_lib_gif_DGifOpen = yes; then
6660 cat >>confdefs.h <<\_ACEOF
6661#define HAVE_LIBGIF 1
6662_ACEOF
6663
6664 GIFLIB="-lgif"
6665fi
6666
6667fi
6668
6669fi
6670
6671done
6672
6673
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006674
6675
6676
Patrik Stridvall2941a212000-04-25 20:34:22 +00006677XFILES=""
Marcus Meissner10ad97c2000-04-09 14:30:50 +00006678
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00006679OPENGLFILES=""
6680
Marcus Meissnerb63ab442001-06-08 19:02:57 +00006681GLU32FILES=""
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +00006682
6683OPENGL_LIBS=""
Patrik Stridvallea584721998-11-01 16:22:07 +00006684if test "$have_x" = "yes"
6685then
Patrik Stridvall24110281999-02-04 10:09:54 +00006686 XLIB="-lXext -lX11"
Ove Kaaven1eb593c1999-02-14 09:34:46 +00006687 ac_save_CPPFLAGS="$CPPFLAGS"
6688 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
Patrik Stridvallea584721998-11-01 16:22:07 +00006689
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006690
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006691for ac_header in X11/Xlib.h
Lionel Ulmera1d6d241999-01-30 15:54:43 +00006692do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006693as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006694if eval "test \"\${$as_ac_Header+set}\" = set"; then
6695 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006696echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6697if eval "test \"\${$as_ac_Header+set}\" = set"; then
6698 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006699fi
6700echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6701echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Lionel Ulmera1d6d241999-01-30 15:54:43 +00006702else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006703 # Is the header compilable?
6704echo "$as_me:$LINENO: checking $ac_header usability" >&5
6705echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6706cat >conftest.$ac_ext <<_ACEOF
6707#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006708/* confdefs.h. */
6709_ACEOF
6710cat confdefs.h >>conftest.$ac_ext
6711cat >>conftest.$ac_ext <<_ACEOF
6712/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006713$ac_includes_default
6714#include <$ac_header>
6715_ACEOF
6716rm -f conftest.$ac_objext
6717if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6718 (eval $ac_compile) 2>&5
6719 ac_status=$?
6720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6721 (exit $ac_status); } &&
6722 { ac_try='test -s conftest.$ac_objext'
6723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6724 (eval $ac_try) 2>&5
6725 ac_status=$?
6726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6727 (exit $ac_status); }; }; then
6728 ac_header_compiler=yes
6729else
6730 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006731sed 's/^/| /' conftest.$ac_ext >&5
6732
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006733ac_header_compiler=no
6734fi
6735rm -f conftest.$ac_objext conftest.$ac_ext
6736echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6737echo "${ECHO_T}$ac_header_compiler" >&6
6738
6739# Is the header present?
6740echo "$as_me:$LINENO: checking $ac_header presence" >&5
6741echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6742cat >conftest.$ac_ext <<_ACEOF
6743#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006744/* confdefs.h. */
6745_ACEOF
6746cat confdefs.h >>conftest.$ac_ext
6747cat >>conftest.$ac_ext <<_ACEOF
6748/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006749#include <$ac_header>
6750_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006751if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006752 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6753 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00006754 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006755 rm -f conftest.er1
6756 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006758 (exit $ac_status); } >/dev/null; then
6759 if test -s conftest.err; then
6760 ac_cpp_err=$ac_c_preproc_warn_flag
6761 else
6762 ac_cpp_err=
6763 fi
Lionel Ulmera1d6d241999-01-30 15:54:43 +00006764else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006765 ac_cpp_err=yes
6766fi
6767if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006768 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006769else
6770 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006771sed 's/^/| /' conftest.$ac_ext >&5
6772
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006773 ac_header_preproc=no
Lionel Ulmera1d6d241999-01-30 15:54:43 +00006774fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006775rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006776echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6777echo "${ECHO_T}$ac_header_preproc" >&6
6778
6779# So? What about this header?
6780case $ac_header_compiler:$ac_header_preproc in
6781 yes:no )
6782 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6783echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6784 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006785echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6786 (
6787 cat <<\_ASBOX
6788## ------------------------------------ ##
6789## Report this to bug-autoconf@gnu.org. ##
6790## ------------------------------------ ##
6791_ASBOX
6792 ) |
6793 sed "s/^/$as_me: WARNING: /" >&2
6794 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006795 no:yes )
6796 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6797echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6798 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6799echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6800 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006801echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6802 (
6803 cat <<\_ASBOX
6804## ------------------------------------ ##
6805## Report this to bug-autoconf@gnu.org. ##
6806## ------------------------------------ ##
6807_ASBOX
6808 ) |
6809 sed "s/^/$as_me: WARNING: /" >&2
6810 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006811esac
6812echo "$as_me:$LINENO: checking for $ac_header" >&5
6813echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6814if eval "test \"\${$as_ac_Header+set}\" = set"; then
6815 echo $ECHO_N "(cached) $ECHO_C" >&6
6816else
6817 eval "$as_ac_Header=$ac_header_preproc"
Lionel Ulmera1d6d241999-01-30 15:54:43 +00006818fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006819echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006820echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006821
6822fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006823if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006824 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006825#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006826_ACEOF
6827
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006828
6829for ac_header in X11/XKBlib.h
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006830do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006831as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Gregg Mattinson044b5c42002-07-19 03:16:51 +00006832echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006833echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6834if eval "test \"\${$as_ac_Header+set}\" = set"; then
6835 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00006836else
Gregg Mattinson044b5c42002-07-19 03:16:51 +00006837 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006838#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006839/* confdefs.h. */
6840_ACEOF
6841cat confdefs.h >>conftest.$ac_ext
6842cat >>conftest.$ac_ext <<_ACEOF
6843/* end confdefs.h. */
Gregg Mattinson044b5c42002-07-19 03:16:51 +00006844#include <X11/Xlib.h>
6845
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006846#include <$ac_header>
6847_ACEOF
6848rm -f conftest.$ac_objext
6849if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6850 (eval $ac_compile) 2>&5
6851 ac_status=$?
6852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6853 (exit $ac_status); } &&
6854 { ac_try='test -s conftest.$ac_objext'
6855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6856 (eval $ac_try) 2>&5
6857 ac_status=$?
6858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6859 (exit $ac_status); }; }; then
Gregg Mattinson044b5c42002-07-19 03:16:51 +00006860 eval "$as_ac_Header=yes"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006861else
6862 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006863sed 's/^/| /' conftest.$ac_ext >&5
6864
Gregg Mattinson044b5c42002-07-19 03:16:51 +00006865eval "$as_ac_Header=no"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006866fi
6867rm -f conftest.$ac_objext conftest.$ac_ext
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006868fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006869echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006870echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6871if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006872 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006873#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006874_ACEOF
6875 echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006876echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6
6877if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
6878 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00006879else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006880 ac_check_lib_save_LIBS=$LIBS
Ove Kaavenc90fb252001-01-02 22:39:14 +00006881LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006882cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006883#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006884/* confdefs.h. */
6885_ACEOF
6886cat confdefs.h >>conftest.$ac_ext
6887cat >>conftest.$ac_ext <<_ACEOF
6888/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006889
Patrik Stridvall24110281999-02-04 10:09:54 +00006890/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006891#ifdef __cplusplus
6892extern "C"
6893#endif
Patrik Stridvall24110281999-02-04 10:09:54 +00006894/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006895 builtin and then its argument prototype would still apply. */
6896char XkbQueryExtension ();
6897int
6898main ()
6899{
6900XkbQueryExtension ();
6901 ;
6902 return 0;
6903}
6904_ACEOF
6905rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006906if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006907 (eval $ac_link) 2>&5
6908 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006910 (exit $ac_status); } &&
6911 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006913 (eval $ac_try) 2>&5
6914 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006916 (exit $ac_status); }; }; then
6917 ac_cv_lib_X11_XkbQueryExtension=yes
Patrik Stridvall24110281999-02-04 10:09:54 +00006918else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006919 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006920sed 's/^/| /' conftest.$ac_ext >&5
6921
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006922ac_cv_lib_X11_XkbQueryExtension=no
Patrik Stridvall24110281999-02-04 10:09:54 +00006923fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006924rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6925LIBS=$ac_check_lib_save_LIBS
6926fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006927echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006928echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6
6929if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
Patrik Stridvall24110281999-02-04 10:09:54 +00006930
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006931cat >>confdefs.h <<\_ACEOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00006932#define HAVE_XKB 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006933_ACEOF
Patrik Stridvall24110281999-02-04 10:09:54 +00006934
Patrik Stridvall24110281999-02-04 10:09:54 +00006935fi
6936
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006937
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006938else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006939 { echo "$as_me:$LINENO: WARNING: Xkb extension not found, Wine will be built without it" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006940echo "$as_me: WARNING: Xkb extension not found, Wine will be built without it" >&2;}
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006941fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006942
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006943done
6944
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006945
6946
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006947for ac_header in X11/extensions/XShm.h
Patrik Stridvall24110281999-02-04 10:09:54 +00006948do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006949as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006950echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006951echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6952if eval "test \"\${$as_ac_Header+set}\" = set"; then
6953 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00006954else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006955 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006956#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006957/* confdefs.h. */
6958_ACEOF
6959cat confdefs.h >>conftest.$ac_ext
6960cat >>conftest.$ac_ext <<_ACEOF
6961/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006962#include <X11/Xlib.h>
6963
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006964#include <$ac_header>
6965_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006966rm -f conftest.$ac_objext
6967if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6968 (eval $ac_compile) 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006969 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971 (exit $ac_status); } &&
6972 { ac_try='test -s conftest.$ac_objext'
6973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6974 (eval $ac_try) 2>&5
6975 ac_status=$?
6976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977 (exit $ac_status); }; }; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006978 eval "$as_ac_Header=yes"
6979else
6980 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006981sed 's/^/| /' conftest.$ac_ext >&5
6982
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006983eval "$as_ac_Header=no"
Patrik Stridvall24110281999-02-04 10:09:54 +00006984fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006985rm -f conftest.$ac_objext conftest.$ac_ext
Patrik Stridvall24110281999-02-04 10:09:54 +00006986fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006987echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006988echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6989if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006990 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006991#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006992_ACEOF
6993 echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006994echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6
6995if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
6996 echo $ECHO_N "(cached) $ECHO_C" >&6
Francois Jacques5b6879c2000-07-28 23:04:54 +00006997else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006998 ac_check_lib_save_LIBS=$LIBS
Francois Jacques5b6879c2000-07-28 23:04:54 +00006999LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007000cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007001#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007002/* confdefs.h. */
7003_ACEOF
7004cat confdefs.h >>conftest.$ac_ext
7005cat >>conftest.$ac_ext <<_ACEOF
7006/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007007
Francois Jacques5b6879c2000-07-28 23:04:54 +00007008/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007009#ifdef __cplusplus
7010extern "C"
7011#endif
Francois Jacques5b6879c2000-07-28 23:04:54 +00007012/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007013 builtin and then its argument prototype would still apply. */
7014char XShmQueryExtension ();
7015int
7016main ()
7017{
7018XShmQueryExtension ();
7019 ;
7020 return 0;
7021}
7022_ACEOF
7023rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007024if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007025 (eval $ac_link) 2>&5
7026 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007028 (exit $ac_status); } &&
7029 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007031 (eval $ac_try) 2>&5
7032 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007034 (exit $ac_status); }; }; then
7035 ac_cv_lib_Xext_XShmQueryExtension=yes
Francois Jacques5b6879c2000-07-28 23:04:54 +00007036else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007037 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007038sed 's/^/| /' conftest.$ac_ext >&5
7039
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007040ac_cv_lib_Xext_XShmQueryExtension=no
Francois Jacques5b6879c2000-07-28 23:04:54 +00007041fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007042rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7043LIBS=$ac_check_lib_save_LIBS
7044fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007045echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007046echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6
7047if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
Francois Jacques5b6879c2000-07-28 23:04:54 +00007048
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007049cat >>confdefs.h <<\_ACEOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00007050#define HAVE_LIBXXSHM 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007051_ACEOF
Francois Jacques5b6879c2000-07-28 23:04:54 +00007052
Francois Jacques5b6879c2000-07-28 23:04:54 +00007053fi
7054
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007055
Francois Jacques5b6879c2000-07-28 23:04:54 +00007056else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007057 { echo "$as_me:$LINENO: WARNING: XShm extension not found, Wine will be built without it" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007058echo "$as_me: WARNING: XShm extension not found, Wine will be built without it" >&2;}
Francois Jacques5b6879c2000-07-28 23:04:54 +00007059fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007060
Francois Jacques5b6879c2000-07-28 23:04:54 +00007061done
7062
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007063
7064
Gregg Mattinson044b5c42002-07-19 03:16:51 +00007065for ac_header in X11/Xutil.h
7066do
7067as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7068echo "$as_me:$LINENO: checking for $ac_header" >&5
7069echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7070if eval "test \"\${$as_ac_Header+set}\" = set"; then
7071 echo $ECHO_N "(cached) $ECHO_C" >&6
7072else
7073 cat >conftest.$ac_ext <<_ACEOF
7074#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007075/* confdefs.h. */
7076_ACEOF
7077cat confdefs.h >>conftest.$ac_ext
7078cat >>conftest.$ac_ext <<_ACEOF
7079/* end confdefs.h. */
Gregg Mattinson044b5c42002-07-19 03:16:51 +00007080#include <X11/Xlib.h>
7081
7082#include <$ac_header>
7083_ACEOF
7084rm -f conftest.$ac_objext
7085if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7086 (eval $ac_compile) 2>&5
7087 ac_status=$?
7088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089 (exit $ac_status); } &&
7090 { ac_try='test -s conftest.$ac_objext'
7091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7092 (eval $ac_try) 2>&5
7093 ac_status=$?
7094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7095 (exit $ac_status); }; }; then
7096 eval "$as_ac_Header=yes"
7097else
7098 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007099sed 's/^/| /' conftest.$ac_ext >&5
7100
Gregg Mattinson044b5c42002-07-19 03:16:51 +00007101eval "$as_ac_Header=no"
7102fi
7103rm -f conftest.$ac_objext conftest.$ac_ext
7104fi
7105echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7106echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7107if test `eval echo '${'$as_ac_Header'}'` = yes; then
7108 cat >>confdefs.h <<_ACEOF
7109#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7110_ACEOF
7111
7112fi
7113
7114done
7115
7116
7117
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007118for ac_header in X11/extensions/shape.h
Francois Jacques5b6879c2000-07-28 23:04:54 +00007119do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007120as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007121echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007122echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7123if eval "test \"\${$as_ac_Header+set}\" = set"; then
7124 echo $ECHO_N "(cached) $ECHO_C" >&6
Francois Jacques5b6879c2000-07-28 23:04:54 +00007125else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007126 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007127#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007128/* confdefs.h. */
7129_ACEOF
7130cat confdefs.h >>conftest.$ac_ext
7131cat >>conftest.$ac_ext <<_ACEOF
7132/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007133#include <X11/Xlib.h>
Gregg Mattinson044b5c42002-07-19 03:16:51 +00007134 #ifdef HAVE_X11_XUTIL_H
7135 # include <X11/Xutil.h>
7136 #endif
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007137
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007138#include <$ac_header>
7139_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007140rm -f conftest.$ac_objext
7141if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7142 (eval $ac_compile) 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007143 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7145 (exit $ac_status); } &&
7146 { ac_try='test -s conftest.$ac_objext'
7147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7148 (eval $ac_try) 2>&5
7149 ac_status=$?
7150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7151 (exit $ac_status); }; }; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007152 eval "$as_ac_Header=yes"
7153else
7154 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007155sed 's/^/| /' conftest.$ac_ext >&5
7156
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007157eval "$as_ac_Header=no"
Francois Jacques5b6879c2000-07-28 23:04:54 +00007158fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007159rm -f conftest.$ac_objext conftest.$ac_ext
Francois Jacques5b6879c2000-07-28 23:04:54 +00007160fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007161echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007162echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7163if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007164 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007165#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007166_ACEOF
7167 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007168echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
7169if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
7170 echo $ECHO_N "(cached) $ECHO_C" >&6
Ove Kaavenc90fb252001-01-02 22:39:14 +00007171else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007172 ac_check_lib_save_LIBS=$LIBS
Ove Kaavenc90fb252001-01-02 22:39:14 +00007173LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007174cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007175#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007176/* confdefs.h. */
7177_ACEOF
7178cat confdefs.h >>conftest.$ac_ext
7179cat >>conftest.$ac_ext <<_ACEOF
7180/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007181
Ove Kaavenc90fb252001-01-02 22:39:14 +00007182/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007183#ifdef __cplusplus
7184extern "C"
7185#endif
Ove Kaavenc90fb252001-01-02 22:39:14 +00007186/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007187 builtin and then its argument prototype would still apply. */
7188char XShapeQueryExtension ();
7189int
7190main ()
7191{
7192XShapeQueryExtension ();
7193 ;
7194 return 0;
7195}
7196_ACEOF
7197rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007198if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007199 (eval $ac_link) 2>&5
7200 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007202 (exit $ac_status); } &&
7203 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007205 (eval $ac_try) 2>&5
7206 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007208 (exit $ac_status); }; }; then
7209 ac_cv_lib_Xext_XShapeQueryExtension=yes
Ove Kaavenc90fb252001-01-02 22:39:14 +00007210else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007211 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007212sed 's/^/| /' conftest.$ac_ext >&5
7213
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007214ac_cv_lib_Xext_XShapeQueryExtension=no
Ove Kaavenc90fb252001-01-02 22:39:14 +00007215fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007216rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7217LIBS=$ac_check_lib_save_LIBS
7218fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007219echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007220echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
7221if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
Ove Kaavenc90fb252001-01-02 22:39:14 +00007222
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007223cat >>confdefs.h <<\_ACEOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00007224#define HAVE_LIBXSHAPE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007225_ACEOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00007226
Ove Kaavenc90fb252001-01-02 22:39:14 +00007227fi
7228
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007229
Ove Kaavenc90fb252001-01-02 22:39:14 +00007230else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007231 { echo "$as_me:$LINENO: WARNING: XShape extension not found, Wine will be built without it" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007232echo "$as_me: WARNING: XShape extension not found, Wine will be built without it" >&2;}
Ove Kaavenc90fb252001-01-02 22:39:14 +00007233fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007234
Ove Kaavenc90fb252001-01-02 22:39:14 +00007235done
7236
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007237
7238
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007239for ac_header in X11/extensions/xf86dga.h
Ove Kaavenc90fb252001-01-02 22:39:14 +00007240do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007241as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007242echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007243echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7244if eval "test \"\${$as_ac_Header+set}\" = set"; then
7245 echo $ECHO_N "(cached) $ECHO_C" >&6
Ove Kaavenc90fb252001-01-02 22:39:14 +00007246else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007247 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007248#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007249/* confdefs.h. */
7250_ACEOF
7251cat confdefs.h >>conftest.$ac_ext
7252cat >>conftest.$ac_ext <<_ACEOF
7253/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007254#include <X11/Xlib.h>
7255
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007256#include <$ac_header>
7257_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007258rm -f conftest.$ac_objext
7259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7260 (eval $ac_compile) 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007261 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263 (exit $ac_status); } &&
7264 { ac_try='test -s conftest.$ac_objext'
7265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7266 (eval $ac_try) 2>&5
7267 ac_status=$?
7268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7269 (exit $ac_status); }; }; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007270 eval "$as_ac_Header=yes"
7271else
7272 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007273sed 's/^/| /' conftest.$ac_ext >&5
7274
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007275eval "$as_ac_Header=no"
Ove Kaavenc90fb252001-01-02 22:39:14 +00007276fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007277rm -f conftest.$ac_objext conftest.$ac_ext
Ove Kaavenc90fb252001-01-02 22:39:14 +00007278fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007279echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007280echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7281if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007282 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007283#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007284_ACEOF
7285 echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007286echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
7287if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then
7288 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00007289else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007290 ac_check_lib_save_LIBS=$LIBS
Marcus Meissner10ad97c2000-04-09 14:30:50 +00007291LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00007292 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007293cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007294#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007295/* confdefs.h. */
7296_ACEOF
7297cat confdefs.h >>conftest.$ac_ext
7298cat >>conftest.$ac_ext <<_ACEOF
7299/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007300
Patrik Stridvall24110281999-02-04 10:09:54 +00007301/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007302#ifdef __cplusplus
7303extern "C"
7304#endif
Patrik Stridvall24110281999-02-04 10:09:54 +00007305/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007306 builtin and then its argument prototype would still apply. */
7307char XDGAQueryExtension ();
7308int
7309main ()
7310{
7311XDGAQueryExtension ();
7312 ;
7313 return 0;
7314}
7315_ACEOF
7316rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007317if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007318 (eval $ac_link) 2>&5
7319 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007321 (exit $ac_status); } &&
7322 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007324 (eval $ac_try) 2>&5
7325 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007327 (exit $ac_status); }; }; then
7328 ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes
Lionel Ulmerd94475b1999-09-20 18:42:46 +00007329else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007330 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007331sed 's/^/| /' conftest.$ac_ext >&5
7332
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007333ac_cv_lib_Xxf86dga_XDGAQueryExtension=no
Lionel Ulmerd94475b1999-09-20 18:42:46 +00007334fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007335rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7336LIBS=$ac_check_lib_save_LIBS
7337fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007338echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007339echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6
7340if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then
Lionel Ulmerd94475b1999-09-20 18:42:46 +00007341
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007342cat >>confdefs.h <<\_ACEOF
Lionel Ulmerd94475b1999-09-20 18:42:46 +00007343#define HAVE_LIBXXF86DGA2 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007344_ACEOF
Marcus Meissner10ad97c2000-04-09 14:30:50 +00007345
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00007346 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007347
Lionel Ulmerd94475b1999-09-20 18:42:46 +00007348else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007349 echo "$as_me:$LINENO: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007350echo $ECHO_N "checking for XF86DGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
7351if test "${ac_cv_lib_Xxf86dga_XF86DGAQueryExtension+set}" = set; then
7352 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmerd94475b1999-09-20 18:42:46 +00007353else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007354 ac_check_lib_save_LIBS=$LIBS
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00007355LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
7356 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007357cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007358#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007359/* confdefs.h. */
7360_ACEOF
7361cat confdefs.h >>conftest.$ac_ext
7362cat >>conftest.$ac_ext <<_ACEOF
7363/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007364
Lionel Ulmerd94475b1999-09-20 18:42:46 +00007365/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007366#ifdef __cplusplus
7367extern "C"
7368#endif
Lionel Ulmerd94475b1999-09-20 18:42:46 +00007369/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007370 builtin and then its argument prototype would still apply. */
7371char XF86DGAQueryExtension ();
7372int
7373main ()
7374{
7375XF86DGAQueryExtension ();
7376 ;
7377 return 0;
7378}
7379_ACEOF
7380rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007381if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007382 (eval $ac_link) 2>&5
7383 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007385 (exit $ac_status); } &&
7386 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007388 (eval $ac_try) 2>&5
7389 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007391 (exit $ac_status); }; }; then
7392 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=yes
Patrik Stridvall24110281999-02-04 10:09:54 +00007393else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007394 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007395sed 's/^/| /' conftest.$ac_ext >&5
7396
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007397ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=no
Patrik Stridvall24110281999-02-04 10:09:54 +00007398fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007399rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7400LIBS=$ac_check_lib_save_LIBS
7401fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007402echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007403echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&6
7404if test $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension = yes; then
Patrik Stridvall24110281999-02-04 10:09:54 +00007405
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007406cat >>confdefs.h <<\_ACEOF
Patrik Stridvall24110281999-02-04 10:09:54 +00007407#define HAVE_LIBXXF86DGA 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007408_ACEOF
Marcus Meissner10ad97c2000-04-09 14:30:50 +00007409
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00007410 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007411
Patrik Stridvall24110281999-02-04 10:09:54 +00007412fi
7413
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007414
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00007415fi
Patrik Stridvall24110281999-02-04 10:09:54 +00007416
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007417
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00007418else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007419 { echo "$as_me:$LINENO: WARNING: DGA extension not found, Wine will be built without it" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007420echo "$as_me: WARNING: DGA extension not found, Wine will be built without it" >&2;}
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00007421fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007422
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00007423done
7424
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007425
7426
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007427for ac_header in X11/extensions/xf86vmode.h
Patrik Stridvall24110281999-02-04 10:09:54 +00007428do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007429as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007430echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007431echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7432if eval "test \"\${$as_ac_Header+set}\" = set"; then
7433 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00007434else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007435 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007436#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007437/* confdefs.h. */
7438_ACEOF
7439cat confdefs.h >>conftest.$ac_ext
7440cat >>conftest.$ac_ext <<_ACEOF
7441/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007442#include <X11/Xlib.h>
7443
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007444#include <$ac_header>
7445_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007446rm -f conftest.$ac_objext
7447if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7448 (eval $ac_compile) 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007449 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451 (exit $ac_status); } &&
7452 { ac_try='test -s conftest.$ac_objext'
7453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7454 (eval $ac_try) 2>&5
7455 ac_status=$?
7456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457 (exit $ac_status); }; }; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007458 eval "$as_ac_Header=yes"
7459else
7460 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007461sed 's/^/| /' conftest.$ac_ext >&5
7462
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007463eval "$as_ac_Header=no"
Patrik Stridvall24110281999-02-04 10:09:54 +00007464fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007465rm -f conftest.$ac_objext conftest.$ac_ext
Patrik Stridvall24110281999-02-04 10:09:54 +00007466fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007467echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007468echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7469if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007470 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007471#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007472_ACEOF
7473 echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007474echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6
7475if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
7476 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00007477else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007478 ac_check_lib_save_LIBS=$LIBS
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00007479LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
7480 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007481cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007482#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007483/* confdefs.h. */
7484_ACEOF
7485cat confdefs.h >>conftest.$ac_ext
7486cat >>conftest.$ac_ext <<_ACEOF
7487/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007488
Patrik Stridvall24110281999-02-04 10:09:54 +00007489/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007490#ifdef __cplusplus
7491extern "C"
7492#endif
Patrik Stridvall24110281999-02-04 10:09:54 +00007493/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007494 builtin and then its argument prototype would still apply. */
7495char XF86VidModeQueryExtension ();
7496int
7497main ()
7498{
7499XF86VidModeQueryExtension ();
7500 ;
7501 return 0;
7502}
7503_ACEOF
7504rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007505if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007506 (eval $ac_link) 2>&5
7507 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007509 (exit $ac_status); } &&
7510 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007512 (eval $ac_try) 2>&5
7513 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007515 (exit $ac_status); }; }; then
7516 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
Patrik Stridvall24110281999-02-04 10:09:54 +00007517else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007518 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007519sed 's/^/| /' conftest.$ac_ext >&5
7520
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007521ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
Patrik Stridvall24110281999-02-04 10:09:54 +00007522fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007523rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7524LIBS=$ac_check_lib_save_LIBS
7525fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007526echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007527echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6
7528if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
Patrik Stridvall24110281999-02-04 10:09:54 +00007529
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007530cat >>confdefs.h <<\_ACEOF
Patrik Stridvall24110281999-02-04 10:09:54 +00007531#define HAVE_LIBXXF86VM 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007532_ACEOF
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00007533
7534 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007535
Patrik Stridvall24110281999-02-04 10:09:54 +00007536fi
7537
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007538
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007539else
7540 { echo "$as_me:$LINENO: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&5
7541echo "$as_me: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&2;}
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00007542fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007543
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00007544done
Lionel Ulmer5c085701999-02-28 19:48:53 +00007545
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007546
7547
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007548for ac_header in X11/extensions/Xvlib.h
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00007549do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007550as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007551echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007552echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7553if eval "test \"\${$as_ac_Header+set}\" = set"; then
7554 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00007555else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007556 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007557#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007558/* confdefs.h. */
7559_ACEOF
7560cat confdefs.h >>conftest.$ac_ext
7561cat >>conftest.$ac_ext <<_ACEOF
7562/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007563#include <X11/Xlib.h>
7564
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007565#include <$ac_header>
7566_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007567rm -f conftest.$ac_objext
7568if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7569 (eval $ac_compile) 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007570 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7572 (exit $ac_status); } &&
7573 { ac_try='test -s conftest.$ac_objext'
7574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7575 (eval $ac_try) 2>&5
7576 ac_status=$?
7577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7578 (exit $ac_status); }; }; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007579 eval "$as_ac_Header=yes"
7580else
7581 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007582sed 's/^/| /' conftest.$ac_ext >&5
7583
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007584eval "$as_ac_Header=no"
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00007585fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007586rm -f conftest.$ac_objext conftest.$ac_ext
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00007587fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007588echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007589echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7590if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007591 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007592#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007593_ACEOF
7594 echo "$as_me:$LINENO: checking for XvShmCreateImage in -lXv" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007595echo $ECHO_N "checking for XvShmCreateImage in -lXv... $ECHO_C" >&6
7596if test "${ac_cv_lib_Xv_XvShmCreateImage+set}" = set; then
7597 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00007598else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007599 ac_check_lib_save_LIBS=$LIBS
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00007600LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
7601 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007602cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007603#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007604/* confdefs.h. */
7605_ACEOF
7606cat confdefs.h >>conftest.$ac_ext
7607cat >>conftest.$ac_ext <<_ACEOF
7608/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007609
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00007610/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007611#ifdef __cplusplus
7612extern "C"
7613#endif
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00007614/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007615 builtin and then its argument prototype would still apply. */
7616char XvShmCreateImage ();
7617int
7618main ()
7619{
7620XvShmCreateImage ();
7621 ;
7622 return 0;
7623}
7624_ACEOF
7625rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007626if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007627 (eval $ac_link) 2>&5
7628 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007630 (exit $ac_status); } &&
7631 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007633 (eval $ac_try) 2>&5
7634 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007636 (exit $ac_status); }; }; then
7637 ac_cv_lib_Xv_XvShmCreateImage=yes
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00007638else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007639 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007640sed 's/^/| /' conftest.$ac_ext >&5
7641
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007642ac_cv_lib_Xv_XvShmCreateImage=no
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00007643fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007644rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7645LIBS=$ac_check_lib_save_LIBS
7646fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007647echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_XvShmCreateImage" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007648echo "${ECHO_T}$ac_cv_lib_Xv_XvShmCreateImage" >&6
7649if test $ac_cv_lib_Xv_XvShmCreateImage = yes; then
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00007650
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007651cat >>confdefs.h <<\_ACEOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00007652#define HAVE_XVIDEO 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007653_ACEOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00007654
7655 X_PRE_LIBS="$X_PRE_LIBS -lXv"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007656
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00007657fi
7658
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007659
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007660else
7661 { echo "$as_me:$LINENO: WARNING: XVideo extension not found, Wine will be built without it" >&5
7662echo "$as_me: WARNING: XVideo extension not found, Wine will be built without it" >&2;}
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00007663fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007664
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00007665done
7666
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007667
7668
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007669for ac_header in X11/extensions/Xrender.h
Huw D M Daviesff453fc2001-09-14 01:04:25 +00007670do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007671as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007672echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007673echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7674if eval "test \"\${$as_ac_Header+set}\" = set"; then
7675 echo $ECHO_N "(cached) $ECHO_C" >&6
Huw D M Daviesff453fc2001-09-14 01:04:25 +00007676else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007677 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007678#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007679/* confdefs.h. */
7680_ACEOF
7681cat confdefs.h >>conftest.$ac_ext
7682cat >>conftest.$ac_ext <<_ACEOF
7683/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007684#include <X11/Xlib.h>
7685
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007686#include <$ac_header>
7687_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007688rm -f conftest.$ac_objext
7689if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7690 (eval $ac_compile) 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007691 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7693 (exit $ac_status); } &&
7694 { ac_try='test -s conftest.$ac_objext'
7695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7696 (eval $ac_try) 2>&5
7697 ac_status=$?
7698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699 (exit $ac_status); }; }; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007700 eval "$as_ac_Header=yes"
7701else
7702 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007703sed 's/^/| /' conftest.$ac_ext >&5
7704
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007705eval "$as_ac_Header=no"
Huw D M Daviesff453fc2001-09-14 01:04:25 +00007706fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007707rm -f conftest.$ac_objext conftest.$ac_ext
Huw D M Daviesff453fc2001-09-14 01:04:25 +00007708fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007709echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007710echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7711if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007712 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007713#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007714_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007715
Huw D M Daviesff453fc2001-09-14 01:04:25 +00007716fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007717
Huw D M Daviesff453fc2001-09-14 01:04:25 +00007718done
7719
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007720
7721
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00007722fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007723
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00007724done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007725
Alexandre Julliardb8074992002-11-21 21:51:24 +00007726 if test "x$with_opengl" != "xno"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00007727 then
Francois Gouget42dcd972002-01-29 17:52:28 +00007728 if test -f /usr/X11R6/lib/libGL.a -a ! -f /usr/X11R6/lib/libGL.so
Alexandre Julliardb508a1d2002-01-21 18:06:10 +00007729 then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007730 { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007731This prevents linking to OpenGL. Delete the file and restart configure." >&5
7732echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
7733This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
7734 { (exit 1); exit 1; }; }
Alexandre Julliardb508a1d2002-01-21 18:06:10 +00007735 fi
7736
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007737
7738
7739for ac_header in GL/gl.h GL/glx.h
Patrik Stridvall24110281999-02-04 10:09:54 +00007740do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007741as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007742if eval "test \"\${$as_ac_Header+set}\" = set"; then
7743 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007744echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7745if eval "test \"\${$as_ac_Header+set}\" = set"; then
7746 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007747fi
7748echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7749echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00007750else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007751 # Is the header compilable?
7752echo "$as_me:$LINENO: checking $ac_header usability" >&5
7753echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7754cat >conftest.$ac_ext <<_ACEOF
7755#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007756/* confdefs.h. */
7757_ACEOF
7758cat confdefs.h >>conftest.$ac_ext
7759cat >>conftest.$ac_ext <<_ACEOF
7760/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007761$ac_includes_default
7762#include <$ac_header>
7763_ACEOF
7764rm -f conftest.$ac_objext
7765if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7766 (eval $ac_compile) 2>&5
7767 ac_status=$?
7768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769 (exit $ac_status); } &&
7770 { ac_try='test -s conftest.$ac_objext'
7771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7772 (eval $ac_try) 2>&5
7773 ac_status=$?
7774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7775 (exit $ac_status); }; }; then
7776 ac_header_compiler=yes
7777else
7778 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007779sed 's/^/| /' conftest.$ac_ext >&5
7780
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007781ac_header_compiler=no
7782fi
7783rm -f conftest.$ac_objext conftest.$ac_ext
7784echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7785echo "${ECHO_T}$ac_header_compiler" >&6
7786
7787# Is the header present?
7788echo "$as_me:$LINENO: checking $ac_header presence" >&5
7789echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7790cat >conftest.$ac_ext <<_ACEOF
7791#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007792/* confdefs.h. */
7793_ACEOF
7794cat confdefs.h >>conftest.$ac_ext
7795cat >>conftest.$ac_ext <<_ACEOF
7796/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007797#include <$ac_header>
7798_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007799if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007800 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7801 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00007802 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007803 rm -f conftest.er1
7804 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007806 (exit $ac_status); } >/dev/null; then
7807 if test -s conftest.err; then
7808 ac_cpp_err=$ac_c_preproc_warn_flag
7809 else
7810 ac_cpp_err=
7811 fi
Patrik Stridvall24110281999-02-04 10:09:54 +00007812else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007813 ac_cpp_err=yes
7814fi
7815if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007816 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007817else
7818 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007819sed 's/^/| /' conftest.$ac_ext >&5
7820
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007821 ac_header_preproc=no
Patrik Stridvall24110281999-02-04 10:09:54 +00007822fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007823rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007824echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7825echo "${ECHO_T}$ac_header_preproc" >&6
7826
7827# So? What about this header?
7828case $ac_header_compiler:$ac_header_preproc in
7829 yes:no )
7830 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7831echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7832 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007833echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7834 (
7835 cat <<\_ASBOX
7836## ------------------------------------ ##
7837## Report this to bug-autoconf@gnu.org. ##
7838## ------------------------------------ ##
7839_ASBOX
7840 ) |
7841 sed "s/^/$as_me: WARNING: /" >&2
7842 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007843 no:yes )
7844 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7845echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7846 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7847echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7848 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007849echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7850 (
7851 cat <<\_ASBOX
7852## ------------------------------------ ##
7853## Report this to bug-autoconf@gnu.org. ##
7854## ------------------------------------ ##
7855_ASBOX
7856 ) |
7857 sed "s/^/$as_me: WARNING: /" >&2
7858 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007859esac
7860echo "$as_me:$LINENO: checking for $ac_header" >&5
7861echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7862if eval "test \"\${$as_ac_Header+set}\" = set"; then
7863 echo $ECHO_N "(cached) $ECHO_C" >&6
7864else
7865 eval "$as_ac_Header=$ac_header_preproc"
Patrik Stridvall24110281999-02-04 10:09:54 +00007866fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007867echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007868echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007869
Patrik Stridvall24110281999-02-04 10:09:54 +00007870fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007871if test `eval echo '${'$as_ac_Header'}'` = yes; then
7872 cat >>confdefs.h <<_ACEOF
7873#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7874_ACEOF
7875
7876fi
7877
Patrik Stridvall24110281999-02-04 10:09:54 +00007878done
7879
Marcus Meissner22a969b2000-08-08 20:46:50 +00007880 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00007881 then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007882
7883for ac_header in GL/glext.h
7884do
7885as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7886echo "$as_me:$LINENO: checking for $ac_header" >&5
7887echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7888if eval "test \"\${$as_ac_Header+set}\" = set"; then
7889 echo $ECHO_N "(cached) $ECHO_C" >&6
7890else
7891 cat >conftest.$ac_ext <<_ACEOF
7892#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007893/* confdefs.h. */
7894_ACEOF
7895cat confdefs.h >>conftest.$ac_ext
7896cat >>conftest.$ac_ext <<_ACEOF
7897/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007898#include <GL/glx.h>
7899
7900#include <$ac_header>
7901_ACEOF
7902rm -f conftest.$ac_objext
7903if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7904 (eval $ac_compile) 2>&5
7905 ac_status=$?
7906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907 (exit $ac_status); } &&
7908 { ac_try='test -s conftest.$ac_objext'
7909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7910 (eval $ac_try) 2>&5
7911 ac_status=$?
7912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913 (exit $ac_status); }; }; then
7914 eval "$as_ac_Header=yes"
7915else
7916 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007917sed 's/^/| /' conftest.$ac_ext >&5
7918
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007919eval "$as_ac_Header=no"
7920fi
7921rm -f conftest.$ac_objext conftest.$ac_ext
7922fi
7923echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7924echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7925if test `eval echo '${'$as_ac_Header'}'` = yes; then
7926 cat >>confdefs.h <<_ACEOF
7927#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7928_ACEOF
7929
7930fi
7931
7932done
7933
7934 echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007935echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6
7936if test "${wine_cv_opengl_version_OK+set}" = set; then
7937 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmer5c085701999-02-28 19:48:53 +00007938else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007939 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007940#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007941/* confdefs.h. */
7942_ACEOF
7943cat confdefs.h >>conftest.$ac_ext
7944cat >>conftest.$ac_ext <<_ACEOF
7945/* end confdefs.h. */
Lionel Ulmer5c085701999-02-28 19:48:53 +00007946#include <GL/gl.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007947int
7948main ()
7949{
Lionel Ulmer5c085701999-02-28 19:48:53 +00007950GLenum test = GL_UNSIGNED_SHORT_5_6_5;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007951 ;
7952 return 0;
7953}
7954_ACEOF
7955rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007956if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007957 (eval $ac_compile) 2>&5
7958 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007960 (exit $ac_status); } &&
7961 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007963 (eval $ac_try) 2>&5
7964 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007966 (exit $ac_status); }; }; then
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007967 wine_cv_opengl_version_OK="yes"
Lionel Ulmer5c085701999-02-28 19:48:53 +00007968else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007969 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007970sed 's/^/| /' conftest.$ac_ext >&5
7971
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007972wine_cv_opengl_version_OK="no"
Lionel Ulmer5c085701999-02-28 19:48:53 +00007973
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007974fi
7975rm -f conftest.$ac_objext conftest.$ac_ext
Lionel Ulmer5c085701999-02-28 19:48:53 +00007976
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007977fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007978echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007979echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6
7980
Alexandre Julliardb8074992002-11-21 21:51:24 +00007981 if test "$wine_cv_opengl_version_OK" = "yes"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00007982 then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007983 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007984echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
7985if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
7986 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00007987else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007988 ac_check_lib_save_LIBS=$LIBS
Marcus Meissner376ec882000-01-05 03:24:52 +00007989LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007990cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007991#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007992/* confdefs.h. */
7993_ACEOF
7994cat confdefs.h >>conftest.$ac_ext
7995cat >>conftest.$ac_ext <<_ACEOF
7996/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007997
Patrik Stridvall24110281999-02-04 10:09:54 +00007998/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007999#ifdef __cplusplus
8000extern "C"
8001#endif
Patrik Stridvall24110281999-02-04 10:09:54 +00008002/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008003 builtin and then its argument prototype would still apply. */
8004char glXCreateContext ();
8005int
8006main ()
8007{
8008glXCreateContext ();
8009 ;
8010 return 0;
8011}
8012_ACEOF
8013rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008014if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008015 (eval $ac_link) 2>&5
8016 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008018 (exit $ac_status); } &&
8019 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008021 (eval $ac_try) 2>&5
8022 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008024 (exit $ac_status); }; }; then
8025 ac_cv_lib_GL_glXCreateContext=yes
Patrik Stridvall24110281999-02-04 10:09:54 +00008026else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008027 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008028sed 's/^/| /' conftest.$ac_ext >&5
8029
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008030ac_cv_lib_GL_glXCreateContext=no
Patrik Stridvall24110281999-02-04 10:09:54 +00008031fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008032rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8033LIBS=$ac_check_lib_save_LIBS
Patrik Stridvall24110281999-02-04 10:09:54 +00008034fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008035echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008036echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
8037if test $ac_cv_lib_GL_glXCreateContext = yes; then
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +00008038 OPENGL_LIBS="-lGL"
Patrik Stridvall24110281999-02-04 10:09:54 +00008039
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008040fi
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008041
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008042
Alexandre Julliardb508a1d2002-01-21 18:06:10 +00008043 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
Lionel Ulmerbd8ede12000-10-12 20:45:58 +00008044 then
Lionel Ulmerbd8ede12000-10-12 20:45:58 +00008045 OPENGLFILES='$(OPENGLFILES)'
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008046
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008047cat >>confdefs.h <<\_ACEOF
Marcus Meissner6bb6d4c2000-08-09 22:21:08 +00008048#define HAVE_OPENGL 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008049_ACEOF
Marcus Meissner6bb6d4c2000-08-09 22:21:08 +00008050
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008051
8052 echo "$as_me:$LINENO: checking for glXGetProcAddressARB in -lGL" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008053echo $ECHO_N "checking for glXGetProcAddressARB in -lGL... $ECHO_C" >&6
8054if test "${ac_cv_lib_GL_glXGetProcAddressARB+set}" = set; then
8055 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00008056else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008057 ac_check_lib_save_LIBS=$LIBS
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00008058LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008059cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008060#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008061/* confdefs.h. */
8062_ACEOF
8063cat confdefs.h >>conftest.$ac_ext
8064cat >>conftest.$ac_ext <<_ACEOF
8065/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008066
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00008067/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008068#ifdef __cplusplus
8069extern "C"
8070#endif
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00008071/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008072 builtin and then its argument prototype would still apply. */
8073char glXGetProcAddressARB ();
8074int
8075main ()
8076{
8077glXGetProcAddressARB ();
8078 ;
8079 return 0;
8080}
8081_ACEOF
8082rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008083if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008084 (eval $ac_link) 2>&5
8085 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008087 (exit $ac_status); } &&
8088 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008090 (eval $ac_try) 2>&5
8091 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008093 (exit $ac_status); }; }; then
8094 ac_cv_lib_GL_glXGetProcAddressARB=yes
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00008095else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008096 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008097sed 's/^/| /' conftest.$ac_ext >&5
8098
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008099ac_cv_lib_GL_glXGetProcAddressARB=no
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00008100fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008101rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8102LIBS=$ac_check_lib_save_LIBS
8103fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008104echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXGetProcAddressARB" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008105echo "${ECHO_T}$ac_cv_lib_GL_glXGetProcAddressARB" >&6
8106if test $ac_cv_lib_GL_glXGetProcAddressARB = yes; then
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00008107
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008108cat >>confdefs.h <<\_ACEOF
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00008109#define HAVE_GLX_GETPROCADDRESS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008110_ACEOF
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00008111
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00008112fi
8113
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008114
Alexandre Julliardb508a1d2002-01-21 18:06:10 +00008115 if test "$ac_cv_lib_GL_glXGetProcAddressARB" = "yes"
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00008116 then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008117 echo "$as_me:$LINENO: checking for OpenGL extension functions prototypes" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008118echo $ECHO_N "checking for OpenGL extension functions prototypes... $ECHO_C" >&6
8119if test "${wine_cv_extension_prototypes+set}" = set; then
8120 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmer1434d872000-07-23 14:23:31 +00008121else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008122 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008123#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008124/* confdefs.h. */
8125_ACEOF
8126cat confdefs.h >>conftest.$ac_ext
8127cat >>conftest.$ac_ext <<_ACEOF
8128/* end confdefs.h. */
Lionel Ulmer1434d872000-07-23 14:23:31 +00008129#include <GL/gl.h>
Marcus Meissner6bb6d4c2000-08-09 22:21:08 +00008130 #ifdef HAVE_GL_GLEXT_H
8131 # include <GL/glext.h>
8132 #endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008133
8134int
8135main ()
8136{
Lionel Ulmer1434d872000-07-23 14:23:31 +00008137PFNGLCOLORTABLEEXTPROC test_proc;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008138 ;
8139 return 0;
8140}
8141_ACEOF
8142rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008143if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008144 (eval $ac_compile) 2>&5
8145 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008147 (exit $ac_status); } &&
8148 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008150 (eval $ac_try) 2>&5
8151 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008153 (exit $ac_status); }; }; then
Lionel Ulmerfe210ef2000-07-29 11:30:56 +00008154 wine_cv_extension_prototypes="yes"
Lionel Ulmer1434d872000-07-23 14:23:31 +00008155else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008156 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008157sed 's/^/| /' conftest.$ac_ext >&5
8158
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008159wine_cv_extension_prototypes="no"
Lionel Ulmer1434d872000-07-23 14:23:31 +00008160
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008161fi
8162rm -f conftest.$ac_objext conftest.$ac_ext
8163
8164fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008165echo "$as_me:$LINENO: result: $wine_cv_extension_prototypes" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008166echo "${ECHO_T}$wine_cv_extension_prototypes" >&6
Alexandre Julliardb508a1d2002-01-21 18:06:10 +00008167 if test "$wine_cv_extension_prototypes" = "yes"
Lionel Ulmerfe210ef2000-07-29 11:30:56 +00008168 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008169
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008170cat >>confdefs.h <<\_ACEOF
Lionel Ulmerfe210ef2000-07-29 11:30:56 +00008171#define HAVE_GLEXT_PROTOTYPES 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008172_ACEOF
Lionel Ulmerfe210ef2000-07-29 11:30:56 +00008173
8174 fi
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00008175 fi
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00008176
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008177 fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008178 echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008179echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6
8180if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
8181 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008182else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008183 ac_check_lib_save_LIBS=$LIBS
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +00008184LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008185 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008186cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008187#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008188/* confdefs.h. */
8189_ACEOF
8190cat confdefs.h >>conftest.$ac_ext
8191cat >>conftest.$ac_ext <<_ACEOF
8192/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008193
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008194/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008195#ifdef __cplusplus
8196extern "C"
8197#endif
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008198/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008199 builtin and then its argument prototype would still apply. */
8200char gluLookAt ();
8201int
8202main ()
8203{
8204gluLookAt ();
8205 ;
8206 return 0;
8207}
8208_ACEOF
8209rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008210if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008211 (eval $ac_link) 2>&5
8212 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008214 (exit $ac_status); } &&
8215 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008217 (eval $ac_try) 2>&5
8218 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008220 (exit $ac_status); }; }; then
8221 ac_cv_lib_GLU_gluLookAt=yes
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008222else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008223 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008224sed 's/^/| /' conftest.$ac_ext >&5
8225
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008226ac_cv_lib_GLU_gluLookAt=no
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008227fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008228rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8229LIBS=$ac_check_lib_save_LIBS
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008230fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008231echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008232echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6
8233if test $ac_cv_lib_GLU_gluLookAt = yes; then
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +00008234 OPENGL_LIBS="$OPENGL_LIBS -lGLU"
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008235 GLU32FILES='$(GLU32FILES)'
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008236
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008237fi
8238
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008239 fi
8240 fi
Patrik Stridvall24110281999-02-04 10:09:54 +00008241 fi
Ove Kaaven1eb593c1999-02-14 09:34:46 +00008242
Francois Gouget6f670b12002-10-10 17:54:27 +00008243 NASLIBS=""
8244
8245
8246for ac_header in audio/audiolib.h
8247do
8248as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8249if eval "test \"\${$as_ac_Header+set}\" = set"; then
8250 echo "$as_me:$LINENO: checking for $ac_header" >&5
8251echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8252if eval "test \"\${$as_ac_Header+set}\" = set"; then
8253 echo $ECHO_N "(cached) $ECHO_C" >&6
8254fi
8255echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8256echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8257else
8258 # Is the header compilable?
8259echo "$as_me:$LINENO: checking $ac_header usability" >&5
8260echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8261cat >conftest.$ac_ext <<_ACEOF
8262#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008263/* confdefs.h. */
8264_ACEOF
8265cat confdefs.h >>conftest.$ac_ext
8266cat >>conftest.$ac_ext <<_ACEOF
8267/* end confdefs.h. */
Francois Gouget6f670b12002-10-10 17:54:27 +00008268$ac_includes_default
8269#include <$ac_header>
8270_ACEOF
8271rm -f conftest.$ac_objext
8272if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8273 (eval $ac_compile) 2>&5
8274 ac_status=$?
8275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8276 (exit $ac_status); } &&
8277 { ac_try='test -s conftest.$ac_objext'
8278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8279 (eval $ac_try) 2>&5
8280 ac_status=$?
8281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282 (exit $ac_status); }; }; then
8283 ac_header_compiler=yes
8284else
8285 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008286sed 's/^/| /' conftest.$ac_ext >&5
8287
Francois Gouget6f670b12002-10-10 17:54:27 +00008288ac_header_compiler=no
8289fi
8290rm -f conftest.$ac_objext conftest.$ac_ext
8291echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8292echo "${ECHO_T}$ac_header_compiler" >&6
8293
8294# Is the header present?
8295echo "$as_me:$LINENO: checking $ac_header presence" >&5
8296echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8297cat >conftest.$ac_ext <<_ACEOF
8298#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008299/* confdefs.h. */
8300_ACEOF
8301cat confdefs.h >>conftest.$ac_ext
8302cat >>conftest.$ac_ext <<_ACEOF
8303/* end confdefs.h. */
Francois Gouget6f670b12002-10-10 17:54:27 +00008304#include <$ac_header>
8305_ACEOF
8306if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8307 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8308 ac_status=$?
8309 grep -v '^ *+' conftest.er1 >conftest.err
8310 rm -f conftest.er1
8311 cat conftest.err >&5
8312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313 (exit $ac_status); } >/dev/null; then
8314 if test -s conftest.err; then
8315 ac_cpp_err=$ac_c_preproc_warn_flag
8316 else
8317 ac_cpp_err=
8318 fi
8319else
8320 ac_cpp_err=yes
8321fi
8322if test -z "$ac_cpp_err"; then
8323 ac_header_preproc=yes
8324else
8325 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008326sed 's/^/| /' conftest.$ac_ext >&5
8327
Francois Gouget6f670b12002-10-10 17:54:27 +00008328 ac_header_preproc=no
8329fi
8330rm -f conftest.err conftest.$ac_ext
8331echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8332echo "${ECHO_T}$ac_header_preproc" >&6
8333
8334# So? What about this header?
8335case $ac_header_compiler:$ac_header_preproc in
8336 yes:no )
8337 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8338echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8339 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008340echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8341 (
8342 cat <<\_ASBOX
8343## ------------------------------------ ##
8344## Report this to bug-autoconf@gnu.org. ##
8345## ------------------------------------ ##
8346_ASBOX
8347 ) |
8348 sed "s/^/$as_me: WARNING: /" >&2
8349 ;;
Francois Gouget6f670b12002-10-10 17:54:27 +00008350 no:yes )
8351 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8352echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8353 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8354echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008356echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8357 (
8358 cat <<\_ASBOX
8359## ------------------------------------ ##
8360## Report this to bug-autoconf@gnu.org. ##
8361## ------------------------------------ ##
8362_ASBOX
8363 ) |
8364 sed "s/^/$as_me: WARNING: /" >&2
8365 ;;
Francois Gouget6f670b12002-10-10 17:54:27 +00008366esac
8367echo "$as_me:$LINENO: checking for $ac_header" >&5
8368echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8369if eval "test \"\${$as_ac_Header+set}\" = set"; then
8370 echo $ECHO_N "(cached) $ECHO_C" >&6
8371else
8372 eval "$as_ac_Header=$ac_header_preproc"
8373fi
8374echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8375echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8376
8377fi
8378if test `eval echo '${'$as_ac_Header'}'` = yes; then
8379 cat >>confdefs.h <<_ACEOF
8380#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8381_ACEOF
8382
8383for ac_header in audio/soundlib.h
8384do
8385as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8386echo "$as_me:$LINENO: checking for $ac_header" >&5
8387echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8388if eval "test \"\${$as_ac_Header+set}\" = set"; then
8389 echo $ECHO_N "(cached) $ECHO_C" >&6
8390else
8391 cat >conftest.$ac_ext <<_ACEOF
8392#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008393/* confdefs.h. */
8394_ACEOF
8395cat confdefs.h >>conftest.$ac_ext
8396cat >>conftest.$ac_ext <<_ACEOF
8397/* end confdefs.h. */
Francois Gouget6f670b12002-10-10 17:54:27 +00008398#include <audio/audiolib.h>
8399
8400#include <$ac_header>
8401_ACEOF
8402rm -f conftest.$ac_objext
8403if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8404 (eval $ac_compile) 2>&5
8405 ac_status=$?
8406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407 (exit $ac_status); } &&
8408 { ac_try='test -s conftest.$ac_objext'
8409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8410 (eval $ac_try) 2>&5
8411 ac_status=$?
8412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413 (exit $ac_status); }; }; then
8414 eval "$as_ac_Header=yes"
8415else
8416 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008417sed 's/^/| /' conftest.$ac_ext >&5
8418
Francois Gouget6f670b12002-10-10 17:54:27 +00008419eval "$as_ac_Header=no"
8420fi
8421rm -f conftest.$ac_objext conftest.$ac_ext
8422fi
8423echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8424echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8425if test `eval echo '${'$as_ac_Header'}'` = yes; then
8426 cat >>confdefs.h <<_ACEOF
8427#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8428_ACEOF
8429
8430fi
8431
8432done
8433
8434 echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
8435echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6
8436if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
8437 echo $ECHO_N "(cached) $ECHO_C" >&6
8438else
8439 ac_check_lib_save_LIBS=$LIBS
8440LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8441cat >conftest.$ac_ext <<_ACEOF
8442#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008443/* confdefs.h. */
8444_ACEOF
8445cat confdefs.h >>conftest.$ac_ext
8446cat >>conftest.$ac_ext <<_ACEOF
8447/* end confdefs.h. */
Francois Gouget6f670b12002-10-10 17:54:27 +00008448
8449/* Override any gcc2 internal prototype to avoid an error. */
8450#ifdef __cplusplus
8451extern "C"
8452#endif
8453/* We use char because int might match the return type of a gcc2
8454 builtin and then its argument prototype would still apply. */
8455char AuCreateFlow ();
8456int
8457main ()
8458{
8459AuCreateFlow ();
8460 ;
8461 return 0;
8462}
8463_ACEOF
8464rm -f conftest.$ac_objext conftest$ac_exeext
8465if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8466 (eval $ac_link) 2>&5
8467 ac_status=$?
8468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469 (exit $ac_status); } &&
8470 { ac_try='test -s conftest$ac_exeext'
8471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8472 (eval $ac_try) 2>&5
8473 ac_status=$?
8474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475 (exit $ac_status); }; }; then
8476 ac_cv_lib_audio_AuCreateFlow=yes
8477else
8478 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008479sed 's/^/| /' conftest.$ac_ext >&5
8480
Francois Gouget6f670b12002-10-10 17:54:27 +00008481ac_cv_lib_audio_AuCreateFlow=no
8482fi
8483rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8484LIBS=$ac_check_lib_save_LIBS
8485fi
8486echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
8487echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6
8488if test $ac_cv_lib_audio_AuCreateFlow = yes; then
8489
8490cat >>confdefs.h <<\_ACEOF
8491#define HAVE_NAS 1
8492_ACEOF
8493
8494 NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
8495fi
8496
8497fi
8498
8499done
8500
8501
Ove Kaaven1eb593c1999-02-14 09:34:46 +00008502 CPPFLAGS="$ac_save_CPPFLAGS"
Patrik Stridvall2941a212000-04-25 20:34:22 +00008503 XFILES='$(XFILES)'
Patrik Stridvallea584721998-11-01 16:22:07 +00008504else
8505 XLIB=""
8506 X_CFLAGS=""
8507 X_LIBS=""
8508fi
Alexandre Julliard902da691995-11-05 14:39:02 +00008509
Alexandre Julliard48957682001-12-26 23:08:31 +00008510CURSESLIBS=""
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008511if test "x$with_curses" != "xno"
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00008512then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008513
8514for ac_header in ncurses.h
Patrik Stridvall24110281999-02-04 10:09:54 +00008515do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008516as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008517if eval "test \"\${$as_ac_Header+set}\" = set"; then
8518 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008519echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8520if eval "test \"\${$as_ac_Header+set}\" = set"; then
8521 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008522fi
8523echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8524echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00008525else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008526 # Is the header compilable?
8527echo "$as_me:$LINENO: checking $ac_header usability" >&5
8528echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8529cat >conftest.$ac_ext <<_ACEOF
8530#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008531/* confdefs.h. */
8532_ACEOF
8533cat confdefs.h >>conftest.$ac_ext
8534cat >>conftest.$ac_ext <<_ACEOF
8535/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008536$ac_includes_default
8537#include <$ac_header>
8538_ACEOF
8539rm -f conftest.$ac_objext
8540if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8541 (eval $ac_compile) 2>&5
8542 ac_status=$?
8543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544 (exit $ac_status); } &&
8545 { ac_try='test -s conftest.$ac_objext'
8546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8547 (eval $ac_try) 2>&5
8548 ac_status=$?
8549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550 (exit $ac_status); }; }; then
8551 ac_header_compiler=yes
8552else
8553 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008554sed 's/^/| /' conftest.$ac_ext >&5
8555
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008556ac_header_compiler=no
8557fi
8558rm -f conftest.$ac_objext conftest.$ac_ext
8559echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8560echo "${ECHO_T}$ac_header_compiler" >&6
8561
8562# Is the header present?
8563echo "$as_me:$LINENO: checking $ac_header presence" >&5
8564echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8565cat >conftest.$ac_ext <<_ACEOF
8566#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008567/* confdefs.h. */
8568_ACEOF
8569cat confdefs.h >>conftest.$ac_ext
8570cat >>conftest.$ac_ext <<_ACEOF
8571/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008572#include <$ac_header>
8573_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008574if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008575 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8576 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00008577 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008578 rm -f conftest.er1
8579 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008581 (exit $ac_status); } >/dev/null; then
8582 if test -s conftest.err; then
8583 ac_cpp_err=$ac_c_preproc_warn_flag
8584 else
8585 ac_cpp_err=
8586 fi
Patrik Stridvall24110281999-02-04 10:09:54 +00008587else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008588 ac_cpp_err=yes
8589fi
8590if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008591 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008592else
8593 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008594sed 's/^/| /' conftest.$ac_ext >&5
8595
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008596 ac_header_preproc=no
Patrik Stridvall24110281999-02-04 10:09:54 +00008597fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008598rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008599echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8600echo "${ECHO_T}$ac_header_preproc" >&6
8601
8602# So? What about this header?
8603case $ac_header_compiler:$ac_header_preproc in
8604 yes:no )
8605 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8606echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8607 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008608echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8609 (
8610 cat <<\_ASBOX
8611## ------------------------------------ ##
8612## Report this to bug-autoconf@gnu.org. ##
8613## ------------------------------------ ##
8614_ASBOX
8615 ) |
8616 sed "s/^/$as_me: WARNING: /" >&2
8617 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008618 no:yes )
8619 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8620echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8621 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8622echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8623 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008624echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8625 (
8626 cat <<\_ASBOX
8627## ------------------------------------ ##
8628## Report this to bug-autoconf@gnu.org. ##
8629## ------------------------------------ ##
8630_ASBOX
8631 ) |
8632 sed "s/^/$as_me: WARNING: /" >&2
8633 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008634esac
8635echo "$as_me:$LINENO: checking for $ac_header" >&5
8636echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8637if eval "test \"\${$as_ac_Header+set}\" = set"; then
8638 echo $ECHO_N "(cached) $ECHO_C" >&6
8639else
8640 eval "$as_ac_Header=$ac_header_preproc"
Patrik Stridvall24110281999-02-04 10:09:54 +00008641fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008642echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008643echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008644
8645fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008646if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008647 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008648#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008649_ACEOF
8650 echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008651echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6
8652if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
8653 echo $ECHO_N "(cached) $ECHO_C" >&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +00008654else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008655 ac_check_lib_save_LIBS=$LIBS
Joseph Praneviche884f9c1999-01-03 16:14:34 +00008656LIBS="-lncurses $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008657cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008658#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008659/* confdefs.h. */
8660_ACEOF
8661cat confdefs.h >>conftest.$ac_ext
8662cat >>conftest.$ac_ext <<_ACEOF
8663/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008664
Joseph Praneviche884f9c1999-01-03 16:14:34 +00008665/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008666#ifdef __cplusplus
8667extern "C"
8668#endif
Joseph Praneviche884f9c1999-01-03 16:14:34 +00008669/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008670 builtin and then its argument prototype would still apply. */
8671char waddch ();
8672int
8673main ()
8674{
8675waddch ();
8676 ;
8677 return 0;
8678}
8679_ACEOF
8680rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008681if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008682 (eval $ac_link) 2>&5
8683 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008685 (exit $ac_status); } &&
8686 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008688 (eval $ac_try) 2>&5
8689 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008691 (exit $ac_status); }; }; then
8692 ac_cv_lib_ncurses_waddch=yes
Joseph Praneviche884f9c1999-01-03 16:14:34 +00008693else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008694 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008695sed 's/^/| /' conftest.$ac_ext >&5
8696
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008697ac_cv_lib_ncurses_waddch=no
Joseph Praneviche884f9c1999-01-03 16:14:34 +00008698fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008699rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8700LIBS=$ac_check_lib_save_LIBS
8701fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008702echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008703echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6
8704if test $ac_cv_lib_ncurses_waddch = yes; then
Joseph Praneviche884f9c1999-01-03 16:14:34 +00008705
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008706cat >>confdefs.h <<\_ACEOF
Alexandre Julliard48957682001-12-26 23:08:31 +00008707#define HAVE_LIBNCURSES 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008708_ACEOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +00008709
Alexandre Julliard48957682001-12-26 23:08:31 +00008710 CURSESLIBS="-lncurses"
Alexandre Julliard638f1691999-01-17 16:32:32 +00008711else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008712
8713for ac_header in curses.h
Patrik Stridvall24110281999-02-04 10:09:54 +00008714do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008715as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008716if eval "test \"\${$as_ac_Header+set}\" = set"; then
8717 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008718echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8719if eval "test \"\${$as_ac_Header+set}\" = set"; then
8720 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008721fi
8722echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8723echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00008724else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008725 # Is the header compilable?
8726echo "$as_me:$LINENO: checking $ac_header usability" >&5
8727echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8728cat >conftest.$ac_ext <<_ACEOF
8729#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008730/* confdefs.h. */
8731_ACEOF
8732cat confdefs.h >>conftest.$ac_ext
8733cat >>conftest.$ac_ext <<_ACEOF
8734/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008735$ac_includes_default
8736#include <$ac_header>
8737_ACEOF
8738rm -f conftest.$ac_objext
8739if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8740 (eval $ac_compile) 2>&5
8741 ac_status=$?
8742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8743 (exit $ac_status); } &&
8744 { ac_try='test -s conftest.$ac_objext'
8745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8746 (eval $ac_try) 2>&5
8747 ac_status=$?
8748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749 (exit $ac_status); }; }; then
8750 ac_header_compiler=yes
8751else
8752 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008753sed 's/^/| /' conftest.$ac_ext >&5
8754
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008755ac_header_compiler=no
8756fi
8757rm -f conftest.$ac_objext conftest.$ac_ext
8758echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8759echo "${ECHO_T}$ac_header_compiler" >&6
8760
8761# Is the header present?
8762echo "$as_me:$LINENO: checking $ac_header presence" >&5
8763echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8764cat >conftest.$ac_ext <<_ACEOF
8765#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008766/* confdefs.h. */
8767_ACEOF
8768cat confdefs.h >>conftest.$ac_ext
8769cat >>conftest.$ac_ext <<_ACEOF
8770/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008771#include <$ac_header>
8772_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008773if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008774 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8775 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00008776 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008777 rm -f conftest.er1
8778 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008780 (exit $ac_status); } >/dev/null; then
8781 if test -s conftest.err; then
8782 ac_cpp_err=$ac_c_preproc_warn_flag
8783 else
8784 ac_cpp_err=
8785 fi
Patrik Stridvall24110281999-02-04 10:09:54 +00008786else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008787 ac_cpp_err=yes
8788fi
8789if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008790 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008791else
8792 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008793sed 's/^/| /' conftest.$ac_ext >&5
8794
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008795 ac_header_preproc=no
Patrik Stridvall24110281999-02-04 10:09:54 +00008796fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008797rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008798echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8799echo "${ECHO_T}$ac_header_preproc" >&6
8800
8801# So? What about this header?
8802case $ac_header_compiler:$ac_header_preproc in
8803 yes:no )
8804 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8805echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8806 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008807echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8808 (
8809 cat <<\_ASBOX
8810## ------------------------------------ ##
8811## Report this to bug-autoconf@gnu.org. ##
8812## ------------------------------------ ##
8813_ASBOX
8814 ) |
8815 sed "s/^/$as_me: WARNING: /" >&2
8816 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008817 no:yes )
8818 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8819echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8820 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8821echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8822 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008823echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8824 (
8825 cat <<\_ASBOX
8826## ------------------------------------ ##
8827## Report this to bug-autoconf@gnu.org. ##
8828## ------------------------------------ ##
8829_ASBOX
8830 ) |
8831 sed "s/^/$as_me: WARNING: /" >&2
8832 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008833esac
8834echo "$as_me:$LINENO: checking for $ac_header" >&5
8835echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8836if eval "test \"\${$as_ac_Header+set}\" = set"; then
8837 echo $ECHO_N "(cached) $ECHO_C" >&6
8838else
8839 eval "$as_ac_Header=$ac_header_preproc"
Patrik Stridvall24110281999-02-04 10:09:54 +00008840fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008841echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008842echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008843
8844fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008845if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008846 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008847#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008848_ACEOF
8849 echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008850echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6
8851if test "${ac_cv_lib_curses_waddch+set}" = set; then
8852 echo $ECHO_N "(cached) $ECHO_C" >&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +00008853else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008854 ac_check_lib_save_LIBS=$LIBS
Joseph Praneviche884f9c1999-01-03 16:14:34 +00008855LIBS="-lcurses $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008856cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008857#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008858/* confdefs.h. */
8859_ACEOF
8860cat confdefs.h >>conftest.$ac_ext
8861cat >>conftest.$ac_ext <<_ACEOF
8862/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008863
Joseph Praneviche884f9c1999-01-03 16:14:34 +00008864/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008865#ifdef __cplusplus
8866extern "C"
8867#endif
Joseph Praneviche884f9c1999-01-03 16:14:34 +00008868/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008869 builtin and then its argument prototype would still apply. */
8870char waddch ();
8871int
8872main ()
8873{
8874waddch ();
8875 ;
8876 return 0;
8877}
8878_ACEOF
8879rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008880if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008881 (eval $ac_link) 2>&5
8882 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008884 (exit $ac_status); } &&
8885 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008887 (eval $ac_try) 2>&5
8888 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008890 (exit $ac_status); }; }; then
8891 ac_cv_lib_curses_waddch=yes
Joseph Praneviche884f9c1999-01-03 16:14:34 +00008892else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008893 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008894sed 's/^/| /' conftest.$ac_ext >&5
8895
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008896ac_cv_lib_curses_waddch=no
Joseph Praneviche884f9c1999-01-03 16:14:34 +00008897fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008898rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8899LIBS=$ac_check_lib_save_LIBS
8900fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008901echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008902echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6
8903if test $ac_cv_lib_curses_waddch = yes; then
Joseph Praneviche884f9c1999-01-03 16:14:34 +00008904
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008905cat >>confdefs.h <<\_ACEOF
Alexandre Julliard48957682001-12-26 23:08:31 +00008906#define HAVE_LIBCURSES 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008907_ACEOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +00008908
Alexandre Julliard48957682001-12-26 23:08:31 +00008909 CURSESLIBS="-lcurses"
Joseph Praneviche884f9c1999-01-03 16:14:34 +00008910fi
8911
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00008912fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008913
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00008914done
8915
8916fi
Alexandre Julliard48957682001-12-26 23:08:31 +00008917
Alexandre Julliard48957682001-12-26 23:08:31 +00008918fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008919
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00008920done
8921
Alexandre Julliard48957682001-12-26 23:08:31 +00008922 saved_libs="$LIBS"
8923 LIBS="$CURSESLIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008924
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008925
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008926for ac_func in getbkgd resizeterm
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00008927do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008928as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008929echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008930echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8931if eval "test \"\${$as_ac_var+set}\" = set"; then
8932 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard638f1691999-01-17 16:32:32 +00008933else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008934 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008935#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008936/* confdefs.h. */
8937_ACEOF
8938cat confdefs.h >>conftest.$ac_ext
8939cat >>conftest.$ac_ext <<_ACEOF
8940/* end confdefs.h. */
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00008941/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008942 which can conflict with char $ac_func (); below.
8943 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8944 <limits.h> exists even on freestanding compilers. */
8945#ifdef __STDC__
8946# include <limits.h>
8947#else
8948# include <assert.h>
8949#endif
Alexandre Julliard638f1691999-01-17 16:32:32 +00008950/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008951#ifdef __cplusplus
8952extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008953{
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008954#endif
Alexandre Julliard638f1691999-01-17 16:32:32 +00008955/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008956 builtin and then its argument prototype would still apply. */
8957char $ac_func ();
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00008958/* The GNU C library defines this for functions which it implements
8959 to always fail with ENOSYS. Some functions are actually named
8960 something starting with __ and the normal name is an alias. */
8961#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8962choke me
8963#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008964char (*f) () = $ac_func;
8965#endif
8966#ifdef __cplusplus
8967}
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00008968#endif
8969
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008970int
8971main ()
8972{
8973return f != $ac_func;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008974 ;
8975 return 0;
8976}
8977_ACEOF
8978rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008979if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008980 (eval $ac_link) 2>&5
8981 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008983 (exit $ac_status); } &&
8984 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008986 (eval $ac_try) 2>&5
8987 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008989 (exit $ac_status); }; }; then
8990 eval "$as_ac_var=yes"
Alexandre Julliard638f1691999-01-17 16:32:32 +00008991else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008992 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008993sed 's/^/| /' conftest.$ac_ext >&5
8994
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008995eval "$as_ac_var=no"
Alexandre Julliard638f1691999-01-17 16:32:32 +00008996fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008997rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard638f1691999-01-17 16:32:32 +00008998fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008999echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009000echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9001if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009002 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009003#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009004_ACEOF
Alexandre Julliard638f1691999-01-17 16:32:32 +00009005
Alexandre Julliard638f1691999-01-17 16:32:32 +00009006fi
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00009007done
Alexandre Julliard638f1691999-01-17 16:32:32 +00009008
Alexandre Julliard48957682001-12-26 23:08:31 +00009009 LIBS="$saved_libs"
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009010fi
9011
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009012
Shi Quan He6b0720f2002-03-21 02:58:39 +00009013# Extract the first word of "sane-config", so it can be a program name with args.
9014set dummy sane-config; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009015echo "$as_me:$LINENO: checking for $ac_word" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009016echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9017if test "${ac_cv_prog_sane_devel+set}" = set; then
9018 echo $ECHO_N "(cached) $ECHO_C" >&6
9019else
9020 if test -n "$sane_devel"; then
9021 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9022else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9024for as_dir in $PATH
9025do
9026 IFS=$as_save_IFS
9027 test -z "$as_dir" && as_dir=.
9028 for ac_exec_ext in '' $ac_executable_extensions; do
9029 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9030 ac_cv_prog_sane_devel="sane-config"
9031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9032 break 2
9033 fi
9034done
Shi Quan He6b0720f2002-03-21 02:58:39 +00009035done
9036
9037 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9038fi
9039fi
9040sane_devel=$ac_cv_prog_sane_devel
9041if test -n "$sane_devel"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009042 echo "$as_me:$LINENO: result: $sane_devel" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009043echo "${ECHO_T}$sane_devel" >&6
9044else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009045 echo "$as_me:$LINENO: result: no" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009046echo "${ECHO_T}no" >&6
9047fi
9048
9049if test "$sane_devel" = "no"
9050then
9051 SANELIBS=""
9052 SANEINCL=""
9053else
9054 SANELIBS="`$sane_devel --libs`"
9055 SANEINCL="`$sane_devel --cflags`"
9056 ac_save_CPPFLAGS="$CPPFLAGS"
9057 ac_save_LIBS="$LIBS"
9058 CPPFLAGS="$CPPFLAGS $SANEINCL"
9059 LIBS="$LIBS $SANELIBS"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009060 if test "${ac_cv_header_sane_sane_h+set}" = set; then
9061 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009062echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
9063if test "${ac_cv_header_sane_sane_h+set}" = set; then
9064 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009065fi
9066echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
9067echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
Shi Quan He6b0720f2002-03-21 02:58:39 +00009068else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009069 # Is the header compilable?
9070echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
9071echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6
9072cat >conftest.$ac_ext <<_ACEOF
9073#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009074/* confdefs.h. */
9075_ACEOF
9076cat confdefs.h >>conftest.$ac_ext
9077cat >>conftest.$ac_ext <<_ACEOF
9078/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009079$ac_includes_default
9080#include <sane/sane.h>
9081_ACEOF
9082rm -f conftest.$ac_objext
9083if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9084 (eval $ac_compile) 2>&5
9085 ac_status=$?
9086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087 (exit $ac_status); } &&
9088 { ac_try='test -s conftest.$ac_objext'
9089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9090 (eval $ac_try) 2>&5
9091 ac_status=$?
9092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9093 (exit $ac_status); }; }; then
9094 ac_header_compiler=yes
9095else
9096 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009097sed 's/^/| /' conftest.$ac_ext >&5
9098
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009099ac_header_compiler=no
9100fi
9101rm -f conftest.$ac_objext conftest.$ac_ext
9102echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9103echo "${ECHO_T}$ac_header_compiler" >&6
9104
9105# Is the header present?
9106echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
9107echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6
9108cat >conftest.$ac_ext <<_ACEOF
9109#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009110/* confdefs.h. */
9111_ACEOF
9112cat confdefs.h >>conftest.$ac_ext
9113cat >>conftest.$ac_ext <<_ACEOF
9114/* end confdefs.h. */
Shi Quan He6b0720f2002-03-21 02:58:39 +00009115#include <sane/sane.h>
9116_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009117if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009118 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9119 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00009120 grep -v '^ *+' conftest.er1 >conftest.err
Shi Quan He6b0720f2002-03-21 02:58:39 +00009121 rm -f conftest.er1
9122 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009124 (exit $ac_status); } >/dev/null; then
9125 if test -s conftest.err; then
9126 ac_cpp_err=$ac_c_preproc_warn_flag
9127 else
9128 ac_cpp_err=
9129 fi
9130else
9131 ac_cpp_err=yes
9132fi
9133if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009134 ac_header_preproc=yes
Shi Quan He6b0720f2002-03-21 02:58:39 +00009135else
9136 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009137sed 's/^/| /' conftest.$ac_ext >&5
9138
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009139 ac_header_preproc=no
Shi Quan He6b0720f2002-03-21 02:58:39 +00009140fi
9141rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009142echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9143echo "${ECHO_T}$ac_header_preproc" >&6
9144
9145# So? What about this header?
9146case $ac_header_compiler:$ac_header_preproc in
9147 yes:no )
9148 { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
9149echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9150 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009151echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
9152 (
9153 cat <<\_ASBOX
9154## ------------------------------------ ##
9155## Report this to bug-autoconf@gnu.org. ##
9156## ------------------------------------ ##
9157_ASBOX
9158 ) |
9159 sed "s/^/$as_me: WARNING: /" >&2
9160 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009161 no:yes )
9162 { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
9163echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
9164 { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5
9165echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;}
9166 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009167echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
9168 (
9169 cat <<\_ASBOX
9170## ------------------------------------ ##
9171## Report this to bug-autoconf@gnu.org. ##
9172## ------------------------------------ ##
9173_ASBOX
9174 ) |
9175 sed "s/^/$as_me: WARNING: /" >&2
9176 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009177esac
9178echo "$as_me:$LINENO: checking for sane/sane.h" >&5
9179echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
9180if test "${ac_cv_header_sane_sane_h+set}" = set; then
9181 echo $ECHO_N "(cached) $ECHO_C" >&6
9182else
9183 ac_cv_header_sane_sane_h=$ac_header_preproc
Shi Quan He6b0720f2002-03-21 02:58:39 +00009184fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009185echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009186echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009187
9188fi
Shi Quan He6b0720f2002-03-21 02:58:39 +00009189if test $ac_cv_header_sane_sane_h = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009190 echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009191echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6
9192if test "${ac_cv_lib_sane_sane_open+set}" = set; then
9193 echo $ECHO_N "(cached) $ECHO_C" >&6
9194else
9195 ac_check_lib_save_LIBS=$LIBS
9196LIBS="-lsane $LIBS"
9197cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009198#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009199/* confdefs.h. */
9200_ACEOF
9201cat confdefs.h >>conftest.$ac_ext
9202cat >>conftest.$ac_ext <<_ACEOF
9203/* end confdefs.h. */
Shi Quan He6b0720f2002-03-21 02:58:39 +00009204
9205/* Override any gcc2 internal prototype to avoid an error. */
9206#ifdef __cplusplus
9207extern "C"
9208#endif
9209/* We use char because int might match the return type of a gcc2
9210 builtin and then its argument prototype would still apply. */
9211char sane_open ();
9212int
9213main ()
9214{
9215sane_open ();
9216 ;
9217 return 0;
9218}
9219_ACEOF
9220rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009221if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009222 (eval $ac_link) 2>&5
9223 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009225 (exit $ac_status); } &&
9226 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009228 (eval $ac_try) 2>&5
9229 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009231 (exit $ac_status); }; }; then
9232 ac_cv_lib_sane_sane_open=yes
9233else
9234 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009235sed 's/^/| /' conftest.$ac_ext >&5
9236
Shi Quan He6b0720f2002-03-21 02:58:39 +00009237ac_cv_lib_sane_sane_open=no
9238fi
9239rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9240LIBS=$ac_check_lib_save_LIBS
9241fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009242echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009243echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6
9244if test $ac_cv_lib_sane_sane_open = yes; then
9245
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009246cat >>confdefs.h <<\_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00009247#define HAVE_SANE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009248_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00009249
9250else
9251 SANELIBS=""
Alexandre Julliard96328b32002-03-31 19:23:41 +00009252 SANEINCL=""
Shi Quan He6b0720f2002-03-21 02:58:39 +00009253fi
9254
Alexandre Julliard96328b32002-03-31 19:23:41 +00009255else
9256 SANELIBS=""
9257 SANEINCL=""
Shi Quan He6b0720f2002-03-21 02:58:39 +00009258fi
9259
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009260
Shi Quan He6b0720f2002-03-21 02:58:39 +00009261 LIBS="$ac_save_LIBS"
9262 CPPFLAGS="$ac_save_CPPFLAGS"
9263fi
9264
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009265
9266
9267echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009268echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
9269if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
9270 echo $ECHO_N "(cached) $ECHO_C" >&6
Ian Pilcher563598d2001-05-16 20:56:05 +00009271else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009272 ac_check_lib_save_LIBS=$LIBS
Dmitry Timoshkov8871a112001-11-06 22:26:53 +00009273LIBS="-lfreetype $X_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009274cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009275#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009276/* confdefs.h. */
9277_ACEOF
9278cat confdefs.h >>conftest.$ac_ext
9279cat >>conftest.$ac_ext <<_ACEOF
9280/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009281
Ian Pilcher563598d2001-05-16 20:56:05 +00009282/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009283#ifdef __cplusplus
9284extern "C"
9285#endif
Ian Pilcher563598d2001-05-16 20:56:05 +00009286/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009287 builtin and then its argument prototype would still apply. */
9288char FT_Init_FreeType ();
9289int
9290main ()
9291{
9292FT_Init_FreeType ();
9293 ;
9294 return 0;
9295}
9296_ACEOF
9297rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009298if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009299 (eval $ac_link) 2>&5
9300 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009302 (exit $ac_status); } &&
9303 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009305 (eval $ac_try) 2>&5
9306 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009308 (exit $ac_status); }; }; then
9309 ac_cv_lib_freetype_FT_Init_FreeType=yes
Ian Pilcher563598d2001-05-16 20:56:05 +00009310else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009311 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009312sed 's/^/| /' conftest.$ac_ext >&5
9313
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009314ac_cv_lib_freetype_FT_Init_FreeType=no
Ian Pilcher563598d2001-05-16 20:56:05 +00009315fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009316rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9317LIBS=$ac_check_lib_save_LIBS
Ian Pilcher563598d2001-05-16 20:56:05 +00009318fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009319echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009320echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
9321if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
Ian Pilcher563598d2001-05-16 20:56:05 +00009322 ft_lib=yes
9323else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009324 ft_lib=no
Ian Pilcher563598d2001-05-16 20:56:05 +00009325fi
9326
9327if test "$ft_lib" = "no"
9328then
Ian Pilcher563598d2001-05-16 20:56:05 +00009329 FREETYPEINCL=""
9330 wine_cv_msg_freetype=no
9331else
9332 # Extract the first word of "freetype-config", so it can be a program name with args.
9333set dummy freetype-config; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009334echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009335echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9336if test "${ac_cv_prog_ft_devel+set}" = set; then
9337 echo $ECHO_N "(cached) $ECHO_C" >&6
Ian Pilcher563598d2001-05-16 20:56:05 +00009338else
9339 if test -n "$ft_devel"; then
9340 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
9341else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9343for as_dir in $PATH
9344do
9345 IFS=$as_save_IFS
9346 test -z "$as_dir" && as_dir=.
9347 for ac_exec_ext in '' $ac_executable_extensions; do
9348 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9349 ac_cv_prog_ft_devel="freetype-config"
9350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9351 break 2
9352 fi
9353done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009354done
9355
Ian Pilcher563598d2001-05-16 20:56:05 +00009356 test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
9357fi
9358fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009359ft_devel=$ac_cv_prog_ft_devel
Ian Pilcher563598d2001-05-16 20:56:05 +00009360if test -n "$ft_devel"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009361 echo "$as_me:$LINENO: result: $ft_devel" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009362echo "${ECHO_T}$ft_devel" >&6
Ian Pilcher563598d2001-05-16 20:56:05 +00009363else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009364 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009365echo "${ECHO_T}no" >&6
Ian Pilcher563598d2001-05-16 20:56:05 +00009366fi
9367
9368 if test "$ft_devel" = "no"
9369 then
Marcus Meissnerd28955d2001-05-31 21:35:15 +00009370 # Extract the first word of "freetype2-config", so it can be a program name with args.
9371set dummy freetype2-config; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009372echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009373echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9374if test "${ac_cv_prog_ft_devel2+set}" = set; then
9375 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissnerd28955d2001-05-31 21:35:15 +00009376else
9377 if test -n "$ft_devel2"; then
9378 ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
9379else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9381for as_dir in $PATH
9382do
9383 IFS=$as_save_IFS
9384 test -z "$as_dir" && as_dir=.
9385 for ac_exec_ext in '' $ac_executable_extensions; do
9386 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9387 ac_cv_prog_ft_devel2="freetype2-config"
9388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9389 break 2
9390 fi
9391done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009392done
9393
Marcus Meissnerd28955d2001-05-31 21:35:15 +00009394 test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
9395fi
9396fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009397ft_devel2=$ac_cv_prog_ft_devel2
Marcus Meissnerd28955d2001-05-31 21:35:15 +00009398if test -n "$ft_devel2"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009399 echo "$as_me:$LINENO: result: $ft_devel2" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009400echo "${ECHO_T}$ft_devel2" >&6
Marcus Meissnerd28955d2001-05-31 21:35:15 +00009401else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009402 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009403echo "${ECHO_T}no" >&6
Marcus Meissnerd28955d2001-05-31 21:35:15 +00009404fi
9405
9406 if test "$ft_devel2" = "freetype2-config"
9407 then
9408 ft_devel=$ft_devel2
9409 fi
9410 fi
9411 if test "$ft_devel" = "no"
9412 then
Ian Pilcher563598d2001-05-16 20:56:05 +00009413 FREETYPEINCL=""
9414 wine_cv_msg_freetype=yes
9415 else
Marcus Meissnerd28955d2001-05-31 21:35:15 +00009416 FREETYPEINCL=`$ft_devel --cflags`
Ian Pilcher40432fe2001-06-06 21:05:23 +00009417 ac_save_CPPFLAGS="$CPPFLAGS"
9418 CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009419
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009420
9421
9422
9423
9424
9425
9426
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009427for ac_header in freetype/freetype.h \
Ian Pilcher40432fe2001-06-06 21:05:23 +00009428 freetype/ftglyph.h \
9429 freetype/tttables.h \
9430 freetype/ftnames.h \
9431 freetype/ftsnames.h \
Huw D M Davies814654e2001-09-12 20:21:06 +00009432 freetype/ttnameid.h \
Huw D M Davies4e2024e2001-10-23 20:06:32 +00009433 freetype/ftoutln.h \
9434 freetype/internal/sfnt.h
Ian Pilcher40432fe2001-06-06 21:05:23 +00009435do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009436as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009437if eval "test \"\${$as_ac_Header+set}\" = set"; then
9438 echo "$as_me:$LINENO: checking for $ac_header" >&5
9439echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9440if eval "test \"\${$as_ac_Header+set}\" = set"; then
9441 echo $ECHO_N "(cached) $ECHO_C" >&6
9442fi
9443echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9444echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9445else
9446 # Is the header compilable?
9447echo "$as_me:$LINENO: checking $ac_header usability" >&5
9448echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9449cat >conftest.$ac_ext <<_ACEOF
9450#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009451/* confdefs.h. */
9452_ACEOF
9453cat confdefs.h >>conftest.$ac_ext
9454cat >>conftest.$ac_ext <<_ACEOF
9455/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009456$ac_includes_default
9457#include <$ac_header>
9458_ACEOF
9459rm -f conftest.$ac_objext
9460if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9461 (eval $ac_compile) 2>&5
9462 ac_status=$?
9463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9464 (exit $ac_status); } &&
9465 { ac_try='test -s conftest.$ac_objext'
9466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9467 (eval $ac_try) 2>&5
9468 ac_status=$?
9469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470 (exit $ac_status); }; }; then
9471 ac_header_compiler=yes
9472else
9473 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009474sed 's/^/| /' conftest.$ac_ext >&5
9475
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009476ac_header_compiler=no
9477fi
9478rm -f conftest.$ac_objext conftest.$ac_ext
9479echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9480echo "${ECHO_T}$ac_header_compiler" >&6
9481
9482# Is the header present?
9483echo "$as_me:$LINENO: checking $ac_header presence" >&5
9484echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9485cat >conftest.$ac_ext <<_ACEOF
9486#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009487/* confdefs.h. */
9488_ACEOF
9489cat confdefs.h >>conftest.$ac_ext
9490cat >>conftest.$ac_ext <<_ACEOF
9491/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009492#include <$ac_header>
9493_ACEOF
9494if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9495 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9496 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00009497 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009498 rm -f conftest.er1
9499 cat conftest.err >&5
9500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501 (exit $ac_status); } >/dev/null; then
9502 if test -s conftest.err; then
9503 ac_cpp_err=$ac_c_preproc_warn_flag
9504 else
9505 ac_cpp_err=
9506 fi
9507else
9508 ac_cpp_err=yes
9509fi
9510if test -z "$ac_cpp_err"; then
9511 ac_header_preproc=yes
9512else
9513 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009514sed 's/^/| /' conftest.$ac_ext >&5
9515
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009516 ac_header_preproc=no
9517fi
9518rm -f conftest.err conftest.$ac_ext
9519echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9520echo "${ECHO_T}$ac_header_preproc" >&6
9521
9522# So? What about this header?
9523case $ac_header_compiler:$ac_header_preproc in
9524 yes:no )
9525 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9526echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9527 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009528echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9529 (
9530 cat <<\_ASBOX
9531## ------------------------------------ ##
9532## Report this to bug-autoconf@gnu.org. ##
9533## ------------------------------------ ##
9534_ASBOX
9535 ) |
9536 sed "s/^/$as_me: WARNING: /" >&2
9537 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009538 no:yes )
9539 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9540echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9541 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9542echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9543 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009544echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9545 (
9546 cat <<\_ASBOX
9547## ------------------------------------ ##
9548## Report this to bug-autoconf@gnu.org. ##
9549## ------------------------------------ ##
9550_ASBOX
9551 ) |
9552 sed "s/^/$as_me: WARNING: /" >&2
9553 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009554esac
9555echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009556echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9557if eval "test \"\${$as_ac_Header+set}\" = set"; then
9558 echo $ECHO_N "(cached) $ECHO_C" >&6
Ian Pilcher40432fe2001-06-06 21:05:23 +00009559else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009560 eval "$as_ac_Header=$ac_header_preproc"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009561fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009562echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009563echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009564
Ian Pilcher40432fe2001-06-06 21:05:23 +00009565fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009566if test `eval echo '${'$as_ac_Header'}'` = yes; then
9567 cat >>confdefs.h <<_ACEOF
9568#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9569_ACEOF
9570
9571fi
9572
Ian Pilcher40432fe2001-06-06 21:05:23 +00009573done
9574
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009575 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009576#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009577/* confdefs.h. */
9578_ACEOF
9579cat confdefs.h >>conftest.$ac_ext
9580cat >>conftest.$ac_ext <<_ACEOF
9581/* end confdefs.h. */
Alexandre Julliard18d75732002-01-29 03:02:50 +00009582#include <ft2build.h>
9583 #include <freetype/fttrigon.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009584_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009585if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009586 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9587 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00009588 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009589 rm -f conftest.er1
9590 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009592 (exit $ac_status); } >/dev/null; then
9593 if test -s conftest.err; then
9594 ac_cpp_err=$ac_c_preproc_warn_flag
9595 else
9596 ac_cpp_err=
9597 fi
9598else
9599 ac_cpp_err=yes
9600fi
9601if test -z "$ac_cpp_err"; then
9602
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009603cat >>confdefs.h <<\_ACEOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00009604#define HAVE_FREETYPE_FTTRIGON_H 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009605_ACEOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00009606
Huw D M Daviesc1d38132002-02-08 17:09:50 +00009607 wine_cv_fttrigon=yes
Alexandre Julliard18d75732002-01-29 03:02:50 +00009608else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009609 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009610sed 's/^/| /' conftest.$ac_ext >&5
9611
Huw D M Daviesc1d38132002-02-08 17:09:50 +00009612 wine_cv_fttrigon=no
Alexandre Julliard18d75732002-01-29 03:02:50 +00009613fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009614rm -f conftest.err conftest.$ac_ext
Ian Pilcher40432fe2001-06-06 21:05:23 +00009615 CPPFLAGS="$ac_save_CPPFLAGS"
Huw D M Daviesc1d38132002-02-08 17:09:50 +00009616 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
Huw D M Davies9b1d3722002-01-29 17:09:28 +00009617 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009618
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009619cat >>confdefs.h <<\_ACEOF
Huw D M Davies9b1d3722002-01-29 17:09:28 +00009620#define HAVE_FREETYPE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009621_ACEOF
Huw D M Davies9b1d3722002-01-29 17:09:28 +00009622
9623 wine_cv_msg_freetype=no
9624 else
Huw D M Davies9b1d3722002-01-29 17:09:28 +00009625 FREETYPEINCL=""
9626 wine_cv_msg_freetype=yes
9627 fi
Ian Pilcher563598d2001-05-16 20:56:05 +00009628 fi
9629fi
9630
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009631
9632echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009633echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6
9634if test "${ac_cv_c_ppdev+set}" = set; then
9635 echo $ECHO_N "(cached) $ECHO_C" >&6
Pavel Roskin94d99641998-12-26 11:52:51 +00009636else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009637 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009638#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009639/* confdefs.h. */
9640_ACEOF
9641cat confdefs.h >>conftest.$ac_ext
9642cat >>conftest.$ac_ext <<_ACEOF
9643/* end confdefs.h. */
Uwe Bonnes6509fa92001-06-26 21:06:07 +00009644#include <linux/ppdev.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009645int
9646main ()
9647{
Uwe Bonnes6509fa92001-06-26 21:06:07 +00009648ioctl (1,PPCLAIM,0)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009649 ;
9650 return 0;
9651}
9652_ACEOF
9653rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009654if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009655 (eval $ac_compile) 2>&5
9656 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009658 (exit $ac_status); } &&
9659 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009661 (eval $ac_try) 2>&5
9662 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009664 (exit $ac_status); }; }; then
Uwe Bonnes6509fa92001-06-26 21:06:07 +00009665 ac_cv_c_ppdev="yes"
9666else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009667 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009668sed 's/^/| /' conftest.$ac_ext >&5
9669
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009670ac_cv_c_ppdev="no"
Uwe Bonnes6509fa92001-06-26 21:06:07 +00009671fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009672rm -f conftest.$ac_objext conftest.$ac_ext
Uwe Bonnes6509fa92001-06-26 21:06:07 +00009673
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009674fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009675echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009676echo "${ECHO_T}$ac_cv_c_ppdev" >&6
Uwe Bonnes6509fa92001-06-26 21:06:07 +00009677if test "$ac_cv_c_ppdev" = "yes"
9678then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009679
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009680cat >>confdefs.h <<\_ACEOF
Uwe Bonnes6509fa92001-06-26 21:06:07 +00009681#define HAVE_PPDEV 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009682_ACEOF
Uwe Bonnes6509fa92001-06-26 21:06:07 +00009683
9684fi
9685
Marcus Meissner5ee517a2002-08-09 19:49:31 +00009686echo "$as_me:$LINENO: checking for va_copy" >&5
9687echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
9688if test "${ac_cv_c_va_copy+set}" = set; then
9689 echo $ECHO_N "(cached) $ECHO_C" >&6
9690else
9691 cat >conftest.$ac_ext <<_ACEOF
9692#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009693/* confdefs.h. */
9694_ACEOF
9695cat confdefs.h >>conftest.$ac_ext
9696cat >>conftest.$ac_ext <<_ACEOF
9697/* end confdefs.h. */
Marcus Meissner5ee517a2002-08-09 19:49:31 +00009698#include <stdarg.h>
Marcus Meissner5ee517a2002-08-09 19:49:31 +00009699int
9700main ()
9701{
9702va_list ap1, ap2;
9703 va_copy(ap1,ap2);
9704
9705 ;
9706 return 0;
9707}
9708_ACEOF
9709rm -f conftest.$ac_objext conftest$ac_exeext
9710if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9711 (eval $ac_link) 2>&5
9712 ac_status=$?
9713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714 (exit $ac_status); } &&
9715 { ac_try='test -s conftest$ac_exeext'
9716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9717 (eval $ac_try) 2>&5
9718 ac_status=$?
9719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9720 (exit $ac_status); }; }; then
9721 ac_cv_c_va_copy="yes"
9722else
9723 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009724sed 's/^/| /' conftest.$ac_ext >&5
9725
Marcus Meissner5ee517a2002-08-09 19:49:31 +00009726ac_cv_c_va_copy="no"
9727fi
9728rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9729
9730fi
9731echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
9732echo "${ECHO_T}$ac_cv_c_va_copy" >&6
9733if test "$ac_cv_c_va_copy" = "yes"
9734then
9735
9736cat >>confdefs.h <<\_ACEOF
9737#define HAVE_VA_COPY 1
9738_ACEOF
9739
9740fi
9741echo "$as_me:$LINENO: checking for __va_copy" >&5
9742echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
9743if test "${ac_cv_c___va_copy+set}" = set; then
9744 echo $ECHO_N "(cached) $ECHO_C" >&6
9745else
9746 cat >conftest.$ac_ext <<_ACEOF
9747#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009748/* confdefs.h. */
9749_ACEOF
9750cat confdefs.h >>conftest.$ac_ext
9751cat >>conftest.$ac_ext <<_ACEOF
9752/* end confdefs.h. */
Marcus Meissner5ee517a2002-08-09 19:49:31 +00009753#include <stdarg.h>
Marcus Meissner5ee517a2002-08-09 19:49:31 +00009754int
9755main ()
9756{
9757va_list ap1, ap2;
9758 __va_copy(ap1,ap2);
9759
9760 ;
9761 return 0;
9762}
9763_ACEOF
9764rm -f conftest.$ac_objext conftest$ac_exeext
9765if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9766 (eval $ac_link) 2>&5
9767 ac_status=$?
9768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769 (exit $ac_status); } &&
9770 { ac_try='test -s conftest$ac_exeext'
9771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9772 (eval $ac_try) 2>&5
9773 ac_status=$?
9774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775 (exit $ac_status); }; }; then
9776 ac_cv_c___va_copy="yes"
9777else
9778 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009779sed 's/^/| /' conftest.$ac_ext >&5
9780
Marcus Meissner5ee517a2002-08-09 19:49:31 +00009781ac_cv_c___va_copy="no"
9782fi
9783rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9784
9785fi
9786echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
9787echo "${ECHO_T}$ac_cv_c___va_copy" >&6
9788if test "$ac_cv_c___va_copy" = "yes"
9789then
9790
9791cat >>confdefs.h <<\_ACEOF
9792#define HAVE___VA_COPY 1
9793_ACEOF
9794
9795fi
9796
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009797
9798
9799
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009800for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00009801do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009802as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009803if eval "test \"\${$as_ac_Header+set}\" = set"; then
9804 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009805echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9806if eval "test \"\${$as_ac_Header+set}\" = set"; then
9807 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009808fi
9809echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9810echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00009811else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009812 # Is the header compilable?
9813echo "$as_me:$LINENO: checking $ac_header usability" >&5
9814echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9815cat >conftest.$ac_ext <<_ACEOF
9816#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009817/* confdefs.h. */
9818_ACEOF
9819cat confdefs.h >>conftest.$ac_ext
9820cat >>conftest.$ac_ext <<_ACEOF
9821/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009822$ac_includes_default
9823#include <$ac_header>
9824_ACEOF
9825rm -f conftest.$ac_objext
9826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9827 (eval $ac_compile) 2>&5
9828 ac_status=$?
9829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830 (exit $ac_status); } &&
9831 { ac_try='test -s conftest.$ac_objext'
9832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9833 (eval $ac_try) 2>&5
9834 ac_status=$?
9835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836 (exit $ac_status); }; }; then
9837 ac_header_compiler=yes
9838else
9839 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009840sed 's/^/| /' conftest.$ac_ext >&5
9841
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009842ac_header_compiler=no
9843fi
9844rm -f conftest.$ac_objext conftest.$ac_ext
9845echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9846echo "${ECHO_T}$ac_header_compiler" >&6
9847
9848# Is the header present?
9849echo "$as_me:$LINENO: checking $ac_header presence" >&5
9850echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9851cat >conftest.$ac_ext <<_ACEOF
9852#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009853/* confdefs.h. */
9854_ACEOF
9855cat confdefs.h >>conftest.$ac_ext
9856cat >>conftest.$ac_ext <<_ACEOF
9857/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009858#include <$ac_header>
9859_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009860if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009861 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9862 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00009863 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009864 rm -f conftest.er1
9865 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009867 (exit $ac_status); } >/dev/null; then
9868 if test -s conftest.err; then
9869 ac_cpp_err=$ac_c_preproc_warn_flag
9870 else
9871 ac_cpp_err=
9872 fi
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00009873else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009874 ac_cpp_err=yes
9875fi
9876if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009877 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009878else
9879 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009880sed 's/^/| /' conftest.$ac_ext >&5
9881
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009882 ac_header_preproc=no
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00009883fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009884rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009885echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9886echo "${ECHO_T}$ac_header_preproc" >&6
9887
9888# So? What about this header?
9889case $ac_header_compiler:$ac_header_preproc in
9890 yes:no )
9891 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9892echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9893 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009894echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9895 (
9896 cat <<\_ASBOX
9897## ------------------------------------ ##
9898## Report this to bug-autoconf@gnu.org. ##
9899## ------------------------------------ ##
9900_ASBOX
9901 ) |
9902 sed "s/^/$as_me: WARNING: /" >&2
9903 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009904 no:yes )
9905 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9906echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9907 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9908echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9909 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009910echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9911 (
9912 cat <<\_ASBOX
9913## ------------------------------------ ##
9914## Report this to bug-autoconf@gnu.org. ##
9915## ------------------------------------ ##
9916_ASBOX
9917 ) |
9918 sed "s/^/$as_me: WARNING: /" >&2
9919 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009920esac
9921echo "$as_me:$LINENO: checking for $ac_header" >&5
9922echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9923if eval "test \"\${$as_ac_Header+set}\" = set"; then
9924 echo $ECHO_N "(cached) $ECHO_C" >&6
9925else
9926 eval "$as_ac_Header=$ac_header_preproc"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00009927fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009928echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009929echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009930
9931fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009932if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009933 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009934#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009935_ACEOF
Todd Vierlingecc76691998-12-15 17:49:02 +00009936 break
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00009937fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009938
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00009939done
9940
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009941
9942echo "$as_me:$LINENO: checking for Open Sound System" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009943echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6
9944if test "${ac_cv_c_opensoundsystem+set}" = set; then
9945 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00009946else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009947 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009948#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009949/* confdefs.h. */
9950_ACEOF
9951cat confdefs.h >>conftest.$ac_ext
9952cat >>conftest.$ac_ext <<_ACEOF
9953/* end confdefs.h. */
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00009954
Todd Vierlingecc76691998-12-15 17:49:02 +00009955 #if defined(HAVE_SYS_SOUNDCARD_H)
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00009956 #include <sys/soundcard.h>
Todd Vierlingecc76691998-12-15 17:49:02 +00009957 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00009958 #include <machine/soundcard.h>
Todd Vierlingecc76691998-12-15 17:49:02 +00009959 #elif defined(HAVE_SOUNDCARD_H)
9960 #include <soundcard.h>
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00009961 #endif
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00009962
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009963int
9964main ()
9965{
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00009966
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009967
Alexandre Julliard60ce85c1998-02-01 18:33:27 +00009968/* check for one of the Open Sound System specific SNDCTL_ defines */
9969#if !defined(SNDCTL_DSP_STEREO)
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00009970#error No open sound system
9971#endif
9972
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009973 ;
9974 return 0;
9975}
9976_ACEOF
9977rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009978if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009979 (eval $ac_compile) 2>&5
9980 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009982 (exit $ac_status); } &&
9983 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009985 (eval $ac_try) 2>&5
9986 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009988 (exit $ac_status); }; }; then
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00009989 ac_cv_c_opensoundsystem="yes"
9990else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009991 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009992sed 's/^/| /' conftest.$ac_ext >&5
9993
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009994ac_cv_c_opensoundsystem="no"
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00009995fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009996rm -f conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard0623a6f1998-01-18 18:01:49 +00009997fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009998echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009999echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000010000
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000010001if test "$ac_cv_c_opensoundsystem" = "yes"
10002then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010003
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010004cat >>confdefs.h <<\_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000010005#define HAVE_OSS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010006_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000010007
10008fi
10009
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010010echo "$as_me:$LINENO: checking for Open Sound System/MIDI interface" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010011echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6
10012if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then
10013 echo $ECHO_N "(cached) $ECHO_C" >&6
Eric Pouech338d3b21999-05-22 18:52:21 +000010014else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010015 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010016#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010017/* confdefs.h. */
10018_ACEOF
10019cat confdefs.h >>conftest.$ac_ext
10020cat >>conftest.$ac_ext <<_ACEOF
10021/* end confdefs.h. */
Eric Pouech338d3b21999-05-22 18:52:21 +000010022
10023 #if defined(HAVE_SYS_SOUNDCARD_H)
10024 #include <sys/soundcard.h>
10025 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
10026 #include <machine/soundcard.h>
10027 #elif defined(HAVE_SOUNDCARD_H)
10028 #include <soundcard.h>
10029 #endif
Eric Pouech338d3b21999-05-22 18:52:21 +000010030
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010031int
10032main ()
10033{
Eric Pouech338d3b21999-05-22 18:52:21 +000010034
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010035
Eric Pouech338d3b21999-05-22 18:52:21 +000010036/* check for one of the Open Sound System specific SNDCTL_SEQ defines */
10037#if !defined(SNDCTL_SEQ_SYNC)
10038#error No open sound system MIDI interface
10039#endif
10040
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010041 ;
10042 return 0;
10043}
10044_ACEOF
10045rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010046if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010047 (eval $ac_compile) 2>&5
10048 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010050 (exit $ac_status); } &&
10051 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010053 (eval $ac_try) 2>&5
10054 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010056 (exit $ac_status); }; }; then
Eric Pouech338d3b21999-05-22 18:52:21 +000010057 ac_cv_c_opensoundsystem_midi="yes"
10058else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010059 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010060sed 's/^/| /' conftest.$ac_ext >&5
10061
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010062ac_cv_c_opensoundsystem_midi="no"
Eric Pouech338d3b21999-05-22 18:52:21 +000010063fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010064rm -f conftest.$ac_objext conftest.$ac_ext
Eric Pouech338d3b21999-05-22 18:52:21 +000010065fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010066echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem_midi" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010067echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6
Eric Pouech338d3b21999-05-22 18:52:21 +000010068
10069if test "$ac_cv_c_opensoundsystem_midi" = "yes"
10070then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010071
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010072cat >>confdefs.h <<\_ACEOF
Eric Pouech338d3b21999-05-22 18:52:21 +000010073#define HAVE_OSS_MIDI 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010074_ACEOF
Eric Pouech338d3b21999-05-22 18:52:21 +000010075
10076fi
10077
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000010078# Extract the first word of "artsc-config", so it can be a program name with args.
10079set dummy artsc-config; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010080echo "$as_me:$LINENO: checking for $ac_word" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000010081echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10082if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
10083 echo $ECHO_N "(cached) $ECHO_C" >&6
10084else
10085 case $ARTSCCONFIG in
10086 [\\/]* | ?:[\\/]*)
10087 ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
10088 ;;
10089 *)
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10091for as_dir in $PATH
10092do
10093 IFS=$as_save_IFS
10094 test -z "$as_dir" && as_dir=.
10095 for ac_exec_ext in '' $ac_executable_extensions; do
10096 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10097 ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
10098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10099 break 2
10100 fi
10101done
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000010102done
10103
10104 ;;
10105esac
10106fi
10107ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
10108
10109if test -n "$ARTSCCONFIG"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010110 echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000010111echo "${ECHO_T}$ARTSCCONFIG" >&6
10112else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010113 echo "$as_me:$LINENO: result: no" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000010114echo "${ECHO_T}no" >&6
10115fi
10116
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010117echo "$as_me:$LINENO: checking for aRts Sound server" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000010118echo $ECHO_N "checking for aRts Sound server... $ECHO_C" >&6
10119if test "${ac_cv_c_artsserver+set}" = set; then
10120 echo $ECHO_N "(cached) $ECHO_C" >&6
10121else
10122 if test x$ARTSCCONFIG = x -o x$ARTSCCONFIG = x'"$ARTSCCONFIG"';
10123 then
10124 ac_cv_c_artsserver=no
10125 else
10126 ARTSC_CFLAGS=`$ARTSCCONFIG --cflags`
10127 ARTSC_LIBS=`$ARTSCCONFIG --libs`
10128 ac_cv_c_artsserver=no
10129 save_CFLAGS="$CFLAGS"
10130 CFLAGS="$CFLAGS $ARTSC_CFLAGS"
10131 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010132#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010133/* confdefs.h. */
10134_ACEOF
10135cat confdefs.h >>conftest.$ac_ext
10136cat >>conftest.$ac_ext <<_ACEOF
10137/* end confdefs.h. */
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000010138
10139 #include <artsc.h>
10140
10141int
10142main ()
10143{
10144
10145 arts_stream_t stream;
10146
10147 ;
10148 return 0;
10149}
10150_ACEOF
10151rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010152if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000010153 (eval $ac_compile) 2>&5
10154 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000010156 (exit $ac_status); } &&
10157 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000010159 (eval $ac_try) 2>&5
10160 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000010162 (exit $ac_status); }; }; then
10163
10164 ac_cv_c_artsserver=yes
10165
10166else
10167 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010168sed 's/^/| /' conftest.$ac_ext >&5
10169
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000010170fi
10171rm -f conftest.$ac_objext conftest.$ac_ext
10172 CFLAGS="$save_CFLAGS"
10173 fi
10174fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010175echo "$as_me:$LINENO: result: $ac_cv_c_artsserver" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000010176echo "${ECHO_T}$ac_cv_c_artsserver" >&6
10177
10178if test "$ac_cv_c_artsserver" = "yes"
10179then
10180 ARTSLIBS=$ARTSC_LIBS
10181
10182 ARTSINCL=$ARTSC_CFLAGS
10183
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010184
10185
10186cat >>confdefs.h <<\_ACEOF
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000010187#define HAVE_ARTS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010188_ACEOF
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000010189
10190fi
10191
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010192ALSALIBS=""
10193
10194
Marco Pietrobono0e79a412002-08-29 01:51:31 +000010195
10196for ac_header in alsa/asoundlib.h sys/asoundlib.h
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010197do
10198as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10199if eval "test \"\${$as_ac_Header+set}\" = set"; then
10200 echo "$as_me:$LINENO: checking for $ac_header" >&5
10201echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10202if eval "test \"\${$as_ac_Header+set}\" = set"; then
10203 echo $ECHO_N "(cached) $ECHO_C" >&6
10204fi
10205echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10206echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10207else
10208 # Is the header compilable?
10209echo "$as_me:$LINENO: checking $ac_header usability" >&5
10210echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10211cat >conftest.$ac_ext <<_ACEOF
10212#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010213/* confdefs.h. */
10214_ACEOF
10215cat confdefs.h >>conftest.$ac_ext
10216cat >>conftest.$ac_ext <<_ACEOF
10217/* end confdefs.h. */
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010218$ac_includes_default
10219#include <$ac_header>
10220_ACEOF
10221rm -f conftest.$ac_objext
10222if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10223 (eval $ac_compile) 2>&5
10224 ac_status=$?
10225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10226 (exit $ac_status); } &&
10227 { ac_try='test -s conftest.$ac_objext'
10228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10229 (eval $ac_try) 2>&5
10230 ac_status=$?
10231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10232 (exit $ac_status); }; }; then
10233 ac_header_compiler=yes
10234else
10235 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010236sed 's/^/| /' conftest.$ac_ext >&5
10237
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010238ac_header_compiler=no
10239fi
10240rm -f conftest.$ac_objext conftest.$ac_ext
10241echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10242echo "${ECHO_T}$ac_header_compiler" >&6
10243
10244# Is the header present?
10245echo "$as_me:$LINENO: checking $ac_header presence" >&5
10246echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10247cat >conftest.$ac_ext <<_ACEOF
10248#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010249/* confdefs.h. */
10250_ACEOF
10251cat confdefs.h >>conftest.$ac_ext
10252cat >>conftest.$ac_ext <<_ACEOF
10253/* end confdefs.h. */
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010254#include <$ac_header>
10255_ACEOF
10256if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10257 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10258 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +000010259 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010260 rm -f conftest.er1
10261 cat conftest.err >&5
10262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263 (exit $ac_status); } >/dev/null; then
10264 if test -s conftest.err; then
10265 ac_cpp_err=$ac_c_preproc_warn_flag
10266 else
10267 ac_cpp_err=
10268 fi
10269else
10270 ac_cpp_err=yes
10271fi
10272if test -z "$ac_cpp_err"; then
10273 ac_header_preproc=yes
10274else
10275 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010276sed 's/^/| /' conftest.$ac_ext >&5
10277
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010278 ac_header_preproc=no
10279fi
10280rm -f conftest.err conftest.$ac_ext
10281echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10282echo "${ECHO_T}$ac_header_preproc" >&6
10283
10284# So? What about this header?
10285case $ac_header_compiler:$ac_header_preproc in
10286 yes:no )
10287 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10288echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10289 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010290echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10291 (
10292 cat <<\_ASBOX
10293## ------------------------------------ ##
10294## Report this to bug-autoconf@gnu.org. ##
10295## ------------------------------------ ##
10296_ASBOX
10297 ) |
10298 sed "s/^/$as_me: WARNING: /" >&2
10299 ;;
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010300 no:yes )
10301 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10302echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10303 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10304echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10305 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010306echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10307 (
10308 cat <<\_ASBOX
10309## ------------------------------------ ##
10310## Report this to bug-autoconf@gnu.org. ##
10311## ------------------------------------ ##
10312_ASBOX
10313 ) |
10314 sed "s/^/$as_me: WARNING: /" >&2
10315 ;;
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010316esac
10317echo "$as_me:$LINENO: checking for $ac_header" >&5
10318echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10319if eval "test \"\${$as_ac_Header+set}\" = set"; then
10320 echo $ECHO_N "(cached) $ECHO_C" >&6
10321else
10322 eval "$as_ac_Header=$ac_header_preproc"
10323fi
10324echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10325echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10326
10327fi
10328if test `eval echo '${'$as_ac_Header'}'` = yes; then
10329 cat >>confdefs.h <<_ACEOF
10330#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10331_ACEOF
Marco Pietrobono0e79a412002-08-29 01:51:31 +000010332 break
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010333fi
10334
10335done
10336
Marco Pietrobono0e79a412002-08-29 01:51:31 +000010337if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010338then
10339 echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
10340echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6
10341if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
10342 echo $ECHO_N "(cached) $ECHO_C" >&6
10343else
10344 ac_check_lib_save_LIBS=$LIBS
10345LIBS="-lasound $LIBS"
10346cat >conftest.$ac_ext <<_ACEOF
10347#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010348/* confdefs.h. */
10349_ACEOF
10350cat confdefs.h >>conftest.$ac_ext
10351cat >>conftest.$ac_ext <<_ACEOF
10352/* end confdefs.h. */
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010353
10354/* Override any gcc2 internal prototype to avoid an error. */
10355#ifdef __cplusplus
10356extern "C"
10357#endif
10358/* We use char because int might match the return type of a gcc2
10359 builtin and then its argument prototype would still apply. */
10360char snd_pcm_open ();
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010361int
10362main ()
10363{
10364snd_pcm_open ();
10365 ;
10366 return 0;
10367}
10368_ACEOF
10369rm -f conftest.$ac_objext conftest$ac_exeext
10370if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10371 (eval $ac_link) 2>&5
10372 ac_status=$?
10373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10374 (exit $ac_status); } &&
10375 { ac_try='test -s conftest$ac_exeext'
10376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10377 (eval $ac_try) 2>&5
10378 ac_status=$?
10379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380 (exit $ac_status); }; }; then
10381 ac_cv_lib_asound_snd_pcm_open=yes
10382else
10383 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010384sed 's/^/| /' conftest.$ac_ext >&5
10385
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010386ac_cv_lib_asound_snd_pcm_open=no
10387fi
10388rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10389LIBS=$ac_check_lib_save_LIBS
10390fi
10391echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
10392echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6
10393if test $ac_cv_lib_asound_snd_pcm_open = yes; then
10394
10395cat >>confdefs.h <<\_ACEOF
10396#define HAVE_ALSA 1
10397_ACEOF
10398
10399 ALSALIBS="-lasound"
10400fi
10401
10402fi
10403
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010404
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010405AUDIOIOLIBS=""
10406
10407
10408for ac_header in libaudioio.h
10409do
10410as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10411if eval "test \"\${$as_ac_Header+set}\" = set"; then
10412 echo "$as_me:$LINENO: checking for $ac_header" >&5
10413echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10414if eval "test \"\${$as_ac_Header+set}\" = set"; then
10415 echo $ECHO_N "(cached) $ECHO_C" >&6
10416fi
10417echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10418echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10419else
10420 # Is the header compilable?
10421echo "$as_me:$LINENO: checking $ac_header usability" >&5
10422echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10423cat >conftest.$ac_ext <<_ACEOF
10424#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010425/* confdefs.h. */
10426_ACEOF
10427cat confdefs.h >>conftest.$ac_ext
10428cat >>conftest.$ac_ext <<_ACEOF
10429/* end confdefs.h. */
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010430$ac_includes_default
10431#include <$ac_header>
10432_ACEOF
10433rm -f conftest.$ac_objext
10434if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10435 (eval $ac_compile) 2>&5
10436 ac_status=$?
10437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10438 (exit $ac_status); } &&
10439 { ac_try='test -s conftest.$ac_objext'
10440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10441 (eval $ac_try) 2>&5
10442 ac_status=$?
10443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444 (exit $ac_status); }; }; then
10445 ac_header_compiler=yes
10446else
10447 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010448sed 's/^/| /' conftest.$ac_ext >&5
10449
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010450ac_header_compiler=no
10451fi
10452rm -f conftest.$ac_objext conftest.$ac_ext
10453echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10454echo "${ECHO_T}$ac_header_compiler" >&6
10455
10456# Is the header present?
10457echo "$as_me:$LINENO: checking $ac_header presence" >&5
10458echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10459cat >conftest.$ac_ext <<_ACEOF
10460#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010461/* confdefs.h. */
10462_ACEOF
10463cat confdefs.h >>conftest.$ac_ext
10464cat >>conftest.$ac_ext <<_ACEOF
10465/* end confdefs.h. */
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010466#include <$ac_header>
10467_ACEOF
10468if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10469 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10470 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +000010471 grep -v '^ *+' conftest.er1 >conftest.err
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010472 rm -f conftest.er1
10473 cat conftest.err >&5
10474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475 (exit $ac_status); } >/dev/null; then
10476 if test -s conftest.err; then
10477 ac_cpp_err=$ac_c_preproc_warn_flag
10478 else
10479 ac_cpp_err=
10480 fi
10481else
10482 ac_cpp_err=yes
10483fi
10484if test -z "$ac_cpp_err"; then
10485 ac_header_preproc=yes
10486else
10487 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010488sed 's/^/| /' conftest.$ac_ext >&5
10489
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010490 ac_header_preproc=no
10491fi
10492rm -f conftest.err conftest.$ac_ext
10493echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10494echo "${ECHO_T}$ac_header_preproc" >&6
10495
10496# So? What about this header?
10497case $ac_header_compiler:$ac_header_preproc in
10498 yes:no )
10499 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10500echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10501 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010502echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10503 (
10504 cat <<\_ASBOX
10505## ------------------------------------ ##
10506## Report this to bug-autoconf@gnu.org. ##
10507## ------------------------------------ ##
10508_ASBOX
10509 ) |
10510 sed "s/^/$as_me: WARNING: /" >&2
10511 ;;
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010512 no:yes )
10513 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10514echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10515 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10516echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10517 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010518echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10519 (
10520 cat <<\_ASBOX
10521## ------------------------------------ ##
10522## Report this to bug-autoconf@gnu.org. ##
10523## ------------------------------------ ##
10524_ASBOX
10525 ) |
10526 sed "s/^/$as_me: WARNING: /" >&2
10527 ;;
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010528esac
10529echo "$as_me:$LINENO: checking for $ac_header" >&5
10530echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10531if eval "test \"\${$as_ac_Header+set}\" = set"; then
10532 echo $ECHO_N "(cached) $ECHO_C" >&6
10533else
10534 eval "$as_ac_Header=$ac_header_preproc"
10535fi
10536echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10537echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10538
10539fi
10540if test `eval echo '${'$as_ac_Header'}'` = yes; then
10541 cat >>confdefs.h <<_ACEOF
10542#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10543_ACEOF
10544 echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
10545echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6
10546if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
10547 echo $ECHO_N "(cached) $ECHO_C" >&6
10548else
10549 ac_check_lib_save_LIBS=$LIBS
10550LIBS="-laudioio $LIBS"
10551cat >conftest.$ac_ext <<_ACEOF
10552#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010553/* confdefs.h. */
10554_ACEOF
10555cat confdefs.h >>conftest.$ac_ext
10556cat >>conftest.$ac_ext <<_ACEOF
10557/* end confdefs.h. */
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010558
10559/* Override any gcc2 internal prototype to avoid an error. */
10560#ifdef __cplusplus
10561extern "C"
10562#endif
10563/* We use char because int might match the return type of a gcc2
10564 builtin and then its argument prototype would still apply. */
10565char AudioIOGetVersion ();
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010566int
10567main ()
10568{
10569AudioIOGetVersion ();
10570 ;
10571 return 0;
10572}
10573_ACEOF
10574rm -f conftest.$ac_objext conftest$ac_exeext
10575if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10576 (eval $ac_link) 2>&5
10577 ac_status=$?
10578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579 (exit $ac_status); } &&
10580 { ac_try='test -s conftest$ac_exeext'
10581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10582 (eval $ac_try) 2>&5
10583 ac_status=$?
10584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585 (exit $ac_status); }; }; then
10586 ac_cv_lib_audioio_AudioIOGetVersion=yes
10587else
10588 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010589sed 's/^/| /' conftest.$ac_ext >&5
10590
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010591ac_cv_lib_audioio_AudioIOGetVersion=no
10592fi
10593rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10594LIBS=$ac_check_lib_save_LIBS
10595fi
10596echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
10597echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6
10598if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
10599 AUDIOIOLIBS="-laudioio"
10600
10601cat >>confdefs.h <<\_ACEOF
10602#define HAVE_LIBAUDIOIO 1
10603_ACEOF
10604
10605fi
10606
10607fi
10608
10609done
10610
10611
10612
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010613echo "$as_me:$LINENO: checking whether mmap64 works defined as mmap" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010614echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6
10615if test "${ac_cv_mmap64_works+set}" = set; then
10616 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000010617else
10618 if test "$cross_compiling" = yes; then
10619 ac_cv_mmap64_works="no"
10620else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010621 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010622#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010623/* confdefs.h. */
10624_ACEOF
10625cat confdefs.h >>conftest.$ac_ext
10626cat >>conftest.$ac_ext <<_ACEOF
10627/* end confdefs.h. */
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000010628
10629 #define _FILE_OFFSET_BITS 64
10630 #include <stdio.h>
10631 #include <unistd.h>
10632 #include <fcntl.h>
10633 #include <sys/mman.h>
10634 #include <errno.h>
10635
10636 int main(int argc,char **argv) {
10637 int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
10638 if (fd == -1) exit(1);
10639
10640 unlink("conftest.map");
10641
10642 write(fd,"test",4);
10643
10644 if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
10645 (errno == EINVAL)
10646 ) {
10647 exit(1);
10648 }
10649 close(fd);
10650 fprintf(stderr,"success!\n");
10651 exit(0);
10652 }
10653
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010654
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010655_ACEOF
10656rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010657if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010658 (eval $ac_link) 2>&5
10659 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010661 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010663 (eval $ac_try) 2>&5
10664 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010666 (exit $ac_status); }; }; then
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000010667 ac_cv_mmap64_works="yes"
10668else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010669 echo "$as_me: program exited with status $ac_status" >&5
10670echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010671sed 's/^/| /' conftest.$ac_ext >&5
10672
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010673( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010674ac_cv_mmap64_works="no"
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000010675fi
Alexandre Julliard11af04e2002-10-10 03:48:04 +000010676rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000010677fi
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000010678fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010679echo "$as_me:$LINENO: result: $ac_cv_mmap64_works" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010680echo "${ECHO_T}$ac_cv_mmap64_works" >&6
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000010681
10682if test "$ac_cv_mmap64_works" = "yes"
10683then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010684
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010685cat >>confdefs.h <<\_ACEOF
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000010686#define _FILE_OFFSET_BITS 64
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010687_ACEOF
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000010688
10689fi
10690
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010691
Alexandre Julliardfc094232003-04-14 21:46:41 +000010692EXTRACFLAGS=""
10693
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000010694if test "x${GCC}" = "xyes"
10695then
Alexandre Julliardfc094232003-04-14 21:46:41 +000010696 EXTRACFLAGS=-Wall
Mike McCormackc509bc42003-02-25 04:01:58 +000010697
10698 echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010699echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6
10700if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
10701 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000010702else
10703 if test "$cross_compiling" = yes; then
10704 ac_cv_c_gcc_strength_bug="yes"
10705else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010706 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010707#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010708/* confdefs.h. */
10709_ACEOF
10710cat confdefs.h >>conftest.$ac_ext
10711cat >>conftest.$ac_ext <<_ACEOF
10712/* end confdefs.h. */
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000010713
Eric Pouech5aee80f2000-11-11 00:31:39 +000010714int L[4] = {0,1,2,3};
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000010715int main(void) {
Alexandre Julliardd2e1c1a1996-03-09 16:12:43 +000010716 static int Array[3];
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000010717 unsigned int B = 3;
10718 int i;
Alexandre Julliardd2e1c1a1996-03-09 16:12:43 +000010719 for(i=0; i<B; i++) Array[i] = i - 3;
Eric Pouech5aee80f2000-11-11 00:31:39 +000010720 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
10721 L[i] = 4;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010722
Eric Pouech5aee80f2000-11-11 00:31:39 +000010723 exit( Array[1] != -2 || L[2] != 3);
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000010724}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010725_ACEOF
10726rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010727if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010728 (eval $ac_link) 2>&5
10729 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010731 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010733 (eval $ac_try) 2>&5
10734 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010736 (exit $ac_status); }; }; then
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000010737 ac_cv_c_gcc_strength_bug="no"
10738else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010739 echo "$as_me: program exited with status $ac_status" >&5
10740echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010741sed 's/^/| /' conftest.$ac_ext >&5
10742
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010743( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010744ac_cv_c_gcc_strength_bug="yes"
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000010745fi
Alexandre Julliard11af04e2002-10-10 03:48:04 +000010746rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000010747fi
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000010748fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010749echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010750echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000010751 if test "$ac_cv_c_gcc_strength_bug" = "yes"
10752 then
Alexandre Julliardfc094232003-04-14 21:46:41 +000010753 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000010754 fi
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +000010755
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010756 echo "$as_me:$LINENO: checking for gcc -mpreferred-stack-boundary=2 support" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010757echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6
10758if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then
10759 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +000010760else
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010761 ac_wine_try_cflags_saved=$CFLAGS
10762CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
10763cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010764#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010765/* confdefs.h. */
10766_ACEOF
10767cat confdefs.h >>conftest.$ac_ext
10768cat >>conftest.$ac_ext <<_ACEOF
10769/* end confdefs.h. */
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +000010770
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010771int
10772main ()
10773{
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010774
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010775 ;
10776 return 0;
10777}
10778_ACEOF
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010779rm -f conftest.$ac_objext conftest$ac_exeext
10780if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10781 (eval $ac_link) 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010782 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010784 (exit $ac_status); } &&
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010785 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010787 (eval $ac_try) 2>&5
10788 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010790 (exit $ac_status); }; }; then
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +000010791 ac_cv_c_gcc_stack_boundary="yes"
10792else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010793 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010794sed 's/^/| /' conftest.$ac_ext >&5
10795
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010796ac_cv_c_gcc_stack_boundary="no"
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +000010797fi
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010798rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10799CFLAGS=$ac_wine_try_cflags_saved
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010800fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010801echo "$as_me:$LINENO: result: $ac_cv_c_gcc_stack_boundary" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010802echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +000010803 if test "$ac_cv_c_gcc_stack_boundary" = "yes"
10804 then
Alexandre Julliardfc094232003-04-14 21:46:41 +000010805 EXTRACFLAGS="$EXTRACFLAGS -mpreferred-stack-boundary=2"
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +000010806 fi
Alexandre Julliard14bd1202003-01-09 00:42:26 +000010807
10808 echo "$as_me:$LINENO: checking for gcc -gstabs+ support" >&5
10809echo $ECHO_N "checking for gcc -gstabs+ support... $ECHO_C" >&6
10810if test "${ac_cv_c_gcc_gstabs+set}" = set; then
10811 echo $ECHO_N "(cached) $ECHO_C" >&6
10812else
10813 ac_wine_try_cflags_saved=$CFLAGS
10814CFLAGS="$CFLAGS -gstabs+"
10815cat >conftest.$ac_ext <<_ACEOF
10816#line $LINENO "configure"
10817/* confdefs.h. */
10818_ACEOF
10819cat confdefs.h >>conftest.$ac_ext
10820cat >>conftest.$ac_ext <<_ACEOF
10821/* end confdefs.h. */
10822
10823int
10824main ()
10825{
10826
10827 ;
10828 return 0;
10829}
10830_ACEOF
10831rm -f conftest.$ac_objext conftest$ac_exeext
10832if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10833 (eval $ac_link) 2>&5
10834 ac_status=$?
10835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10836 (exit $ac_status); } &&
10837 { ac_try='test -s conftest$ac_exeext'
10838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10839 (eval $ac_try) 2>&5
10840 ac_status=$?
10841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10842 (exit $ac_status); }; }; then
10843 ac_cv_c_gcc_gstabs="yes"
10844else
10845 echo "$as_me: failed program was:" >&5
10846sed 's/^/| /' conftest.$ac_ext >&5
10847
10848ac_cv_c_gcc_gstabs="no"
10849fi
10850rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10851CFLAGS=$ac_wine_try_cflags_saved
10852fi
10853echo "$as_me:$LINENO: result: $ac_cv_c_gcc_gstabs" >&5
10854echo "${ECHO_T}$ac_cv_c_gcc_gstabs" >&6
10855 if test "$ac_cv_c_gcc_gstabs" = "yes"
10856 then
Alexandre Julliardfc094232003-04-14 21:46:41 +000010857 EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
Alexandre Julliard14bd1202003-01-09 00:42:26 +000010858 fi
Mike McCormackc509bc42003-02-25 04:01:58 +000010859
Alexandre Julliard4d52d372003-03-24 19:33:20 +000010860 saved_CFLAGS="$CFLAGS"
Mike McCormackc509bc42003-02-25 04:01:58 +000010861 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
10862 echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5
10863echo $ECHO_N "checking for broken string.h that generates warnings... $ECHO_C" >&6
10864if test "${ac_cv_c_string_h_warnings+set}" = set; then
10865 echo $ECHO_N "(cached) $ECHO_C" >&6
10866else
10867 cat >conftest.$ac_ext <<_ACEOF
10868#line $LINENO "configure"
10869/* confdefs.h. */
10870_ACEOF
10871cat confdefs.h >>conftest.$ac_ext
10872cat >>conftest.$ac_ext <<_ACEOF
10873/* end confdefs.h. */
10874#include <string.h>
10875int
10876main ()
10877{
10878
10879 ;
10880 return 0;
10881}
10882_ACEOF
10883rm -f conftest.$ac_objext
10884if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10885 (eval $ac_compile) 2>&5
10886 ac_status=$?
10887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10888 (exit $ac_status); } &&
10889 { ac_try='test -s conftest.$ac_objext'
10890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10891 (eval $ac_try) 2>&5
10892 ac_status=$?
10893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894 (exit $ac_status); }; }; then
10895 ac_cv_c_string_h_warnings=no
10896else
10897 echo "$as_me: failed program was:" >&5
10898sed 's/^/| /' conftest.$ac_ext >&5
10899
10900ac_cv_c_string_h_warnings=yes
10901fi
10902rm -f conftest.$ac_objext conftest.$ac_ext
10903fi
10904echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5
10905echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6
Alexandre Julliard4d52d372003-03-24 19:33:20 +000010906 CFLAGS="$saved_CFLAGS"
Mike McCormackc509bc42003-02-25 04:01:58 +000010907 if test "$ac_cv_c_string_h_warnings" = "no"
10908 then
Alexandre Julliardfc094232003-04-14 21:46:41 +000010909 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
Mike McCormackc509bc42003-02-25 04:01:58 +000010910 fi
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000010911fi
10912
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010913
Alexandre Julliard84555cc2002-07-22 20:51:02 +000010914echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
10915echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6
10916if test "${ac_cv_asm_func_def+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010917 echo $ECHO_N "(cached) $ECHO_C" >&6
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +000010918else
Alexandre Julliard84555cc2002-07-22 20:51:02 +000010919 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010920#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010921/* confdefs.h. */
10922_ACEOF
10923cat confdefs.h >>conftest.$ac_ext
10924cat >>conftest.$ac_ext <<_ACEOF
10925/* end confdefs.h. */
Alexandre Julliard520852c2002-08-07 00:04:44 +000010926void 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 +000010927
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010928int
10929main ()
10930{
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +000010931
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010932 ;
10933 return 0;
10934}
10935_ACEOF
10936rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010937if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010938 (eval $ac_link) 2>&5
10939 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010941 (exit $ac_status); } &&
10942 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010944 (eval $ac_try) 2>&5
10945 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010947 (exit $ac_status); }; }; then
Alexandre Julliard84555cc2002-07-22 20:51:02 +000010948 ac_cv_asm_func_def=".def"
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +000010949else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010950 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010951sed 's/^/| /' conftest.$ac_ext >&5
10952
Gregg Mattinson57807fa2002-07-20 20:17:13 +000010953cat >conftest.$ac_ext <<_ACEOF
10954#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010955/* confdefs.h. */
10956_ACEOF
10957cat confdefs.h >>conftest.$ac_ext
10958cat >>conftest.$ac_ext <<_ACEOF
10959/* end confdefs.h. */
Alexandre Julliard520852c2002-08-07 00:04:44 +000010960void 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 +000010961
Gregg Mattinson57807fa2002-07-20 20:17:13 +000010962int
10963main ()
10964{
10965
10966 ;
10967 return 0;
10968}
10969_ACEOF
10970rm -f conftest.$ac_objext conftest$ac_exeext
10971if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10972 (eval $ac_link) 2>&5
10973 ac_status=$?
10974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975 (exit $ac_status); } &&
10976 { ac_try='test -s conftest$ac_exeext'
10977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10978 (eval $ac_try) 2>&5
10979 ac_status=$?
10980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10981 (exit $ac_status); }; }; then
Alexandre Julliard84555cc2002-07-22 20:51:02 +000010982 ac_cv_asm_func_def=".type @function"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000010983else
10984 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010985sed 's/^/| /' conftest.$ac_ext >&5
10986
Alexandre Julliard84555cc2002-07-22 20:51:02 +000010987cat >conftest.$ac_ext <<_ACEOF
10988#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010989/* confdefs.h. */
10990_ACEOF
10991cat confdefs.h >>conftest.$ac_ext
10992cat >>conftest.$ac_ext <<_ACEOF
10993/* end confdefs.h. */
Alexandre Julliard520852c2002-08-07 00:04:44 +000010994void 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 +000010995
Alexandre Julliard84555cc2002-07-22 20:51:02 +000010996int
10997main ()
10998{
10999
11000 ;
11001 return 0;
11002}
11003_ACEOF
11004rm -f conftest.$ac_objext conftest$ac_exeext
11005if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11006 (eval $ac_link) 2>&5
11007 ac_status=$?
11008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11009 (exit $ac_status); } &&
11010 { ac_try='test -s conftest$ac_exeext'
11011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11012 (eval $ac_try) 2>&5
11013 ac_status=$?
11014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015 (exit $ac_status); }; }; then
11016 ac_cv_asm_func_def=".type 2"
11017else
11018 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011019sed 's/^/| /' conftest.$ac_ext >&5
11020
Alexandre Julliard84555cc2002-07-22 20:51:02 +000011021ac_cv_asm_func_def="unknown"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000011022fi
11023rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Gregg Mattinson57807fa2002-07-20 20:17:13 +000011024fi
Alexandre Julliard84555cc2002-07-22 20:51:02 +000011025rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11026fi
11027rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11028fi
11029echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
11030echo "${ECHO_T}$ac_cv_asm_func_def" >&6
Gregg Mattinson57807fa2002-07-20 20:17:13 +000011031
Alexandre Julliard84555cc2002-07-22 20:51:02 +000011032
11033
11034case "$ac_cv_asm_func_def" in
11035 ".def")
11036 cat >>confdefs.h <<\_ACEOF
11037#define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000011038_ACEOF
Alexandre Julliard84555cc2002-07-22 20:51:02 +000011039 ;;
11040 ".type @function")
11041 cat >>confdefs.h <<\_ACEOF
11042#define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
11043_ACEOF
11044 ;;
11045 ".type 2")
11046 cat >>confdefs.h <<\_ACEOF
11047#define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
11048_ACEOF
11049 ;;
11050 *)
11051 cat >>confdefs.h <<\_ACEOF
11052#define __ASM_FUNC(name) ""
11053_ACEOF
11054 ;;
11055esac
Gregg Mattinson57807fa2002-07-20 20:17:13 +000011056
11057
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011058echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011059echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6
11060if test "${ac_cv_c_extern_prefix+set}" = set; then
11061 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000011062else
Alexandre Julliard84555cc2002-07-22 20:51:02 +000011063 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011064#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011065/* confdefs.h. */
11066_ACEOF
11067cat confdefs.h >>conftest.$ac_ext
11068cat >>conftest.$ac_ext <<_ACEOF
11069/* end confdefs.h. */
Alexandre Julliard520852c2002-08-07 00:04:44 +000011070void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000011071extern int ac_test;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011072int
11073main ()
11074{
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000011075if (ac_test) return 1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011076 ;
11077 return 0;
11078}
11079_ACEOF
11080rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011081if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011082 (eval $ac_link) 2>&5
11083 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011085 (exit $ac_status); } &&
11086 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011088 (eval $ac_try) 2>&5
11089 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011091 (exit $ac_status); }; }; then
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000011092 ac_cv_c_extern_prefix="yes"
11093else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011094 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011095sed 's/^/| /' conftest.$ac_ext >&5
11096
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011097ac_cv_c_extern_prefix="no"
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000011098fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011099rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000011100fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011101echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011102echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6
Alexandre Julliard84555cc2002-07-22 20:51:02 +000011103
11104
11105
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000011106if test "$ac_cv_c_extern_prefix" = "yes"
11107then
Alexandre Julliard84555cc2002-07-22 20:51:02 +000011108 cat >>confdefs.h <<\_ACEOF
11109#define __ASM_NAME(name) "_" name
11110_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011111
Alexandre Julliard84555cc2002-07-22 20:51:02 +000011112else
11113 cat >>confdefs.h <<\_ACEOF
11114#define __ASM_NAME(name) name
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011115_ACEOF
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000011116
11117fi
11118
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011119
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011120echo "$as_me:$LINENO: checking whether assembler accepts .string" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011121echo $ECHO_N "checking whether assembler accepts .string... $ECHO_C" >&6
11122if test "${ac_cv_c_asm_string+set}" = set; then
11123 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000011124else
Alexandre Julliard84555cc2002-07-22 20:51:02 +000011125 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011126#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011127/* confdefs.h. */
11128_ACEOF
11129cat confdefs.h >>conftest.$ac_ext
11130cat >>conftest.$ac_ext <<_ACEOF
11131/* end confdefs.h. */
Marcus Meissner49163d52002-08-20 00:26:40 +000011132void ac_asm(void) { asm(".data\n\t.string \"test\"\n\t.text"); }
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000011133
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011134int
11135main ()
11136{
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000011137
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011138 ;
11139 return 0;
11140}
11141_ACEOF
11142rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011143if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011144 (eval $ac_link) 2>&5
11145 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011147 (exit $ac_status); } &&
11148 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011150 (eval $ac_try) 2>&5
11151 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011153 (exit $ac_status); }; }; then
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000011154 ac_cv_c_asm_string="yes"
11155else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011156 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011157sed 's/^/| /' conftest.$ac_ext >&5
11158
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011159ac_cv_c_asm_string="no"
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000011160fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011161rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000011162fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011163echo "$as_me:$LINENO: result: $ac_cv_c_asm_string" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011164echo "${ECHO_T}$ac_cv_c_asm_string" >&6
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000011165if test "$ac_cv_c_asm_string" = "yes"
11166then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011167
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011168cat >>confdefs.h <<\_ACEOF
Christian Costaf814cf82003-03-23 00:18:26 +000011169#define __ASM_STRING ".string"
11170_ACEOF
11171
11172else
11173 echo "$as_me:$LINENO: checking whether assembler accepts .asciz" >&5
11174echo $ECHO_N "checking whether assembler accepts .asciz... $ECHO_C" >&6
11175if test "${ac_cv_c_asm_asciz+set}" = set; then
11176 echo $ECHO_N "(cached) $ECHO_C" >&6
11177else
11178 cat >conftest.$ac_ext <<_ACEOF
11179#line $LINENO "configure"
11180/* confdefs.h. */
11181_ACEOF
11182cat confdefs.h >>conftest.$ac_ext
11183cat >>conftest.$ac_ext <<_ACEOF
11184/* end confdefs.h. */
11185void ac_asm(void) { asm(".data\n\t.asciz \"test\"\n\t.text"); }
11186
11187int
11188main ()
11189{
11190
11191 ;
11192 return 0;
11193}
11194_ACEOF
11195rm -f conftest.$ac_objext conftest$ac_exeext
11196if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11197 (eval $ac_link) 2>&5
11198 ac_status=$?
11199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200 (exit $ac_status); } &&
11201 { ac_try='test -s conftest$ac_exeext'
11202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11203 (eval $ac_try) 2>&5
11204 ac_status=$?
11205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206 (exit $ac_status); }; }; then
11207 ac_cv_c_asm_asciz="yes"
11208else
11209 echo "$as_me: failed program was:" >&5
11210sed 's/^/| /' conftest.$ac_ext >&5
11211
11212ac_cv_c_asm_asciz="no"
11213fi
11214rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11215fi
11216echo "$as_me:$LINENO: result: $ac_cv_c_asm_asciz" >&5
11217echo "${ECHO_T}$ac_cv_c_asm_asciz" >&6
11218 if test "$ac_cv_c_asm_asciz" = "yes"
11219 then
11220 cat >>confdefs.h <<\_ACEOF
11221#define __ASM_STRING ".asciz"
11222_ACEOF
11223
11224 else
11225 cat >>confdefs.h <<\_ACEOF
11226#define __ASM_STRING ".ascii"
11227_ACEOF
11228
11229 fi
11230fi
11231
11232
11233echo "$as_me:$LINENO: checking whether assembler accepts .short" >&5
11234echo $ECHO_N "checking whether assembler accepts .short... $ECHO_C" >&6
11235if test "${ac_cv_c_asm_short+set}" = set; then
11236 echo $ECHO_N "(cached) $ECHO_C" >&6
11237else
11238 cat >conftest.$ac_ext <<_ACEOF
11239#line $LINENO "configure"
11240/* confdefs.h. */
11241_ACEOF
11242cat confdefs.h >>conftest.$ac_ext
11243cat >>conftest.$ac_ext <<_ACEOF
11244/* end confdefs.h. */
11245void ac_asm(void) { asm(".data\n\t.short 1\n\t.text"); }
11246
11247int
11248main ()
11249{
11250
11251 ;
11252 return 0;
11253}
11254_ACEOF
11255rm -f conftest.$ac_objext conftest$ac_exeext
11256if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11257 (eval $ac_link) 2>&5
11258 ac_status=$?
11259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11260 (exit $ac_status); } &&
11261 { ac_try='test -s conftest$ac_exeext'
11262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11263 (eval $ac_try) 2>&5
11264 ac_status=$?
11265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11266 (exit $ac_status); }; }; then
11267 ac_cv_c_asm_short="yes"
11268else
11269 echo "$as_me: failed program was:" >&5
11270sed 's/^/| /' conftest.$ac_ext >&5
11271
11272ac_cv_c_asm_short="no"
11273fi
11274rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11275fi
11276echo "$as_me:$LINENO: result: $ac_cv_c_asm_short" >&5
11277echo "${ECHO_T}$ac_cv_c_asm_short" >&6
11278if test "$ac_cv_c_asm_short" = "yes"
11279then
11280
11281cat >>confdefs.h <<\_ACEOF
11282#define __ASM_SHORT ".short"
11283_ACEOF
11284
11285else
11286 cat >>confdefs.h <<\_ACEOF
11287#define __ASM_SHORT ".half"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011288_ACEOF
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000011289
11290fi
11291
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011292
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000011293DLLEXT=""
11294
Alexandre Julliardfc094232003-04-14 21:46:41 +000011295DLLFLAGS="-D_REENTRANT"
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000011296
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011297DLLIBS=""
11298
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000011299LDDLLFLAGS=""
11300
11301LDSHARED=""
11302
Alexandre Julliardada5e652002-12-12 22:03:14 +000011303LIBEXT="so"
11304
11305IMPLIBEXT="def"
11306
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000011307
Alexandre Julliardfc01b722002-05-12 03:16:39 +000011308case $host_os in
11309 cygwin*|mingw32*)
11310 if test -n "$ac_tool_prefix"; then
Alexandre Julliardada5e652002-12-12 22:03:14 +000011311 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11312set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11313echo "$as_me:$LINENO: checking for $ac_word" >&5
11314echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11315if test "${ac_cv_prog_DLLTOOL+set}" = set; then
11316 echo $ECHO_N "(cached) $ECHO_C" >&6
11317else
11318 if test -n "$DLLTOOL"; then
11319 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11320else
11321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11322for as_dir in $PATH
11323do
11324 IFS=$as_save_IFS
11325 test -z "$as_dir" && as_dir=.
11326 for ac_exec_ext in '' $ac_executable_extensions; do
11327 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11328 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11330 break 2
11331 fi
11332done
11333done
11334
11335fi
11336fi
11337DLLTOOL=$ac_cv_prog_DLLTOOL
11338if test -n "$DLLTOOL"; then
11339 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
11340echo "${ECHO_T}$DLLTOOL" >&6
11341else
11342 echo "$as_me:$LINENO: result: no" >&5
11343echo "${ECHO_T}no" >&6
11344fi
11345
11346fi
11347if test -z "$ac_cv_prog_DLLTOOL"; then
11348 ac_ct_DLLTOOL=$DLLTOOL
11349 # Extract the first word of "dlltool", so it can be a program name with args.
11350set dummy dlltool; ac_word=$2
11351echo "$as_me:$LINENO: checking for $ac_word" >&5
11352echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11353if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
11354 echo $ECHO_N "(cached) $ECHO_C" >&6
11355else
11356 if test -n "$ac_ct_DLLTOOL"; then
11357 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11358else
11359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11360for as_dir in $PATH
11361do
11362 IFS=$as_save_IFS
11363 test -z "$as_dir" && as_dir=.
11364 for ac_exec_ext in '' $ac_executable_extensions; do
11365 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11366 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11368 break 2
11369 fi
11370done
11371done
11372
11373 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
11374fi
11375fi
11376ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11377if test -n "$ac_ct_DLLTOOL"; then
11378 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
11379echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
11380else
11381 echo "$as_me:$LINENO: result: no" >&5
11382echo "${ECHO_T}no" >&6
11383fi
11384
11385 DLLTOOL=$ac_ct_DLLTOOL
11386else
11387 DLLTOOL="$ac_cv_prog_DLLTOOL"
11388fi
11389
11390 if test -n "$ac_tool_prefix"; then
Alexandre Julliardfc01b722002-05-12 03:16:39 +000011391 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
11392set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
Alexandre Julliard466ae142002-05-07 18:33:47 +000011393echo "$as_me:$LINENO: checking for $ac_word" >&5
11394echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11395if test "${ac_cv_prog_DLLWRAP+set}" = set; then
11396 echo $ECHO_N "(cached) $ECHO_C" >&6
11397else
11398 if test -n "$DLLWRAP"; then
11399 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
11400else
11401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11402for as_dir in $PATH
11403do
11404 IFS=$as_save_IFS
11405 test -z "$as_dir" && as_dir=.
11406 for ac_exec_ext in '' $ac_executable_extensions; do
11407 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Alexandre Julliardfc01b722002-05-12 03:16:39 +000011408 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
Alexandre Julliard466ae142002-05-07 18:33:47 +000011409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11410 break 2
11411 fi
11412done
11413done
11414
Alexandre Julliard466ae142002-05-07 18:33:47 +000011415fi
11416fi
11417DLLWRAP=$ac_cv_prog_DLLWRAP
11418if test -n "$DLLWRAP"; then
11419 echo "$as_me:$LINENO: result: $DLLWRAP" >&5
11420echo "${ECHO_T}$DLLWRAP" >&6
11421else
11422 echo "$as_me:$LINENO: result: no" >&5
11423echo "${ECHO_T}no" >&6
11424fi
11425
Alexandre Julliardfc01b722002-05-12 03:16:39 +000011426fi
11427if test -z "$ac_cv_prog_DLLWRAP"; then
11428 ac_ct_DLLWRAP=$DLLWRAP
11429 # Extract the first word of "dllwrap", so it can be a program name with args.
11430set dummy dllwrap; ac_word=$2
11431echo "$as_me:$LINENO: checking for $ac_word" >&5
11432echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11433if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
11434 echo $ECHO_N "(cached) $ECHO_C" >&6
11435else
11436 if test -n "$ac_ct_DLLWRAP"; then
11437 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
11438else
11439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11440for as_dir in $PATH
11441do
11442 IFS=$as_save_IFS
11443 test -z "$as_dir" && as_dir=.
11444 for ac_exec_ext in '' $ac_executable_extensions; do
11445 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11446 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
11447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11448 break 2
11449 fi
11450done
11451done
11452
11453 test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP="false"
11454fi
11455fi
11456ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
11457if test -n "$ac_ct_DLLWRAP"; then
11458 echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
11459echo "${ECHO_T}$ac_ct_DLLWRAP" >&6
11460else
11461 echo "$as_me:$LINENO: result: no" >&5
11462echo "${ECHO_T}no" >&6
11463fi
11464
11465 DLLWRAP=$ac_ct_DLLWRAP
11466else
11467 DLLWRAP="$ac_cv_prog_DLLWRAP"
11468fi
11469
11470 if test "$DLLWRAP" = "false"; then
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011471 LIBEXT="a"
Alexandre Julliardfc01b722002-05-12 03:16:39 +000011472 else
11473 LIBEXT="dll"
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011474 fi
Alexandre Julliardada5e652002-12-12 22:03:14 +000011475 IMPLIBEXT="a"
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011476 ;;
11477 *)
11478
11479for ac_header in dlfcn.h
11480do
11481as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11482if eval "test \"\${$as_ac_Header+set}\" = set"; then
11483 echo "$as_me:$LINENO: checking for $ac_header" >&5
11484echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11485if eval "test \"\${$as_ac_Header+set}\" = set"; then
11486 echo $ECHO_N "(cached) $ECHO_C" >&6
11487fi
11488echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11489echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11490else
11491 # Is the header compilable?
11492echo "$as_me:$LINENO: checking $ac_header usability" >&5
11493echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11494cat >conftest.$ac_ext <<_ACEOF
11495#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011496/* confdefs.h. */
11497_ACEOF
11498cat confdefs.h >>conftest.$ac_ext
11499cat >>conftest.$ac_ext <<_ACEOF
11500/* end confdefs.h. */
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011501$ac_includes_default
11502#include <$ac_header>
11503_ACEOF
11504rm -f conftest.$ac_objext
11505if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11506 (eval $ac_compile) 2>&5
11507 ac_status=$?
11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509 (exit $ac_status); } &&
11510 { ac_try='test -s conftest.$ac_objext'
11511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11512 (eval $ac_try) 2>&5
11513 ac_status=$?
11514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515 (exit $ac_status); }; }; then
11516 ac_header_compiler=yes
11517else
11518 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011519sed 's/^/| /' conftest.$ac_ext >&5
11520
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011521ac_header_compiler=no
11522fi
11523rm -f conftest.$ac_objext conftest.$ac_ext
11524echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11525echo "${ECHO_T}$ac_header_compiler" >&6
11526
11527# Is the header present?
11528echo "$as_me:$LINENO: checking $ac_header presence" >&5
11529echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11530cat >conftest.$ac_ext <<_ACEOF
11531#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011532/* confdefs.h. */
11533_ACEOF
11534cat confdefs.h >>conftest.$ac_ext
11535cat >>conftest.$ac_ext <<_ACEOF
11536/* end confdefs.h. */
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011537#include <$ac_header>
11538_ACEOF
11539if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11540 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11541 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +000011542 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011543 rm -f conftest.er1
11544 cat conftest.err >&5
11545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546 (exit $ac_status); } >/dev/null; then
11547 if test -s conftest.err; then
11548 ac_cpp_err=$ac_c_preproc_warn_flag
11549 else
11550 ac_cpp_err=
11551 fi
11552else
11553 ac_cpp_err=yes
11554fi
11555if test -z "$ac_cpp_err"; then
11556 ac_header_preproc=yes
11557else
11558 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011559sed 's/^/| /' conftest.$ac_ext >&5
11560
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011561 ac_header_preproc=no
11562fi
11563rm -f conftest.err conftest.$ac_ext
11564echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11565echo "${ECHO_T}$ac_header_preproc" >&6
11566
11567# So? What about this header?
11568case $ac_header_compiler:$ac_header_preproc in
11569 yes:no )
11570 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11571echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11572 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011573echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11574 (
11575 cat <<\_ASBOX
11576## ------------------------------------ ##
11577## Report this to bug-autoconf@gnu.org. ##
11578## ------------------------------------ ##
11579_ASBOX
11580 ) |
11581 sed "s/^/$as_me: WARNING: /" >&2
11582 ;;
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011583 no:yes )
11584 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11585echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11586 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11587echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11588 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011589echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11590 (
11591 cat <<\_ASBOX
11592## ------------------------------------ ##
11593## Report this to bug-autoconf@gnu.org. ##
11594## ------------------------------------ ##
11595_ASBOX
11596 ) |
11597 sed "s/^/$as_me: WARNING: /" >&2
11598 ;;
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011599esac
11600echo "$as_me:$LINENO: checking for $ac_header" >&5
11601echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11602if eval "test \"\${$as_ac_Header+set}\" = set"; then
11603 echo $ECHO_N "(cached) $ECHO_C" >&6
11604else
11605 eval "$as_ac_Header=$ac_header_preproc"
11606fi
11607echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11608echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11609
11610fi
11611if test `eval echo '${'$as_ac_Header'}'` = yes; then
11612 cat >>confdefs.h <<_ACEOF
11613#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11614_ACEOF
11615
11616for ac_func in dlopen
11617do
11618as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11619echo "$as_me:$LINENO: checking for $ac_func" >&5
11620echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11621if eval "test \"\${$as_ac_var+set}\" = set"; then
11622 echo $ECHO_N "(cached) $ECHO_C" >&6
11623else
11624 cat >conftest.$ac_ext <<_ACEOF
11625#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011626/* confdefs.h. */
11627_ACEOF
11628cat confdefs.h >>conftest.$ac_ext
11629cat >>conftest.$ac_ext <<_ACEOF
11630/* end confdefs.h. */
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011631/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011632 which can conflict with char $ac_func (); below.
11633 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11634 <limits.h> exists even on freestanding compilers. */
11635#ifdef __STDC__
11636# include <limits.h>
11637#else
11638# include <assert.h>
11639#endif
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011640/* Override any gcc2 internal prototype to avoid an error. */
11641#ifdef __cplusplus
11642extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011643{
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011644#endif
11645/* We use char because int might match the return type of a gcc2
11646 builtin and then its argument prototype would still apply. */
11647char $ac_func ();
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011648/* The GNU C library defines this for functions which it implements
11649 to always fail with ENOSYS. Some functions are actually named
11650 something starting with __ and the normal name is an alias. */
11651#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11652choke me
11653#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011654char (*f) () = $ac_func;
11655#endif
11656#ifdef __cplusplus
11657}
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011658#endif
11659
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011660int
11661main ()
11662{
11663return f != $ac_func;
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011664 ;
11665 return 0;
11666}
11667_ACEOF
11668rm -f conftest.$ac_objext conftest$ac_exeext
11669if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11670 (eval $ac_link) 2>&5
11671 ac_status=$?
11672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673 (exit $ac_status); } &&
11674 { ac_try='test -s conftest$ac_exeext'
11675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11676 (eval $ac_try) 2>&5
11677 ac_status=$?
11678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11679 (exit $ac_status); }; }; then
11680 eval "$as_ac_var=yes"
11681else
11682 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011683sed 's/^/| /' conftest.$ac_ext >&5
11684
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011685eval "$as_ac_var=no"
11686fi
11687rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11688fi
11689echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11690echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11691if test `eval echo '${'$as_ac_var'}'` = yes; then
11692 cat >>confdefs.h <<_ACEOF
11693#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11694_ACEOF
11695
11696else
11697 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11698echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11699if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11700 echo $ECHO_N "(cached) $ECHO_C" >&6
11701else
11702 ac_check_lib_save_LIBS=$LIBS
11703LIBS="-ldl $LIBS"
11704cat >conftest.$ac_ext <<_ACEOF
11705#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011706/* confdefs.h. */
11707_ACEOF
11708cat confdefs.h >>conftest.$ac_ext
11709cat >>conftest.$ac_ext <<_ACEOF
11710/* end confdefs.h. */
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011711
11712/* Override any gcc2 internal prototype to avoid an error. */
11713#ifdef __cplusplus
11714extern "C"
11715#endif
11716/* We use char because int might match the return type of a gcc2
11717 builtin and then its argument prototype would still apply. */
11718char dlopen ();
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011719int
11720main ()
11721{
11722dlopen ();
11723 ;
11724 return 0;
11725}
11726_ACEOF
11727rm -f conftest.$ac_objext conftest$ac_exeext
11728if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11729 (eval $ac_link) 2>&5
11730 ac_status=$?
11731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11732 (exit $ac_status); } &&
11733 { ac_try='test -s conftest$ac_exeext'
11734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11735 (eval $ac_try) 2>&5
11736 ac_status=$?
11737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11738 (exit $ac_status); }; }; then
11739 ac_cv_lib_dl_dlopen=yes
11740else
11741 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011742sed 's/^/| /' conftest.$ac_ext >&5
11743
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011744ac_cv_lib_dl_dlopen=no
11745fi
11746rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11747LIBS=$ac_check_lib_save_LIBS
11748fi
11749echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11750echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11751if test $ac_cv_lib_dl_dlopen = yes; then
11752
11753cat >>confdefs.h <<\_ACEOF
11754#define HAVE_DLOPEN 1
11755_ACEOF
11756
11757 DLLIBS="-ldl"
11758else
11759 LIBEXT="a"
11760fi
11761
11762fi
11763done
11764
11765else
11766 LIBEXT="a"
11767fi
11768
11769done
11770
11771
11772 if test "$LIBEXT" = "so"
11773 then
Alexandre Julliardfc094232003-04-14 21:46:41 +000011774 DLLFLAGS="$DLLFLAGS -fPIC"
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000011775 DLLEXT=".so"
Alexandre Julliard466ae142002-05-07 18:33:47 +000011776 echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011777echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6
11778if test "${ac_cv_c_dll_gnuelf+set}" = set; then
11779 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000011780else
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000011781 ac_wine_try_cflags_saved=$CFLAGS
11782CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
11783cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011784#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011785/* confdefs.h. */
11786_ACEOF
11787cat confdefs.h >>conftest.$ac_ext
11788cat >>conftest.$ac_ext <<_ACEOF
11789/* end confdefs.h. */
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000011790
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011791int
11792main ()
11793{
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000011794
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011795 ;
11796 return 0;
11797}
11798_ACEOF
11799rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011800if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011801 (eval $ac_link) 2>&5
11802 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011804 (exit $ac_status); } &&
11805 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011807 (eval $ac_try) 2>&5
11808 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011810 (exit $ac_status); }; }; then
Bang Jun-Young37e5e7f2001-06-06 21:21:27 +000011811 ac_cv_c_dll_gnuelf="yes"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000011812else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011813 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011814sed 's/^/| /' conftest.$ac_ext >&5
11815
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011816ac_cv_c_dll_gnuelf="no"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000011817fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011818rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000011819CFLAGS=$ac_wine_try_cflags_saved
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011820fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011821echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011822echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6
Alexandre Julliard466ae142002-05-07 18:33:47 +000011823 if test "$ac_cv_c_dll_gnuelf" = "yes"
11824 then
11825 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
11826 LDDLLFLAGS="-Wl,-Bsymbolic"
Alexandre Julliardf2abe472002-11-21 04:13:35 +000011827 echo "$as_me:$LINENO: checking whether the linker accepts -z defs" >&5
11828echo $ECHO_N "checking whether the linker accepts -z defs... $ECHO_C" >&6
11829if test "${ac_cv_c_dll_zdefs+set}" = set; then
11830 echo $ECHO_N "(cached) $ECHO_C" >&6
11831else
11832 ac_wine_try_cflags_saved=$CFLAGS
11833CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
11834cat >conftest.$ac_ext <<_ACEOF
11835#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011836/* confdefs.h. */
11837_ACEOF
11838cat confdefs.h >>conftest.$ac_ext
11839cat >>conftest.$ac_ext <<_ACEOF
11840/* end confdefs.h. */
Alexandre Julliardf2abe472002-11-21 04:13:35 +000011841
11842int
11843main ()
11844{
11845
11846 ;
11847 return 0;
11848}
11849_ACEOF
11850rm -f conftest.$ac_objext conftest$ac_exeext
11851if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11852 (eval $ac_link) 2>&5
11853 ac_status=$?
11854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11855 (exit $ac_status); } &&
11856 { ac_try='test -s conftest$ac_exeext'
11857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11858 (eval $ac_try) 2>&5
11859 ac_status=$?
11860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861 (exit $ac_status); }; }; then
11862 ac_cv_c_dll_zdefs="yes"
11863else
11864 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011865sed 's/^/| /' conftest.$ac_ext >&5
11866
Alexandre Julliardf2abe472002-11-21 04:13:35 +000011867ac_cv_c_dll_zdefs="no"
11868fi
11869rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11870CFLAGS=$ac_wine_try_cflags_saved
11871fi
11872echo "$as_me:$LINENO: result: $ac_cv_c_dll_zdefs" >&5
11873echo "${ECHO_T}$ac_cv_c_dll_zdefs" >&6
11874 if test "$ac_cv_c_dll_zdefs" = "yes"
11875 then
11876 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
11877 fi
Alexandre Julliard4d52d372003-03-24 19:33:20 +000011878 echo "$as_me:$LINENO: checking whether we can relocate the executable to 0x3c000000" >&5
11879echo $ECHO_N "checking whether we can relocate the executable to 0x3c000000... $ECHO_C" >&6
11880if test "${ac_cv_ld_reloc_exec+set}" = set; then
11881 echo $ECHO_N "(cached) $ECHO_C" >&6
11882else
11883 saved_CFLAGS="$CFLAGS"
11884 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x3c000100"
11885 if test "$cross_compiling" = yes; then
11886 ac_cv_ld_reloc_exec="no"
11887else
11888 cat >conftest.$ac_ext <<_ACEOF
11889#line $LINENO "configure"
11890/* confdefs.h. */
11891_ACEOF
11892cat confdefs.h >>conftest.$ac_ext
11893cat >>conftest.$ac_ext <<_ACEOF
11894/* end confdefs.h. */
11895#include <unistd.h>
11896 int main() { return (sbrk(32*1024*1024) == (void *)-1); }
11897_ACEOF
11898rm -f conftest$ac_exeext
11899if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11900 (eval $ac_link) 2>&5
11901 ac_status=$?
11902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11903 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11905 (eval $ac_try) 2>&5
11906 ac_status=$?
11907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908 (exit $ac_status); }; }; then
11909 ac_cv_ld_reloc_exec="yes"
11910else
11911 echo "$as_me: program exited with status $ac_status" >&5
11912echo "$as_me: failed program was:" >&5
11913sed 's/^/| /' conftest.$ac_ext >&5
11914
11915( exit $ac_status )
11916ac_cv_ld_reloc_exec="no"
11917fi
11918rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11919fi
11920 CFLAGS="$saved_CFLAGS"
11921fi
11922echo "$as_me:$LINENO: result: $ac_cv_ld_reloc_exec" >&5
11923echo "${ECHO_T}$ac_cv_ld_reloc_exec" >&6
11924 if test "$ac_cv_ld_reloc_exec" = "yes"
11925 then
11926 LDEXECFLAGS="-Wl,--section-start,.interp=0x3c000100"
11927
11928 fi
Alexandre Julliard466ae142002-05-07 18:33:47 +000011929 else
11930 echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011931echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6
11932if test "${ac_cv_c_dll_unixware+set}" = set; then
11933 echo $ECHO_N "(cached) $ECHO_C" >&6
Todd Vierling4b992b01998-12-15 15:26:27 +000011934else
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000011935 ac_wine_try_cflags_saved=$CFLAGS
11936CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
11937cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011938#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011939/* confdefs.h. */
11940_ACEOF
11941cat confdefs.h >>conftest.$ac_ext
11942cat >>conftest.$ac_ext <<_ACEOF
11943/* end confdefs.h. */
Todd Vierling4b992b01998-12-15 15:26:27 +000011944
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011945int
11946main ()
11947{
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000011948
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011949 ;
11950 return 0;
11951}
11952_ACEOF
11953rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011954if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011955 (eval $ac_link) 2>&5
11956 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011958 (exit $ac_status); } &&
11959 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011961 (eval $ac_try) 2>&5
11962 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011964 (exit $ac_status); }; }; then
Ron Recorde977d6c1999-09-05 12:32:05 +000011965 ac_cv_c_dll_unixware="yes"
11966else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011967 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011968sed 's/^/| /' conftest.$ac_ext >&5
11969
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011970ac_cv_c_dll_unixware="no"
Ron Recorde977d6c1999-09-05 12:32:05 +000011971fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011972rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000011973CFLAGS=$ac_wine_try_cflags_saved
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011974fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011975echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011976echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6
Alexandre Julliard466ae142002-05-07 18:33:47 +000011977 if test "$ac_cv_c_dll_unixware" = "yes"
11978 then
11979 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
11980 LDDLLFLAGS="-Wl,-B,symbolic"
11981 fi
11982 fi
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011983 fi
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000011984
11985 CROSSTEST=""
11986
11987 if test "$cross_compiling" = "no"
11988 then
Hans Leidekkerb195d9f2003-04-12 00:00:57 +000011989 for ac_prog in i586-mingw32msvc-gcc i386-mingw32-gcc
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000011990do
11991 # Extract the first word of "$ac_prog", so it can be a program name with args.
11992set dummy $ac_prog; ac_word=$2
11993echo "$as_me:$LINENO: checking for $ac_word" >&5
11994echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11995if test "${ac_cv_prog_CROSSCC+set}" = set; then
11996 echo $ECHO_N "(cached) $ECHO_C" >&6
11997else
11998 if test -n "$CROSSCC"; then
11999 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
12000else
12001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12002for as_dir in $PATH
12003do
12004 IFS=$as_save_IFS
12005 test -z "$as_dir" && as_dir=.
12006 for ac_exec_ext in '' $ac_executable_extensions; do
12007 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12008 ac_cv_prog_CROSSCC="$ac_prog"
12009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12010 break 2
12011 fi
12012done
12013done
12014
12015fi
12016fi
12017CROSSCC=$ac_cv_prog_CROSSCC
12018if test -n "$CROSSCC"; then
12019 echo "$as_me:$LINENO: result: $CROSSCC" >&5
12020echo "${ECHO_T}$CROSSCC" >&6
12021else
12022 echo "$as_me:$LINENO: result: no" >&5
12023echo "${ECHO_T}no" >&6
12024fi
12025
12026 test -n "$CROSSCC" && break
12027done
12028test -n "$CROSSCC" || CROSSCC="false"
12029
Hans Leidekkerb195d9f2003-04-12 00:00:57 +000012030 for ac_prog in i586-mingw32msvc-dlltool i386-mingw32-dlltool
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000012031do
12032 # Extract the first word of "$ac_prog", so it can be a program name with args.
12033set dummy $ac_prog; ac_word=$2
12034echo "$as_me:$LINENO: checking for $ac_word" >&5
12035echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12036if test "${ac_cv_prog_DLLTOOL+set}" = set; then
12037 echo $ECHO_N "(cached) $ECHO_C" >&6
12038else
12039 if test -n "$DLLTOOL"; then
12040 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12041else
12042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12043for as_dir in $PATH
12044do
12045 IFS=$as_save_IFS
12046 test -z "$as_dir" && as_dir=.
12047 for ac_exec_ext in '' $ac_executable_extensions; do
12048 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12049 ac_cv_prog_DLLTOOL="$ac_prog"
12050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12051 break 2
12052 fi
12053done
12054done
12055
12056fi
12057fi
12058DLLTOOL=$ac_cv_prog_DLLTOOL
12059if test -n "$DLLTOOL"; then
12060 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
12061echo "${ECHO_T}$DLLTOOL" >&6
12062else
12063 echo "$as_me:$LINENO: result: no" >&5
12064echo "${ECHO_T}no" >&6
12065fi
12066
12067 test -n "$DLLTOOL" && break
12068done
12069test -n "$DLLTOOL" || DLLTOOL="false"
12070
Alexandre Julliard21ee3292003-04-21 22:52:31 +000012071 for ac_prog in i586-mingw32msvc-windres i386-mingw32-windres
12072do
12073 # Extract the first word of "$ac_prog", so it can be a program name with args.
12074set dummy $ac_prog; ac_word=$2
12075echo "$as_me:$LINENO: checking for $ac_word" >&5
12076echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12077if test "${ac_cv_prog_CROSSWINDRES+set}" = set; then
12078 echo $ECHO_N "(cached) $ECHO_C" >&6
12079else
12080 if test -n "$CROSSWINDRES"; then
12081 ac_cv_prog_CROSSWINDRES="$CROSSWINDRES" # Let the user override the test.
12082else
12083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12084for as_dir in $PATH
12085do
12086 IFS=$as_save_IFS
12087 test -z "$as_dir" && as_dir=.
12088 for ac_exec_ext in '' $ac_executable_extensions; do
12089 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12090 ac_cv_prog_CROSSWINDRES="$ac_prog"
12091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12092 break 2
12093 fi
12094done
12095done
12096
12097fi
12098fi
12099CROSSWINDRES=$ac_cv_prog_CROSSWINDRES
12100if test -n "$CROSSWINDRES"; then
12101 echo "$as_me:$LINENO: result: $CROSSWINDRES" >&5
12102echo "${ECHO_T}$CROSSWINDRES" >&6
12103else
12104 echo "$as_me:$LINENO: result: no" >&5
12105echo "${ECHO_T}no" >&6
12106fi
12107
12108 test -n "$CROSSWINDRES" && break
12109done
12110test -n "$CROSSWINDRES" || CROSSWINDRES="false"
12111
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000012112 if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
12113 fi
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000012114 ;;
12115esac
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000012116
Hidenori Takeshimad48ca942000-12-22 22:28:00 +000012117if test "$LIBEXT" = "a"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012118 { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012119It is currently not possible to build Wine without shared library
12120(.so) support to allow transparent switch between .so and .dll files.
12121If you are using Linux, you will need a newer binutils.
12122" >&5
12123echo "$as_me: error: could not find a way to build shared libraries.
12124It is currently not possible to build Wine without shared library
12125(.so) support to allow transparent switch between .so and .dll files.
12126If you are using Linux, you will need a newer binutils.
12127" >&2;}
12128 { (exit 1); exit 1; }; }
Hidenori Takeshimad48ca942000-12-22 22:28:00 +000012129fi
12130
Alexandre Julliardfc01b722002-05-12 03:16:39 +000012131case $build_os in
12132 cygwin*|mingw32*)
Alexandre Julliard7ab9a712003-03-21 05:06:48 +000012133 LDPATH="PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$PATH\""
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000012134 ;;
Alexandre Julliardfc01b722002-05-12 03:16:39 +000012135 *)
Alexandre Julliard7ab9a712003-03-21 05:06:48 +000012136 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$LD_LIBRARY_PATH\""
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000012137 ;;
Alexandre Julliardfc01b722002-05-12 03:16:39 +000012138esac
12139
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000012140CRTLIBS=""
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012141
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000012142case $host_os in
12143 mingw32*)
12144 CRTLIBS="-lmsvcrt" ;;
12145esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012146
12147
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000012148if test "$LIBEXT" = "so"
12149then
12150 # Extract the first word of "ldd", so it can be a program name with args.
12151set dummy ldd; ac_word=$2
12152echo "$as_me:$LINENO: checking for $ac_word" >&5
12153echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12154if test "${ac_cv_path_LDD+set}" = set; then
12155 echo $ECHO_N "(cached) $ECHO_C" >&6
12156else
12157 case $LDD in
12158 [\\/]* | ?:[\\/]*)
12159 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
12160 ;;
12161 *)
12162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Alexandre Julliard11af04e2002-10-10 03:48:04 +000012163as_dummy="/sbin:/usr/sbin:$PATH"
12164for as_dir in $as_dummy
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000012165do
12166 IFS=$as_save_IFS
12167 test -z "$as_dir" && as_dir=.
12168 for ac_exec_ext in '' $ac_executable_extensions; do
12169 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12170 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
12171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12172 break 2
12173 fi
12174done
12175done
12176
12177 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
12178 ;;
12179esac
12180fi
12181LDD=$ac_cv_path_LDD
12182
12183if test -n "$LDD"; then
12184 echo "$as_me:$LINENO: result: $LDD" >&5
12185echo "${ECHO_T}$LDD" >&6
12186else
12187 echo "$as_me:$LINENO: result: no" >&5
12188echo "${ECHO_T}no" >&6
12189fi
12190
12191
12192echo "$as_me:$LINENO: checking for -lX11 soname" >&5
12193echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6
12194if test "${ac_cv_lib_soname_X11+set}" = set; then
12195 echo $ECHO_N "(cached) $ECHO_C" >&6
12196else
12197 ac_get_soname_save_LIBS=$LIBS
12198LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
12199 cat >conftest.$ac_ext <<_ACEOF
12200#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012201/* confdefs.h. */
12202_ACEOF
12203cat confdefs.h >>conftest.$ac_ext
12204cat >>conftest.$ac_ext <<_ACEOF
12205/* end confdefs.h. */
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000012206
12207/* Override any gcc2 internal prototype to avoid an error. */
12208#ifdef __cplusplus
12209extern "C"
12210#endif
12211/* We use char because int might match the return type of a gcc2
12212 builtin and then its argument prototype would still apply. */
12213char XCreateWindow ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000012214int
12215main ()
12216{
12217XCreateWindow ();
12218 ;
12219 return 0;
12220}
12221_ACEOF
12222rm -f conftest.$ac_objext conftest$ac_exeext
12223if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12224 (eval $ac_link) 2>&5
12225 ac_status=$?
12226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227 (exit $ac_status); } &&
12228 { ac_try='test -s conftest$ac_exeext'
12229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12230 (eval $ac_try) 2>&5
12231 ac_status=$?
12232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12233 (exit $ac_status); }; }; then
12234 ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
12235 if test "x$ac_cv_lib_soname_X11" = "x"
12236 then
12237 ac_cv_lib_soname_X11="libX11.so"
12238 fi
12239else
12240 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012241sed 's/^/| /' conftest.$ac_ext >&5
12242
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000012243ac_cv_lib_soname_X11="libX11.so"
12244fi
12245rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12246 LIBS=$ac_get_soname_save_LIBS
12247fi
12248echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
12249echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6
12250if test "x$ac_cv_lib_soname_X11" != xNONE
12251then
12252cat >>confdefs.h <<_ACEOF
12253#define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
12254_ACEOF
12255fi
12256
12257echo "$as_me:$LINENO: checking for -lXext soname" >&5
12258echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6
12259if test "${ac_cv_lib_soname_Xext+set}" = set; then
12260 echo $ECHO_N "(cached) $ECHO_C" >&6
12261else
12262 ac_get_soname_save_LIBS=$LIBS
12263LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
12264 cat >conftest.$ac_ext <<_ACEOF
12265#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012266/* confdefs.h. */
12267_ACEOF
12268cat confdefs.h >>conftest.$ac_ext
12269cat >>conftest.$ac_ext <<_ACEOF
12270/* end confdefs.h. */
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000012271
12272/* Override any gcc2 internal prototype to avoid an error. */
12273#ifdef __cplusplus
12274extern "C"
12275#endif
12276/* We use char because int might match the return type of a gcc2
12277 builtin and then its argument prototype would still apply. */
12278char XextCreateExtension ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000012279int
12280main ()
12281{
12282XextCreateExtension ();
12283 ;
12284 return 0;
12285}
12286_ACEOF
12287rm -f conftest.$ac_objext conftest$ac_exeext
12288if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12289 (eval $ac_link) 2>&5
12290 ac_status=$?
12291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12292 (exit $ac_status); } &&
12293 { ac_try='test -s conftest$ac_exeext'
12294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12295 (eval $ac_try) 2>&5
12296 ac_status=$?
12297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298 (exit $ac_status); }; }; then
12299 ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
12300 if test "x$ac_cv_lib_soname_Xext" = "x"
12301 then
12302 ac_cv_lib_soname_Xext="libXext.so"
12303 fi
12304else
12305 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012306sed 's/^/| /' conftest.$ac_ext >&5
12307
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000012308ac_cv_lib_soname_Xext="libXext.so"
12309fi
12310rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12311 LIBS=$ac_get_soname_save_LIBS
12312fi
12313echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
12314echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6
12315if test "x$ac_cv_lib_soname_Xext" != xNONE
12316then
12317cat >>confdefs.h <<_ACEOF
12318#define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
12319_ACEOF
12320fi
12321
12322echo "$as_me:$LINENO: checking for -lXrender soname" >&5
12323echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6
12324if test "${ac_cv_lib_soname_Xrender+set}" = set; then
12325 echo $ECHO_N "(cached) $ECHO_C" >&6
12326else
12327 ac_get_soname_save_LIBS=$LIBS
12328LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
12329 cat >conftest.$ac_ext <<_ACEOF
12330#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012331/* confdefs.h. */
12332_ACEOF
12333cat confdefs.h >>conftest.$ac_ext
12334cat >>conftest.$ac_ext <<_ACEOF
12335/* end confdefs.h. */
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000012336
12337/* Override any gcc2 internal prototype to avoid an error. */
12338#ifdef __cplusplus
12339extern "C"
12340#endif
12341/* We use char because int might match the return type of a gcc2
12342 builtin and then its argument prototype would still apply. */
12343char XRenderQueryExtension ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000012344int
12345main ()
12346{
12347XRenderQueryExtension ();
12348 ;
12349 return 0;
12350}
12351_ACEOF
12352rm -f conftest.$ac_objext conftest$ac_exeext
12353if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12354 (eval $ac_link) 2>&5
12355 ac_status=$?
12356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357 (exit $ac_status); } &&
12358 { ac_try='test -s conftest$ac_exeext'
12359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12360 (eval $ac_try) 2>&5
12361 ac_status=$?
12362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363 (exit $ac_status); }; }; then
12364 ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
12365 if test "x$ac_cv_lib_soname_Xrender" = "x"
12366 then
12367 ac_cv_lib_soname_Xrender="libXrender.so"
12368 fi
12369else
12370 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012371sed 's/^/| /' conftest.$ac_ext >&5
12372
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000012373ac_cv_lib_soname_Xrender="libXrender.so"
12374fi
12375rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12376 LIBS=$ac_get_soname_save_LIBS
12377fi
12378echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
12379echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6
12380if test "x$ac_cv_lib_soname_Xrender" != xNONE
12381then
12382cat >>confdefs.h <<_ACEOF
12383#define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
12384_ACEOF
12385fi
12386
12387echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
12388echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6
12389if test "${ac_cv_lib_soname_freetype+set}" = set; then
12390 echo $ECHO_N "(cached) $ECHO_C" >&6
12391else
12392 ac_get_soname_save_LIBS=$LIBS
12393LIBS="-lfreetype $X_LIBS $LIBS"
12394 cat >conftest.$ac_ext <<_ACEOF
12395#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012396/* confdefs.h. */
12397_ACEOF
12398cat confdefs.h >>conftest.$ac_ext
12399cat >>conftest.$ac_ext <<_ACEOF
12400/* end confdefs.h. */
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000012401
12402/* Override any gcc2 internal prototype to avoid an error. */
12403#ifdef __cplusplus
12404extern "C"
12405#endif
12406/* We use char because int might match the return type of a gcc2
12407 builtin and then its argument prototype would still apply. */
12408char FT_Init_FreeType ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000012409int
12410main ()
12411{
12412FT_Init_FreeType ();
12413 ;
12414 return 0;
12415}
12416_ACEOF
12417rm -f conftest.$ac_objext conftest$ac_exeext
12418if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12419 (eval $ac_link) 2>&5
12420 ac_status=$?
12421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12422 (exit $ac_status); } &&
12423 { ac_try='test -s conftest$ac_exeext'
12424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12425 (eval $ac_try) 2>&5
12426 ac_status=$?
12427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428 (exit $ac_status); }; }; then
12429 ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
12430 if test "x$ac_cv_lib_soname_freetype" = "x"
12431 then
12432 ac_cv_lib_soname_freetype="libfreetype.so"
12433 fi
12434else
12435 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012436sed 's/^/| /' conftest.$ac_ext >&5
12437
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000012438ac_cv_lib_soname_freetype="libfreetype.so"
12439fi
12440rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12441 LIBS=$ac_get_soname_save_LIBS
12442fi
12443echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
12444echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6
12445if test "x$ac_cv_lib_soname_freetype" != xNONE
12446then
12447cat >>confdefs.h <<_ACEOF
12448#define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
12449_ACEOF
12450fi
Marcus Meissnerf061f762002-11-12 02:22:24 +000012451
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000012452echo "$as_me:$LINENO: checking for -lGL soname" >&5
12453echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6
12454if test "${ac_cv_lib_soname_GL+set}" = set; then
12455 echo $ECHO_N "(cached) $ECHO_C" >&6
12456else
12457 ac_get_soname_save_LIBS=$LIBS
12458LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
12459 cat >conftest.$ac_ext <<_ACEOF
12460#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012461/* confdefs.h. */
12462_ACEOF
12463cat confdefs.h >>conftest.$ac_ext
12464cat >>conftest.$ac_ext <<_ACEOF
12465/* end confdefs.h. */
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000012466
12467/* Override any gcc2 internal prototype to avoid an error. */
12468#ifdef __cplusplus
12469extern "C"
12470#endif
12471/* We use char because int might match the return type of a gcc2
12472 builtin and then its argument prototype would still apply. */
12473char glXQueryExtension ();
12474int
12475main ()
12476{
12477glXQueryExtension ();
12478 ;
12479 return 0;
12480}
12481_ACEOF
12482rm -f conftest.$ac_objext conftest$ac_exeext
12483if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12484 (eval $ac_link) 2>&5
12485 ac_status=$?
12486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487 (exit $ac_status); } &&
12488 { ac_try='test -s conftest$ac_exeext'
12489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12490 (eval $ac_try) 2>&5
12491 ac_status=$?
12492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12493 (exit $ac_status); }; }; then
12494 ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
12495 if test "x$ac_cv_lib_soname_GL" = "x"
12496 then
12497 ac_cv_lib_soname_GL="libGL.so"
12498 fi
12499else
12500 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012501sed 's/^/| /' conftest.$ac_ext >&5
12502
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000012503ac_cv_lib_soname_GL="libGL.so"
12504fi
12505rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12506 LIBS=$ac_get_soname_save_LIBS
12507fi
12508echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
12509echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6
12510if test "x$ac_cv_lib_soname_GL" != xNONE
12511then
12512cat >>confdefs.h <<_ACEOF
12513#define SONAME_LIBGL "$ac_cv_lib_soname_GL"
12514_ACEOF
12515fi
12516
Marcus Meissnerf061f762002-11-12 02:22:24 +000012517echo "$as_me:$LINENO: checking for -lcups soname" >&5
12518echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6
12519if test "${ac_cv_lib_soname_cups+set}" = set; then
12520 echo $ECHO_N "(cached) $ECHO_C" >&6
12521else
12522 ac_get_soname_save_LIBS=$LIBS
12523LIBS="-lcups $LIBS"
12524 cat >conftest.$ac_ext <<_ACEOF
12525#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012526/* confdefs.h. */
12527_ACEOF
12528cat confdefs.h >>conftest.$ac_ext
12529cat >>conftest.$ac_ext <<_ACEOF
12530/* end confdefs.h. */
Marcus Meissnerf061f762002-11-12 02:22:24 +000012531
12532/* Override any gcc2 internal prototype to avoid an error. */
12533#ifdef __cplusplus
12534extern "C"
12535#endif
12536/* We use char because int might match the return type of a gcc2
12537 builtin and then its argument prototype would still apply. */
12538char cupsGetDefault ();
12539int
12540main ()
12541{
12542cupsGetDefault ();
12543 ;
12544 return 0;
12545}
12546_ACEOF
12547rm -f conftest.$ac_objext conftest$ac_exeext
12548if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12549 (eval $ac_link) 2>&5
12550 ac_status=$?
12551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552 (exit $ac_status); } &&
12553 { ac_try='test -s conftest$ac_exeext'
12554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12555 (eval $ac_try) 2>&5
12556 ac_status=$?
12557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558 (exit $ac_status); }; }; then
12559 ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
12560 if test "x$ac_cv_lib_soname_cups" = "x"
12561 then
12562 ac_cv_lib_soname_cups="libcups.so"
12563 fi
12564else
12565 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012566sed 's/^/| /' conftest.$ac_ext >&5
12567
Marcus Meissnerf061f762002-11-12 02:22:24 +000012568ac_cv_lib_soname_cups="libcups.so"
12569fi
12570rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12571 LIBS=$ac_get_soname_save_LIBS
12572fi
12573echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
12574echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6
12575if test "x$ac_cv_lib_soname_cups" != xNONE
12576then
12577cat >>confdefs.h <<_ACEOF
12578#define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
12579_ACEOF
12580fi
Chris Morgan4691b182002-12-13 02:26:18 +000012581
12582echo "$as_me:$LINENO: checking for -ljack soname" >&5
12583echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6
12584if test "${ac_cv_lib_soname_jack+set}" = set; then
12585 echo $ECHO_N "(cached) $ECHO_C" >&6
12586else
12587 ac_get_soname_save_LIBS=$LIBS
12588LIBS="-ljack $LIBS"
12589 cat >conftest.$ac_ext <<_ACEOF
12590#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012591/* confdefs.h. */
12592_ACEOF
12593cat confdefs.h >>conftest.$ac_ext
12594cat >>conftest.$ac_ext <<_ACEOF
12595/* end confdefs.h. */
Chris Morgan4691b182002-12-13 02:26:18 +000012596
12597/* Override any gcc2 internal prototype to avoid an error. */
12598#ifdef __cplusplus
12599extern "C"
12600#endif
12601/* We use char because int might match the return type of a gcc2
12602 builtin and then its argument prototype would still apply. */
12603char jack_client_new ();
12604int
12605main ()
12606{
12607jack_client_new ();
12608 ;
12609 return 0;
12610}
12611_ACEOF
12612rm -f conftest.$ac_objext conftest$ac_exeext
12613if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12614 (eval $ac_link) 2>&5
12615 ac_status=$?
12616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12617 (exit $ac_status); } &&
12618 { ac_try='test -s conftest$ac_exeext'
12619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12620 (eval $ac_try) 2>&5
12621 ac_status=$?
12622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623 (exit $ac_status); }; }; then
12624 ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep libjack\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'`
12625 if test "x$ac_cv_lib_soname_jack" = "x"
12626 then
12627 ac_cv_lib_soname_jack="libjack.so"
12628 fi
12629else
12630 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012631sed 's/^/| /' conftest.$ac_ext >&5
12632
Chris Morgan4691b182002-12-13 02:26:18 +000012633ac_cv_lib_soname_jack="libjack.so"
12634fi
12635rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12636 LIBS=$ac_get_soname_save_LIBS
12637fi
12638echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5
12639echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6
12640if test "x$ac_cv_lib_soname_jack" != xNONE
12641then
12642cat >>confdefs.h <<_ACEOF
12643#define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
12644_ACEOF
12645fi
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000012646fi
12647
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012648
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000012649
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012650# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12651# for constant arguments. Useless!
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012652echo "$as_me:$LINENO: checking for working alloca.h" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012653echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
12654if test "${ac_cv_working_alloca_h+set}" = set; then
12655 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012656else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012657 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012658#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012659/* confdefs.h. */
12660_ACEOF
12661cat confdefs.h >>conftest.$ac_ext
12662cat >>conftest.$ac_ext <<_ACEOF
12663/* end confdefs.h. */
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012664#include <alloca.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012665int
12666main ()
12667{
12668char *p = (char *) alloca (2 * sizeof (int));
12669 ;
12670 return 0;
12671}
12672_ACEOF
12673rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012674if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012675 (eval $ac_link) 2>&5
12676 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012678 (exit $ac_status); } &&
12679 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012681 (eval $ac_try) 2>&5
12682 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012684 (exit $ac_status); }; }; then
12685 ac_cv_working_alloca_h=yes
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012686else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012687 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012688sed 's/^/| /' conftest.$ac_ext >&5
12689
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012690ac_cv_working_alloca_h=no
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012691fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012692rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012693fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012694echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012695echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
12696if test $ac_cv_working_alloca_h = yes; then
Alexandre Julliard2487cce1999-04-18 14:43:16 +000012697
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012698cat >>confdefs.h <<\_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012699#define HAVE_ALLOCA_H 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012700_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012701
12702fi
12703
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012704echo "$as_me:$LINENO: checking for alloca" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012705echo $ECHO_N "checking for alloca... $ECHO_C" >&6
12706if test "${ac_cv_func_alloca_works+set}" = set; then
12707 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012708else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012709 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012710#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012711/* confdefs.h. */
12712_ACEOF
12713cat confdefs.h >>conftest.$ac_ext
12714cat >>conftest.$ac_ext <<_ACEOF
12715/* end confdefs.h. */
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012716#ifdef __GNUC__
12717# define alloca __builtin_alloca
12718#else
Eric Pouech18ad24a2000-01-16 22:16:33 +000012719# ifdef _MSC_VER
12720# include <malloc.h>
12721# define alloca _alloca
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012722# else
Eric Pouech18ad24a2000-01-16 22:16:33 +000012723# if HAVE_ALLOCA_H
12724# include <alloca.h>
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012725# else
Eric Pouech18ad24a2000-01-16 22:16:33 +000012726# ifdef _AIX
12727 #pragma alloca
12728# else
12729# ifndef alloca /* predefined by HP cc +Olibcalls */
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012730char *alloca ();
Eric Pouech18ad24a2000-01-16 22:16:33 +000012731# endif
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012732# endif
12733# endif
12734# endif
12735#endif
12736
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012737int
12738main ()
12739{
12740char *p = (char *) alloca (1);
12741 ;
12742 return 0;
12743}
12744_ACEOF
12745rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012746if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012747 (eval $ac_link) 2>&5
12748 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012750 (exit $ac_status); } &&
12751 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012753 (eval $ac_try) 2>&5
12754 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012756 (exit $ac_status); }; }; then
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012757 ac_cv_func_alloca_works=yes
12758else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012759 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012760sed 's/^/| /' conftest.$ac_ext >&5
12761
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012762ac_cv_func_alloca_works=no
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012763fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012764rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012765fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012766echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012767echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012768
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012769if test $ac_cv_func_alloca_works = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012770
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012771cat >>confdefs.h <<\_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012772#define HAVE_ALLOCA 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012773_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012774
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012775else
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012776 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012777# that cause trouble. Some versions do not even contain alloca or
12778# contain a buggy version. If you still want to use their alloca,
12779# use ar to extract alloca.o from them instead of compiling alloca.c.
12780
12781ALLOCA=alloca.$ac_objext
12782
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012783cat >>confdefs.h <<\_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012784#define C_ALLOCA 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012785_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012786
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012787
12788echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012789echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
12790if test "${ac_cv_os_cray+set}" = set; then
12791 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012792else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012793 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012794#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012795/* confdefs.h. */
12796_ACEOF
12797cat confdefs.h >>conftest.$ac_ext
12798cat >>conftest.$ac_ext <<_ACEOF
12799/* end confdefs.h. */
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012800#if defined(CRAY) && ! defined(CRAY2)
12801webecray
12802#else
12803wenotbecray
12804#endif
12805
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012806_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012807if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +000012808 $EGREP "webecray" >/dev/null 2>&1; then
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012809 ac_cv_os_cray=yes
12810else
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012811 ac_cv_os_cray=no
12812fi
12813rm -f conftest*
12814
12815fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012816echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012817echo "${ECHO_T}$ac_cv_os_cray" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012818if test $ac_cv_os_cray = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012819 for ac_func in _getb67 GETB67 getb67; do
12820 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012821echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012822echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12823if eval "test \"\${$as_ac_var+set}\" = set"; then
12824 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012825else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012826 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012827#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012828/* confdefs.h. */
12829_ACEOF
12830cat confdefs.h >>conftest.$ac_ext
12831cat >>conftest.$ac_ext <<_ACEOF
12832/* end confdefs.h. */
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012833/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012834 which can conflict with char $ac_func (); below.
12835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12836 <limits.h> exists even on freestanding compilers. */
12837#ifdef __STDC__
12838# include <limits.h>
12839#else
12840# include <assert.h>
12841#endif
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012842/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012843#ifdef __cplusplus
12844extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012845{
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012846#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +000012847/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012848 builtin and then its argument prototype would still apply. */
12849char $ac_func ();
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012850/* The GNU C library defines this for functions which it implements
12851 to always fail with ENOSYS. Some functions are actually named
12852 something starting with __ and the normal name is an alias. */
12853#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12854choke me
12855#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012856char (*f) () = $ac_func;
12857#endif
12858#ifdef __cplusplus
12859}
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012860#endif
12861
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012862int
12863main ()
12864{
12865return f != $ac_func;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012866 ;
12867 return 0;
12868}
12869_ACEOF
12870rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012871if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012872 (eval $ac_link) 2>&5
12873 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012875 (exit $ac_status); } &&
12876 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012878 (eval $ac_try) 2>&5
12879 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012881 (exit $ac_status); }; }; then
12882 eval "$as_ac_var=yes"
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012883else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012884 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012885sed 's/^/| /' conftest.$ac_ext >&5
12886
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012887eval "$as_ac_var=no"
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012888fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012889rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012890fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012891echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012892echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12893if test `eval echo '${'$as_ac_var'}'` = yes; then
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012894
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012895cat >>confdefs.h <<_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012896#define CRAY_STACKSEG_END $ac_func
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012897_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012898
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012899 break
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012900fi
12901
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012902 done
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012903fi
12904
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012905echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012906echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
12907if test "${ac_cv_c_stack_direction+set}" = set; then
12908 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012909else
12910 if test "$cross_compiling" = yes; then
12911 ac_cv_c_stack_direction=0
12912else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012913 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012914#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012915/* confdefs.h. */
12916_ACEOF
12917cat confdefs.h >>conftest.$ac_ext
12918cat >>conftest.$ac_ext <<_ACEOF
12919/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012920int
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012921find_stack_direction ()
12922{
12923 static char *addr = 0;
12924 auto char dummy;
12925 if (addr == 0)
12926 {
12927 addr = &dummy;
12928 return find_stack_direction ();
12929 }
12930 else
12931 return (&dummy > addr) ? 1 : -1;
12932}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012933
12934int
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012935main ()
12936{
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012937 exit (find_stack_direction () < 0);
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012938}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012939_ACEOF
12940rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012941if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012942 (eval $ac_link) 2>&5
12943 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012945 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012947 (eval $ac_try) 2>&5
12948 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012950 (exit $ac_status); }; }; then
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012951 ac_cv_c_stack_direction=1
12952else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012953 echo "$as_me: program exited with status $ac_status" >&5
12954echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012955sed 's/^/| /' conftest.$ac_ext >&5
12956
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012957( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012958ac_cv_c_stack_direction=-1
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012959fi
Alexandre Julliard11af04e2002-10-10 03:48:04 +000012960rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012961fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012962fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012963echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012964echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012965
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012966cat >>confdefs.h <<_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012967#define STACK_DIRECTION $ac_cv_c_stack_direction
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012968_ACEOF
12969
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012970
12971fi
12972
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012973
12974
12975
12976
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
Steven Edwardsb9627c12002-05-05 21:03:44 +000013015
13016
Steven Edwards0a8e15a2002-05-10 01:33:40 +000013017
13018
Alexandre Julliard142dab82002-07-01 18:17:30 +000013019
Patrik Stridvall6caeb722002-11-25 21:12:26 +000013020
13021
13022
13023
13024
Alexandre Julliard8d7b8e52003-03-23 20:11:45 +000013025
Alexandre Julliardc45bbad2003-04-01 00:12:02 +000013026
Alexandre Julliard6f7a2042003-04-01 04:39:35 +000013027
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013028for ac_func in \
13029 _lwp_create \
Alexandre Julliard6f7a2042003-04-01 04:39:35 +000013030 _lwp_self \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000013031 _pclose \
13032 _popen \
Steven Edwards0a8e15a2002-05-10 01:33:40 +000013033 _snprintf \
Alexandre Julliardc45bbad2003-04-01 00:12:02 +000013034 _spawnvp \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000013035 _stricmp \
13036 _strnicmp \
Steven Edwardsbe514b92003-01-14 19:35:03 +000013037 _vsnprintf \
Steven Edwardsb9627c12002-05-05 21:03:44 +000013038 chsize \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013039 clone \
Jon Griffithsd6deb6d2000-11-27 01:37:28 +000013040 finite \
13041 fpclass \
Steven Edwardsb9627c12002-05-05 21:03:44 +000013042 ftruncate \
Marcus Meissner3f1ed522001-05-14 20:09:37 +000013043 ftruncate64 \
Patrik Stridvallb9010211999-11-13 22:23:35 +000013044 getnetbyaddr \
13045 getnetbyname \
Dimitrie O. Paun647c1a32002-12-10 19:16:24 +000013046 getopt_long \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013047 getpagesize \
Patrik Stridvallb9010211999-11-13 22:23:35 +000013048 getprotobyname \
13049 getprotobynumber \
Alexandre Julliard142dab82002-07-01 18:17:30 +000013050 getpwuid \
Patrik Stridvallb9010211999-11-13 22:23:35 +000013051 getservbyport \
Alexandre Julliard8d7b8e52003-03-23 20:11:45 +000013052 gettimeofday \
Patrik Stridvallb9010211999-11-13 22:23:35 +000013053 inet_network \
Marcus Meissner3f1ed522001-05-14 20:09:37 +000013054 lseek64 \
Alexandre Julliard27bb3112000-11-29 17:48:06 +000013055 lstat \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013056 memmove \
Hidenori Takeshimaa85b0a62000-11-25 23:54:12 +000013057 mmap \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000013058 pclose \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000013059 popen \
Steven Edwardsb9627c12002-05-05 21:03:44 +000013060 pread \
Patrik Stridvall6caeb722002-11-25 21:12:26 +000013061 pthread_getspecific \
13062 pthread_key_create \
13063 pthread_mutex_lock \
13064 pthread_mutex_unlock \
13065 pthread_setspecific \
Alexandre Julliardf1a0de92002-01-07 21:00:27 +000013066 pwrite \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013067 rfork \
Patrik Stridvallb9010211999-11-13 22:23:35 +000013068 select \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013069 sendmsg \
Patrik Stridvallb9010211999-11-13 22:23:35 +000013070 settimeofday \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013071 sigaltstack \
Steven Edwards0a8e15a2002-05-10 01:33:40 +000013072 snprintf \
Patrik Stridvallb9010211999-11-13 22:23:35 +000013073 statfs \
Alexandre Julliard3b96efc1999-09-04 14:36:02 +000013074 strcasecmp \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013075 strerror \
Alexandre Julliard3b96efc1999-09-04 14:36:02 +000013076 strncasecmp \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013077 tcgetattr \
13078 timegm \
13079 usleep \
13080 vfscanf \
Steven Edwardsbe514b92003-01-14 19:35:03 +000013081 vsnprintf \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013082 wait4 \
13083 waitpid \
13084
13085do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013086as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013087echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013088echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13089if eval "test \"\${$as_ac_var+set}\" = set"; then
13090 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013091else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013092 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013093#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013094/* confdefs.h. */
13095_ACEOF
13096cat confdefs.h >>conftest.$ac_ext
13097cat >>conftest.$ac_ext <<_ACEOF
13098/* end confdefs.h. */
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013099/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013100 which can conflict with char $ac_func (); below.
13101 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13102 <limits.h> exists even on freestanding compilers. */
13103#ifdef __STDC__
13104# include <limits.h>
13105#else
13106# include <assert.h>
13107#endif
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013108/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013109#ifdef __cplusplus
13110extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013111{
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013112#endif
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013113/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013114 builtin and then its argument prototype would still apply. */
13115char $ac_func ();
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013116/* The GNU C library defines this for functions which it implements
13117 to always fail with ENOSYS. Some functions are actually named
13118 something starting with __ and the normal name is an alias. */
13119#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13120choke me
13121#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013122char (*f) () = $ac_func;
13123#endif
13124#ifdef __cplusplus
13125}
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013126#endif
13127
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013128int
13129main ()
13130{
13131return f != $ac_func;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013132 ;
13133 return 0;
13134}
13135_ACEOF
13136rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013137if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013138 (eval $ac_link) 2>&5
13139 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013141 (exit $ac_status); } &&
13142 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013144 (eval $ac_try) 2>&5
13145 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013147 (exit $ac_status); }; }; then
13148 eval "$as_ac_var=yes"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013149else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013150 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013151sed 's/^/| /' conftest.$ac_ext >&5
13152
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013153eval "$as_ac_var=no"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013154fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013155rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013156fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013157echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013158echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13159if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013160 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013161#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013162_ACEOF
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000013163
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013164fi
13165done
13166
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013167
13168
13169
13170
13171
13172
13173
13174
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
Laurent Pinchart0314a652002-05-01 22:01:30 +000013228
Rizsanyi Zsolte7c6d172002-05-01 22:25:41 +000013229
13230
13231
Alexandre Julliard127ec922002-05-07 01:51:30 +000013232
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000013233
Patrik Stridvall57bf4502002-08-26 21:53:24 +000013234
13235
Dimitrie O. Paun647c1a32002-12-10 19:16:24 +000013236
Chris Morgan4691b182002-12-13 02:26:18 +000013237
Alexandre Julliardb6938952003-01-13 18:41:40 +000013238
Alexandre Julliardc44555b2003-04-02 01:42:06 +000013239
Juan Lang38fa5ad2003-05-13 03:32:20 +000013240
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013241for ac_header in \
Patrik Stridvall96336321999-10-24 22:13:47 +000013242 arpa/inet.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000013243 arpa/nameser.h \
Marcus Meissnerf061f762002-11-12 02:22:24 +000013244 cups/cups.h \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000013245 direct.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000013246 elf.h \
13247 float.h \
Dimitrie O. Paun647c1a32002-12-10 19:16:24 +000013248 getopt.h \
Ulrich Weigand2e8e2332000-12-27 18:49:08 +000013249 ieeefp.h \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000013250 io.h \
Chris Morgan4691b182002-12-13 02:26:18 +000013251 jack/jack.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000013252 libio.h \
Hidenori Takeshima01f78aa2000-07-09 12:19:09 +000013253 libutil.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000013254 link.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000013255 linux/cdrom.h \
Rizsanyi Zsolte7c6d172002-05-01 22:25:41 +000013256 linux/hdreg.h \
Marcus Meissnerc9b3b2e2000-12-12 00:38:58 +000013257 linux/input.h \
Marcus Meissner028e9a11999-08-04 15:07:56 +000013258 linux/joystick.h \
Rizsanyi Zsolte7c6d172002-05-01 22:25:41 +000013259 linux/major.h \
Laurent Pinchart0314a652002-05-01 22:01:30 +000013260 linux/param.h \
Lawson Whitney533e7ee2002-02-19 18:41:56 +000013261 linux/serial.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000013262 linux/ucdrom.h \
Hidenori Takeshima5d1a6382000-11-26 04:00:53 +000013263 netdb.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000013264 netinet/in.h \
Patrik Stridvall7a4e5992000-12-01 23:53:46 +000013265 netinet/in_systm.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000013266 netinet/tcp.h \
Juan Lang38fa5ad2003-05-13 03:32:20 +000013267 netinet/tcp_fsm.h \
Marcus Meissner2d7be871999-12-05 23:06:40 +000013268 pty.h \
Steven Edwardsff4525c2002-06-24 23:00:25 +000013269 pwd.h \
Alexandre Julliardb6938952003-01-13 18:41:40 +000013270 regex.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000013271 sched.h \
Rizsanyi Zsolte7c6d172002-05-01 22:25:41 +000013272 scsi/sg.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000013273 socket.h \
Bang Jun-Youngeda758e2001-12-14 22:47:19 +000013274 stdint.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000013275 strings.h \
13276 sys/cdio.h \
Howard Abrams13277481999-07-10 13:16:29 +000013277 sys/errno.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000013278 sys/file.h \
13279 sys/filio.h \
Michal Pasternak60983992002-03-29 18:04:43 +000013280 sys/inttypes.h \
Alexandre Julliardc3e06df2002-05-14 23:18:23 +000013281 sys/ioctl.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000013282 sys/ipc.h \
Eric Pouech624cbd72001-08-10 22:29:21 +000013283 sys/link.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000013284 sys/lwp.h \
Howard Abrams13277481999-07-10 13:16:29 +000013285 sys/mman.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000013286 sys/modem.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000013287 sys/msg.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000013288 sys/param.h \
Patrik Stridvall57bf4502002-08-26 21:53:24 +000013289 sys/poll.h \
Dimitrie O. Paun2af03e42000-11-29 20:04:09 +000013290 sys/ptrace.h \
Ulrich Weigand8a1bdb32000-01-30 22:22:22 +000013291 sys/reg.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000013292 sys/shm.h \
Rizsanyi Zsolte7c6d172002-05-01 22:25:41 +000013293 sys/signal.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000013294 sys/socket.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000013295 sys/sockio.h \
13296 sys/statfs.h \
13297 sys/strtio.h \
13298 sys/syscall.h \
Alexandre Julliard127ec922002-05-07 01:51:30 +000013299 sys/sysctl.h \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000013300 sys/time.h \
Patrik Stridvall57bf4502002-08-26 21:53:24 +000013301 sys/times.h \
Steven Edwards45e56812002-10-31 03:41:56 +000013302 sys/uio.h \
13303 sys/un.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000013304 sys/v86.h \
13305 sys/v86intr.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000013306 sys/vfs.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000013307 sys/vm86.h \
Rizsanyi Zsolte7c6d172002-05-01 22:25:41 +000013308 sys/wait.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000013309 syscall.h \
Alexandre Julliardc3e06df2002-05-14 23:18:23 +000013310 termios.h \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000013311 unistd.h \
Patrik Stridvall57bf4502002-08-26 21:53:24 +000013312 utime.h \
Alexandre Julliardc44555b2003-04-02 01:42:06 +000013313 valgrind/memcheck.h
Alexandre Julliard2487cce1999-04-18 14:43:16 +000013314
Alexandre Julliard02e90081998-01-04 17:49:09 +000013315do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013316as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013317if eval "test \"\${$as_ac_Header+set}\" = set"; then
13318 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013319echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13320if eval "test \"\${$as_ac_Header+set}\" = set"; then
13321 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013322fi
13323echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13324echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliard02e90081998-01-04 17:49:09 +000013325else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013326 # Is the header compilable?
13327echo "$as_me:$LINENO: checking $ac_header usability" >&5
13328echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13329cat >conftest.$ac_ext <<_ACEOF
13330#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013331/* confdefs.h. */
13332_ACEOF
13333cat confdefs.h >>conftest.$ac_ext
13334cat >>conftest.$ac_ext <<_ACEOF
13335/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013336$ac_includes_default
13337#include <$ac_header>
13338_ACEOF
13339rm -f conftest.$ac_objext
13340if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13341 (eval $ac_compile) 2>&5
13342 ac_status=$?
13343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13344 (exit $ac_status); } &&
13345 { ac_try='test -s conftest.$ac_objext'
13346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13347 (eval $ac_try) 2>&5
13348 ac_status=$?
13349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13350 (exit $ac_status); }; }; then
13351 ac_header_compiler=yes
13352else
13353 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013354sed 's/^/| /' conftest.$ac_ext >&5
13355
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013356ac_header_compiler=no
13357fi
13358rm -f conftest.$ac_objext conftest.$ac_ext
13359echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13360echo "${ECHO_T}$ac_header_compiler" >&6
13361
13362# Is the header present?
13363echo "$as_me:$LINENO: checking $ac_header presence" >&5
13364echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13365cat >conftest.$ac_ext <<_ACEOF
13366#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013367/* confdefs.h. */
13368_ACEOF
13369cat confdefs.h >>conftest.$ac_ext
13370cat >>conftest.$ac_ext <<_ACEOF
13371/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013372#include <$ac_header>
13373_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013374if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013375 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13376 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013377 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013378 rm -f conftest.er1
13379 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013381 (exit $ac_status); } >/dev/null; then
13382 if test -s conftest.err; then
13383 ac_cpp_err=$ac_c_preproc_warn_flag
13384 else
13385 ac_cpp_err=
13386 fi
Alexandre Julliard02e90081998-01-04 17:49:09 +000013387else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013388 ac_cpp_err=yes
13389fi
13390if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013391 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013392else
13393 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013394sed 's/^/| /' conftest.$ac_ext >&5
13395
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013396 ac_header_preproc=no
Alexandre Julliard02e90081998-01-04 17:49:09 +000013397fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013398rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013399echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13400echo "${ECHO_T}$ac_header_preproc" >&6
13401
13402# So? What about this header?
13403case $ac_header_compiler:$ac_header_preproc in
13404 yes:no )
13405 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13406echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13407 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013408echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13409 (
13410 cat <<\_ASBOX
13411## ------------------------------------ ##
13412## Report this to bug-autoconf@gnu.org. ##
13413## ------------------------------------ ##
13414_ASBOX
13415 ) |
13416 sed "s/^/$as_me: WARNING: /" >&2
13417 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013418 no:yes )
13419 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13420echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13421 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13422echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13423 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013424echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13425 (
13426 cat <<\_ASBOX
13427## ------------------------------------ ##
13428## Report this to bug-autoconf@gnu.org. ##
13429## ------------------------------------ ##
13430_ASBOX
13431 ) |
13432 sed "s/^/$as_me: WARNING: /" >&2
13433 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013434esac
13435echo "$as_me:$LINENO: checking for $ac_header" >&5
13436echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13437if eval "test \"\${$as_ac_Header+set}\" = set"; then
13438 echo $ECHO_N "(cached) $ECHO_C" >&6
13439else
13440 eval "$as_ac_Header=$ac_header_preproc"
Alexandre Julliard02e90081998-01-04 17:49:09 +000013441fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013442echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013443echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013444
Alexandre Julliard02e90081998-01-04 17:49:09 +000013445fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013446if test `eval echo '${'$as_ac_Header'}'` = yes; then
13447 cat >>confdefs.h <<_ACEOF
13448#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13449_ACEOF
13450
13451fi
13452
Alexandre Julliard02e90081998-01-04 17:49:09 +000013453done
13454
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013455echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013456echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
13457if test "${ac_cv_header_stat_broken+set}" = set; then
13458 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013459else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013460 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013461#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013462/* confdefs.h. */
13463_ACEOF
13464cat confdefs.h >>conftest.$ac_ext
13465cat >>conftest.$ac_ext <<_ACEOF
13466/* end confdefs.h. */
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013467#include <sys/types.h>
13468#include <sys/stat.h>
13469
13470#if defined(S_ISBLK) && defined(S_IFDIR)
13471# if S_ISBLK (S_IFDIR)
13472You lose.
13473# endif
13474#endif
13475
13476#if defined(S_ISBLK) && defined(S_IFCHR)
13477# if S_ISBLK (S_IFCHR)
13478You lose.
13479# endif
13480#endif
13481
13482#if defined(S_ISLNK) && defined(S_IFREG)
13483# if S_ISLNK (S_IFREG)
13484You lose.
13485# endif
13486#endif
13487
13488#if defined(S_ISSOCK) && defined(S_IFREG)
13489# if S_ISSOCK (S_IFREG)
13490You lose.
13491# endif
13492#endif
13493
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013494_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013495if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013496 $EGREP "You lose" >/dev/null 2>&1; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013497 ac_cv_header_stat_broken=yes
13498else
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013499 ac_cv_header_stat_broken=no
13500fi
13501rm -f conftest*
13502
13503fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013504echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013505echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013506if test $ac_cv_header_stat_broken = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013507
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013508cat >>confdefs.h <<\_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013509#define STAT_MACROS_BROKEN 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013510_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013511
13512fi
13513
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013514
13515
Gerald Pfeifer6cef4cd2002-11-06 22:00:10 +000013516
13517
13518for ac_header in sys/mount.h sys/user.h
13519do
13520as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13521echo "$as_me:$LINENO: checking for $ac_header" >&5
13522echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13523if eval "test \"\${$as_ac_Header+set}\" = set"; then
13524 echo $ECHO_N "(cached) $ECHO_C" >&6
13525else
13526 cat >conftest.$ac_ext <<_ACEOF
13527#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013528/* confdefs.h. */
13529_ACEOF
13530cat confdefs.h >>conftest.$ac_ext
13531cat >>conftest.$ac_ext <<_ACEOF
13532/* end confdefs.h. */
Patrik Stridvall63ae7fe2002-11-08 19:34:52 +000013533#include <sys/types.h>
13534 #if HAVE_SYS_PARAM_H
13535 # include <sys/param.h>
Gerald Pfeifer6cef4cd2002-11-06 22:00:10 +000013536 #endif
13537
13538#include <$ac_header>
13539_ACEOF
13540rm -f conftest.$ac_objext
13541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13542 (eval $ac_compile) 2>&5
13543 ac_status=$?
13544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13545 (exit $ac_status); } &&
13546 { ac_try='test -s conftest.$ac_objext'
13547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13548 (eval $ac_try) 2>&5
13549 ac_status=$?
13550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13551 (exit $ac_status); }; }; then
13552 eval "$as_ac_Header=yes"
13553else
13554 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013555sed 's/^/| /' conftest.$ac_ext >&5
13556
Gerald Pfeifer6cef4cd2002-11-06 22:00:10 +000013557eval "$as_ac_Header=no"
13558fi
13559rm -f conftest.$ac_objext conftest.$ac_ext
13560fi
13561echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13562echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13563if test `eval echo '${'$as_ac_Header'}'` = yes; then
13564 cat >>confdefs.h <<_ACEOF
13565#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13566_ACEOF
13567
13568fi
13569
13570done
13571
13572
13573
Juan Lang38fa5ad2003-05-13 03:32:20 +000013574
13575
13576
13577
13578
13579for ac_header in net/if.h net/if_arp.h net/if_dl.h net/if_types.h net/route.h resolv.h
Gregg Mattinson044b5c42002-07-19 03:16:51 +000013580do
13581as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13582echo "$as_me:$LINENO: checking for $ac_header" >&5
13583echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13584if eval "test \"\${$as_ac_Header+set}\" = set"; then
13585 echo $ECHO_N "(cached) $ECHO_C" >&6
13586else
13587 cat >conftest.$ac_ext <<_ACEOF
13588#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013589/* confdefs.h. */
13590_ACEOF
13591cat confdefs.h >>conftest.$ac_ext
13592cat >>conftest.$ac_ext <<_ACEOF
13593/* end confdefs.h. */
Patrik Stridvall63ae7fe2002-11-08 19:34:52 +000013594#include <sys/types.h>
Gerald Pfeifer87c369d2002-07-23 02:02:02 +000013595 #if HAVE_SYS_SOCKET_H
Gregg Mattinson044b5c42002-07-19 03:16:51 +000013596 # include <sys/socket.h>
13597 #endif
13598
13599#include <$ac_header>
13600_ACEOF
13601rm -f conftest.$ac_objext
13602if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13603 (eval $ac_compile) 2>&5
13604 ac_status=$?
13605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13606 (exit $ac_status); } &&
13607 { ac_try='test -s conftest.$ac_objext'
13608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13609 (eval $ac_try) 2>&5
13610 ac_status=$?
13611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13612 (exit $ac_status); }; }; then
13613 eval "$as_ac_Header=yes"
13614else
13615 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013616sed 's/^/| /' conftest.$ac_ext >&5
13617
Gregg Mattinson044b5c42002-07-19 03:16:51 +000013618eval "$as_ac_Header=no"
13619fi
13620rm -f conftest.$ac_objext conftest.$ac_ext
13621fi
13622echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13623echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13624if test `eval echo '${'$as_ac_Header'}'` = yes; then
13625 cat >>confdefs.h <<_ACEOF
13626#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13627_ACEOF
13628
13629fi
13630
13631done
13632
13633
13634
13635for ac_header in netinet/ip.h
13636do
13637as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13638echo "$as_me:$LINENO: checking for $ac_header" >&5
13639echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13640if eval "test \"\${$as_ac_Header+set}\" = set"; then
13641 echo $ECHO_N "(cached) $ECHO_C" >&6
13642else
13643 cat >conftest.$ac_ext <<_ACEOF
13644#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013645/* confdefs.h. */
13646_ACEOF
13647cat confdefs.h >>conftest.$ac_ext
13648cat >>conftest.$ac_ext <<_ACEOF
13649/* end confdefs.h. */
Patrik Stridvall63ae7fe2002-11-08 19:34:52 +000013650#include <sys/types.h>
13651 #if HAVE_SYS_SOCKET_H
Gregg Mattinson044b5c42002-07-19 03:16:51 +000013652 # include <sys/socket.h>
13653 #endif
13654 #if HAVE_NETINET_IN_SYSTM_H
13655 # include <netinet/in_systm.h>
13656 #endif
13657
13658#include <$ac_header>
13659_ACEOF
13660rm -f conftest.$ac_objext
13661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13662 (eval $ac_compile) 2>&5
13663 ac_status=$?
13664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13665 (exit $ac_status); } &&
13666 { ac_try='test -s conftest.$ac_objext'
13667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13668 (eval $ac_try) 2>&5
13669 ac_status=$?
13670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13671 (exit $ac_status); }; }; then
13672 eval "$as_ac_Header=yes"
13673else
13674 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013675sed 's/^/| /' conftest.$ac_ext >&5
13676
Gregg Mattinson044b5c42002-07-19 03:16:51 +000013677eval "$as_ac_Header=no"
13678fi
13679rm -f conftest.$ac_objext conftest.$ac_ext
13680fi
13681echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13682echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13683if test `eval echo '${'$as_ac_Header'}'` = yes; then
13684 cat >>confdefs.h <<_ACEOF
13685#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13686_ACEOF
13687
13688fi
13689
13690done
13691
13692
13693
Gerald Pfeiferd2033a52002-11-12 23:21:55 +000013694for ac_header in ucontext.h
13695do
13696as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13697echo "$as_me:$LINENO: checking for $ac_header" >&5
13698echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13699if eval "test \"\${$as_ac_Header+set}\" = set"; then
13700 echo $ECHO_N "(cached) $ECHO_C" >&6
13701else
13702 cat >conftest.$ac_ext <<_ACEOF
13703#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013704/* confdefs.h. */
13705_ACEOF
13706cat confdefs.h >>conftest.$ac_ext
13707cat >>conftest.$ac_ext <<_ACEOF
13708/* end confdefs.h. */
Gerald Pfeiferd2033a52002-11-12 23:21:55 +000013709#include <signal.h>
13710
13711#include <$ac_header>
13712_ACEOF
13713rm -f conftest.$ac_objext
13714if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13715 (eval $ac_compile) 2>&5
13716 ac_status=$?
13717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718 (exit $ac_status); } &&
13719 { ac_try='test -s conftest.$ac_objext'
13720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13721 (eval $ac_try) 2>&5
13722 ac_status=$?
13723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724 (exit $ac_status); }; }; then
13725 eval "$as_ac_Header=yes"
13726else
13727 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013728sed 's/^/| /' conftest.$ac_ext >&5
13729
Gerald Pfeiferd2033a52002-11-12 23:21:55 +000013730eval "$as_ac_Header=no"
13731fi
13732rm -f conftest.$ac_objext conftest.$ac_ext
13733fi
13734echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13735echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13736if test `eval echo '${'$as_ac_Header'}'` = yes; then
13737 cat >>confdefs.h <<_ACEOF
13738#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13739_ACEOF
13740
13741fi
13742
13743done
13744
13745
13746
Alexandre Julliardb38b4c22003-01-21 00:36:46 +000013747echo "$as_me:$LINENO: checking for GNU style IPX support" >&5
13748echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6
13749if test "${ac_cv_c_ipx_gnu+set}" = set; then
13750 echo $ECHO_N "(cached) $ECHO_C" >&6
13751else
13752 cat >conftest.$ac_ext <<_ACEOF
13753#line $LINENO "configure"
13754/* confdefs.h. */
13755_ACEOF
13756cat confdefs.h >>conftest.$ac_ext
13757cat >>conftest.$ac_ext <<_ACEOF
13758/* end confdefs.h. */
13759#include <sys/types.h>
13760 #ifdef HAVE_SYS_SOCKET_H
13761 # include <sys/socket.h>
13762 #endif
13763 #include <netipx/ipx.h>
13764int
13765main ()
13766{
13767((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
13768 ;
13769 return 0;
13770}
13771_ACEOF
13772rm -f conftest.$ac_objext
13773if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13774 (eval $ac_compile) 2>&5
13775 ac_status=$?
13776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13777 (exit $ac_status); } &&
13778 { ac_try='test -s conftest.$ac_objext'
13779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13780 (eval $ac_try) 2>&5
13781 ac_status=$?
13782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13783 (exit $ac_status); }; }; then
13784 ac_cv_c_ipx_gnu="yes"
13785else
13786 echo "$as_me: failed program was:" >&5
13787sed 's/^/| /' conftest.$ac_ext >&5
13788
13789ac_cv_c_ipx_gnu="no"
13790fi
13791rm -f conftest.$ac_objext conftest.$ac_ext
13792
13793fi
13794echo "$as_me:$LINENO: result: $ac_cv_c_ipx_gnu" >&5
13795echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6
13796if test "$ac_cv_c_ipx_gnu" = "yes"
13797then
13798
13799cat >>confdefs.h <<\_ACEOF
13800#define HAVE_IPX_GNU 1
13801_ACEOF
13802
13803fi
13804
13805if test "$ac_cv_c_ipx_gnu" = "no"
13806then
13807 echo "$as_me:$LINENO: checking for linux style IPX support" >&5
13808echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6
13809if test "${ac_cv_c_ipx_linux+set}" = set; then
13810 echo $ECHO_N "(cached) $ECHO_C" >&6
13811else
13812 cat >conftest.$ac_ext <<_ACEOF
13813#line $LINENO "configure"
13814/* confdefs.h. */
13815_ACEOF
13816cat confdefs.h >>conftest.$ac_ext
13817cat >>conftest.$ac_ext <<_ACEOF
13818/* end confdefs.h. */
13819#include <sys/types.h>
13820 #ifdef HAVE_SYS_SOCKET_H
13821 # include <sys/socket.h>
13822 #endif
13823 #include <asm/types.h>
13824 #include <linux/ipx.h>
13825int
13826main ()
13827{
13828((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
13829 ;
13830 return 0;
13831}
13832_ACEOF
13833rm -f conftest.$ac_objext
13834if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13835 (eval $ac_compile) 2>&5
13836 ac_status=$?
13837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13838 (exit $ac_status); } &&
13839 { ac_try='test -s conftest.$ac_objext'
13840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13841 (eval $ac_try) 2>&5
13842 ac_status=$?
13843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13844 (exit $ac_status); }; }; then
13845 ac_cv_c_ipx_linux="yes"
13846else
13847 echo "$as_me: failed program was:" >&5
13848sed 's/^/| /' conftest.$ac_ext >&5
13849
13850ac_cv_c_ipx_linux="no"
13851fi
13852rm -f conftest.$ac_objext conftest.$ac_ext
13853
13854fi
13855echo "$as_me:$LINENO: result: $ac_cv_c_ipx_linux" >&5
13856echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6
13857 if test "$ac_cv_c_ipx_linux" = "yes"
13858 then
13859
13860cat >>confdefs.h <<\_ACEOF
13861#define HAVE_IPX_LINUX 1
13862_ACEOF
13863
13864 fi
13865fi
13866
13867
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013868echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013869echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13870if test "${ac_cv_c_const+set}" = set; then
13871 echo $ECHO_N "(cached) $ECHO_C" >&6
13872else
13873 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013874#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013875/* confdefs.h. */
13876_ACEOF
13877cat confdefs.h >>conftest.$ac_ext
13878cat >>conftest.$ac_ext <<_ACEOF
13879/* end confdefs.h. */
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013880
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013881int
13882main ()
13883{
13884/* FIXME: Include the comments suggested by Paul. */
13885#ifndef __cplusplus
13886 /* Ultrix mips cc rejects this. */
13887 typedef int charset[2];
13888 const charset x;
13889 /* SunOS 4.1.1 cc rejects this. */
13890 char const *const *ccp;
13891 char **p;
13892 /* NEC SVR4.0.2 mips cc rejects this. */
13893 struct point {int x, y;};
13894 static struct point const zero = {0,0};
13895 /* AIX XL C 1.02.0.0 rejects this.
13896 It does not let you subtract one const X* pointer from another in
13897 an arm of an if-expression whose if-part is not a constant
13898 expression */
13899 const char *g = "string";
13900 ccp = &g + (g ? g-g : 0);
13901 /* HPUX 7.0 cc rejects these. */
13902 ++ccp;
13903 p = (char**) ccp;
13904 ccp = (char const *const *) p;
13905 { /* SCO 3.2v4 cc rejects this. */
13906 char *t;
13907 char const *s = 0 ? (char *) 0 : (char const *) 0;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013908
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013909 *t++ = 0;
13910 }
13911 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13912 int x[] = {25, 17};
13913 const int *foo = &x[0];
13914 ++foo;
13915 }
13916 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13917 typedef const int *iptr;
13918 iptr p = 0;
13919 ++p;
13920 }
13921 { /* AIX XL C 1.02.0.0 rejects this saying
13922 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13923 struct s { int j; const int *ap[3]; };
13924 struct s *b; b->j = 5;
13925 }
13926 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13927 const int foo = 10;
13928 }
13929#endif
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013930
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013931 ;
13932 return 0;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013933}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013934_ACEOF
13935rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013936if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013937 (eval $ac_compile) 2>&5
13938 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013940 (exit $ac_status); } &&
13941 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013943 (eval $ac_try) 2>&5
13944 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013946 (exit $ac_status); }; }; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013947 ac_cv_c_const=yes
13948else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013949 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013950sed 's/^/| /' conftest.$ac_ext >&5
13951
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013952ac_cv_c_const=no
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013953fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013954rm -f conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013955fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013956echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013957echo "${ECHO_T}$ac_cv_c_const" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013958if test $ac_cv_c_const = no; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013959
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013960cat >>confdefs.h <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013961#define const
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013962_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013963
13964fi
13965
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013966echo "$as_me:$LINENO: checking for inline" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013967echo $ECHO_N "checking for inline... $ECHO_C" >&6
13968if test "${ac_cv_c_inline+set}" = set; then
13969 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000013970else
13971 ac_cv_c_inline=no
13972for ac_kw in inline __inline__ __inline; do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013973 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013974#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013975/* confdefs.h. */
13976_ACEOF
13977cat confdefs.h >>conftest.$ac_ext
13978cat >>conftest.$ac_ext <<_ACEOF
13979/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013980#ifndef __cplusplus
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013981typedef int foo_t;
13982static $ac_kw foo_t static_foo () {return 0; }
13983$ac_kw foo_t foo () {return 0; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013984#endif
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000013985
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013986_ACEOF
13987rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013988if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013989 (eval $ac_compile) 2>&5
13990 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013992 (exit $ac_status); } &&
13993 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013995 (eval $ac_try) 2>&5
13996 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013998 (exit $ac_status); }; }; then
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000013999 ac_cv_c_inline=$ac_kw; break
14000else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014001 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014002sed 's/^/| /' conftest.$ac_ext >&5
14003
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000014004fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014005rm -f conftest.$ac_objext conftest.$ac_ext
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000014006done
14007
14008fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014009echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014010echo "${ECHO_T}$ac_cv_c_inline" >&6
14011case $ac_cv_c_inline in
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000014012 inline | yes) ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014013 no)
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014014cat >>confdefs.h <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014015#define inline
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014016_ACEOF
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000014017 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014018 *) cat >>confdefs.h <<_ACEOF
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000014019#define inline $ac_cv_c_inline
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014020_ACEOF
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000014021 ;;
14022esac
14023
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014024echo "$as_me:$LINENO: checking for mode_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014025echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
14026if test "${ac_cv_type_mode_t+set}" = set; then
14027 echo $ECHO_N "(cached) $ECHO_C" >&6
14028else
14029 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014030#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014031/* confdefs.h. */
14032_ACEOF
14033cat confdefs.h >>conftest.$ac_ext
14034cat >>conftest.$ac_ext <<_ACEOF
14035/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014036$ac_includes_default
14037int
14038main ()
14039{
14040if ((mode_t *) 0)
14041 return 0;
14042if (sizeof (mode_t))
14043 return 0;
14044 ;
14045 return 0;
14046}
14047_ACEOF
14048rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014049if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014050 (eval $ac_compile) 2>&5
14051 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014053 (exit $ac_status); } &&
14054 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014056 (eval $ac_try) 2>&5
14057 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014059 (exit $ac_status); }; }; then
14060 ac_cv_type_mode_t=yes
14061else
14062 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014063sed 's/^/| /' conftest.$ac_ext >&5
14064
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014065ac_cv_type_mode_t=no
14066fi
14067rm -f conftest.$ac_objext conftest.$ac_ext
14068fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014069echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014070echo "${ECHO_T}$ac_cv_type_mode_t" >&6
14071if test $ac_cv_type_mode_t = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014072
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014073cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000014074#define HAVE_MODE_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014075_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014076
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014077
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000014078fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014079echo "$as_me:$LINENO: checking for off_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014080echo $ECHO_N "checking for off_t... $ECHO_C" >&6
14081if test "${ac_cv_type_off_t+set}" = set; then
14082 echo $ECHO_N "(cached) $ECHO_C" >&6
14083else
14084 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014085#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014086/* confdefs.h. */
14087_ACEOF
14088cat confdefs.h >>conftest.$ac_ext
14089cat >>conftest.$ac_ext <<_ACEOF
14090/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014091$ac_includes_default
14092int
14093main ()
14094{
14095if ((off_t *) 0)
14096 return 0;
14097if (sizeof (off_t))
14098 return 0;
14099 ;
14100 return 0;
14101}
14102_ACEOF
14103rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014104if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014105 (eval $ac_compile) 2>&5
14106 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014108 (exit $ac_status); } &&
14109 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014111 (eval $ac_try) 2>&5
14112 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014114 (exit $ac_status); }; }; then
14115 ac_cv_type_off_t=yes
14116else
14117 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014118sed 's/^/| /' conftest.$ac_ext >&5
14119
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014120ac_cv_type_off_t=no
14121fi
14122rm -f conftest.$ac_objext conftest.$ac_ext
14123fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014124echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014125echo "${ECHO_T}$ac_cv_type_off_t" >&6
14126if test $ac_cv_type_off_t = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014127
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014128cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000014129#define HAVE_OFF_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014130_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014131
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014132
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000014133fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014134echo "$as_me:$LINENO: checking for pid_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014135echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
14136if test "${ac_cv_type_pid_t+set}" = set; then
14137 echo $ECHO_N "(cached) $ECHO_C" >&6
14138else
14139 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014140#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014141/* confdefs.h. */
14142_ACEOF
14143cat confdefs.h >>conftest.$ac_ext
14144cat >>conftest.$ac_ext <<_ACEOF
14145/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014146$ac_includes_default
14147int
14148main ()
14149{
14150if ((pid_t *) 0)
14151 return 0;
14152if (sizeof (pid_t))
14153 return 0;
14154 ;
14155 return 0;
14156}
14157_ACEOF
14158rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014159if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014160 (eval $ac_compile) 2>&5
14161 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014163 (exit $ac_status); } &&
14164 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014166 (eval $ac_try) 2>&5
14167 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014169 (exit $ac_status); }; }; then
14170 ac_cv_type_pid_t=yes
14171else
14172 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014173sed 's/^/| /' conftest.$ac_ext >&5
14174
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014175ac_cv_type_pid_t=no
14176fi
14177rm -f conftest.$ac_objext conftest.$ac_ext
14178fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014179echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014180echo "${ECHO_T}$ac_cv_type_pid_t" >&6
14181if test $ac_cv_type_pid_t = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014182
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014183cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000014184#define HAVE_PID_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014185_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014186
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014187
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000014188fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014189echo "$as_me:$LINENO: checking for size_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014190echo $ECHO_N "checking for size_t... $ECHO_C" >&6
14191if test "${ac_cv_type_size_t+set}" = set; then
14192 echo $ECHO_N "(cached) $ECHO_C" >&6
14193else
14194 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014195#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014196/* confdefs.h. */
14197_ACEOF
14198cat confdefs.h >>conftest.$ac_ext
14199cat >>conftest.$ac_ext <<_ACEOF
14200/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014201$ac_includes_default
14202int
14203main ()
14204{
14205if ((size_t *) 0)
14206 return 0;
14207if (sizeof (size_t))
14208 return 0;
14209 ;
14210 return 0;
14211}
14212_ACEOF
14213rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014214if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014215 (eval $ac_compile) 2>&5
14216 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014218 (exit $ac_status); } &&
14219 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014221 (eval $ac_try) 2>&5
14222 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014224 (exit $ac_status); }; }; then
14225 ac_cv_type_size_t=yes
14226else
14227 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014228sed 's/^/| /' conftest.$ac_ext >&5
14229
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014230ac_cv_type_size_t=no
14231fi
14232rm -f conftest.$ac_objext conftest.$ac_ext
14233fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014234echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014235echo "${ECHO_T}$ac_cv_type_size_t" >&6
14236if test $ac_cv_type_size_t = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014237
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014238cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000014239#define HAVE_SIZE_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014240_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014241
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000014242
14243fi
14244echo "$as_me:$LINENO: checking for ssize_t" >&5
14245echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
14246if test "${ac_cv_type_ssize_t+set}" = set; then
14247 echo $ECHO_N "(cached) $ECHO_C" >&6
14248else
14249 cat >conftest.$ac_ext <<_ACEOF
14250#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014251/* confdefs.h. */
14252_ACEOF
14253cat confdefs.h >>conftest.$ac_ext
14254cat >>conftest.$ac_ext <<_ACEOF
14255/* end confdefs.h. */
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000014256$ac_includes_default
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000014257int
14258main ()
14259{
14260if ((ssize_t *) 0)
14261 return 0;
14262if (sizeof (ssize_t))
14263 return 0;
14264 ;
14265 return 0;
14266}
14267_ACEOF
14268rm -f conftest.$ac_objext
14269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14270 (eval $ac_compile) 2>&5
14271 ac_status=$?
14272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14273 (exit $ac_status); } &&
14274 { ac_try='test -s conftest.$ac_objext'
14275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14276 (eval $ac_try) 2>&5
14277 ac_status=$?
14278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279 (exit $ac_status); }; }; then
14280 ac_cv_type_ssize_t=yes
14281else
14282 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014283sed 's/^/| /' conftest.$ac_ext >&5
14284
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000014285ac_cv_type_ssize_t=no
14286fi
14287rm -f conftest.$ac_objext conftest.$ac_ext
14288fi
14289echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
14290echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
14291if test $ac_cv_type_ssize_t = yes; then
14292
14293cat >>confdefs.h <<_ACEOF
14294#define HAVE_SSIZE_T 1
14295_ACEOF
14296
14297
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014298fi
14299
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014300echo "$as_me:$LINENO: checking for long long" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014301echo $ECHO_N "checking for long long... $ECHO_C" >&6
14302if test "${ac_cv_type_long_long+set}" = set; then
14303 echo $ECHO_N "(cached) $ECHO_C" >&6
14304else
14305 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014306#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014307/* confdefs.h. */
14308_ACEOF
14309cat confdefs.h >>conftest.$ac_ext
14310cat >>conftest.$ac_ext <<_ACEOF
14311/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014312$ac_includes_default
14313int
14314main ()
14315{
14316if ((long long *) 0)
14317 return 0;
14318if (sizeof (long long))
14319 return 0;
14320 ;
14321 return 0;
14322}
14323_ACEOF
14324rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014325if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014326 (eval $ac_compile) 2>&5
14327 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014329 (exit $ac_status); } &&
14330 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014332 (eval $ac_try) 2>&5
14333 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014335 (exit $ac_status); }; }; then
14336 ac_cv_type_long_long=yes
14337else
14338 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014339sed 's/^/| /' conftest.$ac_ext >&5
14340
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014341ac_cv_type_long_long=no
14342fi
14343rm -f conftest.$ac_objext conftest.$ac_ext
14344fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014345echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014346echo "${ECHO_T}$ac_cv_type_long_long" >&6
14347
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014348echo "$as_me:$LINENO: checking size of long long" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014349echo $ECHO_N "checking size of long long... $ECHO_C" >&6
14350if test "${ac_cv_sizeof_long_long+set}" = set; then
14351 echo $ECHO_N "(cached) $ECHO_C" >&6
14352else
14353 if test "$ac_cv_type_long_long" = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014354 # The cast to unsigned long works around a bug in the HP C Compiler
14355 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14356 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14357 # This bug is HP SR number 8606223364.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014358 if test "$cross_compiling" = yes; then
14359 # Depending upon the size, compute the lo and hi bounds.
14360cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014361#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014362/* confdefs.h. */
14363_ACEOF
14364cat confdefs.h >>conftest.$ac_ext
14365cat >>conftest.$ac_ext <<_ACEOF
14366/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014367$ac_includes_default
14368int
14369main ()
14370{
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014371static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
14372test_array [0] = 0
14373
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014374 ;
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_lo=0 ac_mid=0
14391 while :; do
14392 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014393#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014394/* confdefs.h. */
14395_ACEOF
14396cat confdefs.h >>conftest.$ac_ext
14397cat >>conftest.$ac_ext <<_ACEOF
14398/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014399$ac_includes_default
14400int
14401main ()
14402{
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014403static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
14404test_array [0] = 0
14405
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014406 ;
14407 return 0;
14408}
14409_ACEOF
14410rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014411if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014412 (eval $ac_compile) 2>&5
14413 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014415 (exit $ac_status); } &&
14416 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014418 (eval $ac_try) 2>&5
14419 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014421 (exit $ac_status); }; }; then
14422 ac_hi=$ac_mid; break
14423else
14424 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014425sed 's/^/| /' conftest.$ac_ext >&5
14426
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014427ac_lo=`expr $ac_mid + 1`
14428 if test $ac_lo -le $ac_mid; then
14429 ac_lo= ac_hi=
14430 break
14431 fi
14432 ac_mid=`expr 2 '*' $ac_mid + 1`
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014433fi
14434rm -f conftest.$ac_objext conftest.$ac_ext
14435 done
14436else
14437 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014438sed 's/^/| /' conftest.$ac_ext >&5
14439
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014440cat >conftest.$ac_ext <<_ACEOF
14441#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014442/* confdefs.h. */
14443_ACEOF
14444cat confdefs.h >>conftest.$ac_ext
14445cat >>conftest.$ac_ext <<_ACEOF
14446/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014447$ac_includes_default
14448int
14449main ()
14450{
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014451static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
14452test_array [0] = 0
14453
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014454 ;
14455 return 0;
14456}
14457_ACEOF
14458rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014459if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014460 (eval $ac_compile) 2>&5
14461 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014463 (exit $ac_status); } &&
14464 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014466 (eval $ac_try) 2>&5
14467 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14469 (exit $ac_status); }; }; then
14470 ac_hi=-1 ac_mid=-1
14471 while :; do
14472 cat >conftest.$ac_ext <<_ACEOF
14473#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014474/* confdefs.h. */
14475_ACEOF
14476cat confdefs.h >>conftest.$ac_ext
14477cat >>conftest.$ac_ext <<_ACEOF
14478/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014479$ac_includes_default
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014480int
14481main ()
14482{
14483static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
14484test_array [0] = 0
14485
14486 ;
14487 return 0;
14488}
14489_ACEOF
14490rm -f conftest.$ac_objext
14491if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14492 (eval $ac_compile) 2>&5
14493 ac_status=$?
14494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14495 (exit $ac_status); } &&
14496 { ac_try='test -s conftest.$ac_objext'
14497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14498 (eval $ac_try) 2>&5
14499 ac_status=$?
14500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014501 (exit $ac_status); }; }; then
14502 ac_lo=$ac_mid; break
14503else
14504 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014505sed 's/^/| /' conftest.$ac_ext >&5
14506
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014507ac_hi=`expr '(' $ac_mid ')' - 1`
14508 if test $ac_mid -le $ac_hi; then
14509 ac_lo= ac_hi=
14510 break
14511 fi
14512 ac_mid=`expr 2 '*' $ac_mid`
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014513fi
14514rm -f conftest.$ac_objext conftest.$ac_ext
14515 done
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014516else
14517 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014518sed 's/^/| /' conftest.$ac_ext >&5
14519
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014520ac_lo= ac_hi=
14521fi
14522rm -f conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014523fi
14524rm -f conftest.$ac_objext conftest.$ac_ext
14525# Binary search between lo and hi bounds.
14526while test "x$ac_lo" != "x$ac_hi"; do
14527 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14528 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014529#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014530/* confdefs.h. */
14531_ACEOF
14532cat confdefs.h >>conftest.$ac_ext
14533cat >>conftest.$ac_ext <<_ACEOF
14534/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014535$ac_includes_default
14536int
14537main ()
14538{
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014539static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
14540test_array [0] = 0
14541
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014542 ;
14543 return 0;
14544}
14545_ACEOF
14546rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014547if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014548 (eval $ac_compile) 2>&5
14549 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014551 (exit $ac_status); } &&
14552 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014554 (eval $ac_try) 2>&5
14555 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014557 (exit $ac_status); }; }; then
14558 ac_hi=$ac_mid
14559else
14560 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014561sed 's/^/| /' conftest.$ac_ext >&5
14562
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014563ac_lo=`expr '(' $ac_mid ')' + 1`
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014564fi
14565rm -f conftest.$ac_objext conftest.$ac_ext
14566done
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014567case $ac_lo in
14568?*) ac_cv_sizeof_long_long=$ac_lo;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014569'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
14570See \`config.log' for more details." >&5
14571echo "$as_me: error: cannot compute sizeof (long long), 77
14572See \`config.log' for more details." >&2;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014573 { (exit 1); exit 1; }; } ;;
14574esac
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000014575else
14576 if test "$cross_compiling" = yes; then
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014577 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14578See \`config.log' for more details." >&5
14579echo "$as_me: error: cannot run test program while cross compiling
14580See \`config.log' for more details." >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014581 { (exit 1); exit 1; }; }
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000014582else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014583 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014584#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014585/* confdefs.h. */
14586_ACEOF
14587cat confdefs.h >>conftest.$ac_ext
14588cat >>conftest.$ac_ext <<_ACEOF
14589/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014590$ac_includes_default
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014591long longval () { return (long) (sizeof (long long)); }
14592unsigned long ulongval () { return (long) (sizeof (long long)); }
14593#include <stdio.h>
14594#include <stdlib.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014595int
14596main ()
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000014597{
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014598
14599 FILE *f = fopen ("conftest.val", "w");
14600 if (! f)
14601 exit (1);
14602 if (((long) (sizeof (long long))) < 0)
14603 {
14604 long i = longval ();
14605 if (i != ((long) (sizeof (long long))))
14606 exit (1);
14607 fprintf (f, "%ld\n", i);
14608 }
14609 else
14610 {
14611 unsigned long i = ulongval ();
14612 if (i != ((long) (sizeof (long long))))
14613 exit (1);
14614 fprintf (f, "%lu\n", i);
14615 }
14616 exit (ferror (f) || fclose (f) != 0);
14617
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014618 ;
14619 return 0;
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000014620}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014621_ACEOF
14622rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014623if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014624 (eval $ac_link) 2>&5
14625 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014627 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014629 (eval $ac_try) 2>&5
14630 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014632 (exit $ac_status); }; }; then
14633 ac_cv_sizeof_long_long=`cat conftest.val`
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000014634else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014635 echo "$as_me: program exited with status $ac_status" >&5
14636echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014637sed 's/^/| /' conftest.$ac_ext >&5
14638
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014639( exit $ac_status )
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014640{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
14641See \`config.log' for more details." >&5
14642echo "$as_me: error: cannot compute sizeof (long long), 77
14643See \`config.log' for more details." >&2;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014644 { (exit 1); exit 1; }; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014645fi
Alexandre Julliard11af04e2002-10-10 03:48:04 +000014646rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014647fi
14648fi
14649rm -f conftest.val
14650else
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000014651 ac_cv_sizeof_long_long=0
14652fi
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000014653fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014654echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014655echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014656cat >>confdefs.h <<_ACEOF
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000014657#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014658_ACEOF
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000014659
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014660
14661
14662echo "$as_me:$LINENO: checking whether linux/input.h is for real" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014663echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6
14664if test "${wine_cv_linux_input_h+set}" = set; then
14665 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000014666else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014667 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014668#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014669/* confdefs.h. */
14670_ACEOF
14671cat confdefs.h >>conftest.$ac_ext
14672cat >>conftest.$ac_ext <<_ACEOF
14673/* end confdefs.h. */
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000014674
14675 #include <linux/input.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014676
14677int
14678main ()
14679{
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000014680
14681 int foo = EVIOCGBIT(EV_ABS,42);
14682 int bar = BTN_PINKIE;
14683 int fortytwo = 42;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014684
14685 ;
14686 return 0;
14687}
14688_ACEOF
14689rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014690if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014691 (eval $ac_compile) 2>&5
14692 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014694 (exit $ac_status); } &&
14695 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014697 (eval $ac_try) 2>&5
14698 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014700 (exit $ac_status); }; }; then
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000014701 wine_cv_linux_input_h=yes
14702else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014703 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014704sed 's/^/| /' conftest.$ac_ext >&5
14705
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014706wine_cv_linux_input_h=no
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000014707fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014708rm -f conftest.$ac_objext conftest.$ac_ext
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000014709
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014710fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014711echo "$as_me:$LINENO: result: $wine_cv_linux_input_h" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014712echo "${ECHO_T}$wine_cv_linux_input_h" >&6
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000014713 if test "$wine_cv_linux_input_h" = "yes"
14714 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014715
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014716cat >>confdefs.h <<\_ACEOF
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000014717#define HAVE_CORRECT_LINUXINPUT_H 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014718_ACEOF
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000014719
14720 fi
14721
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014722
14723echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014724echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6
14725if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
14726 echo $ECHO_N "(cached) $ECHO_C" >&6
Rein Klazesff7a61f2000-09-24 19:41:57 +000014727else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014728 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014729#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014730/* confdefs.h. */
14731_ACEOF
14732cat confdefs.h >>conftest.$ac_ext
14733cat >>conftest.$ac_ext <<_ACEOF
14734/* end confdefs.h. */
Rein Klazesff7a61f2000-09-24 19:41:57 +000014735
14736#include <netdb.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014737
14738int
14739main ()
14740{
Rein Klazesff7a61f2000-09-24 19:41:57 +000014741
14742 char *name=NULL;
14743 struct hostent he;
14744 struct hostent *result;
14745 char *buf=NULL;
14746 int bufsize=0;
14747 int res,errnr;
14748 char *addr=NULL;
14749 int addrlen=0;
14750 int addrtype=0;
14751 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
14752 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014753
14754 ;
14755 return 0;
14756}
14757_ACEOF
14758rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014760 (eval $ac_compile) 2>&5
14761 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014763 (exit $ac_status); } &&
14764 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014766 (eval $ac_try) 2>&5
14767 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014769 (exit $ac_status); }; }; then
Rein Klazesff7a61f2000-09-24 19:41:57 +000014770 wine_cv_linux_gethostbyname_r_6=yes
14771else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014772 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014773sed 's/^/| /' conftest.$ac_ext >&5
14774
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014775wine_cv_linux_gethostbyname_r_6=no
Rein Klazesff7a61f2000-09-24 19:41:57 +000014776
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014777fi
14778rm -f conftest.$ac_objext conftest.$ac_ext
14779
14780fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014781echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014782echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6
Rein Klazesff7a61f2000-09-24 19:41:57 +000014783 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
14784 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014785
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014786cat >>confdefs.h <<\_ACEOF
Rein Klazesff7a61f2000-09-24 19:41:57 +000014787#define HAVE_LINUX_GETHOSTBYNAME_R_6 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014788_ACEOF
Rein Klazesff7a61f2000-09-24 19:41:57 +000014789
14790 fi
14791
Marcus Meissner028e9a11999-08-04 15:07:56 +000014792if test "$ac_cv_header_linux_joystick_h" = "yes"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000014793then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014794 echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014795echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6
14796if test "${wine_cv_linux_joystick_22_api+set}" = set; then
14797 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000014798else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014799 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014800#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014801/* confdefs.h. */
14802_ACEOF
14803cat confdefs.h >>conftest.$ac_ext
14804cat >>conftest.$ac_ext <<_ACEOF
14805/* end confdefs.h. */
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000014806
Marcus Meissner028e9a11999-08-04 15:07:56 +000014807 #include <sys/ioctl.h>
14808 #include <linux/joystick.h>
14809
14810 struct js_event blub;
Marcus Meissner605a9c31999-11-04 02:04:01 +000014811 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
14812 #error "no 2.2 header"
14813 #endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014814
14815int
14816main ()
14817{
Marcus Meissner028e9a11999-08-04 15:07:56 +000014818/*empty*/
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014819 ;
14820 return 0;
14821}
14822_ACEOF
14823rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014824if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014825 (eval $ac_compile) 2>&5
14826 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014828 (exit $ac_status); } &&
14829 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014831 (eval $ac_try) 2>&5
14832 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014834 (exit $ac_status); }; }; then
Marcus Meissner028e9a11999-08-04 15:07:56 +000014835 wine_cv_linux_joystick_22_api=yes
14836else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014837 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014838sed 's/^/| /' conftest.$ac_ext >&5
14839
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014840wine_cv_linux_joystick_22_api=no
Marcus Meissner028e9a11999-08-04 15:07:56 +000014841fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014842rm -f conftest.$ac_objext conftest.$ac_ext
Marcus Meissner028e9a11999-08-04 15:07:56 +000014843
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014844fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014845echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014846echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6
Rein Klazes87d224a2000-04-24 17:33:49 +000014847 if test "$wine_cv_linux_joystick_22_api" = "yes"
Marcus Meissner028e9a11999-08-04 15:07:56 +000014848 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014849
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014850cat >>confdefs.h <<\_ACEOF
Marcus Meissner028e9a11999-08-04 15:07:56 +000014851#define HAVE_LINUX_22_JOYSTICK_API 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014852_ACEOF
Marcus Meissner028e9a11999-08-04 15:07:56 +000014853
14854 fi
14855fi
14856
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014857
Marcus Meissner028e9a11999-08-04 15:07:56 +000014858if test "$ac_cv_header_sys_vfs_h" = "yes"
14859then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014860 echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014861echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6
14862if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then
14863 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner028e9a11999-08-04 15:07:56 +000014864else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014865 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014866#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014867/* confdefs.h. */
14868_ACEOF
14869cat confdefs.h >>conftest.$ac_ext
14870cat >>conftest.$ac_ext <<_ACEOF
14871/* end confdefs.h. */
Marcus Meissner028e9a11999-08-04 15:07:56 +000014872
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000014873 #include <sys/types.h>
14874 #ifdef HAVE_SYS_PARAM_H
14875 # include <sys/param.h>
14876 #endif
14877 #include <sys/vfs.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014878
14879int
14880main ()
14881{
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000014882
14883 struct statfs stfs;
14884
14885 memset(&stfs,0,sizeof(stfs));
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014886
14887 ;
14888 return 0;
14889}
14890_ACEOF
14891rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014892if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014893 (eval $ac_compile) 2>&5
14894 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014896 (exit $ac_status); } &&
14897 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014899 (eval $ac_try) 2>&5
14900 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014902 (exit $ac_status); }; }; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000014903 wine_cv_sys_vfs_has_statfs=yes
14904else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014905 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014906sed 's/^/| /' conftest.$ac_ext >&5
14907
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014908wine_cv_sys_vfs_has_statfs=no
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000014909
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014910fi
14911rm -f conftest.$ac_objext conftest.$ac_ext
14912
14913fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014914echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014915echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000014916 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
14917 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014918
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014919cat >>confdefs.h <<\_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000014920#define STATFS_DEFINED_BY_SYS_VFS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014921_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000014922
14923 fi
14924fi
14925
14926if test "$ac_cv_header_sys_statfs_h" = "yes"
14927then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014928 echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014929echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6
14930if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then
14931 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000014932else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014933 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014934#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014935/* confdefs.h. */
14936_ACEOF
14937cat confdefs.h >>conftest.$ac_ext
14938cat >>conftest.$ac_ext <<_ACEOF
14939/* end confdefs.h. */
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000014940
14941 #include <sys/types.h>
14942 #ifdef HAVE_SYS_PARAM_H
14943 # include <sys/param.h>
14944 #endif
14945 #include <sys/statfs.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014946
14947int
14948main ()
14949{
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000014950
14951 struct statfs stfs;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014952
14953 ;
14954 return 0;
14955}
14956_ACEOF
14957rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014958if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014959 (eval $ac_compile) 2>&5
14960 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014962 (exit $ac_status); } &&
14963 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014965 (eval $ac_try) 2>&5
14966 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014968 (exit $ac_status); }; }; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000014969 wine_cv_sys_statfs_has_statfs=yes
14970else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014971 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014972sed 's/^/| /' conftest.$ac_ext >&5
14973
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014974wine_cv_sys_statfs_has_statfs=no
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000014975
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014976fi
14977rm -f conftest.$ac_objext conftest.$ac_ext
14978
14979fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014980echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014981echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000014982 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
14983 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014984
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014985cat >>confdefs.h <<\_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000014986#define STATFS_DEFINED_BY_SYS_STATFS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014987_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000014988
14989 fi
14990fi
14991
14992if test "$ac_cv_header_sys_mount_h" = "yes"
14993then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014994 echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014995echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6
14996if test "${wine_cv_sys_mount_has_statfs+set}" = set; then
14997 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000014998else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014999 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015000#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015001/* confdefs.h. */
15002_ACEOF
15003cat confdefs.h >>conftest.$ac_ext
15004cat >>conftest.$ac_ext <<_ACEOF
15005/* end confdefs.h. */
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000015006
15007 #include <sys/types.h>
15008 #ifdef HAVE_SYS_PARAM_H
15009 # include <sys/param.h>
15010 #endif
15011 #include <sys/mount.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015012
15013int
15014main ()
15015{
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000015016
15017 struct statfs stfs;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015018
15019 ;
15020 return 0;
15021}
15022_ACEOF
15023rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015024if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015025 (eval $ac_compile) 2>&5
15026 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015028 (exit $ac_status); } &&
15029 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015031 (eval $ac_try) 2>&5
15032 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015034 (exit $ac_status); }; }; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000015035 wine_cv_sys_mount_has_statfs=yes
15036else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015037 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015038sed 's/^/| /' conftest.$ac_ext >&5
15039
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015040wine_cv_sys_mount_has_statfs=no
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000015041
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015042fi
15043rm -f conftest.$ac_objext conftest.$ac_ext
15044
15045fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015046echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015047echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000015048 if test "$wine_cv_sys_mount_has_statfs" = "yes"
15049 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015050
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015051cat >>confdefs.h <<\_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000015052#define STATFS_DEFINED_BY_SYS_MOUNT 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015053_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000015054
15055 fi
15056fi
15057
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015058
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000015059echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5
15060echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6
15061if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015062 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000015063else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015064 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015065#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015066/* confdefs.h. */
15067_ACEOF
15068cat confdefs.h >>conftest.$ac_ext
15069cat >>conftest.$ac_ext <<_ACEOF
15070/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015071#include <sys/types.h>
15072#ifdef HAVE_SYS_PARAM_H
15073# include <sys/param.h>
15074#endif
15075#ifdef STATFS_DEFINED_BY_SYS_MOUNT
15076# include <sys/mount.h>
15077#else
15078# ifdef STATFS_DEFINED_BY_SYS_VFS
15079# include <sys/vfs.h>
15080# else
15081# ifdef STATFS_DEFINED_BY_SYS_STATFS
15082# include <sys/statfs.h>
15083# endif
15084# endif
15085#endif
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000015086
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015087int
15088main ()
15089{
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000015090static struct statfs ac_aggr;
15091if (ac_aggr.f_bfree)
15092return 0;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015093 ;
15094 return 0;
15095}
15096_ACEOF
15097rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015099 (eval $ac_compile) 2>&5
15100 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015102 (exit $ac_status); } &&
15103 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015105 (eval $ac_try) 2>&5
15106 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015108 (exit $ac_status); }; }; then
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000015109 ac_cv_member_struct_statfs_f_bfree=yes
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000015110else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015111 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015112sed 's/^/| /' conftest.$ac_ext >&5
15113
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000015114cat >conftest.$ac_ext <<_ACEOF
15115#line $LINENO "configure"
15116/* confdefs.h. */
15117_ACEOF
15118cat confdefs.h >>conftest.$ac_ext
15119cat >>conftest.$ac_ext <<_ACEOF
15120/* end confdefs.h. */
15121#include <sys/types.h>
15122#ifdef HAVE_SYS_PARAM_H
15123# include <sys/param.h>
15124#endif
15125#ifdef STATFS_DEFINED_BY_SYS_MOUNT
15126# include <sys/mount.h>
15127#else
15128# ifdef STATFS_DEFINED_BY_SYS_VFS
15129# include <sys/vfs.h>
15130# else
15131# ifdef STATFS_DEFINED_BY_SYS_STATFS
15132# include <sys/statfs.h>
15133# endif
15134# endif
15135#endif
15136
15137int
15138main ()
15139{
15140static struct statfs ac_aggr;
15141if (sizeof ac_aggr.f_bfree)
15142return 0;
15143 ;
15144 return 0;
15145}
15146_ACEOF
15147rm -f conftest.$ac_objext
15148if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15149 (eval $ac_compile) 2>&5
15150 ac_status=$?
15151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15152 (exit $ac_status); } &&
15153 { ac_try='test -s conftest.$ac_objext'
15154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15155 (eval $ac_try) 2>&5
15156 ac_status=$?
15157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15158 (exit $ac_status); }; }; then
15159 ac_cv_member_struct_statfs_f_bfree=yes
15160else
15161 echo "$as_me: failed program was:" >&5
15162sed 's/^/| /' conftest.$ac_ext >&5
15163
15164ac_cv_member_struct_statfs_f_bfree=no
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000015165fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015166rm -f conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000015167fi
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000015168rm -f conftest.$ac_objext conftest.$ac_ext
15169fi
15170echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5
15171echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6
15172if test $ac_cv_member_struct_statfs_f_bfree = yes; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000015173
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000015174cat >>confdefs.h <<_ACEOF
15175#define HAVE_STRUCT_STATFS_F_BFREE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015176_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000015177
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000015178
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000015179fi
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000015180echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5
15181echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6
15182if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015183 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000015184else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015185 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015186#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015187/* confdefs.h. */
15188_ACEOF
15189cat confdefs.h >>conftest.$ac_ext
15190cat >>conftest.$ac_ext <<_ACEOF
15191/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015192#include <sys/types.h>
15193#ifdef HAVE_SYS_PARAM_H
15194# include <sys/param.h>
15195#endif
15196#ifdef STATFS_DEFINED_BY_SYS_MOUNT
15197# include <sys/mount.h>
15198#else
15199# ifdef STATFS_DEFINED_BY_SYS_VFS
15200# include <sys/vfs.h>
15201# else
15202# ifdef STATFS_DEFINED_BY_SYS_STATFS
15203# include <sys/statfs.h>
15204# endif
15205# endif
15206#endif
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000015207
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015208int
15209main ()
15210{
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000015211static struct statfs ac_aggr;
15212if (ac_aggr.f_bavail)
15213return 0;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015214 ;
15215 return 0;
15216}
15217_ACEOF
15218rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015219if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015220 (eval $ac_compile) 2>&5
15221 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015223 (exit $ac_status); } &&
15224 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015226 (eval $ac_try) 2>&5
15227 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015229 (exit $ac_status); }; }; then
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000015230 ac_cv_member_struct_statfs_f_bavail=yes
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000015231else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015232 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015233sed 's/^/| /' conftest.$ac_ext >&5
15234
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000015235cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015236#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015237/* confdefs.h. */
15238_ACEOF
15239cat confdefs.h >>conftest.$ac_ext
15240cat >>conftest.$ac_ext <<_ACEOF
15241/* end confdefs.h. */
Alexandre Julliard829fe321998-07-26 14:27:39 +000015242#include <sys/types.h>
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000015243#ifdef HAVE_SYS_PARAM_H
15244# include <sys/param.h>
Patrik Stridvall63ae7fe2002-11-08 19:34:52 +000015245#endif
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000015246#ifdef STATFS_DEFINED_BY_SYS_MOUNT
15247# include <sys/mount.h>
15248#else
15249# ifdef STATFS_DEFINED_BY_SYS_VFS
15250# include <sys/vfs.h>
15251# else
15252# ifdef STATFS_DEFINED_BY_SYS_STATFS
15253# include <sys/statfs.h>
15254# endif
15255# endif
15256#endif
15257
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015258int
15259main ()
15260{
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000015261static struct statfs ac_aggr;
15262if (sizeof ac_aggr.f_bavail)
15263return 0;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015264 ;
15265 return 0;
15266}
15267_ACEOF
15268rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015270 (eval $ac_compile) 2>&5
15271 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015273 (exit $ac_status); } &&
15274 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015276 (eval $ac_try) 2>&5
15277 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015279 (exit $ac_status); }; }; then
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000015280 ac_cv_member_struct_statfs_f_bavail=yes
Alexandre Julliard829fe321998-07-26 14:27:39 +000015281else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015282 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015283sed 's/^/| /' conftest.$ac_ext >&5
15284
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000015285ac_cv_member_struct_statfs_f_bavail=no
Alexandre Julliard829fe321998-07-26 14:27:39 +000015286fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015287rm -f conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard829fe321998-07-26 14:27:39 +000015288fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015289rm -f conftest.$ac_objext conftest.$ac_ext
Patrik Stridvall09da9662001-07-08 22:30:50 +000015290fi
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000015291echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5
15292echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6
15293if test $ac_cv_member_struct_statfs_f_bavail = yes; then
Patrik Stridvall09da9662001-07-08 22:30:50 +000015294
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000015295cat >>confdefs.h <<_ACEOF
15296#define HAVE_STRUCT_STATFS_F_BAVAIL 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015297_ACEOF
Patrik Stridvall09da9662001-07-08 22:30:50 +000015298
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000015299
Patrik Stridvall09da9662001-07-08 22:30:50 +000015300fi
15301
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015302
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000015303echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5
15304echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6
15305if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015306 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall09da9662001-07-08 22:30:50 +000015307else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015308 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015309#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015310/* confdefs.h. */
15311_ACEOF
15312cat confdefs.h >>conftest.$ac_ext
15313cat >>conftest.$ac_ext <<_ACEOF
15314/* end confdefs.h. */
Patrik Stridvall09da9662001-07-08 22:30:50 +000015315#include <sys/types.h>
Patrik Stridvall63ae7fe2002-11-08 19:34:52 +000015316#ifdef HAVE_SYS_SOCKET_H
15317# include <sys/socket.h>
15318#endif
15319#ifdef HAVE_SYS_UN_H
15320# include <sys/un.h>
15321#endif
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000015322
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015323int
15324main ()
15325{
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000015326static struct msghdr ac_aggr;
15327if (ac_aggr.msg_accrights)
15328return 0;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015329 ;
15330 return 0;
15331}
15332_ACEOF
15333rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015334if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015335 (eval $ac_compile) 2>&5
15336 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015338 (exit $ac_status); } &&
15339 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015341 (eval $ac_try) 2>&5
15342 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015344 (exit $ac_status); }; }; then
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000015345 ac_cv_member_struct_msghdr_msg_accrights=yes
Juergen Lock2d33ab92000-02-13 16:03:29 +000015346else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015347 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015348sed 's/^/| /' conftest.$ac_ext >&5
15349
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000015350cat >conftest.$ac_ext <<_ACEOF
15351#line $LINENO "configure"
15352/* confdefs.h. */
15353_ACEOF
15354cat confdefs.h >>conftest.$ac_ext
15355cat >>conftest.$ac_ext <<_ACEOF
15356/* end confdefs.h. */
15357#include <sys/types.h>
15358#ifdef HAVE_SYS_SOCKET_H
15359# include <sys/socket.h>
15360#endif
15361#ifdef HAVE_SYS_UN_H
15362# include <sys/un.h>
15363#endif
15364
15365int
15366main ()
15367{
15368static struct msghdr ac_aggr;
15369if (sizeof ac_aggr.msg_accrights)
15370return 0;
15371 ;
15372 return 0;
15373}
15374_ACEOF
15375rm -f conftest.$ac_objext
15376if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15377 (eval $ac_compile) 2>&5
15378 ac_status=$?
15379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15380 (exit $ac_status); } &&
15381 { ac_try='test -s conftest.$ac_objext'
15382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15383 (eval $ac_try) 2>&5
15384 ac_status=$?
15385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15386 (exit $ac_status); }; }; then
15387 ac_cv_member_struct_msghdr_msg_accrights=yes
15388else
15389 echo "$as_me: failed program was:" >&5
15390sed 's/^/| /' conftest.$ac_ext >&5
15391
15392ac_cv_member_struct_msghdr_msg_accrights=no
Juergen Lock2d33ab92000-02-13 16:03:29 +000015393fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015394rm -f conftest.$ac_objext conftest.$ac_ext
Juergen Lock2d33ab92000-02-13 16:03:29 +000015395fi
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000015396rm -f conftest.$ac_objext conftest.$ac_ext
15397fi
15398echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5
15399echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6
15400if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then
Juergen Lock2d33ab92000-02-13 16:03:29 +000015401
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000015402cat >>confdefs.h <<_ACEOF
15403#define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015404_ACEOF
Juergen Lock2d33ab92000-02-13 16:03:29 +000015405
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000015406
15407fi
15408echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
15409echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
15410if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
15411 echo $ECHO_N "(cached) $ECHO_C" >&6
15412else
15413 cat >conftest.$ac_ext <<_ACEOF
15414#line $LINENO "configure"
15415/* confdefs.h. */
15416_ACEOF
15417cat confdefs.h >>conftest.$ac_ext
15418cat >>conftest.$ac_ext <<_ACEOF
15419/* end confdefs.h. */
15420#include <sys/types.h>
15421#ifdef HAVE_SYS_SOCKET_H
15422# include <sys/socket.h>
15423#endif
15424#ifdef HAVE_SYS_UN_H
15425# include <sys/un.h>
15426#endif
15427
15428int
15429main ()
15430{
15431static struct sockaddr ac_aggr;
15432if (ac_aggr.sa_len)
15433return 0;
15434 ;
15435 return 0;
15436}
15437_ACEOF
15438rm -f conftest.$ac_objext
15439if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15440 (eval $ac_compile) 2>&5
15441 ac_status=$?
15442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443 (exit $ac_status); } &&
15444 { ac_try='test -s conftest.$ac_objext'
15445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15446 (eval $ac_try) 2>&5
15447 ac_status=$?
15448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449 (exit $ac_status); }; }; then
15450 ac_cv_member_struct_sockaddr_sa_len=yes
15451else
15452 echo "$as_me: failed program was:" >&5
15453sed 's/^/| /' conftest.$ac_ext >&5
15454
15455cat >conftest.$ac_ext <<_ACEOF
15456#line $LINENO "configure"
15457/* confdefs.h. */
15458_ACEOF
15459cat confdefs.h >>conftest.$ac_ext
15460cat >>conftest.$ac_ext <<_ACEOF
15461/* end confdefs.h. */
15462#include <sys/types.h>
15463#ifdef HAVE_SYS_SOCKET_H
15464# include <sys/socket.h>
15465#endif
15466#ifdef HAVE_SYS_UN_H
15467# include <sys/un.h>
15468#endif
15469
15470int
15471main ()
15472{
15473static struct sockaddr ac_aggr;
15474if (sizeof ac_aggr.sa_len)
15475return 0;
15476 ;
15477 return 0;
15478}
15479_ACEOF
15480rm -f conftest.$ac_objext
15481if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15482 (eval $ac_compile) 2>&5
15483 ac_status=$?
15484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15485 (exit $ac_status); } &&
15486 { ac_try='test -s conftest.$ac_objext'
15487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15488 (eval $ac_try) 2>&5
15489 ac_status=$?
15490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15491 (exit $ac_status); }; }; then
15492 ac_cv_member_struct_sockaddr_sa_len=yes
15493else
15494 echo "$as_me: failed program was:" >&5
15495sed 's/^/| /' conftest.$ac_ext >&5
15496
15497ac_cv_member_struct_sockaddr_sa_len=no
15498fi
15499rm -f conftest.$ac_objext conftest.$ac_ext
15500fi
15501rm -f conftest.$ac_objext conftest.$ac_ext
15502fi
15503echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
15504echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
15505if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
15506
15507cat >>confdefs.h <<_ACEOF
15508#define HAVE_STRUCT_SOCKADDR_SA_LEN 1
15509_ACEOF
15510
15511
15512fi
15513echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5
15514echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6
15515if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then
15516 echo $ECHO_N "(cached) $ECHO_C" >&6
15517else
15518 cat >conftest.$ac_ext <<_ACEOF
15519#line $LINENO "configure"
15520/* confdefs.h. */
15521_ACEOF
15522cat confdefs.h >>conftest.$ac_ext
15523cat >>conftest.$ac_ext <<_ACEOF
15524/* end confdefs.h. */
15525#include <sys/types.h>
15526#ifdef HAVE_SYS_SOCKET_H
15527# include <sys/socket.h>
15528#endif
15529#ifdef HAVE_SYS_UN_H
15530# include <sys/un.h>
15531#endif
15532
15533int
15534main ()
15535{
15536static struct sockaddr_un ac_aggr;
15537if (ac_aggr.sun_len)
15538return 0;
15539 ;
15540 return 0;
15541}
15542_ACEOF
15543rm -f conftest.$ac_objext
15544if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15545 (eval $ac_compile) 2>&5
15546 ac_status=$?
15547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15548 (exit $ac_status); } &&
15549 { ac_try='test -s conftest.$ac_objext'
15550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15551 (eval $ac_try) 2>&5
15552 ac_status=$?
15553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15554 (exit $ac_status); }; }; then
15555 ac_cv_member_struct_sockaddr_un_sun_len=yes
15556else
15557 echo "$as_me: failed program was:" >&5
15558sed 's/^/| /' conftest.$ac_ext >&5
15559
15560cat >conftest.$ac_ext <<_ACEOF
15561#line $LINENO "configure"
15562/* confdefs.h. */
15563_ACEOF
15564cat confdefs.h >>conftest.$ac_ext
15565cat >>conftest.$ac_ext <<_ACEOF
15566/* end confdefs.h. */
15567#include <sys/types.h>
15568#ifdef HAVE_SYS_SOCKET_H
15569# include <sys/socket.h>
15570#endif
15571#ifdef HAVE_SYS_UN_H
15572# include <sys/un.h>
15573#endif
15574
15575int
15576main ()
15577{
15578static struct sockaddr_un ac_aggr;
15579if (sizeof ac_aggr.sun_len)
15580return 0;
15581 ;
15582 return 0;
15583}
15584_ACEOF
15585rm -f conftest.$ac_objext
15586if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15587 (eval $ac_compile) 2>&5
15588 ac_status=$?
15589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590 (exit $ac_status); } &&
15591 { ac_try='test -s conftest.$ac_objext'
15592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15593 (eval $ac_try) 2>&5
15594 ac_status=$?
15595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596 (exit $ac_status); }; }; then
15597 ac_cv_member_struct_sockaddr_un_sun_len=yes
15598else
15599 echo "$as_me: failed program was:" >&5
15600sed 's/^/| /' conftest.$ac_ext >&5
15601
15602ac_cv_member_struct_sockaddr_un_sun_len=no
15603fi
15604rm -f conftest.$ac_objext conftest.$ac_ext
15605fi
15606rm -f conftest.$ac_objext conftest.$ac_ext
15607fi
15608echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5
15609echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6
15610if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then
15611
15612cat >>confdefs.h <<_ACEOF
15613#define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
15614_ACEOF
15615
15616
Juergen Lock2d33ab92000-02-13 16:03:29 +000015617fi
15618
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015619
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000015620echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5
15621echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6
15622if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then
15623 echo $ECHO_N "(cached) $ECHO_C" >&6
15624else
15625 cat >conftest.$ac_ext <<_ACEOF
15626#line $LINENO "configure"
15627/* confdefs.h. */
15628_ACEOF
15629cat confdefs.h >>conftest.$ac_ext
15630cat >>conftest.$ac_ext <<_ACEOF
15631/* end confdefs.h. */
15632#include <signal.h>
15633
15634int
15635main ()
15636{
15637static siginfo_t ac_aggr;
15638if (ac_aggr.si_fd)
15639return 0;
15640 ;
15641 return 0;
15642}
15643_ACEOF
15644rm -f conftest.$ac_objext
15645if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15646 (eval $ac_compile) 2>&5
15647 ac_status=$?
15648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15649 (exit $ac_status); } &&
15650 { ac_try='test -s conftest.$ac_objext'
15651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15652 (eval $ac_try) 2>&5
15653 ac_status=$?
15654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15655 (exit $ac_status); }; }; then
15656 ac_cv_member_siginfo_t_si_fd=yes
15657else
15658 echo "$as_me: failed program was:" >&5
15659sed 's/^/| /' conftest.$ac_ext >&5
15660
15661cat >conftest.$ac_ext <<_ACEOF
15662#line $LINENO "configure"
15663/* confdefs.h. */
15664_ACEOF
15665cat confdefs.h >>conftest.$ac_ext
15666cat >>conftest.$ac_ext <<_ACEOF
15667/* end confdefs.h. */
15668#include <signal.h>
15669
15670int
15671main ()
15672{
15673static siginfo_t ac_aggr;
15674if (sizeof ac_aggr.si_fd)
15675return 0;
15676 ;
15677 return 0;
15678}
15679_ACEOF
15680rm -f conftest.$ac_objext
15681if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15682 (eval $ac_compile) 2>&5
15683 ac_status=$?
15684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15685 (exit $ac_status); } &&
15686 { ac_try='test -s conftest.$ac_objext'
15687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15688 (eval $ac_try) 2>&5
15689 ac_status=$?
15690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15691 (exit $ac_status); }; }; then
15692 ac_cv_member_siginfo_t_si_fd=yes
15693else
15694 echo "$as_me: failed program was:" >&5
15695sed 's/^/| /' conftest.$ac_ext >&5
15696
15697ac_cv_member_siginfo_t_si_fd=no
15698fi
15699rm -f conftest.$ac_objext conftest.$ac_ext
15700fi
15701rm -f conftest.$ac_objext conftest.$ac_ext
15702fi
15703echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5
15704echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6
15705if test $ac_cv_member_siginfo_t_si_fd = yes; then
15706
15707cat >>confdefs.h <<_ACEOF
15708#define HAVE_SIGINFO_T_SI_FD 1
15709_ACEOF
15710
15711
15712fi
15713
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015714
Alexandre Julliarddb89a542003-04-20 02:56:14 +000015715echo "$as_me:$LINENO: checking for struct option.name" >&5
15716echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6
15717if test "${ac_cv_member_struct_option_name+set}" = set; then
15718 echo $ECHO_N "(cached) $ECHO_C" >&6
15719else
15720 cat >conftest.$ac_ext <<_ACEOF
15721#line $LINENO "configure"
15722/* confdefs.h. */
15723_ACEOF
15724cat confdefs.h >>conftest.$ac_ext
15725cat >>conftest.$ac_ext <<_ACEOF
15726/* end confdefs.h. */
15727#ifdef HAVE_GETOPT_H
15728#include <getopt.h>
15729#endif
15730
15731int
15732main ()
15733{
15734static struct option ac_aggr;
15735if (ac_aggr.name)
15736return 0;
15737 ;
15738 return 0;
15739}
15740_ACEOF
15741rm -f conftest.$ac_objext
15742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15743 (eval $ac_compile) 2>&5
15744 ac_status=$?
15745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15746 (exit $ac_status); } &&
15747 { ac_try='test -s conftest.$ac_objext'
15748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15749 (eval $ac_try) 2>&5
15750 ac_status=$?
15751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15752 (exit $ac_status); }; }; then
15753 ac_cv_member_struct_option_name=yes
15754else
15755 echo "$as_me: failed program was:" >&5
15756sed 's/^/| /' conftest.$ac_ext >&5
15757
15758cat >conftest.$ac_ext <<_ACEOF
15759#line $LINENO "configure"
15760/* confdefs.h. */
15761_ACEOF
15762cat confdefs.h >>conftest.$ac_ext
15763cat >>conftest.$ac_ext <<_ACEOF
15764/* end confdefs.h. */
15765#ifdef HAVE_GETOPT_H
15766#include <getopt.h>
15767#endif
15768
15769int
15770main ()
15771{
15772static struct option ac_aggr;
15773if (sizeof ac_aggr.name)
15774return 0;
15775 ;
15776 return 0;
15777}
15778_ACEOF
15779rm -f conftest.$ac_objext
15780if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15781 (eval $ac_compile) 2>&5
15782 ac_status=$?
15783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15784 (exit $ac_status); } &&
15785 { ac_try='test -s conftest.$ac_objext'
15786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15787 (eval $ac_try) 2>&5
15788 ac_status=$?
15789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15790 (exit $ac_status); }; }; then
15791 ac_cv_member_struct_option_name=yes
15792else
15793 echo "$as_me: failed program was:" >&5
15794sed 's/^/| /' conftest.$ac_ext >&5
15795
15796ac_cv_member_struct_option_name=no
15797fi
15798rm -f conftest.$ac_objext conftest.$ac_ext
15799fi
15800rm -f conftest.$ac_objext conftest.$ac_ext
15801fi
15802echo "$as_me:$LINENO: result: $ac_cv_member_struct_option_name" >&5
15803echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6
15804if test $ac_cv_member_struct_option_name = yes; then
15805
15806cat >>confdefs.h <<_ACEOF
15807#define HAVE_STRUCT_OPTION_NAME 1
15808_ACEOF
15809
15810
15811fi
15812
15813
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015814
Alexandre Julliardfc01b722002-05-12 03:16:39 +000015815case $host_cpu in
Alexandre Julliard05783b52002-12-11 00:21:55 +000015816 *i[3456789]86*) echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015817echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6
Alexandre Julliard05783b52002-12-11 00:21:55 +000015818if test "${ac_cv_cpp_def___i386__+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015819 echo $ECHO_N "(cached) $ECHO_C" >&6
Juergen Lock2d33ab92000-02-13 16:03:29 +000015820else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015821 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015822#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015823/* confdefs.h. */
15824_ACEOF
15825cat confdefs.h >>conftest.$ac_ext
15826cat >>conftest.$ac_ext <<_ACEOF
15827/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015828#ifndef __i386__
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000015829yes
15830#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015831_ACEOF
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000015832if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015833 $EGREP "yes" >/dev/null 2>&1; then
Alexandre Julliard05783b52002-12-11 00:21:55 +000015834 ac_cv_cpp_def___i386__=yes
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000015835else
Alexandre Julliard05783b52002-12-11 00:21:55 +000015836 ac_cv_cpp_def___i386__=no
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000015837fi
15838rm -f conftest*
15839
15840fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000015841echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
15842echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6
15843if test $ac_cv_cpp_def___i386__ = yes; then
15844 CFLAGS="$CFLAGS -D__i386__"
15845 LINTFLAGS="$LINTFLAGS -D__i386__"
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000015846fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000015847 ;;
15848 *alpha*) echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
Steven Edwards69b67862002-12-10 22:48:48 +000015849echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6
Alexandre Julliard05783b52002-12-11 00:21:55 +000015850if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
Steven Edwards69b67862002-12-10 22:48:48 +000015851 echo $ECHO_N "(cached) $ECHO_C" >&6
15852else
15853 cat >conftest.$ac_ext <<_ACEOF
15854#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015855/* confdefs.h. */
15856_ACEOF
15857cat confdefs.h >>conftest.$ac_ext
15858cat >>conftest.$ac_ext <<_ACEOF
15859/* end confdefs.h. */
Steven Edwards69b67862002-12-10 22:48:48 +000015860#ifndef __ALPHA__
15861yes
15862#endif
15863_ACEOF
15864if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15865 $EGREP "yes" >/dev/null 2>&1; then
Alexandre Julliard05783b52002-12-11 00:21:55 +000015866 ac_cv_cpp_def___ALPHA__=yes
Steven Edwards69b67862002-12-10 22:48:48 +000015867else
Alexandre Julliard05783b52002-12-11 00:21:55 +000015868 ac_cv_cpp_def___ALPHA__=no
Steven Edwards69b67862002-12-10 22:48:48 +000015869fi
15870rm -f conftest*
15871
15872fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000015873echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
15874echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6
15875if test $ac_cv_cpp_def___ALPHA__ = yes; then
15876 CFLAGS="$CFLAGS -D__ALPHA__"
15877 LINTFLAGS="$LINTFLAGS -D__ALPHA__"
Steven Edwards69b67862002-12-10 22:48:48 +000015878fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000015879 ;;
15880 *sparc*) echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
Gregg Mattinson57807fa2002-07-20 20:17:13 +000015881echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6
Alexandre Julliard05783b52002-12-11 00:21:55 +000015882if test "${ac_cv_cpp_def___sparc__+set}" = set; then
Gregg Mattinson57807fa2002-07-20 20:17:13 +000015883 echo $ECHO_N "(cached) $ECHO_C" >&6
15884else
15885 cat >conftest.$ac_ext <<_ACEOF
15886#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015887/* confdefs.h. */
15888_ACEOF
15889cat confdefs.h >>conftest.$ac_ext
15890cat >>conftest.$ac_ext <<_ACEOF
15891/* end confdefs.h. */
Gregg Mattinson57807fa2002-07-20 20:17:13 +000015892#ifndef __sparc__
15893yes
15894#endif
15895_ACEOF
15896if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015897 $EGREP "yes" >/dev/null 2>&1; then
Alexandre Julliard05783b52002-12-11 00:21:55 +000015898 ac_cv_cpp_def___sparc__=yes
Gregg Mattinson57807fa2002-07-20 20:17:13 +000015899else
Alexandre Julliard05783b52002-12-11 00:21:55 +000015900 ac_cv_cpp_def___sparc__=no
Gregg Mattinson57807fa2002-07-20 20:17:13 +000015901fi
15902rm -f conftest*
15903
15904fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000015905echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
15906echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6
15907if test $ac_cv_cpp_def___sparc__ = yes; then
15908 CFLAGS="$CFLAGS -D__sparc__"
15909 LINTFLAGS="$LINTFLAGS -D__sparc__"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000015910fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000015911 ;;
15912esac
Gregg Mattinson57807fa2002-07-20 20:17:13 +000015913
15914case $host_vendor in
Alexandre Julliard05783b52002-12-11 00:21:55 +000015915 *sun*) echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
Gregg Mattinson57807fa2002-07-20 20:17:13 +000015916echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6
Alexandre Julliard05783b52002-12-11 00:21:55 +000015917if test "${ac_cv_cpp_def___sun__+set}" = set; then
Gregg Mattinson57807fa2002-07-20 20:17:13 +000015918 echo $ECHO_N "(cached) $ECHO_C" >&6
15919else
15920 cat >conftest.$ac_ext <<_ACEOF
15921#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015922/* confdefs.h. */
15923_ACEOF
15924cat confdefs.h >>conftest.$ac_ext
15925cat >>conftest.$ac_ext <<_ACEOF
15926/* end confdefs.h. */
Gregg Mattinson57807fa2002-07-20 20:17:13 +000015927#ifndef __sun__
15928yes
15929#endif
15930_ACEOF
15931if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015932 $EGREP "yes" >/dev/null 2>&1; then
Alexandre Julliard05783b52002-12-11 00:21:55 +000015933 ac_cv_cpp_def___sun__=yes
Gregg Mattinson57807fa2002-07-20 20:17:13 +000015934else
Alexandre Julliard05783b52002-12-11 00:21:55 +000015935 ac_cv_cpp_def___sun__=no
Gregg Mattinson57807fa2002-07-20 20:17:13 +000015936fi
15937rm -f conftest*
15938
15939fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000015940echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
15941echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6
15942if test $ac_cv_cpp_def___sun__ = yes; then
15943 CFLAGS="$CFLAGS -D__sun__"
15944 LINTFLAGS="$LINTFLAGS -D__sun__"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000015945fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000015946 ;;
15947esac
Gregg Mattinson57807fa2002-07-20 20:17:13 +000015948
15949
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015950
15951
15952
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015953 ac_config_commands="$ac_config_commands controls"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000015954
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015955 ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice"
Marcus Meissnera7f5cb51999-04-16 08:47:41 +000015956
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015957 ac_config_commands="$ac_config_commands dlls/ddraw/dclipper"
Marcus Meissnera7f5cb51999-04-16 08:47:41 +000015958
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015959 ac_config_commands="$ac_config_commands dlls/ddraw/ddraw"
Alexandre Julliard829fe321998-07-26 14:27:39 +000015960
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015961 ac_config_commands="$ac_config_commands dlls/ddraw/direct3d"
François Gouget14259412001-11-06 20:57:11 +000015962
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015963 ac_config_commands="$ac_config_commands dlls/ddraw/dpalette"
François Gouget14259412001-11-06 20:57:11 +000015964
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015965 ac_config_commands="$ac_config_commands dlls/ddraw/dsurface"
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000015966
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015967 ac_config_commands="$ac_config_commands dlls/dinput/joystick"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015968
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015969 ac_config_commands="$ac_config_commands dlls/dinput/keyboard"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015970
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015971 ac_config_commands="$ac_config_commands dlls/dinput/mouse"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015972
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015973 ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
Alexandre Julliard89118562002-03-27 21:13:40 +000015974
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015975 ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
Alexandre Julliard89118562002-03-27 21:13:40 +000015976
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015977 ac_config_commands="$ac_config_commands dlls/kernel/messages"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015978
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015979 ac_config_commands="$ac_config_commands dlls/user/dde"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015980
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015981 ac_config_commands="$ac_config_commands dlls/user/resources"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015982
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015983 ac_config_commands="$ac_config_commands dlls/wineps/data"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015984
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015985 ac_config_commands="$ac_config_commands files"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000015986
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015987 ac_config_commands="$ac_config_commands graphics"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000015988
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015989 ac_config_commands="$ac_config_commands graphics/x11drv"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000015990
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015991 ac_config_commands="$ac_config_commands if1632"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000015992
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015993 ac_config_commands="$ac_config_commands include/wine"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015994
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015995 ac_config_commands="$ac_config_commands loader"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000015996
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015997 ac_config_commands="$ac_config_commands loader/ne"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000015998
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015999 ac_config_commands="$ac_config_commands memory"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000016000
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016001 ac_config_commands="$ac_config_commands misc"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000016002
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016003 ac_config_commands="$ac_config_commands msdos"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000016004
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016005 ac_config_commands="$ac_config_commands objects"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000016006
Alexandre Julliard6692d392003-03-20 01:30:11 +000016007 ac_config_commands="$ac_config_commands ole"
16008
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016009 ac_config_commands="$ac_config_commands programs/regapi/tests"
Alexandre Julliardc72f0b22002-02-28 21:47:58 +000016010
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016011 ac_config_commands="$ac_config_commands programs/regedit/tests"
Andriy Palamarchukf5aad762002-06-20 23:09:33 +000016012
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016013 ac_config_commands="$ac_config_commands relay32"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000016014
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016015 ac_config_commands="$ac_config_commands scheduler"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000016016
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016017 ac_config_commands="$ac_config_commands win32"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000016018
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016019 ac_config_commands="$ac_config_commands windows"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000016020
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000016021
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000016022MAKE_RULES=Make.rules
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016023
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016024
Alexandre Julliardd0edc5f2000-03-04 22:31:27 +000016025MAKE_DLL_RULES=dlls/Makedll.rules
16026
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016027
Alexandre Julliardedeee892002-08-09 01:22:40 +000016028MAKE_TEST_RULES=dlls/Maketest.rules
16029
16030
Alexandre Julliard117436e2003-05-01 00:39:29 +000016031MAKE_LIB_RULES=libs/Makelib.rules
16032
16033
Alexandre Julliard626f4252000-11-10 23:35:20 +000016034MAKE_PROG_RULES=programs/Makeprog.rules
16035
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016036
Uwe Bonnes2c4fd422003-05-15 23:58:48 +000016037 ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules dlls/Maketest.rules libs/Makelib.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/comctl32/tests/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/dmband/Makefile dlls/dmcompos/Makefile dlls/dmime/Makefile dlls/dmloader/Makefile dlls/dmscript/Makefile dlls/dmstyle/Makefile dlls/dmsynth/Makefile dlls/dmusic/Makefile dlls/dmusic32/Makefile dlls/dplay/Makefile dlls/dplayx/Makefile dlls/dpnhpast/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/iphlpapi/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/msvcrtd/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 libs/Makefile libs/port/Makefile libs/unicode/Makefile libs/uuid/Makefile libs/wine/Makefile libs/wpp/Makefile miscemu/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/winecfg/Makefile programs/wineconsole/Makefile programs/winedbg/Makefile programs/winefile/Makefile programs/winemine/Makefile programs/winepath/Makefile programs/winevdm/Makefile programs/winhelp/Makefile programs/winver/Makefile server/Makefile tools/Makefile tools/widl/Makefile tools/winapi/Makefile tools/winebuild/Makefile tools/winedump/Makefile tools/wmc/Makefile tools/wrc/Makefile"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016038
Alexandre Julliard626f4252000-11-10 23:35:20 +000016039
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016040cat >confcache <<\_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016041# This file is a shell script that caches the results of configure
16042# tests run on this system so they can be shared between configure
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016043# scripts and configure runs, see configure's option --config-cache.
16044# It is not useful on other systems. If it contains results you don't
16045# want to keep, you may remove or edit it.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016046#
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016047# config.status only pays attention to the cache file if you give it
16048# the --recheck option to rerun configure.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016049#
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016050# `ac_cv_env_foo' variables (set or unset) will be overridden when
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016051# loading this file, other *unset* `ac_cv_foo' will be assigned the
16052# following values.
16053
16054_ACEOF
16055
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000016056# The following way of writing the cache mishandles newlines in values,
16057# but we know of no workaround that is simple, portable, and efficient.
16058# So, don't put newlines in cache variables' values.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016059# Ultrix sh set writes to stderr and can't be redirected directly,
16060# and sets the high bit in the cache file unless we assign to the vars.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016061{
16062 (set) 2>&1 |
16063 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16064 *ac_space=\ *)
16065 # `set' does not quote correctly, so add quotes (double-quote
16066 # substitution turns \\\\ into \\, and sed turns \\ into \).
16067 sed -n \
16068 "s/'/'\\\\''/g;
16069 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16070 ;;
16071 *)
16072 # `set' quotes correctly as required by POSIX, so do not add quotes.
16073 sed -n \
16074 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16075 ;;
16076 esac;
16077} |
16078 sed '
16079 t clear
16080 : clear
16081 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16082 t end
16083 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16084 : end' >>confcache
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016085if diff $cache_file confcache >/dev/null 2>&1; then :; else
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016086 if test -w $cache_file; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016087 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16088 cat confcache >$cache_file
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016089 else
16090 echo "not updating unwritable cache $cache_file"
16091 fi
16092fi
16093rm -f confcache
16094
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016095test "x$prefix" = xNONE && prefix=$ac_default_prefix
16096# Let make expand exec_prefix.
16097test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16098
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016099# VPATH may cause trouble with some makes, so we remove $(srcdir),
16100# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16101# trailing colons and then remove the whole line if VPATH becomes empty
16102# (actually we leave an empty line to preserve line numbers).
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016103if test "x$srcdir" = x.; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016104 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16105s/:*\$(srcdir):*/:/;
16106s/:*\${srcdir}:*/:/;
16107s/:*@srcdir@:*/:/;
16108s/^\([^=]*=[ ]*\):*/\1/;
16109s/:*$//;
16110s/^[^=]*=[ ]*$//;
16111}'
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016112fi
16113
Alexandre Julliard18f92e71996-07-17 20:02:21 +000016114DEFS=-DHAVE_CONFIG_H
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016115
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016116ac_libobjs=
16117ac_ltlibobjs=
16118for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16119 # 1. Remove the extension, and $U if already installed.
16120 ac_i=`echo "$ac_i" |
16121 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16122 # 2. Add them.
16123 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16124 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16125done
16126LIBOBJS=$ac_libobjs
16127
16128LTLIBOBJS=$ac_ltlibobjs
16129
16130
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016131
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016132: ${CONFIG_STATUS=./config.status}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016133ac_clean_files_save=$ac_clean_files
16134ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016135{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016136echo "$as_me: creating $CONFIG_STATUS" >&6;}
16137cat >$CONFIG_STATUS <<_ACEOF
16138#! $SHELL
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016139# Generated by $as_me.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016140# Run this file to recreate the current configuration.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016141# Compiler output produced by configure, useful for debugging
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016142# configure, is in config.log if it exists.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016143
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016144debug=false
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016145ac_cs_recheck=false
16146ac_cs_silent=false
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016147SHELL=\${CONFIG_SHELL-$SHELL}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016148_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016149
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016150cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016151## --------------------- ##
16152## M4sh Initialization. ##
16153## --------------------- ##
16154
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016155# Be Bourne compatible
16156if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16157 emulate sh
16158 NULLCMD=:
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016159 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16160 # is contrary to our usage. Disable this feature.
16161 alias -g '${1+"$@"}'='"$@"'
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016162elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16163 set -o posix
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000016164fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016165
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016166# Support unset when possible.
16167if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
16168 as_unset=unset
16169else
16170 as_unset=false
16171fi
16172
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016173
16174# Work around bugs in pre-3.0 UWIN ksh.
16175$as_unset ENV MAIL MAILPATH
16176PS1='$ '
16177PS2='> '
16178PS4='+ '
16179
16180# NLS nuisances.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016181for as_var in \
16182 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16183 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16184 LC_TELEPHONE LC_TIME
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016185do
16186 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
16187 eval $as_var=C; export $as_var
16188 else
16189 $as_unset $as_var
16190 fi
16191done
16192
16193# Required to use basename.
16194if expr a : '\(a\)' >/dev/null 2>&1; then
16195 as_expr=expr
16196else
16197 as_expr=false
16198fi
16199
16200if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16201 as_basename=basename
16202else
16203 as_basename=false
16204fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016205
16206
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016207# Name of the executable.
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016208as_me=`$as_basename "$0" ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016209$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16210 X"$0" : 'X\(//\)$' \| \
16211 X"$0" : 'X\(/\)$' \| \
16212 . : '\(.\)' 2>/dev/null ||
16213echo X/"$0" |
16214 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16215 /^X\/\(\/\/\)$/{ s//\1/; q; }
16216 /^X\/\(\/\).*/{ s//\1/; q; }
16217 s/.*/./; q'`
16218
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016219
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016220# PATH needs CR, and LINENO needs CR and PATH.
16221# Avoid depending upon Character Ranges.
16222as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16223as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16224as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16225as_cr_digits='0123456789'
16226as_cr_alnum=$as_cr_Letters$as_cr_digits
16227
16228# The user is always right.
16229if test "${PATH_SEPARATOR+set}" != set; then
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016230 echo "#! /bin/sh" >conf$$.sh
16231 echo "exit 0" >>conf$$.sh
16232 chmod +x conf$$.sh
16233 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016234 PATH_SEPARATOR=';'
16235 else
16236 PATH_SEPARATOR=:
16237 fi
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016238 rm -f conf$$.sh
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016239fi
16240
16241
16242 as_lineno_1=$LINENO
16243 as_lineno_2=$LINENO
16244 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16245 test "x$as_lineno_1" != "x$as_lineno_2" &&
16246 test "x$as_lineno_3" = "x$as_lineno_2" || {
16247 # Find who we are. Look in the path if we contain no path at all
16248 # relative or not.
16249 case $0 in
16250 *[\\/]* ) as_myself=$0 ;;
16251 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16252for as_dir in $PATH
16253do
16254 IFS=$as_save_IFS
16255 test -z "$as_dir" && as_dir=.
16256 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16257done
16258
16259 ;;
16260 esac
16261 # We did not find ourselves, most probably we were run as `sh COMMAND'
16262 # in which case we are not to be found in the path.
16263 if test "x$as_myself" = x; then
16264 as_myself=$0
16265 fi
16266 if test ! -f "$as_myself"; then
16267 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16268echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16269 { (exit 1); exit 1; }; }
16270 fi
16271 case $CONFIG_SHELL in
16272 '')
16273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16274for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16275do
16276 IFS=$as_save_IFS
16277 test -z "$as_dir" && as_dir=.
16278 for as_base in sh bash ksh sh5; do
16279 case $as_dir in
16280 /*)
16281 if ("$as_dir/$as_base" -c '
16282 as_lineno_1=$LINENO
16283 as_lineno_2=$LINENO
16284 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16285 test "x$as_lineno_1" != "x$as_lineno_2" &&
16286 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016287 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
16288 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016289 CONFIG_SHELL=$as_dir/$as_base
16290 export CONFIG_SHELL
16291 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16292 fi;;
16293 esac
16294 done
16295done
16296;;
16297 esac
16298
16299 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16300 # uniformly replaced by the line number. The first 'sed' inserts a
16301 # line-number line before each line; the second 'sed' does the real
16302 # work. The second script uses 'N' to pair each line-number line
16303 # with the numbered line, and appends trailing '-' during
16304 # substitution so that $LINENO is not a special case at line end.
16305 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16306 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16307 sed '=' <$as_myself |
16308 sed '
16309 N
16310 s,$,-,
16311 : loop
16312 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16313 t loop
16314 s,-$,,
16315 s,^['$as_cr_digits']*\n,,
16316 ' >$as_me.lineno &&
16317 chmod +x $as_me.lineno ||
16318 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16319echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16320 { (exit 1); exit 1; }; }
16321
16322 # Don't try to exec as it changes $[0], causing all sort of problems
16323 # (the dirname of $[0] is not the place where we might find the
16324 # original and so on. Autoconf is especially sensible to this).
16325 . ./$as_me.lineno
16326 # Exit status is that of the last command.
16327 exit
16328}
16329
16330
16331case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16332 *c*,-n*) ECHO_N= ECHO_C='
16333' ECHO_T=' ' ;;
16334 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16335 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
16336esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016337
16338if expr a : '\(a\)' >/dev/null 2>&1; then
16339 as_expr=expr
16340else
16341 as_expr=false
16342fi
16343
16344rm -f conf$$ conf$$.exe conf$$.file
16345echo >conf$$.file
16346if ln -s conf$$.file conf$$ 2>/dev/null; then
16347 # We could just check for DJGPP; but this test a) works b) is more generic
16348 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16349 if test -f conf$$.exe; then
16350 # Don't use ln at all; we don't have any links
16351 as_ln_s='cp -p'
16352 else
16353 as_ln_s='ln -s'
16354 fi
16355elif ln conf$$.file conf$$ 2>/dev/null; then
16356 as_ln_s=ln
16357else
16358 as_ln_s='cp -p'
16359fi
16360rm -f conf$$ conf$$.exe conf$$.file
16361
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016362if mkdir -p . 2>/dev/null; then
16363 as_mkdir_p=:
16364else
16365 as_mkdir_p=false
16366fi
16367
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016368as_executable_p="test -f"
16369
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016370# Sed expression to map a string onto a valid CPP name.
16371as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016372
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016373# Sed expression to map a string onto a valid variable name.
16374as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16375
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016376
16377# IFS
16378# We need space, tab and new line, in precisely that order.
16379as_nl='
16380'
16381IFS=" $as_nl"
16382
16383# CDPATH.
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016384$as_unset CDPATH
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016385
16386exec 6>&1
16387
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016388# Open the log real soon, to keep \$[0] and so on meaningful, and to
16389# report actual input values of CONFIG_FILES etc. instead of their
16390# values after options handling. Logging --version etc. is OK.
16391exec 5>>config.log
16392{
16393 echo
16394 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16395## Running $as_me. ##
16396_ASBOX
16397} >&5
16398cat >&5 <<_CSEOF
16399
Alexandre Julliardc6326f02003-05-08 22:13:36 +000016400This file was extended by Wine $as_me 20030508, which was
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016401generated by GNU Autoconf 2.57. Invocation command line was
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016402
16403 CONFIG_FILES = $CONFIG_FILES
16404 CONFIG_HEADERS = $CONFIG_HEADERS
16405 CONFIG_LINKS = $CONFIG_LINKS
16406 CONFIG_COMMANDS = $CONFIG_COMMANDS
16407 $ $0 $@
16408
16409_CSEOF
16410echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16411echo >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016412_ACEOF
16413
16414# Files that config.status was made for.
16415if test -n "$ac_config_files"; then
16416 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16417fi
16418
16419if test -n "$ac_config_headers"; then
16420 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16421fi
16422
16423if test -n "$ac_config_links"; then
16424 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16425fi
16426
16427if test -n "$ac_config_commands"; then
16428 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16429fi
16430
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016431cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016432
16433ac_cs_usage="\
16434\`$as_me' instantiates files from templates according to the
16435current configuration.
16436
16437Usage: $0 [OPTIONS] [FILE]...
16438
16439 -h, --help print this help, then exit
16440 -V, --version print version number, then exit
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016441 -q, --quiet do not print progress messages
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016442 -d, --debug don't remove temporary files
16443 --recheck update $as_me by reconfiguring in the same conditions
16444 --file=FILE[:TEMPLATE]
16445 instantiate the configuration file FILE
16446 --header=FILE[:TEMPLATE]
16447 instantiate the configuration header FILE
16448
16449Configuration files:
16450$config_files
16451
16452Configuration headers:
16453$config_headers
16454
16455Configuration commands:
16456$config_commands
16457
16458Report bugs to <bug-autoconf@gnu.org>."
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016459_ACEOF
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000016460
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016461cat >>$CONFIG_STATUS <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016462ac_cs_version="\\
Alexandre Julliardc6326f02003-05-08 22:13:36 +000016463Wine config.status 20030508
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016464configured by $0, generated by GNU Autoconf 2.57,
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016465 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016466
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016467Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
16468Free Software Foundation, Inc.
16469This config.status script is free software; the Free Software Foundation
16470gives unlimited permission to copy, distribute and modify it."
16471srcdir=$srcdir
16472INSTALL="$INSTALL"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016473_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016474
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016475cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016476# If no file are specified by the user, then we need to provide default
16477# value. By we need to know if files were specified by the user.
16478ac_need_defaults=:
16479while test $# != 0
16480do
16481 case $1 in
16482 --*=*)
16483 ac_option=`expr "x$1" : 'x\([^=]*\)='`
16484 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016485 ac_shift=:
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016486 ;;
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016487 -*)
16488 ac_option=$1
16489 ac_optarg=$2
16490 ac_shift=shift
16491 ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016492 *) # This is not an option, so the user has probably given explicit
16493 # arguments.
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016494 ac_option=$1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016495 ac_need_defaults=false;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016496 esac
16497
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016498 case $ac_option in
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016499 # Handling of the options.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016500_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016501cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016502 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16503 ac_cs_recheck=: ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016504 --version | --vers* | -V )
16505 echo "$ac_cs_version"; exit 0 ;;
16506 --he | --h)
16507 # Conflict between --help and --header
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016508 { { echo "$as_me:$LINENO: error: ambiguous option: $1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016509Try \`$0 --help' for more information." >&5
16510echo "$as_me: error: ambiguous option: $1
16511Try \`$0 --help' for more information." >&2;}
16512 { (exit 1); exit 1; }; };;
16513 --help | --hel | -h )
16514 echo "$ac_cs_usage"; exit 0 ;;
16515 --debug | --d* | -d )
16516 debug=: ;;
16517 --file | --fil | --fi | --f )
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016518 $ac_shift
16519 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016520 ac_need_defaults=false;;
16521 --header | --heade | --head | --hea )
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016522 $ac_shift
16523 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016524 ac_need_defaults=false;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016525 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16526 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16527 ac_cs_silent=: ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016528
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016529 # This is an error.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016530 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016531Try \`$0 --help' for more information." >&5
16532echo "$as_me: error: unrecognized option: $1
16533Try \`$0 --help' for more information." >&2;}
16534 { (exit 1); exit 1; }; } ;;
16535
16536 *) ac_config_targets="$ac_config_targets $1" ;;
16537
16538 esac
16539 shift
16540done
16541
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016542ac_configure_extra_args=
16543
16544if $ac_cs_silent; then
16545 exec 6>/dev/null
16546 ac_configure_extra_args="$ac_configure_extra_args --silent"
16547fi
16548
16549_ACEOF
16550cat >>$CONFIG_STATUS <<_ACEOF
16551if \$ac_cs_recheck; then
16552 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16553 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16554fi
16555
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016556_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016557
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016558
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016559
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016560
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016561
16562cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016563for ac_config_target in $ac_config_targets
16564do
16565 case "$ac_config_target" in
16566 # Handling of arguments.
16567 "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
16568 "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000016569 "dlls/Maketest.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
Alexandre Julliard117436e2003-05-01 00:39:29 +000016570 "libs/Makelib.rules" ) CONFIG_FILES="$CONFIG_FILES libs/Makelib.rules" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016571 "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
16572 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016573 "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
16574 "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000016575 "dlls/advapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016576 "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
16577 "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
Patrik Stridvalld1447fa2002-11-19 00:47:12 +000016578 "dlls/cabinet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
John K. Hohm34909c22002-05-14 21:50:56 +000016579 "dlls/comcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016580 "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
Uwe Bonnes2c4fd422003-05-15 23:58:48 +000016581 "dlls/comctl32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016582 "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;;
16583 "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
16584 "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
Dmitry Timoshkov5a23a002003-01-02 19:34:14 +000016585 "dlls/ctl3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ctl3d/Makefile" ;;
Sylvain Petreolle3a99d8b2002-06-25 23:23:03 +000016586 "dlls/d3d8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
Enrico Horneaae7052003-01-24 01:08:15 +000016587 "dlls/d3dim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;;
Raphael Junqueirae31ae922002-12-17 01:15:15 +000016588 "dlls/d3dx8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016589 "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
16590 "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
16591 "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
16592 "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
Ove Kaavend2d08f02002-06-14 00:39:44 +000016593 "dlls/dinput8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
Rok Mandeljc3dec4c52003-04-08 03:56:04 +000016594 "dlls/dmband/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;;
16595 "dlls/dmcompos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;;
16596 "dlls/dmime/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;;
16597 "dlls/dmloader/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;;
16598 "dlls/dmscript/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;;
16599 "dlls/dmstyle/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;;
16600 "dlls/dmsynth/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;;
Rok Mandeljc2d04be72003-03-21 00:42:38 +000016601 "dlls/dmusic/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;;
Rok Mandeljc3dec4c52003-04-08 03:56:04 +000016602 "dlls/dmusic32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016603 "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
16604 "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
Rok Mandeljc3dec4c52003-04-08 03:56:04 +000016605 "dlls/dpnhpast/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016606 "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
Francois Gougetd523a452002-12-05 19:19:41 +000016607 "dlls/dsound/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016608 "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
Patrik Stridvall928ecb42002-10-02 19:58:27 +000016609 "dlls/gdi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016610 "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
16611 "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
16612 "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
16613 "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
Juan Lang38fa5ad2003-05-13 03:32:20 +000016614 "dlls/iphlpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016615 "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000016616 "dlls/kernel/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016617 "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;;
16618 "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
16619 "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
16620 "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;;
Hidenori Takeshima0307f6d2002-03-23 20:18:11 +000016621 "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;;
Eric Pouechbed67fc2002-05-22 02:00:05 +000016622 "dlls/msacm/msadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msadp32/Makefile" ;;
Hidenori Takeshimabcb9c462002-03-22 19:16:10 +000016623 "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;;
Eric Pouechb706b232002-06-04 17:53:46 +000016624 "dlls/msacm/winemp3/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/winemp3/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016625 "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
16626 "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
Mike McCormackf6be0442002-04-08 23:56:14 +000016627 "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016628 "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016629 "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
Uwe Bonnesa768fa32002-10-30 23:49:03 +000016630 "dlls/msvcrt/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016631 "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
Adam Gundy19a15132003-04-04 19:37:57 +000016632 "dlls/msvcrtd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016633 "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;;
Michael Günnewig288b8ee2002-10-08 00:40:05 +000016634 "dlls/msvideo/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/msrle32/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016635 "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
Andriy Palamarchukb812c902002-09-11 02:35:17 +000016636 "dlls/netapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016637 "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
Jon Griffiths1da29712002-08-15 22:08:40 +000016638 "dlls/ntdll/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016639 "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
16640 "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
16641 "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000016642 "dlls/oleaut32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016643 "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;;
16644 "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
16645 "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
16646 "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;;
16647 "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
16648 "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
16649 "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
16650 "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
16651 "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
16652 "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;;
16653 "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
Greg Turnerac89cc22002-10-07 21:54:07 +000016654 "dlls/rpcrt4/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016655 "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
16656 "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
16657 "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
16658 "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
Andriy Palamarchuk5b5bea02002-08-27 01:34:33 +000016659 "dlls/shell32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016660 "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
16661 "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000016662 "dlls/shlwapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
Patrik Stridvall4c692b92002-04-29 18:43:35 +000016663 "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016664 "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
16665 "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
16666 "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;;
Shi Quan He6b0720f2002-03-21 02:58:39 +000016667 "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016668 "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
16669 "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
Patrik Stridvall9398d9c2002-11-12 01:13:10 +000016670 "dlls/urlmon/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016671 "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000016672 "dlls/user/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016673 "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
16674 "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;;
16675 "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;;
16676 "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
16677 "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;;
16678 "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000016679 "dlls/wininet/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016680 "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
16681 "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
16682 "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;;
16683 "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;;
16684 "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;;
16685 "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;;
16686 "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;;
16687 "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;;
Francois Gouget4ce28372002-11-04 23:47:49 +000016688 "dlls/winmm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016689 "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;;
Eric Pouecha120ce02002-06-28 17:40:16 +000016690 "dlls/winmm/winealsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000016691 "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000016692 "dlls/winmm/wineaudioio/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
16693 "dlls/winmm/winenas/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
Chris Morgan4691b182002-12-13 02:26:18 +000016694 "dlls/winmm/winejack/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016695 "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
16696 "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;;
16697 "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000016698 "dlls/winsock/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016699 "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;;
Stefan Leichter88b11062003-01-15 00:50:48 +000016700 "dlls/winspool/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/tests/Makefile" ;;
Patrik Stridvall5caddc72002-12-17 01:49:16 +000016701 "dlls/wintab32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016702 "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
16703 "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
16704 "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
16705 "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;;
16706 "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016707 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
Alexandre Julliard6a9fe362003-03-19 22:09:16 +000016708 "libs/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
16709 "libs/port/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;;
Alexandre Julliard7ab9a712003-03-21 05:06:48 +000016710 "libs/unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/unicode/Makefile" ;;
Alexandre Julliard6692d392003-03-20 01:30:11 +000016711 "libs/uuid/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/uuid/Makefile" ;;
Alexandre Julliard2d1c7902003-03-22 20:40:48 +000016712 "libs/wine/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;;
Alexandre Julliarde1a9b102003-05-01 03:16:21 +000016713 "libs/wpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016714 "miscemu/Makefile" ) CONFIG_FILES="$CONFIG_FILES miscemu/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016715 "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
16716 "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;;
16717 "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
16718 "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
16719 "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
Alexandre Julliardacfda142002-05-20 19:18:16 +000016720 "programs/expand/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016721 "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
16722 "programs/osversioncheck/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/osversioncheck/Makefile" ;;
16723 "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
16724 "programs/regapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regapi/Makefile" ;;
Andriy Palamarchuk4e2e1762002-04-11 23:58:40 +000016725 "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
Andriy Palamarchuk2f0d85c2002-04-29 23:47:39 +000016726 "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016727 "programs/regtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regtest/Makefile" ;;
Alexandre Julliardd77294a2002-12-02 21:17:04 +000016728 "programs/rpcss/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
Alberto Massari15e8e0a2002-11-15 01:41:20 +000016729 "programs/rundll32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
Dan Kegelba02ae42003-01-21 20:14:36 +000016730 "programs/start/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016731 "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
16732 "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
16733 "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
Shachar Shemesh175d0592003-01-04 02:52:05 +000016734 "programs/wineboot/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;;
Dimitrie O. Paun82ce2cc2003-03-31 19:41:55 +000016735 "programs/winecfg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016736 "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
Alexandre Julliardf264bd32002-09-13 17:54:27 +000016737 "programs/winedbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
Alexandre Julliard65a42162002-06-04 21:29:40 +000016738 "programs/winefile/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016739 "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
Mike Wetherell0d8a9fa2002-05-05 20:31:54 +000016740 "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
Alexandre Julliardfedc4112003-04-27 00:47:58 +000016741 "programs/winevdm/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016742 "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
16743 "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016744 "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
16745 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
Alexandre Julliard7d4ee772002-07-16 03:20:45 +000016746 "tools/widl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016747 "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
16748 "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
16749 "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
16750 "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
16751 "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000016752 "controls" ) CONFIG_COMMANDS="$CONFIG_COMMANDS controls" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016753 "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;;
16754 "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;;
16755 "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;;
16756 "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;;
16757 "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;;
16758 "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;;
16759 "dlls/dinput/joystick" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/joystick" ;;
16760 "dlls/dinput/keyboard" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/keyboard" ;;
16761 "dlls/dinput/mouse" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/mouse" ;;
Alexandre Julliard89118562002-03-27 21:13:40 +000016762 "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
16763 "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016764 "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
16765 "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;;
16766 "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
16767 "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000016768 "files" ) CONFIG_COMMANDS="$CONFIG_COMMANDS files" ;;
16769 "graphics" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics" ;;
16770 "graphics/x11drv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics/x11drv" ;;
16771 "if1632" ) CONFIG_COMMANDS="$CONFIG_COMMANDS if1632" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016772 "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000016773 "loader" ) CONFIG_COMMANDS="$CONFIG_COMMANDS loader" ;;
16774 "loader/ne" ) CONFIG_COMMANDS="$CONFIG_COMMANDS loader/ne" ;;
16775 "memory" ) CONFIG_COMMANDS="$CONFIG_COMMANDS memory" ;;
16776 "misc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS misc" ;;
16777 "msdos" ) CONFIG_COMMANDS="$CONFIG_COMMANDS msdos" ;;
16778 "objects" ) CONFIG_COMMANDS="$CONFIG_COMMANDS objects" ;;
Alexandre Julliard6692d392003-03-20 01:30:11 +000016779 "ole" ) CONFIG_COMMANDS="$CONFIG_COMMANDS ole" ;;
Alexandre Julliardc72f0b22002-02-28 21:47:58 +000016780 "programs/regapi/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regapi/tests" ;;
Andriy Palamarchukf5aad762002-06-20 23:09:33 +000016781 "programs/regedit/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regedit/tests" ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000016782 "relay32" ) CONFIG_COMMANDS="$CONFIG_COMMANDS relay32" ;;
16783 "scheduler" ) CONFIG_COMMANDS="$CONFIG_COMMANDS scheduler" ;;
16784 "win32" ) CONFIG_COMMANDS="$CONFIG_COMMANDS win32" ;;
16785 "windows" ) CONFIG_COMMANDS="$CONFIG_COMMANDS windows" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016786 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016787 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016788echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16789 { (exit 1); exit 1; }; };;
16790 esac
16791done
16792
16793# If the user did not use the arguments to specify the items to instantiate,
16794# then the envvar interface is used. Set only those that are not.
16795# We use the long form for the default assignment because of an extremely
16796# bizarre bug on SunOS 4.1.3.
16797if $ac_need_defaults; then
16798 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16799 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16800 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16801fi
16802
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016803# Have a temporary directory for convenience. Make it in the build tree
16804# simply because there is no reason to put it here, and in addition,
16805# creating and moving files from /tmp can sometimes cause problems.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016806# Create a temporary directory, and hook for its removal unless debugging.
16807$debug ||
16808{
16809 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16810 trap '{ (exit 1); exit 1; }' 1 2 13 15
16811}
16812
16813# Create a (secure) tmp directory for tmp files.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016814
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016815{
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016816 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016817 test -n "$tmp" && test -d "$tmp"
16818} ||
16819{
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016820 tmp=./confstat$$-$RANDOM
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016821 (umask 077 && mkdir $tmp)
16822} ||
16823{
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016824 echo "$me: cannot create a temporary directory in ." >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016825 { (exit 1); exit 1; }
16826}
16827
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016828_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016829
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016830cat >>$CONFIG_STATUS <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016831
16832#
16833# CONFIG_FILES section.
16834#
16835
16836# No need to generate the scripts if there are no CONFIG_FILES.
16837# This happens for instance when ./config.status config.h
16838if test -n "\$CONFIG_FILES"; then
16839 # Protect against being on the right side of a sed subst in config.status.
16840 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16841 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16842s,@SHELL@,$SHELL,;t t
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016843s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16844s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16845s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16846s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16847s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16848s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016849s,@exec_prefix@,$exec_prefix,;t t
16850s,@prefix@,$prefix,;t t
16851s,@program_transform_name@,$program_transform_name,;t t
16852s,@bindir@,$bindir,;t t
16853s,@sbindir@,$sbindir,;t t
16854s,@libexecdir@,$libexecdir,;t t
16855s,@datadir@,$datadir,;t t
16856s,@sysconfdir@,$sysconfdir,;t t
16857s,@sharedstatedir@,$sharedstatedir,;t t
16858s,@localstatedir@,$localstatedir,;t t
16859s,@libdir@,$libdir,;t t
16860s,@includedir@,$includedir,;t t
16861s,@oldincludedir@,$oldincludedir,;t t
16862s,@infodir@,$infodir,;t t
16863s,@mandir@,$mandir,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016864s,@build_alias@,$build_alias,;t t
16865s,@host_alias@,$host_alias,;t t
16866s,@target_alias@,$target_alias,;t t
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016867s,@DEFS@,$DEFS,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016868s,@ECHO_C@,$ECHO_C,;t t
16869s,@ECHO_N@,$ECHO_N,;t t
16870s,@ECHO_T@,$ECHO_T,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016871s,@LIBS@,$LIBS,;t t
Alexandre Julliardc728efc2002-10-02 02:34:09 +000016872s,@WIN16_FILES@,$WIN16_FILES,;t t
16873s,@WIN16_INSTALL@,$WIN16_INSTALL,;t t
Alexandre Julliard6a9cea92003-04-03 02:54:54 +000016874s,@LIBPTHREAD@,$LIBPTHREAD,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016875s,@build@,$build,;t t
16876s,@build_cpu@,$build_cpu,;t t
16877s,@build_vendor@,$build_vendor,;t t
16878s,@build_os@,$build_os,;t t
16879s,@host@,$host,;t t
16880s,@host_cpu@,$host_cpu,;t t
16881s,@host_vendor@,$host_vendor,;t t
16882s,@host_os@,$host_os,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016883s,@SET_MAKE@,$SET_MAKE,;t t
16884s,@CC@,$CC,;t t
16885s,@CFLAGS@,$CFLAGS,;t t
16886s,@LDFLAGS@,$LDFLAGS,;t t
16887s,@CPPFLAGS@,$CPPFLAGS,;t t
16888s,@ac_ct_CC@,$ac_ct_CC,;t t
16889s,@EXEEXT@,$EXEEXT,;t t
16890s,@OBJEXT@,$OBJEXT,;t t
16891s,@CPP@,$CPP,;t t
Alexandre Julliardfc01b722002-05-12 03:16:39 +000016892s,@TOOLSDIR@,$TOOLSDIR,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016893s,@X_CFLAGS@,$X_CFLAGS,;t t
16894s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
16895s,@X_LIBS@,$X_LIBS,;t t
16896s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
16897s,@YACC@,$YACC,;t t
16898s,@LEX@,$LEX,;t t
16899s,@LEXLIB@,$LEXLIB,;t t
16900s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
16901s,@XYACC@,$XYACC,;t t
16902s,@XLEX@,$XLEX,;t t
Marcus Meissner1d4db782003-01-09 00:46:54 +000016903s,@AS@,$AS,;t t
16904s,@ac_ct_AS@,$ac_ct_AS,;t t
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +000016905s,@LD@,$LD,;t t
16906s,@ac_ct_LD@,$ac_ct_LD,;t t
Alexandre Julliardfc01b722002-05-12 03:16:39 +000016907s,@AR@,$AR,;t t
16908s,@ac_ct_AR@,$ac_ct_AR,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016909s,@RANLIB@,$RANLIB,;t t
16910s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
Alexandre Julliardfc01b722002-05-12 03:16:39 +000016911s,@STRIP@,$STRIP,;t t
16912s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
16913s,@WINDRES@,$WINDRES,;t t
16914s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016915s,@LN_S@,$LN_S,;t t
Alexandre Julliarddf234a92002-05-22 02:10:39 +000016916s,@LN@,$LN,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016917s,@C2MAN@,$C2MAN,;t t
16918s,@LDCONFIG@,$LDCONFIG,;t t
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016919s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16920s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
16921s,@INSTALL_DATA@,$INSTALL_DATA,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016922s,@LINT@,$LINT,;t t
16923s,@LINTFLAGS@,$LINTFLAGS,;t t
Vincent Béron1d8cb6e2002-11-23 01:20:02 +000016924s,@DB2HTML@,$DB2HTML,;t t
16925s,@DB2PDF@,$DB2PDF,;t t
16926s,@DB2PS@,$DB2PS,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016927s,@JPEGLIB@,$JPEGLIB,;t t
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016928s,@EGREP@,$EGREP,;t t
Marcus Meissner728bedc2003-01-09 06:04:33 +000016929s,@GIFLIB@,$GIFLIB,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016930s,@XLIB@,$XLIB,;t t
16931s,@XFILES@,$XFILES,;t t
16932s,@OPENGLFILES@,$OPENGLFILES,;t t
16933s,@GLU32FILES@,$GLU32FILES,;t t
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000016934s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
Francois Gouget6f670b12002-10-10 17:54:27 +000016935s,@NASLIBS@,$NASLIBS,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016936s,@CURSESLIBS@,$CURSESLIBS,;t t
Shi Quan He6b0720f2002-03-21 02:58:39 +000016937s,@sane_devel@,$sane_devel,;t t
16938s,@SANELIBS@,$SANELIBS,;t t
16939s,@SANEINCL@,$SANEINCL,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016940s,@ft_devel@,$ft_devel,;t t
16941s,@ft_devel2@,$ft_devel2,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016942s,@FREETYPEINCL@,$FREETYPEINCL,;t t
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000016943s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
16944s,@ARTSLIBS@,$ARTSLIBS,;t t
16945s,@ARTSINCL@,$ARTSINCL,;t t
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000016946s,@ALSALIBS@,$ALSALIBS,;t t
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000016947s,@AUDIOIOLIBS@,$AUDIOIOLIBS,;t t
Alexandre Julliardfc094232003-04-14 21:46:41 +000016948s,@EXTRACFLAGS@,$EXTRACFLAGS,;t t
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000016949s,@DLLEXT@,$DLLEXT,;t t
16950s,@DLLFLAGS@,$DLLFLAGS,;t t
16951s,@DLLIBS@,$DLLIBS,;t t
16952s,@LDDLLFLAGS@,$LDDLLFLAGS,;t t
16953s,@LDSHARED@,$LDSHARED,;t t
Alexandre Julliardada5e652002-12-12 22:03:14 +000016954s,@LIBEXT@,$LIBEXT,;t t
16955s,@IMPLIBEXT@,$IMPLIBEXT,;t t
16956s,@DLLTOOL@,$DLLTOOL,;t t
16957s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016958s,@DLLWRAP@,$DLLWRAP,;t t
Alexandre Julliardfc01b722002-05-12 03:16:39 +000016959s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t
Alexandre Julliard4d52d372003-03-24 19:33:20 +000016960s,@LDEXECFLAGS@,$LDEXECFLAGS,;t t
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000016961s,@CROSSTEST@,$CROSSTEST,;t t
16962s,@CROSSCC@,$CROSSCC,;t t
Alexandre Julliard21ee3292003-04-21 22:52:31 +000016963s,@CROSSWINDRES@,$CROSSWINDRES,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016964s,@LDPATH@,$LDPATH,;t t
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000016965s,@CRTLIBS@,$CRTLIBS,;t t
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000016966s,@LDD@,$LDD,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016967s,@ALLOCA@,$ALLOCA,;t t
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016968s,@LIBOBJS@,$LIBOBJS,;t t
16969s,@LTLIBOBJS@,$LTLIBOBJS,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016970/@MAKE_RULES@/r $MAKE_RULES
16971s,@MAKE_RULES@,,;t t
16972/@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
16973s,@MAKE_DLL_RULES@,,;t t
Alexandre Julliardedeee892002-08-09 01:22:40 +000016974/@MAKE_TEST_RULES@/r $MAKE_TEST_RULES
16975s,@MAKE_TEST_RULES@,,;t t
Alexandre Julliard117436e2003-05-01 00:39:29 +000016976/@MAKE_LIB_RULES@/r $MAKE_LIB_RULES
16977s,@MAKE_LIB_RULES@,,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016978/@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
16979s,@MAKE_PROG_RULES@,,;t t
16980CEOF
16981
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016982_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016983
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016984 cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016985 # Split the substitutions into bite-sized pieces for seds with
16986 # small command number limits, like on Digital OSF/1 and HP-UX.
16987 ac_max_sed_lines=48
16988 ac_sed_frag=1 # Number of current file.
16989 ac_beg=1 # First line for current file.
16990 ac_end=$ac_max_sed_lines # Line after last line for current file.
16991 ac_more_lines=:
16992 ac_sed_cmds=
16993 while $ac_more_lines; do
16994 if test $ac_beg -gt 1; then
16995 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16996 else
16997 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16998 fi
16999 if test ! -s $tmp/subs.frag; then
17000 ac_more_lines=false
17001 else
17002 # The purpose of the label and of the branching condition is to
17003 # speed up the sed processing (if there are no `@' at all, there
17004 # is no need to browse any of the substitutions).
17005 # These are the two extra sed commands mentioned above.
17006 (echo ':t
17007 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17008 if test -z "$ac_sed_cmds"; then
17009 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17010 else
17011 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17012 fi
17013 ac_sed_frag=`expr $ac_sed_frag + 1`
17014 ac_beg=$ac_end
17015 ac_end=`expr $ac_end + $ac_max_sed_lines`
17016 fi
17017 done
17018 if test -z "$ac_sed_cmds"; then
17019 ac_sed_cmds=cat
17020 fi
17021fi # test -n "$CONFIG_FILES"
17022
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017023_ACEOF
17024cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017025for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17026 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17027 case $ac_file in
17028 - | *:- | *:-:* ) # input from stdin
17029 cat >$tmp/stdin
17030 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17031 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17032 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17033 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17034 * ) ac_file_in=$ac_file.in ;;
17035 esac
17036
17037 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017038 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17039$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017040 X"$ac_file" : 'X\(//\)[^/]' \| \
17041 X"$ac_file" : 'X\(//\)$' \| \
17042 X"$ac_file" : 'X\(/\)' \| \
17043 . : '\(.\)' 2>/dev/null ||
17044echo X"$ac_file" |
17045 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17046 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17047 /^X\(\/\/\)$/{ s//\1/; q; }
17048 /^X\(\/\).*/{ s//\1/; q; }
17049 s/.*/./; q'`
Alexandre Julliard11af04e2002-10-10 03:48:04 +000017050 { if $as_mkdir_p; then
17051 mkdir -p "$ac_dir"
17052 else
17053 as_dir="$ac_dir"
17054 as_dirs=
17055 while test ! -d "$as_dir"; do
17056 as_dirs="$as_dir $as_dirs"
17057 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17058$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17059 X"$as_dir" : 'X\(//\)[^/]' \| \
17060 X"$as_dir" : 'X\(//\)$' \| \
17061 X"$as_dir" : 'X\(/\)' \| \
17062 . : '\(.\)' 2>/dev/null ||
17063echo X"$as_dir" |
17064 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17065 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17066 /^X\(\/\/\)$/{ s//\1/; q; }
17067 /^X\(\/\).*/{ s//\1/; q; }
17068 s/.*/./; q'`
17069 done
17070 test ! -n "$as_dirs" || mkdir $as_dirs
17071 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17072echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17073 { (exit 1); exit 1; }; }; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017074
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017075 ac_builddir=.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017076
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017077if test "$ac_dir" != .; then
17078 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17079 # A "../" for each directory in $ac_dir_suffix.
17080 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17081else
17082 ac_dir_suffix= ac_top_builddir=
17083fi
17084
17085case $srcdir in
17086 .) # No --srcdir option. We are building in place.
17087 ac_srcdir=.
17088 if test -z "$ac_top_builddir"; then
17089 ac_top_srcdir=.
17090 else
17091 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17092 fi ;;
17093 [\\/]* | ?:[\\/]* ) # Absolute path.
17094 ac_srcdir=$srcdir$ac_dir_suffix;
17095 ac_top_srcdir=$srcdir ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017096 *) # Relative path.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017097 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17098 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17099esac
17100# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17101# absolute.
17102ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
Alexandre Julliard11af04e2002-10-10 03:48:04 +000017103ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017104ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17105ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17106
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017107
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017108 case $INSTALL in
17109 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017110 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000017111 esac
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000017112
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017113 if test x"$ac_file" != x-; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017114 { echo "$as_me:$LINENO: creating $ac_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017115echo "$as_me: creating $ac_file" >&6;}
17116 rm -f "$ac_file"
17117 fi
17118 # Let's still pretend it is `configure' which instantiates (i.e., don't
17119 # use $as_me), people would be surprised to read:
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017120 # /* config.h. Generated by config.status. */
17121 if test x"$ac_file" = x-; then
17122 configure_input=
17123 else
17124 configure_input="$ac_file. "
17125 fi
17126 configure_input=$configure_input"Generated from `echo $ac_file_in |
17127 sed 's,.*/,,'` by configure."
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000017128
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017129 # First look for the input files in the build tree, otherwise in the
17130 # src tree.
17131 ac_file_inputs=`IFS=:
17132 for f in $ac_file_in; do
17133 case $f in
17134 -) echo $tmp/stdin ;;
17135 [\\/$]*)
17136 # Absolute (can't be DOS-style, as IFS=:)
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017137 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017138echo "$as_me: error: cannot find input file: $f" >&2;}
17139 { (exit 1); exit 1; }; }
17140 echo $f;;
17141 *) # Relative
17142 if test -f "$f"; then
17143 # Build tree
17144 echo $f
17145 elif test -f "$srcdir/$f"; then
17146 # Source tree
17147 echo $srcdir/$f
17148 else
17149 # /dev/null tree
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017150 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017151echo "$as_me: error: cannot find input file: $f" >&2;}
17152 { (exit 1); exit 1; }; }
17153 fi;;
17154 esac
17155 done` || { (exit 1); exit 1; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017156_ACEOF
17157cat >>$CONFIG_STATUS <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017158 sed "$ac_vpsub
17159$extrasub
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017160_ACEOF
17161cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017162:t
17163/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17164s,@configure_input@,$configure_input,;t t
17165s,@srcdir@,$ac_srcdir,;t t
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017166s,@abs_srcdir@,$ac_abs_srcdir,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017167s,@top_srcdir@,$ac_top_srcdir,;t t
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017168s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17169s,@builddir@,$ac_builddir,;t t
17170s,@abs_builddir@,$ac_abs_builddir,;t t
17171s,@top_builddir@,$ac_top_builddir,;t t
17172s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017173s,@INSTALL@,$ac_INSTALL,;t t
17174" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17175 rm -f $tmp/stdin
17176 if test x"$ac_file" != x-; then
17177 mv $tmp/out $ac_file
17178 else
17179 cat $tmp/out
17180 rm -f $tmp/out
17181 fi
17182
17183done
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017184_ACEOF
17185cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017186
17187#
17188# CONFIG_HEADER section.
17189#
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017190
Alexandre Julliard18f92e71996-07-17 20:02:21 +000017191# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17192# NAME is the cpp macro being defined and VALUE is the value it is being given.
17193#
17194# ac_d sets the value in "#define NAME VALUE" lines.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017195ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17196ac_dB='[ ].*$,\1#\2'
17197ac_dC=' '
17198ac_dD=',;t'
17199# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17200ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17201ac_uB='$,\1#\2define\3'
Alexandre Julliard18f92e71996-07-17 20:02:21 +000017202ac_uC=' '
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017203ac_uD=',;t'
Alexandre Julliard18f92e71996-07-17 20:02:21 +000017204
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017205for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000017206 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017207 case $ac_file in
17208 - | *:- | *:-:* ) # input from stdin
17209 cat >$tmp/stdin
17210 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17211 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17212 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17213 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17214 * ) ac_file_in=$ac_file.in ;;
Alexandre Julliard18f92e71996-07-17 20:02:21 +000017215 esac
17216
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017217 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017218echo "$as_me: creating $ac_file" >&6;}
Alexandre Julliard18f92e71996-07-17 20:02:21 +000017219
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017220 # First look for the input files in the build tree, otherwise in the
17221 # src tree.
17222 ac_file_inputs=`IFS=:
17223 for f in $ac_file_in; do
17224 case $f in
17225 -) echo $tmp/stdin ;;
17226 [\\/$]*)
17227 # Absolute (can't be DOS-style, as IFS=:)
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017228 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017229echo "$as_me: error: cannot find input file: $f" >&2;}
17230 { (exit 1); exit 1; }; }
17231 echo $f;;
17232 *) # Relative
17233 if test -f "$f"; then
17234 # Build tree
17235 echo $f
17236 elif test -f "$srcdir/$f"; then
17237 # Source tree
17238 echo $srcdir/$f
17239 else
17240 # /dev/null tree
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017241 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017242echo "$as_me: error: cannot find input file: $f" >&2;}
17243 { (exit 1); exit 1; }; }
17244 fi;;
17245 esac
17246 done` || { (exit 1); exit 1; }
17247 # Remove the trailing spaces.
17248 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
Alexandre Julliard18f92e71996-07-17 20:02:21 +000017249
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017250_ACEOF
Alexandre Julliard18f92e71996-07-17 20:02:21 +000017251
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017252# Transform confdefs.h into two sed scripts, `conftest.defines' and
17253# `conftest.undefs', that substitutes the proper values into
17254# config.h.in to produce config.h. The first handles `#define'
17255# templates, and the second `#undef' templates.
17256# And first: Protect against being on the right side of a sed subst in
17257# config.status. Protect against being in an unquoted here document
17258# in config.status.
17259rm -f conftest.defines conftest.undefs
17260# Using a here document instead of a string reduces the quoting nightmare.
17261# Putting comments in sed scripts is not portable.
17262#
17263# `end' is used to avoid that the second main sed command (meant for
17264# 0-ary CPP macros) applies to n-ary macro definitions.
17265# See the Autoconf documentation for `clear'.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017266cat >confdef2sed.sed <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017267s/[\\&,]/\\&/g
17268s,[\\$`],\\&,g
17269t clear
17270: clear
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017271s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017272t end
17273s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17274: end
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017275_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017276# If some macros were called several times there might be several times
17277# the same #defines, which is useless. Nevertheless, we may not want to
17278# sort them, since we want the *last* AC-DEFINE to be honored.
17279uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17280sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17281rm -f confdef2sed.sed
Alexandre Julliard18f92e71996-07-17 20:02:21 +000017282
17283# This sed command replaces #undef with comments. This is necessary, for
17284# example, in the case of _POSIX_SOURCE, which is predefined and required
17285# on some systems where configure will not decide to define it.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017286cat >>conftest.undefs <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017287s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017288_ACEOF
Alexandre Julliard18f92e71996-07-17 20:02:21 +000017289
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017290# Break up conftest.defines because some shells have a limit on the size
17291# of here documents, and old seds have small limits too (100 cmds).
17292echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
Alexandre Julliard11af04e2002-10-10 03:48:04 +000017293echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017294echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17295echo ' :' >>$CONFIG_STATUS
Alexandre Julliard18f92e71996-07-17 20:02:21 +000017296rm -f conftest.tail
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017297while grep . conftest.defines >/dev/null
Alexandre Julliard18f92e71996-07-17 20:02:21 +000017298do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017299 # Write a limited-size here document to $tmp/defines.sed.
17300 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17301 # Speed up: don't consider the non `#define' lines.
17302 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17303 # Work around the forget-to-reset-the-flag bug.
17304 echo 't clr' >>$CONFIG_STATUS
17305 echo ': clr' >>$CONFIG_STATUS
17306 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
Alexandre Julliard18f92e71996-07-17 20:02:21 +000017307 echo 'CEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017308 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17309 rm -f $tmp/in
17310 mv $tmp/out $tmp/in
17311' >>$CONFIG_STATUS
17312 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17313 rm -f conftest.defines
17314 mv conftest.tail conftest.defines
Alexandre Julliard18f92e71996-07-17 20:02:21 +000017315done
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017316rm -f conftest.defines
Alexandre Julliard11af04e2002-10-10 03:48:04 +000017317echo ' fi # grep' >>$CONFIG_STATUS
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017318echo >>$CONFIG_STATUS
Alexandre Julliard18f92e71996-07-17 20:02:21 +000017319
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017320# Break up conftest.undefs because some shells have a limit on the size
17321# of here documents, and old seds have small limits too (100 cmds).
17322echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17323rm -f conftest.tail
17324while grep . conftest.undefs >/dev/null
17325do
17326 # Write a limited-size here document to $tmp/undefs.sed.
17327 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17328 # Speed up: don't consider the non `#undef'
17329 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17330 # Work around the forget-to-reset-the-flag bug.
17331 echo 't clr' >>$CONFIG_STATUS
17332 echo ': clr' >>$CONFIG_STATUS
17333 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17334 echo 'CEOF
17335 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17336 rm -f $tmp/in
17337 mv $tmp/out $tmp/in
17338' >>$CONFIG_STATUS
17339 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17340 rm -f conftest.undefs
17341 mv conftest.tail conftest.undefs
17342done
17343rm -f conftest.undefs
17344
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017345cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017346 # Let's still pretend it is `configure' which instantiates (i.e., don't
17347 # use $as_me), people would be surprised to read:
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017348 # /* config.h. Generated by config.status. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017349 if test x"$ac_file" = x-; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017350 echo "/* Generated by configure. */" >$tmp/config.h
Alexandre Julliard18f92e71996-07-17 20:02:21 +000017351 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017352 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
Alexandre Julliard18f92e71996-07-17 20:02:21 +000017353 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017354 cat $tmp/in >>$tmp/config.h
17355 rm -f $tmp/in
17356 if test x"$ac_file" != x-; then
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017357 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017358 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017359echo "$as_me: $ac_file is unchanged" >&6;}
17360 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017361 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17362$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017363 X"$ac_file" : 'X\(//\)[^/]' \| \
17364 X"$ac_file" : 'X\(//\)$' \| \
17365 X"$ac_file" : 'X\(/\)' \| \
17366 . : '\(.\)' 2>/dev/null ||
17367echo X"$ac_file" |
17368 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17369 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17370 /^X\(\/\/\)$/{ s//\1/; q; }
17371 /^X\(\/\).*/{ s//\1/; q; }
17372 s/.*/./; q'`
Alexandre Julliard11af04e2002-10-10 03:48:04 +000017373 { if $as_mkdir_p; then
17374 mkdir -p "$ac_dir"
17375 else
17376 as_dir="$ac_dir"
17377 as_dirs=
17378 while test ! -d "$as_dir"; do
17379 as_dirs="$as_dir $as_dirs"
17380 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17381$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17382 X"$as_dir" : 'X\(//\)[^/]' \| \
17383 X"$as_dir" : 'X\(//\)$' \| \
17384 X"$as_dir" : 'X\(/\)' \| \
17385 . : '\(.\)' 2>/dev/null ||
17386echo X"$as_dir" |
17387 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17388 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17389 /^X\(\/\/\)$/{ s//\1/; q; }
17390 /^X\(\/\).*/{ s//\1/; q; }
17391 s/.*/./; q'`
17392 done
17393 test ! -n "$as_dirs" || mkdir $as_dirs
17394 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17395echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17396 { (exit 1); exit 1; }; }; }
Alexandre Julliard18f92e71996-07-17 20:02:21 +000017397
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017398 rm -f $ac_file
17399 mv $tmp/config.h $ac_file
17400 fi
17401 else
17402 cat $tmp/config.h
17403 rm -f $tmp/config.h
17404 fi
17405done
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017406_ACEOF
17407cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017408
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017409#
17410# CONFIG_COMMANDS section.
17411#
17412for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17413 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17414 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017415 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17416$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17417 X"$ac_dest" : 'X\(//\)[^/]' \| \
17418 X"$ac_dest" : 'X\(//\)$' \| \
17419 X"$ac_dest" : 'X\(/\)' \| \
17420 . : '\(.\)' 2>/dev/null ||
17421echo X"$ac_dest" |
17422 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17423 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17424 /^X\(\/\/\)$/{ s//\1/; q; }
17425 /^X\(\/\).*/{ s//\1/; q; }
17426 s/.*/./; q'`
17427 ac_builddir=.
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000017428
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017429if test "$ac_dir" != .; then
17430 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17431 # A "../" for each directory in $ac_dir_suffix.
17432 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017433else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017434 ac_dir_suffix= ac_top_builddir=
17435fi
17436
17437case $srcdir in
17438 .) # No --srcdir option. We are building in place.
17439 ac_srcdir=.
17440 if test -z "$ac_top_builddir"; then
17441 ac_top_srcdir=.
17442 else
17443 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17444 fi ;;
17445 [\\/]* | ?:[\\/]* ) # Absolute path.
17446 ac_srcdir=$srcdir$ac_dir_suffix;
17447 ac_top_srcdir=$srcdir ;;
17448 *) # Relative path.
17449 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17450 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17451esac
17452# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17453# absolute.
17454ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
Alexandre Julliard11af04e2002-10-10 03:48:04 +000017455ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017456ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17457ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17458
17459
17460 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17461echo "$as_me: executing $ac_dest commands" >&6;}
17462 case $ac_dest in
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000017463 controls ) test -d "controls" || ({ echo "$as_me:$LINENO: creating controls" >&5
17464echo "$as_me: creating controls" >&6;} && mkdir "controls") ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017465 dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/d3ddevice" >&5
17466echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;;
17467 dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dclipper" >&5
17468echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;;
17469 dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/ddraw" >&5
17470echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;;
17471 dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/direct3d" >&5
17472echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;;
17473 dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dpalette" >&5
17474echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;;
17475 dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dsurface" >&5
17476echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;;
17477 dlls/dinput/joystick ) test -d "dlls/dinput/joystick" || ({ echo "$as_me:$LINENO: creating dlls/dinput/joystick" >&5
17478echo "$as_me: creating dlls/dinput/joystick" >&6;} && mkdir "dlls/dinput/joystick") ;;
17479 dlls/dinput/keyboard ) test -d "dlls/dinput/keyboard" || ({ echo "$as_me:$LINENO: creating dlls/dinput/keyboard" >&5
17480echo "$as_me: creating dlls/dinput/keyboard" >&6;} && mkdir "dlls/dinput/keyboard") ;;
17481 dlls/dinput/mouse ) test -d "dlls/dinput/mouse" || ({ echo "$as_me:$LINENO: creating dlls/dinput/mouse" >&5
17482echo "$as_me: creating dlls/dinput/mouse" >&6;} && mkdir "dlls/dinput/mouse") ;;
17483 dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
17484echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
17485 dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
17486echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017487 dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
17488echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017489 dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:$LINENO: creating dlls/user/dde" >&5
17490echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;;
17491 dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
17492echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017493 dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5
17494echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000017495 files ) test -d "files" || ({ echo "$as_me:$LINENO: creating files" >&5
17496echo "$as_me: creating files" >&6;} && mkdir "files") ;;
17497 graphics ) test -d "graphics" || ({ echo "$as_me:$LINENO: creating graphics" >&5
17498echo "$as_me: creating graphics" >&6;} && mkdir "graphics") ;;
17499 graphics/x11drv ) test -d "graphics/x11drv" || ({ echo "$as_me:$LINENO: creating graphics/x11drv" >&5
17500echo "$as_me: creating graphics/x11drv" >&6;} && mkdir "graphics/x11drv") ;;
17501 if1632 ) test -d "if1632" || ({ echo "$as_me:$LINENO: creating if1632" >&5
17502echo "$as_me: creating if1632" >&6;} && mkdir "if1632") ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017503 include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
17504echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000017505 loader ) test -d "loader" || ({ echo "$as_me:$LINENO: creating loader" >&5
17506echo "$as_me: creating loader" >&6;} && mkdir "loader") ;;
17507 loader/ne ) test -d "loader/ne" || ({ echo "$as_me:$LINENO: creating loader/ne" >&5
17508echo "$as_me: creating loader/ne" >&6;} && mkdir "loader/ne") ;;
17509 memory ) test -d "memory" || ({ echo "$as_me:$LINENO: creating memory" >&5
17510echo "$as_me: creating memory" >&6;} && mkdir "memory") ;;
17511 misc ) test -d "misc" || ({ echo "$as_me:$LINENO: creating misc" >&5
17512echo "$as_me: creating misc" >&6;} && mkdir "misc") ;;
17513 msdos ) test -d "msdos" || ({ echo "$as_me:$LINENO: creating msdos" >&5
17514echo "$as_me: creating msdos" >&6;} && mkdir "msdos") ;;
17515 objects ) test -d "objects" || ({ echo "$as_me:$LINENO: creating objects" >&5
17516echo "$as_me: creating objects" >&6;} && mkdir "objects") ;;
Alexandre Julliard6692d392003-03-20 01:30:11 +000017517 ole ) test -d "ole" || ({ echo "$as_me:$LINENO: creating ole" >&5
17518echo "$as_me: creating ole" >&6;} && mkdir "ole") ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017519 programs/regapi/tests ) test -d "programs/regapi/tests" || ({ echo "$as_me:$LINENO: creating programs/regapi/tests" >&5
17520echo "$as_me: creating programs/regapi/tests" >&6;} && mkdir "programs/regapi/tests") ;;
Andriy Palamarchukf5aad762002-06-20 23:09:33 +000017521 programs/regedit/tests ) test -d "programs/regedit/tests" || ({ echo "$as_me:$LINENO: creating programs/regedit/tests" >&5
17522echo "$as_me: creating programs/regedit/tests" >&6;} && mkdir "programs/regedit/tests") ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000017523 relay32 ) test -d "relay32" || ({ echo "$as_me:$LINENO: creating relay32" >&5
17524echo "$as_me: creating relay32" >&6;} && mkdir "relay32") ;;
17525 scheduler ) test -d "scheduler" || ({ echo "$as_me:$LINENO: creating scheduler" >&5
17526echo "$as_me: creating scheduler" >&6;} && mkdir "scheduler") ;;
17527 win32 ) test -d "win32" || ({ echo "$as_me:$LINENO: creating win32" >&5
17528echo "$as_me: creating win32" >&6;} && mkdir "win32") ;;
17529 windows ) test -d "windows" || ({ echo "$as_me:$LINENO: creating windows" >&5
17530echo "$as_me: creating windows" >&6;} && mkdir "windows") ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017531 esac
17532done
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017533_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017534
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017535cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000017536
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017537{ (exit 0); exit 0; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017538_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017539chmod +x $CONFIG_STATUS
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017540ac_clean_files=$ac_clean_files_save
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017541
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017542
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017543# configure is writing to config.log, and then calls config.status.
17544# config.status does its own redirection, appending to config.log.
17545# Unfortunately, on DOS this fails, as config.log is still kept open
17546# by configure, so config.status won't be able to write to it; its
17547# output is simply discarded. So we exec the FD to /dev/null,
17548# effectively closing config.log, so it can be properly (re)opened and
17549# appended to by config.status. When coming back to configure, we
17550# need to make the FD available again.
17551if test "$no_create" != yes; then
17552 ac_cs_success=:
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017553 ac_config_status_args=
17554 test "$silent" = yes &&
17555 ac_config_status_args="$ac_config_status_args --quiet"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017556 exec 5>/dev/null
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017557 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017558 exec 5>>config.log
17559 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17560 # would make configure fail if this is the last instruction.
17561 $ac_cs_success || { (exit 1); exit 1; }
17562fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017563
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017564
Ove Kaaven8b4431f1999-01-23 13:59:11 +000017565if test "$have_x" = "no"
17566then
17567 echo
17568 echo "*** Warning: X development files not found. Wine will be built without"
17569 echo "*** X support, which currently does not work, and would probably not be"
17570 echo "*** what you want anyway. You will need to install devel packages of"
Alexandre Julliard18e4b5e2002-01-04 18:52:40 +000017571 echo "*** Xlib/Xfree86 at the very least."
Ove Kaaven8b4431f1999-01-23 13:59:11 +000017572fi
17573
Lionel Ulmerbedf40b2000-05-12 20:18:14 +000017574if test "$wine_cv_opengl_version_OK" = "no"
Lionel Ulmer5c085701999-02-28 19:48:53 +000017575then
17576 echo
17577 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +000017578 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
17579fi
17580
Ian Pilcher563598d2001-05-16 20:56:05 +000017581if test "$wine_cv_msg_freetype" = "yes"
17582then
17583 echo
17584 echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017585 echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
17586 echo "*** freetype-devel package (or its equivalent on your distribution) to"
17587 echo "*** enable Wine to use TrueType fonts."
Ian Pilcher563598d2001-05-16 20:56:05 +000017588fi
17589
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017590echo
Steffen Moeller1511bae1999-02-17 15:27:03 +000017591echo "Configure finished. Do 'make depend && make' to compile Wine."
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017592echo
17593