Much improved mciavi driver. Fixed synchronization, RIFF file with
[wine] / configure
CommitLineData
e2991ea7 1#! /bin/sh
e2991ea7 2# Guess values for system-dependent variables and create Makefiles.
2361f41a 3# Generated by GNU Autoconf 2.57 for Wine 20031212.
e2991ea7 4#
daa2886c 5# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
f5818d2f 6# Free Software Foundation, Inc.
e2991ea7
AJ
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
daa2886c
AJ
9## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
f5818d2f
AJ
12
13# Be Bourne compatible
14if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
11af04e3
AJ
17 # 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+"$@"}'='"$@"'
f5818d2f
AJ
20elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21 set -o posix
22fi
23
daa2886c
AJ
24# 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
11af04e3
AJ
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
e24bcc77
AJ
39for 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
11af04e3
AJ
43do
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
daa2886c
AJ
63
64
f5818d2f 65# Name of the executable.
11af04e3 66as_me=`$as_basename "$0" ||
daa2886c
AJ
67$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
11af04e3 77
daa2886c
AJ
78# 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
e24bcc77
AJ
88 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
daa2886c
AJ
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
e24bcc77 96 rm -f conf$$.sh
daa2886c
AJ
97fi
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
11af04e3
AJ
144 $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; }
daa2886c
AJ
146 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
f5818d2f
AJ
193
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
11af04e3
AJ
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 as_mkdir_p=false
222fi
223
f5818d2f
AJ
224as_executable_p="test -f"
225
daa2886c
AJ
226# 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"
228
229# Sed expression to map a string onto a valid variable name.
230as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
f5818d2f 231
f5818d2f
AJ
232
233# IFS
234# We need space, tab and new line, in precisely that order.
235as_nl='
236'
237IFS=" $as_nl"
238
239# CDPATH.
11af04e3 240$as_unset CDPATH
daa2886c 241
f5818d2f
AJ
242
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#
e2991ea7 253ac_default_prefix=/usr/local
11af04e3 254ac_config_libobj_dir=.
f5818d2f
AJ
255cross_compiling=no
256subdirs=
daa2886c
AJ
257MFLAGS=
258MAKEFLAGS=
f5818d2f
AJ
259SHELL=${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
daa2886c
AJ
266# Identity of this package.
267PACKAGE_NAME='Wine'
268PACKAGE_TARNAME='wine'
2361f41a
AJ
269PACKAGE_VERSION='20031212'
270PACKAGE_STRING='Wine 20031212'
daa2886c
AJ
271PACKAGE_BUGREPORT=''
272
f5818d2f
AJ
273ac_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"
e2991ea7 310
ef799c46 311ac_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 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 LDCONFIG INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LINT LINTFLAGS DB2HTML DB2PDF DB2PS DB2TXT LIBPTHREAD JPEGLIB EGREP GIFLIB XLIB XFILES OPENGLFILES GLU32FILES OPENGL_LIBS GLUT_LIBS GLUT32FILES NASLIBS CURSESLIBS sane_devel SANELIBS SANEINCL ICULIBS ft_devel ft_devel2 FREETYPEINCL ARTSCCONFIG ARTSLIBS ARTSINCL ALSALIBS AUDIOIOLIBS CAPI4LINUXLIBS EXTRACFLAGS DLLEXT DLLFLAGS DLLIBS LDSHARED LDDLL LIBEXT IMPLIBEXT DLLTOOL ac_ct_DLLTOOL DLLWRAP ac_ct_DLLWRAP LDEXECFLAGS CROSSTEST CROSSCC CROSSWINDRES LDPATH CRTLIBS WINE_BINARIES MAIN_BINARY LDD ALLOCA LIBOBJS LTLIBOBJS'
117436e0 312ac_subst_files='MAKE_RULES MAKE_DLL_RULES MAKE_TEST_RULES MAKE_LIB_RULES MAKE_PROG_RULES'
daa2886c 313
e2991ea7 314# Initialize some variables set by options.
f5818d2f
AJ
315ac_init_help=
316ac_init_version=false
e2991ea7
AJ
317# The variables have the same names as the options, with
318# dashes changed to underlines.
f5818d2f 319cache_file=/dev/null
e2991ea7 320exec_prefix=NONE
e2991ea7 321no_create=
e2991ea7
AJ
322no_recursion=
323prefix=NONE
324program_prefix=NONE
325program_suffix=NONE
326program_transform_name=s,x,x,
327silent=
328site=
329srcdir=
e2991ea7
AJ
330verbose=
331x_includes=NONE
332x_libraries=NONE
f5818d2f
AJ
333
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.
d7d4fdf8
AJ
339bindir='${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'
e2991ea7 351
e2991ea7
AJ
352ac_prev=
353for ac_option
354do
e2991ea7
AJ
355 # 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
f5818d2f 362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
e2991ea7
AJ
363
364 # Accept the important Cygnus configure options, so we can diagnose typos.
365
f5818d2f 366 case $ac_option in
e2991ea7 367
d7d4fdf8
AJ
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
369 ac_prev=bindir ;;
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
f5818d2f 371 bindir=$ac_optarg ;;
d7d4fdf8
AJ
372
373 -build | --build | --buil | --bui | --bu)
f5818d2f 374 ac_prev=build_alias ;;
d7d4fdf8 375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
f5818d2f 376 build_alias=$ac_optarg ;;
e2991ea7
AJ
377
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=*)
f5818d2f
AJ
383 cache_file=$ac_optarg ;;
384
385 --config-cache | -C)
386 cache_file=config.cache ;;
e2991ea7 387
d7d4fdf8
AJ
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389 ac_prev=datadir ;;
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391 | --da=*)
f5818d2f 392 datadir=$ac_optarg ;;
d7d4fdf8 393
e2991ea7 394 -disable-* | --disable-*)
f5818d2f 395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
e2991ea7 396 # Reject names that are not valid shell variable names.
f5818d2f
AJ
397 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" ;;
e2991ea7
AJ
402
403 -enable-* | --enable-*)
f5818d2f 404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
e2991ea7 405 # Reject names that are not valid shell variable names.
f5818d2f
AJ
406 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"`;;
e2991ea7
AJ
412 *) ac_optarg=yes ;;
413 esac
f5818d2f 414 eval "enable_$ac_feature='$ac_optarg'" ;;
e2991ea7
AJ
415
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=*)
f5818d2f 423 exec_prefix=$ac_optarg ;;
e2991ea7
AJ
424
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
427 with_gas=yes ;;
428
f5818d2f
AJ
429 -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 ;;
e2991ea7
AJ
435
436 -host | --host | --hos | --ho)
f5818d2f 437 ac_prev=host_alias ;;
e2991ea7 438 -host=* | --host=* | --hos=* | --ho=*)
f5818d2f 439 host_alias=$ac_optarg ;;
e2991ea7 440
d7d4fdf8
AJ
441 -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=*)
f5818d2f 446 includedir=$ac_optarg ;;
d7d4fdf8
AJ
447
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
449 ac_prev=infodir ;;
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
f5818d2f 451 infodir=$ac_optarg ;;
d7d4fdf8
AJ
452
453 -libdir | --libdir | --libdi | --libd)
454 ac_prev=libdir ;;
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
f5818d2f 456 libdir=$ac_optarg ;;
d7d4fdf8
AJ
457
458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459 | --libexe | --libex | --libe)
460 ac_prev=libexecdir ;;
461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462 | --libexe=* | --libex=* | --libe=*)
f5818d2f 463 libexecdir=$ac_optarg ;;
d7d4fdf8
AJ
464
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=*)
f5818d2f 472 localstatedir=$ac_optarg ;;
d7d4fdf8
AJ
473
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475 ac_prev=mandir ;;
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
f5818d2f 477 mandir=$ac_optarg ;;
d7d4fdf8 478
e2991ea7
AJ
479 -nfp | --nfp | --nf)
480 # Obsolete; use --without-fp.
481 with_fp=no ;;
482
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
daa2886c 484 | --no-cr | --no-c | -n)
e2991ea7
AJ
485 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
d7d4fdf8
AJ
491 -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=*)
f5818d2f 498 oldincludedir=$ac_optarg ;;
d7d4fdf8 499
e2991ea7
AJ
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501 ac_prev=prefix ;;
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
f5818d2f 503 prefix=$ac_optarg ;;
e2991ea7
AJ
504
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=*)
f5818d2f 510 program_prefix=$ac_optarg ;;
e2991ea7
AJ
511
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=*)
f5818d2f 517 program_suffix=$ac_optarg ;;
e2991ea7
AJ
518
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=*)
f5818d2f 534 program_transform_name=$ac_optarg ;;
e2991ea7
AJ
535
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
538 silent=yes ;;
539
d7d4fdf8
AJ
540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541 ac_prev=sbindir ;;
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543 | --sbi=* | --sb=*)
f5818d2f 544 sbindir=$ac_optarg ;;
d7d4fdf8
AJ
545
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=*)
f5818d2f 555 sharedstatedir=$ac_optarg ;;
d7d4fdf8 556
e2991ea7
AJ
557 -site | --site | --sit)
558 ac_prev=site ;;
559 -site=* | --site=* | --sit=*)
f5818d2f 560 site=$ac_optarg ;;
e2991ea7
AJ
561
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563 ac_prev=srcdir ;;
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
f5818d2f 565 srcdir=$ac_optarg ;;
e2991ea7 566
d7d4fdf8
AJ
567 -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=*)
f5818d2f 572 sysconfdir=$ac_optarg ;;
d7d4fdf8 573
e2991ea7 574 -target | --target | --targe | --targ | --tar | --ta | --t)
f5818d2f 575 ac_prev=target_alias ;;
e2991ea7 576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
f5818d2f 577 target_alias=$ac_optarg ;;
e2991ea7
AJ
578
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
580 verbose=yes ;;
581
f5818d2f
AJ
582 -version | --version | --versio | --versi | --vers | -V)
583 ac_init_version=: ;;
e2991ea7
AJ
584
585 -with-* | --with-*)
f5818d2f 586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
e2991ea7 587 # Reject names that are not valid shell variable names.
f5818d2f
AJ
588 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; }; }
e2991ea7 591 ac_package=`echo $ac_package| sed 's/-/_/g'`
f5818d2f
AJ
592 case $ac_option in
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
e2991ea7
AJ
594 *) ac_optarg=yes ;;
595 esac
f5818d2f 596 eval "with_$ac_package='$ac_optarg'" ;;
e2991ea7
AJ
597
598 -without-* | --without-*)
f5818d2f 599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
e2991ea7 600 # Reject names that are not valid shell variable names.
f5818d2f
AJ
601 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" ;;
e2991ea7
AJ
606
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=*)
f5818d2f 616 x_includes=$ac_optarg ;;
e2991ea7
AJ
617
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=*)
f5818d2f 623 x_libraries=$ac_optarg ;;
e2991ea7 624
f5818d2f
AJ
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
e2991ea7
AJ
628 ;;
629
f5818d2f
AJ
630 *=*)
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
d7d4fdf8 640 *)
f5818d2f
AJ
641 # 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}
e2991ea7
AJ
646 ;;
647
648 esac
649done
650
651if test -n "$ac_prev"; then
f5818d2f
AJ
652 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
e2991ea7 655fi
e2991ea7 656
f5818d2f
AJ
657# Be sure to have absolute paths.
658for ac_var in exec_prefix prefix
659do
660 eval ac_val=$`echo $ac_var`
661 case $ac_val in
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
daa2886c 663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
f5818d2f
AJ
664 { (exit 1); exit 1; }; };;
665 esac
666done
e2991ea7 667
f5818d2f
AJ
668# Be sure to have absolute paths.
669for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
e2991ea7 671do
f5818d2f
AJ
672 eval ac_val=$`echo $ac_var`
673 case $ac_val in
674 [\\/$]* | ?:[\\/]* ) ;;
daa2886c 675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
f5818d2f 676 { (exit 1); exit 1; }; };;
e2991ea7
AJ
677 esac
678done
679
f5818d2f
AJ
680# There might be people who depend on the old broken behavior: `$host'
681# used to hold the argument of --host etc.
daa2886c 682# FIXME: To remove some day.
f5818d2f
AJ
683build=$build_alias
684host=$host_alias
685target=$target_alias
686
daa2886c 687# FIXME: To remove some day.
f5818d2f
AJ
688if 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
e2991ea7 697
f5818d2f
AJ
698ac_tool_prefix=
699test -n "$host_alias" && ac_tool_prefix=$host_alias-
e2991ea7 700
f5818d2f 701test "$silent" = yes && exec 6>/dev/null
e2991ea7 702
daa2886c 703
e2991ea7
AJ
704# 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.
daa2886c
AJ
708 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'`
e2991ea7
AJ
720 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
daa2886c 729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
f5818d2f 730 { (exit 1); exit 1; }; }
e2991ea7 731 else
daa2886c 732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
f5818d2f 733 { (exit 1); exit 1; }; }
e2991ea7
AJ
734 fi
735fi
11af04e3
AJ
736(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; }; }
f5818d2f
AJ
739srcdir=`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
772
773#
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.
daa2886c 779 cat <<_ACEOF
2361f41a 780\`configure' configures Wine 20031212 to adapt to many kinds of systems.
f5818d2f
AJ
781
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
daa2886c 800_ACEOF
f5818d2f 801
daa2886c 802 cat <<_ACEOF
f5818d2f
AJ
803Installation 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]
daa2886c 829_ACEOF
f5818d2f 830
daa2886c 831 cat <<\_ACEOF
f5818d2f
AJ
832
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]
daa2886c 839 --host=HOST cross-compile to build programs to run on HOST [BUILD]
daa2886c 840_ACEOF
f5818d2f
AJ
841fi
842
843if test -n "$ac_init_help"; then
844 case $ac_init_help in
2361f41a 845 short | recursive ) echo "Configuration of Wine 20031212:";;
f5818d2f 846 esac
daa2886c 847 cat <<\_ACEOF
f5818d2f
AJ
848
849Optional Features:
850 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
851 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
c728efc3 852 --disable-win16 do not include Win16 support
f5818d2f
AJ
853 --disable-debug compile out all debugging messages
854 --disable-trace compile out TRACE messages
f5818d2f
AJ
855
856Optional Packages:
857 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
858 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
b8074991 859 --without-opengl do not use OpenGL
f5818d2f 860 --without-curses do not use curses
fc01b729 861 --with-wine-tools=<dir> use Wine tools from directory <dir>
f5818d2f
AJ
862 --with-x use the X Window System
863
864Some influential environment variables:
865 CC C compiler command
866 CFLAGS C compiler flags
867 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
868 nonstandard directory <lib dir>
869 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
870 headers in a nonstandard directory <include dir>
871 CPP C preprocessor
872
873Use these variables to override the choices made by `configure' or to help
874it to find libraries and programs with nonstandard names/locations.
875
daa2886c 876_ACEOF
f5818d2f
AJ
877fi
878
879if test "$ac_init_help" = "recursive"; then
880 # If there are subdirs, report their specific --help.
881 ac_popdir=`pwd`
daa2886c
AJ
882 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
883 test -d $ac_dir || continue
884 ac_builddir=.
885
886if test "$ac_dir" != .; then
887 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
888 # A "../" for each directory in $ac_dir_suffix.
889 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
890else
891 ac_dir_suffix= ac_top_builddir=
892fi
f5818d2f 893
daa2886c
AJ
894case $srcdir in
895 .) # No --srcdir option. We are building in place.
896 ac_srcdir=.
897 if test -z "$ac_top_builddir"; then
898 ac_top_srcdir=.
899 else
900 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
901 fi ;;
902 [\\/]* | ?:[\\/]* ) # Absolute path.
903 ac_srcdir=$srcdir$ac_dir_suffix;
904 ac_top_srcdir=$srcdir ;;
905 *) # Relative path.
906 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
907 ac_top_srcdir=$ac_top_builddir$srcdir ;;
908esac
909# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
910# absolute.
911ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
11af04e3 912ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
daa2886c
AJ
913ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
914ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
915
916 cd $ac_dir
f5818d2f 917 # Check for guested configure; otherwise get Cygnus style configure.
daa2886c 918 if test -f $ac_srcdir/configure.gnu; then
f5818d2f 919 echo
daa2886c
AJ
920 $SHELL $ac_srcdir/configure.gnu --help=recursive
921 elif test -f $ac_srcdir/configure; then
f5818d2f 922 echo
daa2886c
AJ
923 $SHELL $ac_srcdir/configure --help=recursive
924 elif test -f $ac_srcdir/configure.ac ||
925 test -f $ac_srcdir/configure.in; then
f5818d2f
AJ
926 echo
927 $ac_configure --help
928 else
daa2886c 929 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
f5818d2f 930 fi
ccc7570b 931 cd "$ac_popdir"
f5818d2f
AJ
932 done
933fi
e2991ea7 934
f5818d2f
AJ
935test -n "$ac_init_help" && exit 0
936if $ac_init_version; then
daa2886c 937 cat <<\_ACEOF
2361f41a 938Wine configure 20031212
e24bcc77 939generated by GNU Autoconf 2.57
f5818d2f 940
daa2886c 941Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
f5818d2f
AJ
942Free Software Foundation, Inc.
943This configure script is free software; the Free Software Foundation
944gives unlimited permission to copy, distribute and modify it.
daa2886c 945_ACEOF
f5818d2f
AJ
946 exit 0
947fi
948exec 5>config.log
daa2886c 949cat >&5 <<_ACEOF
f5818d2f
AJ
950This file contains any messages produced by compilers while
951running configure, to aid debugging if configure makes a mistake.
952
2361f41a 953It was created by Wine $as_me 20031212, which was
e24bcc77 954generated by GNU Autoconf 2.57. Invocation command line was
f5818d2f
AJ
955
956 $ $0 $@
957
daa2886c 958_ACEOF
f5818d2f
AJ
959{
960cat <<_ASUNAME
daa2886c
AJ
961## --------- ##
962## Platform. ##
963## --------- ##
f5818d2f
AJ
964
965hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
966uname -m = `(uname -m) 2>/dev/null || echo unknown`
967uname -r = `(uname -r) 2>/dev/null || echo unknown`
968uname -s = `(uname -s) 2>/dev/null || echo unknown`
969uname -v = `(uname -v) 2>/dev/null || echo unknown`
970
971/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
972/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
973
974/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
975/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
976/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
977hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
978/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
979/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
980/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
981
f5818d2f 982_ASUNAME
daa2886c
AJ
983
984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
985for as_dir in $PATH
986do
987 IFS=$as_save_IFS
988 test -z "$as_dir" && as_dir=.
989 echo "PATH: $as_dir"
990done
991
f5818d2f
AJ
992} >&5
993
daa2886c
AJ
994cat >&5 <<_ACEOF
995
996
997## ----------- ##
998## Core tests. ##
999## ----------- ##
1000
1001_ACEOF
f5818d2f 1002
f5818d2f
AJ
1003
1004# Keep a trace of the command line.
1005# Strip out --no-create and --no-recursion so they do not pile up.
e24bcc77 1006# Strip out --silent because we don't want to record it for future runs.
f5818d2f 1007# Also quote any args containing shell meta-characters.
e24bcc77 1008# Make two passes to allow for proper duplicate-argument suppression.
f5818d2f 1009ac_configure_args=
e24bcc77
AJ
1010ac_configure_args0=
1011ac_configure_args1=
f5818d2f 1012ac_sep=
e24bcc77
AJ
1013ac_must_keep_next=false
1014for ac_pass in 1 2
f5818d2f 1015do
e24bcc77
AJ
1016 for ac_arg
1017 do
1018 case $ac_arg in
1019 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1020 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1021 | -silent | --silent | --silen | --sile | --sil)
1022 continue ;;
1023 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1024 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1025 esac
1026 case $ac_pass in
1027 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1028 2)
1029 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1030 if test $ac_must_keep_next = true; then
1031 ac_must_keep_next=false # Got value, back to normal.
1032 else
1033 case $ac_arg in
1034 *=* | --config-cache | -C | -disable-* | --disable-* \
1035 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1036 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1037 | -with-* | --with-* | -without-* | --without-* | --x)
1038 case "$ac_configure_args0 " in
1039 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1040 esac
1041 ;;
1042 -* ) ac_must_keep_next=true ;;
1043 esac
1044 fi
1045 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1046 # Get rid of the leading space.
1047 ac_sep=" "
1048 ;;
1049 esac
1050 done
f5818d2f 1051done
e24bcc77
AJ
1052$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1053$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
f5818d2f
AJ
1054
1055# When interrupted or exit'd, cleanup temporary files, and complete
1056# config.log. We remove comments because anyway the quotes in there
1057# would cause problems or look ugly.
daa2886c
AJ
1058# WARNING: Be sure not to use single quotes in there, as some shells,
1059# such as our DU 5.0 friend, will then `close' the trap.
f5818d2f
AJ
1060trap 'exit_status=$?
1061 # Save into config.log some information that might help in debugging.
daa2886c
AJ
1062 {
1063 echo
11af04e3 1064
daa2886c
AJ
1065 cat <<\_ASBOX
1066## ---------------- ##
1067## Cache variables. ##
1068## ---------------- ##
1069_ASBOX
1070 echo
1071 # The following way of writing the cache mishandles newlines in values,
f5818d2f
AJ
1072{
1073 (set) 2>&1 |
1074 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1075 *ac_space=\ *)
1076 sed -n \
1077 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1078 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1079 ;;
1080 *)
1081 sed -n \
1082 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1083 ;;
1084 esac;
daa2886c
AJ
1085}
1086 echo
11af04e3
AJ
1087
1088 cat <<\_ASBOX
1089## ----------------- ##
1090## Output variables. ##
1091## ----------------- ##
1092_ASBOX
1093 echo
1094 for ac_var in $ac_subst_vars
1095 do
1096 eval ac_val=$`echo $ac_var`
1097 echo "$ac_var='"'"'$ac_val'"'"'"
1098 done | sort
1099 echo
1100
1101 if test -n "$ac_subst_files"; then
1102 cat <<\_ASBOX
1103## ------------- ##
1104## Output files. ##
1105## ------------- ##
1106_ASBOX
1107 echo
1108 for ac_var in $ac_subst_files
1109 do
1110 eval ac_val=$`echo $ac_var`
1111 echo "$ac_var='"'"'$ac_val'"'"'"
1112 done | sort
1113 echo
1114 fi
1115
daa2886c
AJ
1116 if test -s confdefs.h; then
1117 cat <<\_ASBOX
1118## ----------- ##
1119## confdefs.h. ##
1120## ----------- ##
1121_ASBOX
1122 echo
11af04e3 1123 sed "/^$/d" confdefs.h | sort
daa2886c
AJ
1124 echo
1125 fi
1126 test "$ac_signal" != 0 &&
1127 echo "$as_me: caught signal $ac_signal"
1128 echo "$as_me: exit $exit_status"
1129 } >&5
80e34dbb 1130 rm -f core *.core &&
daa2886c 1131 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
f5818d2f
AJ
1132 exit $exit_status
1133 ' 0
1134for ac_signal in 1 2 13 15; do
1135 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1136done
1137ac_signal=0
1138
1139# confdefs.h avoids OS command line length limits that DEFS can exceed.
1140rm -rf conftest* confdefs.h
1141# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1142echo >confdefs.h
1143
daa2886c
AJ
1144# Predefined preprocessor variables.
1145
1146cat >>confdefs.h <<_ACEOF
1147#define PACKAGE_NAME "$PACKAGE_NAME"
1148_ACEOF
1149
1150
1151cat >>confdefs.h <<_ACEOF
1152#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1153_ACEOF
1154
1155
1156cat >>confdefs.h <<_ACEOF
1157#define PACKAGE_VERSION "$PACKAGE_VERSION"
1158_ACEOF
1159
1160
1161cat >>confdefs.h <<_ACEOF
1162#define PACKAGE_STRING "$PACKAGE_STRING"
1163_ACEOF
1164
1165
1166cat >>confdefs.h <<_ACEOF
1167#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1168_ACEOF
1169
1170
f5818d2f 1171# Let the site file select an alternate cache file if it wants to.
e2991ea7
AJ
1172# Prefer explicitly selected file to automatically selected ones.
1173if test -z "$CONFIG_SITE"; then
1174 if test "x$prefix" != xNONE; then
1175 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1176 else
1177 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1178 fi
1179fi
1180for ac_site_file in $CONFIG_SITE; do
1181 if test -r "$ac_site_file"; then
daa2886c 1182 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
f5818d2f 1183echo "$as_me: loading site script $ac_site_file" >&6;}
daa2886c 1184 sed 's/^/| /' "$ac_site_file" >&5
e2991ea7
AJ
1185 . "$ac_site_file"
1186 fi
1187done
1188
1189if test -r "$cache_file"; then
f5818d2f
AJ
1190 # Some versions of bash will fail to source /dev/null (special
1191 # files actually), so we avoid doing that.
1192 if test -f "$cache_file"; then
daa2886c 1193 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
f5818d2f
AJ
1194echo "$as_me: loading cache $cache_file" >&6;}
1195 case $cache_file in
1196 [\\/]* | ?:[\\/]* ) . $cache_file;;
1197 *) . ./$cache_file;;
1198 esac
1199 fi
e2991ea7 1200else
daa2886c 1201 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
f5818d2f
AJ
1202echo "$as_me: creating cache $cache_file" >&6;}
1203 >$cache_file
1204fi
1205
1206# Check that the precious variables saved in the cache have kept the same
1207# value.
1208ac_cache_corrupted=false
1209for ac_var in `(set) 2>&1 |
1210 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1211 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1212 eval ac_new_set=\$ac_env_${ac_var}_set
1213 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1214 eval ac_new_val="\$ac_env_${ac_var}_value"
1215 case $ac_old_set,$ac_new_set in
1216 set,)
daa2886c 1217 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
f5818d2f
AJ
1218echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1219 ac_cache_corrupted=: ;;
1220 ,set)
daa2886c 1221 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
f5818d2f
AJ
1222echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1223 ac_cache_corrupted=: ;;
1224 ,);;
1225 *)
1226 if test "x$ac_old_val" != "x$ac_new_val"; then
daa2886c 1227 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
f5818d2f 1228echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
daa2886c 1229 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
f5818d2f 1230echo "$as_me: former value: $ac_old_val" >&2;}
daa2886c 1231 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
f5818d2f
AJ
1232echo "$as_me: current value: $ac_new_val" >&2;}
1233 ac_cache_corrupted=:
1234 fi;;
1235 esac
daa2886c 1236 # Pass precious variables to config.status.
f5818d2f
AJ
1237 if test "$ac_new_set" = set; then
1238 case $ac_new_val in
1239 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
daa2886c
AJ
1240 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1241 *) ac_arg=$ac_var=$ac_new_val ;;
1242 esac
1243 case " $ac_configure_args " in
1244 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1245 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
f5818d2f
AJ
1246 esac
1247 fi
1248done
1249if $ac_cache_corrupted; then
daa2886c 1250 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
f5818d2f 1251echo "$as_me: error: changes in the environment can compromise the build" >&2;}
daa2886c 1252 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
f5818d2f
AJ
1253echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1254 { (exit 1); exit 1; }; }
e2991ea7
AJ
1255fi
1256
1257ac_ext=c
b817f4fb 1258ac_cpp='$CPP $CPPFLAGS'
f5818d2f
AJ
1259ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1260ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1261ac_compiler_gnu=$ac_cv_c_compiler_gnu
1262
daa2886c
AJ
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
e2991ea7 1288
11af04e3
AJ
1289
1290 ac_config_headers="$ac_config_headers include/config.h"
18f92e76 1291
d7d4fdf8
AJ
1292ac_aux_dir=
1293for ac_dir in tools $srcdir/tools; do
1294 if test -f $ac_dir/install-sh; then
1295 ac_aux_dir=$ac_dir
1296 ac_install_sh="$ac_aux_dir/install-sh -c"
1297 break
1298 elif test -f $ac_dir/install.sh; then
1299 ac_aux_dir=$ac_dir
1300 ac_install_sh="$ac_aux_dir/install.sh -c"
1301 break
f5818d2f
AJ
1302 elif test -f $ac_dir/shtool; then
1303 ac_aux_dir=$ac_dir
1304 ac_install_sh="$ac_aux_dir/shtool install -c"
1305 break
d7d4fdf8
AJ
1306 fi
1307done
1308if test -z "$ac_aux_dir"; then
daa2886c 1309 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&5
f5818d2f
AJ
1310echo "$as_me: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&2;}
1311 { (exit 1); exit 1; }; }
d7d4fdf8 1312fi
f5818d2f
AJ
1313ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1314ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1315ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
ff8331ea 1316
daa2886c
AJ
1317
1318
c728efc3
AJ
1319# Check whether --enable-win16 or --disable-win16 was given.
1320if test "${enable_win16+set}" = set; then
1321 enableval="$enable_win16"
1322
1323fi;
f90efa9c
AJ
1324# Check whether --enable-debug or --disable-debug was given.
1325if test "${enable_debug+set}" = set; then
1326 enableval="$enable_debug"
f90efa9c 1327
f5818d2f
AJ
1328fi;
1329# Check whether --enable-trace or --disable-trace was given.
1330if test "${enable_trace+set}" = set; then
1331 enableval="$enable_trace"
f90efa9c 1332
f5818d2f 1333fi;
b8074991
AJ
1334
1335
1336# Check whether --with-opengl or --without-opengl was given.
1337if test "${with_opengl+set}" = set; then
1338 withval="$with_opengl"
f90efa9c 1339
f5818d2f 1340fi;
f90efa9c 1341
5e5ad531
PS
1342# Check whether --with-curses or --without-curses was given.
1343if test "${with_curses+set}" = set; then
1344 withval="$with_curses"
5e5ad531 1345
f5818d2f 1346fi;
5e5ad531 1347
fc01b729
AJ
1348# Check whether --with-wine-tools or --without-wine-tools was given.
1349if test "${with_wine_tools+set}" = set; then
1350 withval="$with_wine_tools"
1351
1352fi;
1353
c728efc3
AJ
1354WIN16_FILES="\$(WIN16_FILES)"
1355
1356WIN16_INSTALL="\$(WIN16_INSTALL)"
1357
1358if test "x$enable_win16" = "xno"
1359then
1360 WIN16_FILES=""
1361 WIN16_INSTALL=""
1362fi
f5818d2f
AJ
1363if test "x$enable_debug" = "xno"
1364then
b7258bef 1365
daa2886c 1366cat >>confdefs.h <<\_ACEOF
f5818d2f 1367#define NO_DEBUG_MSGS 1
daa2886c 1368_ACEOF
b7258bef 1369
ed2f19a6 1370fi
f5818d2f 1371if test "x$enable_trace" = "xno" -o "x$enable_debug" = "xno"
ed2f19a6 1372then
a0b2b1d0 1373
daa2886c 1374cat >>confdefs.h <<\_ACEOF
f5818d2f 1375#define NO_TRACE_MSGS 1
daa2886c 1376_ACEOF
f5818d2f
AJ
1377
1378fi
1379
daa2886c 1380
f5818d2f
AJ
1381# Make sure we can run config.sub.
1382$ac_config_sub sun4 >/dev/null 2>&1 ||
daa2886c 1383 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
f5818d2f
AJ
1384echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1385 { (exit 1); exit 1; }; }
1386
daa2886c 1387echo "$as_me:$LINENO: checking build system type" >&5
f5818d2f
AJ
1388echo $ECHO_N "checking build system type... $ECHO_C" >&6
1389if test "${ac_cv_build+set}" = set; then
1390 echo $ECHO_N "(cached) $ECHO_C" >&6
1391else
1392 ac_cv_build_alias=$build_alias
1393test -z "$ac_cv_build_alias" &&
1394 ac_cv_build_alias=`$ac_config_guess`
1395test -z "$ac_cv_build_alias" &&
daa2886c 1396 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
f5818d2f
AJ
1397echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1398 { (exit 1); exit 1; }; }
1399ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
daa2886c
AJ
1400 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1401echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
f5818d2f
AJ
1402 { (exit 1); exit 1; }; }
1403
1404fi
daa2886c 1405echo "$as_me:$LINENO: result: $ac_cv_build" >&5
f5818d2f
AJ
1406echo "${ECHO_T}$ac_cv_build" >&6
1407build=$ac_cv_build
1408build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1409build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1410build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1411
daa2886c
AJ
1412
1413echo "$as_me:$LINENO: checking host system type" >&5
f5818d2f
AJ
1414echo $ECHO_N "checking host system type... $ECHO_C" >&6
1415if test "${ac_cv_host+set}" = set; then
1416 echo $ECHO_N "(cached) $ECHO_C" >&6
1417else
1418 ac_cv_host_alias=$host_alias
1419test -z "$ac_cv_host_alias" &&
1420 ac_cv_host_alias=$ac_cv_build_alias
1421ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
daa2886c 1422 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
f5818d2f
AJ
1423echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1424 { (exit 1); exit 1; }; }
1425
1426fi
daa2886c 1427echo "$as_me:$LINENO: result: $ac_cv_host" >&5
f5818d2f
AJ
1428echo "${ECHO_T}$ac_cv_host" >&6
1429host=$ac_cv_host
1430host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1431host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1432host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1433
daa2886c 1434
e24bcc77
AJ
1435echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1436echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
f5818d2f
AJ
1437set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1438if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1439 echo $ECHO_N "(cached) $ECHO_C" >&6
1440else
daa2886c 1441 cat >conftest.make <<\_ACEOF
e2991ea7 1442all:
e24bcc77 1443 @echo 'ac_maketemp="$(MAKE)"'
daa2886c 1444_ACEOF
e2991ea7 1445# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
f5818d2f 1446eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
e2991ea7
AJ
1447if test -n "$ac_maketemp"; then
1448 eval ac_cv_prog_make_${ac_make}_set=yes
1449else
1450 eval ac_cv_prog_make_${ac_make}_set=no
1451fi
f5818d2f 1452rm -f conftest.make
e2991ea7
AJ
1453fi
1454if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
daa2886c 1455 echo "$as_me:$LINENO: result: yes" >&5
f5818d2f 1456echo "${ECHO_T}yes" >&6
e2991ea7
AJ
1457 SET_MAKE=
1458else
daa2886c 1459 echo "$as_me:$LINENO: result: no" >&5
f5818d2f 1460echo "${ECHO_T}no" >&6
e2991ea7
AJ
1461 SET_MAKE="MAKE=${MAKE-make}"
1462fi
1463
f5818d2f
AJ
1464ac_ext=c
1465ac_cpp='$CPP $CPPFLAGS'
1466ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1467ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1468ac_compiler_gnu=$ac_cv_c_compiler_gnu
1469if test -n "$ac_tool_prefix"; then
1470 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1471set dummy ${ac_tool_prefix}gcc; ac_word=$2
daa2886c 1472echo "$as_me:$LINENO: checking for $ac_word" >&5
f5818d2f
AJ
1473echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1474if test "${ac_cv_prog_CC+set}" = set; then
1475 echo $ECHO_N "(cached) $ECHO_C" >&6
1476else
1477 if test -n "$CC"; then
1478 ac_cv_prog_CC="$CC" # Let the user override the test.
1479else
daa2886c
AJ
1480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1481for as_dir in $PATH
1482do
1483 IFS=$as_save_IFS
1484 test -z "$as_dir" && as_dir=.
1485 for ac_exec_ext in '' $ac_executable_extensions; do
1486 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1487 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1489 break 2
1490 fi
1491done
f5818d2f
AJ
1492done
1493
1494fi
1495fi
1496CC=$ac_cv_prog_CC
1497if test -n "$CC"; then
daa2886c 1498 echo "$as_me:$LINENO: result: $CC" >&5
f5818d2f
AJ
1499echo "${ECHO_T}$CC" >&6
1500else
daa2886c 1501 echo "$as_me:$LINENO: result: no" >&5
f5818d2f
AJ
1502echo "${ECHO_T}no" >&6
1503fi
1504
1505fi
1506if test -z "$ac_cv_prog_CC"; then
1507 ac_ct_CC=$CC
1508 # Extract the first word of "gcc", so it can be a program name with args.
e2991ea7 1509set dummy gcc; ac_word=$2
daa2886c 1510echo "$as_me:$LINENO: checking for $ac_word" >&5
f5818d2f
AJ
1511echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1512if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1513 echo $ECHO_N "(cached) $ECHO_C" >&6
1514else
1515 if test -n "$ac_ct_CC"; then
1516 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1517else
daa2886c
AJ
1518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1519for as_dir in $PATH
1520do
1521 IFS=$as_save_IFS
1522 test -z "$as_dir" && as_dir=.
1523 for ac_exec_ext in '' $ac_executable_extensions; do
1524 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1525 ac_cv_prog_ac_ct_CC="gcc"
1526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1527 break 2
1528 fi
1529done
f5818d2f
AJ
1530done
1531
1532fi
1533fi
1534ac_ct_CC=$ac_cv_prog_ac_ct_CC
1535if test -n "$ac_ct_CC"; then
daa2886c 1536 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
f5818d2f
AJ
1537echo "${ECHO_T}$ac_ct_CC" >&6
1538else
daa2886c 1539 echo "$as_me:$LINENO: result: no" >&5
f5818d2f
AJ
1540echo "${ECHO_T}no" >&6
1541fi
1542
1543 CC=$ac_ct_CC
1544else
1545 CC="$ac_cv_prog_CC"
1546fi
1547
1548if test -z "$CC"; then
1549 if test -n "$ac_tool_prefix"; then
1550 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1551set dummy ${ac_tool_prefix}cc; ac_word=$2
daa2886c 1552echo "$as_me:$LINENO: checking for $ac_word" >&5
f5818d2f
AJ
1553echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1554if test "${ac_cv_prog_CC+set}" = set; then
1555 echo $ECHO_N "(cached) $ECHO_C" >&6
e2991ea7
AJ
1556else
1557 if test -n "$CC"; then
1558 ac_cv_prog_CC="$CC" # Let the user override the test.
1559else
daa2886c
AJ
1560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1561for as_dir in $PATH
1562do
1563 IFS=$as_save_IFS
1564 test -z "$as_dir" && as_dir=.
1565 for ac_exec_ext in '' $ac_executable_extensions; do
1566 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1567 ac_cv_prog_CC="${ac_tool_prefix}cc"
1568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1569 break 2
1570 fi
1571done
f5818d2f
AJ
1572done
1573
e2991ea7
AJ
1574fi
1575fi
f5818d2f 1576CC=$ac_cv_prog_CC
e2991ea7 1577if test -n "$CC"; then
daa2886c 1578 echo "$as_me:$LINENO: result: $CC" >&5
f5818d2f
AJ
1579echo "${ECHO_T}$CC" >&6
1580else
daa2886c 1581 echo "$as_me:$LINENO: result: no" >&5
f5818d2f
AJ
1582echo "${ECHO_T}no" >&6
1583fi
1584
1585fi
1586if test -z "$ac_cv_prog_CC"; then
1587 ac_ct_CC=$CC
1588 # Extract the first word of "cc", so it can be a program name with args.
1589set dummy cc; ac_word=$2
daa2886c 1590echo "$as_me:$LINENO: checking for $ac_word" >&5
f5818d2f
AJ
1591echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1592if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1593 echo $ECHO_N "(cached) $ECHO_C" >&6
1594else
1595 if test -n "$ac_ct_CC"; then
1596 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1597else
daa2886c
AJ
1598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1599for as_dir in $PATH
1600do
1601 IFS=$as_save_IFS
1602 test -z "$as_dir" && as_dir=.
1603 for ac_exec_ext in '' $ac_executable_extensions; do
1604 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1605 ac_cv_prog_ac_ct_CC="cc"
1606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1607 break 2
1608 fi
1609done
f5818d2f
AJ
1610done
1611
1612fi
1613fi
1614ac_ct_CC=$ac_cv_prog_ac_ct_CC
1615if test -n "$ac_ct_CC"; then
daa2886c 1616 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
f5818d2f
AJ
1617echo "${ECHO_T}$ac_ct_CC" >&6
1618else
daa2886c 1619 echo "$as_me:$LINENO: result: no" >&5
f5818d2f
AJ
1620echo "${ECHO_T}no" >&6
1621fi
1622
1623 CC=$ac_ct_CC
e2991ea7 1624else
f5818d2f 1625 CC="$ac_cv_prog_CC"
e2991ea7
AJ
1626fi
1627
f5818d2f 1628fi
b817f4fb
AJ
1629if test -z "$CC"; then
1630 # Extract the first word of "cc", so it can be a program name with args.
1631set dummy cc; ac_word=$2
daa2886c 1632echo "$as_me:$LINENO: checking for $ac_word" >&5
f5818d2f
AJ
1633echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1634if test "${ac_cv_prog_CC+set}" = set; then
1635 echo $ECHO_N "(cached) $ECHO_C" >&6
b817f4fb
AJ
1636else
1637 if test -n "$CC"; then
1638 ac_cv_prog_CC="$CC" # Let the user override the test.
1639else
b817f4fb 1640 ac_prog_rejected=no
daa2886c
AJ
1641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1642for as_dir in $PATH
1643do
1644 IFS=$as_save_IFS
1645 test -z "$as_dir" && as_dir=.
1646 for ac_exec_ext in '' $ac_executable_extensions; do
1647 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1648 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1649 ac_prog_rejected=yes
1650 continue
1651 fi
1652 ac_cv_prog_CC="cc"
1653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1654 break 2
1655 fi
1656done
f5818d2f
AJ
1657done
1658
b817f4fb
AJ
1659if test $ac_prog_rejected = yes; then
1660 # We found a bogon in the path, so make sure we never use it.
1661 set dummy $ac_cv_prog_CC
1662 shift
f5818d2f 1663 if test $# != 0; then
b817f4fb
AJ
1664 # We chose a different compiler from the bogus one.
1665 # However, it has the same basename, so the bogon will be chosen
1666 # first if we set CC to just the basename; use the full file name.
1667 shift
11af04e3 1668 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
b817f4fb
AJ
1669 fi
1670fi
1671fi
1672fi
f5818d2f 1673CC=$ac_cv_prog_CC
b817f4fb 1674if test -n "$CC"; then
daa2886c 1675 echo "$as_me:$LINENO: result: $CC" >&5
f5818d2f 1676echo "${ECHO_T}$CC" >&6
b817f4fb 1677else
daa2886c 1678 echo "$as_me:$LINENO: result: no" >&5
f5818d2f 1679echo "${ECHO_T}no" >&6
b817f4fb
AJ
1680fi
1681
f5818d2f
AJ
1682fi
1683if test -z "$CC"; then
1684 if test -n "$ac_tool_prefix"; then
1685 for ac_prog in cl
1686 do
1687 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1688set dummy $ac_tool_prefix$ac_prog; ac_word=$2
daa2886c 1689echo "$as_me:$LINENO: checking for $ac_word" >&5
f5818d2f
AJ
1690echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1691if test "${ac_cv_prog_CC+set}" = set; then
1692 echo $ECHO_N "(cached) $ECHO_C" >&6
1693else
1694 if test -n "$CC"; then
18ad24a7
EP
1695 ac_cv_prog_CC="$CC" # Let the user override the test.
1696else
daa2886c
AJ
1697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1698for as_dir in $PATH
1699do
1700 IFS=$as_save_IFS
1701 test -z "$as_dir" && as_dir=.
1702 for ac_exec_ext in '' $ac_executable_extensions; do
1703 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1704 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1706 break 2
1707 fi
1708done
f5818d2f
AJ
1709done
1710
18ad24a7
EP
1711fi
1712fi
f5818d2f 1713CC=$ac_cv_prog_CC
18ad24a7 1714if test -n "$CC"; then
daa2886c 1715 echo "$as_me:$LINENO: result: $CC" >&5
f5818d2f 1716echo "${ECHO_T}$CC" >&6
18ad24a7 1717else
daa2886c 1718 echo "$as_me:$LINENO: result: no" >&5
f5818d2f 1719echo "${ECHO_T}no" >&6
b817f4fb 1720fi
e2991ea7 1721
f5818d2f
AJ
1722 test -n "$CC" && break
1723 done
1724fi
1725if test -z "$CC"; then
1726 ac_ct_CC=$CC
1727 for ac_prog in cl
1728do
1729 # Extract the first word of "$ac_prog", so it can be a program name with args.
1730set dummy $ac_prog; ac_word=$2
daa2886c 1731echo "$as_me:$LINENO: checking for $ac_word" >&5
f5818d2f
AJ
1732echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1733if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1734 echo $ECHO_N "(cached) $ECHO_C" >&6
1735else
1736 if test -n "$ac_ct_CC"; then
1737 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1738else
daa2886c
AJ
1739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1740for as_dir in $PATH
1741do
1742 IFS=$as_save_IFS
1743 test -z "$as_dir" && as_dir=.
1744 for ac_exec_ext in '' $ac_executable_extensions; do
1745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1746 ac_cv_prog_ac_ct_CC="$ac_prog"
1747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1748 break 2
1749 fi
1750done
f5818d2f 1751done
da0cfb36 1752
f5818d2f
AJ
1753fi
1754fi
1755ac_ct_CC=$ac_cv_prog_ac_ct_CC
1756if test -n "$ac_ct_CC"; then
daa2886c 1757 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
f5818d2f
AJ
1758echo "${ECHO_T}$ac_ct_CC" >&6
1759else
daa2886c 1760 echo "$as_me:$LINENO: result: no" >&5
f5818d2f
AJ
1761echo "${ECHO_T}no" >&6
1762fi
da0cfb36 1763
f5818d2f
AJ
1764 test -n "$ac_ct_CC" && break
1765done
18ad24a7 1766
f5818d2f
AJ
1767 CC=$ac_ct_CC
1768fi
1769
1770fi
1771
daa2886c 1772
e24bcc77
AJ
1773test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1774See \`config.log' for more details." >&5
1775echo "$as_me: error: no acceptable C compiler found in \$PATH
1776See \`config.log' for more details." >&2;}
f5818d2f
AJ
1777 { (exit 1); exit 1; }; }
1778
1779# Provide some information about the compiler.
daa2886c 1780echo "$as_me:$LINENO:" \
f5818d2f
AJ
1781 "checking for C compiler version" >&5
1782ac_compiler=`set X $ac_compile; echo $2`
daa2886c 1783{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
f5818d2f
AJ
1784 (eval $ac_compiler --version </dev/null >&5) 2>&5
1785 ac_status=$?
daa2886c 1786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 1787 (exit $ac_status); }
daa2886c 1788{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
f5818d2f
AJ
1789 (eval $ac_compiler -v </dev/null >&5) 2>&5
1790 ac_status=$?
daa2886c 1791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 1792 (exit $ac_status); }
daa2886c 1793{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
f5818d2f
AJ
1794 (eval $ac_compiler -V </dev/null >&5) 2>&5
1795 ac_status=$?
daa2886c 1796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
1797 (exit $ac_status); }
1798
1799cat >conftest.$ac_ext <<_ACEOF
daa2886c 1800#line $LINENO "configure"
e24bcc77
AJ
1801/* confdefs.h. */
1802_ACEOF
1803cat confdefs.h >>conftest.$ac_ext
1804cat >>conftest.$ac_ext <<_ACEOF
1805/* end confdefs.h. */
18ad24a7 1806
f5818d2f
AJ
1807int
1808main ()
1809{
1810
1811 ;
1812 return 0;
1813}
1814_ACEOF
1815ac_clean_files_save=$ac_clean_files
e24bcc77 1816ac_clean_files="$ac_clean_files a.out a.exe b.out"
f5818d2f
AJ
1817# Try to create an executable without -o first, disregard a.out.
1818# It will help us diagnose broken compilers, and finding out an intuition
1819# of exeext.
daa2886c 1820echo "$as_me:$LINENO: checking for C compiler default output" >&5
f5818d2f
AJ
1821echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1822ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
daa2886c 1823if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
f5818d2f
AJ
1824 (eval $ac_link_default) 2>&5
1825 ac_status=$?
daa2886c 1826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
1827 (exit $ac_status); }; then
1828 # Find the output, starting from the most likely. This scheme is
1829# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1830# resort.
daa2886c
AJ
1831
1832# Be careful to initialize this variable, since it used to be cached.
1833# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1834ac_cv_exeext=
e24bcc77
AJ
1835# b.out is created by i960 compilers.
1836for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1837do
11af04e3 1838 test -f "$ac_file" || continue
f5818d2f 1839 case $ac_file in
e24bcc77
AJ
1840 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1841 ;;
1842 conftest.$ac_ext )
1843 # This is the source file.
1844 ;;
1845 [ab].out )
1846 # We found the default executable, but exeext='' is most
1847 # certainly right.
1848 break;;
1849 *.* )
1850 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1851 # FIXME: I believe we export ac_cv_exeext for Libtool,
1852 # but it would be cool to find out if it's true. Does anybody
1853 # maintain Libtool? --akim.
1854 export ac_cv_exeext
1855 break;;
1856 * )
1857 break;;
f5818d2f
AJ
1858 esac
1859done
1860else
1861 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
1862sed 's/^/| /' conftest.$ac_ext >&5
1863
11af04e3 1864{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
e24bcc77 1865See \`config.log' for more details." >&5
11af04e3 1866echo "$as_me: error: C compiler cannot create executables
e24bcc77 1867See \`config.log' for more details." >&2;}
f5818d2f
AJ
1868 { (exit 77); exit 77; }; }
1869fi
1870
1871ac_exeext=$ac_cv_exeext
daa2886c 1872echo "$as_me:$LINENO: result: $ac_file" >&5
f5818d2f
AJ
1873echo "${ECHO_T}$ac_file" >&6
1874
1875# Check the compiler produces executables we can run. If not, either
1876# the compiler is broken, or we cross compile.
daa2886c 1877echo "$as_me:$LINENO: checking whether the C compiler works" >&5
f5818d2f
AJ
1878echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1879# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1880# If not cross compiling, check that we can run a simple program.
1881if test "$cross_compiling" != yes; then
1882 if { ac_try='./$ac_file'
daa2886c 1883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
1884 (eval $ac_try) 2>&5
1885 ac_status=$?
daa2886c 1886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
1887 (exit $ac_status); }; }; then
1888 cross_compiling=no
7e6ae4ba 1889 else
f5818d2f
AJ
1890 if test "$cross_compiling" = maybe; then
1891 cross_compiling=yes
1892 else
daa2886c 1893 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
e24bcc77
AJ
1894If you meant to cross compile, use \`--host'.
1895See \`config.log' for more details." >&5
f5818d2f 1896echo "$as_me: error: cannot run C compiled programs.
e24bcc77
AJ
1897If you meant to cross compile, use \`--host'.
1898See \`config.log' for more details." >&2;}
f5818d2f
AJ
1899 { (exit 1); exit 1; }; }
1900 fi
7e6ae4ba 1901 fi
f5818d2f 1902fi
daa2886c 1903echo "$as_me:$LINENO: result: yes" >&5
f5818d2f
AJ
1904echo "${ECHO_T}yes" >&6
1905
e24bcc77 1906rm -f a.out a.exe conftest$ac_cv_exeext b.out
f5818d2f
AJ
1907ac_clean_files=$ac_clean_files_save
1908# Check the compiler produces executables we can run. If not, either
1909# the compiler is broken, or we cross compile.
daa2886c 1910echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
f5818d2f 1911echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
daa2886c 1912echo "$as_me:$LINENO: result: $cross_compiling" >&5
f5818d2f
AJ
1913echo "${ECHO_T}$cross_compiling" >&6
1914
daa2886c
AJ
1915echo "$as_me:$LINENO: checking for suffix of executables" >&5
1916echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1917if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
1918 (eval $ac_link) 2>&5
1919 ac_status=$?
daa2886c 1920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
1921 (exit $ac_status); }; then
1922 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1923# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1924# work properly (i.e., refer to `conftest.exe'), while it won't with
1925# `rm'.
11af04e3
AJ
1926for ac_file in conftest.exe conftest conftest.*; do
1927 test -f "$ac_file" || continue
f5818d2f 1928 case $ac_file in
11af04e3 1929 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
f5818d2f
AJ
1930 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1931 export ac_cv_exeext
1932 break;;
1933 * ) break;;
1934 esac
1935done
da0cfb36 1936else
e24bcc77
AJ
1937 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1938See \`config.log' for more details." >&5
1939echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1940See \`config.log' for more details." >&2;}
f5818d2f 1941 { (exit 1); exit 1; }; }
da0cfb36 1942fi
da0cfb36 1943
f5818d2f 1944rm -f conftest$ac_cv_exeext
daa2886c 1945echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
f5818d2f 1946echo "${ECHO_T}$ac_cv_exeext" >&6
da0cfb36 1947
f5818d2f
AJ
1948rm -f conftest.$ac_ext
1949EXEEXT=$ac_cv_exeext
1950ac_exeext=$EXEEXT
daa2886c
AJ
1951echo "$as_me:$LINENO: checking for suffix of object files" >&5
1952echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
f5818d2f
AJ
1953if test "${ac_cv_objext+set}" = set; then
1954 echo $ECHO_N "(cached) $ECHO_C" >&6
e2991ea7 1955else
f5818d2f 1956 cat >conftest.$ac_ext <<_ACEOF
daa2886c 1957#line $LINENO "configure"
e24bcc77
AJ
1958/* confdefs.h. */
1959_ACEOF
1960cat confdefs.h >>conftest.$ac_ext
1961cat >>conftest.$ac_ext <<_ACEOF
1962/* end confdefs.h. */
d7d4fdf8 1963
f5818d2f
AJ
1964int
1965main ()
1966{
da0cfb36 1967
f5818d2f
AJ
1968 ;
1969 return 0;
1970}
1971_ACEOF
1972rm -f conftest.o conftest.obj
daa2886c 1973if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
1974 (eval $ac_compile) 2>&5
1975 ac_status=$?
daa2886c 1976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
1977 (exit $ac_status); }; then
1978 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1979 case $ac_file in
11af04e3 1980 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
f5818d2f
AJ
1981 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1982 break;;
1983 esac
1984done
18ad24a7 1985else
f5818d2f 1986 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
1987sed 's/^/| /' conftest.$ac_ext >&5
1988
1989{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1990See \`config.log' for more details." >&5
1991echo "$as_me: error: cannot compute suffix of object files: cannot compile
1992See \`config.log' for more details." >&2;}
f5818d2f 1993 { (exit 1); exit 1; }; }
18ad24a7
EP
1994fi
1995
f5818d2f
AJ
1996rm -f conftest.$ac_cv_objext conftest.$ac_ext
1997fi
daa2886c 1998echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
f5818d2f
AJ
1999echo "${ECHO_T}$ac_cv_objext" >&6
2000OBJEXT=$ac_cv_objext
2001ac_objext=$OBJEXT
daa2886c 2002echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
f5818d2f
AJ
2003echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2004if test "${ac_cv_c_compiler_gnu+set}" = set; then
2005 echo $ECHO_N "(cached) $ECHO_C" >&6
e2991ea7 2006else
f5818d2f 2007 cat >conftest.$ac_ext <<_ACEOF
daa2886c 2008#line $LINENO "configure"
e24bcc77
AJ
2009/* confdefs.h. */
2010_ACEOF
2011cat confdefs.h >>conftest.$ac_ext
2012cat >>conftest.$ac_ext <<_ACEOF
2013/* end confdefs.h. */
f5818d2f
AJ
2014
2015int
2016main ()
2017{
2018#ifndef __GNUC__
2019 choke me
2020#endif
2021
2022 ;
2023 return 0;
2024}
2025_ACEOF
2026rm -f conftest.$ac_objext
daa2886c 2027if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
2028 (eval $ac_compile) 2>&5
2029 ac_status=$?
daa2886c 2030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
2031 (exit $ac_status); } &&
2032 { ac_try='test -s conftest.$ac_objext'
daa2886c 2033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
2034 (eval $ac_try) 2>&5
2035 ac_status=$?
daa2886c 2036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
2037 (exit $ac_status); }; }; then
2038 ac_compiler_gnu=yes
2039else
2040 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
2041sed 's/^/| /' conftest.$ac_ext >&5
2042
f5818d2f
AJ
2043ac_compiler_gnu=no
2044fi
2045rm -f conftest.$ac_objext conftest.$ac_ext
2046ac_cv_c_compiler_gnu=$ac_compiler_gnu
2047
2048fi
daa2886c 2049echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
f5818d2f
AJ
2050echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2051GCC=`test $ac_compiler_gnu = yes && echo yes`
2052ac_test_CFLAGS=${CFLAGS+set}
2053ac_save_CFLAGS=$CFLAGS
2054CFLAGS="-g"
daa2886c 2055echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
f5818d2f
AJ
2056echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2057if test "${ac_cv_prog_cc_g+set}" = set; then
2058 echo $ECHO_N "(cached) $ECHO_C" >&6
2059else
2060 cat >conftest.$ac_ext <<_ACEOF
daa2886c 2061#line $LINENO "configure"
e24bcc77
AJ
2062/* confdefs.h. */
2063_ACEOF
2064cat confdefs.h >>conftest.$ac_ext
2065cat >>conftest.$ac_ext <<_ACEOF
2066/* end confdefs.h. */
f5818d2f
AJ
2067
2068int
2069main ()
2070{
2071
2072 ;
2073 return 0;
2074}
2075_ACEOF
2076rm -f conftest.$ac_objext
daa2886c 2077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
2078 (eval $ac_compile) 2>&5
2079 ac_status=$?
daa2886c 2080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
2081 (exit $ac_status); } &&
2082 { ac_try='test -s conftest.$ac_objext'
daa2886c 2083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
2084 (eval $ac_try) 2>&5
2085 ac_status=$?
daa2886c 2086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 2087 (exit $ac_status); }; }; then
7e6ae4ba 2088 ac_cv_prog_cc_g=yes
e2991ea7 2089else
f5818d2f 2090 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
2091sed 's/^/| /' conftest.$ac_ext >&5
2092
f5818d2f 2093ac_cv_prog_cc_g=no
e2991ea7 2094fi
f5818d2f 2095rm -f conftest.$ac_objext conftest.$ac_ext
e2991ea7 2096fi
daa2886c 2097echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
f5818d2f 2098echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
18ad24a7 2099if test "$ac_test_CFLAGS" = set; then
f5818d2f 2100 CFLAGS=$ac_save_CFLAGS
18ad24a7
EP
2101elif test $ac_cv_prog_cc_g = yes; then
2102 if test "$GCC" = yes; then
da0cfb36
AJ
2103 CFLAGS="-g -O2"
2104 else
18ad24a7 2105 CFLAGS="-g"
e2991ea7
AJ
2106 fi
2107else
18ad24a7
EP
2108 if test "$GCC" = yes; then
2109 CFLAGS="-O2"
2110 else
2111 CFLAGS=
2112 fi
e2991ea7 2113fi
11af04e3
AJ
2114echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2115echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2116if test "${ac_cv_prog_cc_stdc+set}" = set; then
2117 echo $ECHO_N "(cached) $ECHO_C" >&6
2118else
2119 ac_cv_prog_cc_stdc=no
2120ac_save_CC=$CC
2121cat >conftest.$ac_ext <<_ACEOF
2122#line $LINENO "configure"
e24bcc77
AJ
2123/* confdefs.h. */
2124_ACEOF
2125cat confdefs.h >>conftest.$ac_ext
2126cat >>conftest.$ac_ext <<_ACEOF
2127/* end confdefs.h. */
11af04e3
AJ
2128#include <stdarg.h>
2129#include <stdio.h>
2130#include <sys/types.h>
2131#include <sys/stat.h>
2132/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2133struct buf { int x; };
2134FILE * (*rcsopen) (struct buf *, struct stat *, int);
2135static char *e (p, i)
2136 char **p;
2137 int i;
2138{
2139 return p[i];
2140}
2141static char *f (char * (*g) (char **, int), char **p, ...)
2142{
2143 char *s;
2144 va_list v;
2145 va_start (v,p);
2146 s = g (p, va_arg (v,int));
2147 va_end (v);
2148 return s;
2149}
2150int test (int i, double x);
2151struct s1 {int (*f) (int a);};
2152struct s2 {int (*f) (double a);};
2153int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2154int argc;
2155char **argv;
2156int
2157main ()
2158{
2159return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2160 ;
2161 return 0;
2162}
2163_ACEOF
2164# Don't try gcc -ansi; that turns off useful extensions and
2165# breaks some systems' header files.
2166# AIX -qlanglvl=ansi
2167# Ultrix and OSF/1 -std1
2168# HP-UX 10.20 and later -Ae
2169# HP-UX older versions -Aa -D_HPUX_SOURCE
2170# SVR4 -Xc -D__EXTENSIONS__
2171for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2172do
2173 CC="$ac_save_CC $ac_arg"
2174 rm -f conftest.$ac_objext
2175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2176 (eval $ac_compile) 2>&5
2177 ac_status=$?
2178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2179 (exit $ac_status); } &&
2180 { ac_try='test -s conftest.$ac_objext'
2181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2182 (eval $ac_try) 2>&5
2183 ac_status=$?
2184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185 (exit $ac_status); }; }; then
2186 ac_cv_prog_cc_stdc=$ac_arg
2187break
2188else
2189 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
2190sed 's/^/| /' conftest.$ac_ext >&5
2191
11af04e3
AJ
2192fi
2193rm -f conftest.$ac_objext
2194done
2195rm -f conftest.$ac_ext conftest.$ac_objext
2196CC=$ac_save_CC
2197
2198fi
2199
2200case "x$ac_cv_prog_cc_stdc" in
2201 x|xno)
2202 echo "$as_me:$LINENO: result: none needed" >&5
2203echo "${ECHO_T}none needed" >&6 ;;
2204 *)
2205 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2206echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2207 CC="$CC $ac_cv_prog_cc_stdc" ;;
2208esac
2209
f5818d2f
AJ
2210# Some people use a C++ compiler to compile C. Since we use `exit',
2211# in C++ we need to declare it. In case someone uses the same compiler
2212# for both compiling C and C++ we need to have the C++ compiler decide
2213# the declaration of exit, since it's the most demanding environment.
2214cat >conftest.$ac_ext <<_ACEOF
2215#ifndef __cplusplus
2216 choke me
2217#endif
2218_ACEOF
2219rm -f conftest.$ac_objext
daa2886c 2220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
2221 (eval $ac_compile) 2>&5
2222 ac_status=$?
daa2886c 2223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
2224 (exit $ac_status); } &&
2225 { ac_try='test -s conftest.$ac_objext'
daa2886c 2226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
2227 (eval $ac_try) 2>&5
2228 ac_status=$?
daa2886c 2229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
2230 (exit $ac_status); }; }; then
2231 for ac_declaration in \
90b1c2cd 2232 '' \
f5818d2f
AJ
2233 'extern "C" void std::exit (int) throw (); using std::exit;' \
2234 'extern "C" void std::exit (int); using std::exit;' \
2235 'extern "C" void exit (int) throw ();' \
2236 'extern "C" void exit (int);' \
90b1c2cd 2237 'void exit (int);'
f5818d2f
AJ
2238do
2239 cat >conftest.$ac_ext <<_ACEOF
daa2886c 2240#line $LINENO "configure"
e24bcc77
AJ
2241/* confdefs.h. */
2242_ACEOF
2243cat confdefs.h >>conftest.$ac_ext
2244cat >>conftest.$ac_ext <<_ACEOF
2245/* end confdefs.h. */
f5818d2f 2246$ac_declaration
90b1c2cd 2247#include <stdlib.h>
f5818d2f
AJ
2248int
2249main ()
2250{
2251exit (42);
2252 ;
2253 return 0;
2254}
2255_ACEOF
2256rm -f conftest.$ac_objext
daa2886c 2257if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
2258 (eval $ac_compile) 2>&5
2259 ac_status=$?
daa2886c 2260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
2261 (exit $ac_status); } &&
2262 { ac_try='test -s conftest.$ac_objext'
daa2886c 2263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
2264 (eval $ac_try) 2>&5
2265 ac_status=$?
daa2886c 2266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
2267 (exit $ac_status); }; }; then
2268 :
2269else
2270 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
2271sed 's/^/| /' conftest.$ac_ext >&5
2272
f5818d2f
AJ
2273continue
2274fi
2275rm -f conftest.$ac_objext conftest.$ac_ext
2276 cat >conftest.$ac_ext <<_ACEOF
daa2886c 2277#line $LINENO "configure"
e24bcc77
AJ
2278/* confdefs.h. */
2279_ACEOF
2280cat confdefs.h >>conftest.$ac_ext
2281cat >>conftest.$ac_ext <<_ACEOF
2282/* end confdefs.h. */
f5818d2f
AJ
2283$ac_declaration
2284int
2285main ()
2286{
2287exit (42);
2288 ;
2289 return 0;
2290}
2291_ACEOF
2292rm -f conftest.$ac_objext
daa2886c 2293if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
2294 (eval $ac_compile) 2>&5
2295 ac_status=$?
daa2886c 2296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
2297 (exit $ac_status); } &&
2298 { ac_try='test -s conftest.$ac_objext'
daa2886c 2299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
2300 (eval $ac_try) 2>&5
2301 ac_status=$?
daa2886c 2302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
2303 (exit $ac_status); }; }; then
2304 break
2305else
2306 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
2307sed 's/^/| /' conftest.$ac_ext >&5
2308
f5818d2f
AJ
2309fi
2310rm -f conftest.$ac_objext conftest.$ac_ext
2311done
2312rm -f conftest*
2313if test -n "$ac_declaration"; then
2314 echo '#ifdef __cplusplus' >>confdefs.h
2315 echo $ac_declaration >>confdefs.h
2316 echo '#endif' >>confdefs.h
2317fi
2318
2319else
2320 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
2321sed 's/^/| /' conftest.$ac_ext >&5
2322
f5818d2f
AJ
2323fi
2324rm -f conftest.$ac_objext conftest.$ac_ext
2325ac_ext=c
2326ac_cpp='$CPP $CPPFLAGS'
2327ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2328ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2329ac_compiler_gnu=$ac_cv_c_compiler_gnu
e2991ea7 2330
f5818d2f
AJ
2331ac_ext=c
2332ac_cpp='$CPP $CPPFLAGS'
2333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2335ac_compiler_gnu=$ac_cv_c_compiler_gnu
daa2886c 2336echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
f5818d2f 2337echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
e2991ea7
AJ
2338# On Suns, sometimes $CPP names a directory.
2339if test -n "$CPP" && test -d "$CPP"; then
2340 CPP=
2341fi
2342if test -z "$CPP"; then
f5818d2f
AJ
2343 if test "${ac_cv_prog_CPP+set}" = set; then
2344 echo $ECHO_N "(cached) $ECHO_C" >&6
2345else
2346 # Double quotes because CPP needs to be expanded
2347 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2348 do
2349 ac_preproc_ok=false
2350for ac_c_preproc_warn_flag in '' yes
2351do
2352 # Use a header file that comes with gcc, so configuring glibc
2353 # with a fresh cross-compiler works.
e24bcc77
AJ
2354 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2355 # <limits.h> exists even on freestanding compilers.
e2991ea7 2356 # On the NeXT, cc -E runs the code through the compiler's parser,
f5818d2f
AJ
2357 # not just through cpp. "Syntax error" is here to catch this case.
2358 cat >conftest.$ac_ext <<_ACEOF
daa2886c 2359#line $LINENO "configure"
e24bcc77
AJ
2360/* confdefs.h. */
2361_ACEOF
2362cat confdefs.h >>conftest.$ac_ext
2363cat >>conftest.$ac_ext <<_ACEOF
2364/* end confdefs.h. */
2365#ifdef __STDC__
2366# include <limits.h>
2367#else
2368# include <assert.h>
2369#endif
f5818d2f
AJ
2370 Syntax error
2371_ACEOF
daa2886c 2372if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
f5818d2f
AJ
2373 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2374 ac_status=$?
11af04e3 2375 grep -v '^ *+' conftest.er1 >conftest.err
f5818d2f
AJ
2376 rm -f conftest.er1
2377 cat conftest.err >&5
daa2886c 2378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
2379 (exit $ac_status); } >/dev/null; then
2380 if test -s conftest.err; then
2381 ac_cpp_err=$ac_c_preproc_warn_flag
2382 else
2383 ac_cpp_err=
2384 fi
2385else
2386 ac_cpp_err=yes
2387fi
2388if test -z "$ac_cpp_err"; then
e2991ea7
AJ
2389 :
2390else
f5818d2f 2391 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
2392sed 's/^/| /' conftest.$ac_ext >&5
2393
f5818d2f
AJ
2394 # Broken: fails on valid input.
2395continue
2396fi
2397rm -f conftest.err conftest.$ac_ext
2398
2399 # OK, works on sane cases. Now check whether non-existent headers
2400 # can be detected and how.
2401 cat >conftest.$ac_ext <<_ACEOF
daa2886c 2402#line $LINENO "configure"
e24bcc77
AJ
2403/* confdefs.h. */
2404_ACEOF
2405cat confdefs.h >>conftest.$ac_ext
2406cat >>conftest.$ac_ext <<_ACEOF
2407/* end confdefs.h. */
f5818d2f
AJ
2408#include <ac_nonexistent.h>
2409_ACEOF
daa2886c 2410if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
f5818d2f
AJ
2411 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2412 ac_status=$?
11af04e3 2413 grep -v '^ *+' conftest.er1 >conftest.err
f5818d2f
AJ
2414 rm -f conftest.er1
2415 cat conftest.err >&5
daa2886c 2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
2417 (exit $ac_status); } >/dev/null; then
2418 if test -s conftest.err; then
2419 ac_cpp_err=$ac_c_preproc_warn_flag
2420 else
2421 ac_cpp_err=
2422 fi
2423else
2424 ac_cpp_err=yes
2425fi
2426if test -z "$ac_cpp_err"; then
2427 # Broken: success on invalid input.
2428continue
18ad24a7 2429else
f5818d2f 2430 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
2431sed 's/^/| /' conftest.$ac_ext >&5
2432
f5818d2f
AJ
2433 # Passes both tests.
2434ac_preproc_ok=:
2435break
2436fi
2437rm -f conftest.err conftest.$ac_ext
2438
2439done
2440# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2441rm -f conftest.err conftest.$ac_ext
2442if $ac_preproc_ok; then
2443 break
2444fi
2445
2446 done
2447 ac_cv_prog_CPP=$CPP
2448
2449fi
2450 CPP=$ac_cv_prog_CPP
2451else
2452 ac_cv_prog_CPP=$CPP
2453fi
daa2886c 2454echo "$as_me:$LINENO: result: $CPP" >&5
f5818d2f
AJ
2455echo "${ECHO_T}$CPP" >&6
2456ac_preproc_ok=false
2457for ac_c_preproc_warn_flag in '' yes
2458do
2459 # Use a header file that comes with gcc, so configuring glibc
2460 # with a fresh cross-compiler works.
e24bcc77
AJ
2461 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2462 # <limits.h> exists even on freestanding compilers.
f5818d2f
AJ
2463 # On the NeXT, cc -E runs the code through the compiler's parser,
2464 # not just through cpp. "Syntax error" is here to catch this case.
2465 cat >conftest.$ac_ext <<_ACEOF
daa2886c 2466#line $LINENO "configure"
e24bcc77
AJ
2467/* confdefs.h. */
2468_ACEOF
2469cat confdefs.h >>conftest.$ac_ext
2470cat >>conftest.$ac_ext <<_ACEOF
2471/* end confdefs.h. */
2472#ifdef __STDC__
2473# include <limits.h>
2474#else
2475# include <assert.h>
2476#endif
f5818d2f
AJ
2477 Syntax error
2478_ACEOF
daa2886c 2479if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
f5818d2f
AJ
2480 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2481 ac_status=$?
11af04e3 2482 grep -v '^ *+' conftest.er1 >conftest.err
f5818d2f
AJ
2483 rm -f conftest.er1
2484 cat conftest.err >&5
daa2886c 2485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
2486 (exit $ac_status); } >/dev/null; then
2487 if test -s conftest.err; then
2488 ac_cpp_err=$ac_c_preproc_warn_flag
2489 else
2490 ac_cpp_err=
2491 fi
2492else
2493 ac_cpp_err=yes
2494fi
2495if test -z "$ac_cpp_err"; then
e2991ea7
AJ
2496 :
2497else
f5818d2f 2498 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
2499sed 's/^/| /' conftest.$ac_ext >&5
2500
f5818d2f
AJ
2501 # Broken: fails on valid input.
2502continue
e2991ea7 2503fi
f5818d2f
AJ
2504rm -f conftest.err conftest.$ac_ext
2505
2506 # OK, works on sane cases. Now check whether non-existent headers
2507 # can be detected and how.
2508 cat >conftest.$ac_ext <<_ACEOF
daa2886c 2509#line $LINENO "configure"
e24bcc77
AJ
2510/* confdefs.h. */
2511_ACEOF
2512cat confdefs.h >>conftest.$ac_ext
2513cat >>conftest.$ac_ext <<_ACEOF
2514/* end confdefs.h. */
f5818d2f
AJ
2515#include <ac_nonexistent.h>
2516_ACEOF
daa2886c 2517if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
f5818d2f
AJ
2518 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2519 ac_status=$?
11af04e3 2520 grep -v '^ *+' conftest.er1 >conftest.err
f5818d2f
AJ
2521 rm -f conftest.er1
2522 cat conftest.err >&5
daa2886c 2523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
2524 (exit $ac_status); } >/dev/null; then
2525 if test -s conftest.err; then
2526 ac_cpp_err=$ac_c_preproc_warn_flag
2527 else
2528 ac_cpp_err=
2529 fi
2530else
2531 ac_cpp_err=yes
18ad24a7 2532fi
f5818d2f
AJ
2533if test -z "$ac_cpp_err"; then
2534 # Broken: success on invalid input.
2535continue
2536else
2537 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
2538sed 's/^/| /' conftest.$ac_ext >&5
2539
f5818d2f
AJ
2540 # Passes both tests.
2541ac_preproc_ok=:
2542break
e2991ea7 2543fi
f5818d2f
AJ
2544rm -f conftest.err conftest.$ac_ext
2545
2546done
2547# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2548rm -f conftest.err conftest.$ac_ext
2549if $ac_preproc_ok; then
2550 :
e2991ea7 2551else
e24bcc77
AJ
2552 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2553See \`config.log' for more details." >&5
2554echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2555See \`config.log' for more details." >&2;}
f5818d2f 2556 { (exit 1); exit 1; }; }
e2991ea7 2557fi
e2991ea7 2558
f5818d2f
AJ
2559ac_ext=c
2560ac_cpp='$CPP $CPPFLAGS'
2561ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2562ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2563ac_compiler_gnu=$ac_cv_c_compiler_gnu
2564
daa2886c 2565
fc01b729
AJ
2566echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
2567echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6
2568if test "${wine_cv_toolsdir+set}" = set; then
2569 echo $ECHO_N "(cached) $ECHO_C" >&6
2570else
2571 if test -z "$with_wine_tools"; then
2572 if test "$cross_compiling" = "yes"; then
2573 { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
2574echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
2575 { (exit 1); exit 1; }; }
2576 else
2577 wine_cv_toolsdir="\$(TOPOBJDIR)"
2578 fi
2579 elif test -d "$with_wine_tools/tools/winebuild"; then
2580 case $with_wine_tools in
2581 /*) wine_cv_toolsdir="$with_wine_tools" ;;
2582 *) wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
2583 esac
2584 else
2585 { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
2586echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
2587 { (exit 1); exit 1; }; }
2588 fi
2589fi
2590echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
2591echo "${ECHO_T}$wine_cv_toolsdir" >&6
2592TOOLSDIR=$wine_cv_toolsdir
2593
2594
2595
daa2886c
AJ
2596
2597echo "$as_me:$LINENO: checking for X" >&5
f5818d2f 2598echo $ECHO_N "checking for X... $ECHO_C" >&6
e2991ea7 2599
daa2886c 2600
e2991ea7 2601# Check whether --with-x or --without-x was given.
d7d4fdf8
AJ
2602if test "${with_x+set}" = set; then
2603 withval="$with_x"
e2991ea7 2604
f5818d2f 2605fi;
b817f4fb 2606# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
e2991ea7 2607if test "x$with_x" = xno; then
b817f4fb
AJ
2608 # The user explicitly disabled X.
2609 have_x=disabled
e2991ea7
AJ
2610else
2611 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
b817f4fb
AJ
2612 # Both variables are already set.
2613 have_x=yes
e2991ea7 2614 else
f5818d2f
AJ
2615 if test "${ac_cv_have_x+set}" = set; then
2616 echo $ECHO_N "(cached) $ECHO_C" >&6
e2991ea7
AJ
2617else
2618 # One or both of the vars are not set, and there is no cached value.
f5818d2f
AJ
2619ac_x_includes=no ac_x_libraries=no
2620rm -fr conftest.dir
2621if mkdir conftest.dir; then
2622 cd conftest.dir
e2991ea7 2623 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
daa2886c 2624 cat >Imakefile <<'_ACEOF'
e2991ea7
AJ
2625acfindx:
2626 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
daa2886c 2627_ACEOF
e2991ea7 2628 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
e2991ea7 2629 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
d7d4fdf8 2630 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
e2991ea7
AJ
2631 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2632 for ac_extension in a so sl; do
2633 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
f5818d2f 2634 test -f $ac_im_libdir/libX11.$ac_extension; then
e2991ea7
AJ
2635 ac_im_usrlibdir=$ac_im_libdir; break
2636 fi
2637 done
da0cfb36
AJ
2638 # Screen out bogus values from the imake configuration. They are
2639 # bogus both because they are the default anyway, and because
2640 # using them would break gcc on systems where it needs fixed includes.
f5818d2f 2641 case $ac_im_incroot in
e2991ea7 2642 /usr/include) ;;
f5818d2f 2643 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
e2991ea7 2644 esac
f5818d2f 2645 case $ac_im_usrlibdir in
e2991ea7 2646 /usr/lib | /lib) ;;
f5818d2f 2647 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
e2991ea7
AJ
2648 esac
2649 fi
2650 cd ..
f5818d2f 2651 rm -fr conftest.dir
e2991ea7
AJ
2652fi
2653
f5818d2f
AJ
2654# Standard set of common directories for X headers.
2655# Check X11 before X11Rn because it is often a symlink to the current release.
2656ac_x_header_dirs='
2657/usr/X11/include
2658/usr/X11R6/include
2659/usr/X11R5/include
2660/usr/X11R4/include
2661
2662/usr/include/X11
2663/usr/include/X11R6
2664/usr/include/X11R5
2665/usr/include/X11R4
2666
2667/usr/local/X11/include
2668/usr/local/X11R6/include
2669/usr/local/X11R5/include
2670/usr/local/X11R4/include
2671
2672/usr/local/include/X11
2673/usr/local/include/X11R6
2674/usr/local/include/X11R5
2675/usr/local/include/X11R4
2676
2677/usr/X386/include
2678/usr/x386/include
2679/usr/XFree86/include/X11
2680
2681/usr/include
2682/usr/local/include
2683/usr/unsupported/include
2684/usr/athena/include
2685/usr/local/x11r5/include
2686/usr/lpp/Xamples/include
2687
2688/usr/openwin/include
2689/usr/openwin/share/include'
2690
2691if test "$ac_x_includes" = no; then
2692 # Guess where to find include files, by looking for Intrinsic.h.
b817f4fb 2693 # First, try using that file with no special directory specified.
f5818d2f 2694 cat >conftest.$ac_ext <<_ACEOF
daa2886c 2695#line $LINENO "configure"
e24bcc77
AJ
2696/* confdefs.h. */
2697_ACEOF
2698cat confdefs.h >>conftest.$ac_ext
2699cat >>conftest.$ac_ext <<_ACEOF
2700/* end confdefs.h. */
f5818d2f
AJ
2701#include <X11/Intrinsic.h>
2702_ACEOF
daa2886c 2703if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
f5818d2f
AJ
2704 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2705 ac_status=$?
11af04e3 2706 grep -v '^ *+' conftest.er1 >conftest.err
f5818d2f
AJ
2707 rm -f conftest.er1
2708 cat conftest.err >&5
daa2886c 2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
2710 (exit $ac_status); } >/dev/null; then
2711 if test -s conftest.err; then
2712 ac_cpp_err=$ac_c_preproc_warn_flag
2713 else
2714 ac_cpp_err=
2715 fi
2716else
2717 ac_cpp_err=yes
2718fi
2719if test -z "$ac_cpp_err"; then
b817f4fb
AJ
2720 # We can compile using X headers with no special include directory.
2721ac_x_includes=
e2991ea7 2722else
f5818d2f 2723 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
2724sed 's/^/| /' conftest.$ac_ext >&5
2725
f5818d2f
AJ
2726 for ac_dir in $ac_x_header_dirs; do
2727 if test -r "$ac_dir/X11/Intrinsic.h"; then
2728 ac_x_includes=$ac_dir
2729 break
2730 fi
2731done
e2991ea7 2732fi
f5818d2f
AJ
2733rm -f conftest.err conftest.$ac_ext
2734fi # $ac_x_includes = no
b817f4fb 2735
f5818d2f 2736if test "$ac_x_libraries" = no; then
b817f4fb 2737 # Check for the libraries.
b817f4fb
AJ
2738 # See if we find them without any special options.
2739 # Don't add to $LIBS permanently.
f5818d2f
AJ
2740 ac_save_LIBS=$LIBS
2741 LIBS="-lXt $LIBS"
2742 cat >conftest.$ac_ext <<_ACEOF
daa2886c 2743#line $LINENO "configure"
e24bcc77
AJ
2744/* confdefs.h. */
2745_ACEOF
2746cat confdefs.h >>conftest.$ac_ext
2747cat >>conftest.$ac_ext <<_ACEOF
2748/* end confdefs.h. */
f5818d2f
AJ
2749#include <X11/Intrinsic.h>
2750int
2751main ()
2752{
2753XtMalloc (0)
2754 ;
2755 return 0;
2756}
2757_ACEOF
2758rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 2759if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
2760 (eval $ac_link) 2>&5
2761 ac_status=$?
daa2886c 2762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
2763 (exit $ac_status); } &&
2764 { ac_try='test -s conftest$ac_exeext'
daa2886c 2765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
2766 (eval $ac_try) 2>&5
2767 ac_status=$?
daa2886c 2768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
2769 (exit $ac_status); }; }; then
2770 LIBS=$ac_save_LIBS
b817f4fb
AJ
2771# We can link X programs with no special library path.
2772ac_x_libraries=
e2991ea7 2773else
f5818d2f 2774 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
2775sed 's/^/| /' conftest.$ac_ext >&5
2776
f5818d2f
AJ
2777LIBS=$ac_save_LIBS
2778for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
e2991ea7 2779do
f5818d2f 2780 # Don't even attempt the hair of trying to link an X program!
e2991ea7 2781 for ac_extension in a so sl; do
f5818d2f 2782 if test -r $ac_dir/libXt.$ac_extension; then
b817f4fb 2783 ac_x_libraries=$ac_dir
e2991ea7
AJ
2784 break 2
2785 fi
2786 done
2787done
2788fi
f5818d2f
AJ
2789rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2790fi # $ac_x_libraries = no
b817f4fb 2791
f5818d2f 2792if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
b817f4fb
AJ
2793 # Didn't find X anywhere. Cache the known absence of X.
2794 ac_cv_have_x="have_x=no"
e2991ea7 2795else
b817f4fb
AJ
2796 # Record where we found X for the cache.
2797 ac_cv_have_x="have_x=yes \
2798 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
e2991ea7
AJ
2799fi
2800fi
f5818d2f 2801
e2991ea7 2802 fi
b817f4fb 2803 eval "$ac_cv_have_x"
e2991ea7
AJ
2804fi # $with_x != no
2805
b817f4fb 2806if test "$have_x" != yes; then
daa2886c 2807 echo "$as_me:$LINENO: result: $have_x" >&5
f5818d2f 2808echo "${ECHO_T}$have_x" >&6
b817f4fb 2809 no_x=yes
e2991ea7 2810else
b817f4fb 2811 # If each of the values was on the command line, it overrides each guess.
e2991ea7
AJ
2812 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2813 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
b817f4fb
AJ
2814 # Update the cache value to reflect the command line values.
2815 ac_cv_have_x="have_x=yes \
2816 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
daa2886c 2817 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
f5818d2f 2818echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
e2991ea7
AJ
2819fi
2820
b817f4fb 2821if test "$no_x" = yes; then
ff8331ea 2822 # Not all programs may use this symbol, but it does not hurt to define it.
f5818d2f 2823
daa2886c 2824cat >>confdefs.h <<\_ACEOF
da0cfb36 2825#define X_DISPLAY_MISSING 1
daa2886c 2826_ACEOF
da0cfb36
AJ
2827
2828 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
ff8331ea
AJ
2829else
2830 if test -n "$x_includes"; then
2831 X_CFLAGS="$X_CFLAGS -I$x_includes"
2832 fi
2833
ff8331ea
AJ
2834 # It would also be nice to do this for all -L options, not just this one.
2835 if test -n "$x_libraries"; then
2836 X_LIBS="$X_LIBS -L$x_libraries"
da0cfb36
AJ
2837 # For Solaris; some versions of Sun CC require a space after -R and
2838 # others require no space. Words are not sufficient . . . .
f5818d2f 2839 case `(uname -sr) 2>/dev/null` in
da0cfb36 2840 "SunOS 5"*)
daa2886c 2841 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
f5818d2f
AJ
2842echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
2843 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
2844 cat >conftest.$ac_ext <<_ACEOF
daa2886c 2845#line $LINENO "configure"
e24bcc77
AJ
2846/* confdefs.h. */
2847_ACEOF
2848cat confdefs.h >>conftest.$ac_ext
2849cat >>conftest.$ac_ext <<_ACEOF
2850/* end confdefs.h. */
ff8331ea 2851
f5818d2f
AJ
2852int
2853main ()
2854{
da0cfb36 2855
f5818d2f
AJ
2856 ;
2857 return 0;
2858}
2859_ACEOF
2860rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 2861if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
2862 (eval $ac_link) 2>&5
2863 ac_status=$?
daa2886c 2864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
2865 (exit $ac_status); } &&
2866 { ac_try='test -s conftest$ac_exeext'
daa2886c 2867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
2868 (eval $ac_try) 2>&5
2869 ac_status=$?
daa2886c 2870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 2871 (exit $ac_status); }; }; then
da0cfb36 2872 ac_R_nospace=yes
ff8331ea 2873else
f5818d2f 2874 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
2875sed 's/^/| /' conftest.$ac_ext >&5
2876
f5818d2f 2877ac_R_nospace=no
ff8331ea 2878fi
f5818d2f 2879rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
da0cfb36 2880 if test $ac_R_nospace = yes; then
daa2886c 2881 echo "$as_me:$LINENO: result: no" >&5
f5818d2f 2882echo "${ECHO_T}no" >&6
da0cfb36
AJ
2883 X_LIBS="$X_LIBS -R$x_libraries"
2884 else
2885 LIBS="$ac_xsave_LIBS -R $x_libraries"
f5818d2f 2886 cat >conftest.$ac_ext <<_ACEOF
daa2886c 2887#line $LINENO "configure"
e24bcc77
AJ
2888/* confdefs.h. */
2889_ACEOF
2890cat confdefs.h >>conftest.$ac_ext
2891cat >>conftest.$ac_ext <<_ACEOF
2892/* end confdefs.h. */
da0cfb36 2893
f5818d2f
AJ
2894int
2895main ()
2896{
da0cfb36 2897
f5818d2f
AJ
2898 ;
2899 return 0;
2900}
2901_ACEOF
2902rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 2903if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
2904 (eval $ac_link) 2>&5
2905 ac_status=$?
daa2886c 2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
2907 (exit $ac_status); } &&
2908 { ac_try='test -s conftest$ac_exeext'
daa2886c 2909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
2910 (eval $ac_try) 2>&5
2911 ac_status=$?
daa2886c 2912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 2913 (exit $ac_status); }; }; then
da0cfb36 2914 ac_R_space=yes
ff8331ea 2915else
f5818d2f 2916 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
2917sed 's/^/| /' conftest.$ac_ext >&5
2918
f5818d2f 2919ac_R_space=no
ff8331ea 2920fi
f5818d2f 2921rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
da0cfb36 2922 if test $ac_R_space = yes; then
daa2886c 2923 echo "$as_me:$LINENO: result: yes" >&5
f5818d2f 2924echo "${ECHO_T}yes" >&6
da0cfb36
AJ
2925 X_LIBS="$X_LIBS -R $x_libraries"
2926 else
daa2886c 2927 echo "$as_me:$LINENO: result: neither works" >&5
f5818d2f 2928echo "${ECHO_T}neither works" >&6
da0cfb36
AJ
2929 fi
2930 fi
f5818d2f 2931 LIBS=$ac_xsave_LIBS
da0cfb36
AJ
2932 esac
2933 fi
ff8331ea
AJ
2934
2935 # Check for system-dependent libraries X programs must link with.
da0cfb36
AJ
2936 # Do this before checking for the system-independent R6 libraries
2937 # (-lICE), since we may need -lsocket or whatever for X linking.
ff8331ea
AJ
2938
2939 if test "$ISC" = yes; then
2940 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
2941 else
f5818d2f
AJ
2942 # Martyn Johnson says this is needed for Ultrix, if the X
2943 # libraries were built with DECnet support. And Karl Berry says
ff8331ea 2944 # the Alpha needs dnet_stub (dnet does not exist).
f5818d2f
AJ
2945 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
2946 cat >conftest.$ac_ext <<_ACEOF
daa2886c 2947#line $LINENO "configure"
e24bcc77
AJ
2948/* confdefs.h. */
2949_ACEOF
2950cat confdefs.h >>conftest.$ac_ext
2951cat >>conftest.$ac_ext <<_ACEOF
2952/* end confdefs.h. */
f5818d2f 2953
59730ae1 2954/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
2955#ifdef __cplusplus
2956extern "C"
2957#endif
e2bfa4c7 2958/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
2959 builtin and then its argument prototype would still apply. */
2960char XOpenDisplay ();
2961int
2962main ()
2963{
2964XOpenDisplay ();
2965 ;
2966 return 0;
2967}
2968_ACEOF
2969rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 2970if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
2971 (eval $ac_link) 2>&5
2972 ac_status=$?
daa2886c 2973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
2974 (exit $ac_status); } &&
2975 { ac_try='test -s conftest$ac_exeext'
daa2886c 2976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
2977 (eval $ac_try) 2>&5
2978 ac_status=$?
daa2886c 2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
2980 (exit $ac_status); }; }; then
2981 :
ff8331ea 2982else
f5818d2f 2983 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
2984sed 's/^/| /' conftest.$ac_ext >&5
2985
daa2886c 2986echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
f5818d2f
AJ
2987echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
2988if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
2989 echo $ECHO_N "(cached) $ECHO_C" >&6
2990else
2991 ac_check_lib_save_LIBS=$LIBS
2992LIBS="-ldnet $LIBS"
2993cat >conftest.$ac_ext <<_ACEOF
daa2886c 2994#line $LINENO "configure"
e24bcc77
AJ
2995/* confdefs.h. */
2996_ACEOF
2997cat confdefs.h >>conftest.$ac_ext
2998cat >>conftest.$ac_ext <<_ACEOF
2999/* end confdefs.h. */
ff8331ea 3000
f5818d2f
AJ
3001/* Override any gcc2 internal prototype to avoid an error. */
3002#ifdef __cplusplus
3003extern "C"
3004#endif
3005/* We use char because int might match the return type of a gcc2
3006 builtin and then its argument prototype would still apply. */
3007char dnet_ntoa ();
3008int
3009main ()
3010{
3011dnet_ntoa ();
3012 ;
3013 return 0;
3014}
3015_ACEOF
3016rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 3017if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
3018 (eval $ac_link) 2>&5
3019 ac_status=$?
daa2886c 3020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
3021 (exit $ac_status); } &&
3022 { ac_try='test -s conftest$ac_exeext'
daa2886c 3023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
3024 (eval $ac_try) 2>&5
3025 ac_status=$?
daa2886c 3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
3027 (exit $ac_status); }; }; then
3028 ac_cv_lib_dnet_dnet_ntoa=yes
3029else
3030 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
3031sed 's/^/| /' conftest.$ac_ext >&5
3032
f5818d2f
AJ
3033ac_cv_lib_dnet_dnet_ntoa=no
3034fi
3035rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3036LIBS=$ac_check_lib_save_LIBS
3037fi
daa2886c 3038echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
f5818d2f
AJ
3039echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3040if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
ff8331ea 3041 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
ff8331ea
AJ
3042fi
3043
59730ae1 3044 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
daa2886c 3045 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
f5818d2f
AJ
3046echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3047if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3048 echo $ECHO_N "(cached) $ECHO_C" >&6
ff8331ea 3049else
f5818d2f 3050 ac_check_lib_save_LIBS=$LIBS
ff8331ea 3051LIBS="-ldnet_stub $LIBS"
f5818d2f 3052cat >conftest.$ac_ext <<_ACEOF
daa2886c 3053#line $LINENO "configure"
e24bcc77
AJ
3054/* confdefs.h. */
3055_ACEOF
3056cat confdefs.h >>conftest.$ac_ext
3057cat >>conftest.$ac_ext <<_ACEOF
3058/* end confdefs.h. */
f5818d2f 3059
59730ae1 3060/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
3061#ifdef __cplusplus
3062extern "C"
3063#endif
e2bfa4c7 3064/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
3065 builtin and then its argument prototype would still apply. */
3066char dnet_ntoa ();
3067int
3068main ()
3069{
3070dnet_ntoa ();
3071 ;
3072 return 0;
3073}
3074_ACEOF
3075rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 3076if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
3077 (eval $ac_link) 2>&5
3078 ac_status=$?
daa2886c 3079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
3080 (exit $ac_status); } &&
3081 { ac_try='test -s conftest$ac_exeext'
daa2886c 3082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
3083 (eval $ac_try) 2>&5
3084 ac_status=$?
daa2886c 3085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
3086 (exit $ac_status); }; }; then
3087 ac_cv_lib_dnet_stub_dnet_ntoa=yes
3088else
3089 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
3090sed 's/^/| /' conftest.$ac_ext >&5
3091
f5818d2f
AJ
3092ac_cv_lib_dnet_stub_dnet_ntoa=no
3093fi
3094rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3095LIBS=$ac_check_lib_save_LIBS
3096fi
daa2886c 3097echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
f5818d2f
AJ
3098echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3099if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
ff8331ea 3100 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
ff8331ea
AJ
3101fi
3102
3103 fi
f5818d2f
AJ
3104fi
3105rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3106 LIBS="$ac_xsave_LIBS"
ff8331ea
AJ
3107
3108 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3109 # to get the SysV transport functions.
f5818d2f 3110 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
da0cfb36
AJ
3111 # needs -lnsl.
3112 # The nsl library prevents programs from opening the X display
f5818d2f
AJ
3113 # on Irix 5.2, according to T.E. Dickey.
3114 # The functions gethostbyname, getservbyname, and inet_addr are
3115 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
daa2886c 3116 echo "$as_me:$LINENO: checking for gethostbyname" >&5
f5818d2f
AJ
3117echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3118if test "${ac_cv_func_gethostbyname+set}" = set; then
3119 echo $ECHO_N "(cached) $ECHO_C" >&6
3120else
3121 cat >conftest.$ac_ext <<_ACEOF
daa2886c 3122#line $LINENO "configure"
e24bcc77
AJ
3123/* confdefs.h. */
3124_ACEOF
3125cat confdefs.h >>conftest.$ac_ext
3126cat >>conftest.$ac_ext <<_ACEOF
3127/* end confdefs.h. */
da0cfb36 3128/* System header to define __stub macros and hopefully few prototypes,
e24bcc77
AJ
3129 which can conflict with char gethostbyname (); below.
3130 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3131 <limits.h> exists even on freestanding compilers. */
3132#ifdef __STDC__
3133# include <limits.h>
3134#else
3135# include <assert.h>
3136#endif
da0cfb36 3137/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
3138#ifdef __cplusplus
3139extern "C"
e24bcc77 3140{
f5818d2f 3141#endif
da0cfb36 3142/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
3143 builtin and then its argument prototype would still apply. */
3144char gethostbyname ();
da0cfb36
AJ
3145/* The GNU C library defines this for functions which it implements
3146 to always fail with ENOSYS. Some functions are actually named
3147 something starting with __ and the normal name is an alias. */
3148#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3149choke me
3150#else
e24bcc77
AJ
3151char (*f) () = gethostbyname;
3152#endif
3153#ifdef __cplusplus
3154}
da0cfb36
AJ
3155#endif
3156
e24bcc77
AJ
3157int
3158main ()
3159{
3160return f != gethostbyname;
f5818d2f
AJ
3161 ;
3162 return 0;
3163}
3164_ACEOF
3165rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 3166if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
3167 (eval $ac_link) 2>&5
3168 ac_status=$?
daa2886c 3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
3170 (exit $ac_status); } &&
3171 { ac_try='test -s conftest$ac_exeext'
daa2886c 3172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
3173 (eval $ac_try) 2>&5
3174 ac_status=$?
daa2886c 3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
3176 (exit $ac_status); }; }; then
3177 ac_cv_func_gethostbyname=yes
3178else
3179 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
3180sed 's/^/| /' conftest.$ac_ext >&5
3181
f5818d2f
AJ
3182ac_cv_func_gethostbyname=no
3183fi
3184rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3185fi
daa2886c 3186echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
f5818d2f 3187echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
da0cfb36
AJ
3188
3189 if test $ac_cv_func_gethostbyname = no; then
daa2886c 3190 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
f5818d2f
AJ
3191echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3192if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3193 echo $ECHO_N "(cached) $ECHO_C" >&6
ff8331ea 3194else
f5818d2f 3195 ac_check_lib_save_LIBS=$LIBS
ff8331ea 3196LIBS="-lnsl $LIBS"
f5818d2f 3197cat >conftest.$ac_ext <<_ACEOF
daa2886c 3198#line $LINENO "configure"
e24bcc77
AJ
3199/* confdefs.h. */
3200_ACEOF
3201cat confdefs.h >>conftest.$ac_ext
3202cat >>conftest.$ac_ext <<_ACEOF
3203/* end confdefs.h. */
f5818d2f 3204
59730ae1 3205/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
3206#ifdef __cplusplus
3207extern "C"
3208#endif
e2bfa4c7 3209/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
3210 builtin and then its argument prototype would still apply. */
3211char gethostbyname ();
3212int
3213main ()
3214{
3215gethostbyname ();
3216 ;
3217 return 0;
3218}
3219_ACEOF
3220rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 3221if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
3222 (eval $ac_link) 2>&5
3223 ac_status=$?
daa2886c 3224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
3225 (exit $ac_status); } &&
3226 { ac_try='test -s conftest$ac_exeext'
daa2886c 3227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
3228 (eval $ac_try) 2>&5
3229 ac_status=$?
daa2886c 3230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
3231 (exit $ac_status); }; }; then
3232 ac_cv_lib_nsl_gethostbyname=yes
3233else
3234 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
3235sed 's/^/| /' conftest.$ac_ext >&5
3236
f5818d2f
AJ
3237ac_cv_lib_nsl_gethostbyname=no
3238fi
3239rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3240LIBS=$ac_check_lib_save_LIBS
3241fi
daa2886c 3242echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
f5818d2f
AJ
3243echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3244if test $ac_cv_lib_nsl_gethostbyname = yes; then
3245 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3246fi
ff8331ea 3247
f5818d2f 3248 if test $ac_cv_lib_nsl_gethostbyname = no; then
daa2886c 3249 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
f5818d2f
AJ
3250echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3251if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3252 echo $ECHO_N "(cached) $ECHO_C" >&6
ff8331ea 3253else
f5818d2f
AJ
3254 ac_check_lib_save_LIBS=$LIBS
3255LIBS="-lbsd $LIBS"
3256cat >conftest.$ac_ext <<_ACEOF
daa2886c 3257#line $LINENO "configure"
e24bcc77
AJ
3258/* confdefs.h. */
3259_ACEOF
3260cat confdefs.h >>conftest.$ac_ext
3261cat >>conftest.$ac_ext <<_ACEOF
3262/* end confdefs.h. */
ff8331ea 3263
f5818d2f
AJ
3264/* Override any gcc2 internal prototype to avoid an error. */
3265#ifdef __cplusplus
3266extern "C"
3267#endif
3268/* We use char because int might match the return type of a gcc2
3269 builtin and then its argument prototype would still apply. */
3270char gethostbyname ();
3271int
3272main ()
3273{
3274gethostbyname ();
3275 ;
3276 return 0;
3277}
3278_ACEOF
3279rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 3280if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
3281 (eval $ac_link) 2>&5
3282 ac_status=$?
daa2886c 3283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
3284 (exit $ac_status); } &&
3285 { ac_try='test -s conftest$ac_exeext'
daa2886c 3286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
3287 (eval $ac_try) 2>&5
3288 ac_status=$?
daa2886c 3289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
3290 (exit $ac_status); }; }; then
3291 ac_cv_lib_bsd_gethostbyname=yes
3292else
3293 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
3294sed 's/^/| /' conftest.$ac_ext >&5
3295
f5818d2f
AJ
3296ac_cv_lib_bsd_gethostbyname=no
3297fi
3298rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3299LIBS=$ac_check_lib_save_LIBS
3300fi
daa2886c 3301echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
f5818d2f
AJ
3302echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3303if test $ac_cv_lib_bsd_gethostbyname = yes; then
3304 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
ff8331ea
AJ
3305fi
3306
f5818d2f 3307 fi
da0cfb36 3308 fi
ff8331ea
AJ
3309
3310 # lieder@skyler.mavd.honeywell.com says without -lsocket,
da0cfb36
AJ
3311 # socket/setsockopt and other routines are undefined under SCO ODT
3312 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
f5818d2f 3313 # on later versions), says Simon Leinen: it contains gethostby*
11af04e3 3314 # variants that don't use the name server (or something). -lsocket
f5818d2f
AJ
3315 # must be given before -lnsl if both are needed. We assume that
3316 # if connect needs -lnsl, so does gethostbyname.
daa2886c 3317 echo "$as_me:$LINENO: checking for connect" >&5
f5818d2f
AJ
3318echo $ECHO_N "checking for connect... $ECHO_C" >&6
3319if test "${ac_cv_func_connect+set}" = set; then
3320 echo $ECHO_N "(cached) $ECHO_C" >&6
3321else
3322 cat >conftest.$ac_ext <<_ACEOF
daa2886c 3323#line $LINENO "configure"
e24bcc77
AJ
3324/* confdefs.h. */
3325_ACEOF
3326cat confdefs.h >>conftest.$ac_ext
3327cat >>conftest.$ac_ext <<_ACEOF
3328/* end confdefs.h. */
da0cfb36 3329/* System header to define __stub macros and hopefully few prototypes,
e24bcc77
AJ
3330 which can conflict with char connect (); below.
3331 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3332 <limits.h> exists even on freestanding compilers. */
3333#ifdef __STDC__
3334# include <limits.h>
3335#else
3336# include <assert.h>
3337#endif
da0cfb36 3338/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
3339#ifdef __cplusplus
3340extern "C"
e24bcc77 3341{
f5818d2f 3342#endif
da0cfb36 3343/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
3344 builtin and then its argument prototype would still apply. */
3345char connect ();
da0cfb36
AJ
3346/* The GNU C library defines this for functions which it implements
3347 to always fail with ENOSYS. Some functions are actually named
3348 something starting with __ and the normal name is an alias. */
3349#if defined (__stub_connect) || defined (__stub___connect)
3350choke me
3351#else
e24bcc77
AJ
3352char (*f) () = connect;
3353#endif
3354#ifdef __cplusplus
3355}
da0cfb36
AJ
3356#endif
3357
e24bcc77
AJ
3358int
3359main ()
3360{
3361return f != connect;
f5818d2f
AJ
3362 ;
3363 return 0;
3364}
3365_ACEOF
3366rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 3367if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
3368 (eval $ac_link) 2>&5
3369 ac_status=$?
daa2886c 3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
3371 (exit $ac_status); } &&
3372 { ac_try='test -s conftest$ac_exeext'
daa2886c 3373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
3374 (eval $ac_try) 2>&5
3375 ac_status=$?
daa2886c 3376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
3377 (exit $ac_status); }; }; then
3378 ac_cv_func_connect=yes
3379else
3380 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
3381sed 's/^/| /' conftest.$ac_ext >&5
3382
f5818d2f
AJ
3383ac_cv_func_connect=no
3384fi
3385rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3386fi
daa2886c 3387echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
f5818d2f 3388echo "${ECHO_T}$ac_cv_func_connect" >&6
da0cfb36
AJ
3389
3390 if test $ac_cv_func_connect = no; then
daa2886c 3391 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
f5818d2f
AJ
3392echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
3393if test "${ac_cv_lib_socket_connect+set}" = set; then
3394 echo $ECHO_N "(cached) $ECHO_C" >&6
ff8331ea 3395else
f5818d2f 3396 ac_check_lib_save_LIBS=$LIBS
da0cfb36 3397LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
f5818d2f 3398cat >conftest.$ac_ext <<_ACEOF
daa2886c 3399#line $LINENO "configure"
e24bcc77
AJ
3400/* confdefs.h. */
3401_ACEOF
3402cat confdefs.h >>conftest.$ac_ext
3403cat >>conftest.$ac_ext <<_ACEOF
3404/* end confdefs.h. */
f5818d2f 3405
59730ae1 3406/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
3407#ifdef __cplusplus
3408extern "C"
3409#endif
e2bfa4c7 3410/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
3411 builtin and then its argument prototype would still apply. */
3412char connect ();
3413int
3414main ()
3415{
3416connect ();
3417 ;
3418 return 0;
3419}
3420_ACEOF
3421rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 3422if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
3423 (eval $ac_link) 2>&5
3424 ac_status=$?
daa2886c 3425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
3426 (exit $ac_status); } &&
3427 { ac_try='test -s conftest$ac_exeext'
daa2886c 3428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
3429 (eval $ac_try) 2>&5
3430 ac_status=$?
daa2886c 3431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
3432 (exit $ac_status); }; }; then
3433 ac_cv_lib_socket_connect=yes
3434else
3435 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
3436sed 's/^/| /' conftest.$ac_ext >&5
3437
f5818d2f
AJ
3438ac_cv_lib_socket_connect=no
3439fi
3440rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3441LIBS=$ac_check_lib_save_LIBS
3442fi
daa2886c 3443echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
f5818d2f
AJ
3444echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
3445if test $ac_cv_lib_socket_connect = yes; then
da0cfb36 3446 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
ff8331ea
AJ
3447fi
3448
da0cfb36
AJ
3449 fi
3450
f5818d2f 3451 # Guillermo Gomez says -lposix is necessary on A/UX.
daa2886c 3452 echo "$as_me:$LINENO: checking for remove" >&5
f5818d2f
AJ
3453echo $ECHO_N "checking for remove... $ECHO_C" >&6
3454if test "${ac_cv_func_remove+set}" = set; then
3455 echo $ECHO_N "(cached) $ECHO_C" >&6
da0cfb36 3456else
f5818d2f 3457 cat >conftest.$ac_ext <<_ACEOF
daa2886c 3458#line $LINENO "configure"
e24bcc77
AJ
3459/* confdefs.h. */
3460_ACEOF
3461cat confdefs.h >>conftest.$ac_ext
3462cat >>conftest.$ac_ext <<_ACEOF
3463/* end confdefs.h. */
da0cfb36 3464/* System header to define __stub macros and hopefully few prototypes,
e24bcc77
AJ
3465 which can conflict with char remove (); below.
3466 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3467 <limits.h> exists even on freestanding compilers. */
3468#ifdef __STDC__
3469# include <limits.h>
3470#else
3471# include <assert.h>
3472#endif
da0cfb36 3473/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
3474#ifdef __cplusplus
3475extern "C"
e24bcc77 3476{
f5818d2f 3477#endif
da0cfb36 3478/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
3479 builtin and then its argument prototype would still apply. */
3480char remove ();
da0cfb36
AJ
3481/* The GNU C library defines this for functions which it implements
3482 to always fail with ENOSYS. Some functions are actually named
3483 something starting with __ and the normal name is an alias. */
3484#if defined (__stub_remove) || defined (__stub___remove)
3485choke me
3486#else
e24bcc77
AJ
3487char (*f) () = remove;
3488#endif
3489#ifdef __cplusplus
3490}
da0cfb36
AJ
3491#endif
3492
e24bcc77
AJ
3493int
3494main ()
3495{
3496return f != remove;
f5818d2f
AJ
3497 ;
3498 return 0;
3499}
3500_ACEOF
3501rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 3502if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
3503 (eval $ac_link) 2>&5
3504 ac_status=$?
daa2886c 3505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
3506 (exit $ac_status); } &&
3507 { ac_try='test -s conftest$ac_exeext'
daa2886c 3508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
3509 (eval $ac_try) 2>&5
3510 ac_status=$?
daa2886c 3511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
3512 (exit $ac_status); }; }; then
3513 ac_cv_func_remove=yes
3514else
3515 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
3516sed 's/^/| /' conftest.$ac_ext >&5
3517
f5818d2f
AJ
3518ac_cv_func_remove=no
3519fi
3520rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3521fi
daa2886c 3522echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
f5818d2f 3523echo "${ECHO_T}$ac_cv_func_remove" >&6
da0cfb36
AJ
3524
3525 if test $ac_cv_func_remove = no; then
daa2886c 3526 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
f5818d2f
AJ
3527echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
3528if test "${ac_cv_lib_posix_remove+set}" = set; then
3529 echo $ECHO_N "(cached) $ECHO_C" >&6
e2bfa4c7 3530else
f5818d2f 3531 ac_check_lib_save_LIBS=$LIBS
da0cfb36 3532LIBS="-lposix $LIBS"
f5818d2f 3533cat >conftest.$ac_ext <<_ACEOF
daa2886c 3534#line $LINENO "configure"
e24bcc77
AJ
3535/* confdefs.h. */
3536_ACEOF
3537cat confdefs.h >>conftest.$ac_ext
3538cat >>conftest.$ac_ext <<_ACEOF
3539/* end confdefs.h. */
f5818d2f 3540
e2bfa4c7 3541/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
3542#ifdef __cplusplus
3543extern "C"
3544#endif
e2bfa4c7 3545/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
3546 builtin and then its argument prototype would still apply. */
3547char remove ();
3548int
3549main ()
3550{
3551remove ();
3552 ;
3553 return 0;
3554}
3555_ACEOF
3556rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 3557if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
3558 (eval $ac_link) 2>&5
3559 ac_status=$?
daa2886c 3560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
3561 (exit $ac_status); } &&
3562 { ac_try='test -s conftest$ac_exeext'
daa2886c 3563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
3564 (eval $ac_try) 2>&5
3565 ac_status=$?
daa2886c 3566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
3567 (exit $ac_status); }; }; then
3568 ac_cv_lib_posix_remove=yes
3569else
3570 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
3571sed 's/^/| /' conftest.$ac_ext >&5
3572
f5818d2f
AJ
3573ac_cv_lib_posix_remove=no
3574fi
3575rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3576LIBS=$ac_check_lib_save_LIBS
3577fi
daa2886c 3578echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
f5818d2f
AJ
3579echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
3580if test $ac_cv_lib_posix_remove = yes; then
da0cfb36 3581 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
da0cfb36
AJ
3582fi
3583
3584 fi
3585
3586 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
daa2886c 3587 echo "$as_me:$LINENO: checking for shmat" >&5
f5818d2f
AJ
3588echo $ECHO_N "checking for shmat... $ECHO_C" >&6
3589if test "${ac_cv_func_shmat+set}" = set; then
3590 echo $ECHO_N "(cached) $ECHO_C" >&6
da0cfb36 3591else
f5818d2f 3592 cat >conftest.$ac_ext <<_ACEOF
daa2886c 3593#line $LINENO "configure"
e24bcc77
AJ
3594/* confdefs.h. */
3595_ACEOF
3596cat confdefs.h >>conftest.$ac_ext
3597cat >>conftest.$ac_ext <<_ACEOF
3598/* end confdefs.h. */
da0cfb36 3599/* System header to define __stub macros and hopefully few prototypes,
e24bcc77
AJ
3600 which can conflict with char shmat (); below.
3601 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3602 <limits.h> exists even on freestanding compilers. */
3603#ifdef __STDC__
3604# include <limits.h>
3605#else
3606# include <assert.h>
3607#endif
da0cfb36 3608/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
3609#ifdef __cplusplus
3610extern "C"
e24bcc77 3611{
f5818d2f 3612#endif
da0cfb36 3613/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
3614 builtin and then its argument prototype would still apply. */
3615char shmat ();
da0cfb36
AJ
3616/* The GNU C library defines this for functions which it implements
3617 to always fail with ENOSYS. Some functions are actually named
3618 something starting with __ and the normal name is an alias. */
3619#if defined (__stub_shmat) || defined (__stub___shmat)
3620choke me
3621#else
e24bcc77
AJ
3622char (*f) () = shmat;
3623#endif
3624#ifdef __cplusplus
3625}
da0cfb36
AJ
3626#endif
3627
e24bcc77
AJ
3628int
3629main ()
3630{
3631return f != shmat;
f5818d2f
AJ
3632 ;
3633 return 0;
3634}
3635_ACEOF
3636rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 3637if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
3638 (eval $ac_link) 2>&5
3639 ac_status=$?
daa2886c 3640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
3641 (exit $ac_status); } &&
3642 { ac_try='test -s conftest$ac_exeext'
daa2886c 3643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
3644 (eval $ac_try) 2>&5
3645 ac_status=$?
daa2886c 3646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
3647 (exit $ac_status); }; }; then
3648 ac_cv_func_shmat=yes
3649else
3650 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
3651sed 's/^/| /' conftest.$ac_ext >&5
3652
f5818d2f
AJ
3653ac_cv_func_shmat=no
3654fi
3655rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3656fi
daa2886c 3657echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
f5818d2f 3658echo "${ECHO_T}$ac_cv_func_shmat" >&6
da0cfb36
AJ
3659
3660 if test $ac_cv_func_shmat = no; then
daa2886c 3661 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
f5818d2f
AJ
3662echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
3663if test "${ac_cv_lib_ipc_shmat+set}" = set; then
3664 echo $ECHO_N "(cached) $ECHO_C" >&6
da0cfb36 3665else
f5818d2f 3666 ac_check_lib_save_LIBS=$LIBS
da0cfb36 3667LIBS="-lipc $LIBS"
f5818d2f 3668cat >conftest.$ac_ext <<_ACEOF
daa2886c 3669#line $LINENO "configure"
e24bcc77
AJ
3670/* confdefs.h. */
3671_ACEOF
3672cat confdefs.h >>conftest.$ac_ext
3673cat >>conftest.$ac_ext <<_ACEOF
3674/* end confdefs.h. */
f5818d2f 3675
da0cfb36 3676/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
3677#ifdef __cplusplus
3678extern "C"
3679#endif
da0cfb36 3680/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
3681 builtin and then its argument prototype would still apply. */
3682char shmat ();
3683int
3684main ()
3685{
3686shmat ();
3687 ;
3688 return 0;
3689}
3690_ACEOF
3691rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 3692if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
3693 (eval $ac_link) 2>&5
3694 ac_status=$?
daa2886c 3695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
3696 (exit $ac_status); } &&
3697 { ac_try='test -s conftest$ac_exeext'
daa2886c 3698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
3699 (eval $ac_try) 2>&5
3700 ac_status=$?
daa2886c 3701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
3702 (exit $ac_status); }; }; then
3703 ac_cv_lib_ipc_shmat=yes
3704else
3705 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
3706sed 's/^/| /' conftest.$ac_ext >&5
3707
f5818d2f
AJ
3708ac_cv_lib_ipc_shmat=no
3709fi
3710rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3711LIBS=$ac_check_lib_save_LIBS
3712fi
daa2886c 3713echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
f5818d2f
AJ
3714echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
3715if test $ac_cv_lib_ipc_shmat = yes; then
da0cfb36 3716 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
e2bfa4c7
AJ
3717fi
3718
ff8331ea
AJ
3719 fi
3720 fi
da0cfb36
AJ
3721
3722 # Check for libraries that X11R6 Xt/Xaw programs need.
f5818d2f 3723 ac_save_LDFLAGS=$LDFLAGS
da0cfb36
AJ
3724 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
3725 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3726 # check for ICE first), but we must link in the order -lSM -lICE or
3727 # we get undefined symbols. So assume we have SM if we have ICE.
3728 # These have to be linked with before -lX11, unlike the other
3729 # libraries we check for below, so use a different variable.
f5818d2f 3730 # John Interrante, Karl Berry
daa2886c 3731 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
f5818d2f
AJ
3732echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
3733if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
3734 echo $ECHO_N "(cached) $ECHO_C" >&6
3735else
3736 ac_check_lib_save_LIBS=$LIBS
18ad24a7 3737LIBS="-lICE $X_EXTRA_LIBS $LIBS"
f5818d2f 3738cat >conftest.$ac_ext <<_ACEOF
daa2886c 3739#line $LINENO "configure"
e24bcc77
AJ
3740/* confdefs.h. */
3741_ACEOF
3742cat confdefs.h >>conftest.$ac_ext
3743cat >>conftest.$ac_ext <<_ACEOF
3744/* end confdefs.h. */
f5818d2f 3745
da0cfb36 3746/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
3747#ifdef __cplusplus
3748extern "C"
3749#endif
da0cfb36 3750/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
3751 builtin and then its argument prototype would still apply. */
3752char IceConnectionNumber ();
3753int
3754main ()
3755{
3756IceConnectionNumber ();
3757 ;
3758 return 0;
3759}
3760_ACEOF
3761rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 3762if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
3763 (eval $ac_link) 2>&5
3764 ac_status=$?
daa2886c 3765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
3766 (exit $ac_status); } &&
3767 { ac_try='test -s conftest$ac_exeext'
daa2886c 3768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
3769 (eval $ac_try) 2>&5
3770 ac_status=$?
daa2886c 3771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
3772 (exit $ac_status); }; }; then
3773 ac_cv_lib_ICE_IceConnectionNumber=yes
3774else
3775 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
3776sed 's/^/| /' conftest.$ac_ext >&5
3777
f5818d2f
AJ
3778ac_cv_lib_ICE_IceConnectionNumber=no
3779fi
3780rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3781LIBS=$ac_check_lib_save_LIBS
3782fi
daa2886c 3783echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
f5818d2f
AJ
3784echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
3785if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
da0cfb36 3786 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
da0cfb36
AJ
3787fi
3788
f5818d2f 3789 LDFLAGS=$ac_save_LDFLAGS
da0cfb36 3790
ff8331ea
AJ
3791fi
3792
e2991ea7
AJ
3793for ac_prog in 'bison -y' byacc
3794do
f5818d2f 3795 # Extract the first word of "$ac_prog", so it can be a program name with args.
e2991ea7 3796set dummy $ac_prog; ac_word=$2
daa2886c 3797echo "$as_me:$LINENO: checking for $ac_word" >&5
f5818d2f
AJ
3798echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3799if test "${ac_cv_prog_YACC+set}" = set; then
3800 echo $ECHO_N "(cached) $ECHO_C" >&6
e2991ea7
AJ
3801else
3802 if test -n "$YACC"; then
3803 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3804else
daa2886c
AJ
3805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3806for as_dir in $PATH
3807do
3808 IFS=$as_save_IFS
3809 test -z "$as_dir" && as_dir=.
3810 for ac_exec_ext in '' $ac_executable_extensions; do
3811 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3812 ac_cv_prog_YACC="$ac_prog"
3813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3814 break 2
3815 fi
3816done
f5818d2f
AJ
3817done
3818
e2991ea7
AJ
3819fi
3820fi
f5818d2f 3821YACC=$ac_cv_prog_YACC
e2991ea7 3822if test -n "$YACC"; then
daa2886c 3823 echo "$as_me:$LINENO: result: $YACC" >&5
f5818d2f 3824echo "${ECHO_T}$YACC" >&6
e2991ea7 3825else
daa2886c 3826 echo "$as_me:$LINENO: result: no" >&5
f5818d2f 3827echo "${ECHO_T}no" >&6
e2991ea7
AJ
3828fi
3829
f5818d2f 3830 test -n "$YACC" && break
e2991ea7
AJ
3831done
3832test -n "$YACC" || YACC="yacc"
3833
f5818d2f
AJ
3834for ac_prog in flex lex
3835do
3836 # Extract the first word of "$ac_prog", so it can be a program name with args.
3837set dummy $ac_prog; ac_word=$2
daa2886c 3838echo "$as_me:$LINENO: checking for $ac_word" >&5
f5818d2f
AJ
3839echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3840if test "${ac_cv_prog_LEX+set}" = set; then
3841 echo $ECHO_N "(cached) $ECHO_C" >&6
e2991ea7
AJ
3842else
3843 if test -n "$LEX"; then
3844 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3845else
daa2886c
AJ
3846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3847for as_dir in $PATH
3848do
3849 IFS=$as_save_IFS
3850 test -z "$as_dir" && as_dir=.
3851 for ac_exec_ext in '' $ac_executable_extensions; do
3852 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3853 ac_cv_prog_LEX="$ac_prog"
3854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3855 break 2
3856 fi
3857done
f5818d2f
AJ
3858done
3859
e2991ea7
AJ
3860fi
3861fi
f5818d2f 3862LEX=$ac_cv_prog_LEX
e2991ea7 3863if test -n "$LEX"; then
daa2886c 3864 echo "$as_me:$LINENO: result: $LEX" >&5
f5818d2f 3865echo "${ECHO_T}$LEX" >&6
e2991ea7 3866else
daa2886c 3867 echo "$as_me:$LINENO: result: no" >&5
f5818d2f 3868echo "${ECHO_T}no" >&6
e2991ea7
AJ
3869fi
3870
f5818d2f
AJ
3871 test -n "$LEX" && break
3872done
3873test -n "$LEX" || LEX=":"
3874
e2991ea7
AJ
3875if test -z "$LEXLIB"
3876then
daa2886c 3877 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
f5818d2f
AJ
3878echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3879if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3880 echo $ECHO_N "(cached) $ECHO_C" >&6
3881else
3882 ac_check_lib_save_LIBS=$LIBS
3883LIBS="-lfl $LIBS"
3884cat >conftest.$ac_ext <<_ACEOF
daa2886c 3885#line $LINENO "configure"
e24bcc77
AJ
3886/* confdefs.h. */
3887_ACEOF
3888cat confdefs.h >>conftest.$ac_ext
3889cat >>conftest.$ac_ext <<_ACEOF
3890/* end confdefs.h. */
f5818d2f 3891
59730ae1 3892/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
3893#ifdef __cplusplus
3894extern "C"
3895#endif
e2bfa4c7 3896/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
3897 builtin and then its argument prototype would still apply. */
3898char yywrap ();
3899int
3900main ()
3901{
3902yywrap ();
3903 ;
3904 return 0;
3905}
3906_ACEOF
3907rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 3908if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
3909 (eval $ac_link) 2>&5
3910 ac_status=$?
daa2886c 3911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
3912 (exit $ac_status); } &&
3913 { ac_try='test -s conftest$ac_exeext'
daa2886c 3914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
3915 (eval $ac_try) 2>&5
3916 ac_status=$?
daa2886c 3917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
3918 (exit $ac_status); }; }; then
3919 ac_cv_lib_fl_yywrap=yes
3920else
3921 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
3922sed 's/^/| /' conftest.$ac_ext >&5
3923
f5818d2f
AJ
3924ac_cv_lib_fl_yywrap=no
3925fi
3926rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3927LIBS=$ac_check_lib_save_LIBS
3928fi
daa2886c 3929echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
f5818d2f
AJ
3930echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3931if test $ac_cv_lib_fl_yywrap = yes; then
3932 LEXLIB="-lfl"
3933else
daa2886c 3934 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
f5818d2f
AJ
3935echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3936if test "${ac_cv_lib_l_yywrap+set}" = set; then
3937 echo $ECHO_N "(cached) $ECHO_C" >&6
3938else
3939 ac_check_lib_save_LIBS=$LIBS
3940LIBS="-ll $LIBS"
3941cat >conftest.$ac_ext <<_ACEOF
daa2886c 3942#line $LINENO "configure"
e24bcc77
AJ
3943/* confdefs.h. */
3944_ACEOF
3945cat confdefs.h >>conftest.$ac_ext
3946cat >>conftest.$ac_ext <<_ACEOF
3947/* end confdefs.h. */
e2991ea7 3948
f5818d2f
AJ
3949/* Override any gcc2 internal prototype to avoid an error. */
3950#ifdef __cplusplus
3951extern "C"
3952#endif
3953/* We use char because int might match the return type of a gcc2
3954 builtin and then its argument prototype would still apply. */
3955char yywrap ();
3956int
3957main ()
3958{
3959yywrap ();
3960 ;
3961 return 0;
3962}
3963_ACEOF
3964rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 3965if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
3966 (eval $ac_link) 2>&5
3967 ac_status=$?
daa2886c 3968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
3969 (exit $ac_status); } &&
3970 { ac_try='test -s conftest$ac_exeext'
daa2886c 3971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
3972 (eval $ac_try) 2>&5
3973 ac_status=$?
daa2886c 3974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
3975 (exit $ac_status); }; }; then
3976 ac_cv_lib_l_yywrap=yes
e2991ea7 3977else
f5818d2f 3978 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
3979sed 's/^/| /' conftest.$ac_ext >&5
3980
f5818d2f
AJ
3981ac_cv_lib_l_yywrap=no
3982fi
3983rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3984LIBS=$ac_check_lib_save_LIBS
3985fi
daa2886c 3986echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
f5818d2f
AJ
3987echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3988if test $ac_cv_lib_l_yywrap = yes; then
3989 LEXLIB="-ll"
3990fi
3991
e2991ea7 3992fi
e2991ea7
AJ
3993
3994fi
f5818d2f
AJ
3995
3996if test "x$LEX" != "x:"; then
daa2886c 3997 echo "$as_me:$LINENO: checking lex output file root" >&5
f5818d2f
AJ
3998echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3999if test "${ac_cv_prog_lex_root+set}" = set; then
4000 echo $ECHO_N "(cached) $ECHO_C" >&6
4001else
4002 # The minimal lex program is just a single line: %%. But some broken lexes
4003# (Solaris, I think it was) want two %% lines, so accommodate them.
daa2886c
AJ
4004cat >conftest.l <<_ACEOF
4005%%
4006%%
4007_ACEOF
4008{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4009 (eval $LEX conftest.l) 2>&5
4010 ac_status=$?
4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); }
f5818d2f
AJ
4013if test -f lex.yy.c; then
4014 ac_cv_prog_lex_root=lex.yy
4015elif test -f lexyy.c; then
4016 ac_cv_prog_lex_root=lexyy
4017else
daa2886c 4018 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
f5818d2f
AJ
4019echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4020 { (exit 1); exit 1; }; }
4021fi
4022fi
daa2886c 4023echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
f5818d2f 4024echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
daa2886c 4025rm -f conftest.l
f5818d2f
AJ
4026LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4027
daa2886c 4028echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
f5818d2f
AJ
4029echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4030if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4031 echo $ECHO_N "(cached) $ECHO_C" >&6
e2991ea7 4032else
f5818d2f
AJ
4033 # POSIX says lex can declare yytext either as a pointer or an array; the
4034# default is implementation-dependent. Figure out which it is, since
4035# not all implementations provide the %pointer and %array declarations.
4036ac_cv_prog_lex_yytext_pointer=no
4037echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4038ac_save_LIBS=$LIBS
4039LIBS="$LIBS $LEXLIB"
4040cat >conftest.$ac_ext <<_ACEOF
4041`cat $LEX_OUTPUT_ROOT.c`
4042_ACEOF
4043rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 4044if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
4045 (eval $ac_link) 2>&5
4046 ac_status=$?
daa2886c 4047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
4048 (exit $ac_status); } &&
4049 { ac_try='test -s conftest$ac_exeext'
daa2886c 4050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
4051 (eval $ac_try) 2>&5
4052 ac_status=$?
daa2886c 4053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
4054 (exit $ac_status); }; }; then
4055 ac_cv_prog_lex_yytext_pointer=yes
4056else
4057 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
4058sed 's/^/| /' conftest.$ac_ext >&5
4059
f5818d2f
AJ
4060fi
4061rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4062LIBS=$ac_save_LIBS
4063rm -f "${LEX_OUTPUT_ROOT}.c"
4064
e2991ea7 4065fi
daa2886c 4066echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
f5818d2f
AJ
4067echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4068if test $ac_cv_prog_lex_yytext_pointer = yes; then
4069
daa2886c 4070cat >>confdefs.h <<\_ACEOF
f5818d2f 4071#define YYTEXT_POINTER 1
daa2886c 4072_ACEOF
e2991ea7
AJ
4073
4074fi
4075
f5818d2f 4076fi
5c5a6217
MM
4077
4078for ac_prog in $YACC bison yacc
4079do
f5818d2f 4080 # Extract the first word of "$ac_prog", so it can be a program name with args.
5c5a6217 4081set dummy $ac_prog; ac_word=$2
daa2886c 4082echo "$as_me:$LINENO: checking for $ac_word" >&5
f5818d2f
AJ
4083echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4084if test "${ac_cv_prog_XYACC+set}" = set; then
4085 echo $ECHO_N "(cached) $ECHO_C" >&6
5c5a6217
MM
4086else
4087 if test -n "$XYACC"; then
4088 ac_cv_prog_XYACC="$XYACC" # Let the user override the test.
4089else
daa2886c
AJ
4090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4091for as_dir in $PATH
4092do
4093 IFS=$as_save_IFS
4094 test -z "$as_dir" && as_dir=.
4095 for ac_exec_ext in '' $ac_executable_extensions; do
4096 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4097 ac_cv_prog_XYACC="$ac_prog"
4098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4099 break 2
4100 fi
4101done
f5818d2f
AJ
4102done
4103
5c5a6217
MM
4104fi
4105fi
f5818d2f 4106XYACC=$ac_cv_prog_XYACC
5c5a6217 4107if test -n "$XYACC"; then
daa2886c 4108 echo "$as_me:$LINENO: result: $XYACC" >&5
f5818d2f 4109echo "${ECHO_T}$XYACC" >&6
5c5a6217 4110else
daa2886c 4111 echo "$as_me:$LINENO: result: no" >&5
f5818d2f 4112echo "${ECHO_T}no" >&6
5c5a6217
MM
4113fi
4114
f5818d2f 4115 test -n "$XYACC" && break
5c5a6217
MM
4116done
4117test -n "$XYACC" || XYACC="none"
4118
4119if test "$XYACC" = "none"
4120then
daa2886c 4121 { { echo "$as_me:$LINENO: error: no suitable bison/yacc found. Please install the 'bison' package." >&5
f5818d2f
AJ
4122echo "$as_me: error: no suitable bison/yacc found. Please install the 'bison' package." >&2;}
4123 { (exit 1); exit 1; }; }
5c5a6217 4124fi
b53bb419
MM
4125for ac_prog in $LEX flex lex
4126do
f5818d2f 4127 # Extract the first word of "$ac_prog", so it can be a program name with args.
b53bb419 4128set dummy $ac_prog; ac_word=$2
daa2886c 4129echo "$as_me:$LINENO: checking for $ac_word" >&5
f5818d2f
AJ
4130echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4131if test "${ac_cv_prog_XLEX+set}" = set; then
4132 echo $ECHO_N "(cached) $ECHO_C" >&6
b53bb419
MM
4133else
4134 if test -n "$XLEX"; then
4135 ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
4136else
daa2886c
AJ
4137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4138for as_dir in $PATH
4139do
4140 IFS=$as_save_IFS
4141 test -z "$as_dir" && as_dir=.
4142 for ac_exec_ext in '' $ac_executable_extensions; do
4143 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4144 ac_cv_prog_XLEX="$ac_prog"
4145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4146 break 2
4147 fi
4148done
f5818d2f
AJ
4149done
4150
b53bb419
MM
4151fi
4152fi
f5818d2f 4153XLEX=$ac_cv_prog_XLEX
b53bb419 4154if test -n "$XLEX"; then
daa2886c 4155 echo "$as_me:$LINENO: result: $XLEX" >&5
f5818d2f 4156echo "${ECHO_T}$XLEX" >&6
b53bb419 4157else
daa2886c 4158 echo "$as_me:$LINENO: result: no" >&5
f5818d2f 4159echo "${ECHO_T}no" >&6
b53bb419
MM
4160fi
4161
f5818d2f 4162 test -n "$XLEX" && break
b53bb419
MM
4163done
4164test -n "$XLEX" || XLEX="none"
4165
4166if test "$XLEX" = "none"
4167then
daa2886c 4168 { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
f5818d2f
AJ
4169echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
4170 { (exit 1); exit 1; }; }
4171fi
fc01b729 4172
1d4db787 4173if test -n "$ac_tool_prefix"; then
c80c290e
AJ
4174 for ac_prog in gas as
4175 do
4176 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4177set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1d4db787
MM
4178echo "$as_me:$LINENO: checking for $ac_word" >&5
4179echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4180if test "${ac_cv_prog_AS+set}" = set; then
4181 echo $ECHO_N "(cached) $ECHO_C" >&6
4182else
4183 if test -n "$AS"; then
4184 ac_cv_prog_AS="$AS" # Let the user override the test.
4185else
4186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4187for as_dir in $PATH
4188do
4189 IFS=$as_save_IFS
4190 test -z "$as_dir" && as_dir=.
4191 for ac_exec_ext in '' $ac_executable_extensions; do
4192 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c80c290e 4193 ac_cv_prog_AS="$ac_tool_prefix$ac_prog"
1d4db787
MM
4194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4195 break 2
4196 fi
4197done
4198done
4199
4200fi
4201fi
4202AS=$ac_cv_prog_AS
4203if test -n "$AS"; then
4204 echo "$as_me:$LINENO: result: $AS" >&5
4205echo "${ECHO_T}$AS" >&6
4206else
4207 echo "$as_me:$LINENO: result: no" >&5
4208echo "${ECHO_T}no" >&6
4209fi
4210
c80c290e
AJ
4211 test -n "$AS" && break
4212 done
1d4db787 4213fi
c80c290e 4214if test -z "$AS"; then
1d4db787 4215 ac_ct_AS=$AS
c80c290e
AJ
4216 for ac_prog in gas as
4217do
4218 # Extract the first word of "$ac_prog", so it can be a program name with args.
4219set dummy $ac_prog; ac_word=$2
1d4db787
MM
4220echo "$as_me:$LINENO: checking for $ac_word" >&5
4221echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4222if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4223 echo $ECHO_N "(cached) $ECHO_C" >&6
4224else
4225 if test -n "$ac_ct_AS"; then
4226 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4227else
4228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4229for as_dir in $PATH
4230do
4231 IFS=$as_save_IFS
4232 test -z "$as_dir" && as_dir=.
4233 for ac_exec_ext in '' $ac_executable_extensions; do
4234 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
c80c290e 4235 ac_cv_prog_ac_ct_AS="$ac_prog"
1d4db787
MM
4236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4237 break 2
4238 fi
4239done
4240done
4241
1d4db787
MM
4242fi
4243fi
4244ac_ct_AS=$ac_cv_prog_ac_ct_AS
4245if test -n "$ac_ct_AS"; then
4246 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4247echo "${ECHO_T}$ac_ct_AS" >&6
4248else
4249 echo "$as_me:$LINENO: result: no" >&5
4250echo "${ECHO_T}no" >&6
4251fi
4252
c80c290e
AJ
4253 test -n "$ac_ct_AS" && break
4254done
4255test -n "$ac_ct_AS" || ac_ct_AS="as"
4256
1d4db787 4257 AS=$ac_ct_AS
1d4db787
MM
4258fi
4259
eb5f89c5
AJ
4260if test -n "$ac_tool_prefix"; then
4261 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4262set dummy ${ac_tool_prefix}ld; ac_word=$2
4263echo "$as_me:$LINENO: checking for $ac_word" >&5
4264echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4265if test "${ac_cv_prog_LD+set}" = set; then
4266 echo $ECHO_N "(cached) $ECHO_C" >&6
4267else
4268 if test -n "$LD"; then
4269 ac_cv_prog_LD="$LD" # Let the user override the test.
4270else
4271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4272for as_dir in $PATH
4273do
4274 IFS=$as_save_IFS
4275 test -z "$as_dir" && as_dir=.
4276 for ac_exec_ext in '' $ac_executable_extensions; do
4277 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4278 ac_cv_prog_LD="${ac_tool_prefix}ld"
4279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4280 break 2
4281 fi
4282done
4283done
4284
4285fi
4286fi
4287LD=$ac_cv_prog_LD
4288if test -n "$LD"; then
4289 echo "$as_me:$LINENO: result: $LD" >&5
4290echo "${ECHO_T}$LD" >&6
4291else
4292 echo "$as_me:$LINENO: result: no" >&5
4293echo "${ECHO_T}no" >&6
4294fi
4295
4296fi
4297if test -z "$ac_cv_prog_LD"; then
4298 ac_ct_LD=$LD
4299 # Extract the first word of "ld", so it can be a program name with args.
4300set dummy ld; ac_word=$2
4301echo "$as_me:$LINENO: checking for $ac_word" >&5
4302echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4303if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4304 echo $ECHO_N "(cached) $ECHO_C" >&6
4305else
4306 if test -n "$ac_ct_LD"; then
4307 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4308else
4309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4310for as_dir in $PATH
4311do
4312 IFS=$as_save_IFS
4313 test -z "$as_dir" && as_dir=.
4314 for ac_exec_ext in '' $ac_executable_extensions; do
4315 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4316 ac_cv_prog_ac_ct_LD="ld"
4317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4318 break 2
4319 fi
4320done
4321done
4322
4323 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
4324fi
4325fi
4326ac_ct_LD=$ac_cv_prog_ac_ct_LD
4327if test -n "$ac_ct_LD"; then
4328 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4329echo "${ECHO_T}$ac_ct_LD" >&6
4330else
4331 echo "$as_me:$LINENO: result: no" >&5
4332echo "${ECHO_T}no" >&6
4333fi
4334
4335 LD=$ac_ct_LD
4336else
4337 LD="$ac_cv_prog_LD"
4338fi
4339
fc01b729
AJ
4340if test -n "$ac_tool_prefix"; then
4341 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4342set dummy ${ac_tool_prefix}ar; ac_word=$2
4343echo "$as_me:$LINENO: checking for $ac_word" >&5
4344echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4345if test "${ac_cv_prog_AR+set}" = set; then
4346 echo $ECHO_N "(cached) $ECHO_C" >&6
4347else
4348 if test -n "$AR"; then
4349 ac_cv_prog_AR="$AR" # Let the user override the test.
4350else
4351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4352for as_dir in $PATH
4353do
4354 IFS=$as_save_IFS
4355 test -z "$as_dir" && as_dir=.
4356 for ac_exec_ext in '' $ac_executable_extensions; do
4357 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4358 ac_cv_prog_AR="${ac_tool_prefix}ar"
4359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4360 break 2
4361 fi
4362done
4363done
4364
4365fi
4366fi
4367AR=$ac_cv_prog_AR
4368if test -n "$AR"; then
4369 echo "$as_me:$LINENO: result: $AR" >&5
4370echo "${ECHO_T}$AR" >&6
4371else
4372 echo "$as_me:$LINENO: result: no" >&5
4373echo "${ECHO_T}no" >&6
4374fi
4375
4376fi
4377if test -z "$ac_cv_prog_AR"; then
4378 ac_ct_AR=$AR
4379 # Extract the first word of "ar", so it can be a program name with args.
4380set dummy ar; ac_word=$2
4381echo "$as_me:$LINENO: checking for $ac_word" >&5
4382echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4383if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4384 echo $ECHO_N "(cached) $ECHO_C" >&6
4385else
4386 if test -n "$ac_ct_AR"; then
4387 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4388else
4389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4390for as_dir in $PATH
4391do
4392 IFS=$as_save_IFS
4393 test -z "$as_dir" && as_dir=.
4394 for ac_exec_ext in '' $ac_executable_extensions; do
4395 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4396 ac_cv_prog_ac_ct_AR="ar"
4397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4398 break 2
4399 fi
4400done
4401done
4402
4403 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4404fi
4405fi
4406ac_ct_AR=$ac_cv_prog_ac_ct_AR
4407if test -n "$ac_ct_AR"; then
4408 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4409echo "${ECHO_T}$ac_ct_AR" >&6
4410else
4411 echo "$as_me:$LINENO: result: no" >&5
4412echo "${ECHO_T}no" >&6
4413fi
4414
4415 AR=$ac_ct_AR
4416else
4417 AR="$ac_cv_prog_AR"
4418fi
4419
f5818d2f
AJ
4420if test -n "$ac_tool_prefix"; then
4421 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4422set dummy ${ac_tool_prefix}ranlib; ac_word=$2
daa2886c 4423echo "$as_me:$LINENO: checking for $ac_word" >&5
f5818d2f
AJ
4424echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4425if test "${ac_cv_prog_RANLIB+set}" = set; then
4426 echo $ECHO_N "(cached) $ECHO_C" >&6
ff8331ea
AJ
4427else
4428 if test -n "$RANLIB"; then
4429 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4430else
daa2886c
AJ
4431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4432for as_dir in $PATH
4433do
4434 IFS=$as_save_IFS
4435 test -z "$as_dir" && as_dir=.
4436 for ac_exec_ext in '' $ac_executable_extensions; do
4437 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4438 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4440 break 2
4441 fi
4442done
f5818d2f
AJ
4443done
4444
e2991ea7 4445fi
e2991ea7 4446fi
f5818d2f 4447RANLIB=$ac_cv_prog_RANLIB
ff8331ea 4448if test -n "$RANLIB"; then
daa2886c 4449 echo "$as_me:$LINENO: result: $RANLIB" >&5
f5818d2f
AJ
4450echo "${ECHO_T}$RANLIB" >&6
4451else
daa2886c 4452 echo "$as_me:$LINENO: result: no" >&5
f5818d2f
AJ
4453echo "${ECHO_T}no" >&6
4454fi
4455
4456fi
4457if test -z "$ac_cv_prog_RANLIB"; then
4458 ac_ct_RANLIB=$RANLIB
4459 # Extract the first word of "ranlib", so it can be a program name with args.
4460set dummy ranlib; ac_word=$2
daa2886c 4461echo "$as_me:$LINENO: checking for $ac_word" >&5
f5818d2f
AJ
4462echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4463if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4464 echo $ECHO_N "(cached) $ECHO_C" >&6
4465else
4466 if test -n "$ac_ct_RANLIB"; then
4467 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4468else
daa2886c
AJ
4469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4470for as_dir in $PATH
4471do
4472 IFS=$as_save_IFS
4473 test -z "$as_dir" && as_dir=.
4474 for ac_exec_ext in '' $ac_executable_extensions; do
4475 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4476 ac_cv_prog_ac_ct_RANLIB="ranlib"
4477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4478 break 2
4479 fi
4480done
f5818d2f
AJ
4481done
4482
4483 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4484fi
4485fi
4486ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4487if test -n "$ac_ct_RANLIB"; then
daa2886c 4488 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
f5818d2f
AJ
4489echo "${ECHO_T}$ac_ct_RANLIB" >&6
4490else
daa2886c 4491 echo "$as_me:$LINENO: result: no" >&5
f5818d2f
AJ
4492echo "${ECHO_T}no" >&6
4493fi
4494
4495 RANLIB=$ac_ct_RANLIB
ff8331ea 4496else
f5818d2f 4497 RANLIB="$ac_cv_prog_RANLIB"
ff8331ea 4498fi
e2991ea7 4499
fc01b729
AJ
4500if test -n "$ac_tool_prefix"; then
4501 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4502set dummy ${ac_tool_prefix}strip; ac_word=$2
4503echo "$as_me:$LINENO: checking for $ac_word" >&5
4504echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4505if test "${ac_cv_prog_STRIP+set}" = set; then
4506 echo $ECHO_N "(cached) $ECHO_C" >&6
4507else
4508 if test -n "$STRIP"; then
4509 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4510else
4511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4512for as_dir in $PATH
4513do
4514 IFS=$as_save_IFS
4515 test -z "$as_dir" && as_dir=.
4516 for ac_exec_ext in '' $ac_executable_extensions; do
4517 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4518 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4520 break 2
4521 fi
4522done
4523done
4524
4525fi
4526fi
4527STRIP=$ac_cv_prog_STRIP
4528if test -n "$STRIP"; then
4529 echo "$as_me:$LINENO: result: $STRIP" >&5
4530echo "${ECHO_T}$STRIP" >&6
4531else
4532 echo "$as_me:$LINENO: result: no" >&5
4533echo "${ECHO_T}no" >&6
4534fi
4535
4536fi
4537if test -z "$ac_cv_prog_STRIP"; then
4538 ac_ct_STRIP=$STRIP
4539 # Extract the first word of "strip", so it can be a program name with args.
4540set dummy strip; ac_word=$2
4541echo "$as_me:$LINENO: checking for $ac_word" >&5
4542echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4543if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4544 echo $ECHO_N "(cached) $ECHO_C" >&6
4545else
4546 if test -n "$ac_ct_STRIP"; then
4547 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4548else
4549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4550for as_dir in $PATH
4551do
4552 IFS=$as_save_IFS
4553 test -z "$as_dir" && as_dir=.
4554 for ac_exec_ext in '' $ac_executable_extensions; do
4555 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4556 ac_cv_prog_ac_ct_STRIP="strip"
4557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4558 break 2
4559 fi
4560done
4561done
4562
4563 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="strip"
4564fi
4565fi
4566ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4567if test -n "$ac_ct_STRIP"; then
4568 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4569echo "${ECHO_T}$ac_ct_STRIP" >&6
4570else
4571 echo "$as_me:$LINENO: result: no" >&5
4572echo "${ECHO_T}no" >&6
4573fi
4574
4575 STRIP=$ac_ct_STRIP
4576else
4577 STRIP="$ac_cv_prog_STRIP"
4578fi
4579
4580if test -n "$ac_tool_prefix"; then
4581 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4582set dummy ${ac_tool_prefix}windres; ac_word=$2
4583echo "$as_me:$LINENO: checking for $ac_word" >&5
4584echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4585if test "${ac_cv_prog_WINDRES+set}" = set; then
4586 echo $ECHO_N "(cached) $ECHO_C" >&6
4587else
4588 if test -n "$WINDRES"; then
4589 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4590else
4591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4592for as_dir in $PATH
4593do
4594 IFS=$as_save_IFS
4595 test -z "$as_dir" && as_dir=.
4596 for ac_exec_ext in '' $ac_executable_extensions; do
4597 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4598 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
4599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4600 break 2
4601 fi
4602done
4603done
4604
4605fi
4606fi
4607WINDRES=$ac_cv_prog_WINDRES
4608if test -n "$WINDRES"; then
4609 echo "$as_me:$LINENO: result: $WINDRES" >&5
4610echo "${ECHO_T}$WINDRES" >&6
4611else
4612 echo "$as_me:$LINENO: result: no" >&5
4613echo "${ECHO_T}no" >&6
4614fi
4615
4616fi
4617if test -z "$ac_cv_prog_WINDRES"; then
4618 ac_ct_WINDRES=$WINDRES
4619 # Extract the first word of "windres", so it can be a program name with args.
4620set dummy windres; ac_word=$2
4621echo "$as_me:$LINENO: checking for $ac_word" >&5
4622echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4623if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
4624 echo $ECHO_N "(cached) $ECHO_C" >&6
4625else
4626 if test -n "$ac_ct_WINDRES"; then
4627 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
4628else
4629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630for as_dir in $PATH
4631do
4632 IFS=$as_save_IFS
4633 test -z "$as_dir" && as_dir=.
4634 for ac_exec_ext in '' $ac_executable_extensions; do
4635 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4636 ac_cv_prog_ac_ct_WINDRES="windres"
4637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4638 break 2
4639 fi
4640done
4641done
4642
4643 test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES="false"
4644fi
4645fi
4646ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
4647if test -n "$ac_ct_WINDRES"; then
4648 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
4649echo "${ECHO_T}$ac_ct_WINDRES" >&6
4650else
4651 echo "$as_me:$LINENO: result: no" >&5
4652echo "${ECHO_T}no" >&6
4653fi
4654
4655 WINDRES=$ac_ct_WINDRES
4656else
4657 WINDRES="$ac_cv_prog_WINDRES"
4658fi
4659
daa2886c 4660echo "$as_me:$LINENO: checking whether ln -s works" >&5
f5818d2f
AJ
4661echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4662LN_S=$as_ln_s
4663if test "$LN_S" = "ln -s"; then
daa2886c 4664 echo "$as_me:$LINENO: result: yes" >&5
f5818d2f 4665echo "${ECHO_T}yes" >&6
641ee76a 4666else
daa2886c 4667 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
f5818d2f 4668echo "${ECHO_T}no, using $LN_S" >&6
641ee76a
AJ
4669fi
4670
df234a9f
AJ
4671echo "$as_me:$LINENO: checking whether ln works" >&5
4672echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4673rm -f conf$$ conf$$.file
4674echo >conf$$.file
4675if ln conf$$.file conf$$ 2>/dev/null; then
4676 LN=ln
4677
4678 echo "$as_me:$LINENO: result: yes" >&5
4679echo "${ECHO_T}yes" >&6
4680else
4681 LN="cp -p"
4682
4683 echo "$as_me:$LINENO: result: no, using $LN" >&5
4684echo "${ECHO_T}no, using $LN" >&6
4685fi
4686rm -f conf$$ conf$$.file
ffe6b767
JJ
4687# Extract the first word of "ldconfig", so it can be a program name with args.
4688set dummy ldconfig; ac_word=$2
daa2886c 4689echo "$as_me:$LINENO: checking for $ac_word" >&5
f5818d2f
AJ
4690echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4691if test "${ac_cv_path_LDCONFIG+set}" = set; then
4692 echo $ECHO_N "(cached) $ECHO_C" >&6
ffe6b767 4693else
f5818d2f
AJ
4694 case $LDCONFIG in
4695 [\\/]* | ?:[\\/]*)
ffe6b767
JJ
4696 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4697 ;;
4698 *)
daa2886c 4699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
91372b39 4700for as_dir in /sbin /usr/sbin $PATH
daa2886c
AJ
4701do
4702 IFS=$as_save_IFS
4703 test -z "$as_dir" && as_dir=.
4704 for ac_exec_ext in '' $ac_executable_extensions; do
4705 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4706 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4708 break 2
4709 fi
4710done
f5818d2f
AJ
4711done
4712
318f4cef 4713 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
ffe6b767
JJ
4714 ;;
4715esac
4716fi
f5818d2f 4717LDCONFIG=$ac_cv_path_LDCONFIG
79e44abe 4718
f5818d2f 4719if test -n "$LDCONFIG"; then
daa2886c 4720 echo "$as_me:$LINENO: result: $LDCONFIG" >&5
f5818d2f 4721echo "${ECHO_T}$LDCONFIG" >&6
d48ca948 4722else
daa2886c 4723 echo "$as_me:$LINENO: result: no" >&5
f5818d2f 4724echo "${ECHO_T}no" >&6
d48ca948
HT
4725fi
4726
e24bcc77
AJ
4727# Find a good install program. We prefer a C program (faster),
4728# so one script is as good as another. But avoid the broken or
4729# incompatible versions:
4730# SysV /etc/install, /usr/sbin/install
4731# SunOS /usr/etc/install
4732# IRIX /sbin/install
4733# AIX /bin/install
4734# AmigaOS /C/install, which installs bootblocks on floppy discs
4735# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4736# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4737# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4738# ./install, which can be erroneously created by make from ./install.sh.
4739echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4740echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4741if test -z "$INSTALL"; then
4742if test "${ac_cv_path_install+set}" = set; then
4743 echo $ECHO_N "(cached) $ECHO_C" >&6
4744else
4745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4746for as_dir in $PATH
4747do
4748 IFS=$as_save_IFS
4749 test -z "$as_dir" && as_dir=.
4750 # Account for people who put trailing slashes in PATH elements.
4751case $as_dir/ in
4752 ./ | .// | /cC/* | \
4753 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4754 /usr/ucb/* ) ;;
4755 *)
4756 # OSF1 and SCO ODT 3.0 have their own names for install.
4757 # Don't use installbsd from OSF since it installs stuff as root
4758 # by default.
4759 for ac_prog in ginstall scoinst install; do
4760 for ac_exec_ext in '' $ac_executable_extensions; do
4761 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4762 if test $ac_prog = install &&
4763 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4764 # AIX install. It has an incompatible calling convention.
4765 :
4766 elif test $ac_prog = install &&
4767 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4768 # program-specific install script used by HP pwplus--don't use.
4769 :
4770 else
4771 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4772 break 3
4773 fi
4774 fi
4775 done
4776 done
4777 ;;
4778esac
4779done
4780
4781
4782fi
4783 if test "${ac_cv_path_install+set}" = set; then
4784 INSTALL=$ac_cv_path_install
4785 else
4786 # As a last resort, use the slow shell script. We don't cache a
4787 # path for INSTALL within a source directory, because that will
4788 # break other packages using the cache if that directory is
4789 # removed, or if the path is relative.
4790 INSTALL=$ac_install_sh
4791 fi
4792fi
4793echo "$as_me:$LINENO: result: $INSTALL" >&5
4794echo "${ECHO_T}$INSTALL" >&6
4795
4796# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4797# It thinks the first close brace ends the variable substitution.
4798test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4799
4800test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4801
4802test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4803
4804case "$INSTALL" in
8418d8f3 4805 [\\/$]* | ?:[\\/]* ) ;;
e24bcc77
AJ
4806 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
4807esac
daa2886c 4808
a9be64e2
PS
4809for ac_prog in lclint lint
4810do
f5818d2f 4811 # Extract the first word of "$ac_prog", so it can be a program name with args.
a9be64e2 4812set dummy $ac_prog; ac_word=$2
daa2886c 4813echo "$as_me:$LINENO: checking for $ac_word" >&5
f5818d2f
AJ
4814echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4815if test "${ac_cv_prog_LINT+set}" = set; then
4816 echo $ECHO_N "(cached) $ECHO_C" >&6
a9be64e2
PS
4817else
4818 if test -n "$LINT"; then
4819 ac_cv_prog_LINT="$LINT" # Let the user override the test.
4820else
daa2886c
AJ
4821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4822for as_dir in $PATH
4823do
4824 IFS=$as_save_IFS
4825 test -z "$as_dir" && as_dir=.
4826 for ac_exec_ext in '' $ac_executable_extensions; do
4827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4828 ac_cv_prog_LINT="$ac_prog"
4829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4830 break 2
4831 fi
4832done
f5818d2f
AJ
4833done
4834
a9be64e2
PS
4835fi
4836fi
f5818d2f 4837LINT=$ac_cv_prog_LINT
a9be64e2 4838if test -n "$LINT"; then
daa2886c 4839 echo "$as_me:$LINENO: result: $LINT" >&5
f5818d2f 4840echo "${ECHO_T}$LINT" >&6
a9be64e2 4841else
daa2886c 4842 echo "$as_me:$LINENO: result: no" >&5
f5818d2f 4843echo "${ECHO_T}no" >&6
a9be64e2
PS
4844fi
4845
f5818d2f 4846 test -n "$LINT" && break
a9be64e2
PS
4847done
4848
4849if test "$LINT" = "lint"
4850then
4851 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4852 fi
4853
daa2886c
AJ
4854
4855
1d8cb6ef
VB
4856for ac_prog in docbook2html db2html
4857do
4858 # Extract the first word of "$ac_prog", so it can be a program name with args.
4859set dummy $ac_prog; ac_word=$2
4860echo "$as_me:$LINENO: checking for $ac_word" >&5
4861echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4862if test "${ac_cv_prog_DB2HTML+set}" = set; then
4863 echo $ECHO_N "(cached) $ECHO_C" >&6
4864else
4865 if test -n "$DB2HTML"; then
4866 ac_cv_prog_DB2HTML="$DB2HTML" # Let the user override the test.
4867else
4868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4869for as_dir in $PATH
4870do
4871 IFS=$as_save_IFS
4872 test -z "$as_dir" && as_dir=.
4873 for ac_exec_ext in '' $ac_executable_extensions; do
4874 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4875 ac_cv_prog_DB2HTML="$ac_prog"
4876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4877 break 2
4878 fi
4879done
4880done
4881
4882fi
4883fi
4884DB2HTML=$ac_cv_prog_DB2HTML
4885if test -n "$DB2HTML"; then
4886 echo "$as_me:$LINENO: result: $DB2HTML" >&5
4887echo "${ECHO_T}$DB2HTML" >&6
4888else
4889 echo "$as_me:$LINENO: result: no" >&5
4890echo "${ECHO_T}no" >&6
4891fi
4892
4893 test -n "$DB2HTML" && break
4894done
4895test -n "$DB2HTML" || DB2HTML="false"
4896
4897
4898
4899for ac_prog in docbook2pdf db2pdf
4900do
4901 # Extract the first word of "$ac_prog", so it can be a program name with args.
4902set dummy $ac_prog; ac_word=$2
4903echo "$as_me:$LINENO: checking for $ac_word" >&5
4904echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4905if test "${ac_cv_prog_DB2PDF+set}" = set; then
4906 echo $ECHO_N "(cached) $ECHO_C" >&6
4907else
4908 if test -n "$DB2PDF"; then
4909 ac_cv_prog_DB2PDF="$DB2PDF" # Let the user override the test.
4910else
4911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4912for as_dir in $PATH
4913do
4914 IFS=$as_save_IFS
4915 test -z "$as_dir" && as_dir=.
4916 for ac_exec_ext in '' $ac_executable_extensions; do
4917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4918 ac_cv_prog_DB2PDF="$ac_prog"
4919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4920 break 2
4921 fi
4922done
4923done
4924
4925fi
4926fi
4927DB2PDF=$ac_cv_prog_DB2PDF
4928if test -n "$DB2PDF"; then
4929 echo "$as_me:$LINENO: result: $DB2PDF" >&5
4930echo "${ECHO_T}$DB2PDF" >&6
4931else
4932 echo "$as_me:$LINENO: result: no" >&5
4933echo "${ECHO_T}no" >&6
4934fi
4935
4936 test -n "$DB2PDF" && break
4937done
4938test -n "$DB2PDF" || DB2PDF="false"
4939
4940
4941
4942for ac_prog in docbook2ps db2ps
4943do
4944 # Extract the first word of "$ac_prog", so it can be a program name with args.
4945set dummy $ac_prog; ac_word=$2
4946echo "$as_me:$LINENO: checking for $ac_word" >&5
4947echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4948if test "${ac_cv_prog_DB2PS+set}" = set; then
4949 echo $ECHO_N "(cached) $ECHO_C" >&6
4950else
4951 if test -n "$DB2PS"; then
4952 ac_cv_prog_DB2PS="$DB2PS" # Let the user override the test.
4953else
4954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4955for as_dir in $PATH
4956do
4957 IFS=$as_save_IFS
4958 test -z "$as_dir" && as_dir=.
4959 for ac_exec_ext in '' $ac_executable_extensions; do
4960 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4961 ac_cv_prog_DB2PS="$ac_prog"
4962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4963 break 2
4964 fi
4965done
4966done
4967
4968fi
4969fi
4970DB2PS=$ac_cv_prog_DB2PS
4971if test -n "$DB2PS"; then
4972 echo "$as_me:$LINENO: result: $DB2PS" >&5
4973echo "${ECHO_T}$DB2PS" >&6
4974else
4975 echo "$as_me:$LINENO: result: no" >&5
4976echo "${ECHO_T}no" >&6
4977fi
4978
4979 test -n "$DB2PS" && break
4980done
4981test -n "$DB2PS" || DB2PS="false"
4982
4983
4984
b817a3c5
DP
4985for ac_prog in docbook2txt db2txt
4986do
4987 # Extract the first word of "$ac_prog", so it can be a program name with args.
4988set dummy $ac_prog; ac_word=$2
4989echo "$as_me:$LINENO: checking for $ac_word" >&5
4990echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4991if test "${ac_cv_prog_DB2TXT+set}" = set; then
4992 echo $ECHO_N "(cached) $ECHO_C" >&6
4993else
4994 if test -n "$DB2TXT"; then
4995 ac_cv_prog_DB2TXT="$DB2TXT" # Let the user override the test.
4996else
4997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4998for as_dir in $PATH
4999do
5000 IFS=$as_save_IFS
5001 test -z "$as_dir" && as_dir=.
5002 for ac_exec_ext in '' $ac_executable_extensions; do
5003 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5004 ac_cv_prog_DB2TXT="$ac_prog"
5005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5006 break 2
5007 fi
5008done
5009done
5010
5011fi
5012fi
5013DB2TXT=$ac_cv_prog_DB2TXT
5014if test -n "$DB2TXT"; then
5015 echo "$as_me:$LINENO: result: $DB2TXT" >&5
5016echo "${ECHO_T}$DB2TXT" >&6
5017else
5018 echo "$as_me:$LINENO: result: no" >&5
5019echo "${ECHO_T}no" >&6
5020fi
5021
5022 test -n "$DB2TXT" && break
5023done
5024test -n "$DB2TXT" || DB2TXT="false"
5025
5026
5027
daa2886c
AJ
5028
5029
5030echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
f5818d2f
AJ
5031echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
5032if test "${ac_cv_lib_m_sqrt+set}" = set; then
5033 echo $ECHO_N "(cached) $ECHO_C" >&6
13277480 5034else
f5818d2f 5035 ac_check_lib_save_LIBS=$LIBS
13277480 5036LIBS="-lm $LIBS"
f5818d2f 5037cat >conftest.$ac_ext <<_ACEOF
daa2886c 5038#line $LINENO "configure"
e24bcc77
AJ
5039/* confdefs.h. */
5040_ACEOF
5041cat confdefs.h >>conftest.$ac_ext
5042cat >>conftest.$ac_ext <<_ACEOF
5043/* end confdefs.h. */
f5818d2f 5044
13277480 5045/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
5046#ifdef __cplusplus
5047extern "C"
5048#endif
13277480 5049/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
5050 builtin and then its argument prototype would still apply. */
5051char sqrt ();
5052int
5053main ()
5054{
5055sqrt ();
5056 ;
5057 return 0;
5058}
5059_ACEOF
5060rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 5061if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
5062 (eval $ac_link) 2>&5
5063 ac_status=$?
daa2886c 5064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
5065 (exit $ac_status); } &&
5066 { ac_try='test -s conftest$ac_exeext'
daa2886c 5067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
5068 (eval $ac_try) 2>&5
5069 ac_status=$?
daa2886c 5070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
5071 (exit $ac_status); }; }; then
5072 ac_cv_lib_m_sqrt=yes
5073else
5074 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
5075sed 's/^/| /' conftest.$ac_ext >&5
5076
f5818d2f
AJ
5077ac_cv_lib_m_sqrt=no
5078fi
5079rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5080LIBS=$ac_check_lib_save_LIBS
5081fi
daa2886c 5082echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
f5818d2f
AJ
5083echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
5084if test $ac_cv_lib_m_sqrt = yes; then
daa2886c 5085 cat >>confdefs.h <<_ACEOF
f5818d2f 5086#define HAVE_LIBM 1
daa2886c 5087_ACEOF
f5818d2f
AJ
5088
5089 LIBS="-lm $LIBS"
13277480
HA
5090
5091fi
13277480 5092
daa2886c
AJ
5093
5094echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
f5818d2f
AJ
5095echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6
5096if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
5097 echo $ECHO_N "(cached) $ECHO_C" >&6
902da699 5098else
f5818d2f 5099 ac_check_lib_save_LIBS=$LIBS
902da699 5100LIBS="-li386 $LIBS"
f5818d2f 5101cat >conftest.$ac_ext <<_ACEOF
daa2886c 5102#line $LINENO "configure"
e24bcc77
AJ
5103/* confdefs.h. */
5104_ACEOF
5105cat confdefs.h >>conftest.$ac_ext
5106cat >>conftest.$ac_ext <<_ACEOF
5107/* end confdefs.h. */
f5818d2f 5108
59730ae1 5109/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
5110#ifdef __cplusplus
5111extern "C"
5112#endif
e2bfa4c7 5113/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
5114 builtin and then its argument prototype would still apply. */
5115char i386_set_ldt ();
5116int
5117main ()
5118{
5119i386_set_ldt ();
5120 ;
5121 return 0;
5122}
5123_ACEOF
5124rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 5125if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
5126 (eval $ac_link) 2>&5
5127 ac_status=$?
daa2886c 5128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
5129 (exit $ac_status); } &&
5130 { ac_try='test -s conftest$ac_exeext'
daa2886c 5131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
5132 (eval $ac_try) 2>&5
5133 ac_status=$?
daa2886c 5134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
5135 (exit $ac_status); }; }; then
5136 ac_cv_lib_i386_i386_set_ldt=yes
5137else
5138 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
5139sed 's/^/| /' conftest.$ac_ext >&5
5140
f5818d2f
AJ
5141ac_cv_lib_i386_i386_set_ldt=no
5142fi
5143rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5144LIBS=$ac_check_lib_save_LIBS
5145fi
daa2886c 5146echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
f5818d2f
AJ
5147echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6
5148if test $ac_cv_lib_i386_i386_set_ldt = yes; then
daa2886c 5149 cat >>confdefs.h <<_ACEOF
f5818d2f 5150#define HAVE_LIBI386 1
daa2886c 5151_ACEOF
02e90087
AJ
5152
5153 LIBS="-li386 $LIBS"
5154
02e90087
AJ
5155fi
5156
daa2886c
AJ
5157
5158echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
f5818d2f
AJ
5159echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5160if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5161 echo $ECHO_N "(cached) $ECHO_C" >&6
ecc7669d 5162else
f5818d2f 5163 ac_check_lib_save_LIBS=$LIBS
ecc7669d 5164LIBS="-lossaudio $LIBS"
f5818d2f 5165cat >conftest.$ac_ext <<_ACEOF
daa2886c 5166#line $LINENO "configure"
e24bcc77
AJ
5167/* confdefs.h. */
5168_ACEOF
5169cat confdefs.h >>conftest.$ac_ext
5170cat >>conftest.$ac_ext <<_ACEOF
5171/* end confdefs.h. */
f5818d2f 5172
ecc7669d 5173/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
5174#ifdef __cplusplus
5175extern "C"
5176#endif
ecc7669d 5177/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
5178 builtin and then its argument prototype would still apply. */
5179char _oss_ioctl ();
5180int
5181main ()
5182{
5183_oss_ioctl ();
5184 ;
5185 return 0;
5186}
5187_ACEOF
5188rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 5189if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
5190 (eval $ac_link) 2>&5
5191 ac_status=$?
daa2886c 5192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
5193 (exit $ac_status); } &&
5194 { ac_try='test -s conftest$ac_exeext'
daa2886c 5195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
5196 (eval $ac_try) 2>&5
5197 ac_status=$?
daa2886c 5198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
5199 (exit $ac_status); }; }; then
5200 ac_cv_lib_ossaudio__oss_ioctl=yes
5201else
5202 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
5203sed 's/^/| /' conftest.$ac_ext >&5
5204
f5818d2f
AJ
5205ac_cv_lib_ossaudio__oss_ioctl=no
5206fi
5207rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5208LIBS=$ac_check_lib_save_LIBS
5209fi
daa2886c 5210echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
f5818d2f
AJ
5211echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5212if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
daa2886c 5213 cat >>confdefs.h <<_ACEOF
f5818d2f 5214#define HAVE_LIBOSSAUDIO 1
daa2886c 5215_ACEOF
ecc7669d
TV
5216
5217 LIBS="-lossaudio $LIBS"
5218
ecc7669d
TV
5219fi
5220
daa2886c 5221
2e8e2334
UW
5222for ac_func in iswalnum
5223do
f5818d2f 5224as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
daa2886c 5225echo "$as_me:$LINENO: checking for $ac_func" >&5
f5818d2f
AJ
5226echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5227if eval "test \"\${$as_ac_var+set}\" = set"; then
5228 echo $ECHO_N "(cached) $ECHO_C" >&6
5229else
5230 cat >conftest.$ac_ext <<_ACEOF
daa2886c 5231#line $LINENO "configure"
e24bcc77
AJ
5232/* confdefs.h. */
5233_ACEOF
5234cat confdefs.h >>conftest.$ac_ext
5235cat >>conftest.$ac_ext <<_ACEOF
5236/* end confdefs.h. */
2e8e2334 5237/* System header to define __stub macros and hopefully few prototypes,
e24bcc77
AJ
5238 which can conflict with char $ac_func (); below.
5239 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5240 <limits.h> exists even on freestanding compilers. */
5241#ifdef __STDC__
5242# include <limits.h>
5243#else
5244# include <assert.h>
5245#endif
2e8e2334 5246/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
5247#ifdef __cplusplus
5248extern "C"
e24bcc77 5249{
f5818d2f 5250#endif
2e8e2334 5251/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
5252 builtin and then its argument prototype would still apply. */
5253char $ac_func ();
2e8e2334
UW
5254/* The GNU C library defines this for functions which it implements
5255 to always fail with ENOSYS. Some functions are actually named
5256 something starting with __ and the normal name is an alias. */
5257#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5258choke me
5259#else
e24bcc77
AJ
5260char (*f) () = $ac_func;
5261#endif
5262#ifdef __cplusplus
5263}
2e8e2334
UW
5264#endif
5265
e24bcc77
AJ
5266int
5267main ()
5268{
5269return f != $ac_func;
f5818d2f
AJ
5270 ;
5271 return 0;
5272}
5273_ACEOF
5274rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 5275if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
5276 (eval $ac_link) 2>&5
5277 ac_status=$?
daa2886c 5278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
5279 (exit $ac_status); } &&
5280 { ac_try='test -s conftest$ac_exeext'
daa2886c 5281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
5282 (eval $ac_try) 2>&5
5283 ac_status=$?
daa2886c 5284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
5285 (exit $ac_status); }; }; then
5286 eval "$as_ac_var=yes"
5287else
5288 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
5289sed 's/^/| /' conftest.$ac_ext >&5
5290
f5818d2f
AJ
5291eval "$as_ac_var=no"
5292fi
5293rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5294fi
daa2886c 5295echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
f5818d2f
AJ
5296echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5297if test `eval echo '${'$as_ac_var'}'` = yes; then
daa2886c 5298 cat >>confdefs.h <<_ACEOF
f5818d2f 5299#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
daa2886c 5300_ACEOF
f5818d2f
AJ
5301
5302else
5303
daa2886c 5304echo "$as_me:$LINENO: checking for iswalnum in -lw" >&5
f5818d2f
AJ
5305echo $ECHO_N "checking for iswalnum in -lw... $ECHO_C" >&6
5306if test "${ac_cv_lib_w_iswalnum+set}" = set; then
5307 echo $ECHO_N "(cached) $ECHO_C" >&6
5308else
5309 ac_check_lib_save_LIBS=$LIBS
02e90087 5310LIBS="-lw $LIBS"
f5818d2f 5311cat >conftest.$ac_ext <<_ACEOF
daa2886c 5312#line $LINENO "configure"
e24bcc77
AJ
5313/* confdefs.h. */
5314_ACEOF
5315cat confdefs.h >>conftest.$ac_ext
5316cat >>conftest.$ac_ext <<_ACEOF
5317/* end confdefs.h. */
f5818d2f 5318
02e90087 5319/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
5320#ifdef __cplusplus
5321extern "C"
5322#endif
02e90087 5323/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
5324 builtin and then its argument prototype would still apply. */
5325char iswalnum ();
5326int
5327main ()
5328{
5329iswalnum ();
5330 ;
5331 return 0;
5332}
5333_ACEOF
5334rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 5335if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
5336 (eval $ac_link) 2>&5
5337 ac_status=$?
daa2886c 5338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
5339 (exit $ac_status); } &&
5340 { ac_try='test -s conftest$ac_exeext'
daa2886c 5341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
5342 (eval $ac_try) 2>&5
5343 ac_status=$?
daa2886c 5344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
5345 (exit $ac_status); }; }; then
5346 ac_cv_lib_w_iswalnum=yes
5347else
5348 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
5349sed 's/^/| /' conftest.$ac_ext >&5
5350
f5818d2f
AJ
5351ac_cv_lib_w_iswalnum=no
5352fi
5353rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5354LIBS=$ac_check_lib_save_LIBS
5355fi
daa2886c 5356echo "$as_me:$LINENO: result: $ac_cv_lib_w_iswalnum" >&5
f5818d2f
AJ
5357echo "${ECHO_T}$ac_cv_lib_w_iswalnum" >&6
5358if test $ac_cv_lib_w_iswalnum = yes; then
daa2886c 5359 cat >>confdefs.h <<_ACEOF
f5818d2f 5360#define HAVE_LIBW 1
daa2886c 5361_ACEOF
02e90087
AJ
5362
5363 LIBS="-lw $LIBS"
5364
02e90087
AJ
5365fi
5366
2e8e2334
UW
5367fi
5368done
5369
daa2886c 5370
ea584724
PS
5371for ac_func in gethostbyname
5372do
f5818d2f 5373as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
daa2886c 5374echo "$as_me:$LINENO: checking for $ac_func" >&5
f5818d2f
AJ
5375echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5376if eval "test \"\${$as_ac_var+set}\" = set"; then
5377 echo $ECHO_N "(cached) $ECHO_C" >&6
5378else
5379 cat >conftest.$ac_ext <<_ACEOF
daa2886c 5380#line $LINENO "configure"
e24bcc77
AJ
5381/* confdefs.h. */
5382_ACEOF
5383cat confdefs.h >>conftest.$ac_ext
5384cat >>conftest.$ac_ext <<_ACEOF
5385/* end confdefs.h. */
ea584724 5386/* System header to define __stub macros and hopefully few prototypes,
e24bcc77
AJ
5387 which can conflict with char $ac_func (); below.
5388 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5389 <limits.h> exists even on freestanding compilers. */
5390#ifdef __STDC__
5391# include <limits.h>
5392#else
5393# include <assert.h>
5394#endif
ea584724 5395/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
5396#ifdef __cplusplus
5397extern "C"
e24bcc77 5398{
f5818d2f 5399#endif
ea584724 5400/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
5401 builtin and then its argument prototype would still apply. */
5402char $ac_func ();
ea584724
PS
5403/* The GNU C library defines this for functions which it implements
5404 to always fail with ENOSYS. Some functions are actually named
5405 something starting with __ and the normal name is an alias. */
5406#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5407choke me
5408#else
e24bcc77
AJ
5409char (*f) () = $ac_func;
5410#endif
5411#ifdef __cplusplus
5412}
ea584724
PS
5413#endif
5414
e24bcc77
AJ
5415int
5416main ()
5417{
5418return f != $ac_func;
f5818d2f
AJ
5419 ;
5420 return 0;
5421}
5422_ACEOF
5423rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 5424if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
5425 (eval $ac_link) 2>&5
5426 ac_status=$?
daa2886c 5427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
5428 (exit $ac_status); } &&
5429 { ac_try='test -s conftest$ac_exeext'
daa2886c 5430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
5431 (eval $ac_try) 2>&5
5432 ac_status=$?
daa2886c 5433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
5434 (exit $ac_status); }; }; then
5435 eval "$as_ac_var=yes"
5436else
5437 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
5438sed 's/^/| /' conftest.$ac_ext >&5
5439
f5818d2f
AJ
5440eval "$as_ac_var=no"
5441fi
5442rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5443fi
daa2886c 5444echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
f5818d2f
AJ
5445echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5446if test `eval echo '${'$as_ac_var'}'` = yes; then
daa2886c 5447 cat >>confdefs.h <<_ACEOF
f5818d2f 5448#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
daa2886c 5449_ACEOF
f5818d2f
AJ
5450
5451else
5452
daa2886c 5453echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
f5818d2f
AJ
5454echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5455if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5456 echo $ECHO_N "(cached) $ECHO_C" >&6
5457else
5458 ac_check_lib_save_LIBS=$LIBS
2e8e2334 5459LIBS="-lnsl $LIBS"
f5818d2f 5460cat >conftest.$ac_ext <<_ACEOF
daa2886c 5461#line $LINENO "configure"
e24bcc77
AJ
5462/* confdefs.h. */
5463_ACEOF
5464cat confdefs.h >>conftest.$ac_ext
5465cat >>conftest.$ac_ext <<_ACEOF
5466/* end confdefs.h. */
f5818d2f 5467
ea584724 5468/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
5469#ifdef __cplusplus
5470extern "C"
5471#endif
ea584724 5472/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
5473 builtin and then its argument prototype would still apply. */
5474char gethostbyname ();
5475int
5476main ()
5477{
5478gethostbyname ();
5479 ;
5480 return 0;
5481}
5482_ACEOF
5483rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 5484if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
5485 (eval $ac_link) 2>&5
5486 ac_status=$?
daa2886c 5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
5488 (exit $ac_status); } &&
5489 { ac_try='test -s conftest$ac_exeext'
daa2886c 5490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
5491 (eval $ac_try) 2>&5
5492 ac_status=$?
daa2886c 5493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
5494 (exit $ac_status); }; }; then
5495 ac_cv_lib_nsl_gethostbyname=yes
5496else
5497 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
5498sed 's/^/| /' conftest.$ac_ext >&5
5499
f5818d2f
AJ
5500ac_cv_lib_nsl_gethostbyname=no
5501fi
5502rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5503LIBS=$ac_check_lib_save_LIBS
5504fi
daa2886c 5505echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
f5818d2f
AJ
5506echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5507if test $ac_cv_lib_nsl_gethostbyname = yes; then
daa2886c 5508 cat >>confdefs.h <<_ACEOF
f5818d2f 5509#define HAVE_LIBNSL 1
daa2886c 5510_ACEOF
ea584724 5511
2e8e2334
UW
5512 LIBS="-lnsl $LIBS"
5513
ea584724
PS
5514fi
5515
715a55e7 5516fi
f070fda2
MM
5517done
5518
daa2886c 5519
715a55e7
UW
5520for ac_func in connect
5521do
f5818d2f 5522as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
daa2886c 5523echo "$as_me:$LINENO: checking for $ac_func" >&5
f5818d2f
AJ
5524echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5525if eval "test \"\${$as_ac_var+set}\" = set"; then
5526 echo $ECHO_N "(cached) $ECHO_C" >&6
5527else
5528 cat >conftest.$ac_ext <<_ACEOF
daa2886c 5529#line $LINENO "configure"
e24bcc77
AJ
5530/* confdefs.h. */
5531_ACEOF
5532cat confdefs.h >>conftest.$ac_ext
5533cat >>conftest.$ac_ext <<_ACEOF
5534/* end confdefs.h. */
715a55e7 5535/* System header to define __stub macros and hopefully few prototypes,
e24bcc77
AJ
5536 which can conflict with char $ac_func (); below.
5537 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5538 <limits.h> exists even on freestanding compilers. */
5539#ifdef __STDC__
5540# include <limits.h>
5541#else
5542# include <assert.h>
5543#endif
715a55e7 5544/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
5545#ifdef __cplusplus
5546extern "C"
e24bcc77 5547{
f5818d2f 5548#endif
715a55e7 5549/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
5550 builtin and then its argument prototype would still apply. */
5551char $ac_func ();
715a55e7
UW
5552/* The GNU C library defines this for functions which it implements
5553 to always fail with ENOSYS. Some functions are actually named
5554 something starting with __ and the normal name is an alias. */
5555#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5556choke me
5557#else
e24bcc77
AJ
5558char (*f) () = $ac_func;
5559#endif
5560#ifdef __cplusplus
5561}
715a55e7
UW
5562#endif
5563
e24bcc77
AJ
5564int
5565main ()
5566{
5567return f != $ac_func;
f5818d2f
AJ
5568 ;
5569 return 0;
5570}
5571_ACEOF
5572rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 5573if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
5574 (eval $ac_link) 2>&5
5575 ac_status=$?
daa2886c 5576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
5577 (exit $ac_status); } &&
5578 { ac_try='test -s conftest$ac_exeext'
daa2886c 5579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
5580 (eval $ac_try) 2>&5
5581 ac_status=$?
daa2886c 5582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
5583 (exit $ac_status); }; }; then
5584 eval "$as_ac_var=yes"
5585else
5586 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
5587sed 's/^/| /' conftest.$ac_ext >&5
5588
f5818d2f
AJ
5589eval "$as_ac_var=no"
5590fi
5591rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5592fi
daa2886c 5593echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
f5818d2f
AJ
5594echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5595if test `eval echo '${'$as_ac_var'}'` = yes; then
daa2886c 5596 cat >>confdefs.h <<_ACEOF
f5818d2f 5597#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
daa2886c 5598_ACEOF
f5818d2f
AJ
5599
5600else
5601
daa2886c 5602echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
f5818d2f
AJ
5603echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5604if test "${ac_cv_lib_socket_connect+set}" = set; then
5605 echo $ECHO_N "(cached) $ECHO_C" >&6
5606else
5607 ac_check_lib_save_LIBS=$LIBS
715a55e7 5608LIBS="-lsocket $LIBS"
f5818d2f 5609cat >conftest.$ac_ext <<_ACEOF
daa2886c 5610#line $LINENO "configure"
e24bcc77
AJ
5611/* confdefs.h. */
5612_ACEOF
5613cat confdefs.h >>conftest.$ac_ext
5614cat >>conftest.$ac_ext <<_ACEOF
5615/* end confdefs.h. */
f5818d2f 5616
715a55e7 5617/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
5618#ifdef __cplusplus
5619extern "C"
5620#endif
715a55e7 5621/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
5622 builtin and then its argument prototype would still apply. */
5623char connect ();
5624int
5625main ()
5626{
5627connect ();
5628 ;
5629 return 0;
5630}
5631_ACEOF
5632rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 5633if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
5634 (eval $ac_link) 2>&5
5635 ac_status=$?
daa2886c 5636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
5637 (exit $ac_status); } &&
5638 { ac_try='test -s conftest$ac_exeext'
daa2886c 5639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
5640 (eval $ac_try) 2>&5
5641 ac_status=$?
daa2886c 5642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
5643 (exit $ac_status); }; }; then
5644 ac_cv_lib_socket_connect=yes
5645else
5646 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
5647sed 's/^/| /' conftest.$ac_ext >&5
5648
f5818d2f
AJ
5649ac_cv_lib_socket_connect=no
5650fi
5651rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5652LIBS=$ac_check_lib_save_LIBS
5653fi
daa2886c 5654echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
f5818d2f
AJ
5655echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5656if test $ac_cv_lib_socket_connect = yes; then
daa2886c 5657 cat >>confdefs.h <<_ACEOF
f5818d2f 5658#define HAVE_LIBSOCKET 1
daa2886c 5659_ACEOF
715a55e7
UW
5660
5661 LIBS="-lsocket $LIBS"
5662
715a55e7
UW
5663fi
5664
ea584724 5665fi
f070fda2
MM
5666done
5667
daa2886c 5668
c555274d
AJ
5669for ac_func in inet_aton
5670do
5671as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
daa2886c 5672echo "$as_me:$LINENO: checking for $ac_func" >&5
c555274d
AJ
5673echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5674if eval "test \"\${$as_ac_var+set}\" = set"; then
5675 echo $ECHO_N "(cached) $ECHO_C" >&6
5676else
5677 cat >conftest.$ac_ext <<_ACEOF
daa2886c 5678#line $LINENO "configure"
e24bcc77
AJ
5679/* confdefs.h. */
5680_ACEOF
5681cat confdefs.h >>conftest.$ac_ext
5682cat >>conftest.$ac_ext <<_ACEOF
5683/* end confdefs.h. */
c555274d 5684/* System header to define __stub macros and hopefully few prototypes,
e24bcc77
AJ
5685 which can conflict with char $ac_func (); below.
5686 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5687 <limits.h> exists even on freestanding compilers. */
5688#ifdef __STDC__
5689# include <limits.h>
5690#else
5691# include <assert.h>
5692#endif
c555274d
AJ
5693/* Override any gcc2 internal prototype to avoid an error. */
5694#ifdef __cplusplus
5695extern "C"
e24bcc77 5696{
c555274d
AJ
5697#endif
5698/* We use char because int might match the return type of a gcc2
5699 builtin and then its argument prototype would still apply. */
5700char $ac_func ();
c555274d
AJ
5701/* The GNU C library defines this for functions which it implements
5702 to always fail with ENOSYS. Some functions are actually named
5703 something starting with __ and the normal name is an alias. */
5704#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5705choke me
5706#else
e24bcc77
AJ
5707char (*f) () = $ac_func;
5708#endif
5709#ifdef __cplusplus
5710}
c555274d
AJ
5711#endif
5712
e24bcc77
AJ
5713int
5714main ()
5715{
5716return f != $ac_func;
c555274d
AJ
5717 ;
5718 return 0;
5719}
5720_ACEOF
5721rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 5722if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
c555274d
AJ
5723 (eval $ac_link) 2>&5
5724 ac_status=$?
daa2886c 5725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
c555274d
AJ
5726 (exit $ac_status); } &&
5727 { ac_try='test -s conftest$ac_exeext'
daa2886c 5728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
c555274d
AJ
5729 (eval $ac_try) 2>&5
5730 ac_status=$?
daa2886c 5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
c555274d
AJ
5732 (exit $ac_status); }; }; then
5733 eval "$as_ac_var=yes"
5734else
5735 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
5736sed 's/^/| /' conftest.$ac_ext >&5
5737
c555274d
AJ
5738eval "$as_ac_var=no"
5739fi
5740rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5741fi
daa2886c 5742echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
c555274d
AJ
5743echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5744if test `eval echo '${'$as_ac_var'}'` = yes; then
daa2886c 5745 cat >>confdefs.h <<_ACEOF
c555274d 5746#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
daa2886c 5747_ACEOF
c555274d
AJ
5748
5749else
5750
daa2886c 5751echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
3b943bca
FG
5752echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
5753if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
f5818d2f 5754 echo $ECHO_N "(cached) $ECHO_C" >&6
d30dfd24 5755else
f5818d2f 5756 ac_check_lib_save_LIBS=$LIBS
3b943bca 5757LIBS="-lresolv $LIBS"
f5818d2f 5758cat >conftest.$ac_ext <<_ACEOF
daa2886c 5759#line $LINENO "configure"
e24bcc77
AJ
5760/* confdefs.h. */
5761_ACEOF
5762cat confdefs.h >>conftest.$ac_ext
5763cat >>conftest.$ac_ext <<_ACEOF
5764/* end confdefs.h. */
f5818d2f 5765
d30dfd24 5766/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
5767#ifdef __cplusplus
5768extern "C"
5769#endif
d30dfd24 5770/* We use char because int might match the return type of a gcc2
f5818d2f 5771 builtin and then its argument prototype would still apply. */
3b943bca 5772char inet_aton ();
f5818d2f
AJ
5773int
5774main ()
5775{
3b943bca 5776inet_aton ();
f5818d2f
AJ
5777 ;
5778 return 0;
5779}
5780_ACEOF
5781rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 5782if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
5783 (eval $ac_link) 2>&5
5784 ac_status=$?
daa2886c 5785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
5786 (exit $ac_status); } &&
5787 { ac_try='test -s conftest$ac_exeext'
daa2886c 5788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
5789 (eval $ac_try) 2>&5
5790 ac_status=$?
daa2886c 5791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 5792 (exit $ac_status); }; }; then
3b943bca
FG
5793 ac_cv_lib_resolv_inet_aton=yes
5794else
5795 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
5796sed 's/^/| /' conftest.$ac_ext >&5
5797
3b943bca
FG
5798ac_cv_lib_resolv_inet_aton=no
5799fi
5800rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5801LIBS=$ac_check_lib_save_LIBS
5802fi
daa2886c 5803echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
3b943bca
FG
5804echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
5805if test $ac_cv_lib_resolv_inet_aton = yes; then
daa2886c 5806 cat >>confdefs.h <<_ACEOF
3b943bca 5807#define HAVE_LIBRESOLV 1
daa2886c 5808_ACEOF
3b943bca
FG
5809
5810 LIBS="-lresolv $LIBS"
5811
5812fi
5813
c555274d
AJ
5814fi
5815done
5816
daa2886c
AJ
5817
5818echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
3b943bca
FG
5819echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
5820if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
5821 echo $ECHO_N "(cached) $ECHO_C" >&6
5822else
5823 ac_check_lib_save_LIBS=$LIBS
5824LIBS="-lxpg4 $LIBS"
5825cat >conftest.$ac_ext <<_ACEOF
daa2886c 5826#line $LINENO "configure"
e24bcc77
AJ
5827/* confdefs.h. */
5828_ACEOF
5829cat confdefs.h >>conftest.$ac_ext
5830cat >>conftest.$ac_ext <<_ACEOF
5831/* end confdefs.h. */
3b943bca
FG
5832
5833/* Override any gcc2 internal prototype to avoid an error. */
5834#ifdef __cplusplus
5835extern "C"
5836#endif
5837/* We use char because int might match the return type of a gcc2
5838 builtin and then its argument prototype would still apply. */
5839char _xpg4_setrunelocale ();
5840int
5841main ()
5842{
5843_xpg4_setrunelocale ();
5844 ;
5845 return 0;
5846}
5847_ACEOF
5848rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 5849if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3b943bca
FG
5850 (eval $ac_link) 2>&5
5851 ac_status=$?
daa2886c 5852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3b943bca
FG
5853 (exit $ac_status); } &&
5854 { ac_try='test -s conftest$ac_exeext'
daa2886c 5855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3b943bca
FG
5856 (eval $ac_try) 2>&5
5857 ac_status=$?
daa2886c 5858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3b943bca 5859 (exit $ac_status); }; }; then
f5818d2f
AJ
5860 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
5861else
5862 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
5863sed 's/^/| /' conftest.$ac_ext >&5
5864
f5818d2f
AJ
5865ac_cv_lib_xpg4__xpg4_setrunelocale=no
5866fi
5867rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5868LIBS=$ac_check_lib_save_LIBS
5869fi
daa2886c 5870echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
f5818d2f
AJ
5871echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
5872if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
daa2886c 5873 cat >>confdefs.h <<_ACEOF
f5818d2f 5874#define HAVE_LIBXPG4 1
daa2886c 5875_ACEOF
d30dfd24
AJ
5876
5877 LIBS="-lxpg4 $LIBS"
5878
d30dfd24
AJ
5879fi
5880
794bf0fd
PH
5881
5882echo "$as_me:$LINENO: checking for poll in -lpoll" >&5
5883echo $ECHO_N "checking for poll in -lpoll... $ECHO_C" >&6
5884if test "${ac_cv_lib_poll_poll+set}" = set; then
5885 echo $ECHO_N "(cached) $ECHO_C" >&6
5886else
5887 ac_check_lib_save_LIBS=$LIBS
5888LIBS="-lpoll $LIBS"
5889cat >conftest.$ac_ext <<_ACEOF
5890#line $LINENO "configure"
5891/* confdefs.h. */
5892_ACEOF
5893cat confdefs.h >>conftest.$ac_ext
5894cat >>conftest.$ac_ext <<_ACEOF
5895/* end confdefs.h. */
5896
5897/* Override any gcc2 internal prototype to avoid an error. */
5898#ifdef __cplusplus
5899extern "C"
5900#endif
5901/* We use char because int might match the return type of a gcc2
5902 builtin and then its argument prototype would still apply. */
5903char poll ();
5904int
5905main ()
5906{
5907poll ();
5908 ;
5909 return 0;
5910}
5911_ACEOF
5912rm -f conftest.$ac_objext conftest$ac_exeext
5913if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5914 (eval $ac_link) 2>&5
5915 ac_status=$?
5916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917 (exit $ac_status); } &&
5918 { ac_try='test -s conftest$ac_exeext'
5919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5920 (eval $ac_try) 2>&5
5921 ac_status=$?
5922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923 (exit $ac_status); }; }; then
5924 ac_cv_lib_poll_poll=yes
5925else
5926 echo "$as_me: failed program was:" >&5
5927sed 's/^/| /' conftest.$ac_ext >&5
5928
5929ac_cv_lib_poll_poll=no
5930fi
5931rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5932LIBS=$ac_check_lib_save_LIBS
5933fi
5934echo "$as_me:$LINENO: result: $ac_cv_lib_poll_poll" >&5
5935echo "${ECHO_T}$ac_cv_lib_poll_poll" >&6
5936if test $ac_cv_lib_poll_poll = yes; then
5937 cat >>confdefs.h <<_ACEOF
5938#define HAVE_LIBPOLL 1
5939_ACEOF
5940
5941 LIBS="-lpoll $LIBS"
5942
5943fi
5944
f45325e4
AJ
5945echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
5946echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
5947if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
f5818d2f 5948 echo $ECHO_N "(cached) $ECHO_C" >&6
0e7bd08c 5949else
f5818d2f 5950 ac_check_lib_save_LIBS=$LIBS
f45325e4 5951LIBS="-lpthread $LIBS"
f5818d2f 5952cat >conftest.$ac_ext <<_ACEOF
daa2886c 5953#line $LINENO "configure"
e24bcc77
AJ
5954/* confdefs.h. */
5955_ACEOF
5956cat confdefs.h >>conftest.$ac_ext
5957cat >>conftest.$ac_ext <<_ACEOF
5958/* end confdefs.h. */
f5818d2f 5959
0e7bd08c 5960/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
5961#ifdef __cplusplus
5962extern "C"
5963#endif
0e7bd08c 5964/* We use char because int might match the return type of a gcc2
f5818d2f 5965 builtin and then its argument prototype would still apply. */
f45325e4 5966char pthread_create ();
f5818d2f
AJ
5967int
5968main ()
5969{
f45325e4 5970pthread_create ();
f5818d2f
AJ
5971 ;
5972 return 0;
5973}
5974_ACEOF
5975rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 5976if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
5977 (eval $ac_link) 2>&5
5978 ac_status=$?
daa2886c 5979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
5980 (exit $ac_status); } &&
5981 { ac_try='test -s conftest$ac_exeext'
daa2886c 5982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
5983 (eval $ac_try) 2>&5
5984 ac_status=$?
daa2886c 5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 5986 (exit $ac_status); }; }; then
f45325e4 5987 ac_cv_lib_pthread_pthread_create=yes
f5818d2f
AJ
5988else
5989 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
5990sed 's/^/| /' conftest.$ac_ext >&5
5991
f45325e4 5992ac_cv_lib_pthread_pthread_create=no
f5818d2f
AJ
5993fi
5994rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5995LIBS=$ac_check_lib_save_LIBS
5996fi
f45325e4
AJ
5997echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
5998echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
5999if test $ac_cv_lib_pthread_pthread_create = yes; then
6000 LIBPTHREAD="-lpthread"
0e7bd08c 6001
0e7bd08c
AJ
6002fi
6003
daa2886c 6004
fa3a5360 6005JPEGLIB=""
562089b5 6006
11af04e3
AJ
6007echo "$as_me:$LINENO: checking for egrep" >&5
6008echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6009if test "${ac_cv_prog_egrep+set}" = set; then
6010 echo $ECHO_N "(cached) $ECHO_C" >&6
6011else
6012 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6013 then ac_cv_prog_egrep='grep -E'
6014 else ac_cv_prog_egrep='egrep'
6015 fi
6016fi
6017echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6018echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6019 EGREP=$ac_cv_prog_egrep
6020
6021
daa2886c
AJ
6022echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6023echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6024if test "${ac_cv_header_stdc+set}" = set; then
f5818d2f
AJ
6025 echo $ECHO_N "(cached) $ECHO_C" >&6
6026else
6027 cat >conftest.$ac_ext <<_ACEOF
daa2886c 6028#line $LINENO "configure"
e24bcc77
AJ
6029/* confdefs.h. */
6030_ACEOF
6031cat confdefs.h >>conftest.$ac_ext
6032cat >>conftest.$ac_ext <<_ACEOF
6033/* end confdefs.h. */
daa2886c
AJ
6034#include <stdlib.h>
6035#include <stdarg.h>
6036#include <string.h>
6037#include <float.h>
6038
e24bcc77
AJ
6039int
6040main ()
6041{
6042
6043 ;
6044 return 0;
6045}
f5818d2f 6046_ACEOF
e24bcc77
AJ
6047rm -f conftest.$ac_objext
6048if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6049 (eval $ac_compile) 2>&5
f5818d2f 6050 ac_status=$?
daa2886c 6051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
e24bcc77
AJ
6052 (exit $ac_status); } &&
6053 { ac_try='test -s conftest.$ac_objext'
6054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6055 (eval $ac_try) 2>&5
6056 ac_status=$?
6057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058 (exit $ac_status); }; }; then
daa2886c 6059 ac_cv_header_stdc=yes
f5818d2f
AJ
6060else
6061 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
6062sed 's/^/| /' conftest.$ac_ext >&5
6063
6064ac_cv_header_stdc=no
f070fda2 6065fi
e24bcc77 6066rm -f conftest.$ac_objext conftest.$ac_ext
f5818d2f 6067
daa2886c
AJ
6068if test $ac_cv_header_stdc = yes; then
6069 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
f5818d2f 6070 cat >conftest.$ac_ext <<_ACEOF
daa2886c 6071#line $LINENO "configure"
e24bcc77
AJ
6072/* confdefs.h. */
6073_ACEOF
6074cat confdefs.h >>conftest.$ac_ext
6075cat >>conftest.$ac_ext <<_ACEOF
6076/* end confdefs.h. */
daa2886c 6077#include <string.h>
f070fda2 6078
f5818d2f 6079_ACEOF
daa2886c 6080if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11af04e3 6081 $EGREP "memchr" >/dev/null 2>&1; then
daa2886c 6082 :
f5818d2f 6083else
daa2886c 6084 ac_cv_header_stdc=no
f5818d2f 6085fi
daa2886c
AJ
6086rm -f conftest*
6087
f5818d2f 6088fi
f5818d2f 6089
daa2886c
AJ
6090if test $ac_cv_header_stdc = yes; then
6091 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6092 cat >conftest.$ac_ext <<_ACEOF
6093#line $LINENO "configure"
e24bcc77
AJ
6094/* confdefs.h. */
6095_ACEOF
6096cat confdefs.h >>conftest.$ac_ext
6097cat >>conftest.$ac_ext <<_ACEOF
6098/* end confdefs.h. */
daa2886c 6099#include <stdlib.h>
f5818d2f 6100
daa2886c
AJ
6101_ACEOF
6102if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11af04e3 6103 $EGREP "free" >/dev/null 2>&1; then
daa2886c
AJ
6104 :
6105else
6106 ac_cv_header_stdc=no
6107fi
6108rm -f conftest*
6109
6110fi
6111
6112if test $ac_cv_header_stdc = yes; then
6113 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6114 if test "$cross_compiling" = yes; then
6115 :
6116else
6117 cat >conftest.$ac_ext <<_ACEOF
6118#line $LINENO "configure"
e24bcc77
AJ
6119/* confdefs.h. */
6120_ACEOF
6121cat confdefs.h >>conftest.$ac_ext
6122cat >>conftest.$ac_ext <<_ACEOF
6123/* end confdefs.h. */
daa2886c
AJ
6124#include <ctype.h>
6125#if ((' ' & 0x0FF) == 0x020)
6126# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6127# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6128#else
e24bcc77
AJ
6129# define ISLOWER(c) \
6130 (('a' <= (c) && (c) <= 'i') \
daa2886c
AJ
6131 || ('j' <= (c) && (c) <= 'r') \
6132 || ('s' <= (c) && (c) <= 'z'))
6133# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6134#endif
6135
6136#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6137int
6138main ()
6139{
6140 int i;
6141 for (i = 0; i < 256; i++)
6142 if (XOR (islower (i), ISLOWER (i))
6143 || toupper (i) != TOUPPER (i))
6144 exit(2);
6145 exit (0);
6146}
6147_ACEOF
6148rm -f conftest$ac_exeext
6149if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6150 (eval $ac_link) 2>&5
6151 ac_status=$?
6152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6155 (eval $ac_try) 2>&5
6156 ac_status=$?
6157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158 (exit $ac_status); }; }; then
6159 :
6160else
6161 echo "$as_me: program exited with status $ac_status" >&5
6162echo "$as_me: failed program was:" >&5
e24bcc77
AJ
6163sed 's/^/| /' conftest.$ac_ext >&5
6164
daa2886c
AJ
6165( exit $ac_status )
6166ac_cv_header_stdc=no
6167fi
80e34dbb 6168rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
daa2886c
AJ
6169fi
6170fi
6171fi
6172echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6173echo "${ECHO_T}$ac_cv_header_stdc" >&6
6174if test $ac_cv_header_stdc = yes; then
6175
6176cat >>confdefs.h <<\_ACEOF
6177#define STDC_HEADERS 1
6178_ACEOF
6179
6180fi
6181
6182# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6193 inttypes.h stdint.h unistd.h
6194do
6195as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6196echo "$as_me:$LINENO: checking for $ac_header" >&5
6197echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6198if eval "test \"\${$as_ac_Header+set}\" = set"; then
6199 echo $ECHO_N "(cached) $ECHO_C" >&6
6200else
6201 cat >conftest.$ac_ext <<_ACEOF
6202#line $LINENO "configure"
e24bcc77
AJ
6203/* confdefs.h. */
6204_ACEOF
6205cat confdefs.h >>conftest.$ac_ext
6206cat >>conftest.$ac_ext <<_ACEOF
6207/* end confdefs.h. */
daa2886c
AJ
6208$ac_includes_default
6209
6210#include <$ac_header>
6211_ACEOF
6212rm -f conftest.$ac_objext
6213if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6214 (eval $ac_compile) 2>&5
6215 ac_status=$?
6216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217 (exit $ac_status); } &&
6218 { ac_try='test -s conftest.$ac_objext'
6219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6220 (eval $ac_try) 2>&5
6221 ac_status=$?
6222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223 (exit $ac_status); }; }; then
6224 eval "$as_ac_Header=yes"
6225else
6226 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
6227sed 's/^/| /' conftest.$ac_ext >&5
6228
daa2886c
AJ
6229eval "$as_ac_Header=no"
6230fi
6231rm -f conftest.$ac_objext conftest.$ac_ext
6232fi
6233echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6234echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6235if test `eval echo '${'$as_ac_Header'}'` = yes; then
6236 cat >>confdefs.h <<_ACEOF
6237#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6238_ACEOF
6239
6240fi
6241
6242done
6243
6244
6245
f5818d2f 6246for ac_header in jpeglib.h
252b0fe0 6247do
f5818d2f 6248as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
daa2886c
AJ
6249if eval "test \"\${$as_ac_Header+set}\" = set"; then
6250 echo "$as_me:$LINENO: checking for $ac_header" >&5
f5818d2f
AJ
6251echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6252if eval "test \"\${$as_ac_Header+set}\" = set"; then
6253 echo $ECHO_N "(cached) $ECHO_C" >&6
daa2886c
AJ
6254fi
6255echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6256echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
f5818d2f 6257else
daa2886c
AJ
6258 # Is the header compilable?
6259echo "$as_me:$LINENO: checking $ac_header usability" >&5
6260echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6261cat >conftest.$ac_ext <<_ACEOF
6262#line $LINENO "configure"
e24bcc77
AJ
6263/* confdefs.h. */
6264_ACEOF
6265cat confdefs.h >>conftest.$ac_ext
6266cat >>conftest.$ac_ext <<_ACEOF
6267/* end confdefs.h. */
daa2886c
AJ
6268$ac_includes_default
6269#include <$ac_header>
6270_ACEOF
6271rm -f conftest.$ac_objext
6272if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6273 (eval $ac_compile) 2>&5
6274 ac_status=$?
6275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276 (exit $ac_status); } &&
6277 { ac_try='test -s conftest.$ac_objext'
6278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6279 (eval $ac_try) 2>&5
6280 ac_status=$?
6281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282 (exit $ac_status); }; }; then
6283 ac_header_compiler=yes
6284else
6285 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
6286sed 's/^/| /' conftest.$ac_ext >&5
6287
daa2886c
AJ
6288ac_header_compiler=no
6289fi
6290rm -f conftest.$ac_objext conftest.$ac_ext
6291echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6292echo "${ECHO_T}$ac_header_compiler" >&6
6293
6294# Is the header present?
6295echo "$as_me:$LINENO: checking $ac_header presence" >&5
6296echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6297cat >conftest.$ac_ext <<_ACEOF
6298#line $LINENO "configure"
e24bcc77
AJ
6299/* confdefs.h. */
6300_ACEOF
6301cat confdefs.h >>conftest.$ac_ext
6302cat >>conftest.$ac_ext <<_ACEOF
6303/* end confdefs.h. */
f5818d2f
AJ
6304#include <$ac_header>
6305_ACEOF
daa2886c 6306if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
f5818d2f
AJ
6307 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6308 ac_status=$?
11af04e3 6309 grep -v '^ *+' conftest.er1 >conftest.err
f5818d2f
AJ
6310 rm -f conftest.er1
6311 cat conftest.err >&5
daa2886c 6312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
6313 (exit $ac_status); } >/dev/null; then
6314 if test -s conftest.err; then
6315 ac_cpp_err=$ac_c_preproc_warn_flag
6316 else
6317 ac_cpp_err=
6318 fi
6319else
6320 ac_cpp_err=yes
6321fi
6322if test -z "$ac_cpp_err"; then
daa2886c 6323 ac_header_preproc=yes
f5818d2f
AJ
6324else
6325 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
6326sed 's/^/| /' conftest.$ac_ext >&5
6327
daa2886c 6328 ac_header_preproc=no
252b0fe0 6329fi
f5818d2f 6330rm -f conftest.err conftest.$ac_ext
daa2886c
AJ
6331echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6332echo "${ECHO_T}$ac_header_preproc" >&6
6333
6334# So? What about this header?
6335case $ac_header_compiler:$ac_header_preproc in
6336 yes:no )
6337 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6338echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6339 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
e24bcc77
AJ
6340echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6341 (
6342 cat <<\_ASBOX
6343## ------------------------------------ ##
6344## Report this to bug-autoconf@gnu.org. ##
6345## ------------------------------------ ##
6346_ASBOX
6347 ) |
6348 sed "s/^/$as_me: WARNING: /" >&2
6349 ;;
daa2886c
AJ
6350 no:yes )
6351 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6352echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6353 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6354echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
e24bcc77
AJ
6356echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6357 (
6358 cat <<\_ASBOX
6359## ------------------------------------ ##
6360## Report this to bug-autoconf@gnu.org. ##
6361## ------------------------------------ ##
6362_ASBOX
6363 ) |
6364 sed "s/^/$as_me: WARNING: /" >&2
6365 ;;
daa2886c
AJ
6366esac
6367echo "$as_me:$LINENO: checking for $ac_header" >&5
6368echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6369if eval "test \"\${$as_ac_Header+set}\" = set"; then
6370 echo $ECHO_N "(cached) $ECHO_C" >&6
6371else
6372 eval "$as_ac_Header=$ac_header_preproc"
252b0fe0 6373fi
daa2886c 6374echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
f5818d2f 6375echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
daa2886c
AJ
6376
6377fi
f5818d2f 6378if test `eval echo '${'$as_ac_Header'}'` = yes; then
daa2886c 6379 cat >>confdefs.h <<_ACEOF
f5818d2f 6380#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
daa2886c
AJ
6381_ACEOF
6382 echo "$as_me:$LINENO: checking for jpeg_start_decompress in -ljpeg" >&5
f5818d2f
AJ
6383echo $ECHO_N "checking for jpeg_start_decompress in -ljpeg... $ECHO_C" >&6
6384if test "${ac_cv_lib_jpeg_jpeg_start_decompress+set}" = set; then
6385 echo $ECHO_N "(cached) $ECHO_C" >&6
252b0fe0 6386else
f5818d2f 6387 ac_check_lib_save_LIBS=$LIBS
252b0fe0 6388LIBS="-ljpeg $LIBS"
f5818d2f 6389cat >conftest.$ac_ext <<_ACEOF
daa2886c 6390#line $LINENO "configure"
e24bcc77
AJ
6391/* confdefs.h. */
6392_ACEOF
6393cat confdefs.h >>conftest.$ac_ext
6394cat >>conftest.$ac_ext <<_ACEOF
6395/* end confdefs.h. */
f5818d2f 6396
252b0fe0 6397/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
6398#ifdef __cplusplus
6399extern "C"
6400#endif
252b0fe0 6401/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
6402 builtin and then its argument prototype would still apply. */
6403char jpeg_start_decompress ();
6404int
6405main ()
6406{
6407jpeg_start_decompress ();
6408 ;
6409 return 0;
6410}
6411_ACEOF
6412rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 6413if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
6414 (eval $ac_link) 2>&5
6415 ac_status=$?
daa2886c 6416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
6417 (exit $ac_status); } &&
6418 { ac_try='test -s conftest$ac_exeext'
daa2886c 6419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
6420 (eval $ac_try) 2>&5
6421 ac_status=$?
daa2886c 6422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
6423 (exit $ac_status); }; }; then
6424 ac_cv_lib_jpeg_jpeg_start_decompress=yes
6425else
6426 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
6427sed 's/^/| /' conftest.$ac_ext >&5
6428
f5818d2f
AJ
6429ac_cv_lib_jpeg_jpeg_start_decompress=no
6430fi
6431rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6432LIBS=$ac_check_lib_save_LIBS
6433fi
daa2886c 6434echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_start_decompress" >&5
f5818d2f
AJ
6435echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_decompress" >&6
6436if test $ac_cv_lib_jpeg_jpeg_start_decompress = yes; then
6437
daa2886c 6438cat >>confdefs.h <<\_ACEOF
252b0fe0 6439#define HAVE_LIBJPEG 1
daa2886c 6440_ACEOF
252b0fe0
MM
6441
6442 JPEGLIB="-ljpeg"
252b0fe0 6443
f5818d2f 6444fi
252b0fe0 6445
daa2886c 6446
252b0fe0 6447fi
daa2886c 6448
252b0fe0
MM
6449done
6450
daa2886c 6451
728bedcf
MM
6452GIFLIB=""
6453
6454
6455for ac_header in gif_lib.h
6456do
6457as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6458if eval "test \"\${$as_ac_Header+set}\" = set"; then
6459 echo "$as_me:$LINENO: checking for $ac_header" >&5
6460echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6461if eval "test \"\${$as_ac_Header+set}\" = set"; then
6462 echo $ECHO_N "(cached) $ECHO_C" >&6
6463fi
6464echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6465echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6466else
6467 # Is the header compilable?
6468echo "$as_me:$LINENO: checking $ac_header usability" >&5
6469echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6470cat >conftest.$ac_ext <<_ACEOF
6471#line $LINENO "configure"
6472/* confdefs.h. */
6473_ACEOF
6474cat confdefs.h >>conftest.$ac_ext
6475cat >>conftest.$ac_ext <<_ACEOF
6476/* end confdefs.h. */
6477$ac_includes_default
6478#include <$ac_header>
6479_ACEOF
6480rm -f conftest.$ac_objext
6481if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6482 (eval $ac_compile) 2>&5
6483 ac_status=$?
6484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485 (exit $ac_status); } &&
6486 { ac_try='test -s conftest.$ac_objext'
6487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6488 (eval $ac_try) 2>&5
6489 ac_status=$?
6490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491 (exit $ac_status); }; }; then
6492 ac_header_compiler=yes
6493else
6494 echo "$as_me: failed program was:" >&5
6495sed 's/^/| /' conftest.$ac_ext >&5
6496
6497ac_header_compiler=no
6498fi
6499rm -f conftest.$ac_objext conftest.$ac_ext
6500echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6501echo "${ECHO_T}$ac_header_compiler" >&6
6502
6503# Is the header present?
6504echo "$as_me:$LINENO: checking $ac_header presence" >&5
6505echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6506cat >conftest.$ac_ext <<_ACEOF
6507#line $LINENO "configure"
6508/* confdefs.h. */
6509_ACEOF
6510cat confdefs.h >>conftest.$ac_ext
6511cat >>conftest.$ac_ext <<_ACEOF
6512/* end confdefs.h. */
6513#include <$ac_header>
6514_ACEOF
6515if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6516 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6517 ac_status=$?
6518 grep -v '^ *+' conftest.er1 >conftest.err
6519 rm -f conftest.er1
6520 cat conftest.err >&5
6521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6522 (exit $ac_status); } >/dev/null; then
6523 if test -s conftest.err; then
6524 ac_cpp_err=$ac_c_preproc_warn_flag
6525 else
6526 ac_cpp_err=
6527 fi
6528else
6529 ac_cpp_err=yes
6530fi
6531if test -z "$ac_cpp_err"; then
6532 ac_header_preproc=yes
6533else
6534 echo "$as_me: failed program was:" >&5
6535sed 's/^/| /' conftest.$ac_ext >&5
6536
6537 ac_header_preproc=no
6538fi
6539rm -f conftest.err conftest.$ac_ext
6540echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6541echo "${ECHO_T}$ac_header_preproc" >&6
6542
6543# So? What about this header?
6544case $ac_header_compiler:$ac_header_preproc in
6545 yes:no )
6546 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6547echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6548 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6549echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6550 (
6551 cat <<\_ASBOX
6552## ------------------------------------ ##
6553## Report this to bug-autoconf@gnu.org. ##
6554## ------------------------------------ ##
6555_ASBOX
6556 ) |
6557 sed "s/^/$as_me: WARNING: /" >&2
6558 ;;
6559 no:yes )
6560 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6561echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6562 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6563echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6564 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6565echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6566 (
6567 cat <<\_ASBOX
6568## ------------------------------------ ##
6569## Report this to bug-autoconf@gnu.org. ##
6570## ------------------------------------ ##
6571_ASBOX
6572 ) |
6573 sed "s/^/$as_me: WARNING: /" >&2
6574 ;;
6575esac
6576echo "$as_me:$LINENO: checking for $ac_header" >&5
6577echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6578if eval "test \"\${$as_ac_Header+set}\" = set"; then
6579 echo $ECHO_N "(cached) $ECHO_C" >&6
6580else
6581 eval "$as_ac_Header=$ac_header_preproc"
6582fi
6583echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6584echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6585
6586fi
6587if test `eval echo '${'$as_ac_Header'}'` = yes; then
6588 cat >>confdefs.h <<_ACEOF
6589#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6590_ACEOF
6591 echo "$as_me:$LINENO: checking for DGifOpen in -lungif" >&5
6592echo $ECHO_N "checking for DGifOpen in -lungif... $ECHO_C" >&6
6593if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then
6594 echo $ECHO_N "(cached) $ECHO_C" >&6
6595else
6596 ac_check_lib_save_LIBS=$LIBS
6597LIBS="-lungif $LIBS"
6598cat >conftest.$ac_ext <<_ACEOF
6599#line $LINENO "configure"
6600/* confdefs.h. */
6601_ACEOF
6602cat confdefs.h >>conftest.$ac_ext
6603cat >>conftest.$ac_ext <<_ACEOF
6604/* end confdefs.h. */
6605
6606/* Override any gcc2 internal prototype to avoid an error. */
6607#ifdef __cplusplus
6608extern "C"
6609#endif
6610/* We use char because int might match the return type of a gcc2
6611 builtin and then its argument prototype would still apply. */
6612char DGifOpen ();
6613int
6614main ()
6615{
6616DGifOpen ();
6617 ;
6618 return 0;
6619}
6620_ACEOF
6621rm -f conftest.$ac_objext conftest$ac_exeext
6622if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6623 (eval $ac_link) 2>&5
6624 ac_status=$?
6625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6626 (exit $ac_status); } &&
6627 { ac_try='test -s conftest$ac_exeext'
6628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6629 (eval $ac_try) 2>&5
6630 ac_status=$?
6631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632 (exit $ac_status); }; }; then
6633 ac_cv_lib_ungif_DGifOpen=yes
6634else
6635 echo "$as_me: failed program was:" >&5
6636sed 's/^/| /' conftest.$ac_ext >&5
6637
6638ac_cv_lib_ungif_DGifOpen=no
6639fi
6640rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6641LIBS=$ac_check_lib_save_LIBS
6642fi
6643echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_DGifOpen" >&5
6644echo "${ECHO_T}$ac_cv_lib_ungif_DGifOpen" >&6
6645if test $ac_cv_lib_ungif_DGifOpen = yes; then
6646
6647cat >>confdefs.h <<\_ACEOF
6648#define HAVE_LIBGIF 1
6649_ACEOF
6650
6651 GIFLIB="-lungif"
6652else
6653 echo "$as_me:$LINENO: checking for DGifOpen in -lgif" >&5
6654echo $ECHO_N "checking for DGifOpen in -lgif... $ECHO_C" >&6
6655if test "${ac_cv_lib_gif_DGifOpen+set}" = set; then
6656 echo $ECHO_N "(cached) $ECHO_C" >&6
6657else
6658 ac_check_lib_save_LIBS=$LIBS
6659LIBS="-lgif $LIBS"
6660cat >conftest.$ac_ext <<_ACEOF
6661#line $LINENO "configure"
6662/* confdefs.h. */
6663_ACEOF
6664cat confdefs.h >>conftest.$ac_ext
6665cat >>conftest.$ac_ext <<_ACEOF
6666/* end confdefs.h. */
6667
6668/* Override any gcc2 internal prototype to avoid an error. */
6669#ifdef __cplusplus
6670extern "C"
6671#endif
6672/* We use char because int might match the return type of a gcc2
6673 builtin and then its argument prototype would still apply. */
6674char DGifOpen ();
6675int
6676main ()
6677{
6678DGifOpen ();
6679 ;
6680 return 0;
6681}
6682_ACEOF
6683rm -f conftest.$ac_objext conftest$ac_exeext
6684if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6685 (eval $ac_link) 2>&5
6686 ac_status=$?
6687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688 (exit $ac_status); } &&
6689 { ac_try='test -s conftest$ac_exeext'
6690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6691 (eval $ac_try) 2>&5
6692 ac_status=$?
6693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694 (exit $ac_status); }; }; then
6695 ac_cv_lib_gif_DGifOpen=yes
6696else
6697 echo "$as_me: failed program was:" >&5
6698sed 's/^/| /' conftest.$ac_ext >&5
6699
6700ac_cv_lib_gif_DGifOpen=no
6701fi
6702rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6703LIBS=$ac_check_lib_save_LIBS
6704fi
6705echo "$as_me:$LINENO: result: $ac_cv_lib_gif_DGifOpen" >&5
6706echo "${ECHO_T}$ac_cv_lib_gif_DGifOpen" >&6
6707if test $ac_cv_lib_gif_DGifOpen = yes; then
6708 cat >>confdefs.h <<\_ACEOF
6709#define HAVE_LIBGIF 1
6710_ACEOF
6711
6712 GIFLIB="-lgif"
6713fi
6714
6715fi
6716
6717fi
6718
6719done
6720
6721
daa2886c
AJ
6722
6723
2941a212 6724XFILES=""
10ad97c8 6725
bedf40b5
LU
6726OPENGLFILES=""
6727
b63ab445 6728GLU32FILES=""
56ab2b3e
LU
6729
6730OPENGL_LIBS=""
ea584724
PS
6731if test "$have_x" = "yes"
6732then
24110288 6733 XLIB="-lXext -lX11"
1eb593cb
OK
6734 ac_save_CPPFLAGS="$CPPFLAGS"
6735 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
24110288 6736
daa2886c 6737
f5818d2f 6738for ac_header in X11/Xlib.h
24110288 6739do
f5818d2f 6740as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
daa2886c
AJ
6741if eval "test \"\${$as_ac_Header+set}\" = set"; then
6742 echo "$as_me:$LINENO: checking for $ac_header" >&5
f5818d2f
AJ
6743echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6744if eval "test \"\${$as_ac_Header+set}\" = set"; then
6745 echo $ECHO_N "(cached) $ECHO_C" >&6
daa2886c
AJ
6746fi
6747echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6748echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
f5818d2f 6749else
daa2886c
AJ
6750 # Is the header compilable?
6751echo "$as_me:$LINENO: checking $ac_header usability" >&5
6752echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6753cat >conftest.$ac_ext <<_ACEOF
6754#line $LINENO "configure"
e24bcc77
AJ
6755/* confdefs.h. */
6756_ACEOF
6757cat confdefs.h >>conftest.$ac_ext
6758cat >>conftest.$ac_ext <<_ACEOF
6759/* end confdefs.h. */
daa2886c 6760$ac_includes_default
f5818d2f
AJ
6761#include <$ac_header>
6762_ACEOF
daa2886c
AJ
6763rm -f conftest.$ac_objext
6764if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6765 (eval $ac_compile) 2>&5
6766 ac_status=$?
6767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768 (exit $ac_status); } &&
6769 { ac_try='test -s conftest.$ac_objext'
6770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6771 (eval $ac_try) 2>&5
6772 ac_status=$?
6773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774 (exit $ac_status); }; }; then
6775 ac_header_compiler=yes
6776else
6777 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
6778sed 's/^/| /' conftest.$ac_ext >&5
6779
daa2886c
AJ
6780ac_header_compiler=no
6781fi
6782rm -f conftest.$ac_objext conftest.$ac_ext
6783echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6784echo "${ECHO_T}$ac_header_compiler" >&6
6785
6786# Is the header present?
6787echo "$as_me:$LINENO: checking $ac_header presence" >&5
6788echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6789cat >conftest.$ac_ext <<_ACEOF
6790#line $LINENO "configure"
e24bcc77
AJ
6791/* confdefs.h. */
6792_ACEOF
6793cat confdefs.h >>conftest.$ac_ext
6794cat >>conftest.$ac_ext <<_ACEOF
6795/* end confdefs.h. */
daa2886c
AJ
6796#include <$ac_header>
6797_ACEOF
6798if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
f5818d2f
AJ
6799 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6800 ac_status=$?
11af04e3 6801 grep -v '^ *+' conftest.er1 >conftest.err
f5818d2f
AJ
6802 rm -f conftest.er1
6803 cat conftest.err >&5
daa2886c 6804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
6805 (exit $ac_status); } >/dev/null; then
6806 if test -s conftest.err; then
6807 ac_cpp_err=$ac_c_preproc_warn_flag
6808 else
6809 ac_cpp_err=
6810 fi
6811else
6812 ac_cpp_err=yes
6813fi
6814if test -z "$ac_cpp_err"; then
daa2886c 6815 ac_header_preproc=yes
f5818d2f
AJ
6816else
6817 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
6818sed 's/^/| /' conftest.$ac_ext >&5
6819
daa2886c 6820 ac_header_preproc=no
24110288 6821fi
f5818d2f 6822rm -f conftest.err conftest.$ac_ext
daa2886c
AJ
6823echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6824echo "${ECHO_T}$ac_header_preproc" >&6
6825
6826# So? What about this header?
6827case $ac_header_compiler:$ac_header_preproc in
6828 yes:no )
6829 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6830echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6831 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
e24bcc77
AJ
6832echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6833 (
6834 cat <<\_ASBOX
6835## ------------------------------------ ##
6836## Report this to bug-autoconf@gnu.org. ##
6837## ------------------------------------ ##
6838_ASBOX
6839 ) |
6840 sed "s/^/$as_me: WARNING: /" >&2
6841 ;;
daa2886c
AJ
6842 no:yes )
6843 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6844echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6845 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6846echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6847 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
e24bcc77
AJ
6848echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6849 (
6850 cat <<\_ASBOX
6851## ------------------------------------ ##
6852## Report this to bug-autoconf@gnu.org. ##
6853## ------------------------------------ ##
6854_ASBOX
6855 ) |
6856 sed "s/^/$as_me: WARNING: /" >&2
6857 ;;
daa2886c
AJ
6858esac
6859echo "$as_me:$LINENO: checking for $ac_header" >&5
6860echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6861if eval "test \"\${$as_ac_Header+set}\" = set"; then
6862 echo $ECHO_N "(cached) $ECHO_C" >&6
6863else
6864 eval "$as_ac_Header=$ac_header_preproc"
24110288 6865fi
daa2886c 6866echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
f5818d2f 6867echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
daa2886c
AJ
6868
6869fi
f5818d2f 6870if test `eval echo '${'$as_ac_Header'}'` = yes; then
daa2886c 6871 cat >>confdefs.h <<_ACEOF
f5818d2f 6872#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
daa2886c
AJ
6873_ACEOF
6874
f5818d2f 6875
255b486c
AJ
6876
6877
6878
6879
6880
6881
6882
6883
6884for ac_header in X11/XKBlib.h \
6885 X11/Xutil.h \
6886 X11/extensions/shape.h \
6887 X11/extensions/XShm.h \
6888 X11/extensions/Xrandr.h \
6889 X11/extensions/Xrender.h \
6890 X11/extensions/Xvlib.h \
6891 X11/extensions/xf86dga.h \
6892 X11/extensions/xf86vmode.h
f2b77ccb 6893do
f5818d2f 6894as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
044b5c41 6895echo "$as_me:$LINENO: checking for $ac_header" >&5
f5818d2f
AJ
6896echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6897if eval "test \"\${$as_ac_Header+set}\" = set"; then
6898 echo $ECHO_N "(cached) $ECHO_C" >&6
6899else
044b5c41 6900 cat >conftest.$ac_ext <<_ACEOF
daa2886c 6901#line $LINENO "configure"
e24bcc77
AJ
6902/* confdefs.h. */
6903_ACEOF
6904cat confdefs.h >>conftest.$ac_ext
6905cat >>conftest.$ac_ext <<_ACEOF
6906/* end confdefs.h. */
044b5c41 6907#include <X11/Xlib.h>
255b486c
AJ
6908 #ifdef HAVE_X11_XUTIL_H
6909 # include <X11/Xutil.h>
6910 #endif
044b5c41 6911
daa2886c
AJ
6912#include <$ac_header>
6913_ACEOF
6914rm -f conftest.$ac_objext
6915if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6916 (eval $ac_compile) 2>&5
6917 ac_status=$?
6918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919 (exit $ac_status); } &&
6920 { ac_try='test -s conftest.$ac_objext'
6921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6922 (eval $ac_try) 2>&5
6923 ac_status=$?
6924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6925 (exit $ac_status); }; }; then
044b5c41 6926 eval "$as_ac_Header=yes"
daa2886c
AJ
6927else
6928 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
6929sed 's/^/| /' conftest.$ac_ext >&5
6930
044b5c41 6931eval "$as_ac_Header=no"
daa2886c
AJ
6932fi
6933rm -f conftest.$ac_objext conftest.$ac_ext
f2b77ccb 6934fi
daa2886c 6935echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
f5818d2f
AJ
6936echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6937if test `eval echo '${'$as_ac_Header'}'` = yes; then
daa2886c 6938 cat >>confdefs.h <<_ACEOF
f5818d2f 6939#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
daa2886c 6940_ACEOF
255b486c
AJ
6941
6942fi
6943
6944done
6945
6946
6947 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
6948 then
6949 echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
f5818d2f
AJ
6950echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6
6951if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
6952 echo $ECHO_N "(cached) $ECHO_C" >&6
c90fb25c 6953else
f5818d2f 6954 ac_check_lib_save_LIBS=$LIBS
c90fb25c 6955LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
f5818d2f 6956cat >conftest.$ac_ext <<_ACEOF
daa2886c 6957#line $LINENO "configure"
e24bcc77
AJ
6958/* confdefs.h. */
6959_ACEOF
6960cat confdefs.h >>conftest.$ac_ext
6961cat >>conftest.$ac_ext <<_ACEOF
6962/* end confdefs.h. */
f5818d2f 6963
c90fb25c 6964/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
6965#ifdef __cplusplus
6966extern "C"
6967#endif
c90fb25c 6968/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
6969 builtin and then its argument prototype would still apply. */
6970char XkbQueryExtension ();
6971int
6972main ()
6973{
6974XkbQueryExtension ();
6975 ;
6976 return 0;
6977}
6978_ACEOF
6979rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 6980if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
6981 (eval $ac_link) 2>&5
6982 ac_status=$?
daa2886c 6983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
6984 (exit $ac_status); } &&
6985 { ac_try='test -s conftest$ac_exeext'
daa2886c 6986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
6987 (eval $ac_try) 2>&5
6988 ac_status=$?
daa2886c 6989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
6990 (exit $ac_status); }; }; then
6991 ac_cv_lib_X11_XkbQueryExtension=yes
6992else
6993 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
6994sed 's/^/| /' conftest.$ac_ext >&5
6995
f5818d2f
AJ
6996ac_cv_lib_X11_XkbQueryExtension=no
6997fi
6998rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6999LIBS=$ac_check_lib_save_LIBS
7000fi
daa2886c 7001echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
f5818d2f
AJ
7002echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6
7003if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
7004
daa2886c 7005cat >>confdefs.h <<\_ACEOF
c90fb25c 7006#define HAVE_XKB 1
daa2886c 7007_ACEOF
c90fb25c 7008
c90fb25c
OK
7009fi
7010
255b486c 7011 fi
daa2886c 7012
255b486c
AJ
7013 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
7014 then
7015 echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
f5818d2f
AJ
7016echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6
7017if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
7018 echo $ECHO_N "(cached) $ECHO_C" >&6
ea584724 7019else
f5818d2f 7020 ac_check_lib_save_LIBS=$LIBS
376ec88e 7021LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
f5818d2f 7022cat >conftest.$ac_ext <<_ACEOF
daa2886c 7023#line $LINENO "configure"
e24bcc77
AJ
7024/* confdefs.h. */
7025_ACEOF
7026cat confdefs.h >>conftest.$ac_ext
7027cat >>conftest.$ac_ext <<_ACEOF
7028/* end confdefs.h. */
f5818d2f 7029
ea584724 7030/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
7031#ifdef __cplusplus
7032extern "C"
7033#endif
ea584724 7034/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
7035 builtin and then its argument prototype would still apply. */
7036char XShmQueryExtension ();
7037int
7038main ()
7039{
7040XShmQueryExtension ();
7041 ;
7042 return 0;
7043}
7044_ACEOF
7045rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 7046if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
7047 (eval $ac_link) 2>&5
7048 ac_status=$?
daa2886c 7049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
7050 (exit $ac_status); } &&
7051 { ac_try='test -s conftest$ac_exeext'
daa2886c 7052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
7053 (eval $ac_try) 2>&5
7054 ac_status=$?
daa2886c 7055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
7056 (exit $ac_status); }; }; then
7057 ac_cv_lib_Xext_XShmQueryExtension=yes
7058else
7059 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
7060sed 's/^/| /' conftest.$ac_ext >&5
7061
f5818d2f
AJ
7062ac_cv_lib_Xext_XShmQueryExtension=no
7063fi
7064rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7065LIBS=$ac_check_lib_save_LIBS
7066fi
daa2886c 7067echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
f5818d2f
AJ
7068echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6
7069if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
7070
daa2886c 7071cat >>confdefs.h <<\_ACEOF
ea584724 7072#define HAVE_LIBXXSHM 1
daa2886c 7073_ACEOF
ea584724 7074
ea584724
PS
7075fi
7076
255b486c 7077 fi
daa2886c 7078
255b486c
AJ
7079 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
7080 then
7081 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
f5818d2f
AJ
7082echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
7083if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
7084 echo $ECHO_N "(cached) $ECHO_C" >&6
5b6879c5 7085else
f5818d2f 7086 ac_check_lib_save_LIBS=$LIBS
5b6879c5 7087LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
f5818d2f 7088cat >conftest.$ac_ext <<_ACEOF
daa2886c 7089#line $LINENO "configure"
e24bcc77
AJ
7090/* confdefs.h. */
7091_ACEOF
7092cat confdefs.h >>conftest.$ac_ext
7093cat >>conftest.$ac_ext <<_ACEOF
7094/* end confdefs.h. */
f5818d2f 7095
5b6879c5 7096/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
7097#ifdef __cplusplus
7098extern "C"
7099#endif
5b6879c5 7100/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
7101 builtin and then its argument prototype would still apply. */
7102char XShapeQueryExtension ();
7103int
7104main ()
7105{
7106XShapeQueryExtension ();
7107 ;
7108 return 0;
7109}
7110_ACEOF
7111rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 7112if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
7113 (eval $ac_link) 2>&5
7114 ac_status=$?
daa2886c 7115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
7116 (exit $ac_status); } &&
7117 { ac_try='test -s conftest$ac_exeext'
daa2886c 7118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
7119 (eval $ac_try) 2>&5
7120 ac_status=$?
daa2886c 7121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
7122 (exit $ac_status); }; }; then
7123 ac_cv_lib_Xext_XShapeQueryExtension=yes
7124else
7125 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
7126sed 's/^/| /' conftest.$ac_ext >&5
7127
f5818d2f
AJ
7128ac_cv_lib_Xext_XShapeQueryExtension=no
7129fi
7130rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7131LIBS=$ac_check_lib_save_LIBS
7132fi
daa2886c 7133echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
f5818d2f
AJ
7134echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
7135if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
7136
daa2886c 7137cat >>confdefs.h <<\_ACEOF
5b6879c5 7138#define HAVE_LIBXSHAPE 1
daa2886c 7139_ACEOF
5b6879c5 7140
5b6879c5
FJ
7141fi
7142
255b486c 7143 fi
daa2886c 7144
255b486c
AJ
7145 if test "$ac_cv_header_X11_extensions_xf86dga_h" = "yes"
7146 then
7147 echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5
f5818d2f
AJ
7148echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
7149if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then
7150 echo $ECHO_N "(cached) $ECHO_C" >&6
d94475bd 7151else
f5818d2f 7152 ac_check_lib_save_LIBS=$LIBS
255b486c 7153LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
f5818d2f 7154cat >conftest.$ac_ext <<_ACEOF
daa2886c 7155#line $LINENO "configure"
e24bcc77
AJ
7156/* confdefs.h. */
7157_ACEOF
7158cat confdefs.h >>conftest.$ac_ext
7159cat >>conftest.$ac_ext <<_ACEOF
7160/* end confdefs.h. */
f5818d2f 7161
d94475bd 7162/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
7163#ifdef __cplusplus
7164extern "C"
7165#endif
d94475bd 7166/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
7167 builtin and then its argument prototype would still apply. */
7168char XDGAQueryExtension ();
7169int
7170main ()
7171{
7172XDGAQueryExtension ();
7173 ;
7174 return 0;
7175}
7176_ACEOF
7177rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 7178if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
7179 (eval $ac_link) 2>&5
7180 ac_status=$?
daa2886c 7181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
7182 (exit $ac_status); } &&
7183 { ac_try='test -s conftest$ac_exeext'
daa2886c 7184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
7185 (eval $ac_try) 2>&5
7186 ac_status=$?
daa2886c 7187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
7188 (exit $ac_status); }; }; then
7189 ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes
7190else
7191 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
7192sed 's/^/| /' conftest.$ac_ext >&5
7193
f5818d2f
AJ
7194ac_cv_lib_Xxf86dga_XDGAQueryExtension=no
7195fi
7196rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7197LIBS=$ac_check_lib_save_LIBS
7198fi
daa2886c 7199echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5
f5818d2f
AJ
7200echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6
7201if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then
7202
daa2886c 7203cat >>confdefs.h <<\_ACEOF
d94475bd 7204#define HAVE_LIBXXF86DGA2 1
daa2886c 7205_ACEOF
10ad97c8 7206
f2b77ccb 7207 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
f5818d2f 7208
d94475bd 7209else
daa2886c 7210 echo "$as_me:$LINENO: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
f5818d2f
AJ
7211echo $ECHO_N "checking for XF86DGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
7212if test "${ac_cv_lib_Xxf86dga_XF86DGAQueryExtension+set}" = set; then
7213 echo $ECHO_N "(cached) $ECHO_C" >&6
02e90087 7214else
f5818d2f 7215 ac_check_lib_save_LIBS=$LIBS
f2b77ccb
JS
7216LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
7217 $LIBS"
f5818d2f 7218cat >conftest.$ac_ext <<_ACEOF
daa2886c 7219#line $LINENO "configure"
e24bcc77
AJ
7220/* confdefs.h. */
7221_ACEOF
7222cat confdefs.h >>conftest.$ac_ext
7223cat >>conftest.$ac_ext <<_ACEOF
7224/* end confdefs.h. */
f5818d2f 7225
02e90087 7226/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
7227#ifdef __cplusplus
7228extern "C"
7229#endif
02e90087 7230/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
7231 builtin and then its argument prototype would still apply. */
7232char XF86DGAQueryExtension ();
7233int
7234main ()
7235{
7236XF86DGAQueryExtension ();
7237 ;
7238 return 0;
7239}
7240_ACEOF
7241rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 7242if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
7243 (eval $ac_link) 2>&5
7244 ac_status=$?
daa2886c 7245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
7246 (exit $ac_status); } &&
7247 { ac_try='test -s conftest$ac_exeext'
daa2886c 7248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
7249 (eval $ac_try) 2>&5
7250 ac_status=$?
daa2886c 7251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
7252 (exit $ac_status); }; }; then
7253 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=yes
7254else
7255 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
7256sed 's/^/| /' conftest.$ac_ext >&5
7257
f5818d2f
AJ
7258ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=no
7259fi
7260rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7261LIBS=$ac_check_lib_save_LIBS
7262fi
daa2886c 7263echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&5
f5818d2f
AJ
7264echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&6
7265if test $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension = yes; then
7266
daa2886c 7267cat >>confdefs.h <<\_ACEOF
0623a6f3 7268#define HAVE_LIBXXF86DGA 1
daa2886c 7269_ACEOF
10ad97c8 7270
f2b77ccb 7271 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
f5818d2f 7272
0623a6f3
AJ
7273fi
7274
daa2886c 7275
f2b77ccb
JS
7276fi
7277
255b486c 7278 fi
daa2886c 7279
255b486c
AJ
7280 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
7281 then
7282 echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
f5818d2f
AJ
7283echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6
7284if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
7285 echo $ECHO_N "(cached) $ECHO_C" >&6
399931a2 7286else
f5818d2f 7287 ac_check_lib_save_LIBS=$LIBS
255b486c 7288LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
f5818d2f 7289cat >conftest.$ac_ext <<_ACEOF
daa2886c 7290#line $LINENO "configure"
e24bcc77
AJ
7291/* confdefs.h. */
7292_ACEOF
7293cat confdefs.h >>conftest.$ac_ext
7294cat >>conftest.$ac_ext <<_ACEOF
7295/* end confdefs.h. */
f5818d2f 7296
399931a2 7297/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
7298#ifdef __cplusplus
7299extern "C"
7300#endif
399931a2 7301/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
7302 builtin and then its argument prototype would still apply. */
7303char XF86VidModeQueryExtension ();
7304int
7305main ()
7306{
7307XF86VidModeQueryExtension ();
7308 ;
7309 return 0;
7310}
7311_ACEOF
7312rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 7313if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
7314 (eval $ac_link) 2>&5
7315 ac_status=$?
daa2886c 7316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
7317 (exit $ac_status); } &&
7318 { ac_try='test -s conftest$ac_exeext'
daa2886c 7319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
7320 (eval $ac_try) 2>&5
7321 ac_status=$?
daa2886c 7322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
7323 (exit $ac_status); }; }; then
7324 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
7325else
7326 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
7327sed 's/^/| /' conftest.$ac_ext >&5
7328
f5818d2f
AJ
7329ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
7330fi
7331rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7332LIBS=$ac_check_lib_save_LIBS
7333fi
daa2886c 7334echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
f5818d2f
AJ
7335echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6
7336if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
7337
daa2886c 7338cat >>confdefs.h <<\_ACEOF
399931a2 7339#define HAVE_LIBXXF86VM 1
daa2886c 7340_ACEOF
f2b77ccb
JS
7341
7342 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
f5818d2f 7343
399931a2
SC
7344fi
7345
255b486c 7346 fi
daa2886c 7347
255b486c
AJ
7348 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes"
7349 then
7350 echo "$as_me:$LINENO: checking for XRRSetScreenConfigAndRate in -lXrandr" >&5
8f174bc6
AP
7351echo $ECHO_N "checking for XRRSetScreenConfigAndRate in -lXrandr... $ECHO_C" >&6
7352if test "${ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate+set}" = set; then
7353 echo $ECHO_N "(cached) $ECHO_C" >&6
7354else
7355 ac_check_lib_save_LIBS=$LIBS
3657b6d5 7356LIBS="-lXrandr $X_LIBS -lXrender -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8f174bc6
AP
7357cat >conftest.$ac_ext <<_ACEOF
7358#line $LINENO "configure"
7359/* confdefs.h. */
7360_ACEOF
7361cat confdefs.h >>conftest.$ac_ext
7362cat >>conftest.$ac_ext <<_ACEOF
7363/* end confdefs.h. */
7364
7365/* Override any gcc2 internal prototype to avoid an error. */
7366#ifdef __cplusplus
7367extern "C"
7368#endif
7369/* We use char because int might match the return type of a gcc2
7370 builtin and then its argument prototype would still apply. */
7371char XRRSetScreenConfigAndRate ();
7372int
7373main ()
7374{
7375XRRSetScreenConfigAndRate ();
7376 ;
7377 return 0;
7378}
7379_ACEOF
7380rm -f conftest.$ac_objext conftest$ac_exeext
7381if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7382 (eval $ac_link) 2>&5
7383 ac_status=$?
7384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7385 (exit $ac_status); } &&
7386 { ac_try='test -s conftest$ac_exeext'
7387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7388 (eval $ac_try) 2>&5
7389 ac_status=$?
7390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7391 (exit $ac_status); }; }; then
7392 ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate=yes
7393else
7394 echo "$as_me: failed program was:" >&5
7395sed 's/^/| /' conftest.$ac_ext >&5
7396
7397ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate=no
7398fi
7399rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7400LIBS=$ac_check_lib_save_LIBS
7401fi
7402echo "$as_me:$LINENO: result: $ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate" >&5
7403echo "${ECHO_T}$ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate" >&6
7404if test $ac_cv_lib_Xrandr_XRRSetScreenConfigAndRate = yes; then
7405
7406cat >>confdefs.h <<\_ACEOF
7407#define HAVE_LIBXRANDR 1
7408_ACEOF
7409
3657b6d5 7410 X_PRE_LIBS="$X_PRE_LIBS -lXrandr -lXrender"
8f174bc6
AP
7411
7412fi
7413
255b486c 7414 fi
8f174bc6 7415
255b486c
AJ
7416 if test "$ac_cv_header_X11_extensions_Xvlib_h" = "yes"
7417 then
7418 echo "$as_me:$LINENO: checking for XvShmCreateImage in -lXv" >&5
f5818d2f
AJ
7419echo $ECHO_N "checking for XvShmCreateImage in -lXv... $ECHO_C" >&6
7420if test "${ac_cv_lib_Xv_XvShmCreateImage+set}" = set; then
7421 echo $ECHO_N "(cached) $ECHO_C" >&6
3d2f32dc 7422else
f5818d2f 7423 ac_check_lib_save_LIBS=$LIBS
255b486c 7424LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
f5818d2f 7425cat >conftest.$ac_ext <<_ACEOF
daa2886c 7426#line $LINENO "configure"
e24bcc77
AJ
7427/* confdefs.h. */
7428_ACEOF
7429cat confdefs.h >>conftest.$ac_ext
7430cat >>conftest.$ac_ext <<_ACEOF
7431/* end confdefs.h. */
f5818d2f 7432
3d2f32dc 7433/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
7434#ifdef __cplusplus
7435extern "C"
7436#endif
3d2f32dc 7437/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
7438 builtin and then its argument prototype would still apply. */
7439char XvShmCreateImage ();
7440int
7441main ()
7442{
7443XvShmCreateImage ();
7444 ;
7445 return 0;
7446}
7447_ACEOF
7448rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 7449if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
7450 (eval $ac_link) 2>&5
7451 ac_status=$?
daa2886c 7452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
7453 (exit $ac_status); } &&
7454 { ac_try='test -s conftest$ac_exeext'
daa2886c 7455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
7456 (eval $ac_try) 2>&5
7457 ac_status=$?
daa2886c 7458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
7459 (exit $ac_status); }; }; then
7460 ac_cv_lib_Xv_XvShmCreateImage=yes
7461else
7462 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
7463sed 's/^/| /' conftest.$ac_ext >&5
7464
f5818d2f
AJ
7465ac_cv_lib_Xv_XvShmCreateImage=no
7466fi
7467rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7468LIBS=$ac_check_lib_save_LIBS
7469fi
daa2886c 7470echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_XvShmCreateImage" >&5
f5818d2f
AJ
7471echo "${ECHO_T}$ac_cv_lib_Xv_XvShmCreateImage" >&6
7472if test $ac_cv_lib_Xv_XvShmCreateImage = yes; then
7473
daa2886c 7474cat >>confdefs.h <<\_ACEOF
3d2f32dc 7475#define HAVE_XVIDEO 1
daa2886c 7476_ACEOF
3d2f32dc
LU
7477
7478 X_PRE_LIBS="$X_PRE_LIBS -lXv"
f5818d2f 7479
3d2f32dc
LU
7480fi
7481
255b486c 7482 fi
daa2886c
AJ
7483
7484
f2b77ccb 7485fi
daa2886c 7486
f2b77ccb 7487done
f5818d2f 7488
b8074991 7489 if test "x$with_opengl" != "xno"
fbc15b17 7490 then
42dcd97e 7491 if test -f /usr/X11R6/lib/libGL.a -a ! -f /usr/X11R6/lib/libGL.so
b508a1da 7492 then
daa2886c 7493 { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
f5818d2f
AJ
7494This prevents linking to OpenGL. Delete the file and restart configure." >&5
7495echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
7496This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
7497 { (exit 1); exit 1; }; }
b508a1da
AJ
7498 fi
7499
daa2886c
AJ
7500
7501
7502for ac_header in GL/gl.h GL/glx.h
24110288 7503do
f5818d2f 7504as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
daa2886c
AJ
7505if eval "test \"\${$as_ac_Header+set}\" = set"; then
7506 echo "$as_me:$LINENO: checking for $ac_header" >&5
f5818d2f
AJ
7507echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7508if eval "test \"\${$as_ac_Header+set}\" = set"; then
7509 echo $ECHO_N "(cached) $ECHO_C" >&6
daa2886c
AJ
7510fi
7511echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7512echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
f5818d2f 7513else
daa2886c
AJ
7514 # Is the header compilable?
7515echo "$as_me:$LINENO: checking $ac_header usability" >&5
7516echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7517cat >conftest.$ac_ext <<_ACEOF
7518#line $LINENO "configure"
e24bcc77
AJ
7519/* confdefs.h. */
7520_ACEOF
7521cat confdefs.h >>conftest.$ac_ext
7522cat >>conftest.$ac_ext <<_ACEOF
7523/* end confdefs.h. */
daa2886c
AJ
7524$ac_includes_default
7525#include <$ac_header>
7526_ACEOF
7527rm -f conftest.$ac_objext
7528if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7529 (eval $ac_compile) 2>&5
7530 ac_status=$?
7531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532 (exit $ac_status); } &&
7533 { ac_try='test -s conftest.$ac_objext'
7534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7535 (eval $ac_try) 2>&5
7536 ac_status=$?
7537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7538 (exit $ac_status); }; }; then
7539 ac_header_compiler=yes
7540else
7541 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
7542sed 's/^/| /' conftest.$ac_ext >&5
7543
daa2886c
AJ
7544ac_header_compiler=no
7545fi
7546rm -f conftest.$ac_objext conftest.$ac_ext
7547echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7548echo "${ECHO_T}$ac_header_compiler" >&6
7549
7550# Is the header present?
7551echo "$as_me:$LINENO: checking $ac_header presence" >&5
7552echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7553cat >conftest.$ac_ext <<_ACEOF
7554#line $LINENO "configure"
e24bcc77
AJ
7555/* confdefs.h. */
7556_ACEOF
7557cat confdefs.h >>conftest.$ac_ext
7558cat >>conftest.$ac_ext <<_ACEOF
7559/* end confdefs.h. */
f5818d2f
AJ
7560#include <$ac_header>
7561_ACEOF
daa2886c 7562if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
f5818d2f
AJ
7563 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7564 ac_status=$?
11af04e3 7565 grep -v '^ *+' conftest.er1 >conftest.err
f5818d2f
AJ
7566 rm -f conftest.er1
7567 cat conftest.err >&5
daa2886c 7568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
7569 (exit $ac_status); } >/dev/null; then
7570 if test -s conftest.err; then
7571 ac_cpp_err=$ac_c_preproc_warn_flag
7572 else
7573 ac_cpp_err=
7574 fi
7575else
7576 ac_cpp_err=yes
7577fi
7578if test -z "$ac_cpp_err"; then
daa2886c 7579 ac_header_preproc=yes
f5818d2f
AJ
7580else
7581 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
7582sed 's/^/| /' conftest.$ac_ext >&5
7583
daa2886c 7584 ac_header_preproc=no
24110288 7585fi
f5818d2f 7586rm -f conftest.err conftest.$ac_ext
daa2886c
AJ
7587echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7588echo "${ECHO_T}$ac_header_preproc" >&6
7589
7590# So? What about this header?
7591case $ac_header_compiler:$ac_header_preproc in
7592 yes:no )
7593 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7594echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7595 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
e24bcc77
AJ
7596echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7597 (
7598 cat <<\_ASBOX
7599## ------------------------------------ ##
7600## Report this to bug-autoconf@gnu.org. ##
7601## ------------------------------------ ##
7602_ASBOX
7603 ) |
7604 sed "s/^/$as_me: WARNING: /" >&2
7605 ;;
daa2886c
AJ
7606 no:yes )
7607 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7608echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7609 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7610echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7611 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
e24bcc77
AJ
7612echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7613 (
7614 cat <<\_ASBOX
7615## ------------------------------------ ##
7616## Report this to bug-autoconf@gnu.org. ##
7617## ------------------------------------ ##
7618_ASBOX
7619 ) |
7620 sed "s/^/$as_me: WARNING: /" >&2
7621 ;;
daa2886c
AJ
7622esac
7623echo "$as_me:$LINENO: checking for $ac_header" >&5
7624echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7625if eval "test \"\${$as_ac_Header+set}\" = set"; then
7626 echo $ECHO_N "(cached) $ECHO_C" >&6
7627else
7628 eval "$as_ac_Header=$ac_header_preproc"
24110288 7629fi
daa2886c 7630echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
f5818d2f 7631echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
daa2886c
AJ
7632
7633fi
f5818d2f 7634if test `eval echo '${'$as_ac_Header'}'` = yes; then
daa2886c 7635 cat >>confdefs.h <<_ACEOF
f5818d2f 7636#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
daa2886c 7637_ACEOF
f5818d2f 7638
24110288 7639fi
daa2886c 7640
24110288
PS
7641done
7642
22a969ba 7643 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
fbc15b17 7644 then
daa2886c
AJ
7645
7646for ac_header in GL/glext.h
7647do
7648as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7649echo "$as_me:$LINENO: checking for $ac_header" >&5
7650echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7651if eval "test \"\${$as_ac_Header+set}\" = set"; then
7652 echo $ECHO_N "(cached) $ECHO_C" >&6
7653else
7654 cat >conftest.$ac_ext <<_ACEOF
7655#line $LINENO "configure"
e24bcc77
AJ
7656/* confdefs.h. */
7657_ACEOF
7658cat confdefs.h >>conftest.$ac_ext
7659cat >>conftest.$ac_ext <<_ACEOF
7660/* end confdefs.h. */
daa2886c
AJ
7661#include <GL/glx.h>
7662
7663#include <$ac_header>
7664_ACEOF
7665rm -f conftest.$ac_objext
7666if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7667 (eval $ac_compile) 2>&5
7668 ac_status=$?
7669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670 (exit $ac_status); } &&
7671 { ac_try='test -s conftest.$ac_objext'
7672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7673 (eval $ac_try) 2>&5
7674 ac_status=$?
7675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7676 (exit $ac_status); }; }; then
7677 eval "$as_ac_Header=yes"
7678else
7679 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
7680sed 's/^/| /' conftest.$ac_ext >&5
7681
daa2886c
AJ
7682eval "$as_ac_Header=no"
7683fi
7684rm -f conftest.$ac_objext conftest.$ac_ext
7685fi
7686echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7687echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7688if test `eval echo '${'$as_ac_Header'}'` = yes; then
7689 cat >>confdefs.h <<_ACEOF
7690#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7691_ACEOF
7692
7693fi
7694
7695done
7696
7697 echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
f5818d2f
AJ
7698echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6
7699if test "${wine_cv_opengl_version_OK+set}" = set; then
7700 echo $ECHO_N "(cached) $ECHO_C" >&6
5c085704 7701else
f5818d2f 7702 cat >conftest.$ac_ext <<_ACEOF
daa2886c 7703#line $LINENO "configure"
e24bcc77
AJ
7704/* confdefs.h. */
7705_ACEOF
7706cat confdefs.h >>conftest.$ac_ext
7707cat >>conftest.$ac_ext <<_ACEOF
7708/* end confdefs.h. */
5c085704 7709#include <GL/gl.h>
f5818d2f
AJ
7710int
7711main ()
7712{
5c085704 7713GLenum test = GL_UNSIGNED_SHORT_5_6_5;
f5818d2f
AJ
7714 ;
7715 return 0;
7716}
7717_ACEOF
7718rm -f conftest.$ac_objext
daa2886c 7719if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
7720 (eval $ac_compile) 2>&5
7721 ac_status=$?
daa2886c 7722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
7723 (exit $ac_status); } &&
7724 { ac_try='test -s conftest.$ac_objext'
daa2886c 7725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
7726 (eval $ac_try) 2>&5
7727 ac_status=$?
daa2886c 7728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 7729 (exit $ac_status); }; }; then
bedf40b5 7730 wine_cv_opengl_version_OK="yes"
5c085704 7731else
f5818d2f 7732 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
7733sed 's/^/| /' conftest.$ac_ext >&5
7734
f5818d2f
AJ
7735wine_cv_opengl_version_OK="no"
7736
5c085704 7737fi
f5818d2f 7738rm -f conftest.$ac_objext conftest.$ac_ext
5c085704 7739
f5818d2f 7740fi
daa2886c 7741echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
f5818d2f 7742echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6
5c085704 7743
b8074991 7744 if test "$wine_cv_opengl_version_OK" = "yes"
fbc15b17 7745 then
daa2886c 7746 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
f5818d2f
AJ
7747echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
7748if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
7749 echo $ECHO_N "(cached) $ECHO_C" >&6
5ff00774 7750else
f5818d2f 7751 ac_check_lib_save_LIBS=$LIBS
376ec88e 7752LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
f5818d2f 7753cat >conftest.$ac_ext <<_ACEOF
daa2886c 7754#line $LINENO "configure"
e24bcc77
AJ
7755/* confdefs.h. */
7756_ACEOF
7757cat confdefs.h >>conftest.$ac_ext
7758cat >>conftest.$ac_ext <<_ACEOF
7759/* end confdefs.h. */
f5818d2f 7760
5ff00774 7761/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
7762#ifdef __cplusplus
7763extern "C"
7764#endif
5ff00774 7765/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
7766 builtin and then its argument prototype would still apply. */
7767char glXCreateContext ();
7768int
7769main ()
7770{
7771glXCreateContext ();
7772 ;
7773 return 0;
7774}
7775_ACEOF
7776rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 7777if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
7778 (eval $ac_link) 2>&5
7779 ac_status=$?
daa2886c 7780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
7781 (exit $ac_status); } &&
7782 { ac_try='test -s conftest$ac_exeext'
daa2886c 7783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
7784 (eval $ac_try) 2>&5
7785 ac_status=$?
daa2886c 7786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
7787 (exit $ac_status); }; }; then
7788 ac_cv_lib_GL_glXCreateContext=yes
7789else
7790 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
7791sed 's/^/| /' conftest.$ac_ext >&5
7792
f5818d2f
AJ
7793ac_cv_lib_GL_glXCreateContext=no
7794fi
7795rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7796LIBS=$ac_check_lib_save_LIBS
7797fi
daa2886c 7798echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
f5818d2f
AJ
7799echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
7800if test $ac_cv_lib_GL_glXCreateContext = yes; then
56ab2b3e 7801 OPENGL_LIBS="-lGL"
5d68f79a 7802
f5818d2f 7803fi
fbc15b17 7804
daa2886c 7805
b508a1da 7806 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
bd8ede1b 7807 then
bd8ede1b 7808 OPENGLFILES='$(OPENGLFILES)'
f5818d2f 7809
daa2886c 7810cat >>confdefs.h <<\_ACEOF
6bb6d4c2 7811#define HAVE_OPENGL 1
daa2886c 7812_ACEOF
6bb6d4c2 7813
daa2886c
AJ
7814
7815 echo "$as_me:$LINENO: checking for glXGetProcAddressARB in -lGL" >&5
f5818d2f
AJ
7816echo $ECHO_N "checking for glXGetProcAddressARB in -lGL... $ECHO_C" >&6
7817if test "${ac_cv_lib_GL_glXGetProcAddressARB+set}" = set; then
7818 echo $ECHO_N "(cached) $ECHO_C" >&6
48c08164 7819else
f5818d2f 7820 ac_check_lib_save_LIBS=$LIBS
376ec88e 7821LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
f5818d2f 7822cat >conftest.$ac_ext <<_ACEOF
daa2886c 7823#line $LINENO "configure"
e24bcc77
AJ
7824/* confdefs.h. */
7825_ACEOF
7826cat confdefs.h >>conftest.$ac_ext
7827cat >>conftest.$ac_ext <<_ACEOF
7828/* end confdefs.h. */
f5818d2f 7829
48c08164 7830/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
7831#ifdef __cplusplus
7832extern "C"
7833#endif
48c08164 7834/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
7835 builtin and then its argument prototype would still apply. */
7836char glXGetProcAddressARB ();
7837int
7838main ()
7839{
7840glXGetProcAddressARB ();
7841 ;
7842 return 0;
7843}
7844_ACEOF
7845rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 7846if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
7847 (eval $ac_link) 2>&5
7848 ac_status=$?
daa2886c 7849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
7850 (exit $ac_status); } &&
7851 { ac_try='test -s conftest$ac_exeext'
daa2886c 7852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
7853 (eval $ac_try) 2>&5
7854 ac_status=$?
daa2886c 7855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
7856 (exit $ac_status); }; }; then
7857 ac_cv_lib_GL_glXGetProcAddressARB=yes
7858else
7859 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
7860sed 's/^/| /' conftest.$ac_ext >&5
7861
f5818d2f
AJ
7862ac_cv_lib_GL_glXGetProcAddressARB=no
7863fi
7864rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7865LIBS=$ac_check_lib_save_LIBS
7866fi
daa2886c 7867echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXGetProcAddressARB" >&5
f5818d2f
AJ
7868echo "${ECHO_T}$ac_cv_lib_GL_glXGetProcAddressARB" >&6
7869if test $ac_cv_lib_GL_glXGetProcAddressARB = yes; then
7870
daa2886c 7871cat >>confdefs.h <<\_ACEOF
bedf40b5 7872#define HAVE_GLX_GETPROCADDRESS 1
daa2886c 7873_ACEOF
48c08164 7874
5ff00774
LU
7875fi
7876
daa2886c 7877
b508a1da 7878 if test "$ac_cv_lib_GL_glXGetProcAddressARB" = "yes"
bedf40b5 7879 then
daa2886c 7880 echo "$as_me:$LINENO: checking for OpenGL extension functions prototypes" >&5
f5818d2f
AJ
7881echo $ECHO_N "checking for OpenGL extension functions prototypes... $ECHO_C" >&6
7882if test "${wine_cv_extension_prototypes+set}" = set; then
7883 echo $ECHO_N "(cached) $ECHO_C" >&6
1434d875 7884else
f5818d2f 7885 cat >conftest.$ac_ext <<_ACEOF
daa2886c 7886#line $LINENO "configure"
e24bcc77
AJ
7887/* confdefs.h. */
7888_ACEOF
7889cat confdefs.h >>conftest.$ac_ext
7890cat >>conftest.$ac_ext <<_ACEOF
7891/* end confdefs.h. */
1434d875 7892#include <GL/gl.h>
6bb6d4c2
MM
7893 #ifdef HAVE_GL_GLEXT_H
7894 # include <GL/glext.h>
7895 #endif
f5818d2f
AJ
7896
7897int
7898main ()
7899{
7900PFNGLCOLORTABLEEXTPROC test_proc;
7901 ;
7902 return 0;
7903}
7904_ACEOF
7905rm -f conftest.$ac_objext
daa2886c 7906if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
7907 (eval $ac_compile) 2>&5
7908 ac_status=$?
daa2886c 7909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
7910 (exit $ac_status); } &&
7911 { ac_try='test -s conftest.$ac_objext'
daa2886c 7912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
7913 (eval $ac_try) 2>&5
7914 ac_status=$?
daa2886c 7915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 7916 (exit $ac_status); }; }; then
fe210ef3 7917 wine_cv_extension_prototypes="yes"
1434d875 7918else
f5818d2f 7919 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
7920sed 's/^/| /' conftest.$ac_ext >&5
7921
f5818d2f
AJ
7922wine_cv_extension_prototypes="no"
7923
1434d875 7924fi
f5818d2f 7925rm -f conftest.$ac_objext conftest.$ac_ext
1434d875 7926
f5818d2f 7927fi
daa2886c 7928echo "$as_me:$LINENO: result: $wine_cv_extension_prototypes" >&5
f5818d2f 7929echo "${ECHO_T}$wine_cv_extension_prototypes" >&6
b508a1da 7930 if test "$wine_cv_extension_prototypes" = "yes"
fe210ef3 7931 then
f5818d2f 7932
daa2886c 7933cat >>confdefs.h <<\_ACEOF
fe210ef3 7934#define HAVE_GLEXT_PROTOTYPES 1
daa2886c 7935_ACEOF
fe210ef3
LU
7936
7937 fi
bedf40b5 7938 fi
d6c0f9f7 7939
fbc15b17 7940 fi
daa2886c 7941 echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
f5818d2f
AJ
7942echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6
7943if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
7944 echo $ECHO_N "(cached) $ECHO_C" >&6
b63ab445 7945else
f5818d2f 7946 ac_check_lib_save_LIBS=$LIBS
56ab2b3e 7947LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
b63ab445 7948 $LIBS"
f5818d2f 7949cat >conftest.$ac_ext <<_ACEOF
daa2886c 7950#line $LINENO "configure"
e24bcc77
AJ
7951/* confdefs.h. */
7952_ACEOF
7953cat confdefs.h >>conftest.$ac_ext
7954cat >>conftest.$ac_ext <<_ACEOF
7955/* end confdefs.h. */
f5818d2f 7956
b63ab445 7957/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
7958#ifdef __cplusplus
7959extern "C"
7960#endif
b63ab445 7961/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
7962 builtin and then its argument prototype would still apply. */
7963char gluLookAt ();
7964int
7965main ()
7966{
7967gluLookAt ();
7968 ;
7969 return 0;
7970}
7971_ACEOF
7972rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 7973if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
7974 (eval $ac_link) 2>&5
7975 ac_status=$?
daa2886c 7976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
7977 (exit $ac_status); } &&
7978 { ac_try='test -s conftest$ac_exeext'
daa2886c 7979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
7980 (eval $ac_try) 2>&5
7981 ac_status=$?
daa2886c 7982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
7983 (exit $ac_status); }; }; then
7984 ac_cv_lib_GLU_gluLookAt=yes
7985else
7986 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
7987sed 's/^/| /' conftest.$ac_ext >&5
7988
f5818d2f
AJ
7989ac_cv_lib_GLU_gluLookAt=no
7990fi
7991rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7992LIBS=$ac_check_lib_save_LIBS
7993fi
daa2886c 7994echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
f5818d2f
AJ
7995echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6
7996if test $ac_cv_lib_GLU_gluLookAt = yes; then
56ab2b3e 7997 OPENGL_LIBS="$OPENGL_LIBS -lGLU"
b63ab445 7998 GLU32FILES='$(GLU32FILES)'
f5818d2f 7999
b63ab445
MM
8000fi
8001
fbc15b17 8002 fi
ef799c46
JC
8003
8004 echo "$as_me:$LINENO: checking for glutMainLoop in -lglut" >&5
8005echo $ECHO_N "checking for glutMainLoop in -lglut... $ECHO_C" >&6
8006if test "${ac_cv_lib_glut_glutMainLoop+set}" = set; then
8007 echo $ECHO_N "(cached) $ECHO_C" >&6
8008else
8009 ac_check_lib_save_LIBS=$LIBS
5e69f118 8010LIBS="-lglut $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXmu -lXi -lX11 $X_EXTRA_LIBS $LIBS"
ef799c46
JC
8011cat >conftest.$ac_ext <<_ACEOF
8012#line $LINENO "configure"
8013/* confdefs.h. */
8014_ACEOF
8015cat confdefs.h >>conftest.$ac_ext
8016cat >>conftest.$ac_ext <<_ACEOF
8017/* end confdefs.h. */
8018
8019/* Override any gcc2 internal prototype to avoid an error. */
8020#ifdef __cplusplus
8021extern "C"
8022#endif
8023/* We use char because int might match the return type of a gcc2
8024 builtin and then its argument prototype would still apply. */
8025char glutMainLoop ();
8026int
8027main ()
8028{
8029glutMainLoop ();
8030 ;
8031 return 0;
8032}
8033_ACEOF
8034rm -f conftest.$ac_objext conftest$ac_exeext
8035if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8036 (eval $ac_link) 2>&5
8037 ac_status=$?
8038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039 (exit $ac_status); } &&
8040 { ac_try='test -s conftest$ac_exeext'
8041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8042 (eval $ac_try) 2>&5
8043 ac_status=$?
8044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045 (exit $ac_status); }; }; then
8046 ac_cv_lib_glut_glutMainLoop=yes
8047else
8048 echo "$as_me: failed program was:" >&5
8049sed 's/^/| /' conftest.$ac_ext >&5
8050
8051ac_cv_lib_glut_glutMainLoop=no
8052fi
8053rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8054LIBS=$ac_check_lib_save_LIBS
8055fi
8056echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutMainLoop" >&5
8057echo "${ECHO_T}$ac_cv_lib_glut_glutMainLoop" >&6
8058if test $ac_cv_lib_glut_glutMainLoop = yes; then
5e69f118 8059 GLUT_LIBS="-lglut -lXmu -lXi"
ef799c46
JC
8060
8061 GLUT32FILES='$(GLUT32FILES)'
8062
8063fi
8064
fbc15b17 8065 fi
24110288 8066 fi
1eb593cb 8067
6f670b13
FG
8068 NASLIBS=""
8069
8070
8071for ac_header in audio/audiolib.h
8072do
8073as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8074if eval "test \"\${$as_ac_Header+set}\" = set"; then
8075 echo "$as_me:$LINENO: checking for $ac_header" >&5
8076echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8077if eval "test \"\${$as_ac_Header+set}\" = set"; then
8078 echo $ECHO_N "(cached) $ECHO_C" >&6
8079fi
8080echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8081echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8082else
8083 # Is the header compilable?
8084echo "$as_me:$LINENO: checking $ac_header usability" >&5
8085echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8086cat >conftest.$ac_ext <<_ACEOF
8087#line $LINENO "configure"
e24bcc77
AJ
8088/* confdefs.h. */
8089_ACEOF
8090cat confdefs.h >>conftest.$ac_ext
8091cat >>conftest.$ac_ext <<_ACEOF
8092/* end confdefs.h. */
6f670b13
FG
8093$ac_includes_default
8094#include <$ac_header>
8095_ACEOF
8096rm -f conftest.$ac_objext
8097if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8098 (eval $ac_compile) 2>&5
8099 ac_status=$?
8100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8101 (exit $ac_status); } &&
8102 { ac_try='test -s conftest.$ac_objext'
8103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8104 (eval $ac_try) 2>&5
8105 ac_status=$?
8106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8107 (exit $ac_status); }; }; then
8108 ac_header_compiler=yes
8109else
8110 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
8111sed 's/^/| /' conftest.$ac_ext >&5
8112
6f670b13
FG
8113ac_header_compiler=no
8114fi
8115rm -f conftest.$ac_objext conftest.$ac_ext
8116echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8117echo "${ECHO_T}$ac_header_compiler" >&6
8118
8119# Is the header present?
8120echo "$as_me:$LINENO: checking $ac_header presence" >&5
8121echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8122cat >conftest.$ac_ext <<_ACEOF
8123#line $LINENO "configure"
e24bcc77
AJ
8124/* confdefs.h. */
8125_ACEOF
8126cat confdefs.h >>conftest.$ac_ext
8127cat >>conftest.$ac_ext <<_ACEOF
8128/* end confdefs.h. */
6f670b13
FG
8129#include <$ac_header>
8130_ACEOF
8131if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8132 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8133 ac_status=$?
8134 grep -v '^ *+' conftest.er1 >conftest.err
8135 rm -f conftest.er1
8136 cat conftest.err >&5
8137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138 (exit $ac_status); } >/dev/null; then
8139 if test -s conftest.err; then
8140 ac_cpp_err=$ac_c_preproc_warn_flag
8141 else
8142 ac_cpp_err=
8143 fi
8144else
8145 ac_cpp_err=yes
8146fi
8147if test -z "$ac_cpp_err"; then
8148 ac_header_preproc=yes
8149else
8150 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
8151sed 's/^/| /' conftest.$ac_ext >&5
8152
6f670b13
FG
8153 ac_header_preproc=no
8154fi
8155rm -f conftest.err conftest.$ac_ext
8156echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8157echo "${ECHO_T}$ac_header_preproc" >&6
8158
8159# So? What about this header?
8160case $ac_header_compiler:$ac_header_preproc in
8161 yes:no )
8162 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8163echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8164 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
e24bcc77
AJ
8165echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8166 (
8167 cat <<\_ASBOX
8168## ------------------------------------ ##
8169## Report this to bug-autoconf@gnu.org. ##
8170## ------------------------------------ ##
8171_ASBOX
8172 ) |
8173 sed "s/^/$as_me: WARNING: /" >&2
8174 ;;
6f670b13
FG
8175 no:yes )
8176 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8177echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8178 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8179echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8180 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
e24bcc77
AJ
8181echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8182 (
8183 cat <<\_ASBOX
8184## ------------------------------------ ##
8185## Report this to bug-autoconf@gnu.org. ##
8186## ------------------------------------ ##
8187_ASBOX
8188 ) |
8189 sed "s/^/$as_me: WARNING: /" >&2
8190 ;;
6f670b13
FG
8191esac
8192echo "$as_me:$LINENO: checking for $ac_header" >&5
8193echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8194if eval "test \"\${$as_ac_Header+set}\" = set"; then
8195 echo $ECHO_N "(cached) $ECHO_C" >&6
8196else
8197 eval "$as_ac_Header=$ac_header_preproc"
8198fi
8199echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8200echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8201
8202fi
8203if test `eval echo '${'$as_ac_Header'}'` = yes; then
8204 cat >>confdefs.h <<_ACEOF
8205#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8206_ACEOF
8207
8208for ac_header in audio/soundlib.h
8209do
8210as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8211echo "$as_me:$LINENO: checking for $ac_header" >&5
8212echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8213if eval "test \"\${$as_ac_Header+set}\" = set"; then
8214 echo $ECHO_N "(cached) $ECHO_C" >&6
8215else
8216 cat >conftest.$ac_ext <<_ACEOF
8217#line $LINENO "configure"
e24bcc77
AJ
8218/* confdefs.h. */
8219_ACEOF
8220cat confdefs.h >>conftest.$ac_ext
8221cat >>conftest.$ac_ext <<_ACEOF
8222/* end confdefs.h. */
6f670b13
FG
8223#include <audio/audiolib.h>
8224
8225#include <$ac_header>
8226_ACEOF
8227rm -f conftest.$ac_objext
8228if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8229 (eval $ac_compile) 2>&5
8230 ac_status=$?
8231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8232 (exit $ac_status); } &&
8233 { ac_try='test -s conftest.$ac_objext'
8234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8235 (eval $ac_try) 2>&5
8236 ac_status=$?
8237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8238 (exit $ac_status); }; }; then
8239 eval "$as_ac_Header=yes"
8240else
8241 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
8242sed 's/^/| /' conftest.$ac_ext >&5
8243
6f670b13
FG
8244eval "$as_ac_Header=no"
8245fi
8246rm -f conftest.$ac_objext conftest.$ac_ext
8247fi
8248echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8249echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8250if test `eval echo '${'$as_ac_Header'}'` = yes; then
8251 cat >>confdefs.h <<_ACEOF
8252#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8253_ACEOF
8254
8255fi
8256
8257done
8258
8259 echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
8260echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6
8261if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
8262 echo $ECHO_N "(cached) $ECHO_C" >&6
8263else
8264 ac_check_lib_save_LIBS=$LIBS
8265LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8266cat >conftest.$ac_ext <<_ACEOF
8267#line $LINENO "configure"
e24bcc77
AJ
8268/* confdefs.h. */
8269_ACEOF
8270cat confdefs.h >>conftest.$ac_ext
8271cat >>conftest.$ac_ext <<_ACEOF
8272/* end confdefs.h. */
6f670b13
FG
8273
8274/* Override any gcc2 internal prototype to avoid an error. */
8275#ifdef __cplusplus
8276extern "C"
8277#endif
8278/* We use char because int might match the return type of a gcc2
8279 builtin and then its argument prototype would still apply. */
8280char AuCreateFlow ();
8281int
8282main ()
8283{
8284AuCreateFlow ();
8285 ;
8286 return 0;
8287}
8288_ACEOF
8289rm -f conftest.$ac_objext conftest$ac_exeext
8290if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8291 (eval $ac_link) 2>&5
8292 ac_status=$?
8293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8294 (exit $ac_status); } &&
8295 { ac_try='test -s conftest$ac_exeext'
8296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8297 (eval $ac_try) 2>&5
8298 ac_status=$?
8299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300 (exit $ac_status); }; }; then
8301 ac_cv_lib_audio_AuCreateFlow=yes
8302else
8303 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
8304sed 's/^/| /' conftest.$ac_ext >&5
8305
6f670b13
FG
8306ac_cv_lib_audio_AuCreateFlow=no
8307fi
8308rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8309LIBS=$ac_check_lib_save_LIBS
8310fi
8311echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
8312echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6
8313if test $ac_cv_lib_audio_AuCreateFlow = yes; then
8314
8315cat >>confdefs.h <<\_ACEOF
8316#define HAVE_NAS 1
8317_ACEOF
8318
8319 NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
8320fi
8321
8322fi
8323
8324done
8325
8326
1eb593cb 8327 CPPFLAGS="$ac_save_CPPFLAGS"
2941a212 8328 XFILES='$(XFILES)'
24110288 8329else
daa2886c
AJ
8330 XLIB=""
8331 X_CFLAGS=""
8332 X_LIBS=""
8333fi
8334
8335CURSESLIBS=""
8336if test "x$with_curses" != "xno"
8337then
8338
8339for ac_header in ncurses.h
8340do
8341as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8342if eval "test \"\${$as_ac_Header+set}\" = set"; then
8343 echo "$as_me:$LINENO: checking for $ac_header" >&5
8344echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8345if eval "test \"\${$as_ac_Header+set}\" = set"; then
8346 echo $ECHO_N "(cached) $ECHO_C" >&6
8347fi
8348echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8349echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8350else
8351 # Is the header compilable?
8352echo "$as_me:$LINENO: checking $ac_header usability" >&5
8353echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8354cat >conftest.$ac_ext <<_ACEOF
8355#line $LINENO "configure"
e24bcc77
AJ
8356/* confdefs.h. */
8357_ACEOF
8358cat confdefs.h >>conftest.$ac_ext
8359cat >>conftest.$ac_ext <<_ACEOF
8360/* end confdefs.h. */
daa2886c
AJ
8361$ac_includes_default
8362#include <$ac_header>
8363_ACEOF
8364rm -f conftest.$ac_objext
8365if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8366 (eval $ac_compile) 2>&5
8367 ac_status=$?
8368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369 (exit $ac_status); } &&
8370 { ac_try='test -s conftest.$ac_objext'
8371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8372 (eval $ac_try) 2>&5
8373 ac_status=$?
8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375 (exit $ac_status); }; }; then
8376 ac_header_compiler=yes
8377else
8378 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
8379sed 's/^/| /' conftest.$ac_ext >&5
8380
daa2886c 8381ac_header_compiler=no
24110288 8382fi
daa2886c
AJ
8383rm -f conftest.$ac_objext conftest.$ac_ext
8384echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8385echo "${ECHO_T}$ac_header_compiler" >&6
24110288 8386
daa2886c
AJ
8387# Is the header present?
8388echo "$as_me:$LINENO: checking $ac_header presence" >&5
8389echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8390cat >conftest.$ac_ext <<_ACEOF
8391#line $LINENO "configure"
e24bcc77
AJ
8392/* confdefs.h. */
8393_ACEOF
8394cat confdefs.h >>conftest.$ac_ext
8395cat >>conftest.$ac_ext <<_ACEOF
8396/* end confdefs.h. */
f5818d2f
AJ
8397#include <$ac_header>
8398_ACEOF
daa2886c 8399if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
f5818d2f
AJ
8400 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8401 ac_status=$?
11af04e3 8402 grep -v '^ *+' conftest.er1 >conftest.err
f5818d2f
AJ
8403 rm -f conftest.er1
8404 cat conftest.err >&5
daa2886c 8405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
8406 (exit $ac_status); } >/dev/null; then
8407 if test -s conftest.err; then
8408 ac_cpp_err=$ac_c_preproc_warn_flag
8409 else
8410 ac_cpp_err=
8411 fi
8412else
8413 ac_cpp_err=yes
8414fi
8415if test -z "$ac_cpp_err"; then
daa2886c 8416 ac_header_preproc=yes
f5818d2f
AJ
8417else
8418 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
8419sed 's/^/| /' conftest.$ac_ext >&5
8420
daa2886c 8421 ac_header_preproc=no
a1d6d247 8422fi
f5818d2f 8423rm -f conftest.err conftest.$ac_ext
daa2886c
AJ
8424echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8425echo "${ECHO_T}$ac_header_preproc" >&6
8426
8427# So? What about this header?
8428case $ac_header_compiler:$ac_header_preproc in
8429 yes:no )
8430 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8431echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
e24bcc77
AJ
8433echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8434 (
8435 cat <<\_ASBOX
8436## ------------------------------------ ##
8437## Report this to bug-autoconf@gnu.org. ##
8438## ------------------------------------ ##
8439_ASBOX
8440 ) |
8441 sed "s/^/$as_me: WARNING: /" >&2
8442 ;;
daa2886c
AJ
8443 no:yes )
8444 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8445echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8446 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8447echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8448 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
e24bcc77
AJ
8449echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8450 (
8451 cat <<\_ASBOX
8452## ------------------------------------ ##
8453## Report this to bug-autoconf@gnu.org. ##
8454## ------------------------------------ ##
8455_ASBOX
8456 ) |
8457 sed "s/^/$as_me: WARNING: /" >&2
8458 ;;
daa2886c
AJ
8459esac
8460echo "$as_me:$LINENO: checking for $ac_header" >&5
8461echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8462if eval "test \"\${$as_ac_Header+set}\" = set"; then
8463 echo $ECHO_N "(cached) $ECHO_C" >&6
8464else
8465 eval "$as_ac_Header=$ac_header_preproc"
a1d6d247 8466fi
daa2886c 8467echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
f5818d2f 8468echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
daa2886c
AJ
8469
8470fi
f5818d2f 8471if test `eval echo '${'$as_ac_Header'}'` = yes; then
daa2886c 8472 cat >>confdefs.h <<_ACEOF
f5818d2f 8473#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
daa2886c
AJ
8474_ACEOF
8475 echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
f5818d2f
AJ
8476echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6
8477if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
8478 echo $ECHO_N "(cached) $ECHO_C" >&6
e884f9ca 8479else
f5818d2f 8480 ac_check_lib_save_LIBS=$LIBS
e884f9ca 8481LIBS="-lncurses $LIBS"
f5818d2f 8482cat >conftest.$ac_ext <<_ACEOF
daa2886c 8483#line $LINENO "configure"
e24bcc77
AJ
8484/* confdefs.h. */
8485_ACEOF
8486cat confdefs.h >>conftest.$ac_ext
8487cat >>conftest.$ac_ext <<_ACEOF
8488/* end confdefs.h. */
f5818d2f 8489
e884f9ca 8490/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
8491#ifdef __cplusplus
8492extern "C"
8493#endif
e884f9ca 8494/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
8495 builtin and then its argument prototype would still apply. */
8496char waddch ();
8497int
8498main ()
8499{
8500waddch ();
8501 ;
8502 return 0;
8503}
8504_ACEOF
8505rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 8506if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
8507 (eval $ac_link) 2>&5
8508 ac_status=$?
daa2886c 8509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
8510 (exit $ac_status); } &&
8511 { ac_try='test -s conftest$ac_exeext'
daa2886c 8512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
8513 (eval $ac_try) 2>&5
8514 ac_status=$?
daa2886c 8515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
8516 (exit $ac_status); }; }; then
8517 ac_cv_lib_ncurses_waddch=yes
8518else
8519 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
8520sed 's/^/| /' conftest.$ac_ext >&5
8521
f5818d2f
AJ
8522ac_cv_lib_ncurses_waddch=no
8523fi
8524rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8525LIBS=$ac_check_lib_save_LIBS
8526fi
daa2886c 8527echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
f5818d2f
AJ
8528echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6
8529if test $ac_cv_lib_ncurses_waddch = yes; then
8530
daa2886c 8531cat >>confdefs.h <<\_ACEOF
48957684 8532#define HAVE_LIBNCURSES 1
daa2886c 8533_ACEOF
e884f9ca 8534
48957684 8535 CURSESLIBS="-lncurses"
f544507b 8536else
f5818d2f
AJ
8537
8538for ac_header in curses.h
24110288 8539do
f5818d2f 8540as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
daa2886c
AJ
8541if eval "test \"\${$as_ac_Header+set}\" = set"; then
8542 echo "$as_me:$LINENO: checking for $ac_header" >&5
f5818d2f
AJ
8543echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8544if eval "test \"\${$as_ac_Header+set}\" = set"; then
8545 echo $ECHO_N "(cached) $ECHO_C" >&6
daa2886c
AJ
8546fi
8547echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8548echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
f5818d2f 8549else
daa2886c
AJ
8550 # Is the header compilable?
8551echo "$as_me:$LINENO: checking $ac_header usability" >&5
8552echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8553cat >conftest.$ac_ext <<_ACEOF
8554#line $LINENO "configure"
e24bcc77
AJ
8555/* confdefs.h. */
8556_ACEOF
8557cat confdefs.h >>conftest.$ac_ext
8558cat >>conftest.$ac_ext <<_ACEOF
8559/* end confdefs.h. */
daa2886c
AJ
8560$ac_includes_default
8561#include <$ac_header>
8562_ACEOF
8563rm -f conftest.$ac_objext
8564if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8565 (eval $ac_compile) 2>&5
8566 ac_status=$?
8567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568 (exit $ac_status); } &&
8569 { ac_try='test -s conftest.$ac_objext'
8570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8571 (eval $ac_try) 2>&5
8572 ac_status=$?
8573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574 (exit $ac_status); }; }; then
8575 ac_header_compiler=yes
8576else
8577 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
8578sed 's/^/| /' conftest.$ac_ext >&5
8579
daa2886c
AJ
8580ac_header_compiler=no
8581fi
8582rm -f conftest.$ac_objext conftest.$ac_ext
8583echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8584echo "${ECHO_T}$ac_header_compiler" >&6
8585
8586# Is the header present?
8587echo "$as_me:$LINENO: checking $ac_header presence" >&5
8588echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8589cat >conftest.$ac_ext <<_ACEOF
8590#line $LINENO "configure"
e24bcc77
AJ
8591/* confdefs.h. */
8592_ACEOF
8593cat confdefs.h >>conftest.$ac_ext
8594cat >>conftest.$ac_ext <<_ACEOF
8595/* end confdefs.h. */
f5818d2f
AJ
8596#include <$ac_header>
8597_ACEOF
daa2886c 8598if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
f5818d2f
AJ
8599 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8600 ac_status=$?
11af04e3 8601 grep -v '^ *+' conftest.er1 >conftest.err
f5818d2f
AJ
8602 rm -f conftest.er1
8603 cat conftest.err >&5
daa2886c 8604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
8605 (exit $ac_status); } >/dev/null; then
8606 if test -s conftest.err; then
8607 ac_cpp_err=$ac_c_preproc_warn_flag
8608 else
8609 ac_cpp_err=
8610 fi
8611else
8612 ac_cpp_err=yes
8613fi
8614if test -z "$ac_cpp_err"; then
daa2886c 8615 ac_header_preproc=yes
f5818d2f
AJ
8616else
8617 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
8618sed 's/^/| /' conftest.$ac_ext >&5
8619
daa2886c 8620 ac_header_preproc=no
24110288 8621fi
f5818d2f 8622rm -f conftest.err conftest.$ac_ext
daa2886c
AJ
8623echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8624echo "${ECHO_T}$ac_header_preproc" >&6
8625
8626# So? What about this header?
8627case $ac_header_compiler:$ac_header_preproc in
8628 yes:no )
8629 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8630echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8631 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
e24bcc77
AJ
8632echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8633 (
8634 cat <<\_ASBOX
8635## ------------------------------------ ##
8636## Report this to bug-autoconf@gnu.org. ##
8637## ------------------------------------ ##
8638_ASBOX
8639 ) |
8640 sed "s/^/$as_me: WARNING: /" >&2
8641 ;;
daa2886c
AJ
8642 no:yes )
8643 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8644echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8645 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8646echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8647 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
e24bcc77
AJ
8648echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8649 (
8650 cat <<\_ASBOX
8651## ------------------------------------ ##
8652## Report this to bug-autoconf@gnu.org. ##
8653## ------------------------------------ ##
8654_ASBOX
8655 ) |
8656 sed "s/^/$as_me: WARNING: /" >&2
8657 ;;
daa2886c
AJ
8658esac
8659echo "$as_me:$LINENO: checking for $ac_header" >&5
8660echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8661if eval "test \"\${$as_ac_Header+set}\" = set"; then
8662 echo $ECHO_N "(cached) $ECHO_C" >&6
8663else
8664 eval "$as_ac_Header=$ac_header_preproc"
24110288 8665fi
daa2886c 8666echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
f5818d2f 8667echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
daa2886c
AJ
8668
8669fi
f5818d2f 8670if test `eval echo '${'$as_ac_Header'}'` = yes; then
daa2886c 8671 cat >>confdefs.h <<_ACEOF
f5818d2f 8672#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
daa2886c
AJ
8673_ACEOF
8674 echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
f5818d2f
AJ
8675echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6
8676if test "${ac_cv_lib_curses_waddch+set}" = set; then
8677 echo $ECHO_N "(cached) $ECHO_C" >&6
e884f9ca 8678else
f5818d2f 8679 ac_check_lib_save_LIBS=$LIBS
e884f9ca 8680LIBS="-lcurses $LIBS"
f5818d2f 8681cat >conftest.$ac_ext <<_ACEOF
daa2886c 8682#line $LINENO "configure"
e24bcc77
AJ
8683/* confdefs.h. */
8684_ACEOF
8685cat confdefs.h >>conftest.$ac_ext
8686cat >>conftest.$ac_ext <<_ACEOF
8687/* end confdefs.h. */
f5818d2f 8688
e884f9ca 8689/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
8690#ifdef __cplusplus
8691extern "C"
8692#endif
e884f9ca 8693/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
8694 builtin and then its argument prototype would still apply. */
8695char waddch ();
8696int
8697main ()
8698{
8699waddch ();
8700 ;
8701 return 0;
8702}
8703_ACEOF
8704rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 8705if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
8706 (eval $ac_link) 2>&5
8707 ac_status=$?
daa2886c 8708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
8709 (exit $ac_status); } &&
8710 { ac_try='test -s conftest$ac_exeext'
daa2886c 8711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
8712 (eval $ac_try) 2>&5
8713 ac_status=$?
daa2886c 8714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
8715 (exit $ac_status); }; }; then
8716 ac_cv_lib_curses_waddch=yes
8717else
8718 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
8719sed 's/^/| /' conftest.$ac_ext >&5
8720
f5818d2f
AJ
8721ac_cv_lib_curses_waddch=no
8722fi
8723rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8724LIBS=$ac_check_lib_save_LIBS
8725fi
daa2886c 8726echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
f5818d2f
AJ
8727echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6
8728if test $ac_cv_lib_curses_waddch = yes; then
8729
daa2886c 8730cat >>confdefs.h <<\_ACEOF
48957684 8731#define HAVE_LIBCURSES 1
daa2886c 8732_ACEOF
e884f9ca 8733
48957684 8734 CURSESLIBS="-lcurses"
638f169b
AJ
8735fi
8736
638f169b 8737fi
daa2886c 8738
ed2f19a6 8739done
638f169b
AJ
8740
8741fi
48957684 8742
48957684 8743fi
daa2886c 8744
ed2f19a6 8745done
f544507b 8746
48957684
AJ
8747 saved_libs="$LIBS"
8748 LIBS="$CURSESLIBS $LIBS"
f5818d2f 8749
daa2886c 8750
f5818d2f 8751for ac_func in getbkgd resizeterm
ed2f19a6 8752do
f5818d2f 8753as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
daa2886c 8754echo "$as_me:$LINENO: checking for $ac_func" >&5
f5818d2f
AJ
8755echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8756if eval "test \"\${$as_ac_var+set}\" = set"; then
8757 echo $ECHO_N "(cached) $ECHO_C" >&6
8758else
8759 cat >conftest.$ac_ext <<_ACEOF
daa2886c 8760#line $LINENO "configure"
e24bcc77
AJ
8761/* confdefs.h. */
8762_ACEOF
8763cat confdefs.h >>conftest.$ac_ext
8764cat >>conftest.$ac_ext <<_ACEOF
8765/* end confdefs.h. */
ed2f19a6 8766/* System header to define __stub macros and hopefully few prototypes,
e24bcc77
AJ
8767 which can conflict with char $ac_func (); below.
8768 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8769 <limits.h> exists even on freestanding compilers. */
8770#ifdef __STDC__
8771# include <limits.h>
8772#else
8773# include <assert.h>
8774#endif
f544507b 8775/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
8776#ifdef __cplusplus
8777extern "C"
e24bcc77 8778{
f5818d2f 8779#endif
f544507b 8780/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
8781 builtin and then its argument prototype would still apply. */
8782char $ac_func ();
ed2f19a6
AJ
8783/* The GNU C library defines this for functions which it implements
8784 to always fail with ENOSYS. Some functions are actually named
8785 something starting with __ and the normal name is an alias. */
8786#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8787choke me
8788#else
e24bcc77
AJ
8789char (*f) () = $ac_func;
8790#endif
8791#ifdef __cplusplus
8792}
ed2f19a6
AJ
8793#endif
8794
e24bcc77
AJ
8795int
8796main ()
8797{
8798return f != $ac_func;
f5818d2f
AJ
8799 ;
8800 return 0;
8801}
8802_ACEOF
8803rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 8804if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
8805 (eval $ac_link) 2>&5
8806 ac_status=$?
daa2886c 8807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
8808 (exit $ac_status); } &&
8809 { ac_try='test -s conftest$ac_exeext'
daa2886c 8810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
8811 (eval $ac_try) 2>&5
8812 ac_status=$?
daa2886c 8813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
8814 (exit $ac_status); }; }; then
8815 eval "$as_ac_var=yes"
8816else
8817 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
8818sed 's/^/| /' conftest.$ac_ext >&5
8819
f5818d2f
AJ
8820eval "$as_ac_var=no"
8821fi
8822rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8823fi
daa2886c 8824echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
f5818d2f
AJ
8825echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8826if test `eval echo '${'$as_ac_var'}'` = yes; then
daa2886c 8827 cat >>confdefs.h <<_ACEOF
f5818d2f 8828#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
daa2886c 8829_ACEOF
ed2f19a6 8830
e884f9ca 8831fi
ed2f19a6 8832done
e884f9ca 8833
48957684 8834 LIBS="$saved_libs"
e884f9ca
JP
8835fi
8836
daa2886c 8837
6b0720f5
SQH
8838# Extract the first word of "sane-config", so it can be a program name with args.
8839set dummy sane-config; ac_word=$2
daa2886c 8840echo "$as_me:$LINENO: checking for $ac_word" >&5
6b0720f5
SQH
8841echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8842if test "${ac_cv_prog_sane_devel+set}" = set; then
8843 echo $ECHO_N "(cached) $ECHO_C" >&6
8844else
8845 if test -n "$sane_devel"; then
8846 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
8847else
daa2886c
AJ
8848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8849for as_dir in $PATH
8850do
8851 IFS=$as_save_IFS
8852 test -z "$as_dir" && as_dir=.
8853 for ac_exec_ext in '' $ac_executable_extensions; do
8854 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8855 ac_cv_prog_sane_devel="sane-config"
8856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8857 break 2
8858 fi
8859done
6b0720f5
SQH
8860done
8861
8862 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
8863fi
8864fi
8865sane_devel=$ac_cv_prog_sane_devel
8866if test -n "$sane_devel"; then
daa2886c 8867 echo "$as_me:$LINENO: result: $sane_devel" >&5
6b0720f5
SQH
8868echo "${ECHO_T}$sane_devel" >&6
8869else
daa2886c 8870 echo "$as_me:$LINENO: result: no" >&5
6b0720f5
SQH
8871echo "${ECHO_T}no" >&6
8872fi
8873
8874if test "$sane_devel" = "no"
8875then
8876 SANELIBS=""
8877 SANEINCL=""
8878else
8879 SANELIBS="`$sane_devel --libs`"
8880 SANEINCL="`$sane_devel --cflags`"
8881 ac_save_CPPFLAGS="$CPPFLAGS"
8882 ac_save_LIBS="$LIBS"
8883 CPPFLAGS="$CPPFLAGS $SANEINCL"
8884 LIBS="$LIBS $SANELIBS"
daa2886c
AJ
8885 if test "${ac_cv_header_sane_sane_h+set}" = set; then
8886 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
6b0720f5
SQH
8887echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
8888if test "${ac_cv_header_sane_sane_h+set}" = set; then
8889 echo $ECHO_N "(cached) $ECHO_C" >&6
daa2886c
AJ
8890fi
8891echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
8892echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
6b0720f5 8893else
daa2886c
AJ
8894 # Is the header compilable?
8895echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
8896echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6
8897cat >conftest.$ac_ext <<_ACEOF
8898#line $LINENO "configure"
e24bcc77
AJ
8899/* confdefs.h. */
8900_ACEOF
8901cat confdefs.h >>conftest.$ac_ext
8902cat >>conftest.$ac_ext <<_ACEOF
8903/* end confdefs.h. */
daa2886c
AJ
8904$ac_includes_default
8905#include <sane/sane.h>
8906_ACEOF
8907rm -f conftest.$ac_objext
8908if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8909 (eval $ac_compile) 2>&5
8910 ac_status=$?
8911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8912 (exit $ac_status); } &&
8913 { ac_try='test -s conftest.$ac_objext'
8914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8915 (eval $ac_try) 2>&5
8916 ac_status=$?
8917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8918 (exit $ac_status); }; }; then
8919 ac_header_compiler=yes
8920else
8921 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
8922sed 's/^/| /' conftest.$ac_ext >&5
8923
daa2886c
AJ
8924ac_header_compiler=no
8925fi
8926rm -f conftest.$ac_objext conftest.$ac_ext
8927echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8928echo "${ECHO_T}$ac_header_compiler" >&6
8929
8930# Is the header present?
8931echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
8932echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6
8933cat >conftest.$ac_ext <<_ACEOF
8934#line $LINENO "configure"
e24bcc77
AJ
8935/* confdefs.h. */
8936_ACEOF
8937cat confdefs.h >>conftest.$ac_ext
8938cat >>conftest.$ac_ext <<_ACEOF
8939/* end confdefs.h. */
6b0720f5
SQH
8940#include <sane/sane.h>
8941_ACEOF
daa2886c 8942if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6b0720f5
SQH
8943 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8944 ac_status=$?
11af04e3 8945 grep -v '^ *+' conftest.er1 >conftest.err
6b0720f5
SQH
8946 rm -f conftest.er1
8947 cat conftest.err >&5
daa2886c 8948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6b0720f5
SQH
8949 (exit $ac_status); } >/dev/null; then
8950 if test -s conftest.err; then
8951 ac_cpp_err=$ac_c_preproc_warn_flag
8952 else
8953 ac_cpp_err=
8954 fi
8955else
8956 ac_cpp_err=yes
8957fi
8958if test -z "$ac_cpp_err"; then
daa2886c 8959 ac_header_preproc=yes
6b0720f5
SQH
8960else
8961 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
8962sed 's/^/| /' conftest.$ac_ext >&5
8963
daa2886c 8964 ac_header_preproc=no
6b0720f5
SQH
8965fi
8966rm -f conftest.err conftest.$ac_ext
daa2886c
AJ
8967echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8968echo "${ECHO_T}$ac_header_preproc" >&6
8969
8970# So? What about this header?
8971case $ac_header_compiler:$ac_header_preproc in
8972 yes:no )
8973 { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
8974echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8975 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
e24bcc77
AJ
8976echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
8977 (
8978 cat <<\_ASBOX
8979## ------------------------------------ ##
8980## Report this to bug-autoconf@gnu.org. ##
8981## ------------------------------------ ##
8982_ASBOX
8983 ) |
8984 sed "s/^/$as_me: WARNING: /" >&2
8985 ;;
daa2886c
AJ
8986 no:yes )
8987 { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
8988echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
8989 { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5
8990echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;}
8991 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
e24bcc77
AJ
8992echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
8993 (
8994 cat <<\_ASBOX
8995## ------------------------------------ ##
8996## Report this to bug-autoconf@gnu.org. ##
8997## ------------------------------------ ##
8998_ASBOX
8999 ) |
9000 sed "s/^/$as_me: WARNING: /" >&2
9001 ;;
daa2886c
AJ
9002esac
9003echo "$as_me:$LINENO: checking for sane/sane.h" >&5
9004echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
9005if test "${ac_cv_header_sane_sane_h+set}" = set; then
9006 echo $ECHO_N "(cached) $ECHO_C" >&6
9007else
9008 ac_cv_header_sane_sane_h=$ac_header_preproc
6b0720f5 9009fi
daa2886c 9010echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
6b0720f5 9011echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
daa2886c
AJ
9012
9013fi
6b0720f5 9014if test $ac_cv_header_sane_sane_h = yes; then
daa2886c 9015 echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
6b0720f5
SQH
9016echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6
9017if test "${ac_cv_lib_sane_sane_open+set}" = set; then
9018 echo $ECHO_N "(cached) $ECHO_C" >&6
9019else
9020 ac_check_lib_save_LIBS=$LIBS
9021LIBS="-lsane $LIBS"
9022cat >conftest.$ac_ext <<_ACEOF
daa2886c 9023#line $LINENO "configure"
e24bcc77
AJ
9024/* confdefs.h. */
9025_ACEOF
9026cat confdefs.h >>conftest.$ac_ext
9027cat >>conftest.$ac_ext <<_ACEOF
9028/* end confdefs.h. */
6b0720f5
SQH
9029
9030/* Override any gcc2 internal prototype to avoid an error. */
9031#ifdef __cplusplus
9032extern "C"
9033#endif
9034/* We use char because int might match the return type of a gcc2
9035 builtin and then its argument prototype would still apply. */
9036char sane_open ();
9037int
9038main ()
9039{
9040sane_open ();
9041 ;
9042 return 0;
9043}
9044_ACEOF
9045rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 9046if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6b0720f5
SQH
9047 (eval $ac_link) 2>&5
9048 ac_status=$?
daa2886c 9049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6b0720f5
SQH
9050 (exit $ac_status); } &&
9051 { ac_try='test -s conftest$ac_exeext'
daa2886c 9052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6b0720f5
SQH
9053 (eval $ac_try) 2>&5
9054 ac_status=$?
daa2886c 9055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6b0720f5
SQH
9056 (exit $ac_status); }; }; then
9057 ac_cv_lib_sane_sane_open=yes
9058else
9059 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
9060sed 's/^/| /' conftest.$ac_ext >&5
9061
6b0720f5
SQH
9062ac_cv_lib_sane_sane_open=no
9063fi
9064rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9065LIBS=$ac_check_lib_save_LIBS
9066fi
daa2886c 9067echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
6b0720f5
SQH
9068echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6
9069if test $ac_cv_lib_sane_sane_open = yes; then
9070
daa2886c 9071cat >>confdefs.h <<\_ACEOF
6b0720f5 9072#define HAVE_SANE 1
daa2886c 9073_ACEOF
6b0720f5
SQH
9074
9075else
9076 SANELIBS=""
96328b37 9077 SANEINCL=""
6b0720f5
SQH
9078fi
9079
96328b37
AJ
9080else
9081 SANELIBS=""
9082 SANEINCL=""
6b0720f5
SQH
9083fi
9084
daa2886c 9085
6b0720f5
SQH
9086 LIBS="$ac_save_LIBS"
9087 CPPFLAGS="$ac_save_CPPFLAGS"
9088fi
9089
daa2886c
AJ
9090
9091
4ee8290b
AJ
9092
9093for ac_header in unicode/ubidi.h
9094do
9095as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9096if eval "test \"\${$as_ac_Header+set}\" = set"; then
9097 echo "$as_me:$LINENO: checking for $ac_header" >&5
9098echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9099if eval "test \"\${$as_ac_Header+set}\" = set"; then
9100 echo $ECHO_N "(cached) $ECHO_C" >&6
9101fi
9102echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9103echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9104else
9105 # Is the header compilable?
9106echo "$as_me:$LINENO: checking $ac_header usability" >&5
9107echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9108cat >conftest.$ac_ext <<_ACEOF
9109#line $LINENO "configure"
9110/* confdefs.h. */
9111_ACEOF
9112cat confdefs.h >>conftest.$ac_ext
9113cat >>conftest.$ac_ext <<_ACEOF
9114/* end confdefs.h. */
9115$ac_includes_default
9116#include <$ac_header>
9117_ACEOF
9118rm -f conftest.$ac_objext
9119if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9120 (eval $ac_compile) 2>&5
9121 ac_status=$?
9122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123 (exit $ac_status); } &&
9124 { ac_try='test -s conftest.$ac_objext'
9125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9126 (eval $ac_try) 2>&5
9127 ac_status=$?
9128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129 (exit $ac_status); }; }; then
9130 ac_header_compiler=yes
9131else
9132 echo "$as_me: failed program was:" >&5
9133sed 's/^/| /' conftest.$ac_ext >&5
9134
9135ac_header_compiler=no
9136fi
9137rm -f conftest.$ac_objext conftest.$ac_ext
9138echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9139echo "${ECHO_T}$ac_header_compiler" >&6
9140
9141# Is the header present?
9142echo "$as_me:$LINENO: checking $ac_header presence" >&5
9143echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9144cat >conftest.$ac_ext <<_ACEOF
9145#line $LINENO "configure"
9146/* confdefs.h. */
9147_ACEOF
9148cat confdefs.h >>conftest.$ac_ext
9149cat >>conftest.$ac_ext <<_ACEOF
9150/* end confdefs.h. */
9151#include <$ac_header>
9152_ACEOF
9153if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9154 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9155 ac_status=$?
9156 grep -v '^ *+' conftest.er1 >conftest.err
9157 rm -f conftest.er1
9158 cat conftest.err >&5
9159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160 (exit $ac_status); } >/dev/null; then
9161 if test -s conftest.err; then
9162 ac_cpp_err=$ac_c_preproc_warn_flag
9163 else
9164 ac_cpp_err=
9165 fi
9166else
9167 ac_cpp_err=yes
9168fi
9169if test -z "$ac_cpp_err"; then
9170 ac_header_preproc=yes
9171else
9172 echo "$as_me: failed program was:" >&5
9173sed 's/^/| /' conftest.$ac_ext >&5
9174
9175 ac_header_preproc=no
9176fi
9177rm -f conftest.err conftest.$ac_ext
9178echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9179echo "${ECHO_T}$ac_header_preproc" >&6
9180
9181# So? What about this header?
9182case $ac_header_compiler:$ac_header_preproc in
9183 yes:no )
9184 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9185echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9186 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9187echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9188 (
9189 cat <<\_ASBOX
9190## ------------------------------------ ##
9191## Report this to bug-autoconf@gnu.org. ##
9192## ------------------------------------ ##
9193_ASBOX
9194 ) |
9195 sed "s/^/$as_me: WARNING: /" >&2
9196 ;;
9197 no:yes )
9198 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9199echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9200 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9201echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9202 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9203echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9204 (
9205 cat <<\_ASBOX
9206## ------------------------------------ ##
9207## Report this to bug-autoconf@gnu.org. ##
9208## ------------------------------------ ##
9209_ASBOX
9210 ) |
9211 sed "s/^/$as_me: WARNING: /" >&2
9212 ;;
9213esac
9214echo "$as_me:$LINENO: checking for $ac_header" >&5
9215echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9216if eval "test \"\${$as_ac_Header+set}\" = set"; then
9217 echo $ECHO_N "(cached) $ECHO_C" >&6
9218else
9219 eval "$as_ac_Header=$ac_header_preproc"
9220fi
9221echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9222echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9223
9224fi
9225if test `eval echo '${'$as_ac_Header'}'` = yes; then
9226 cat >>confdefs.h <<_ACEOF
9227#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9228_ACEOF
9229
9230fi
9231
9232done
9233
9234if test "$ac_cv_header_unicode_ubidi_h" = "yes"
9235then
9236 echo "$as_me:$LINENO: checking whether we can statically link the ICU libraries" >&5
9237echo $ECHO_N "checking whether we can statically link the ICU libraries... $ECHO_C" >&6
9238if test "${ac_cv_lib_icu+set}" = set; then
9239 echo $ECHO_N "(cached) $ECHO_C" >&6
9240else
9241 saved_libs="$LIBS"
9242 ICU_LIB_DIR="${ICU_LIB_DIR-/usr/lib}"
9243 ICUUC_LIB="${ICUUC_LIB-$ICU_LIB_DIR/libicuuc.a}"
9244 ICUDATA_LIB="${ICUDATA_LIB-$ICU_LIB_DIR/libicudata.a}"
9245 LIBS="$LIBS $ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
9246 cat >conftest.$ac_ext <<_ACEOF
9247#line $LINENO "configure"
9248/* confdefs.h. */
9249_ACEOF
9250cat confdefs.h >>conftest.$ac_ext
9251cat >>conftest.$ac_ext <<_ACEOF
9252/* end confdefs.h. */
9253#include <unicode/ubidi.h>
9254int
9255main ()
9256{
9257ubidi_open()
9258 ;
9259 return 0;
9260}
9261_ACEOF
9262rm -f conftest.$ac_objext conftest$ac_exeext
9263if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9264 (eval $ac_link) 2>&5
9265 ac_status=$?
9266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267 (exit $ac_status); } &&
9268 { ac_try='test -s conftest$ac_exeext'
9269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9270 (eval $ac_try) 2>&5
9271 ac_status=$?
9272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9273 (exit $ac_status); }; }; then
9274 ac_cv_lib_icu="yes"
9275else
9276 echo "$as_me: failed program was:" >&5
9277sed 's/^/| /' conftest.$ac_ext >&5
9278
9279ac_cv_lib_icu="no"
9280fi
9281rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9282 LIBS="$saved_libs"
9283fi
9284echo "$as_me:$LINENO: result: $ac_cv_lib_icu" >&5
9285echo "${ECHO_T}$ac_cv_lib_icu" >&6
9286 if test "$ac_cv_lib_icu" = "yes"
9287 then
9288
9289cat >>confdefs.h <<\_ACEOF
9290#define HAVE_ICU 1
9291_ACEOF
9292
9293 ICULIBS="$ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
9294
9295 fi
9296fi
9297
daa2886c 9298echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
f5818d2f
AJ
9299echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
9300if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
9301 echo $ECHO_N "(cached) $ECHO_C" >&6
563598d4 9302else
f5818d2f 9303 ac_check_lib_save_LIBS=$LIBS
8871a11b 9304LIBS="-lfreetype $X_LIBS $LIBS"
f5818d2f 9305cat >conftest.$ac_ext <<_ACEOF
daa2886c 9306#line $LINENO "configure"
e24bcc77
AJ
9307/* confdefs.h. */
9308_ACEOF
9309cat confdefs.h >>conftest.$ac_ext
9310cat >>conftest.$ac_ext <<_ACEOF
9311/* end confdefs.h. */
f5818d2f 9312
563598d4 9313/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
9314#ifdef __cplusplus
9315extern "C"
9316#endif
563598d4 9317/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
9318 builtin and then its argument prototype would still apply. */
9319char FT_Init_FreeType ();
9320int
9321main ()
9322{
9323FT_Init_FreeType ();
9324 ;
9325 return 0;
9326}
9327_ACEOF
9328rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 9329if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
9330 (eval $ac_link) 2>&5
9331 ac_status=$?
daa2886c 9332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
9333 (exit $ac_status); } &&
9334 { ac_try='test -s conftest$ac_exeext'
daa2886c 9335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
9336 (eval $ac_try) 2>&5
9337 ac_status=$?
daa2886c 9338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
9339 (exit $ac_status); }; }; then
9340 ac_cv_lib_freetype_FT_Init_FreeType=yes
9341else
9342 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
9343sed 's/^/| /' conftest.$ac_ext >&5
9344
f5818d2f
AJ
9345ac_cv_lib_freetype_FT_Init_FreeType=no
9346fi
9347rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9348LIBS=$ac_check_lib_save_LIBS
9349fi
daa2886c 9350echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
f5818d2f
AJ
9351echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
9352if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
563598d4
IP
9353 ft_lib=yes
9354else
f5818d2f 9355 ft_lib=no
563598d4
IP
9356fi
9357
9358if test "$ft_lib" = "no"
9359then
563598d4
IP
9360 FREETYPEINCL=""
9361 wine_cv_msg_freetype=no
9362else
9363 # Extract the first word of "freetype-config", so it can be a program name with args.
9364set dummy freetype-config; ac_word=$2
daa2886c 9365echo "$as_me:$LINENO: checking for $ac_word" >&5
f5818d2f
AJ
9366echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9367if test "${ac_cv_prog_ft_devel+set}" = set; then
9368 echo $ECHO_N "(cached) $ECHO_C" >&6
563598d4
IP
9369else
9370 if test -n "$ft_devel"; then
9371 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
9372else
daa2886c
AJ
9373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9374for as_dir in $PATH
9375do
9376 IFS=$as_save_IFS
9377 test -z "$as_dir" && as_dir=.
9378 for ac_exec_ext in '' $ac_executable_extensions; do
9379 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9380 ac_cv_prog_ft_devel="freetype-config"
9381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9382 break 2
9383 fi
9384done
f5818d2f
AJ
9385done
9386
563598d4
IP
9387 test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
9388fi
9389fi
f5818d2f 9390ft_devel=$ac_cv_prog_ft_devel
563598d4 9391if test -n "$ft_devel"; then
daa2886c 9392 echo "$as_me:$LINENO: result: $ft_devel" >&5
f5818d2f 9393echo "${ECHO_T}$ft_devel" >&6
563598d4 9394else
daa2886c 9395 echo "$as_me:$LINENO: result: no" >&5
f5818d2f 9396echo "${ECHO_T}no" >&6
563598d4
IP
9397fi
9398
d28955d8
MM
9399 if test "$ft_devel" = "no"
9400 then
9401 # Extract the first word of "freetype2-config", so it can be a program name with args.
9402set dummy freetype2-config; ac_word=$2
daa2886c 9403echo "$as_me:$LINENO: checking for $ac_word" >&5
f5818d2f
AJ
9404echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9405if test "${ac_cv_prog_ft_devel2+set}" = set; then
9406 echo $ECHO_N "(cached) $ECHO_C" >&6
d28955d8
MM
9407else
9408 if test -n "$ft_devel2"; then
9409 ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
9410else
daa2886c
AJ
9411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9412for as_dir in $PATH
9413do
9414 IFS=$as_save_IFS
9415 test -z "$as_dir" && as_dir=.
9416 for ac_exec_ext in '' $ac_executable_extensions; do
9417 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9418 ac_cv_prog_ft_devel2="freetype2-config"
9419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9420 break 2
9421 fi
9422done
f5818d2f
AJ
9423done
9424
d28955d8
MM
9425 test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
9426fi
9427fi
f5818d2f 9428ft_devel2=$ac_cv_prog_ft_devel2
d28955d8 9429if test -n "$ft_devel2"; then
daa2886c 9430 echo "$as_me:$LINENO: result: $ft_devel2" >&5
f5818d2f 9431echo "${ECHO_T}$ft_devel2" >&6
d28955d8 9432else
daa2886c 9433 echo "$as_me:$LINENO: result: no" >&5
f5818d2f 9434echo "${ECHO_T}no" >&6
d28955d8
MM
9435fi
9436
9437 if test "$ft_devel2" = "freetype2-config"
9438 then
9439 ft_devel=$ft_devel2
9440 fi
9441 fi
563598d4
IP
9442 if test "$ft_devel" = "no"
9443 then
563598d4
IP
9444 FREETYPEINCL=""
9445 wine_cv_msg_freetype=yes
9446 else
d28955d8 9447 FREETYPEINCL=`$ft_devel --cflags`
40432fef
IP
9448 ac_save_CPPFLAGS="$CPPFLAGS"
9449 CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
f5818d2f 9450
daa2886c
AJ
9451
9452
9453
9454
9455
9456
9457
e617a9c5
RK
9458
9459for ac_header in ft2build.h \
9460 freetype/freetype.h \
40432fef
IP
9461 freetype/ftglyph.h \
9462 freetype/tttables.h \
9463 freetype/ftnames.h \
9464 freetype/ftsnames.h \
814654ef 9465 freetype/ttnameid.h \
4e2024e8
HD
9466 freetype/ftoutln.h \
9467 freetype/internal/sfnt.h
40432fef 9468do
f5818d2f 9469as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9c269172 9470echo "$as_me:$LINENO: checking for $ac_header" >&5
f5818d2f
AJ
9471echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9472if eval "test \"\${$as_ac_Header+set}\" = set"; then
9473 echo $ECHO_N "(cached) $ECHO_C" >&6
9474else
9c269172 9475 cat >conftest.$ac_ext <<_ACEOF
daa2886c 9476#line $LINENO "configure"
e24bcc77
AJ
9477/* confdefs.h. */
9478_ACEOF
9479cat confdefs.h >>conftest.$ac_ext
9480cat >>conftest.$ac_ext <<_ACEOF
9481/* end confdefs.h. */
9c269172
RK
9482#if HAVE_FT2BUILD_H
9483 #include <ft2build.h>
9484 #endif
9485
daa2886c
AJ
9486#include <$ac_header>
9487_ACEOF
9488rm -f conftest.$ac_objext
9489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9490 (eval $ac_compile) 2>&5
9491 ac_status=$?
9492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9493 (exit $ac_status); } &&
9494 { ac_try='test -s conftest.$ac_objext'
9495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9496 (eval $ac_try) 2>&5
9497 ac_status=$?
9498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499 (exit $ac_status); }; }; then
9c269172 9500 eval "$as_ac_Header=yes"
daa2886c
AJ
9501else
9502 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
9503sed 's/^/| /' conftest.$ac_ext >&5
9504
9c269172 9505eval "$as_ac_Header=no"
daa2886c
AJ
9506fi
9507rm -f conftest.$ac_objext conftest.$ac_ext
40432fef 9508fi
daa2886c 9509echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
f5818d2f
AJ
9510echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9511if test `eval echo '${'$as_ac_Header'}'` = yes; then
daa2886c 9512 cat >>confdefs.h <<_ACEOF
f5818d2f 9513#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
daa2886c 9514_ACEOF
f5818d2f 9515
40432fef 9516fi
daa2886c 9517
40432fef
IP
9518done
9519
f5818d2f 9520 cat >conftest.$ac_ext <<_ACEOF
daa2886c 9521#line $LINENO "configure"
e24bcc77
AJ
9522/* confdefs.h. */
9523_ACEOF
9524cat confdefs.h >>conftest.$ac_ext
9525cat >>conftest.$ac_ext <<_ACEOF
9526/* end confdefs.h. */
18d7573c
AJ
9527#include <ft2build.h>
9528 #include <freetype/fttrigon.h>
f5818d2f 9529_ACEOF
daa2886c 9530if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
f5818d2f
AJ
9531 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9532 ac_status=$?
11af04e3 9533 grep -v '^ *+' conftest.er1 >conftest.err
f5818d2f
AJ
9534 rm -f conftest.er1
9535 cat conftest.err >&5
daa2886c 9536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
9537 (exit $ac_status); } >/dev/null; then
9538 if test -s conftest.err; then
9539 ac_cpp_err=$ac_c_preproc_warn_flag
9540 else
9541 ac_cpp_err=
9542 fi
9543else
9544 ac_cpp_err=yes
9545fi
9546if test -z "$ac_cpp_err"; then
9547
daa2886c 9548cat >>confdefs.h <<\_ACEOF
18d7573c 9549#define HAVE_FREETYPE_FTTRIGON_H 1
daa2886c 9550_ACEOF
18d7573c 9551
c1d38132 9552 wine_cv_fttrigon=yes
18d7573c 9553else
f5818d2f 9554 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
9555sed 's/^/| /' conftest.$ac_ext >&5
9556
c1d38132 9557 wine_cv_fttrigon=no
18d7573c 9558fi
f5818d2f 9559rm -f conftest.err conftest.$ac_ext
40432fef 9560 CPPFLAGS="$ac_save_CPPFLAGS"
c1d38132 9561 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
9b1d3726 9562 then
f5818d2f 9563
daa2886c 9564cat >>confdefs.h <<\_ACEOF
9b1d3726 9565#define HAVE_FREETYPE 1
daa2886c 9566_ACEOF
9b1d3726
HD
9567
9568 wine_cv_msg_freetype=no
9569 else
9b1d3726
HD
9570 FREETYPEINCL=""
9571 wine_cv_msg_freetype=yes
9572 fi
563598d4
IP
9573 fi
9574fi
9575
daa2886c
AJ
9576
9577echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
f5818d2f
AJ
9578echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6
9579if test "${ac_cv_c_ppdev+set}" = set; then
9580 echo $ECHO_N "(cached) $ECHO_C" >&6
6509fa93 9581else
f5818d2f 9582 cat >conftest.$ac_ext <<_ACEOF
daa2886c 9583#line $LINENO "configure"
e24bcc77
AJ
9584/* confdefs.h. */
9585_ACEOF
9586cat confdefs.h >>conftest.$ac_ext
9587cat >>conftest.$ac_ext <<_ACEOF
9588/* end confdefs.h. */
6509fa93 9589#include <linux/ppdev.h>
f5818d2f
AJ
9590int
9591main ()
9592{
6509fa93 9593ioctl (1,PPCLAIM,0)
f5818d2f
AJ
9594 ;
9595 return 0;
9596}
9597_ACEOF
9598rm -f conftest.$ac_objext
daa2886c 9599if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
9600 (eval $ac_compile) 2>&5
9601 ac_status=$?
daa2886c 9602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
9603 (exit $ac_status); } &&
9604 { ac_try='test -s conftest.$ac_objext'
daa2886c 9605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
9606 (eval $ac_try) 2>&5
9607 ac_status=$?
daa2886c 9608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 9609 (exit $ac_status); }; }; then
6509fa93
UB
9610 ac_cv_c_ppdev="yes"
9611else
f5818d2f 9612 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
9613sed 's/^/| /' conftest.$ac_ext >&5
9614
f5818d2f 9615ac_cv_c_ppdev="no"
6509fa93 9616fi
f5818d2f 9617rm -f conftest.$ac_objext conftest.$ac_ext
6509fa93 9618
f5818d2f 9619fi
daa2886c 9620echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
f5818d2f 9621echo "${ECHO_T}$ac_cv_c_ppdev" >&6
6509fa93
UB
9622if test "$ac_cv_c_ppdev" = "yes"
9623then
f5818d2f 9624
daa2886c 9625cat >>confdefs.h <<\_ACEOF
6509fa93 9626#define HAVE_PPDEV 1
daa2886c 9627_ACEOF
6509fa93
UB
9628
9629fi
9630
5ee517ac
MM
9631echo "$as_me:$LINENO: checking for va_copy" >&5
9632echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
9633if test "${ac_cv_c_va_copy+set}" = set; then
9634 echo $ECHO_N "(cached) $ECHO_C" >&6
9635else
9636 cat >conftest.$ac_ext <<_ACEOF
9637#line $LINENO "configure"
e24bcc77
AJ
9638/* confdefs.h. */
9639_ACEOF
9640cat confdefs.h >>conftest.$ac_ext
9641cat >>conftest.$ac_ext <<_ACEOF
9642/* end confdefs.h. */
5ee517ac 9643#include <stdarg.h>
5ee517ac
MM
9644int
9645main ()
9646{
9647va_list ap1, ap2;
9648 va_copy(ap1,ap2);
9649
9650 ;
9651 return 0;
9652}
9653_ACEOF
9654rm -f conftest.$ac_objext conftest$ac_exeext
9655if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9656 (eval $ac_link) 2>&5
9657 ac_status=$?
9658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9659 (exit $ac_status); } &&
9660 { ac_try='test -s conftest$ac_exeext'
9661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9662 (eval $ac_try) 2>&5
9663 ac_status=$?
9664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665 (exit $ac_status); }; }; then
9666 ac_cv_c_va_copy="yes"
9667else
9668 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
9669sed 's/^/| /' conftest.$ac_ext >&5
9670
5ee517ac
MM
9671ac_cv_c_va_copy="no"
9672fi
9673rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9674
9675fi
9676echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
9677echo "${ECHO_T}$ac_cv_c_va_copy" >&6
9678if test "$ac_cv_c_va_copy" = "yes"
9679then
9680
9681cat >>confdefs.h <<\_ACEOF
9682#define HAVE_VA_COPY 1
9683_ACEOF
9684
9685fi
9686echo "$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"
e24bcc77
AJ
9693/* confdefs.h. */
9694_ACEOF
9695cat confdefs.h >>conftest.$ac_ext
9696cat >>conftest.$ac_ext <<_ACEOF
9697/* end confdefs.h. */
5ee517ac 9698#include <stdarg.h>
5ee517ac
MM
9699int
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
e24bcc77
AJ
9724sed 's/^/| /' conftest.$ac_ext >&5
9725
5ee517ac
MM
9726ac_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
9741
b2d937d5
AJ
9742echo "$as_me:$LINENO: checking for sigsetjmp" >&5
9743echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
9744if test "${ac_cv_c_sigsetjmp+set}" = set; then
9745 echo $ECHO_N "(cached) $ECHO_C" >&6
9746else
9747 cat >conftest.$ac_ext <<_ACEOF
9748#line $LINENO "configure"
9749/* confdefs.h. */
9750_ACEOF
9751cat confdefs.h >>conftest.$ac_ext
9752cat >>conftest.$ac_ext <<_ACEOF
9753/* end confdefs.h. */
9754#include <setjmp.h>
9755int
9756main ()
9757{
9758sigjmp_buf buf;
9759 sigsetjmp( buf, 1 );
9760 siglongjmp( buf, 1 );
9761 ;
9762 return 0;
9763}
9764_ACEOF
9765rm -f conftest.$ac_objext conftest$ac_exeext
9766if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9767 (eval $ac_link) 2>&5
9768 ac_status=$?
9769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770 (exit $ac_status); } &&
9771 { ac_try='test -s conftest$ac_exeext'
9772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9773 (eval $ac_try) 2>&5
9774 ac_status=$?
9775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9776 (exit $ac_status); }; }; then
9777 ac_cv_c_sigsetjmp="yes"
9778else
9779 echo "$as_me: failed program was:" >&5
9780sed 's/^/| /' conftest.$ac_ext >&5
9781
9782ac_cv_c_sigsetjmp="no"
9783fi
9784rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9785
9786fi
9787echo "$as_me:$LINENO: result: $ac_cv_c_sigsetjmp" >&5
9788echo "${ECHO_T}$ac_cv_c_sigsetjmp" >&6
9789if test "$ac_cv_c_sigsetjmp" = "yes"
9790then
9791
9792cat >>confdefs.h <<\_ACEOF
9793#define HAVE_SIGSETJMP 1
9794_ACEOF
9795
9796fi
9797
80e34dbb
AJ
9798echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
9799echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6
9800if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
9801 echo $ECHO_N "(cached) $ECHO_C" >&6
9802else
9803 cat >conftest.$ac_ext <<_ACEOF
9804#line $LINENO "configure"
9805/* confdefs.h. */
9806_ACEOF
9807cat confdefs.h >>conftest.$ac_ext
9808cat >>conftest.$ac_ext <<_ACEOF
9809/* end confdefs.h. */
9810#define _GNU_SOURCE
9811#include <pthread.h>
9812
9813int
9814main ()
9815{
9816if ((pthread_rwlock_t *) 0)
9817 return 0;
9818if (sizeof (pthread_rwlock_t))
9819 return 0;
9820 ;
9821 return 0;
9822}
9823_ACEOF
9824rm -f conftest.$ac_objext
9825if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9826 (eval $ac_compile) 2>&5
9827 ac_status=$?
9828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829 (exit $ac_status); } &&
9830 { ac_try='test -s conftest.$ac_objext'
9831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9832 (eval $ac_try) 2>&5
9833 ac_status=$?
9834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835 (exit $ac_status); }; }; then
9836 ac_cv_type_pthread_rwlock_t=yes
9837else
9838 echo "$as_me: failed program was:" >&5
9839sed 's/^/| /' conftest.$ac_ext >&5
9840
9841ac_cv_type_pthread_rwlock_t=no
9842fi
9843rm -f conftest.$ac_objext conftest.$ac_ext
9844fi
9845echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
9846echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6
9847if test $ac_cv_type_pthread_rwlock_t = yes; then
9848
9849cat >>confdefs.h <<_ACEOF
9850#define HAVE_PTHREAD_RWLOCK_T 1
9851_ACEOF
9852
9853
9854fi
9855echo "$as_me:$LINENO: checking for pthread_rwlockattr_t" >&5
9856echo $ECHO_N "checking for pthread_rwlockattr_t... $ECHO_C" >&6
9857if test "${ac_cv_type_pthread_rwlockattr_t+set}" = set; then
9858 echo $ECHO_N "(cached) $ECHO_C" >&6
9859else
9860 cat >conftest.$ac_ext <<_ACEOF
9861#line $LINENO "configure"
9862/* confdefs.h. */
9863_ACEOF
9864cat confdefs.h >>conftest.$ac_ext
9865cat >>conftest.$ac_ext <<_ACEOF
9866/* end confdefs.h. */
9867#define _GNU_SOURCE
9868#include <pthread.h>
9869
9870int
9871main ()
9872{
9873if ((pthread_rwlockattr_t *) 0)
9874 return 0;
9875if (sizeof (pthread_rwlockattr_t))
9876 return 0;
9877 ;
9878 return 0;
9879}
9880_ACEOF
9881rm -f conftest.$ac_objext
9882if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9883 (eval $ac_compile) 2>&5
9884 ac_status=$?
9885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886 (exit $ac_status); } &&
9887 { ac_try='test -s conftest.$ac_objext'
9888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9889 (eval $ac_try) 2>&5
9890 ac_status=$?
9891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9892 (exit $ac_status); }; }; then
9893 ac_cv_type_pthread_rwlockattr_t=yes
9894else
9895 echo "$as_me: failed program was:" >&5
9896sed 's/^/| /' conftest.$ac_ext >&5
9897
9898ac_cv_type_pthread_rwlockattr_t=no
9899fi
9900rm -f conftest.$ac_objext conftest.$ac_ext
9901fi
9902echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlockattr_t" >&5
9903echo "${ECHO_T}$ac_cv_type_pthread_rwlockattr_t" >&6
9904if test $ac_cv_type_pthread_rwlockattr_t = yes; then
9905
9906cat >>confdefs.h <<_ACEOF
9907#define HAVE_PTHREAD_RWLOCKATTR_T 1
9908_ACEOF
9909
9910
9911fi
9912
9913
821ab863
AJ
9914ac_save_LIBS="$LIBS"
9915LIBS="$LIBS $LIBPTHREAD"
9916
9917for ac_func in pthread_getattr_np
9918do
9919as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9920echo "$as_me:$LINENO: checking for $ac_func" >&5
9921echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9922if eval "test \"\${$as_ac_var+set}\" = set"; then
9923 echo $ECHO_N "(cached) $ECHO_C" >&6
9924else
9925 cat >conftest.$ac_ext <<_ACEOF
9926#line $LINENO "configure"
9927/* confdefs.h. */
9928_ACEOF
9929cat confdefs.h >>conftest.$ac_ext
9930cat >>conftest.$ac_ext <<_ACEOF
9931/* end confdefs.h. */
9932/* System header to define __stub macros and hopefully few prototypes,
9933 which can conflict with char $ac_func (); below.
9934 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9935 <limits.h> exists even on freestanding compilers. */
9936#ifdef __STDC__
9937# include <limits.h>
9938#else
9939# include <assert.h>
9940#endif
9941/* Override any gcc2 internal prototype to avoid an error. */
9942#ifdef __cplusplus
9943extern "C"
9944{
9945#endif
9946/* We use char because int might match the return type of a gcc2
9947 builtin and then its argument prototype would still apply. */
9948char $ac_func ();
9949/* The GNU C library defines this for functions which it implements
9950 to always fail with ENOSYS. Some functions are actually named
9951 something starting with __ and the normal name is an alias. */
9952#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9953choke me
9954#else
9955char (*f) () = $ac_func;
9956#endif
9957#ifdef __cplusplus
9958}
9959#endif
9960
9961int
9962main ()
9963{
9964return f != $ac_func;
9965 ;
9966 return 0;
9967}
9968_ACEOF
9969rm -f conftest.$ac_objext conftest$ac_exeext
9970if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9971 (eval $ac_link) 2>&5
9972 ac_status=$?
9973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974 (exit $ac_status); } &&
9975 { ac_try='test -s conftest$ac_exeext'
9976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9977 (eval $ac_try) 2>&5
9978 ac_status=$?
9979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980 (exit $ac_status); }; }; then
9981 eval "$as_ac_var=yes"
9982else
9983 echo "$as_me: failed program was:" >&5
9984sed 's/^/| /' conftest.$ac_ext >&5
9985
9986eval "$as_ac_var=no"
9987fi
9988rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9989fi
9990echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9991echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9992if test `eval echo '${'$as_ac_var'}'` = yes; then
9993 cat >>confdefs.h <<_ACEOF
9994#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9995_ACEOF
9996
9997fi
9998done
9999
10000LIBS="$ac_save_LIBS"
10001
daa2886c
AJ
10002
10003
10004
10005for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h
10006do
10007as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10008if eval "test \"\${$as_ac_Header+set}\" = set"; then
10009 echo "$as_me:$LINENO: checking for $ac_header" >&5
10010echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10011if eval "test \"\${$as_ac_Header+set}\" = set"; then
10012 echo $ECHO_N "(cached) $ECHO_C" >&6
10013fi
10014echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10015echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10016else
10017 # Is the header compilable?
10018echo "$as_me:$LINENO: checking $ac_header usability" >&5
10019echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10020cat >conftest.$ac_ext <<_ACEOF
10021#line $LINENO "configure"
e24bcc77
AJ
10022/* confdefs.h. */
10023_ACEOF
10024cat confdefs.h >>conftest.$ac_ext
10025cat >>conftest.$ac_ext <<_ACEOF
10026/* end confdefs.h. */
daa2886c
AJ
10027$ac_includes_default
10028#include <$ac_header>
10029_ACEOF
10030rm -f conftest.$ac_objext
10031if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10032 (eval $ac_compile) 2>&5
10033 ac_status=$?
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); } &&
10036 { ac_try='test -s conftest.$ac_objext'
10037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10038 (eval $ac_try) 2>&5
10039 ac_status=$?
10040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10041 (exit $ac_status); }; }; then
10042 ac_header_compiler=yes
10043else
10044 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
10045sed 's/^/| /' conftest.$ac_ext >&5
10046
daa2886c
AJ
10047ac_header_compiler=no
10048fi
10049rm -f conftest.$ac_objext conftest.$ac_ext
10050echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10051echo "${ECHO_T}$ac_header_compiler" >&6
10052
10053# Is the header present?
10054echo "$as_me:$LINENO: checking $ac_header presence" >&5
10055echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10056cat >conftest.$ac_ext <<_ACEOF
10057#line $LINENO "configure"
e24bcc77
AJ
10058/* confdefs.h. */
10059_ACEOF
10060cat confdefs.h >>conftest.$ac_ext
10061cat >>conftest.$ac_ext <<_ACEOF
10062/* end confdefs.h. */
f5818d2f
AJ
10063#include <$ac_header>
10064_ACEOF
daa2886c 10065if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
f5818d2f
AJ
10066 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10067 ac_status=$?
11af04e3 10068 grep -v '^ *+' conftest.er1 >conftest.err
f5818d2f
AJ
10069 rm -f conftest.er1
10070 cat conftest.err >&5
daa2886c 10071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
10072 (exit $ac_status); } >/dev/null; then
10073 if test -s conftest.err; then
10074 ac_cpp_err=$ac_c_preproc_warn_flag
10075 else
10076 ac_cpp_err=
10077 fi
10078else
10079 ac_cpp_err=yes
10080fi
10081if test -z "$ac_cpp_err"; then
daa2886c 10082 ac_header_preproc=yes
f5818d2f
AJ
10083else
10084 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
10085sed 's/^/| /' conftest.$ac_ext >&5
10086
daa2886c 10087 ac_header_preproc=no
0623a6f3 10088fi
f5818d2f 10089rm -f conftest.err conftest.$ac_ext
daa2886c
AJ
10090echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10091echo "${ECHO_T}$ac_header_preproc" >&6
10092
10093# So? What about this header?
10094case $ac_header_compiler:$ac_header_preproc in
10095 yes:no )
10096 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10097echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10098 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
e24bcc77
AJ
10099echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10100 (
10101 cat <<\_ASBOX
10102## ------------------------------------ ##
10103## Report this to bug-autoconf@gnu.org. ##
10104## ------------------------------------ ##
10105_ASBOX
10106 ) |
10107 sed "s/^/$as_me: WARNING: /" >&2
10108 ;;
daa2886c
AJ
10109 no:yes )
10110 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10111echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10112 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10113echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10114 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
e24bcc77
AJ
10115echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10116 (
10117 cat <<\_ASBOX
10118## ------------------------------------ ##
10119## Report this to bug-autoconf@gnu.org. ##
10120## ------------------------------------ ##
10121_ASBOX
10122 ) |
10123 sed "s/^/$as_me: WARNING: /" >&2
10124 ;;
daa2886c
AJ
10125esac
10126echo "$as_me:$LINENO: checking for $ac_header" >&5
10127echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10128if eval "test \"\${$as_ac_Header+set}\" = set"; then
10129 echo $ECHO_N "(cached) $ECHO_C" >&6
10130else
10131 eval "$as_ac_Header=$ac_header_preproc"
0623a6f3 10132fi
daa2886c 10133echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
f5818d2f 10134echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
daa2886c
AJ
10135
10136fi
f5818d2f 10137if test `eval echo '${'$as_ac_Header'}'` = yes; then
daa2886c 10138 cat >>confdefs.h <<_ACEOF
f5818d2f 10139#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
daa2886c 10140_ACEOF
ecc7669d 10141 break
c7c217b3 10142fi
daa2886c 10143
c7c217b3 10144done
0623a6f3 10145
daa2886c
AJ
10146
10147echo "$as_me:$LINENO: checking for Open Sound System" >&5
f5818d2f
AJ
10148echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6
10149if test "${ac_cv_c_opensoundsystem+set}" = set; then
10150 echo $ECHO_N "(cached) $ECHO_C" >&6
a69b88b2 10151else
f5818d2f 10152 cat >conftest.$ac_ext <<_ACEOF
daa2886c 10153#line $LINENO "configure"
e24bcc77
AJ
10154/* confdefs.h. */
10155_ACEOF
10156cat confdefs.h >>conftest.$ac_ext
10157cat >>conftest.$ac_ext <<_ACEOF
10158/* end confdefs.h. */
c7c217b3 10159
ecc7669d 10160 #if defined(HAVE_SYS_SOUNDCARD_H)
c7c217b3 10161 #include <sys/soundcard.h>
ecc7669d 10162 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
c7c217b3 10163 #include <machine/soundcard.h>
ecc7669d
TV
10164 #elif defined(HAVE_SOUNDCARD_H)
10165 #include <soundcard.h>
c7c217b3 10166 #endif
a69b88b2 10167
f5818d2f
AJ
10168int
10169main ()
10170{
c7c217b3 10171
daa2886c 10172
a69b88b2
AJ
10173/* check for one of the Open Sound System specific SNDCTL_ defines */
10174#if !defined(SNDCTL_DSP_STEREO)
10175#error No open sound system
10176#endif
10177
f5818d2f
AJ
10178 ;
10179 return 0;
10180}
10181_ACEOF
10182rm -f conftest.$ac_objext
daa2886c 10183if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
10184 (eval $ac_compile) 2>&5
10185 ac_status=$?
daa2886c 10186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
10187 (exit $ac_status); } &&
10188 { ac_try='test -s conftest.$ac_objext'
daa2886c 10189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
10190 (eval $ac_try) 2>&5
10191 ac_status=$?
daa2886c 10192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 10193 (exit $ac_status); }; }; then
c7c217b3 10194 ac_cv_c_opensoundsystem="yes"
a69b88b2 10195else
f5818d2f 10196 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
10197sed 's/^/| /' conftest.$ac_ext >&5
10198
f5818d2f 10199ac_cv_c_opensoundsystem="no"
a69b88b2 10200fi
f5818d2f 10201rm -f conftest.$ac_objext conftest.$ac_ext
a69b88b2 10202fi
daa2886c 10203echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem" >&5
f5818d2f 10204echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6
0623a6f3 10205
dadf78ff
AJ
10206if test "$ac_cv_c_opensoundsystem" = "yes"
10207then
f5818d2f 10208
daa2886c 10209cat >>confdefs.h <<\_ACEOF
dadf78ff 10210#define HAVE_OSS 1
daa2886c 10211_ACEOF
dadf78ff
AJ
10212
10213fi
10214
daa2886c 10215echo "$as_me:$LINENO: checking for Open Sound System/MIDI interface" >&5
f5818d2f
AJ
10216echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6
10217if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then
10218 echo $ECHO_N "(cached) $ECHO_C" >&6
338d3b2d 10219else
f5818d2f 10220 cat >conftest.$ac_ext <<_ACEOF
daa2886c 10221#line $LINENO "configure"
e24bcc77
AJ
10222/* confdefs.h. */
10223_ACEOF
10224cat confdefs.h >>conftest.$ac_ext
10225cat >>conftest.$ac_ext <<_ACEOF
10226/* end confdefs.h. */
338d3b2d
EP
10227
10228 #if defined(HAVE_SYS_SOUNDCARD_H)
10229 #include <sys/soundcard.h>
10230 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
10231 #include <machine/soundcard.h>
10232 #elif defined(HAVE_SOUNDCARD_H)
10233 #include <soundcard.h>
10234 #endif
338d3b2d 10235
f5818d2f
AJ
10236int
10237main ()
10238{
338d3b2d 10239
daa2886c 10240
338d3b2d
EP
10241/* check for one of the Open Sound System specific SNDCTL_SEQ defines */
10242#if !defined(SNDCTL_SEQ_SYNC)
10243#error No open sound system MIDI interface
10244#endif
10245
f5818d2f
AJ
10246 ;
10247 return 0;
10248}
10249_ACEOF
10250rm -f conftest.$ac_objext
daa2886c 10251if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
10252 (eval $ac_compile) 2>&5
10253 ac_status=$?
daa2886c 10254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
10255 (exit $ac_status); } &&
10256 { ac_try='test -s conftest.$ac_objext'
daa2886c 10257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
10258 (eval $ac_try) 2>&5
10259 ac_status=$?
daa2886c 10260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 10261 (exit $ac_status); }; }; then
338d3b2d
EP
10262 ac_cv_c_opensoundsystem_midi="yes"
10263else
f5818d2f 10264 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
10265sed 's/^/| /' conftest.$ac_ext >&5
10266
f5818d2f 10267ac_cv_c_opensoundsystem_midi="no"
338d3b2d 10268fi
f5818d2f 10269rm -f conftest.$ac_objext conftest.$ac_ext
338d3b2d 10270fi
daa2886c 10271echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem_midi" >&5
f5818d2f 10272echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6
338d3b2d
EP
10273
10274if test "$ac_cv_c_opensoundsystem_midi" = "yes"
10275then
f5818d2f 10276
daa2886c 10277cat >>confdefs.h <<\_ACEOF
338d3b2d 10278#define HAVE_OSS_MIDI 1
daa2886c 10279_ACEOF
338d3b2d
EP
10280
10281fi
10282
9b0ba7ca
CM
10283# Extract the first word of "artsc-config", so it can be a program name with args.
10284set dummy artsc-config; ac_word=$2
daa2886c 10285echo "$as_me:$LINENO: checking for $ac_word" >&5
9b0ba7ca
CM
10286echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10287if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
10288 echo $ECHO_N "(cached) $ECHO_C" >&6
10289else
10290 case $ARTSCCONFIG in
10291 [\\/]* | ?:[\\/]*)
10292 ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
10293 ;;
10294 *)
daa2886c
AJ
10295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10296for as_dir in $PATH
10297do
10298 IFS=$as_save_IFS
10299 test -z "$as_dir" && as_dir=.
10300 for ac_exec_ext in '' $ac_executable_extensions; do
10301 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10302 ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
10303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10304 break 2
10305 fi
10306done
9b0ba7ca
CM
10307done
10308
10309 ;;
10310esac
10311fi
10312ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
10313
10314if test -n "$ARTSCCONFIG"; then
daa2886c 10315 echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
9b0ba7ca
CM
10316echo "${ECHO_T}$ARTSCCONFIG" >&6
10317else
daa2886c 10318 echo "$as_me:$LINENO: result: no" >&5
9b0ba7ca
CM
10319echo "${ECHO_T}no" >&6
10320fi
10321
daa2886c 10322echo "$as_me:$LINENO: checking for aRts Sound server" >&5
9b0ba7ca
CM
10323echo $ECHO_N "checking for aRts Sound server... $ECHO_C" >&6
10324if test "${ac_cv_c_artsserver+set}" = set; then
10325 echo $ECHO_N "(cached) $ECHO_C" >&6
10326else
10327 if test x$ARTSCCONFIG = x -o x$ARTSCCONFIG = x'"$ARTSCCONFIG"';
10328 then
10329 ac_cv_c_artsserver=no
10330 else
10331 ARTSC_CFLAGS=`$ARTSCCONFIG --cflags`
10332 ARTSC_LIBS=`$ARTSCCONFIG --libs`
10333 ac_cv_c_artsserver=no
10334 save_CFLAGS="$CFLAGS"
10335 CFLAGS="$CFLAGS $ARTSC_CFLAGS"
10336 cat >conftest.$ac_ext <<_ACEOF
daa2886c 10337#line $LINENO "configure"
e24bcc77
AJ
10338/* confdefs.h. */
10339_ACEOF
10340cat confdefs.h >>conftest.$ac_ext
10341cat >>conftest.$ac_ext <<_ACEOF
10342/* end confdefs.h. */
9b0ba7ca
CM
10343
10344 #include <artsc.h>
10345
10346int
10347main ()
10348{
10349
10350 arts_stream_t stream;
10351
10352 ;
10353 return 0;
10354}
10355_ACEOF
10356rm -f conftest.$ac_objext
daa2886c 10357if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9b0ba7ca
CM
10358 (eval $ac_compile) 2>&5
10359 ac_status=$?
daa2886c 10360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9b0ba7ca
CM
10361 (exit $ac_status); } &&
10362 { ac_try='test -s conftest.$ac_objext'
daa2886c 10363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9b0ba7ca
CM
10364 (eval $ac_try) 2>&5
10365 ac_status=$?
daa2886c 10366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9b0ba7ca
CM
10367 (exit $ac_status); }; }; then
10368
10369 ac_cv_c_artsserver=yes
10370
10371else
10372 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
10373sed 's/^/| /' conftest.$ac_ext >&5
10374
9b0ba7ca
CM
10375fi
10376rm -f conftest.$ac_objext conftest.$ac_ext
10377 CFLAGS="$save_CFLAGS"
10378 fi
10379fi
daa2886c 10380echo "$as_me:$LINENO: result: $ac_cv_c_artsserver" >&5
9b0ba7ca
CM
10381echo "${ECHO_T}$ac_cv_c_artsserver" >&6
10382
10383if test "$ac_cv_c_artsserver" = "yes"
10384then
10385 ARTSLIBS=$ARTSC_LIBS
10386
10387 ARTSINCL=$ARTSC_CFLAGS
10388
daa2886c
AJ
10389
10390
10391cat >>confdefs.h <<\_ACEOF
9b0ba7ca 10392#define HAVE_ARTS 1
daa2886c 10393_ACEOF
9b0ba7ca
CM
10394
10395fi
10396
f92b7c06
AJ
10397ALSALIBS=""
10398
10399
0e79a412
MP
10400
10401for ac_header in alsa/asoundlib.h sys/asoundlib.h
f92b7c06
AJ
10402do
10403as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10404if eval "test \"\${$as_ac_Header+set}\" = set"; then
10405 echo "$as_me:$LINENO: checking for $ac_header" >&5
10406echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10407if eval "test \"\${$as_ac_Header+set}\" = set"; then
10408 echo $ECHO_N "(cached) $ECHO_C" >&6
10409fi
10410echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10411echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10412else
10413 # Is the header compilable?
10414echo "$as_me:$LINENO: checking $ac_header usability" >&5
10415echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10416cat >conftest.$ac_ext <<_ACEOF
10417#line $LINENO "configure"
e24bcc77
AJ
10418/* confdefs.h. */
10419_ACEOF
10420cat confdefs.h >>conftest.$ac_ext
10421cat >>conftest.$ac_ext <<_ACEOF
10422/* end confdefs.h. */
f92b7c06
AJ
10423$ac_includes_default
10424#include <$ac_header>
10425_ACEOF
10426rm -f conftest.$ac_objext
10427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10428 (eval $ac_compile) 2>&5
10429 ac_status=$?
10430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431 (exit $ac_status); } &&
10432 { ac_try='test -s conftest.$ac_objext'
10433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10434 (eval $ac_try) 2>&5
10435 ac_status=$?
10436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10437 (exit $ac_status); }; }; then
10438 ac_header_compiler=yes
10439else
10440 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
10441sed 's/^/| /' conftest.$ac_ext >&5
10442
f92b7c06
AJ
10443ac_header_compiler=no
10444fi
10445rm -f conftest.$ac_objext conftest.$ac_ext
10446echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10447echo "${ECHO_T}$ac_header_compiler" >&6
10448
10449# Is the header present?
10450echo "$as_me:$LINENO: checking $ac_header presence" >&5
10451echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10452cat >conftest.$ac_ext <<_ACEOF
10453#line $LINENO "configure"
e24bcc77
AJ
10454/* confdefs.h. */
10455_ACEOF
10456cat confdefs.h >>conftest.$ac_ext
10457cat >>conftest.$ac_ext <<_ACEOF
10458/* end confdefs.h. */
f92b7c06
AJ
10459#include <$ac_header>
10460_ACEOF
10461if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10462 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10463 ac_status=$?
11af04e3 10464 grep -v '^ *+' conftest.er1 >conftest.err
f92b7c06
AJ
10465 rm -f conftest.er1
10466 cat conftest.err >&5
10467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10468 (exit $ac_status); } >/dev/null; then
10469 if test -s conftest.err; then
10470 ac_cpp_err=$ac_c_preproc_warn_flag
10471 else
10472 ac_cpp_err=
10473 fi
10474else
10475 ac_cpp_err=yes
10476fi
10477if test -z "$ac_cpp_err"; then
10478 ac_header_preproc=yes
10479else
10480 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
10481sed 's/^/| /' conftest.$ac_ext >&5
10482
f92b7c06
AJ
10483 ac_header_preproc=no
10484fi
10485rm -f conftest.err conftest.$ac_ext
10486echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10487echo "${ECHO_T}$ac_header_preproc" >&6
10488
10489# So? What about this header?
10490case $ac_header_compiler:$ac_header_preproc in
10491 yes:no )
10492 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10493echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10494 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
e24bcc77
AJ
10495echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10496 (
10497 cat <<\_ASBOX
10498## ------------------------------------ ##
10499## Report this to bug-autoconf@gnu.org. ##
10500## ------------------------------------ ##
10501_ASBOX
10502 ) |
10503 sed "s/^/$as_me: WARNING: /" >&2
10504 ;;
f92b7c06
AJ
10505 no:yes )
10506 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10507echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10508 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10509echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10510 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
e24bcc77
AJ
10511echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10512 (
10513 cat <<\_ASBOX
10514## ------------------------------------ ##
10515## Report this to bug-autoconf@gnu.org. ##
10516## ------------------------------------ ##
10517_ASBOX
10518 ) |
10519 sed "s/^/$as_me: WARNING: /" >&2
10520 ;;
f92b7c06
AJ
10521esac
10522echo "$as_me:$LINENO: checking for $ac_header" >&5
10523echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10524if eval "test \"\${$as_ac_Header+set}\" = set"; then
10525 echo $ECHO_N "(cached) $ECHO_C" >&6
10526else
10527 eval "$as_ac_Header=$ac_header_preproc"
10528fi
10529echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10530echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10531
10532fi
10533if test `eval echo '${'$as_ac_Header'}'` = yes; then
10534 cat >>confdefs.h <<_ACEOF
10535#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10536_ACEOF
0e79a412 10537 break
f92b7c06
AJ
10538fi
10539
10540done
10541
0e79a412 10542if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
f92b7c06
AJ
10543then
10544 echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
10545echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6
10546if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
10547 echo $ECHO_N "(cached) $ECHO_C" >&6
10548else
10549 ac_check_lib_save_LIBS=$LIBS
10550LIBS="-lasound $LIBS"
10551cat >conftest.$ac_ext <<_ACEOF
10552#line $LINENO "configure"
e24bcc77
AJ
10553/* confdefs.h. */
10554_ACEOF
10555cat confdefs.h >>conftest.$ac_ext
10556cat >>conftest.$ac_ext <<_ACEOF
10557/* end confdefs.h. */
f92b7c06
AJ
10558
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 snd_pcm_open ();
f92b7c06
AJ
10566int
10567main ()
10568{
10569snd_pcm_open ();
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_asound_snd_pcm_open=yes
10587else
10588 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
10589sed 's/^/| /' conftest.$ac_ext >&5
10590
f92b7c06
AJ
10591ac_cv_lib_asound_snd_pcm_open=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_asound_snd_pcm_open" >&5
10597echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6
10598if test $ac_cv_lib_asound_snd_pcm_open = yes; then
10599
10600cat >>confdefs.h <<\_ACEOF
10601#define HAVE_ALSA 1
10602_ACEOF
10603
10604 ALSALIBS="-lasound"
10605fi
10606
10607fi
10608
daa2886c 10609
2a91e3f9
RL
10610AUDIOIOLIBS=""
10611
10612
10613for ac_header in libaudioio.h
10614do
10615as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10616if eval "test \"\${$as_ac_Header+set}\" = set"; then
10617 echo "$as_me:$LINENO: checking for $ac_header" >&5
10618echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10619if eval "test \"\${$as_ac_Header+set}\" = set"; then
10620 echo $ECHO_N "(cached) $ECHO_C" >&6
10621fi
10622echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10623echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10624else
10625 # Is the header compilable?
10626echo "$as_me:$LINENO: checking $ac_header usability" >&5
10627echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10628cat >conftest.$ac_ext <<_ACEOF
10629#line $LINENO "configure"
e24bcc77
AJ
10630/* confdefs.h. */
10631_ACEOF
10632cat confdefs.h >>conftest.$ac_ext
10633cat >>conftest.$ac_ext <<_ACEOF
10634/* end confdefs.h. */
2a91e3f9
RL
10635$ac_includes_default
10636#include <$ac_header>
10637_ACEOF
10638rm -f conftest.$ac_objext
10639if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10640 (eval $ac_compile) 2>&5
10641 ac_status=$?
10642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643 (exit $ac_status); } &&
10644 { ac_try='test -s conftest.$ac_objext'
10645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10646 (eval $ac_try) 2>&5
10647 ac_status=$?
10648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10649 (exit $ac_status); }; }; then
10650 ac_header_compiler=yes
10651else
10652 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
10653sed 's/^/| /' conftest.$ac_ext >&5
10654
2a91e3f9
RL
10655ac_header_compiler=no
10656fi
10657rm -f conftest.$ac_objext conftest.$ac_ext
10658echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10659echo "${ECHO_T}$ac_header_compiler" >&6
10660
10661# Is the header present?
10662echo "$as_me:$LINENO: checking $ac_header presence" >&5
10663echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10664cat >conftest.$ac_ext <<_ACEOF
10665#line $LINENO "configure"
e24bcc77
AJ
10666/* confdefs.h. */
10667_ACEOF
10668cat confdefs.h >>conftest.$ac_ext
10669cat >>conftest.$ac_ext <<_ACEOF
10670/* end confdefs.h. */
2a91e3f9
RL
10671#include <$ac_header>
10672_ACEOF
10673if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10674 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10675 ac_status=$?
11af04e3 10676 grep -v '^ *+' conftest.er1 >conftest.err
2a91e3f9
RL
10677 rm -f conftest.er1
10678 cat conftest.err >&5
10679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680 (exit $ac_status); } >/dev/null; then
10681 if test -s conftest.err; then
10682 ac_cpp_err=$ac_c_preproc_warn_flag
10683 else
10684 ac_cpp_err=
10685 fi
10686else
10687 ac_cpp_err=yes
10688fi
10689if test -z "$ac_cpp_err"; then
10690 ac_header_preproc=yes
10691else
10692 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
10693sed 's/^/| /' conftest.$ac_ext >&5
10694
2a91e3f9
RL
10695 ac_header_preproc=no
10696fi
10697rm -f conftest.err conftest.$ac_ext
10698echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10699echo "${ECHO_T}$ac_header_preproc" >&6
10700
10701# So? What about this header?
10702case $ac_header_compiler:$ac_header_preproc in
10703 yes:no )
10704 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10705echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10706 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
e24bcc77
AJ
10707echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10708 (
10709 cat <<\_ASBOX
10710## ------------------------------------ ##
10711## Report this to bug-autoconf@gnu.org. ##
10712## ------------------------------------ ##
10713_ASBOX
10714 ) |
10715 sed "s/^/$as_me: WARNING: /" >&2
10716 ;;
2a91e3f9
RL
10717 no:yes )
10718 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10719echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10720 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10721echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10722 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
e24bcc77
AJ
10723echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10724 (
10725 cat <<\_ASBOX
10726## ------------------------------------ ##
10727## Report this to bug-autoconf@gnu.org. ##
10728## ------------------------------------ ##
10729_ASBOX
10730 ) |
10731 sed "s/^/$as_me: WARNING: /" >&2
10732 ;;
2a91e3f9
RL
10733esac
10734echo "$as_me:$LINENO: checking for $ac_header" >&5
10735echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10736if eval "test \"\${$as_ac_Header+set}\" = set"; then
10737 echo $ECHO_N "(cached) $ECHO_C" >&6
10738else
10739 eval "$as_ac_Header=$ac_header_preproc"
10740fi
10741echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10742echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10743
10744fi
10745if test `eval echo '${'$as_ac_Header'}'` = yes; then
10746 cat >>confdefs.h <<_ACEOF
10747#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10748_ACEOF
10749 echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
10750echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6
10751if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
10752 echo $ECHO_N "(cached) $ECHO_C" >&6
10753else
10754 ac_check_lib_save_LIBS=$LIBS
10755LIBS="-laudioio $LIBS"
10756cat >conftest.$ac_ext <<_ACEOF
10757#line $LINENO "configure"
e24bcc77
AJ
10758/* confdefs.h. */
10759_ACEOF
10760cat confdefs.h >>conftest.$ac_ext
10761cat >>conftest.$ac_ext <<_ACEOF
10762/* end confdefs.h. */
2a91e3f9
RL
10763
10764/* Override any gcc2 internal prototype to avoid an error. */
10765#ifdef __cplusplus
10766extern "C"
10767#endif
10768/* We use char because int might match the return type of a gcc2
10769 builtin and then its argument prototype would still apply. */
10770char AudioIOGetVersion ();
2a91e3f9
RL
10771int
10772main ()
10773{
10774AudioIOGetVersion ();
10775 ;
10776 return 0;
10777}
10778_ACEOF
10779rm -f conftest.$ac_objext conftest$ac_exeext
10780if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10781 (eval $ac_link) 2>&5
10782 ac_status=$?
10783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10784 (exit $ac_status); } &&
10785 { ac_try='test -s conftest$ac_exeext'
10786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10787 (eval $ac_try) 2>&5
10788 ac_status=$?
10789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10790 (exit $ac_status); }; }; then
10791 ac_cv_lib_audioio_AudioIOGetVersion=yes
10792else
10793 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
10794sed 's/^/| /' conftest.$ac_ext >&5
10795
2a91e3f9
RL
10796ac_cv_lib_audioio_AudioIOGetVersion=no
10797fi
10798rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10799LIBS=$ac_check_lib_save_LIBS
10800fi
10801echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
10802echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6
10803if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
10804 AUDIOIOLIBS="-laudioio"
10805
10806cat >>confdefs.h <<\_ACEOF
10807#define HAVE_LIBAUDIOIO 1
10808_ACEOF
10809
10810fi
10811
10812fi
10813
10814done
10815
10816
10817
00fdd9fc
AJ
10818
10819for ac_header in capi20.h
10820do
10821as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10822if eval "test \"\${$as_ac_Header+set}\" = set"; then
10823 echo "$as_me:$LINENO: checking for $ac_header" >&5
10824echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10825if eval "test \"\${$as_ac_Header+set}\" = set"; then
10826 echo $ECHO_N "(cached) $ECHO_C" >&6
10827fi
10828echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10829echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10830else
10831 # Is the header compilable?
10832echo "$as_me:$LINENO: checking $ac_header usability" >&5
10833echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10834cat >conftest.$ac_ext <<_ACEOF
10835#line $LINENO "configure"
10836/* confdefs.h. */
10837_ACEOF
10838cat confdefs.h >>conftest.$ac_ext
10839cat >>conftest.$ac_ext <<_ACEOF
10840/* end confdefs.h. */
10841$ac_includes_default
10842#include <$ac_header>
10843_ACEOF
10844rm -f conftest.$ac_objext
10845if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10846 (eval $ac_compile) 2>&5
10847 ac_status=$?
10848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10849 (exit $ac_status); } &&
10850 { ac_try='test -s conftest.$ac_objext'
10851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10852 (eval $ac_try) 2>&5
10853 ac_status=$?
10854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10855 (exit $ac_status); }; }; then
10856 ac_header_compiler=yes
10857else
10858 echo "$as_me: failed program was:" >&5
10859sed 's/^/| /' conftest.$ac_ext >&5
10860
10861ac_header_compiler=no
10862fi
10863rm -f conftest.$ac_objext conftest.$ac_ext
10864echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10865echo "${ECHO_T}$ac_header_compiler" >&6
10866
10867# Is the header present?
10868echo "$as_me:$LINENO: checking $ac_header presence" >&5
10869echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10870cat >conftest.$ac_ext <<_ACEOF
10871#line $LINENO "configure"
10872/* confdefs.h. */
10873_ACEOF
10874cat confdefs.h >>conftest.$ac_ext
10875cat >>conftest.$ac_ext <<_ACEOF
10876/* end confdefs.h. */
10877#include <$ac_header>
10878_ACEOF
10879if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10880 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10881 ac_status=$?
10882 grep -v '^ *+' conftest.er1 >conftest.err
10883 rm -f conftest.er1
10884 cat conftest.err >&5
10885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886 (exit $ac_status); } >/dev/null; then
10887 if test -s conftest.err; then
10888 ac_cpp_err=$ac_c_preproc_warn_flag
10889 else
10890 ac_cpp_err=
10891 fi
10892else
10893 ac_cpp_err=yes
10894fi
10895if test -z "$ac_cpp_err"; then
10896 ac_header_preproc=yes
10897else
10898 echo "$as_me: failed program was:" >&5
10899sed 's/^/| /' conftest.$ac_ext >&5
10900
10901 ac_header_preproc=no
10902fi
10903rm -f conftest.err conftest.$ac_ext
10904echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10905echo "${ECHO_T}$ac_header_preproc" >&6
10906
10907# So? What about this header?
10908case $ac_header_compiler:$ac_header_preproc in
10909 yes:no )
10910 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10911echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10912 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10913echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10914 (
10915 cat <<\_ASBOX
10916## ------------------------------------ ##
10917## Report this to bug-autoconf@gnu.org. ##
10918## ------------------------------------ ##
10919_ASBOX
10920 ) |
10921 sed "s/^/$as_me: WARNING: /" >&2
10922 ;;
10923 no:yes )
10924 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10925echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10926 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10927echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10928 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10929echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10930 (
10931 cat <<\_ASBOX
10932## ------------------------------------ ##
10933## Report this to bug-autoconf@gnu.org. ##
10934## ------------------------------------ ##
10935_ASBOX
10936 ) |
10937 sed "s/^/$as_me: WARNING: /" >&2
10938 ;;
10939esac
10940echo "$as_me:$LINENO: checking for $ac_header" >&5
10941echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10942if eval "test \"\${$as_ac_Header+set}\" = set"; then
10943 echo $ECHO_N "(cached) $ECHO_C" >&6
10944else
10945 eval "$as_ac_Header=$ac_header_preproc"
10946fi
10947echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10948echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10949
10950fi
10951if test `eval echo '${'$as_ac_Header'}'` = yes; then
10952 cat >>confdefs.h <<_ACEOF
10953#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10954_ACEOF
10955
10956
10957for ac_header in linux/capi.h
10958do
10959as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10960if eval "test \"\${$as_ac_Header+set}\" = set"; then
10961 echo "$as_me:$LINENO: checking for $ac_header" >&5
10962echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10963if eval "test \"\${$as_ac_Header+set}\" = set"; then
10964 echo $ECHO_N "(cached) $ECHO_C" >&6
10965fi
10966echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10967echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10968else
10969 # Is the header compilable?
10970echo "$as_me:$LINENO: checking $ac_header usability" >&5
10971echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10972cat >conftest.$ac_ext <<_ACEOF
10973#line $LINENO "configure"
10974/* confdefs.h. */
10975_ACEOF
10976cat confdefs.h >>conftest.$ac_ext
10977cat >>conftest.$ac_ext <<_ACEOF
10978/* end confdefs.h. */
10979$ac_includes_default
10980#include <$ac_header>
10981_ACEOF
10982rm -f conftest.$ac_objext
10983if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10984 (eval $ac_compile) 2>&5
10985 ac_status=$?
10986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10987 (exit $ac_status); } &&
10988 { ac_try='test -s conftest.$ac_objext'
10989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10990 (eval $ac_try) 2>&5
10991 ac_status=$?
10992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10993 (exit $ac_status); }; }; then
10994 ac_header_compiler=yes
10995else
10996 echo "$as_me: failed program was:" >&5
10997sed 's/^/| /' conftest.$ac_ext >&5
10998
10999ac_header_compiler=no
11000fi
11001rm -f conftest.$ac_objext conftest.$ac_ext
11002echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11003echo "${ECHO_T}$ac_header_compiler" >&6
11004
11005# Is the header present?
11006echo "$as_me:$LINENO: checking $ac_header presence" >&5
11007echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11008cat >conftest.$ac_ext <<_ACEOF
11009#line $LINENO "configure"
11010/* confdefs.h. */
11011_ACEOF
11012cat confdefs.h >>conftest.$ac_ext
11013cat >>conftest.$ac_ext <<_ACEOF
11014/* end confdefs.h. */
11015#include <$ac_header>
11016_ACEOF
11017if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11018 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11019 ac_status=$?
11020 grep -v '^ *+' conftest.er1 >conftest.err
11021 rm -f conftest.er1
11022 cat conftest.err >&5
11023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024 (exit $ac_status); } >/dev/null; then
11025 if test -s conftest.err; then
11026 ac_cpp_err=$ac_c_preproc_warn_flag
11027 else
11028 ac_cpp_err=
11029 fi
11030else
11031 ac_cpp_err=yes
11032fi
11033if test -z "$ac_cpp_err"; then
11034 ac_header_preproc=yes
11035else
11036 echo "$as_me: failed program was:" >&5
11037sed 's/^/| /' conftest.$ac_ext >&5
11038
11039 ac_header_preproc=no
11040fi
11041rm -f conftest.err conftest.$ac_ext
11042echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11043echo "${ECHO_T}$ac_header_preproc" >&6
11044
11045# So? What about this header?
11046case $ac_header_compiler:$ac_header_preproc in
11047 yes:no )
11048 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11049echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11050 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11051echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11052 (
11053 cat <<\_ASBOX
11054## ------------------------------------ ##
11055## Report this to bug-autoconf@gnu.org. ##
11056## ------------------------------------ ##
11057_ASBOX
11058 ) |
11059 sed "s/^/$as_me: WARNING: /" >&2
11060 ;;
11061 no:yes )
11062 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11063echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11064 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11065echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11066 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11067echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11068 (
11069 cat <<\_ASBOX
11070## ------------------------------------ ##
11071## Report this to bug-autoconf@gnu.org. ##
11072## ------------------------------------ ##
11073_ASBOX
11074 ) |
11075 sed "s/^/$as_me: WARNING: /" >&2
11076 ;;
11077esac
11078echo "$as_me:$LINENO: checking for $ac_header" >&5
11079echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11080if eval "test \"\${$as_ac_Header+set}\" = set"; then
11081 echo $ECHO_N "(cached) $ECHO_C" >&6
11082else
11083 eval "$as_ac_Header=$ac_header_preproc"
11084fi
11085echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11086echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11087
11088fi
11089if test `eval echo '${'$as_ac_Header'}'` = yes; then
11090 cat >>confdefs.h <<_ACEOF
11091#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11092_ACEOF
11093
11094 echo "$as_me:$LINENO: checking for capi20_register in -lcapi20" >&5
11095echo $ECHO_N "checking for capi20_register in -lcapi20... $ECHO_C" >&6
11096if test "${ac_cv_lib_capi20_capi20_register+set}" = set; then
11097 echo $ECHO_N "(cached) $ECHO_C" >&6
11098else
11099 ac_check_lib_save_LIBS=$LIBS
11100LIBS="-lcapi20 $LIBS"
11101cat >conftest.$ac_ext <<_ACEOF
11102#line $LINENO "configure"
11103/* confdefs.h. */
11104_ACEOF
11105cat confdefs.h >>conftest.$ac_ext
11106cat >>conftest.$ac_ext <<_ACEOF
11107/* end confdefs.h. */
11108
11109/* Override any gcc2 internal prototype to avoid an error. */
11110#ifdef __cplusplus
11111extern "C"
11112#endif
11113/* We use char because int might match the return type of a gcc2
11114 builtin and then its argument prototype would still apply. */
11115char capi20_register ();
11116int
11117main ()
11118{
11119capi20_register ();
11120 ;
11121 return 0;
11122}
11123_ACEOF
11124rm -f conftest.$ac_objext conftest$ac_exeext
11125if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11126 (eval $ac_link) 2>&5
11127 ac_status=$?
11128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129 (exit $ac_status); } &&
11130 { ac_try='test -s conftest$ac_exeext'
11131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11132 (eval $ac_try) 2>&5
11133 ac_status=$?
11134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11135 (exit $ac_status); }; }; then
11136 ac_cv_lib_capi20_capi20_register=yes
11137else
11138 echo "$as_me: failed program was:" >&5
11139sed 's/^/| /' conftest.$ac_ext >&5
11140
11141ac_cv_lib_capi20_capi20_register=no
11142fi
11143rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11144LIBS=$ac_check_lib_save_LIBS
11145fi
11146echo "$as_me:$LINENO: result: $ac_cv_lib_capi20_capi20_register" >&5
11147echo "${ECHO_T}$ac_cv_lib_capi20_capi20_register" >&6
11148if test $ac_cv_lib_capi20_capi20_register = yes; then
11149
11150
11151cat >>confdefs.h <<\_ACEOF
11152#define HAVE_CAPI4LINUX 1
11153_ACEOF
11154
11155 CAPI4LINUXLIBS="-lcapi20"
11156
11157
11158fi
11159
11160
11161fi
11162
11163done
11164
11165
11166fi
11167
11168done
11169
11170
11171
daa2886c 11172echo "$as_me:$LINENO: checking whether mmap64 works defined as mmap" >&5
f5818d2f
AJ
11173echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6
11174if test "${ac_cv_mmap64_works+set}" = set; then
11175 echo $ECHO_N "(cached) $ECHO_C" >&6
0f6cfbc7
MM
11176else
11177 if test "$cross_compiling" = yes; then
11178 ac_cv_mmap64_works="no"
11179else
f5818d2f 11180 cat >conftest.$ac_ext <<_ACEOF
daa2886c 11181#line $LINENO "configure"
e24bcc77
AJ
11182/* confdefs.h. */
11183_ACEOF
11184cat confdefs.h >>conftest.$ac_ext
11185cat >>conftest.$ac_ext <<_ACEOF
11186/* end confdefs.h. */
0f6cfbc7
MM
11187
11188 #define _FILE_OFFSET_BITS 64
11189 #include <stdio.h>
11190 #include <unistd.h>
11191 #include <fcntl.h>
11192 #include <sys/mman.h>
11193 #include <errno.h>
11194
11195 int main(int argc,char **argv) {
11196 int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
11197 if (fd == -1) exit(1);
11198
11199 unlink("conftest.map");
11200
11201 write(fd,"test",4);
11202
11203 if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
11204 (errno == EINVAL)
11205 ) {
11206 exit(1);
11207 }
11208 close(fd);
11209 fprintf(stderr,"success!\n");
11210 exit(0);
11211 }
11212
daa2886c 11213
f5818d2f
AJ
11214_ACEOF
11215rm -f conftest$ac_exeext
daa2886c 11216if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
11217 (eval $ac_link) 2>&5
11218 ac_status=$?
daa2886c 11219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 11220 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
daa2886c 11221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
11222 (eval $ac_try) 2>&5
11223 ac_status=$?
daa2886c 11224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 11225 (exit $ac_status); }; }; then
0f6cfbc7
MM
11226 ac_cv_mmap64_works="yes"
11227else
f5818d2f
AJ
11228 echo "$as_me: program exited with status $ac_status" >&5
11229echo "$as_me: failed program was:" >&5
e24bcc77
AJ
11230sed 's/^/| /' conftest.$ac_ext >&5
11231
daa2886c 11232( exit $ac_status )
f5818d2f 11233ac_cv_mmap64_works="no"
0f6cfbc7 11234fi
80e34dbb 11235rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
0f6cfbc7 11236fi
0f6cfbc7 11237fi
daa2886c 11238echo "$as_me:$LINENO: result: $ac_cv_mmap64_works" >&5
f5818d2f 11239echo "${ECHO_T}$ac_cv_mmap64_works" >&6
0f6cfbc7
MM
11240
11241if test "$ac_cv_mmap64_works" = "yes"
11242then
f5818d2f 11243
daa2886c 11244cat >>confdefs.h <<\_ACEOF
0f6cfbc7 11245#define _FILE_OFFSET_BITS 64
daa2886c 11246_ACEOF
0f6cfbc7
MM
11247
11248fi
11249
daa2886c 11250
fc09423d
AJ
11251EXTRACFLAGS=""
11252
4f8c37b4
AJ
11253if test "x${GCC}" = "xyes"
11254then
fc09423d 11255 EXTRACFLAGS=-Wall
c509bc4d
MM
11256
11257 echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
f5818d2f
AJ
11258echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6
11259if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
11260 echo $ECHO_N "(cached) $ECHO_C" >&6
4f8c37b4
AJ
11261else
11262 if test "$cross_compiling" = yes; then
11263 ac_cv_c_gcc_strength_bug="yes"
11264else
f5818d2f 11265 cat >conftest.$ac_ext <<_ACEOF
daa2886c 11266#line $LINENO "configure"
e24bcc77
AJ
11267/* confdefs.h. */
11268_ACEOF
11269cat confdefs.h >>conftest.$ac_ext
11270cat >>conftest.$ac_ext <<_ACEOF
11271/* end confdefs.h. */
4f8c37b4 11272
5aee80f6 11273int L[4] = {0,1,2,3};
4f8c37b4 11274int main(void) {
d2e1c1a4 11275 static int Array[3];
4f8c37b4
AJ
11276 unsigned int B = 3;
11277 int i;
d2e1c1a4 11278 for(i=0; i<B; i++) Array[i] = i - 3;
5aee80f6
EP
11279 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
11280 L[i] = 4;
f5818d2f 11281
5aee80f6 11282 exit( Array[1] != -2 || L[2] != 3);
4f8c37b4 11283}
f5818d2f
AJ
11284_ACEOF
11285rm -f conftest$ac_exeext
daa2886c 11286if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
11287 (eval $ac_link) 2>&5
11288 ac_status=$?
daa2886c 11289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 11290 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
daa2886c 11291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
11292 (eval $ac_try) 2>&5
11293 ac_status=$?
daa2886c 11294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 11295 (exit $ac_status); }; }; then
4f8c37b4
AJ
11296 ac_cv_c_gcc_strength_bug="no"
11297else
f5818d2f
AJ
11298 echo "$as_me: program exited with status $ac_status" >&5
11299echo "$as_me: failed program was:" >&5
e24bcc77
AJ
11300sed 's/^/| /' conftest.$ac_ext >&5
11301
daa2886c 11302( exit $ac_status )
f5818d2f 11303ac_cv_c_gcc_strength_bug="yes"
4f8c37b4 11304fi
80e34dbb 11305rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4f8c37b4 11306fi
4f8c37b4 11307fi
daa2886c 11308echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
f5818d2f 11309echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
4f8c37b4
AJ
11310 if test "$ac_cv_c_gcc_strength_bug" = "yes"
11311 then
fc09423d 11312 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
4f8c37b4 11313 fi
f9b94cb9 11314
daa2886c 11315 echo "$as_me:$LINENO: checking for gcc -mpreferred-stack-boundary=2 support" >&5
f5818d2f
AJ
11316echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6
11317if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then
11318 echo $ECHO_N "(cached) $ECHO_C" >&6
f9b94cb9 11319else
67e8dc68
AJ
11320 ac_wine_try_cflags_saved=$CFLAGS
11321CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
11322cat >conftest.$ac_ext <<_ACEOF
daa2886c 11323#line $LINENO "configure"
e24bcc77
AJ
11324/* confdefs.h. */
11325_ACEOF
11326cat confdefs.h >>conftest.$ac_ext
11327cat >>conftest.$ac_ext <<_ACEOF
11328/* end confdefs.h. */
f9b94cb9 11329
f5818d2f
AJ
11330int
11331main ()
11332{
67e8dc68 11333
f5818d2f
AJ
11334 ;
11335 return 0;
11336}
11337_ACEOF
67e8dc68
AJ
11338rm -f conftest.$ac_objext conftest$ac_exeext
11339if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11340 (eval $ac_link) 2>&5
f5818d2f 11341 ac_status=$?
daa2886c 11342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 11343 (exit $ac_status); } &&
67e8dc68 11344 { ac_try='test -s conftest$ac_exeext'
daa2886c 11345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
11346 (eval $ac_try) 2>&5
11347 ac_status=$?
daa2886c 11348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 11349 (exit $ac_status); }; }; then
f9b94cb9
AJ
11350 ac_cv_c_gcc_stack_boundary="yes"
11351else
f5818d2f 11352 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
11353sed 's/^/| /' conftest.$ac_ext >&5
11354
f5818d2f 11355ac_cv_c_gcc_stack_boundary="no"
f9b94cb9 11356fi
67e8dc68
AJ
11357rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11358CFLAGS=$ac_wine_try_cflags_saved
f5818d2f 11359fi
daa2886c 11360echo "$as_me:$LINENO: result: $ac_cv_c_gcc_stack_boundary" >&5
f5818d2f 11361echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6
f9b94cb9
AJ
11362 if test "$ac_cv_c_gcc_stack_boundary" = "yes"
11363 then
fc09423d 11364 EXTRACFLAGS="$EXTRACFLAGS -mpreferred-stack-boundary=2"
f9b94cb9 11365 fi
14bd120e 11366
efca0f6a
AJ
11367 echo "$as_me:$LINENO: checking for gcc -fno-strict-aliasing support" >&5
11368echo $ECHO_N "checking for gcc -fno-strict-aliasing support... $ECHO_C" >&6
11369if test "${ac_cv_c_gcc_no_strict_aliasing+set}" = set; then
11370 echo $ECHO_N "(cached) $ECHO_C" >&6
11371else
11372 ac_wine_try_cflags_saved=$CFLAGS
11373CFLAGS="$CFLAGS -fno-strict-aliasing"
11374cat >conftest.$ac_ext <<_ACEOF
11375#line $LINENO "configure"
11376/* confdefs.h. */
11377_ACEOF
11378cat confdefs.h >>conftest.$ac_ext
11379cat >>conftest.$ac_ext <<_ACEOF
11380/* end confdefs.h. */
11381
11382int
11383main ()
11384{
11385
11386 ;
11387 return 0;
11388}
11389_ACEOF
11390rm -f conftest.$ac_objext conftest$ac_exeext
11391if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11392 (eval $ac_link) 2>&5
11393 ac_status=$?
11394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395 (exit $ac_status); } &&
11396 { ac_try='test -s conftest$ac_exeext'
11397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11398 (eval $ac_try) 2>&5
11399 ac_status=$?
11400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11401 (exit $ac_status); }; }; then
11402 ac_cv_c_gcc_no_strict_aliasing="yes"
11403else
11404 echo "$as_me: failed program was:" >&5
11405sed 's/^/| /' conftest.$ac_ext >&5
11406
11407ac_cv_c_gcc_no_strict_aliasing="no"
11408fi
11409rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11410CFLAGS=$ac_wine_try_cflags_saved
11411fi
11412echo "$as_me:$LINENO: result: $ac_cv_c_gcc_no_strict_aliasing" >&5
11413echo "${ECHO_T}$ac_cv_c_gcc_no_strict_aliasing" >&6
11414 if test "$ac_cv_c_gcc_no_strict_aliasing" = "yes"
11415 then
11416 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
11417 fi
11418
14bd120e
AJ
11419 echo "$as_me:$LINENO: checking for gcc -gstabs+ support" >&5
11420echo $ECHO_N "checking for gcc -gstabs+ support... $ECHO_C" >&6
11421if test "${ac_cv_c_gcc_gstabs+set}" = set; then
11422 echo $ECHO_N "(cached) $ECHO_C" >&6
11423else
11424 ac_wine_try_cflags_saved=$CFLAGS
11425CFLAGS="$CFLAGS -gstabs+"
11426cat >conftest.$ac_ext <<_ACEOF
11427#line $LINENO "configure"
11428/* confdefs.h. */
11429_ACEOF
11430cat confdefs.h >>conftest.$ac_ext
11431cat >>conftest.$ac_ext <<_ACEOF
11432/* end confdefs.h. */
11433
11434int
11435main ()
11436{
11437
11438 ;
11439 return 0;
11440}
11441_ACEOF
11442rm -f conftest.$ac_objext conftest$ac_exeext
11443if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11444 (eval $ac_link) 2>&5
11445 ac_status=$?
11446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447 (exit $ac_status); } &&
11448 { ac_try='test -s conftest$ac_exeext'
11449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11450 (eval $ac_try) 2>&5
11451 ac_status=$?
11452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11453 (exit $ac_status); }; }; then
11454 ac_cv_c_gcc_gstabs="yes"
11455else
11456 echo "$as_me: failed program was:" >&5
11457sed 's/^/| /' conftest.$ac_ext >&5
11458
11459ac_cv_c_gcc_gstabs="no"
11460fi
11461rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11462CFLAGS=$ac_wine_try_cflags_saved
11463fi
11464echo "$as_me:$LINENO: result: $ac_cv_c_gcc_gstabs" >&5
11465echo "${ECHO_T}$ac_cv_c_gcc_gstabs" >&6
11466 if test "$ac_cv_c_gcc_gstabs" = "yes"
11467 then
fc09423d 11468 EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
14bd120e 11469 fi
c509bc4d 11470
4d52d379 11471 saved_CFLAGS="$CFLAGS"
c509bc4d
MM
11472 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
11473 echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5
11474echo $ECHO_N "checking for broken string.h that generates warnings... $ECHO_C" >&6
11475if test "${ac_cv_c_string_h_warnings+set}" = set; then
11476 echo $ECHO_N "(cached) $ECHO_C" >&6
11477else
11478 cat >conftest.$ac_ext <<_ACEOF
11479#line $LINENO "configure"
11480/* confdefs.h. */
11481_ACEOF
11482cat confdefs.h >>conftest.$ac_ext
11483cat >>conftest.$ac_ext <<_ACEOF
11484/* end confdefs.h. */
11485#include <string.h>
11486int
11487main ()
11488{
11489
11490 ;
11491 return 0;
11492}
11493_ACEOF
11494rm -f conftest.$ac_objext
11495if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11496 (eval $ac_compile) 2>&5
11497 ac_status=$?
11498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499 (exit $ac_status); } &&
11500 { ac_try='test -s conftest.$ac_objext'
11501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11502 (eval $ac_try) 2>&5
11503 ac_status=$?
11504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505 (exit $ac_status); }; }; then
11506 ac_cv_c_string_h_warnings=no
11507else
11508 echo "$as_me: failed program was:" >&5
11509sed 's/^/| /' conftest.$ac_ext >&5
11510
11511ac_cv_c_string_h_warnings=yes
11512fi
11513rm -f conftest.$ac_objext conftest.$ac_ext
11514fi
11515echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5
11516echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6
4d52d379 11517 CFLAGS="$saved_CFLAGS"
c509bc4d
MM
11518 if test "$ac_cv_c_string_h_warnings" = "no"
11519 then
fc09423d 11520 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
c509bc4d 11521 fi
4f8c37b4
AJ
11522fi
11523
daa2886c 11524
84555cc7
AJ
11525echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
11526echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6
11527if test "${ac_cv_asm_func_def+set}" = set; then
11528 echo $ECHO_N "(cached) $ECHO_C" >&6
11529else
11530 cat >conftest.$ac_ext <<_ACEOF
daa2886c 11531#line $LINENO "configure"
e24bcc77
AJ
11532/* confdefs.h. */
11533_ACEOF
11534cat confdefs.h >>conftest.$ac_ext
11535cat >>conftest.$ac_ext <<_ACEOF
11536/* end confdefs.h. */
520852c7 11537void ac_asm(void) { asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0"); }
c77cbbcd 11538
f5818d2f
AJ
11539int
11540main ()
11541{
c77cbbcd 11542
f5818d2f
AJ
11543 ;
11544 return 0;
11545}
11546_ACEOF
11547rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 11548if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
11549 (eval $ac_link) 2>&5
11550 ac_status=$?
daa2886c 11551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
11552 (exit $ac_status); } &&
11553 { ac_try='test -s conftest$ac_exeext'
daa2886c 11554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
11555 (eval $ac_try) 2>&5
11556 ac_status=$?
daa2886c 11557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 11558 (exit $ac_status); }; }; then
84555cc7 11559 ac_cv_asm_func_def=".def"
c77cbbcd 11560else
f5818d2f 11561 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
11562sed 's/^/| /' conftest.$ac_ext >&5
11563
84555cc7
AJ
11564cat >conftest.$ac_ext <<_ACEOF
11565#line $LINENO "configure"
e24bcc77
AJ
11566/* confdefs.h. */
11567_ACEOF
11568cat confdefs.h >>conftest.$ac_ext
11569cat >>conftest.$ac_ext <<_ACEOF
11570/* end confdefs.h. */
520852c7 11571void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0"); }
c77cbbcd 11572
84555cc7
AJ
11573int
11574main ()
11575{
daa2886c 11576
84555cc7
AJ
11577 ;
11578 return 0;
11579}
11580_ACEOF
11581rm -f conftest.$ac_objext conftest$ac_exeext
11582if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11583 (eval $ac_link) 2>&5
11584 ac_status=$?
11585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586 (exit $ac_status); } &&
11587 { ac_try='test -s conftest$ac_exeext'
11588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11589 (eval $ac_try) 2>&5
11590 ac_status=$?
11591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11592 (exit $ac_status); }; }; then
11593 ac_cv_asm_func_def=".type @function"
57807fa1 11594else
84555cc7 11595 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
11596sed 's/^/| /' conftest.$ac_ext >&5
11597
57807fa1
GM
11598cat >conftest.$ac_ext <<_ACEOF
11599#line $LINENO "configure"
e24bcc77
AJ
11600/* confdefs.h. */
11601_ACEOF
11602cat confdefs.h >>conftest.$ac_ext
11603cat >>conftest.$ac_ext <<_ACEOF
11604/* end confdefs.h. */
520852c7 11605void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"); }
57807fa1 11606
57807fa1
GM
11607int
11608main ()
11609{
11610
11611 ;
11612 return 0;
11613}
11614_ACEOF
11615rm -f conftest.$ac_objext conftest$ac_exeext
11616if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11617 (eval $ac_link) 2>&5
11618 ac_status=$?
11619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11620 (exit $ac_status); } &&
11621 { ac_try='test -s conftest$ac_exeext'
11622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11623 (eval $ac_try) 2>&5
11624 ac_status=$?
11625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626 (exit $ac_status); }; }; then
84555cc7 11627 ac_cv_asm_func_def=".type 2"
57807fa1
GM
11628else
11629 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
11630sed 's/^/| /' conftest.$ac_ext >&5
11631
84555cc7 11632ac_cv_asm_func_def="unknown"
57807fa1
GM
11633fi
11634rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
57807fa1 11635fi
84555cc7
AJ
11636rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11637fi
11638rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11639fi
11640echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
11641echo "${ECHO_T}$ac_cv_asm_func_def" >&6
57807fa1 11642
57807fa1 11643
84555cc7
AJ
11644
11645case "$ac_cv_asm_func_def" in
11646 ".def")
11647 cat >>confdefs.h <<\_ACEOF
11648#define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
11649_ACEOF
11650 ;;
11651 ".type @function")
11652 cat >>confdefs.h <<\_ACEOF
11653#define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
11654_ACEOF
11655 ;;
11656 ".type 2")
11657 cat >>confdefs.h <<\_ACEOF
11658#define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
11659_ACEOF
11660 ;;
11661 *)
11662 cat >>confdefs.h <<\_ACEOF
11663#define __ASM_FUNC(name) ""
11664_ACEOF
11665 ;;
11666esac
57807fa1
GM
11667
11668
daa2886c 11669echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
f5818d2f
AJ
11670echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6
11671if test "${ac_cv_c_extern_prefix+set}" = set; then
11672 echo $ECHO_N "(cached) $ECHO_C" >&6
8cc3a5e4 11673else
84555cc7 11674 cat >conftest.$ac_ext <<_ACEOF
daa2886c 11675#line $LINENO "configure"
e24bcc77
AJ
11676/* confdefs.h. */
11677_ACEOF
11678cat confdefs.h >>conftest.$ac_ext
11679cat >>conftest.$ac_ext <<_ACEOF
11680/* end confdefs.h. */
520852c7 11681void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
8cc3a5e4 11682extern int ac_test;
f5818d2f
AJ
11683int
11684main ()
11685{
8cc3a5e4 11686if (ac_test) return 1
f5818d2f
AJ
11687 ;
11688 return 0;
11689}
11690_ACEOF
fa3a5360
AJ
11691rm -f conftest.$ac_objext conftest$ac_exeext
11692if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11693 (eval $ac_link) 2>&5
11694 ac_status=$?
11695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696 (exit $ac_status); } &&
11697 { ac_try='test -s conftest$ac_exeext'
11698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11699 (eval $ac_try) 2>&5
11700 ac_status=$?
11701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702 (exit $ac_status); }; }; then
11703 ac_cv_c_extern_prefix="yes"
11704else
11705 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
11706sed 's/^/| /' conftest.$ac_ext >&5
11707
fa3a5360
AJ
11708ac_cv_c_extern_prefix="no"
11709fi
11710rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fa3a5360
AJ
11711fi
11712echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
11713echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6
84555cc7
AJ
11714
11715
11716
fa3a5360
AJ
11717if test "$ac_cv_c_extern_prefix" = "yes"
11718then
84555cc7
AJ
11719 cat >>confdefs.h <<\_ACEOF
11720#define __ASM_NAME(name) "_" name
11721_ACEOF
fa3a5360 11722
84555cc7
AJ
11723else
11724 cat >>confdefs.h <<\_ACEOF
11725#define __ASM_NAME(name) name
fa3a5360
AJ
11726_ACEOF
11727
11728fi
11729
11730
fa3a5360
AJ
11731echo "$as_me:$LINENO: checking whether assembler accepts .string" >&5
11732echo $ECHO_N "checking whether assembler accepts .string... $ECHO_C" >&6
11733if test "${ac_cv_c_asm_string+set}" = set; then
11734 echo $ECHO_N "(cached) $ECHO_C" >&6
11735else
84555cc7 11736 cat >conftest.$ac_ext <<_ACEOF
fa3a5360 11737#line $LINENO "configure"
e24bcc77
AJ
11738/* confdefs.h. */
11739_ACEOF
11740cat confdefs.h >>conftest.$ac_ext
11741cat >>conftest.$ac_ext <<_ACEOF
11742/* end confdefs.h. */
49163d5e 11743void ac_asm(void) { asm(".data\n\t.string \"test\"\n\t.text"); }
fa3a5360 11744
fa3a5360
AJ
11745int
11746main ()
11747{
11748
11749 ;
11750 return 0;
11751}
11752_ACEOF
11753rm -f conftest.$ac_objext conftest$ac_exeext
11754if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11755 (eval $ac_link) 2>&5
11756 ac_status=$?
11757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758 (exit $ac_status); } &&
11759 { ac_try='test -s conftest$ac_exeext'
11760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11761 (eval $ac_try) 2>&5
11762 ac_status=$?
11763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11764 (exit $ac_status); }; }; then
11765 ac_cv_c_asm_string="yes"
11766else
11767 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
11768sed 's/^/| /' conftest.$ac_ext >&5
11769
fa3a5360
AJ
11770ac_cv_c_asm_string="no"
11771fi
11772rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fa3a5360
AJ
11773fi
11774echo "$as_me:$LINENO: result: $ac_cv_c_asm_string" >&5
11775echo "${ECHO_T}$ac_cv_c_asm_string" >&6
11776if test "$ac_cv_c_asm_string" = "yes"
11777then
11778
11779cat >>confdefs.h <<\_ACEOF
f814cf87
CC
11780#define __ASM_STRING ".string"
11781_ACEOF
11782
11783else
11784 echo "$as_me:$LINENO: checking whether assembler accepts .asciz" >&5
11785echo $ECHO_N "checking whether assembler accepts .asciz... $ECHO_C" >&6
11786if test "${ac_cv_c_asm_asciz+set}" = set; then
11787 echo $ECHO_N "(cached) $ECHO_C" >&6
11788else
11789 cat >conftest.$ac_ext <<_ACEOF
11790#line $LINENO "configure"
11791/* confdefs.h. */
11792_ACEOF
11793cat confdefs.h >>conftest.$ac_ext
11794cat >>conftest.$ac_ext <<_ACEOF
11795/* end confdefs.h. */
11796void ac_asm(void) { asm(".data\n\t.asciz \"test\"\n\t.text"); }
11797
11798int
11799main ()
11800{
11801
11802 ;
11803 return 0;
11804}
11805_ACEOF
11806rm -f conftest.$ac_objext conftest$ac_exeext
11807if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11808 (eval $ac_link) 2>&5
11809 ac_status=$?
11810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11811 (exit $ac_status); } &&
11812 { ac_try='test -s conftest$ac_exeext'
11813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11814 (eval $ac_try) 2>&5
11815 ac_status=$?
11816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11817 (exit $ac_status); }; }; then
11818 ac_cv_c_asm_asciz="yes"
11819else
11820 echo "$as_me: failed program was:" >&5
11821sed 's/^/| /' conftest.$ac_ext >&5
11822
11823ac_cv_c_asm_asciz="no"
11824fi
11825rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11826fi
11827echo "$as_me:$LINENO: result: $ac_cv_c_asm_asciz" >&5
11828echo "${ECHO_T}$ac_cv_c_asm_asciz" >&6
11829 if test "$ac_cv_c_asm_asciz" = "yes"
11830 then
11831 cat >>confdefs.h <<\_ACEOF
11832#define __ASM_STRING ".asciz"
11833_ACEOF
11834
11835 else
11836 cat >>confdefs.h <<\_ACEOF
11837#define __ASM_STRING ".ascii"
11838_ACEOF
11839
11840 fi
11841fi
11842
11843
11844echo "$as_me:$LINENO: checking whether assembler accepts .short" >&5
11845echo $ECHO_N "checking whether assembler accepts .short... $ECHO_C" >&6
11846if test "${ac_cv_c_asm_short+set}" = set; then
11847 echo $ECHO_N "(cached) $ECHO_C" >&6
11848else
11849 cat >conftest.$ac_ext <<_ACEOF
11850#line $LINENO "configure"
11851/* confdefs.h. */
11852_ACEOF
11853cat confdefs.h >>conftest.$ac_ext
11854cat >>conftest.$ac_ext <<_ACEOF
11855/* end confdefs.h. */
11856void ac_asm(void) { asm(".data\n\t.short 1\n\t.text"); }
11857
11858int
11859main ()
11860{
11861
11862 ;
11863 return 0;
11864}
11865_ACEOF
11866rm -f conftest.$ac_objext conftest$ac_exeext
11867if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11868 (eval $ac_link) 2>&5
11869 ac_status=$?
11870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11871 (exit $ac_status); } &&
11872 { ac_try='test -s conftest$ac_exeext'
11873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11874 (eval $ac_try) 2>&5
11875 ac_status=$?
11876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11877 (exit $ac_status); }; }; then
11878 ac_cv_c_asm_short="yes"
11879else
11880 echo "$as_me: failed program was:" >&5
11881sed 's/^/| /' conftest.$ac_ext >&5
11882
11883ac_cv_c_asm_short="no"
11884fi
11885rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11886fi
11887echo "$as_me:$LINENO: result: $ac_cv_c_asm_short" >&5
11888echo "${ECHO_T}$ac_cv_c_asm_short" >&6
11889if test "$ac_cv_c_asm_short" = "yes"
11890then
11891
11892cat >>confdefs.h <<\_ACEOF
11893#define __ASM_SHORT ".short"
11894_ACEOF
11895
11896else
11897 cat >>confdefs.h <<\_ACEOF
11898#define __ASM_SHORT ".half"
fa3a5360
AJ
11899_ACEOF
11900
11901fi
11902
11903
7bf07d15
AJ
11904DLLEXT=""
11905
fc09423d 11906DLLFLAGS="-D_REENTRANT"
7bf07d15 11907
fa3a5360
AJ
11908DLLIBS=""
11909
7bf07d15
AJ
11910LDSHARED=""
11911
6ac34ac6
AJ
11912LDDLL=""
11913
ada5e652
AJ
11914LIBEXT="so"
11915
11916IMPLIBEXT="def"
11917
7bf07d15 11918
fc01b729
AJ
11919case $host_os in
11920 cygwin*|mingw32*)
ada5e652
AJ
11921 if test -n "$ac_tool_prefix"; then
11922 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11923set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11924echo "$as_me:$LINENO: checking for $ac_word" >&5
11925echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11926if test "${ac_cv_prog_DLLTOOL+set}" = set; then
11927 echo $ECHO_N "(cached) $ECHO_C" >&6
11928else
11929 if test -n "$DLLTOOL"; then
11930 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11931else
11932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11933for as_dir in $PATH
11934do
11935 IFS=$as_save_IFS
11936 test -z "$as_dir" && as_dir=.
11937 for ac_exec_ext in '' $ac_executable_extensions; do
11938 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11939 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11941 break 2
11942 fi
11943done
11944done
11945
11946fi
11947fi
11948DLLTOOL=$ac_cv_prog_DLLTOOL
11949if test -n "$DLLTOOL"; then
11950 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
11951echo "${ECHO_T}$DLLTOOL" >&6
11952else
11953 echo "$as_me:$LINENO: result: no" >&5
11954echo "${ECHO_T}no" >&6
11955fi
11956
11957fi
11958if test -z "$ac_cv_prog_DLLTOOL"; then
11959 ac_ct_DLLTOOL=$DLLTOOL
11960 # Extract the first word of "dlltool", so it can be a program name with args.
11961set dummy dlltool; ac_word=$2
11962echo "$as_me:$LINENO: checking for $ac_word" >&5
11963echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11964if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
11965 echo $ECHO_N "(cached) $ECHO_C" >&6
11966else
11967 if test -n "$ac_ct_DLLTOOL"; then
11968 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11969else
11970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11971for as_dir in $PATH
11972do
11973 IFS=$as_save_IFS
11974 test -z "$as_dir" && as_dir=.
11975 for ac_exec_ext in '' $ac_executable_extensions; do
11976 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11977 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11979 break 2
11980 fi
11981done
11982done
11983
11984 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
11985fi
11986fi
11987ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11988if test -n "$ac_ct_DLLTOOL"; then
11989 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
11990echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
11991else
11992 echo "$as_me:$LINENO: result: no" >&5
11993echo "${ECHO_T}no" >&6
11994fi
11995
11996 DLLTOOL=$ac_ct_DLLTOOL
11997else
11998 DLLTOOL="$ac_cv_prog_DLLTOOL"
11999fi
12000
fc01b729
AJ
12001 if test -n "$ac_tool_prefix"; then
12002 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
12003set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
fa3a5360
AJ
12004echo "$as_me:$LINENO: checking for $ac_word" >&5
12005echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12006if test "${ac_cv_prog_DLLWRAP+set}" = set; then
12007 echo $ECHO_N "(cached) $ECHO_C" >&6
12008else
12009 if test -n "$DLLWRAP"; then
12010 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
12011else
12012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12013for as_dir in $PATH
12014do
12015 IFS=$as_save_IFS
12016 test -z "$as_dir" && as_dir=.
12017 for ac_exec_ext in '' $ac_executable_extensions; do
12018 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
fc01b729 12019 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
fa3a5360
AJ
12020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12021 break 2
12022 fi
12023done
12024done
12025
fa3a5360
AJ
12026fi
12027fi
12028DLLWRAP=$ac_cv_prog_DLLWRAP
12029if test -n "$DLLWRAP"; then
12030 echo "$as_me:$LINENO: result: $DLLWRAP" >&5
12031echo "${ECHO_T}$DLLWRAP" >&6
12032else
12033 echo "$as_me:$LINENO: result: no" >&5
12034echo "${ECHO_T}no" >&6
12035fi
12036
fc01b729
AJ
12037fi
12038if test -z "$ac_cv_prog_DLLWRAP"; then
12039 ac_ct_DLLWRAP=$DLLWRAP
12040 # Extract the first word of "dllwrap", so it can be a program name with args.
12041set dummy dllwrap; ac_word=$2
12042echo "$as_me:$LINENO: checking for $ac_word" >&5
12043echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12044if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
12045 echo $ECHO_N "(cached) $ECHO_C" >&6
12046else
12047 if test -n "$ac_ct_DLLWRAP"; then
12048 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
12049else
12050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12051for as_dir in $PATH
12052do
12053 IFS=$as_save_IFS
12054 test -z "$as_dir" && as_dir=.
12055 for ac_exec_ext in '' $ac_executable_extensions; do
12056 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12057 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
12058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12059 break 2
12060 fi
12061done
12062done
12063
12064 test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP="false"
12065fi
12066fi
12067ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
12068if test -n "$ac_ct_DLLWRAP"; then
12069 echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
12070echo "${ECHO_T}$ac_ct_DLLWRAP" >&6
12071else
12072 echo "$as_me:$LINENO: result: no" >&5
12073echo "${ECHO_T}no" >&6
12074fi
12075
12076 DLLWRAP=$ac_ct_DLLWRAP
12077else
12078 DLLWRAP="$ac_cv_prog_DLLWRAP"
12079fi
12080
12081 if test "$DLLWRAP" = "false"; then
fa3a5360 12082 LIBEXT="a"
fc01b729
AJ
12083 else
12084 LIBEXT="dll"
fa3a5360 12085 fi
ada5e652 12086 IMPLIBEXT="a"
fa3a5360
AJ
12087 ;;
12088 *)
12089
12090for ac_header in dlfcn.h
12091do
12092as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12093if eval "test \"\${$as_ac_Header+set}\" = set"; then
12094 echo "$as_me:$LINENO: checking for $ac_header" >&5
12095echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12096if eval "test \"\${$as_ac_Header+set}\" = set"; then
12097 echo $ECHO_N "(cached) $ECHO_C" >&6
12098fi
12099echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12100echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12101else
12102 # Is the header compilable?
12103echo "$as_me:$LINENO: checking $ac_header usability" >&5
12104echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12105cat >conftest.$ac_ext <<_ACEOF
12106#line $LINENO "configure"
e24bcc77
AJ
12107/* confdefs.h. */
12108_ACEOF
12109cat confdefs.h >>conftest.$ac_ext
12110cat >>conftest.$ac_ext <<_ACEOF
12111/* end confdefs.h. */
fa3a5360
AJ
12112$ac_includes_default
12113#include <$ac_header>
12114_ACEOF
12115rm -f conftest.$ac_objext
12116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12117 (eval $ac_compile) 2>&5
f5818d2f 12118 ac_status=$?
daa2886c 12119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 12120 (exit $ac_status); } &&
fa3a5360 12121 { ac_try='test -s conftest.$ac_objext'
daa2886c 12122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
12123 (eval $ac_try) 2>&5
12124 ac_status=$?
daa2886c 12125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 12126 (exit $ac_status); }; }; then
fa3a5360 12127 ac_header_compiler=yes
8cc3a5e4 12128else
f5818d2f 12129 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
12130sed 's/^/| /' conftest.$ac_ext >&5
12131
fa3a5360 12132ac_header_compiler=no
8cc3a5e4 12133fi
fa3a5360
AJ
12134rm -f conftest.$ac_objext conftest.$ac_ext
12135echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12136echo "${ECHO_T}$ac_header_compiler" >&6
f5818d2f 12137
fa3a5360
AJ
12138# Is the header present?
12139echo "$as_me:$LINENO: checking $ac_header presence" >&5
12140echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12141cat >conftest.$ac_ext <<_ACEOF
12142#line $LINENO "configure"
e24bcc77
AJ
12143/* confdefs.h. */
12144_ACEOF
12145cat confdefs.h >>conftest.$ac_ext
12146cat >>conftest.$ac_ext <<_ACEOF
12147/* end confdefs.h. */
fa3a5360 12148#include <$ac_header>
daa2886c 12149_ACEOF
fa3a5360
AJ
12150if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12151 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12152 ac_status=$?
11af04e3 12153 grep -v '^ *+' conftest.er1 >conftest.err
fa3a5360
AJ
12154 rm -f conftest.er1
12155 cat conftest.err >&5
12156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12157 (exit $ac_status); } >/dev/null; then
12158 if test -s conftest.err; then
12159 ac_cpp_err=$ac_c_preproc_warn_flag
12160 else
12161 ac_cpp_err=
12162 fi
12163else
12164 ac_cpp_err=yes
12165fi
12166if test -z "$ac_cpp_err"; then
12167 ac_header_preproc=yes
12168else
12169 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
12170sed 's/^/| /' conftest.$ac_ext >&5
12171
fa3a5360
AJ
12172 ac_header_preproc=no
12173fi
12174rm -f conftest.err conftest.$ac_ext
12175echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12176echo "${ECHO_T}$ac_header_preproc" >&6
8cc3a5e4 12177
fa3a5360
AJ
12178# So? What about this header?
12179case $ac_header_compiler:$ac_header_preproc in
12180 yes:no )
12181 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12182echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12183 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
e24bcc77
AJ
12184echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12185 (
12186 cat <<\_ASBOX
12187## ------------------------------------ ##
12188## Report this to bug-autoconf@gnu.org. ##
12189## ------------------------------------ ##
12190_ASBOX
12191 ) |
12192 sed "s/^/$as_me: WARNING: /" >&2
12193 ;;
fa3a5360
AJ
12194 no:yes )
12195 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12196echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12197 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12198echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12199 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
e24bcc77
AJ
12200echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12201 (
12202 cat <<\_ASBOX
12203## ------------------------------------ ##
12204## Report this to bug-autoconf@gnu.org. ##
12205## ------------------------------------ ##
12206_ASBOX
12207 ) |
12208 sed "s/^/$as_me: WARNING: /" >&2
12209 ;;
fa3a5360
AJ
12210esac
12211echo "$as_me:$LINENO: checking for $ac_header" >&5
12212echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12213if eval "test \"\${$as_ac_Header+set}\" = set"; then
12214 echo $ECHO_N "(cached) $ECHO_C" >&6
12215else
12216 eval "$as_ac_Header=$ac_header_preproc"
8cc3a5e4 12217fi
fa3a5360
AJ
12218echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12219echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8cc3a5e4 12220
fa3a5360
AJ
12221fi
12222if test `eval echo '${'$as_ac_Header'}'` = yes; then
12223 cat >>confdefs.h <<_ACEOF
12224#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12225_ACEOF
daa2886c 12226
fa3a5360
AJ
12227for ac_func in dlopen
12228do
12229as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12230echo "$as_me:$LINENO: checking for $ac_func" >&5
12231echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12232if eval "test \"\${$as_ac_var+set}\" = set"; then
f5818d2f 12233 echo $ECHO_N "(cached) $ECHO_C" >&6
93a5b868 12234else
fa3a5360 12235 cat >conftest.$ac_ext <<_ACEOF
daa2886c 12236#line $LINENO "configure"
e24bcc77
AJ
12237/* confdefs.h. */
12238_ACEOF
12239cat confdefs.h >>conftest.$ac_ext
12240cat >>conftest.$ac_ext <<_ACEOF
12241/* end confdefs.h. */
fa3a5360 12242/* System header to define __stub macros and hopefully few prototypes,
e24bcc77
AJ
12243 which can conflict with char $ac_func (); below.
12244 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12245 <limits.h> exists even on freestanding compilers. */
12246#ifdef __STDC__
12247# include <limits.h>
12248#else
12249# include <assert.h>
12250#endif
fa3a5360
AJ
12251/* Override any gcc2 internal prototype to avoid an error. */
12252#ifdef __cplusplus
12253extern "C"
e24bcc77 12254{
fa3a5360
AJ
12255#endif
12256/* We use char because int might match the return type of a gcc2
12257 builtin and then its argument prototype would still apply. */
12258char $ac_func ();
fa3a5360
AJ
12259/* The GNU C library defines this for functions which it implements
12260 to always fail with ENOSYS. Some functions are actually named
12261 something starting with __ and the normal name is an alias. */
12262#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12263choke me
12264#else
e24bcc77
AJ
12265char (*f) () = $ac_func;
12266#endif
12267#ifdef __cplusplus
12268}
fa3a5360
AJ
12269#endif
12270
e24bcc77
AJ
12271int
12272main ()
12273{
12274return f != $ac_func;
f5818d2f
AJ
12275 ;
12276 return 0;
12277}
12278_ACEOF
12279rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 12280if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
12281 (eval $ac_link) 2>&5
12282 ac_status=$?
daa2886c 12283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
12284 (exit $ac_status); } &&
12285 { ac_try='test -s conftest$ac_exeext'
daa2886c 12286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
12287 (eval $ac_try) 2>&5
12288 ac_status=$?
daa2886c 12289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 12290 (exit $ac_status); }; }; then
fa3a5360 12291 eval "$as_ac_var=yes"
93a5b868 12292else
f5818d2f 12293 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
12294sed 's/^/| /' conftest.$ac_ext >&5
12295
fa3a5360 12296eval "$as_ac_var=no"
93a5b868 12297fi
f5818d2f 12298rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
93a5b868 12299fi
fa3a5360
AJ
12300echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12301echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12302if test `eval echo '${'$as_ac_var'}'` = yes; then
12303 cat >>confdefs.h <<_ACEOF
12304#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
daa2886c 12305_ACEOF
93a5b868 12306
fa3a5360
AJ
12307else
12308 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12309echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12310if test "${ac_cv_lib_dl_dlopen+set}" = set; then
f5818d2f 12311 echo $ECHO_N "(cached) $ECHO_C" >&6
0623a6f3 12312else
fa3a5360
AJ
12313 ac_check_lib_save_LIBS=$LIBS
12314LIBS="-ldl $LIBS"
f5818d2f 12315cat >conftest.$ac_ext <<_ACEOF
daa2886c 12316#line $LINENO "configure"
e24bcc77
AJ
12317/* confdefs.h. */
12318_ACEOF
12319cat confdefs.h >>conftest.$ac_ext
12320cat >>conftest.$ac_ext <<_ACEOF
12321/* end confdefs.h. */
0623a6f3 12322
fa3a5360
AJ
12323/* Override any gcc2 internal prototype to avoid an error. */
12324#ifdef __cplusplus
12325extern "C"
12326#endif
12327/* We use char because int might match the return type of a gcc2
12328 builtin and then its argument prototype would still apply. */
12329char dlopen ();
f5818d2f
AJ
12330int
12331main ()
12332{
fa3a5360 12333dlopen ();
f5818d2f
AJ
12334 ;
12335 return 0;
12336}
12337_ACEOF
12338rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 12339if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
12340 (eval $ac_link) 2>&5
12341 ac_status=$?
daa2886c 12342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
12343 (exit $ac_status); } &&
12344 { ac_try='test -s conftest$ac_exeext'
daa2886c 12345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
12346 (eval $ac_try) 2>&5
12347 ac_status=$?
daa2886c 12348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 12349 (exit $ac_status); }; }; then
fa3a5360 12350 ac_cv_lib_dl_dlopen=yes
0623a6f3 12351else
f5818d2f 12352 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
12353sed 's/^/| /' conftest.$ac_ext >&5
12354
fa3a5360 12355ac_cv_lib_dl_dlopen=no
0623a6f3 12356fi
f5818d2f 12357rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fa3a5360 12358LIBS=$ac_check_lib_save_LIBS
0623a6f3 12359fi
fa3a5360
AJ
12360echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12361echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12362if test $ac_cv_lib_dl_dlopen = yes; then
f5818d2f 12363
daa2886c 12364cat >>confdefs.h <<\_ACEOF
fa3a5360 12365#define HAVE_DLOPEN 1
daa2886c 12366_ACEOF
0623a6f3 12367
fa3a5360
AJ
12368 DLLIBS="-ldl"
12369else
12370 LIBEXT="a"
0623a6f3
AJ
12371fi
12372
fa3a5360 12373fi
466ae143
AJ
12374done
12375
466ae143 12376else
fa3a5360 12377 LIBEXT="a"
466ae143
AJ
12378fi
12379
fa3a5360
AJ
12380done
12381
12382
12383 if test "$LIBEXT" = "so"
12384 then
fc09423d 12385 DLLFLAGS="$DLLFLAGS -fPIC"
7bf07d15 12386 DLLEXT=".so"
466ae143 12387 echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
f5818d2f
AJ
12388echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6
12389if test "${ac_cv_c_dll_gnuelf+set}" = set; then
12390 echo $ECHO_N "(cached) $ECHO_C" >&6
7e6ae4ba 12391else
67e8dc68
AJ
12392 ac_wine_try_cflags_saved=$CFLAGS
12393CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
12394cat >conftest.$ac_ext <<_ACEOF
daa2886c 12395#line $LINENO "configure"
e24bcc77
AJ
12396/* confdefs.h. */
12397_ACEOF
12398cat confdefs.h >>conftest.$ac_ext
12399cat >>conftest.$ac_ext <<_ACEOF
12400/* end confdefs.h. */
7e6ae4ba 12401
f5818d2f
AJ
12402int
12403main ()
12404{
67e8dc68 12405
f5818d2f
AJ
12406 ;
12407 return 0;
12408}
12409_ACEOF
12410rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 12411if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
12412 (eval $ac_link) 2>&5
12413 ac_status=$?
daa2886c 12414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
12415 (exit $ac_status); } &&
12416 { ac_try='test -s conftest$ac_exeext'
daa2886c 12417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
12418 (eval $ac_try) 2>&5
12419 ac_status=$?
daa2886c 12420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 12421 (exit $ac_status); }; }; then
37e5e7f4 12422 ac_cv_c_dll_gnuelf="yes"
7e6ae4ba 12423else
f5818d2f 12424 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
12425sed 's/^/| /' conftest.$ac_ext >&5
12426
f5818d2f 12427ac_cv_c_dll_gnuelf="no"
7e6ae4ba 12428fi
f5818d2f 12429rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
67e8dc68 12430CFLAGS=$ac_wine_try_cflags_saved
f5818d2f 12431fi
daa2886c 12432echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
f5818d2f 12433echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6
466ae143
AJ
12434 if test "$ac_cv_c_dll_gnuelf" = "yes"
12435 then
12436 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
6ac34ac6 12437 LDDLL="\$(CC) -shared -Wl,-Bsymbolic"
f2abe47d
AJ
12438 echo "$as_me:$LINENO: checking whether the linker accepts -z defs" >&5
12439echo $ECHO_N "checking whether the linker accepts -z defs... $ECHO_C" >&6
12440if test "${ac_cv_c_dll_zdefs+set}" = set; then
12441 echo $ECHO_N "(cached) $ECHO_C" >&6
12442else
12443 ac_wine_try_cflags_saved=$CFLAGS
12444CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
12445cat >conftest.$ac_ext <<_ACEOF
12446#line $LINENO "configure"
e24bcc77
AJ
12447/* confdefs.h. */
12448_ACEOF
12449cat confdefs.h >>conftest.$ac_ext
12450cat >>conftest.$ac_ext <<_ACEOF
12451/* end confdefs.h. */
f2abe47d
AJ
12452
12453int
12454main ()
12455{
12456
12457 ;
12458 return 0;
12459}
12460_ACEOF
12461rm -f conftest.$ac_objext conftest$ac_exeext
12462if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12463 (eval $ac_link) 2>&5
12464 ac_status=$?
12465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12466 (exit $ac_status); } &&
12467 { ac_try='test -s conftest$ac_exeext'
12468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12469 (eval $ac_try) 2>&5
12470 ac_status=$?
12471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472 (exit $ac_status); }; }; then
12473 ac_cv_c_dll_zdefs="yes"
12474else
12475 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
12476sed 's/^/| /' conftest.$ac_ext >&5
12477
f2abe47d
AJ
12478ac_cv_c_dll_zdefs="no"
12479fi
12480rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12481CFLAGS=$ac_wine_try_cflags_saved
12482fi
12483echo "$as_me:$LINENO: result: $ac_cv_c_dll_zdefs" >&5
12484echo "${ECHO_T}$ac_cv_c_dll_zdefs" >&6
12485 if test "$ac_cv_c_dll_zdefs" = "yes"
12486 then
6ac34ac6 12487 LDDLL="$LDDLL,-z,defs"
f2abe47d 12488 fi
4d52d379 12489
ef2d04d4
AJ
12490 echo "$as_me:$LINENO: checking whether the linker accepts --export-dynamic" >&5
12491echo $ECHO_N "checking whether the linker accepts --export-dynamic... $ECHO_C" >&6
12492if test "${ac_cv_c_export_dynamic+set}" = set; then
12493 echo $ECHO_N "(cached) $ECHO_C" >&6
12494else
12495 ac_wine_try_cflags_saved=$CFLAGS
12496CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
12497cat >conftest.$ac_ext <<_ACEOF
12498#line $LINENO "configure"
12499/* confdefs.h. */
12500_ACEOF
12501cat confdefs.h >>conftest.$ac_ext
12502cat >>conftest.$ac_ext <<_ACEOF
12503/* end confdefs.h. */
12504
12505int
12506main ()
12507{
12508
12509 ;
12510 return 0;
12511}
12512_ACEOF
12513rm -f conftest.$ac_objext conftest$ac_exeext
12514if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12515 (eval $ac_link) 2>&5
12516 ac_status=$?
12517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12518 (exit $ac_status); } &&
12519 { ac_try='test -s conftest$ac_exeext'
12520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12521 (eval $ac_try) 2>&5
12522 ac_status=$?
12523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12524 (exit $ac_status); }; }; then
12525 ac_cv_c_export_dynamic="yes"
12526else
12527 echo "$as_me: failed program was:" >&5
12528sed 's/^/| /' conftest.$ac_ext >&5
12529
12530ac_cv_c_export_dynamic="no"
12531fi
12532rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12533CFLAGS=$ac_wine_try_cflags_saved
12534fi
12535echo "$as_me:$LINENO: result: $ac_cv_c_export_dynamic" >&5
12536echo "${ECHO_T}$ac_cv_c_export_dynamic" >&6
12537 if test "$ac_cv_c_export_dynamic" = "yes"
12538 then
c6d44be3
AJ
12539 LDEXECFLAGS="-Wl,--export-dynamic"
12540
ef2d04d4 12541 fi
c6d44be3
AJ
12542
12543 case $host_cpu in
12544 *i[3456789]86*)
12545 echo "$as_me:$LINENO: checking whether we can relocate the executable to 0x00110000" >&5
12546echo $ECHO_N "checking whether we can relocate the executable to 0x00110000... $ECHO_C" >&6
12547if test "${ac_cv_ld_reloc_exec+set}" = set; then
12548 echo $ECHO_N "(cached) $ECHO_C" >&6
12549else
12550 saved_CFLAGS="$CFLAGS"
12551 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x00110400"
12552 if test "$cross_compiling" = yes; then
12553 ac_cv_ld_reloc_exec="no"
12554else
12555 cat >conftest.$ac_ext <<_ACEOF
12556#line $LINENO "configure"
12557/* confdefs.h. */
12558_ACEOF
12559cat confdefs.h >>conftest.$ac_ext
12560cat >>conftest.$ac_ext <<_ACEOF
12561/* end confdefs.h. */
12562#include <unistd.h>
12563 int main() { return (sbrk(32*1024*1024) == (void *)-1); }
12564_ACEOF
12565rm -f conftest$ac_exeext
12566if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12567 (eval $ac_link) 2>&5
12568 ac_status=$?
12569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12572 (eval $ac_try) 2>&5
12573 ac_status=$?
12574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12575 (exit $ac_status); }; }; then
12576 ac_cv_ld_reloc_exec="yes"
12577else
12578 echo "$as_me: program exited with status $ac_status" >&5
12579echo "$as_me: failed program was:" >&5
12580sed 's/^/| /' conftest.$ac_ext >&5
12581
12582( exit $ac_status )
12583ac_cv_ld_reloc_exec="no"
12584fi
12585rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12586fi
12587 CFLAGS="$saved_CFLAGS"
12588fi
12589echo "$as_me:$LINENO: result: $ac_cv_ld_reloc_exec" >&5
12590echo "${ECHO_T}$ac_cv_ld_reloc_exec" >&6
12591 if test "$ac_cv_ld_reloc_exec" = "yes"
12592 then
12593 LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x00110400"
12594 fi
12595 ;;
12596 esac
12597
466ae143
AJ
12598 else
12599 echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
f5818d2f
AJ
12600echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6
12601if test "${ac_cv_c_dll_unixware+set}" = set; then
12602 echo $ECHO_N "(cached) $ECHO_C" >&6
4b992b0f 12603else
67e8dc68
AJ
12604 ac_wine_try_cflags_saved=$CFLAGS
12605CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
12606cat >conftest.$ac_ext <<_ACEOF
daa2886c 12607#line $LINENO "configure"
e24bcc77
AJ
12608/* confdefs.h. */
12609_ACEOF
12610cat confdefs.h >>conftest.$ac_ext
12611cat >>conftest.$ac_ext <<_ACEOF
12612/* end confdefs.h. */
4b992b0f 12613
f5818d2f
AJ
12614int
12615main ()
12616{
67e8dc68 12617
f5818d2f
AJ
12618 ;
12619 return 0;
12620}
12621_ACEOF
12622rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 12623if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
12624 (eval $ac_link) 2>&5
12625 ac_status=$?
daa2886c 12626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
12627 (exit $ac_status); } &&
12628 { ac_try='test -s conftest$ac_exeext'
daa2886c 12629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
12630 (eval $ac_try) 2>&5
12631 ac_status=$?
daa2886c 12632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 12633 (exit $ac_status); }; }; then
e977d6ca 12634 ac_cv_c_dll_unixware="yes"
4b992b0f 12635else
f5818d2f 12636 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
12637sed 's/^/| /' conftest.$ac_ext >&5
12638
f5818d2f 12639ac_cv_c_dll_unixware="no"
4b992b0f 12640fi
f5818d2f 12641rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
67e8dc68 12642CFLAGS=$ac_wine_try_cflags_saved
f5818d2f 12643fi
daa2886c 12644echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
f5818d2f 12645echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6
466ae143
AJ
12646 if test "$ac_cv_c_dll_unixware" = "yes"
12647 then
12648 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
6ac34ac6 12649 LDDLL="\$(CC) -Wl,-G,-B,symbolic"
794bf0fd
PH
12650
12651 else
12652 echo "$as_me:$LINENO: checking whether we can build a Mach-O (Mac OS X/Darwin) dll" >&5
12653echo $ECHO_N "checking whether we can build a Mach-O (Mac OS X/Darwin) dll... $ECHO_C" >&6
12654if test "${ac_cv_c_dll_macho+set}" = set; then
12655 echo $ECHO_N "(cached) $ECHO_C" >&6
12656else
12657 ac_wine_try_cflags_saved=$CFLAGS
12658CFLAGS="$CFLAGS -bundle"
12659cat >conftest.$ac_ext <<_ACEOF
12660#line $LINENO "configure"
12661/* confdefs.h. */
12662_ACEOF
12663cat confdefs.h >>conftest.$ac_ext
12664cat >>conftest.$ac_ext <<_ACEOF
12665/* end confdefs.h. */
12666
12667int
12668main ()
12669{
12670
12671 ;
12672 return 0;
12673}
12674_ACEOF
12675rm -f conftest.$ac_objext conftest$ac_exeext
12676if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12677 (eval $ac_link) 2>&5
12678 ac_status=$?
12679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12680 (exit $ac_status); } &&
12681 { ac_try='test -s conftest$ac_exeext'
12682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12683 (eval $ac_try) 2>&5
12684 ac_status=$?
12685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686 (exit $ac_status); }; }; then
12687 ac_cv_c_dll_macho="yes"
12688else
12689 echo "$as_me: failed program was:" >&5
12690sed 's/^/| /' conftest.$ac_ext >&5
12691
12692ac_cv_c_dll_macho="no"
12693fi
12694rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12695CFLAGS=$ac_wine_try_cflags_saved
12696fi
12697echo "$as_me:$LINENO: result: $ac_cv_c_dll_macho" >&5
12698echo "${ECHO_T}$ac_cv_c_dll_macho" >&6
12699 if test "$ac_cv_c_dll_macho" = "yes"
12700 then
12701 LIBEXT="dylib"
12702 LDDLL="\$(CC) -bundle -flat_namespace -undefined suppress"
12703 LDSHARED="\$(CC) -dynamiclib"
12704 CFLAGS="$CFLAGS -ffixed-r13 -no-cpp-precomp"
12705 fi
466ae143
AJ
12706 fi
12707 fi
fa3a5360 12708 fi
c3c587eb
AJ
12709
12710 CROSSTEST=""
12711
12712 if test "$cross_compiling" = "no"
12713 then
610e89ec 12714 for ac_prog in i586-mingw32msvc-gcc i386-mingw32-gcc mingw-gcc
c3c587eb
AJ
12715do
12716 # Extract the first word of "$ac_prog", so it can be a program name with args.
12717set dummy $ac_prog; ac_word=$2
12718echo "$as_me:$LINENO: checking for $ac_word" >&5
12719echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12720if test "${ac_cv_prog_CROSSCC+set}" = set; then
12721 echo $ECHO_N "(cached) $ECHO_C" >&6
12722else
12723 if test -n "$CROSSCC"; then
12724 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
12725else
12726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12727for as_dir in $PATH
12728do
12729 IFS=$as_save_IFS
12730 test -z "$as_dir" && as_dir=.
12731 for ac_exec_ext in '' $ac_executable_extensions; do
12732 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12733 ac_cv_prog_CROSSCC="$ac_prog"
12734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12735 break 2
12736 fi
12737done
12738done
12739
12740fi
12741fi
12742CROSSCC=$ac_cv_prog_CROSSCC
12743if test -n "$CROSSCC"; then
12744 echo "$as_me:$LINENO: result: $CROSSCC" >&5
12745echo "${ECHO_T}$CROSSCC" >&6
12746else
12747 echo "$as_me:$LINENO: result: no" >&5
12748echo "${ECHO_T}no" >&6
12749fi
12750
12751 test -n "$CROSSCC" && break
12752done
12753test -n "$CROSSCC" || CROSSCC="false"
12754
610e89ec 12755 for ac_prog in i586-mingw32msvc-dlltool i386-mingw32-dlltool mingw-dlltool
c3c587eb
AJ
12756do
12757 # Extract the first word of "$ac_prog", so it can be a program name with args.
12758set dummy $ac_prog; ac_word=$2
12759echo "$as_me:$LINENO: checking for $ac_word" >&5
12760echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12761if test "${ac_cv_prog_DLLTOOL+set}" = set; then
12762 echo $ECHO_N "(cached) $ECHO_C" >&6
12763else
12764 if test -n "$DLLTOOL"; then
12765 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12766else
12767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12768for as_dir in $PATH
12769do
12770 IFS=$as_save_IFS
12771 test -z "$as_dir" && as_dir=.
12772 for ac_exec_ext in '' $ac_executable_extensions; do
12773 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12774 ac_cv_prog_DLLTOOL="$ac_prog"
12775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12776 break 2
12777 fi
12778done
12779done
12780
12781fi
12782fi
12783DLLTOOL=$ac_cv_prog_DLLTOOL
12784if test -n "$DLLTOOL"; then
12785 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
12786echo "${ECHO_T}$DLLTOOL" >&6
12787else
12788 echo "$as_me:$LINENO: result: no" >&5
12789echo "${ECHO_T}no" >&6
12790fi
12791
12792 test -n "$DLLTOOL" && break
12793done
12794test -n "$DLLTOOL" || DLLTOOL="false"
12795
610e89ec 12796 for ac_prog in i586-mingw32msvc-windres i386-mingw32-windres mingw-windres
21ee3295
AJ
12797do
12798 # Extract the first word of "$ac_prog", so it can be a program name with args.
12799set dummy $ac_prog; ac_word=$2
12800echo "$as_me:$LINENO: checking for $ac_word" >&5
12801echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12802if test "${ac_cv_prog_CROSSWINDRES+set}" = set; then
12803 echo $ECHO_N "(cached) $ECHO_C" >&6
12804else
12805 if test -n "$CROSSWINDRES"; then
12806 ac_cv_prog_CROSSWINDRES="$CROSSWINDRES" # Let the user override the test.
12807else
12808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12809for as_dir in $PATH
12810do
12811 IFS=$as_save_IFS
12812 test -z "$as_dir" && as_dir=.
12813 for ac_exec_ext in '' $ac_executable_extensions; do
12814 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12815 ac_cv_prog_CROSSWINDRES="$ac_prog"
12816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12817 break 2
12818 fi
12819done
12820done
12821
12822fi
12823fi
12824CROSSWINDRES=$ac_cv_prog_CROSSWINDRES
12825if test -n "$CROSSWINDRES"; then
12826 echo "$as_me:$LINENO: result: $CROSSWINDRES" >&5
12827echo "${ECHO_T}$CROSSWINDRES" >&6
12828else
12829 echo "$as_me:$LINENO: result: no" >&5
12830echo "${ECHO_T}no" >&6
12831fi
12832
12833 test -n "$CROSSWINDRES" && break
12834done
12835test -n "$CROSSWINDRES" || CROSSWINDRES="false"
12836
c3c587eb
AJ
12837 if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
12838 fi
fa3a5360
AJ
12839 ;;
12840esac
7e6ae4ba 12841
d48ca948 12842if test "$LIBEXT" = "a"; then
daa2886c 12843 { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
f5818d2f
AJ
12844It is currently not possible to build Wine without shared library
12845(.so) support to allow transparent switch between .so and .dll files.
12846If you are using Linux, you will need a newer binutils.
12847" >&5
12848echo "$as_me: error: could not find a way to build shared libraries.
12849It is currently not possible to build Wine without shared library
12850(.so) support to allow transparent switch between .so and .dll files.
12851If you are using Linux, you will need a newer binutils.
12852" >&2;}
12853 { (exit 1); exit 1; }; }
d48ca948
HT
12854fi
12855
fc01b729
AJ
12856case $build_os in
12857 cygwin*|mingw32*)
7ab9a715 12858 LDPATH="PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$PATH\""
794bf0fd
PH
12859 ;;
12860 darwin*|macosx*)
12861 LDPATH="DYLD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$DYLD_LIBRARY_PATH\""
7bf07d15 12862 ;;
fc01b729 12863 *)
7ab9a715 12864 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$LD_LIBRARY_PATH\""
7bf07d15 12865 ;;
fc01b729
AJ
12866esac
12867
7bf07d15
AJ
12868case $host_os in
12869 mingw32*)
546839f4
AJ
12870 CRTLIBS="-lmsvcrt"
12871 ;;
12872esac
12873
12874case $host_os in
12875 linux*)
a628c13e 12876 WINE_BINARIES="wine-glibc wine-kthread wine-pthread"
546839f4 12877
a628c13e 12878 MAIN_BINARY="wine-glibc"
546839f4 12879
546839f4
AJ
12880 ;;
12881 *)
12882 WINE_BINARIES="wine-kthread"
12883
12884 MAIN_BINARY="wine-kthread"
12885
12886 ;;
7bf07d15 12887esac
daa2886c
AJ
12888
12889
67e8dc68
AJ
12890if test "$LIBEXT" = "so"
12891then
12892 # Extract the first word of "ldd", so it can be a program name with args.
12893set dummy ldd; ac_word=$2
12894echo "$as_me:$LINENO: checking for $ac_word" >&5
12895echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12896if test "${ac_cv_path_LDD+set}" = set; then
12897 echo $ECHO_N "(cached) $ECHO_C" >&6
12898else
12899 case $LDD in
12900 [\\/]* | ?:[\\/]*)
12901 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
12902 ;;
12903 *)
12904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11af04e3
AJ
12905as_dummy="/sbin:/usr/sbin:$PATH"
12906for as_dir in $as_dummy
67e8dc68
AJ
12907do
12908 IFS=$as_save_IFS
12909 test -z "$as_dir" && as_dir=.
12910 for ac_exec_ext in '' $ac_executable_extensions; do
12911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12912 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
12913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12914 break 2
12915 fi
12916done
12917done
12918
12919 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
12920 ;;
12921esac
12922fi
12923LDD=$ac_cv_path_LDD
12924
12925if test -n "$LDD"; then
12926 echo "$as_me:$LINENO: result: $LDD" >&5
12927echo "${ECHO_T}$LDD" >&6
12928else
12929 echo "$as_me:$LINENO: result: no" >&5
12930echo "${ECHO_T}no" >&6
12931fi
12932
daa2886c 12933
67e8dc68
AJ
12934echo "$as_me:$LINENO: checking for -lX11 soname" >&5
12935echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6
12936if test "${ac_cv_lib_soname_X11+set}" = set; then
12937 echo $ECHO_N "(cached) $ECHO_C" >&6
12938else
12939 ac_get_soname_save_LIBS=$LIBS
12940LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
12941 cat >conftest.$ac_ext <<_ACEOF
12942#line $LINENO "configure"
e24bcc77
AJ
12943/* confdefs.h. */
12944_ACEOF
12945cat confdefs.h >>conftest.$ac_ext
12946cat >>conftest.$ac_ext <<_ACEOF
12947/* end confdefs.h. */
fa3a5360 12948
67e8dc68
AJ
12949/* Override any gcc2 internal prototype to avoid an error. */
12950#ifdef __cplusplus
12951extern "C"
12952#endif
12953/* We use char because int might match the return type of a gcc2
12954 builtin and then its argument prototype would still apply. */
12955char XCreateWindow ();
67e8dc68
AJ
12956int
12957main ()
12958{
12959XCreateWindow ();
12960 ;
12961 return 0;
12962}
12963_ACEOF
12964rm -f conftest.$ac_objext conftest$ac_exeext
12965if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12966 (eval $ac_link) 2>&5
12967 ac_status=$?
12968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12969 (exit $ac_status); } &&
12970 { ac_try='test -s conftest$ac_exeext'
12971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12972 (eval $ac_try) 2>&5
12973 ac_status=$?
12974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12975 (exit $ac_status); }; }; then
47f021c4 12976 ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.so | sed 's/^.*\(libX11\.so[^ ]*\).*$/\1/'`
67e8dc68
AJ
12977 if test "x$ac_cv_lib_soname_X11" = "x"
12978 then
12979 ac_cv_lib_soname_X11="libX11.so"
12980 fi
12981else
12982 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
12983sed 's/^/| /' conftest.$ac_ext >&5
12984
67e8dc68
AJ
12985ac_cv_lib_soname_X11="libX11.so"
12986fi
12987rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12988 LIBS=$ac_get_soname_save_LIBS
12989fi
12990echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
12991echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6
12992if test "x$ac_cv_lib_soname_X11" != xNONE
12993then
12994cat >>confdefs.h <<_ACEOF
12995#define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
12996_ACEOF
12997fi
0adad95d 12998
67e8dc68
AJ
12999echo "$as_me:$LINENO: checking for -lXext soname" >&5
13000echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6
13001if test "${ac_cv_lib_soname_Xext+set}" = set; then
13002 echo $ECHO_N "(cached) $ECHO_C" >&6
13003else
13004 ac_get_soname_save_LIBS=$LIBS
13005LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
13006 cat >conftest.$ac_ext <<_ACEOF
13007#line $LINENO "configure"
e24bcc77
AJ
13008/* confdefs.h. */
13009_ACEOF
13010cat confdefs.h >>conftest.$ac_ext
13011cat >>conftest.$ac_ext <<_ACEOF
13012/* end confdefs.h. */
67e8dc68
AJ
13013
13014/* Override any gcc2 internal prototype to avoid an error. */
13015#ifdef __cplusplus
13016extern "C"
13017#endif
13018/* We use char because int might match the return type of a gcc2
13019 builtin and then its argument prototype would still apply. */
13020char XextCreateExtension ();
67e8dc68
AJ
13021int
13022main ()
13023{
13024XextCreateExtension ();
13025 ;
13026 return 0;
13027}
13028_ACEOF
13029rm -f conftest.$ac_objext conftest$ac_exeext
13030if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13031 (eval $ac_link) 2>&5
13032 ac_status=$?
13033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13034 (exit $ac_status); } &&
13035 { ac_try='test -s conftest$ac_exeext'
13036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13037 (eval $ac_try) 2>&5
13038 ac_status=$?
13039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13040 (exit $ac_status); }; }; then
47f021c4 13041 ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.so | sed 's/^.*\(libXext\.so[^ ]*\).*$/\1/'`
67e8dc68
AJ
13042 if test "x$ac_cv_lib_soname_Xext" = "x"
13043 then
13044 ac_cv_lib_soname_Xext="libXext.so"
13045 fi
13046else
13047 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
13048sed 's/^/| /' conftest.$ac_ext >&5
13049
67e8dc68
AJ
13050ac_cv_lib_soname_Xext="libXext.so"
13051fi
13052rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13053 LIBS=$ac_get_soname_save_LIBS
13054fi
13055echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
13056echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6
13057if test "x$ac_cv_lib_soname_Xext" != xNONE
13058then
13059cat >>confdefs.h <<_ACEOF
13060#define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
13061_ACEOF
13062fi
13063
13064echo "$as_me:$LINENO: checking for -lXrender soname" >&5
13065echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6
13066if test "${ac_cv_lib_soname_Xrender+set}" = set; then
13067 echo $ECHO_N "(cached) $ECHO_C" >&6
13068else
13069 ac_get_soname_save_LIBS=$LIBS
13070LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
13071 cat >conftest.$ac_ext <<_ACEOF
13072#line $LINENO "configure"
e24bcc77
AJ
13073/* confdefs.h. */
13074_ACEOF
13075cat confdefs.h >>conftest.$ac_ext
13076cat >>conftest.$ac_ext <<_ACEOF
13077/* end confdefs.h. */
67e8dc68
AJ
13078
13079/* Override any gcc2 internal prototype to avoid an error. */
13080#ifdef __cplusplus
13081extern "C"
13082#endif
13083/* We use char because int might match the return type of a gcc2
13084 builtin and then its argument prototype would still apply. */
13085char XRenderQueryExtension ();
67e8dc68
AJ
13086int
13087main ()
13088{
13089XRenderQueryExtension ();
13090 ;
13091 return 0;
13092}
13093_ACEOF
13094rm -f conftest.$ac_objext conftest$ac_exeext
13095if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13096 (eval $ac_link) 2>&5
13097 ac_status=$?
13098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13099 (exit $ac_status); } &&
13100 { ac_try='test -s conftest$ac_exeext'
13101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13102 (eval $ac_try) 2>&5
13103 ac_status=$?
13104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105 (exit $ac_status); }; }; then
47f021c4 13106 ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.so | sed 's/^.*\(libXrender\.so[^ ]*\).*$/\1/'`
67e8dc68
AJ
13107 if test "x$ac_cv_lib_soname_Xrender" = "x"
13108 then
13109 ac_cv_lib_soname_Xrender="libXrender.so"
13110 fi
13111else
13112 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
13113sed 's/^/| /' conftest.$ac_ext >&5
13114
67e8dc68
AJ
13115ac_cv_lib_soname_Xrender="libXrender.so"
13116fi
13117rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13118 LIBS=$ac_get_soname_save_LIBS
13119fi
13120echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
13121echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6
13122if test "x$ac_cv_lib_soname_Xrender" != xNONE
13123then
13124cat >>confdefs.h <<_ACEOF
13125#define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
13126_ACEOF
13127fi
13128
13129echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
13130echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6
13131if test "${ac_cv_lib_soname_freetype+set}" = set; then
13132 echo $ECHO_N "(cached) $ECHO_C" >&6
13133else
13134 ac_get_soname_save_LIBS=$LIBS
13135LIBS="-lfreetype $X_LIBS $LIBS"
13136 cat >conftest.$ac_ext <<_ACEOF
13137#line $LINENO "configure"
e24bcc77
AJ
13138/* confdefs.h. */
13139_ACEOF
13140cat confdefs.h >>conftest.$ac_ext
13141cat >>conftest.$ac_ext <<_ACEOF
13142/* end confdefs.h. */
67e8dc68
AJ
13143
13144/* Override any gcc2 internal prototype to avoid an error. */
13145#ifdef __cplusplus
13146extern "C"
13147#endif
13148/* We use char because int might match the return type of a gcc2
13149 builtin and then its argument prototype would still apply. */
13150char FT_Init_FreeType ();
67e8dc68
AJ
13151int
13152main ()
13153{
13154FT_Init_FreeType ();
13155 ;
13156 return 0;
13157}
13158_ACEOF
13159rm -f conftest.$ac_objext conftest$ac_exeext
13160if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13161 (eval $ac_link) 2>&5
13162 ac_status=$?
13163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13164 (exit $ac_status); } &&
13165 { ac_try='test -s conftest$ac_exeext'
13166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13167 (eval $ac_try) 2>&5
13168 ac_status=$?
13169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13170 (exit $ac_status); }; }; then
47f021c4 13171 ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.so | sed 's/^.*\(libfreetype\.so[^ ]*\).*$/\1/'`
67e8dc68
AJ
13172 if test "x$ac_cv_lib_soname_freetype" = "x"
13173 then
13174 ac_cv_lib_soname_freetype="libfreetype.so"
13175 fi
13176else
13177 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
13178sed 's/^/| /' conftest.$ac_ext >&5
13179
67e8dc68
AJ
13180ac_cv_lib_soname_freetype="libfreetype.so"
13181fi
13182rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13183 LIBS=$ac_get_soname_save_LIBS
13184fi
13185echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
13186echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6
13187if test "x$ac_cv_lib_soname_freetype" != xNONE
13188then
13189cat >>confdefs.h <<_ACEOF
13190#define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
13191_ACEOF
13192fi
f061f767 13193
56ab2b3e
LU
13194echo "$as_me:$LINENO: checking for -lGL soname" >&5
13195echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6
13196if test "${ac_cv_lib_soname_GL+set}" = set; then
13197 echo $ECHO_N "(cached) $ECHO_C" >&6
13198else
13199 ac_get_soname_save_LIBS=$LIBS
13200LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
13201 cat >conftest.$ac_ext <<_ACEOF
13202#line $LINENO "configure"
e24bcc77
AJ
13203/* confdefs.h. */
13204_ACEOF
13205cat confdefs.h >>conftest.$ac_ext
13206cat >>conftest.$ac_ext <<_ACEOF
13207/* end confdefs.h. */
56ab2b3e
LU
13208
13209/* Override any gcc2 internal prototype to avoid an error. */
13210#ifdef __cplusplus
13211extern "C"
13212#endif
13213/* We use char because int might match the return type of a gcc2
13214 builtin and then its argument prototype would still apply. */
13215char glXQueryExtension ();
13216int
13217main ()
13218{
13219glXQueryExtension ();
13220 ;
13221 return 0;
13222}
13223_ACEOF
13224rm -f conftest.$ac_objext conftest$ac_exeext
13225if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13226 (eval $ac_link) 2>&5
13227 ac_status=$?
13228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13229 (exit $ac_status); } &&
13230 { ac_try='test -s conftest$ac_exeext'
13231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13232 (eval $ac_try) 2>&5
13233 ac_status=$?
13234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13235 (exit $ac_status); }; }; then
47f021c4 13236 ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.so | sed 's/^.*\(libGL\.so[^ ]*\).*$/\1/'`
56ab2b3e
LU
13237 if test "x$ac_cv_lib_soname_GL" = "x"
13238 then
13239 ac_cv_lib_soname_GL="libGL.so"
13240 fi
13241else
13242 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
13243sed 's/^/| /' conftest.$ac_ext >&5
13244
56ab2b3e
LU
13245ac_cv_lib_soname_GL="libGL.so"
13246fi
13247rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13248 LIBS=$ac_get_soname_save_LIBS
13249fi
13250echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
13251echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6
13252if test "x$ac_cv_lib_soname_GL" != xNONE
13253then
13254cat >>confdefs.h <<_ACEOF
13255#define SONAME_LIBGL "$ac_cv_lib_soname_GL"
13256_ACEOF
13257fi
13258
f061f767
MM
13259echo "$as_me:$LINENO: checking for -lcups soname" >&5
13260echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6
13261if test "${ac_cv_lib_soname_cups+set}" = set; then
13262 echo $ECHO_N "(cached) $ECHO_C" >&6
13263else
13264 ac_get_soname_save_LIBS=$LIBS
13265LIBS="-lcups $LIBS"
13266 cat >conftest.$ac_ext <<_ACEOF
13267#line $LINENO "configure"
e24bcc77
AJ
13268/* confdefs.h. */
13269_ACEOF
13270cat confdefs.h >>conftest.$ac_ext
13271cat >>conftest.$ac_ext <<_ACEOF
13272/* end confdefs.h. */
f061f767
MM
13273
13274/* Override any gcc2 internal prototype to avoid an error. */
13275#ifdef __cplusplus
13276extern "C"
13277#endif
13278/* We use char because int might match the return type of a gcc2
13279 builtin and then its argument prototype would still apply. */
13280char cupsGetDefault ();
13281int
13282main ()
13283{
13284cupsGetDefault ();
13285 ;
13286 return 0;
13287}
13288_ACEOF
13289rm -f conftest.$ac_objext conftest$ac_exeext
13290if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13291 (eval $ac_link) 2>&5
13292 ac_status=$?
13293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13294 (exit $ac_status); } &&
13295 { ac_try='test -s conftest$ac_exeext'
13296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13297 (eval $ac_try) 2>&5
13298 ac_status=$?
13299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300 (exit $ac_status); }; }; then
47f021c4 13301 ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.so | sed 's/^.*\(libcups\.so[^ ]*\).*$/\1/'`
f061f767
MM
13302 if test "x$ac_cv_lib_soname_cups" = "x"
13303 then
13304 ac_cv_lib_soname_cups="libcups.so"
13305 fi
13306else
13307 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
13308sed 's/^/| /' conftest.$ac_ext >&5
13309
f061f767
MM
13310ac_cv_lib_soname_cups="libcups.so"
13311fi
13312rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13313 LIBS=$ac_get_soname_save_LIBS
13314fi
13315echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
13316echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6
13317if test "x$ac_cv_lib_soname_cups" != xNONE
13318then
13319cat >>confdefs.h <<_ACEOF
13320#define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
13321_ACEOF
13322fi
4691b185
CM
13323
13324echo "$as_me:$LINENO: checking for -ljack soname" >&5
13325echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6
13326if test "${ac_cv_lib_soname_jack+set}" = set; then
13327 echo $ECHO_N "(cached) $ECHO_C" >&6
13328else
13329 ac_get_soname_save_LIBS=$LIBS
13330LIBS="-ljack $LIBS"
13331 cat >conftest.$ac_ext <<_ACEOF
13332#line $LINENO "configure"
e24bcc77
AJ
13333/* confdefs.h. */
13334_ACEOF
13335cat confdefs.h >>conftest.$ac_ext
13336cat >>conftest.$ac_ext <<_ACEOF
13337/* end confdefs.h. */
4691b185
CM
13338
13339/* Override any gcc2 internal prototype to avoid an error. */
13340#ifdef __cplusplus
13341extern "C"
13342#endif
13343/* We use char because int might match the return type of a gcc2
13344 builtin and then its argument prototype would still apply. */
13345char jack_client_new ();
13346int
13347main ()
13348{
13349jack_client_new ();
13350 ;
13351 return 0;
13352}
13353_ACEOF
13354rm -f conftest.$ac_objext conftest$ac_exeext
13355if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13356 (eval $ac_link) 2>&5
13357 ac_status=$?
13358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13359 (exit $ac_status); } &&
13360 { ac_try='test -s conftest$ac_exeext'
13361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13362 (eval $ac_try) 2>&5
13363 ac_status=$?
13364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13365 (exit $ac_status); }; }; then
47f021c4 13366 ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep libjack\\.so | sed 's/^.*\(libjack\.so[^ ]*\).*$/\1/'`
4691b185
CM
13367 if test "x$ac_cv_lib_soname_jack" = "x"
13368 then
13369 ac_cv_lib_soname_jack="libjack.so"
13370 fi
13371else
13372 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
13373sed 's/^/| /' conftest.$ac_ext >&5
13374
4691b185
CM
13375ac_cv_lib_soname_jack="libjack.so"
13376fi
13377rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13378 LIBS=$ac_get_soname_save_LIBS
13379fi
13380echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5
13381echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6
13382if test "x$ac_cv_lib_soname_jack" != xNONE
13383then
13384cat >>confdefs.h <<_ACEOF
13385#define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
13386_ACEOF
13387fi
852c7ae4 13388
6e12807b
HD
13389echo "$as_me:$LINENO: checking for -lfontconfig soname" >&5
13390echo $ECHO_N "checking for -lfontconfig soname... $ECHO_C" >&6
13391if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
13392 echo $ECHO_N "(cached) $ECHO_C" >&6
13393else
13394 ac_get_soname_save_LIBS=$LIBS
13395LIBS="-lfontconfig $LIBS"
13396 cat >conftest.$ac_ext <<_ACEOF
13397#line $LINENO "configure"
13398/* confdefs.h. */
13399_ACEOF
13400cat confdefs.h >>conftest.$ac_ext
13401cat >>conftest.$ac_ext <<_ACEOF
13402/* end confdefs.h. */
13403
13404/* Override any gcc2 internal prototype to avoid an error. */
13405#ifdef __cplusplus
13406extern "C"
13407#endif
13408/* We use char because int might match the return type of a gcc2
13409 builtin and then its argument prototype would still apply. */
13410char FcInit ();
13411int
13412main ()
13413{
13414FcInit ();
13415 ;
13416 return 0;
13417}
13418_ACEOF
13419rm -f conftest.$ac_objext conftest$ac_exeext
13420if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13421 (eval $ac_link) 2>&5
13422 ac_status=$?
13423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13424 (exit $ac_status); } &&
13425 { ac_try='test -s conftest$ac_exeext'
13426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13427 (eval $ac_try) 2>&5
13428 ac_status=$?
13429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13430 (exit $ac_status); }; }; then
13431 ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep libfontconfig\\.so | sed 's/^.*\(libfontconfig\.so[^ ]*\).*$/\1/'`
13432 if test "x$ac_cv_lib_soname_fontconfig" = "x"
13433 then
13434 ac_cv_lib_soname_fontconfig="libfontconfig.so"
13435 fi
13436else
13437 echo "$as_me: failed program was:" >&5
13438sed 's/^/| /' conftest.$ac_ext >&5
13439
13440ac_cv_lib_soname_fontconfig="libfontconfig.so"
13441fi
13442rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13443 LIBS=$ac_get_soname_save_LIBS
13444fi
13445echo "$as_me:$LINENO: result: $ac_cv_lib_soname_fontconfig" >&5
13446echo "${ECHO_T}$ac_cv_lib_soname_fontconfig" >&6
13447if test "x$ac_cv_lib_soname_fontconfig" != xNONE
13448then
13449cat >>confdefs.h <<_ACEOF
13450#define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
13451_ACEOF
7999469e 13452fi
6e12807b 13453
852c7ae4
DH
13454echo "$as_me:$LINENO: checking for -lssl soname" >&5
13455echo $ECHO_N "checking for -lssl soname... $ECHO_C" >&6
13456if test "${ac_cv_lib_soname_ssl+set}" = set; then
13457 echo $ECHO_N "(cached) $ECHO_C" >&6
13458else
13459 ac_get_soname_save_LIBS=$LIBS
13460LIBS="-lssl $LIBS"
13461 cat >conftest.$ac_ext <<_ACEOF
13462#line $LINENO "configure"
13463/* confdefs.h. */
13464_ACEOF
13465cat confdefs.h >>conftest.$ac_ext
13466cat >>conftest.$ac_ext <<_ACEOF
13467/* end confdefs.h. */
13468
13469/* Override any gcc2 internal prototype to avoid an error. */
13470#ifdef __cplusplus
13471extern "C"
13472#endif
13473/* We use char because int might match the return type of a gcc2
13474 builtin and then its argument prototype would still apply. */
13475char SSL_library_init ();
13476int
13477main ()
13478{
13479SSL_library_init ();
13480 ;
13481 return 0;
13482}
13483_ACEOF
13484rm -f conftest.$ac_objext conftest$ac_exeext
13485if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13486 (eval $ac_link) 2>&5
13487 ac_status=$?
13488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13489 (exit $ac_status); } &&
13490 { ac_try='test -s conftest$ac_exeext'
13491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13492 (eval $ac_try) 2>&5
13493 ac_status=$?
13494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495 (exit $ac_status); }; }; then
47f021c4 13496 ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep libssl\\.so | sed 's/^.*\(libssl\.so[^ ]*\).*$/\1/'`
852c7ae4
DH
13497 if test "x$ac_cv_lib_soname_ssl" = "x"
13498 then
13499 ac_cv_lib_soname_ssl="libssl.so"
13500 fi
13501else
13502 echo "$as_me: failed program was:" >&5
13503sed 's/^/| /' conftest.$ac_ext >&5
13504
13505ac_cv_lib_soname_ssl="libssl.so"
13506fi
13507rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13508 LIBS=$ac_get_soname_save_LIBS
13509fi
13510echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ssl" >&5
13511echo "${ECHO_T}$ac_cv_lib_soname_ssl" >&6
13512if test "x$ac_cv_lib_soname_ssl" != xNONE
13513then
13514cat >>confdefs.h <<_ACEOF
13515#define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
13516_ACEOF
13517fi
13518
13519echo "$as_me:$LINENO: checking for -lcrypto soname" >&5
13520echo $ECHO_N "checking for -lcrypto soname... $ECHO_C" >&6
13521if test "${ac_cv_lib_soname_crypto+set}" = set; then
13522 echo $ECHO_N "(cached) $ECHO_C" >&6
13523else
13524 ac_get_soname_save_LIBS=$LIBS
13525LIBS="-lcrypto $LIBS"
13526 cat >conftest.$ac_ext <<_ACEOF
13527#line $LINENO "configure"
13528/* confdefs.h. */
13529_ACEOF
13530cat confdefs.h >>conftest.$ac_ext
13531cat >>conftest.$ac_ext <<_ACEOF
13532/* end confdefs.h. */
13533
13534/* Override any gcc2 internal prototype to avoid an error. */
13535#ifdef __cplusplus
13536extern "C"
13537#endif
13538/* We use char because int might match the return type of a gcc2
13539 builtin and then its argument prototype would still apply. */
13540char BIO_new_socket ();
13541int
13542main ()
13543{
13544BIO_new_socket ();
13545 ;
13546 return 0;
13547}
13548_ACEOF
13549rm -f conftest.$ac_objext conftest$ac_exeext
13550if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13551 (eval $ac_link) 2>&5
13552 ac_status=$?
13553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13554 (exit $ac_status); } &&
13555 { ac_try='test -s conftest$ac_exeext'
13556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13557 (eval $ac_try) 2>&5
13558 ac_status=$?
13559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560 (exit $ac_status); }; }; then
47f021c4 13561 ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep libcrypto\\.so | sed 's/^.*\(libcrypto\.so[^ ]*\).*$/\1/'`
852c7ae4
DH
13562 if test "x$ac_cv_lib_soname_crypto" = "x"
13563 then
13564 ac_cv_lib_soname_crypto="libcrypto.so"
13565 fi
13566else
13567 echo "$as_me: failed program was:" >&5
13568sed 's/^/| /' conftest.$ac_ext >&5
13569
13570ac_cv_lib_soname_crypto="libcrypto.so"
13571fi
13572rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13573 LIBS=$ac_get_soname_save_LIBS
13574fi
13575echo "$as_me:$LINENO: result: $ac_cv_lib_soname_crypto" >&5
13576echo "${ECHO_T}$ac_cv_lib_soname_crypto" >&6
13577if test "x$ac_cv_lib_soname_crypto" != xNONE
13578then
13579cat >>confdefs.h <<_ACEOF
13580#define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
13581_ACEOF
13582fi
9557d1bf
MM
13583
13584echo "$as_me:$LINENO: checking for -lncurses soname" >&5
13585echo $ECHO_N "checking for -lncurses soname... $ECHO_C" >&6
13586if test "${ac_cv_lib_soname_ncurses+set}" = set; then
13587 echo $ECHO_N "(cached) $ECHO_C" >&6
13588else
13589 ac_get_soname_save_LIBS=$LIBS
13590LIBS="-lncurses $LIBS"
13591 cat >conftest.$ac_ext <<_ACEOF
13592#line $LINENO "configure"
13593/* confdefs.h. */
13594_ACEOF
13595cat confdefs.h >>conftest.$ac_ext
13596cat >>conftest.$ac_ext <<_ACEOF
13597/* end confdefs.h. */
13598
13599/* Override any gcc2 internal prototype to avoid an error. */
13600#ifdef __cplusplus
13601extern "C"
13602#endif
13603/* We use char because int might match the return type of a gcc2
13604 builtin and then its argument prototype would still apply. */
13605char waddch ();
13606int
13607main ()
13608{
13609waddch ();
13610 ;
13611 return 0;
13612}
13613_ACEOF
13614rm -f conftest.$ac_objext conftest$ac_exeext
13615if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13616 (eval $ac_link) 2>&5
13617 ac_status=$?
13618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13619 (exit $ac_status); } &&
13620 { ac_try='test -s conftest$ac_exeext'
13621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13622 (eval $ac_try) 2>&5
13623 ac_status=$?
13624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625 (exit $ac_status); }; }; then
13626 ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep libncurses\\.so | sed 's/^.*\(libncurses\.so[^ ]*\).*$/\1/'`
13627 if test "x$ac_cv_lib_soname_ncurses" = "x"
13628 then
13629 ac_cv_lib_soname_ncurses="libncurses.so"
13630 fi
13631else
13632 echo "$as_me: failed program was:" >&5
13633sed 's/^/| /' conftest.$ac_ext >&5
13634
13635ac_cv_lib_soname_ncurses="libncurses.so"
13636fi
13637rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13638 LIBS=$ac_get_soname_save_LIBS
13639fi
13640echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ncurses" >&5
13641echo "${ECHO_T}$ac_cv_lib_soname_ncurses" >&6
13642if test "x$ac_cv_lib_soname_ncurses" != xNONE
13643then
13644cat >>confdefs.h <<_ACEOF
13645#define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
13646_ACEOF
13647fi
13648
13649echo "$as_me:$LINENO: checking for -lcurses soname" >&5
13650echo $ECHO_N "checking for -lcurses soname... $ECHO_C" >&6
13651if test "${ac_cv_lib_soname_curses+set}" = set; then
13652 echo $ECHO_N "(cached) $ECHO_C" >&6
13653else
13654 ac_get_soname_save_LIBS=$LIBS
13655LIBS="-lcurses $LIBS"
13656 cat >conftest.$ac_ext <<_ACEOF
13657#line $LINENO "configure"
13658/* confdefs.h. */
13659_ACEOF
13660cat confdefs.h >>conftest.$ac_ext
13661cat >>conftest.$ac_ext <<_ACEOF
13662/* end confdefs.h. */
13663
13664/* Override any gcc2 internal prototype to avoid an error. */
13665#ifdef __cplusplus
13666extern "C"
13667#endif
13668/* We use char because int might match the return type of a gcc2
13669 builtin and then its argument prototype would still apply. */
13670char waddch ();
13671int
13672main ()
13673{
13674waddch ();
13675 ;
13676 return 0;
13677}
13678_ACEOF
13679rm -f conftest.$ac_objext conftest$ac_exeext
13680if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13681 (eval $ac_link) 2>&5
13682 ac_status=$?
13683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13684 (exit $ac_status); } &&
13685 { ac_try='test -s conftest$ac_exeext'
13686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13687 (eval $ac_try) 2>&5
13688 ac_status=$?
13689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13690 (exit $ac_status); }; }; then
13691 ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep libcurses\\.so | sed 's/^.*\(libcurses\.so[^ ]*\).*$/\1/'`
13692 if test "x$ac_cv_lib_soname_curses" = "x"
13693 then
13694 ac_cv_lib_soname_curses="libcurses.so"
13695 fi
13696else
13697 echo "$as_me: failed program was:" >&5
13698sed 's/^/| /' conftest.$ac_ext >&5
13699
13700ac_cv_lib_soname_curses="libcurses.so"
13701fi
13702rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13703 LIBS=$ac_get_soname_save_LIBS
13704fi
13705echo "$as_me:$LINENO: result: $ac_cv_lib_soname_curses" >&5
13706echo "${ECHO_T}$ac_cv_lib_soname_curses" >&6
13707if test "x$ac_cv_lib_soname_curses" != xNONE
13708then
13709cat >>confdefs.h <<_ACEOF
13710#define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
13711_ACEOF
13712fi
67e8dc68
AJ
13713fi
13714
13715
13716
1bb94039
PS
13717# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13718# for constant arguments. Useless!
daa2886c 13719echo "$as_me:$LINENO: checking for working alloca.h" >&5
f5818d2f
AJ
13720echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
13721if test "${ac_cv_working_alloca_h+set}" = set; then
13722 echo $ECHO_N "(cached) $ECHO_C" >&6
1bb94039 13723else
f5818d2f 13724 cat >conftest.$ac_ext <<_ACEOF
daa2886c 13725#line $LINENO "configure"
e24bcc77
AJ
13726/* confdefs.h. */
13727_ACEOF
13728cat confdefs.h >>conftest.$ac_ext
13729cat >>conftest.$ac_ext <<_ACEOF
13730/* end confdefs.h. */
1bb94039 13731#include <alloca.h>
f5818d2f
AJ
13732int
13733main ()
13734{
13735char *p = (char *) alloca (2 * sizeof (int));
13736 ;
13737 return 0;
13738}
13739_ACEOF
13740rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 13741if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
13742 (eval $ac_link) 2>&5
13743 ac_status=$?
daa2886c 13744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
13745 (exit $ac_status); } &&
13746 { ac_try='test -s conftest$ac_exeext'
daa2886c 13747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
13748 (eval $ac_try) 2>&5
13749 ac_status=$?
daa2886c 13750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
13751 (exit $ac_status); }; }; then
13752 ac_cv_working_alloca_h=yes
13753else
13754 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
13755sed 's/^/| /' conftest.$ac_ext >&5
13756
f5818d2f
AJ
13757ac_cv_working_alloca_h=no
13758fi
13759rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13760fi
daa2886c 13761echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
f5818d2f
AJ
13762echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13763if test $ac_cv_working_alloca_h = yes; then
13764
daa2886c 13765cat >>confdefs.h <<\_ACEOF
1bb94039 13766#define HAVE_ALLOCA_H 1
daa2886c 13767_ACEOF
1bb94039
PS
13768
13769fi
13770
daa2886c 13771echo "$as_me:$LINENO: checking for alloca" >&5
f5818d2f
AJ
13772echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13773if test "${ac_cv_func_alloca_works+set}" = set; then
13774 echo $ECHO_N "(cached) $ECHO_C" >&6
1bb94039 13775else
f5818d2f 13776 cat >conftest.$ac_ext <<_ACEOF
daa2886c 13777#line $LINENO "configure"
e24bcc77
AJ
13778/* confdefs.h. */
13779_ACEOF
13780cat confdefs.h >>conftest.$ac_ext
13781cat >>conftest.$ac_ext <<_ACEOF
13782/* end confdefs.h. */
1bb94039
PS
13783#ifdef __GNUC__
13784# define alloca __builtin_alloca
13785#else
18ad24a7
EP
13786# ifdef _MSC_VER
13787# include <malloc.h>
13788# define alloca _alloca
1bb94039 13789# else
18ad24a7
EP
13790# if HAVE_ALLOCA_H
13791# include <alloca.h>
1bb94039 13792# else
18ad24a7
EP
13793# ifdef _AIX
13794 #pragma alloca
13795# else
13796# ifndef alloca /* predefined by HP cc +Olibcalls */
1bb94039 13797char *alloca ();
18ad24a7 13798# endif
1bb94039
PS
13799# endif
13800# endif
13801# endif
13802#endif
13803
f5818d2f
AJ
13804int
13805main ()
13806{
13807char *p = (char *) alloca (1);
13808 ;
13809 return 0;
13810}
13811_ACEOF
13812rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 13813if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
13814 (eval $ac_link) 2>&5
13815 ac_status=$?
daa2886c 13816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
13817 (exit $ac_status); } &&
13818 { ac_try='test -s conftest$ac_exeext'
daa2886c 13819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
13820 (eval $ac_try) 2>&5
13821 ac_status=$?
daa2886c 13822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 13823 (exit $ac_status); }; }; then
1bb94039
PS
13824 ac_cv_func_alloca_works=yes
13825else
f5818d2f 13826 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
13827sed 's/^/| /' conftest.$ac_ext >&5
13828
f5818d2f 13829ac_cv_func_alloca_works=no
1bb94039 13830fi
f5818d2f 13831rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1bb94039 13832fi
daa2886c 13833echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
f5818d2f 13834echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
1bb94039 13835
1bb94039 13836if test $ac_cv_func_alloca_works = yes; then
f5818d2f 13837
daa2886c 13838cat >>confdefs.h <<\_ACEOF
1bb94039 13839#define HAVE_ALLOCA 1
daa2886c 13840_ACEOF
1bb94039 13841
f5818d2f 13842else
1bb94039 13843 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
f5818d2f
AJ
13844# that cause trouble. Some versions do not even contain alloca or
13845# contain a buggy version. If you still want to use their alloca,
13846# use ar to extract alloca.o from them instead of compiling alloca.c.
13847
13848ALLOCA=alloca.$ac_objext
13849
daa2886c 13850cat >>confdefs.h <<\_ACEOF
1bb94039 13851#define C_ALLOCA 1
daa2886c
AJ
13852_ACEOF
13853
1bb94039 13854
daa2886c 13855echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
f5818d2f
AJ
13856echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13857if test "${ac_cv_os_cray+set}" = set; then
13858 echo $ECHO_N "(cached) $ECHO_C" >&6
1bb94039 13859else
f5818d2f 13860 cat >conftest.$ac_ext <<_ACEOF
daa2886c 13861#line $LINENO "configure"
e24bcc77
AJ
13862/* confdefs.h. */
13863_ACEOF
13864cat confdefs.h >>conftest.$ac_ext
13865cat >>conftest.$ac_ext <<_ACEOF
13866/* end confdefs.h. */
1bb94039
PS
13867#if defined(CRAY) && ! defined(CRAY2)
13868webecray
13869#else
13870wenotbecray
13871#endif
13872
f5818d2f 13873_ACEOF
1bb94039 13874if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11af04e3 13875 $EGREP "webecray" >/dev/null 2>&1; then
1bb94039
PS
13876 ac_cv_os_cray=yes
13877else
1bb94039
PS
13878 ac_cv_os_cray=no
13879fi
13880rm -f conftest*
13881
13882fi
daa2886c 13883echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
f5818d2f 13884echo "${ECHO_T}$ac_cv_os_cray" >&6
1bb94039 13885if test $ac_cv_os_cray = yes; then
f5818d2f
AJ
13886 for ac_func in _getb67 GETB67 getb67; do
13887 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
daa2886c 13888echo "$as_me:$LINENO: checking for $ac_func" >&5
f5818d2f
AJ
13889echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13890if eval "test \"\${$as_ac_var+set}\" = set"; then
13891 echo $ECHO_N "(cached) $ECHO_C" >&6
13892else
13893 cat >conftest.$ac_ext <<_ACEOF
daa2886c 13894#line $LINENO "configure"
e24bcc77
AJ
13895/* confdefs.h. */
13896_ACEOF
13897cat confdefs.h >>conftest.$ac_ext
13898cat >>conftest.$ac_ext <<_ACEOF
13899/* end confdefs.h. */
1bb94039 13900/* System header to define __stub macros and hopefully few prototypes,
e24bcc77
AJ
13901 which can conflict with char $ac_func (); below.
13902 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13903 <limits.h> exists even on freestanding compilers. */
13904#ifdef __STDC__
13905# include <limits.h>
13906#else
13907# include <assert.h>
13908#endif
1bb94039 13909/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
13910#ifdef __cplusplus
13911extern "C"
e24bcc77 13912{
f5818d2f 13913#endif
1bb94039 13914/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
13915 builtin and then its argument prototype would still apply. */
13916char $ac_func ();
1bb94039
PS
13917/* The GNU C library defines this for functions which it implements
13918 to always fail with ENOSYS. Some functions are actually named
13919 something starting with __ and the normal name is an alias. */
13920#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13921choke me
13922#else
e24bcc77
AJ
13923char (*f) () = $ac_func;
13924#endif
13925#ifdef __cplusplus
13926}
1bb94039
PS
13927#endif
13928
e24bcc77
AJ
13929int
13930main ()
13931{
13932return f != $ac_func;
f5818d2f
AJ
13933 ;
13934 return 0;
13935}
13936_ACEOF
13937rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 13938if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
13939 (eval $ac_link) 2>&5
13940 ac_status=$?
daa2886c 13941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
13942 (exit $ac_status); } &&
13943 { ac_try='test -s conftest$ac_exeext'
daa2886c 13944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
13945 (eval $ac_try) 2>&5
13946 ac_status=$?
daa2886c 13947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
13948 (exit $ac_status); }; }; then
13949 eval "$as_ac_var=yes"
13950else
13951 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
13952sed 's/^/| /' conftest.$ac_ext >&5
13953
f5818d2f
AJ
13954eval "$as_ac_var=no"
13955fi
13956rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13957fi
daa2886c 13958echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
f5818d2f
AJ
13959echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13960if test `eval echo '${'$as_ac_var'}'` = yes; then
13961
daa2886c 13962cat >>confdefs.h <<_ACEOF
1bb94039 13963#define CRAY_STACKSEG_END $ac_func
daa2886c 13964_ACEOF
1bb94039 13965
f5818d2f 13966 break
1bb94039
PS
13967fi
13968
f5818d2f 13969 done
1bb94039
PS
13970fi
13971
daa2886c 13972echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
f5818d2f
AJ
13973echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13974if test "${ac_cv_c_stack_direction+set}" = set; then
13975 echo $ECHO_N "(cached) $ECHO_C" >&6
1bb94039
PS
13976else
13977 if test "$cross_compiling" = yes; then
13978 ac_cv_c_stack_direction=0
13979else
f5818d2f 13980 cat >conftest.$ac_ext <<_ACEOF
daa2886c 13981#line $LINENO "configure"
e24bcc77
AJ
13982/* confdefs.h. */
13983_ACEOF
13984cat confdefs.h >>conftest.$ac_ext
13985cat >>conftest.$ac_ext <<_ACEOF
13986/* end confdefs.h. */
f5818d2f 13987int
1bb94039
PS
13988find_stack_direction ()
13989{
13990 static char *addr = 0;
13991 auto char dummy;
13992 if (addr == 0)
13993 {
13994 addr = &dummy;
13995 return find_stack_direction ();
13996 }
13997 else
13998 return (&dummy > addr) ? 1 : -1;
13999}
f5818d2f
AJ
14000
14001int
1bb94039
PS
14002main ()
14003{
f5818d2f 14004 exit (find_stack_direction () < 0);
1bb94039 14005}
f5818d2f
AJ
14006_ACEOF
14007rm -f conftest$ac_exeext
daa2886c 14008if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
14009 (eval $ac_link) 2>&5
14010 ac_status=$?
daa2886c 14011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 14012 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
daa2886c 14013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
14014 (eval $ac_try) 2>&5
14015 ac_status=$?
daa2886c 14016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 14017 (exit $ac_status); }; }; then
1bb94039
PS
14018 ac_cv_c_stack_direction=1
14019else
f5818d2f
AJ
14020 echo "$as_me: program exited with status $ac_status" >&5
14021echo "$as_me: failed program was:" >&5
e24bcc77
AJ
14022sed 's/^/| /' conftest.$ac_ext >&5
14023
daa2886c 14024( exit $ac_status )
f5818d2f 14025ac_cv_c_stack_direction=-1
1bb94039 14026fi
80e34dbb 14027rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1bb94039 14028fi
1bb94039 14029fi
daa2886c 14030echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
f5818d2f 14031echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
1bb94039 14032
daa2886c 14033cat >>confdefs.h <<_ACEOF
1bb94039 14034#define STACK_DIRECTION $ac_cv_c_stack_direction
daa2886c
AJ
14035_ACEOF
14036
1bb94039
PS
14037
14038fi
14039
daa2886c
AJ
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
b9627c14
SE
14079
14080
6caeb721
PS
14081
14082
14083
647c1a33 14084
8d7b8e57 14085
c45bbad3 14086
6f7a2044 14087
7add08a3 14088
b2d937d5 14089
daa2886c
AJ
14090
14091
2487ccea
AJ
14092for ac_func in \
14093 _lwp_create \
6f7a2044 14094 _lwp_self \
81ecb52c
PS
14095 _pclose \
14096 _popen \
0a8e15ab 14097 _snprintf \
c45bbad3 14098 _spawnvp \
81ecb52c
PS
14099 _stricmp \
14100 _strnicmp \
be514b90 14101 _vsnprintf \
b9627c14 14102 chsize \
2487ccea 14103 clone \
d6deb6db
JG
14104 finite \
14105 fpclass \
b9627c14 14106 ftruncate \
3f1ed52d 14107 ftruncate64 \
b9010214
PS
14108 getnetbyaddr \
14109 getnetbyname \
647c1a33 14110 getopt_long \
2487ccea 14111 getpagesize \
b9010214
PS
14112 getprotobyname \
14113 getprotobynumber \
142dab8c 14114 getpwuid \
b9010214 14115 getservbyport \
b2d937d5 14116 gettid \
8d7b8e57 14117 gettimeofday \
b9010214 14118 inet_network \
3f1ed52d 14119 lseek64 \
27bb311d 14120 lstat \
2487ccea 14121 memmove \
a85b0a6d 14122 mmap \
81ecb52c 14123 pclose \
81ecb52c 14124 popen \
b9627c14 14125 pread \
f1a0de99 14126 pwrite \
2487ccea 14127 rfork \
b9010214 14128 select \
2487ccea 14129 sendmsg \
b9010214 14130 settimeofday \
2487ccea 14131 sigaltstack \
0a8e15ab 14132 snprintf \
7add08a3 14133 spawnvp \
b9010214 14134 statfs \
3b96efc0 14135 strcasecmp \
2487ccea 14136 strerror \
3b96efc0 14137 strncasecmp \
2487ccea
AJ
14138 tcgetattr \
14139 timegm \
14140 usleep \
14141 vfscanf \
be514b90 14142 vsnprintf \
2487ccea
AJ
14143 wait4 \
14144 waitpid \
14145
e2991ea7 14146do
f5818d2f 14147as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
daa2886c 14148echo "$as_me:$LINENO: checking for $ac_func" >&5
f5818d2f
AJ
14149echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14150if eval "test \"\${$as_ac_var+set}\" = set"; then
14151 echo $ECHO_N "(cached) $ECHO_C" >&6
14152else
14153 cat >conftest.$ac_ext <<_ACEOF
daa2886c 14154#line $LINENO "configure"
e24bcc77
AJ
14155/* confdefs.h. */
14156_ACEOF
14157cat confdefs.h >>conftest.$ac_ext
14158cat >>conftest.$ac_ext <<_ACEOF
14159/* end confdefs.h. */
e2991ea7 14160/* System header to define __stub macros and hopefully few prototypes,
e24bcc77
AJ
14161 which can conflict with char $ac_func (); below.
14162 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14163 <limits.h> exists even on freestanding compilers. */
14164#ifdef __STDC__
14165# include <limits.h>
14166#else
14167# include <assert.h>
14168#endif
e2991ea7 14169/* Override any gcc2 internal prototype to avoid an error. */
f5818d2f
AJ
14170#ifdef __cplusplus
14171extern "C"
e24bcc77 14172{
f5818d2f 14173#endif
e2bfa4c7 14174/* We use char because int might match the return type of a gcc2
f5818d2f
AJ
14175 builtin and then its argument prototype would still apply. */
14176char $ac_func ();
e2991ea7
AJ
14177/* The GNU C library defines this for functions which it implements
14178 to always fail with ENOSYS. Some functions are actually named
14179 something starting with __ and the normal name is an alias. */
14180#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14181choke me
14182#else
e24bcc77
AJ
14183char (*f) () = $ac_func;
14184#endif
14185#ifdef __cplusplus
14186}
e2991ea7
AJ
14187#endif
14188
e24bcc77
AJ
14189int
14190main ()
14191{
14192return f != $ac_func;
f5818d2f
AJ
14193 ;
14194 return 0;
14195}
14196_ACEOF
14197rm -f conftest.$ac_objext conftest$ac_exeext
daa2886c 14198if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
14199 (eval $ac_link) 2>&5
14200 ac_status=$?
daa2886c 14201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
14202 (exit $ac_status); } &&
14203 { ac_try='test -s conftest$ac_exeext'
daa2886c 14204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
14205 (eval $ac_try) 2>&5
14206 ac_status=$?
daa2886c 14207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
14208 (exit $ac_status); }; }; then
14209 eval "$as_ac_var=yes"
14210else
14211 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
14212sed 's/^/| /' conftest.$ac_ext >&5
14213
f5818d2f
AJ
14214eval "$as_ac_var=no"
14215fi
14216rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14217fi
daa2886c 14218echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
f5818d2f
AJ
14219echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14220if test `eval echo '${'$as_ac_var'}'` = yes; then
daa2886c 14221 cat >>confdefs.h <<_ACEOF
f5818d2f 14222#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
daa2886c 14223_ACEOF
7e6ae4ba 14224
e2991ea7
AJ
14225fi
14226done
14227
daa2886c
AJ
14228
14229
14230
14231
14232
14233
14234
14235
14236
14237
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
e7c6d17b
RZ
14286
14287
14288
daa2886c 14289
127ec92b 14290
57bf4506
PS
14291
14292
14293
ff4525ce 14294
647c1a33 14295
4691b185 14296
b6938952 14297
c44555bb 14298
38fa5ad1 14299
c26b7dba 14300
b133454a 14301
852c7ae4 14302
6ce0569a 14303
c6c404dc 14304
0b1a82aa 14305
2581db8f 14306
6e12807b 14307
daa2886c
AJ
14308
14309
f5818d2f 14310for ac_header in \
96336324 14311 arpa/inet.h \
2487ccea 14312 arpa/nameser.h \
f061f767 14313 cups/cups.h \
81ecb52c 14314 direct.h \
2487ccea
AJ
14315 elf.h \
14316 float.h \
6e12807b 14317 fontconfig/fontconfig.h \
647c1a33 14318 getopt.h \
2e8e2334 14319 ieeefp.h \
81ecb52c 14320 io.h \
4691b185 14321 jack/jack.h \
2487ccea 14322 libio.h \
01f78aaa 14323 libutil.h \
96336324 14324 link.h \
2487ccea 14325 linux/cdrom.h \
e7c6d17b 14326 linux/hdreg.h \
c9b3b2e8 14327 linux/input.h \
028e9a17 14328 linux/joystick.h \
e7c6d17b 14329 linux/major.h \
0314a65a 14330 linux/param.h \
533e7eea 14331 linux/serial.h \
2487ccea 14332 linux/ucdrom.h \
b133454a 14333 machine/cpu.h \
5d1a6385 14334 netdb.h \
2487ccea 14335 netinet/in.h \
7a4e5997 14336 netinet/in_systm.h \
96336324 14337 netinet/tcp.h \
38fa5ad1 14338 netinet/tcp_fsm.h \
852c7ae4 14339 openssl/ssl.h \
2581db8f 14340 process.h \
0b1a82aa 14341 pthread.h \
2d7be870 14342 pty.h \
ff4525ce 14343 pwd.h \
b6938952 14344 regex.h \
96336324 14345 sched.h \
e7c6d17b 14346 scsi/sg.h \
c6c404dc 14347 scsi/scsi.h \
6ce0569a 14348 scsi/scsi_ioctl.h \
96336324 14349 socket.h \
eda758eb 14350 stdint.h \
2487ccea
AJ
14351 strings.h \
14352 sys/cdio.h \
13277480 14353 sys/errno.h \
2487ccea
AJ
14354 sys/file.h \
14355 sys/filio.h \
6098399a 14356 sys/inttypes.h \
c3e06df9 14357 sys/ioctl.h \
96336324 14358 sys/ipc.h \
624cbd7c 14359 sys/link.h \
2487ccea 14360 sys/lwp.h \
13277480 14361 sys/mman.h \
2487ccea 14362 sys/modem.h \
96336324 14363 sys/msg.h \
2487ccea 14364 sys/param.h \
57bf4506 14365 sys/poll.h \
2af03e45 14366 sys/ptrace.h \
8a1bdb30 14367 sys/reg.h \
c26b7dba 14368 sys/scsiio.h \
96336324 14369 sys/shm.h \
e7c6d17b 14370 sys/signal.h \
96336324 14371 sys/socket.h \
2487ccea
AJ
14372 sys/sockio.h \
14373 sys/statfs.h \
14374 sys/strtio.h \
14375 sys/syscall.h \
127ec92b 14376 sys/sysctl.h \
81ecb52c 14377 sys/time.h \
57bf4506 14378 sys/times.h \
45e56818
SE
14379 sys/uio.h \
14380 sys/un.h \
96336324
PS
14381 sys/v86.h \
14382 sys/v86intr.h \
2487ccea 14383 sys/vfs.h \
96336324 14384 sys/vm86.h \
e7c6d17b 14385 sys/wait.h \
2487ccea 14386 syscall.h \
c3e06df9 14387 termios.h \
81ecb52c 14388 unistd.h \
57bf4506 14389 utime.h \
c44555bb 14390 valgrind/memcheck.h
2487ccea 14391
02e90087 14392do
f5818d2f 14393as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
daa2886c
AJ
14394if eval "test \"\${$as_ac_Header+set}\" = set"; then
14395 echo "$as_me:$LINENO: checking for $ac_header" >&5
f5818d2f
AJ
14396echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14397if eval "test \"\${$as_ac_Header+set}\" = set"; then
14398 echo $ECHO_N "(cached) $ECHO_C" >&6
daa2886c
AJ
14399fi
14400echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14401echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
f5818d2f 14402else
daa2886c
AJ
14403 # Is the header compilable?
14404echo "$as_me:$LINENO: checking $ac_header usability" >&5
14405echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14406cat >conftest.$ac_ext <<_ACEOF
14407#line $LINENO "configure"
e24bcc77
AJ
14408/* confdefs.h. */
14409_ACEOF
14410cat confdefs.h >>conftest.$ac_ext
14411cat >>conftest.$ac_ext <<_ACEOF
14412/* end confdefs.h. */
daa2886c
AJ
14413$ac_includes_default
14414#include <$ac_header>
14415_ACEOF
14416rm -f conftest.$ac_objext
14417if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14418 (eval $ac_compile) 2>&5
14419 ac_status=$?
14420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14421 (exit $ac_status); } &&
14422 { ac_try='test -s conftest.$ac_objext'
14423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14424 (eval $ac_try) 2>&5
14425 ac_status=$?
14426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14427 (exit $ac_status); }; }; then
14428 ac_header_compiler=yes
14429else
14430 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
14431sed 's/^/| /' conftest.$ac_ext >&5
14432
daa2886c
AJ
14433ac_header_compiler=no
14434fi
14435rm -f conftest.$ac_objext conftest.$ac_ext
14436echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14437echo "${ECHO_T}$ac_header_compiler" >&6
14438
14439# Is the header present?
14440echo "$as_me:$LINENO: checking $ac_header presence" >&5
14441echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14442cat >conftest.$ac_ext <<_ACEOF
14443#line $LINENO "configure"
e24bcc77
AJ
14444/* confdefs.h. */
14445_ACEOF
14446cat confdefs.h >>conftest.$ac_ext
14447cat >>conftest.$ac_ext <<_ACEOF
14448/* end confdefs.h. */
f5818d2f
AJ
14449#include <$ac_header>
14450_ACEOF
daa2886c 14451if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
f5818d2f
AJ
14452 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14453 ac_status=$?
11af04e3 14454 grep -v '^ *+' conftest.er1 >conftest.err
f5818d2f
AJ
14455 rm -f conftest.er1
14456 cat conftest.err >&5
daa2886c 14457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
14458 (exit $ac_status); } >/dev/null; then
14459 if test -s conftest.err; then
14460 ac_cpp_err=$ac_c_preproc_warn_flag
14461 else
14462 ac_cpp_err=
14463 fi
14464else
14465 ac_cpp_err=yes
14466fi
14467if test -z "$ac_cpp_err"; then
daa2886c 14468 ac_header_preproc=yes
f5818d2f
AJ
14469else
14470 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
14471sed 's/^/| /' conftest.$ac_ext >&5
14472
daa2886c 14473 ac_header_preproc=no
02e90087 14474fi
f5818d2f 14475rm -f conftest.err conftest.$ac_ext
daa2886c
AJ
14476echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14477echo "${ECHO_T}$ac_header_preproc" >&6
14478
14479# So? What about this header?
14480case $ac_header_compiler:$ac_header_preproc in
14481 yes:no )
14482 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14483echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14484 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
e24bcc77
AJ
14485echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14486 (
14487 cat <<\_ASBOX
14488## ------------------------------------ ##
14489## Report this to bug-autoconf@gnu.org. ##
14490## ------------------------------------ ##
14491_ASBOX
14492 ) |
14493 sed "s/^/$as_me: WARNING: /" >&2
14494 ;;
daa2886c
AJ
14495 no:yes )
14496 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14497echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14498 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14499echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14500 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
e24bcc77
AJ
14501echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14502 (
14503 cat <<\_ASBOX
14504## ------------------------------------ ##
14505## Report this to bug-autoconf@gnu.org. ##
14506## ------------------------------------ ##
14507_ASBOX
14508 ) |
14509 sed "s/^/$as_me: WARNING: /" >&2
14510 ;;
daa2886c
AJ
14511esac
14512echo "$as_me:$LINENO: checking for $ac_header" >&5
14513echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14514if eval "test \"\${$as_ac_Header+set}\" = set"; then
14515 echo $ECHO_N "(cached) $ECHO_C" >&6
14516else
14517 eval "$as_ac_Header=$ac_header_preproc"
02e90087 14518fi
daa2886c 14519echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
f5818d2f 14520echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
daa2886c
AJ
14521
14522fi
f5818d2f 14523if test `eval echo '${'$as_ac_Header'}'` = yes; then
daa2886c 14524 cat >>confdefs.h <<_ACEOF
f5818d2f 14525#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
daa2886c 14526_ACEOF
f5818d2f 14527
02e90087 14528fi
daa2886c 14529
02e90087
AJ
14530done
14531
daa2886c 14532echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
f5818d2f
AJ
14533echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
14534if test "${ac_cv_header_stat_broken+set}" = set; then
14535 echo $ECHO_N "(cached) $ECHO_C" >&6
e2991ea7 14536else
f5818d2f 14537 cat >conftest.$ac_ext <<_ACEOF
daa2886c 14538#line $LINENO "configure"
e24bcc77
AJ
14539/* confdefs.h. */
14540_ACEOF
14541cat confdefs.h >>conftest.$ac_ext
14542cat >>conftest.$ac_ext <<_ACEOF
14543/* end confdefs.h. */
e2991ea7
AJ
14544#include <sys/types.h>
14545#include <sys/stat.h>
14546
14547#if defined(S_ISBLK) && defined(S_IFDIR)
14548# if S_ISBLK (S_IFDIR)
14549You lose.
14550# endif
14551#endif
14552
14553#if defined(S_ISBLK) && defined(S_IFCHR)
14554# if S_ISBLK (S_IFCHR)
14555You lose.
14556# endif
14557#endif
14558
14559#if defined(S_ISLNK) && defined(S_IFREG)
14560# if S_ISLNK (S_IFREG)
14561You lose.
14562# endif
14563#endif
14564
14565#if defined(S_ISSOCK) && defined(S_IFREG)
14566# if S_ISSOCK (S_IFREG)
14567You lose.
14568# endif
14569#endif
14570
f5818d2f 14571_ACEOF
e2991ea7 14572if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11af04e3 14573 $EGREP "You lose" >/dev/null 2>&1; then
e2991ea7
AJ
14574 ac_cv_header_stat_broken=yes
14575else
e2991ea7
AJ
14576 ac_cv_header_stat_broken=no
14577fi
14578rm -f conftest*
14579
14580fi
daa2886c 14581echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
f5818d2f 14582echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
e2991ea7 14583if test $ac_cv_header_stat_broken = yes; then
f5818d2f 14584
daa2886c 14585cat >>confdefs.h <<\_ACEOF
e2991ea7 14586#define STAT_MACROS_BROKEN 1
daa2886c 14587_ACEOF
e2991ea7
AJ
14588
14589fi
14590
daa2886c
AJ
14591
14592
6cef4cdc
GP
14593
14594
14595for ac_header in sys/mount.h sys/user.h
14596do
14597as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14598echo "$as_me:$LINENO: checking for $ac_header" >&5
14599echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14600if eval "test \"\${$as_ac_Header+set}\" = set"; then
14601 echo $ECHO_N "(cached) $ECHO_C" >&6
14602else
14603 cat >conftest.$ac_ext <<_ACEOF
14604#line $LINENO "configure"
e24bcc77
AJ
14605/* confdefs.h. */
14606_ACEOF
14607cat confdefs.h >>conftest.$ac_ext
14608cat >>conftest.$ac_ext <<_ACEOF
14609/* end confdefs.h. */
63ae7fee
PS
14610#include <sys/types.h>
14611 #if HAVE_SYS_PARAM_H
14612 # include <sys/param.h>
6cef4cdc
GP
14613 #endif
14614
14615#include <$ac_header>
14616_ACEOF
14617rm -f conftest.$ac_objext
14618if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14619 (eval $ac_compile) 2>&5
14620 ac_status=$?
14621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14622 (exit $ac_status); } &&
14623 { ac_try='test -s conftest.$ac_objext'
14624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14625 (eval $ac_try) 2>&5
14626 ac_status=$?
14627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14628 (exit $ac_status); }; }; then
14629 eval "$as_ac_Header=yes"
14630else
14631 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
14632sed 's/^/| /' conftest.$ac_ext >&5
14633
6cef4cdc
GP
14634eval "$as_ac_Header=no"
14635fi
14636rm -f conftest.$ac_objext conftest.$ac_ext
14637fi
14638echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14639echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14640if test `eval echo '${'$as_ac_Header'}'` = yes; then
14641 cat >>confdefs.h <<_ACEOF
14642#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14643_ACEOF
14644
14645fi
14646
14647done
14648
14649
14650
044b5c41 14651
e24bcc77 14652
044b5c41 14653
044b5c41 14654
bcb6ecf8
GP
14655for ac_header in net/if.h net/if_arp.h net/if_dl.h net/if_types.h net/route.h
14656do
14657as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14658echo "$as_me:$LINENO: checking for $ac_header" >&5
14659echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14660if eval "test \"\${$as_ac_Header+set}\" = set"; then
14661 echo $ECHO_N "(cached) $ECHO_C" >&6
14662else
14663 cat >conftest.$ac_ext <<_ACEOF
14664#line $LINENO "configure"
14665/* confdefs.h. */
14666_ACEOF
14667cat confdefs.h >>conftest.$ac_ext
14668cat >>conftest.$ac_ext <<_ACEOF
14669/* end confdefs.h. */
14670#include <sys/types.h>
14671 #if HAVE_SYS_SOCKET_H
14672 # include <sys/socket.h>
14673 #endif
044b5c41 14674
bcb6ecf8
GP
14675#include <$ac_header>
14676_ACEOF
14677rm -f conftest.$ac_objext
14678if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14679 (eval $ac_compile) 2>&5
14680 ac_status=$?
14681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14682 (exit $ac_status); } &&
14683 { ac_try='test -s conftest.$ac_objext'
14684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14685 (eval $ac_try) 2>&5
14686 ac_status=$?
14687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14688 (exit $ac_status); }; }; then
14689 eval "$as_ac_Header=yes"
14690else
14691 echo "$as_me: failed program was:" >&5
14692sed 's/^/| /' conftest.$ac_ext >&5
14693
14694eval "$as_ac_Header=no"
14695fi
14696rm -f conftest.$ac_objext conftest.$ac_ext
14697fi
14698echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14699echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14700if test `eval echo '${'$as_ac_Header'}'` = yes; then
14701 cat >>confdefs.h <<_ACEOF
14702#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14703_ACEOF
14704
14705fi
14706
14707done
14708
14709
14710
14711for ac_header in resolv.h
044b5c41
GM
14712do
14713as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14714echo "$as_me:$LINENO: checking for $ac_header" >&5
14715echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14716if eval "test \"\${$as_ac_Header+set}\" = set"; then
14717 echo $ECHO_N "(cached) $ECHO_C" >&6
14718else
14719 cat >conftest.$ac_ext <<_ACEOF
14720#line $LINENO "configure"
e24bcc77
AJ
14721/* confdefs.h. */
14722_ACEOF
14723cat confdefs.h >>conftest.$ac_ext
14724cat >>conftest.$ac_ext <<_ACEOF
14725/* end confdefs.h. */
63ae7fee
PS
14726#include <sys/types.h>
14727 #if HAVE_SYS_SOCKET_H
044b5c41
GM
14728 # include <sys/socket.h>
14729 #endif
bcb6ecf8
GP
14730 #if HAVE_NETINET_IN_H
14731 # include <netinet/in.h>
14732 #endif
ae8ca36b
PH
14733 #if HAVE_ARPA_NAMESER_H
14734 # include <arpa/nameser.h>
14735 #endif
044b5c41
GM
14736
14737#include <$ac_header>
14738_ACEOF
14739rm -f conftest.$ac_objext
14740if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14741 (eval $ac_compile) 2>&5
14742 ac_status=$?
14743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14744 (exit $ac_status); } &&
14745 { ac_try='test -s conftest.$ac_objext'
14746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14747 (eval $ac_try) 2>&5
14748 ac_status=$?
14749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750 (exit $ac_status); }; }; then
14751 eval "$as_ac_Header=yes"
14752else
14753 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
14754sed 's/^/| /' conftest.$ac_ext >&5
14755
044b5c41
GM
14756eval "$as_ac_Header=no"
14757fi
14758rm -f conftest.$ac_objext conftest.$ac_ext
14759fi
14760echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14761echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14762if test `eval echo '${'$as_ac_Header'}'` = yes; then
14763 cat >>confdefs.h <<_ACEOF
14764#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14765_ACEOF
14766
14767fi
14768
14769done
14770
14771
14772
38fa5ad1 14773for ac_header in netinet/ip.h
044b5c41
GM
14774do
14775as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14776echo "$as_me:$LINENO: checking for $ac_header" >&5
14777echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14778if eval "test \"\${$as_ac_Header+set}\" = set"; then
14779 echo $ECHO_N "(cached) $ECHO_C" >&6
14780else
14781 cat >conftest.$ac_ext <<_ACEOF
14782#line $LINENO "configure"
e24bcc77
AJ
14783/* confdefs.h. */
14784_ACEOF
14785cat confdefs.h >>conftest.$ac_ext
14786cat >>conftest.$ac_ext <<_ACEOF
14787/* end confdefs.h. */
63ae7fee
PS
14788#include <sys/types.h>
14789 #if HAVE_SYS_SOCKET_H
044b5c41
GM
14790 # include <sys/socket.h>
14791 #endif
38fa5ad1
JL
14792 #if HAVE_NETINET_IN_SYSTM_H
14793 # include <netinet/in_systm.h>
14794 #endif
044b5c41 14795
d2033a59
GP
14796#include <$ac_header>
14797_ACEOF
14798rm -f conftest.$ac_objext
14799if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14800 (eval $ac_compile) 2>&5
14801 ac_status=$?
14802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803 (exit $ac_status); } &&
14804 { ac_try='test -s conftest.$ac_objext'
14805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14806 (eval $ac_try) 2>&5
14807 ac_status=$?
14808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14809 (exit $ac_status); }; }; then
14810 eval "$as_ac_Header=yes"
14811else
14812 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
14813sed 's/^/| /' conftest.$ac_ext >&5
14814
d2033a59
GP
14815eval "$as_ac_Header=no"
14816fi
14817rm -f conftest.$ac_objext conftest.$ac_ext
14818fi
14819echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14820echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14821if test `eval echo '${'$as_ac_Header'}'` = yes; then
14822 cat >>confdefs.h <<_ACEOF
14823#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14824_ACEOF
14825
14826fi
14827
14828done
14829
14830
14831
14832for ac_header in ucontext.h
14833do
14834as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14835echo "$as_me:$LINENO: checking for $ac_header" >&5
14836echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14837if eval "test \"\${$as_ac_Header+set}\" = set"; then
14838 echo $ECHO_N "(cached) $ECHO_C" >&6
14839else
14840 cat >conftest.$ac_ext <<_ACEOF
14841#line $LINENO "configure"
e24bcc77
AJ
14842/* confdefs.h. */
14843_ACEOF
14844cat confdefs.h >>conftest.$ac_ext
14845cat >>conftest.$ac_ext <<_ACEOF
14846/* end confdefs.h. */
d2033a59
GP
14847#include <signal.h>
14848
044b5c41
GM
14849#include <$ac_header>
14850_ACEOF
14851rm -f conftest.$ac_objext
14852if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14853 (eval $ac_compile) 2>&5
14854 ac_status=$?
14855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14856 (exit $ac_status); } &&
14857 { ac_try='test -s conftest.$ac_objext'
14858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14859 (eval $ac_try) 2>&5
14860 ac_status=$?
14861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14862 (exit $ac_status); }; }; then
14863 eval "$as_ac_Header=yes"
14864else
14865 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
14866sed 's/^/| /' conftest.$ac_ext >&5
14867
044b5c41
GM
14868eval "$as_ac_Header=no"
14869fi
14870rm -f conftest.$ac_objext conftest.$ac_ext
14871fi
14872echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14873echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14874if test `eval echo '${'$as_ac_Header'}'` = yes; then
14875 cat >>confdefs.h <<_ACEOF
14876#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14877_ACEOF
14878
14879fi
14880
14881done
14882
14883
14884
b38b4c2c
AJ
14885echo "$as_me:$LINENO: checking for GNU style IPX support" >&5
14886echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6
14887if test "${ac_cv_c_ipx_gnu+set}" = set; then
14888 echo $ECHO_N "(cached) $ECHO_C" >&6
14889else
14890 cat >conftest.$ac_ext <<_ACEOF
14891#line $LINENO "configure"
14892/* confdefs.h. */
14893_ACEOF
14894cat confdefs.h >>conftest.$ac_ext
14895cat >>conftest.$ac_ext <<_ACEOF
14896/* end confdefs.h. */
14897#include <sys/types.h>
14898 #ifdef HAVE_SYS_SOCKET_H
14899 # include <sys/socket.h>
14900 #endif
14901 #include <netipx/ipx.h>
14902int
14903main ()
14904{
14905((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
14906 ;
14907 return 0;
14908}
14909_ACEOF
14910rm -f conftest.$ac_objext
14911if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14912 (eval $ac_compile) 2>&5
14913 ac_status=$?
14914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14915 (exit $ac_status); } &&
14916 { ac_try='test -s conftest.$ac_objext'
14917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14918 (eval $ac_try) 2>&5
14919 ac_status=$?
14920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921 (exit $ac_status); }; }; then
14922 ac_cv_c_ipx_gnu="yes"
14923else
14924 echo "$as_me: failed program was:" >&5
14925sed 's/^/| /' conftest.$ac_ext >&5
14926
14927ac_cv_c_ipx_gnu="no"
14928fi
14929rm -f conftest.$ac_objext conftest.$ac_ext
14930
14931fi
14932echo "$as_me:$LINENO: result: $ac_cv_c_ipx_gnu" >&5
14933echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6
14934if test "$ac_cv_c_ipx_gnu" = "yes"
14935then
14936
14937cat >>confdefs.h <<\_ACEOF
14938#define HAVE_IPX_GNU 1
14939_ACEOF
14940
14941fi
14942
14943if test "$ac_cv_c_ipx_gnu" = "no"
14944then
14945 echo "$as_me:$LINENO: checking for linux style IPX support" >&5
14946echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6
14947if test "${ac_cv_c_ipx_linux+set}" = set; then
14948 echo $ECHO_N "(cached) $ECHO_C" >&6
14949else
14950 cat >conftest.$ac_ext <<_ACEOF
14951#line $LINENO "configure"
14952/* confdefs.h. */
14953_ACEOF
14954cat confdefs.h >>conftest.$ac_ext
14955cat >>conftest.$ac_ext <<_ACEOF
14956/* end confdefs.h. */
14957#include <sys/types.h>
14958 #ifdef HAVE_SYS_SOCKET_H
14959 # include <sys/socket.h>
14960 #endif
14961 #include <asm/types.h>
14962 #include <linux/ipx.h>
14963int
14964main ()
14965{
14966((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
14967 ;
14968 return 0;
14969}
14970_ACEOF
14971rm -f conftest.$ac_objext
14972if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14973 (eval $ac_compile) 2>&5
14974 ac_status=$?
14975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14976 (exit $ac_status); } &&
14977 { ac_try='test -s conftest.$ac_objext'
14978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14979 (eval $ac_try) 2>&5
14980 ac_status=$?
14981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14982 (exit $ac_status); }; }; then
14983 ac_cv_c_ipx_linux="yes"
14984else
14985 echo "$as_me: failed program was:" >&5
14986sed 's/^/| /' conftest.$ac_ext >&5
14987
14988ac_cv_c_ipx_linux="no"
14989fi
14990rm -f conftest.$ac_objext conftest.$ac_ext
14991
14992fi
14993echo "$as_me:$LINENO: result: $ac_cv_c_ipx_linux" >&5
14994echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6
14995 if test "$ac_cv_c_ipx_linux" = "yes"
14996 then
14997
14998cat >>confdefs.h <<\_ACEOF
14999#define HAVE_IPX_LINUX 1
15000_ACEOF
15001
15002 fi
15003fi
15004
15005
daa2886c 15006echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
f5818d2f
AJ
15007echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
15008if test "${ac_cv_c_const+set}" = set; then
15009 echo $ECHO_N "(cached) $ECHO_C" >&6
e2991ea7 15010else
f5818d2f 15011 cat >conftest.$ac_ext <<_ACEOF
daa2886c 15012#line $LINENO "configure"
e24bcc77
AJ
15013/* confdefs.h. */
15014_ACEOF
15015cat confdefs.h >>conftest.$ac_ext
15016cat >>conftest.$ac_ext <<_ACEOF
15017/* end confdefs.h. */
e2991ea7 15018
f5818d2f
AJ
15019int
15020main ()
15021{
15022/* FIXME: Include the comments suggested by Paul. */
15023#ifndef __cplusplus
15024 /* Ultrix mips cc rejects this. */
15025 typedef int charset[2];
15026 const charset x;
15027 /* SunOS 4.1.1 cc rejects this. */
15028 char const *const *ccp;
15029 char **p;
15030 /* NEC SVR4.0.2 mips cc rejects this. */
15031 struct point {int x, y;};
15032 static struct point const zero = {0,0};
15033 /* AIX XL C 1.02.0.0 rejects this.
15034 It does not let you subtract one const X* pointer from another in
15035 an arm of an if-expression whose if-part is not a constant
15036 expression */
15037 const char *g = "string";
15038 ccp = &g + (g ? g-g : 0);
15039 /* HPUX 7.0 cc rejects these. */
15040 ++ccp;
15041 p = (char**) ccp;
15042 ccp = (char const *const *) p;
15043 { /* SCO 3.2v4 cc rejects this. */
15044 char *t;
15045 char const *s = 0 ? (char *) 0 : (char const *) 0;
15046
15047 *t++ = 0;
15048 }
15049 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15050 int x[] = {25, 17};
15051 const int *foo = &x[0];
15052 ++foo;
15053 }
15054 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15055 typedef const int *iptr;
15056 iptr p = 0;
15057 ++p;
15058 }
15059 { /* AIX XL C 1.02.0.0 rejects this saying
15060 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15061 struct s { int j; const int *ap[3]; };
15062 struct s *b; b->j = 5;
15063 }
15064 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15065 const int foo = 10;
15066 }
15067#endif
e2991ea7 15068
f5818d2f
AJ
15069 ;
15070 return 0;
e2991ea7 15071}
f5818d2f
AJ
15072_ACEOF
15073rm -f conftest.$ac_objext
daa2886c 15074if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
15075 (eval $ac_compile) 2>&5
15076 ac_status=$?
daa2886c 15077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
15078 (exit $ac_status); } &&
15079 { ac_try='test -s conftest.$ac_objext'
daa2886c 15080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
15081 (eval $ac_try) 2>&5
15082 ac_status=$?
daa2886c 15083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 15084 (exit $ac_status); }; }; then
e2991ea7
AJ
15085 ac_cv_c_const=yes
15086else
f5818d2f 15087 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
15088sed 's/^/| /' conftest.$ac_ext >&5
15089
f5818d2f 15090ac_cv_c_const=no
e2991ea7 15091fi
f5818d2f 15092rm -f conftest.$ac_objext conftest.$ac_ext
e2991ea7 15093fi
daa2886c 15094echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
f5818d2f 15095echo "${ECHO_T}$ac_cv_c_const" >&6
e2991ea7 15096if test $ac_cv_c_const = no; then
f5818d2f 15097
daa2886c 15098cat >>confdefs.h <<\_ACEOF
f5818d2f 15099#define const
daa2886c 15100_ACEOF
e2991ea7
AJ
15101
15102fi
15103
daa2886c 15104echo "$as_me:$LINENO: checking for inline" >&5
f5818d2f
AJ
15105echo $ECHO_N "checking for inline... $ECHO_C" >&6
15106if test "${ac_cv_c_inline+set}" = set; then
15107 echo $ECHO_N "(cached) $ECHO_C" >&6
1a8bbd7c
MM
15108else
15109 ac_cv_c_inline=no
15110for ac_kw in inline __inline__ __inline; do
f5818d2f 15111 cat >conftest.$ac_ext <<_ACEOF
daa2886c 15112#line $LINENO "configure"
e24bcc77
AJ
15113/* confdefs.h. */
15114_ACEOF
15115cat confdefs.h >>conftest.$ac_ext
15116cat >>conftest.$ac_ext <<_ACEOF
15117/* end confdefs.h. */
f5818d2f 15118#ifndef __cplusplus
11af04e3
AJ
15119typedef int foo_t;
15120static $ac_kw foo_t static_foo () {return 0; }
15121$ac_kw foo_t foo () {return 0; }
f5818d2f 15122#endif
1a8bbd7c 15123
f5818d2f
AJ
15124_ACEOF
15125rm -f conftest.$ac_objext
daa2886c 15126if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
15127 (eval $ac_compile) 2>&5
15128 ac_status=$?
daa2886c 15129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
15130 (exit $ac_status); } &&
15131 { ac_try='test -s conftest.$ac_objext'
daa2886c 15132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
15133 (eval $ac_try) 2>&5
15134 ac_status=$?
daa2886c 15135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 15136 (exit $ac_status); }; }; then
1a8bbd7c
MM
15137 ac_cv_c_inline=$ac_kw; break
15138else
f5818d2f 15139 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
15140sed 's/^/| /' conftest.$ac_ext >&5
15141
1a8bbd7c 15142fi
f5818d2f 15143rm -f conftest.$ac_objext conftest.$ac_ext
1a8bbd7c
MM
15144done
15145
15146fi
daa2886c 15147echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
f5818d2f
AJ
15148echo "${ECHO_T}$ac_cv_c_inline" >&6
15149case $ac_cv_c_inline in
1a8bbd7c 15150 inline | yes) ;;
f5818d2f 15151 no)
daa2886c 15152cat >>confdefs.h <<\_ACEOF
f5818d2f 15153#define inline
daa2886c 15154_ACEOF
1a8bbd7c 15155 ;;
daa2886c 15156 *) cat >>confdefs.h <<_ACEOF
1a8bbd7c 15157#define inline $ac_cv_c_inline
daa2886c 15158_ACEOF
1a8bbd7c
MM
15159 ;;
15160esac
15161
daa2886c 15162echo "$as_me:$LINENO: checking for mode_t" >&5
f5818d2f
AJ
15163echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
15164if test "${ac_cv_type_mode_t+set}" = set; then
15165 echo $ECHO_N "(cached) $ECHO_C" >&6
c7c217b3 15166else
f5818d2f 15167 cat >conftest.$ac_ext <<_ACEOF
daa2886c 15168#line $LINENO "configure"
e24bcc77
AJ
15169/* confdefs.h. */
15170_ACEOF
15171cat confdefs.h >>conftest.$ac_ext
15172cat >>conftest.$ac_ext <<_ACEOF
15173/* end confdefs.h. */
f5818d2f
AJ
15174$ac_includes_default
15175int
15176main ()
c7c217b3 15177{
f5818d2f
AJ
15178if ((mode_t *) 0)
15179 return 0;
15180if (sizeof (mode_t))
15181 return 0;
15182 ;
15183 return 0;
c7c217b3 15184}
f5818d2f
AJ
15185_ACEOF
15186rm -f conftest.$ac_objext
daa2886c 15187if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
15188 (eval $ac_compile) 2>&5
15189 ac_status=$?
daa2886c 15190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
15191 (exit $ac_status); } &&
15192 { ac_try='test -s conftest.$ac_objext'
daa2886c 15193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
15194 (eval $ac_try) 2>&5
15195 ac_status=$?
daa2886c 15196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
15197 (exit $ac_status); }; }; then
15198 ac_cv_type_mode_t=yes
15199else
15200 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
15201sed 's/^/| /' conftest.$ac_ext >&5
15202
f5818d2f
AJ
15203ac_cv_type_mode_t=no
15204fi
15205rm -f conftest.$ac_objext conftest.$ac_ext
15206fi
daa2886c 15207echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
f5818d2f
AJ
15208echo "${ECHO_T}$ac_cv_type_mode_t" >&6
15209if test $ac_cv_type_mode_t = yes; then
f5818d2f 15210
daa2886c 15211cat >>confdefs.h <<_ACEOF
5769d1de 15212#define HAVE_MODE_T 1
daa2886c 15213_ACEOF
f5818d2f 15214
f5818d2f 15215
5769d1de 15216fi
daa2886c 15217echo "$as_me:$LINENO: checking for off_t" >&5
f5818d2f
AJ
15218echo $ECHO_N "checking for off_t... $ECHO_C" >&6
15219if test "${ac_cv_type_off_t+set}" = set; then
15220 echo $ECHO_N "(cached) $ECHO_C" >&6
c7c217b3 15221else
f5818d2f 15222 cat >conftest.$ac_ext <<_ACEOF
daa2886c 15223#line $LINENO "configure"
e24bcc77
AJ
15224/* confdefs.h. */
15225_ACEOF
15226cat confdefs.h >>conftest.$ac_ext
15227cat >>conftest.$ac_ext <<_ACEOF
15228/* end confdefs.h. */
f5818d2f
AJ
15229$ac_includes_default
15230int
15231main ()
15232{
15233if ((off_t *) 0)
15234 return 0;
15235if (sizeof (off_t))
15236 return 0;
15237 ;
15238 return 0;
15239}
15240_ACEOF
15241rm -f conftest.$ac_objext
daa2886c 15242if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
15243 (eval $ac_compile) 2>&5
15244 ac_status=$?
daa2886c 15245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
15246 (exit $ac_status); } &&
15247 { ac_try='test -s conftest.$ac_objext'
daa2886c 15248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
15249 (eval $ac_try) 2>&5
15250 ac_status=$?
daa2886c 15251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
15252 (exit $ac_status); }; }; then
15253 ac_cv_type_off_t=yes
15254else
15255 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
15256sed 's/^/| /' conftest.$ac_ext >&5
15257
f5818d2f
AJ
15258ac_cv_type_off_t=no
15259fi
15260rm -f conftest.$ac_objext conftest.$ac_ext
15261fi
daa2886c 15262echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
f5818d2f
AJ
15263echo "${ECHO_T}$ac_cv_type_off_t" >&6
15264if test $ac_cv_type_off_t = yes; then
f5818d2f 15265
daa2886c 15266cat >>confdefs.h <<_ACEOF
5769d1de 15267#define HAVE_OFF_T 1
daa2886c 15268_ACEOF
f5818d2f 15269
f5818d2f 15270
5769d1de 15271fi
daa2886c 15272echo "$as_me:$LINENO: checking for pid_t" >&5
f5818d2f
AJ
15273echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
15274if test "${ac_cv_type_pid_t+set}" = set; then
15275 echo $ECHO_N "(cached) $ECHO_C" >&6
15276else
15277 cat >conftest.$ac_ext <<_ACEOF
daa2886c 15278#line $LINENO "configure"
e24bcc77
AJ
15279/* confdefs.h. */
15280_ACEOF
15281cat confdefs.h >>conftest.$ac_ext
15282cat >>conftest.$ac_ext <<_ACEOF
15283/* end confdefs.h. */
f5818d2f
AJ
15284$ac_includes_default
15285int
15286main ()
15287{
15288if ((pid_t *) 0)
15289 return 0;
15290if (sizeof (pid_t))
15291 return 0;
15292 ;
15293 return 0;
15294}
15295_ACEOF
15296rm -f conftest.$ac_objext
daa2886c 15297if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
15298 (eval $ac_compile) 2>&5
15299 ac_status=$?
daa2886c 15300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
15301 (exit $ac_status); } &&
15302 { ac_try='test -s conftest.$ac_objext'
daa2886c 15303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
15304 (eval $ac_try) 2>&5
15305 ac_status=$?
daa2886c 15306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
15307 (exit $ac_status); }; }; then
15308 ac_cv_type_pid_t=yes
15309else
15310 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
15311sed 's/^/| /' conftest.$ac_ext >&5
15312
f5818d2f
AJ
15313ac_cv_type_pid_t=no
15314fi
15315rm -f conftest.$ac_objext conftest.$ac_ext
15316fi
daa2886c 15317echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
f5818d2f
AJ
15318echo "${ECHO_T}$ac_cv_type_pid_t" >&6
15319if test $ac_cv_type_pid_t = yes; then
f5818d2f 15320
daa2886c 15321cat >>confdefs.h <<_ACEOF
5769d1de 15322#define HAVE_PID_T 1
daa2886c 15323_ACEOF
f5818d2f 15324
c7c217b3 15325
5769d1de 15326fi
daa2886c 15327echo "$as_me:$LINENO: checking for size_t" >&5
f5818d2f
AJ
15328echo $ECHO_N "checking for size_t... $ECHO_C" >&6
15329if test "${ac_cv_type_size_t+set}" = set; then
15330 echo $ECHO_N "(cached) $ECHO_C" >&6
15331else
15332 cat >conftest.$ac_ext <<_ACEOF
daa2886c 15333#line $LINENO "configure"
e24bcc77
AJ
15334/* confdefs.h. */
15335_ACEOF
15336cat confdefs.h >>conftest.$ac_ext
15337cat >>conftest.$ac_ext <<_ACEOF
15338/* end confdefs.h. */
f5818d2f
AJ
15339$ac_includes_default
15340int
15341main ()
15342{
15343if ((size_t *) 0)
15344 return 0;
15345if (sizeof (size_t))
15346 return 0;
15347 ;
15348 return 0;
15349}
15350_ACEOF
15351rm -f conftest.$ac_objext
daa2886c 15352if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
15353 (eval $ac_compile) 2>&5
15354 ac_status=$?
daa2886c 15355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
15356 (exit $ac_status); } &&
15357 { ac_try='test -s conftest.$ac_objext'
daa2886c 15358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
15359 (eval $ac_try) 2>&5
15360 ac_status=$?
daa2886c 15361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
15362 (exit $ac_status); }; }; then
15363 ac_cv_type_size_t=yes
15364else
15365 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
15366sed 's/^/| /' conftest.$ac_ext >&5
15367
f5818d2f 15368ac_cv_type_size_t=no
c7c217b3 15369fi
f5818d2f
AJ
15370rm -f conftest.$ac_objext conftest.$ac_ext
15371fi
daa2886c 15372echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
f5818d2f
AJ
15373echo "${ECHO_T}$ac_cv_type_size_t" >&6
15374if test $ac_cv_type_size_t = yes; then
5769d1de
AJ
15375
15376cat >>confdefs.h <<_ACEOF
15377#define HAVE_SIZE_T 1
15378_ACEOF
15379
15380
15381fi
15382echo "$as_me:$LINENO: checking for ssize_t" >&5
15383echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
15384if test "${ac_cv_type_ssize_t+set}" = set; then
15385 echo $ECHO_N "(cached) $ECHO_C" >&6
15386else
15387 cat >conftest.$ac_ext <<_ACEOF
15388#line $LINENO "configure"
e24bcc77
AJ
15389/* confdefs.h. */
15390_ACEOF
15391cat confdefs.h >>conftest.$ac_ext
15392cat >>conftest.$ac_ext <<_ACEOF
15393/* end confdefs.h. */
5769d1de 15394$ac_includes_default
5769d1de
AJ
15395int
15396main ()
15397{
15398if ((ssize_t *) 0)
15399 return 0;
15400if (sizeof (ssize_t))
15401 return 0;
15402 ;
15403 return 0;
15404}
15405_ACEOF
15406rm -f conftest.$ac_objext
15407if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15408 (eval $ac_compile) 2>&5
15409 ac_status=$?
15410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15411 (exit $ac_status); } &&
15412 { ac_try='test -s conftest.$ac_objext'
15413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15414 (eval $ac_try) 2>&5
15415 ac_status=$?
15416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15417 (exit $ac_status); }; }; then
15418 ac_cv_type_ssize_t=yes
f5818d2f 15419else
5769d1de 15420 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
15421sed 's/^/| /' conftest.$ac_ext >&5
15422
5769d1de
AJ
15423ac_cv_type_ssize_t=no
15424fi
15425rm -f conftest.$ac_objext conftest.$ac_ext
15426fi
15427echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
15428echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
15429if test $ac_cv_type_ssize_t = yes; then
f5818d2f 15430
daa2886c 15431cat >>confdefs.h <<_ACEOF
5769d1de 15432#define HAVE_SSIZE_T 1
daa2886c 15433_ACEOF
c7c217b3 15434
5769d1de 15435
f5818d2f 15436fi
c7c217b3 15437
daa2886c 15438echo "$as_me:$LINENO: checking for long long" >&5
f5818d2f
AJ
15439echo $ECHO_N "checking for long long... $ECHO_C" >&6
15440if test "${ac_cv_type_long_long+set}" = set; then
15441 echo $ECHO_N "(cached) $ECHO_C" >&6
15442else
15443 cat >conftest.$ac_ext <<_ACEOF
daa2886c 15444#line $LINENO "configure"
e24bcc77
AJ
15445/* confdefs.h. */
15446_ACEOF
15447cat confdefs.h >>conftest.$ac_ext
15448cat >>conftest.$ac_ext <<_ACEOF
15449/* end confdefs.h. */
f5818d2f
AJ
15450$ac_includes_default
15451int
15452main ()
15453{
15454if ((long long *) 0)
15455 return 0;
15456if (sizeof (long long))
15457 return 0;
15458 ;
15459 return 0;
15460}
15461_ACEOF
15462rm -f conftest.$ac_objext
daa2886c 15463if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
15464 (eval $ac_compile) 2>&5
15465 ac_status=$?
daa2886c 15466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
15467 (exit $ac_status); } &&
15468 { ac_try='test -s conftest.$ac_objext'
daa2886c 15469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
15470 (eval $ac_try) 2>&5
15471 ac_status=$?
daa2886c 15472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
15473 (exit $ac_status); }; }; then
15474 ac_cv_type_long_long=yes
15475else
15476 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
15477sed 's/^/| /' conftest.$ac_ext >&5
15478
f5818d2f
AJ
15479ac_cv_type_long_long=no
15480fi
15481rm -f conftest.$ac_objext conftest.$ac_ext
15482fi
daa2886c 15483echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
f5818d2f
AJ
15484echo "${ECHO_T}$ac_cv_type_long_long" >&6
15485
daa2886c 15486echo "$as_me:$LINENO: checking size of long long" >&5
f5818d2f
AJ
15487echo $ECHO_N "checking size of long long... $ECHO_C" >&6
15488if test "${ac_cv_sizeof_long_long+set}" = set; then
15489 echo $ECHO_N "(cached) $ECHO_C" >&6
15490else
15491 if test "$ac_cv_type_long_long" = yes; then
daa2886c
AJ
15492 # The cast to unsigned long works around a bug in the HP C Compiler
15493 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15494 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15495 # This bug is HP SR number 8606223364.
f5818d2f
AJ
15496 if test "$cross_compiling" = yes; then
15497 # Depending upon the size, compute the lo and hi bounds.
15498cat >conftest.$ac_ext <<_ACEOF
daa2886c 15499#line $LINENO "configure"
e24bcc77
AJ
15500/* confdefs.h. */
15501_ACEOF
15502cat confdefs.h >>conftest.$ac_ext
15503cat >>conftest.$ac_ext <<_ACEOF
15504/* end confdefs.h. */
f5818d2f
AJ
15505$ac_includes_default
15506int
15507main ()
15508{
daa2886c
AJ
15509static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
15510test_array [0] = 0
15511
f5818d2f
AJ
15512 ;
15513 return 0;
15514}
15515_ACEOF
15516rm -f conftest.$ac_objext
daa2886c 15517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
15518 (eval $ac_compile) 2>&5
15519 ac_status=$?
daa2886c 15520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
15521 (exit $ac_status); } &&
15522 { ac_try='test -s conftest.$ac_objext'
daa2886c 15523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
15524 (eval $ac_try) 2>&5
15525 ac_status=$?
daa2886c 15526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
15527 (exit $ac_status); }; }; then
15528 ac_lo=0 ac_mid=0
15529 while :; do
15530 cat >conftest.$ac_ext <<_ACEOF
daa2886c 15531#line $LINENO "configure"
e24bcc77
AJ
15532/* confdefs.h. */
15533_ACEOF
15534cat confdefs.h >>conftest.$ac_ext
15535cat >>conftest.$ac_ext <<_ACEOF
15536/* end confdefs.h. */
f5818d2f
AJ
15537$ac_includes_default
15538int
15539main ()
15540{
daa2886c
AJ
15541static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15542test_array [0] = 0
15543
f5818d2f
AJ
15544 ;
15545 return 0;
15546}
15547_ACEOF
15548rm -f conftest.$ac_objext
daa2886c 15549if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
15550 (eval $ac_compile) 2>&5
15551 ac_status=$?
daa2886c 15552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
15553 (exit $ac_status); } &&
15554 { ac_try='test -s conftest.$ac_objext'
daa2886c 15555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
15556 (eval $ac_try) 2>&5
15557 ac_status=$?
daa2886c 15558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
15559 (exit $ac_status); }; }; then
15560 ac_hi=$ac_mid; break
15561else
15562 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
15563sed 's/^/| /' conftest.$ac_ext >&5
15564
daa2886c
AJ
15565ac_lo=`expr $ac_mid + 1`
15566 if test $ac_lo -le $ac_mid; then
15567 ac_lo= ac_hi=
15568 break
15569 fi
15570 ac_mid=`expr 2 '*' $ac_mid + 1`
f5818d2f
AJ
15571fi
15572rm -f conftest.$ac_objext conftest.$ac_ext
15573 done
15574else
15575 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
15576sed 's/^/| /' conftest.$ac_ext >&5
15577
daa2886c
AJ
15578cat >conftest.$ac_ext <<_ACEOF
15579#line $LINENO "configure"
e24bcc77
AJ
15580/* confdefs.h. */
15581_ACEOF
15582cat confdefs.h >>conftest.$ac_ext
15583cat >>conftest.$ac_ext <<_ACEOF
15584/* end confdefs.h. */
daa2886c 15585$ac_includes_default
daa2886c
AJ
15586int
15587main ()
15588{
15589static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
15590test_array [0] = 0
15591
15592 ;
15593 return 0;
15594}
15595_ACEOF
15596rm -f conftest.$ac_objext
15597if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15598 (eval $ac_compile) 2>&5
15599 ac_status=$?
15600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601 (exit $ac_status); } &&
15602 { ac_try='test -s conftest.$ac_objext'
15603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15604 (eval $ac_try) 2>&5
15605 ac_status=$?
15606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607 (exit $ac_status); }; }; then
15608 ac_hi=-1 ac_mid=-1
f5818d2f
AJ
15609 while :; do
15610 cat >conftest.$ac_ext <<_ACEOF
daa2886c 15611#line $LINENO "configure"
e24bcc77
AJ
15612/* confdefs.h. */
15613_ACEOF
15614cat confdefs.h >>conftest.$ac_ext
15615cat >>conftest.$ac_ext <<_ACEOF
15616/* end confdefs.h. */
f5818d2f
AJ
15617$ac_includes_default
15618int
15619main ()
15620{
daa2886c
AJ
15621static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
15622test_array [0] = 0
15623
f5818d2f
AJ
15624 ;
15625 return 0;
15626}
15627_ACEOF
15628rm -f conftest.$ac_objext
daa2886c 15629if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
15630 (eval $ac_compile) 2>&5
15631 ac_status=$?
daa2886c 15632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
15633 (exit $ac_status); } &&
15634 { ac_try='test -s conftest.$ac_objext'
daa2886c 15635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
15636 (eval $ac_try) 2>&5
15637 ac_status=$?
daa2886c 15638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
15639 (exit $ac_status); }; }; then
15640 ac_lo=$ac_mid; break
15641else
15642 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
15643sed 's/^/| /' conftest.$ac_ext >&5
15644
daa2886c
AJ
15645ac_hi=`expr '(' $ac_mid ')' - 1`
15646 if test $ac_mid -le $ac_hi; then
15647 ac_lo= ac_hi=
15648 break
15649 fi
15650 ac_mid=`expr 2 '*' $ac_mid`
f5818d2f
AJ
15651fi
15652rm -f conftest.$ac_objext conftest.$ac_ext
15653 done
daa2886c
AJ
15654else
15655 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
15656sed 's/^/| /' conftest.$ac_ext >&5
15657
daa2886c
AJ
15658ac_lo= ac_hi=
15659fi
15660rm -f conftest.$ac_objext conftest.$ac_ext
f5818d2f
AJ
15661fi
15662rm -f conftest.$ac_objext conftest.$ac_ext
15663# Binary search between lo and hi bounds.
15664while test "x$ac_lo" != "x$ac_hi"; do
15665 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15666 cat >conftest.$ac_ext <<_ACEOF
daa2886c 15667#line $LINENO "configure"
e24bcc77
AJ
15668/* confdefs.h. */
15669_ACEOF
15670cat confdefs.h >>conftest.$ac_ext
15671cat >>conftest.$ac_ext <<_ACEOF
15672/* end confdefs.h. */
f5818d2f
AJ
15673$ac_includes_default
15674int
15675main ()
15676{
daa2886c
AJ
15677static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15678test_array [0] = 0
15679
f5818d2f
AJ
15680 ;
15681 return 0;
15682}
15683_ACEOF
15684rm -f conftest.$ac_objext
daa2886c 15685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
15686 (eval $ac_compile) 2>&5
15687 ac_status=$?
daa2886c 15688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
15689 (exit $ac_status); } &&
15690 { ac_try='test -s conftest.$ac_objext'
daa2886c 15691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
15692 (eval $ac_try) 2>&5
15693 ac_status=$?
daa2886c 15694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
15695 (exit $ac_status); }; }; then
15696 ac_hi=$ac_mid
15697else
15698 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
15699sed 's/^/| /' conftest.$ac_ext >&5
15700
daa2886c 15701ac_lo=`expr '(' $ac_mid ')' + 1`
f5818d2f
AJ
15702fi
15703rm -f conftest.$ac_objext conftest.$ac_ext
15704done
daa2886c
AJ
15705case $ac_lo in
15706?*) ac_cv_sizeof_long_long=$ac_lo;;
e24bcc77
AJ
15707'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
15708See \`config.log' for more details." >&5
15709echo "$as_me: error: cannot compute sizeof (long long), 77
15710See \`config.log' for more details." >&2;}
daa2886c
AJ
15711 { (exit 1); exit 1; }; } ;;
15712esac
f5818d2f
AJ
15713else
15714 if test "$cross_compiling" = yes; then
e24bcc77
AJ
15715 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15716See \`config.log' for more details." >&5
15717echo "$as_me: error: cannot run test program while cross compiling
15718See \`config.log' for more details." >&2;}
f5818d2f
AJ
15719 { (exit 1); exit 1; }; }
15720else
15721 cat >conftest.$ac_ext <<_ACEOF
daa2886c 15722#line $LINENO "configure"
e24bcc77
AJ
15723/* confdefs.h. */
15724_ACEOF
15725cat confdefs.h >>conftest.$ac_ext
15726cat >>conftest.$ac_ext <<_ACEOF
15727/* end confdefs.h. */
f5818d2f 15728$ac_includes_default
daa2886c
AJ
15729long longval () { return (long) (sizeof (long long)); }
15730unsigned long ulongval () { return (long) (sizeof (long long)); }
15731#include <stdio.h>
15732#include <stdlib.h>
f5818d2f
AJ
15733int
15734main ()
15735{
daa2886c
AJ
15736
15737 FILE *f = fopen ("conftest.val", "w");
15738 if (! f)
15739 exit (1);
15740 if (((long) (sizeof (long long))) < 0)
15741 {
15742 long i = longval ();
15743 if (i != ((long) (sizeof (long long))))
15744 exit (1);
15745 fprintf (f, "%ld\n", i);
15746 }
15747 else
15748 {
15749 unsigned long i = ulongval ();
15750 if (i != ((long) (sizeof (long long))))
15751 exit (1);
15752 fprintf (f, "%lu\n", i);
15753 }
15754 exit (ferror (f) || fclose (f) != 0);
15755
f5818d2f
AJ
15756 ;
15757 return 0;
15758}
15759_ACEOF
15760rm -f conftest$ac_exeext
daa2886c 15761if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f5818d2f
AJ
15762 (eval $ac_link) 2>&5
15763 ac_status=$?
daa2886c 15764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 15765 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
daa2886c 15766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
15767 (eval $ac_try) 2>&5
15768 ac_status=$?
daa2886c 15769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
15770 (exit $ac_status); }; }; then
15771 ac_cv_sizeof_long_long=`cat conftest.val`
15772else
15773 echo "$as_me: program exited with status $ac_status" >&5
15774echo "$as_me: failed program was:" >&5
e24bcc77
AJ
15775sed 's/^/| /' conftest.$ac_ext >&5
15776
daa2886c 15777( exit $ac_status )
e24bcc77
AJ
15778{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
15779See \`config.log' for more details." >&5
15780echo "$as_me: error: cannot compute sizeof (long long), 77
15781See \`config.log' for more details." >&2;}
daa2886c 15782 { (exit 1); exit 1; }; }
f5818d2f 15783fi
80e34dbb 15784rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f5818d2f
AJ
15785fi
15786fi
15787rm -f conftest.val
15788else
15789 ac_cv_sizeof_long_long=0
15790fi
15791fi
daa2886c 15792echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
f5818d2f 15793echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
daa2886c 15794cat >>confdefs.h <<_ACEOF
f5818d2f 15795#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
daa2886c
AJ
15796_ACEOF
15797
15798
c7c217b3 15799
daa2886c 15800echo "$as_me:$LINENO: checking whether linux/input.h is for real" >&5
f5818d2f
AJ
15801echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6
15802if test "${wine_cv_linux_input_h+set}" = set; then
15803 echo $ECHO_N "(cached) $ECHO_C" >&6
74f2b4b2 15804else
f5818d2f 15805 cat >conftest.$ac_ext <<_ACEOF
daa2886c 15806#line $LINENO "configure"
e24bcc77
AJ
15807/* confdefs.h. */
15808_ACEOF
15809cat confdefs.h >>conftest.$ac_ext
15810cat >>conftest.$ac_ext <<_ACEOF
15811/* end confdefs.h. */
74f2b4b2
MM
15812
15813 #include <linux/input.h>
f5818d2f
AJ
15814
15815int
15816main ()
15817{
74f2b4b2
MM
15818
15819 int foo = EVIOCGBIT(EV_ABS,42);
15820 int bar = BTN_PINKIE;
15821 int fortytwo = 42;
f5818d2f
AJ
15822
15823 ;
15824 return 0;
15825}
15826_ACEOF
15827rm -f conftest.$ac_objext
daa2886c 15828if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
15829 (eval $ac_compile) 2>&5
15830 ac_status=$?
daa2886c 15831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
15832 (exit $ac_status); } &&
15833 { ac_try='test -s conftest.$ac_objext'
daa2886c 15834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
15835 (eval $ac_try) 2>&5
15836 ac_status=$?
daa2886c 15837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 15838 (exit $ac_status); }; }; then
74f2b4b2
MM
15839 wine_cv_linux_input_h=yes
15840else
f5818d2f 15841 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
15842sed 's/^/| /' conftest.$ac_ext >&5
15843
f5818d2f 15844wine_cv_linux_input_h=no
74f2b4b2 15845fi
f5818d2f 15846rm -f conftest.$ac_objext conftest.$ac_ext
74f2b4b2 15847
f5818d2f 15848fi
daa2886c 15849echo "$as_me:$LINENO: result: $wine_cv_linux_input_h" >&5
f5818d2f 15850echo "${ECHO_T}$wine_cv_linux_input_h" >&6
74f2b4b2
MM
15851 if test "$wine_cv_linux_input_h" = "yes"
15852 then
f5818d2f 15853
daa2886c 15854cat >>confdefs.h <<\_ACEOF
74f2b4b2 15855#define HAVE_CORRECT_LINUXINPUT_H 1
daa2886c 15856_ACEOF
74f2b4b2
MM
15857
15858 fi
15859
daa2886c
AJ
15860
15861echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
f5818d2f
AJ
15862echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6
15863if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
15864 echo $ECHO_N "(cached) $ECHO_C" >&6
ff7a61f8 15865else
f5818d2f 15866 cat >conftest.$ac_ext <<_ACEOF
daa2886c 15867#line $LINENO "configure"
e24bcc77
AJ
15868/* confdefs.h. */
15869_ACEOF
15870cat confdefs.h >>conftest.$ac_ext
15871cat >>conftest.$ac_ext <<_ACEOF
15872/* end confdefs.h. */
ff7a61f8
RK
15873
15874#include <netdb.h>
f5818d2f
AJ
15875
15876int
15877main ()
15878{
ff7a61f8
RK
15879
15880 char *name=NULL;
15881 struct hostent he;
15882 struct hostent *result;
15883 char *buf=NULL;
15884 int bufsize=0;
15885 int res,errnr;
15886 char *addr=NULL;
15887 int addrlen=0;
15888 int addrtype=0;
15889 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
15890 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
f5818d2f
AJ
15891
15892 ;
15893 return 0;
15894}
15895_ACEOF
15896rm -f conftest.$ac_objext
daa2886c 15897if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
15898 (eval $ac_compile) 2>&5
15899 ac_status=$?
daa2886c 15900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
15901 (exit $ac_status); } &&
15902 { ac_try='test -s conftest.$ac_objext'
daa2886c 15903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
15904 (eval $ac_try) 2>&5
15905 ac_status=$?
daa2886c 15906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 15907 (exit $ac_status); }; }; then
ff7a61f8
RK
15908 wine_cv_linux_gethostbyname_r_6=yes
15909else
f5818d2f 15910 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
15911sed 's/^/| /' conftest.$ac_ext >&5
15912
f5818d2f
AJ
15913wine_cv_linux_gethostbyname_r_6=no
15914
ff7a61f8 15915fi
f5818d2f 15916rm -f conftest.$ac_objext conftest.$ac_ext
ff7a61f8 15917
f5818d2f 15918fi
daa2886c 15919echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
f5818d2f 15920echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6
ff7a61f8
RK
15921 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
15922 then
f5818d2f 15923
daa2886c 15924cat >>confdefs.h <<\_ACEOF
ff7a61f8 15925#define HAVE_LINUX_GETHOSTBYNAME_R_6 1
daa2886c 15926_ACEOF
ff7a61f8
RK
15927
15928 fi
15929
028e9a17
MM
15930if test "$ac_cv_header_linux_joystick_h" = "yes"
15931then
daa2886c 15932 echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
f5818d2f
AJ
15933echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6
15934if test "${wine_cv_linux_joystick_22_api+set}" = set; then
15935 echo $ECHO_N "(cached) $ECHO_C" >&6
028e9a17 15936else
f5818d2f 15937 cat >conftest.$ac_ext <<_ACEOF
daa2886c 15938#line $LINENO "configure"
e24bcc77
AJ
15939/* confdefs.h. */
15940_ACEOF
15941cat confdefs.h >>conftest.$ac_ext
15942cat >>conftest.$ac_ext <<_ACEOF
15943/* end confdefs.h. */
028e9a17
MM
15944
15945 #include <sys/ioctl.h>
15946 #include <linux/joystick.h>
15947
15948 struct js_event blub;
605a9c39
MM
15949 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
15950 #error "no 2.2 header"
15951 #endif
f5818d2f
AJ
15952
15953int
15954main ()
15955{
028e9a17 15956/*empty*/
f5818d2f
AJ
15957 ;
15958 return 0;
15959}
15960_ACEOF
15961rm -f conftest.$ac_objext
daa2886c 15962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
15963 (eval $ac_compile) 2>&5
15964 ac_status=$?
daa2886c 15965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
15966 (exit $ac_status); } &&
15967 { ac_try='test -s conftest.$ac_objext'
daa2886c 15968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
15969 (eval $ac_try) 2>&5
15970 ac_status=$?
daa2886c 15971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 15972 (exit $ac_status); }; }; then
028e9a17
MM
15973 wine_cv_linux_joystick_22_api=yes
15974else
f5818d2f 15975 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
15976sed 's/^/| /' conftest.$ac_ext >&5
15977
f5818d2f 15978wine_cv_linux_joystick_22_api=no
028e9a17 15979fi
f5818d2f 15980rm -f conftest.$ac_objext conftest.$ac_ext
028e9a17 15981
f5818d2f 15982fi
daa2886c 15983echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
f5818d2f 15984echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6
87d224ac 15985 if test "$wine_cv_linux_joystick_22_api" = "yes"
028e9a17 15986 then
f5818d2f 15987
daa2886c 15988cat >>confdefs.h <<\_ACEOF
028e9a17 15989#define HAVE_LINUX_22_JOYSTICK_API 1
daa2886c 15990_ACEOF
028e9a17
MM
15991
15992 fi
15993fi
15994
daa2886c 15995
dadf78ff
AJ
15996if test "$ac_cv_header_sys_vfs_h" = "yes"
15997then
daa2886c 15998 echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5
f5818d2f
AJ
15999echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6
16000if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then
16001 echo $ECHO_N "(cached) $ECHO_C" >&6
c7c217b3 16002else
f5818d2f 16003 cat >conftest.$ac_ext <<_ACEOF
daa2886c 16004#line $LINENO "configure"
e24bcc77
AJ
16005/* confdefs.h. */
16006_ACEOF
16007cat confdefs.h >>conftest.$ac_ext
16008cat >>conftest.$ac_ext <<_ACEOF
16009/* end confdefs.h. */
c7c217b3 16010
46ea8b3f 16011 #include <sys/types.h>
c7c217b3
AJ
16012 #ifdef HAVE_SYS_PARAM_H
16013 # include <sys/param.h>
16014 #endif
dadf78ff 16015 #include <sys/vfs.h>
f5818d2f
AJ
16016
16017int
16018main ()
16019{
c7c217b3
AJ
16020
16021 struct statfs stfs;
16022
dadf78ff 16023 memset(&stfs,0,sizeof(stfs));
f5818d2f
AJ
16024
16025 ;
16026 return 0;
16027}
16028_ACEOF
16029rm -f conftest.$ac_objext
daa2886c 16030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
16031 (eval $ac_compile) 2>&5
16032 ac_status=$?
daa2886c 16033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
16034 (exit $ac_status); } &&
16035 { ac_try='test -s conftest.$ac_objext'
daa2886c 16036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
16037 (eval $ac_try) 2>&5
16038 ac_status=$?
daa2886c 16039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 16040 (exit $ac_status); }; }; then
dadf78ff 16041 wine_cv_sys_vfs_has_statfs=yes
c7c217b3 16042else
f5818d2f 16043 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
16044sed 's/^/| /' conftest.$ac_ext >&5
16045
f5818d2f
AJ
16046wine_cv_sys_vfs_has_statfs=no
16047
c7c217b3 16048fi
f5818d2f 16049rm -f conftest.$ac_objext conftest.$ac_ext
c7c217b3 16050
f5818d2f 16051fi
daa2886c 16052echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5
f5818d2f 16053echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6
dadf78ff
AJ
16054 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
16055 then
f5818d2f 16056
daa2886c 16057cat >>confdefs.h <<\_ACEOF
dadf78ff 16058#define STATFS_DEFINED_BY_SYS_VFS 1
daa2886c 16059_ACEOF
dadf78ff
AJ
16060
16061 fi
16062fi
16063
16064if test "$ac_cv_header_sys_statfs_h" = "yes"
c7c217b3 16065then
daa2886c 16066 echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5
f5818d2f
AJ
16067echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6
16068if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then
16069 echo $ECHO_N "(cached) $ECHO_C" >&6
dadf78ff 16070else
f5818d2f 16071 cat >conftest.$ac_ext <<_ACEOF
daa2886c 16072#line $LINENO "configure"
e24bcc77
AJ
16073/* confdefs.h. */
16074_ACEOF
16075cat confdefs.h >>conftest.$ac_ext
16076cat >>conftest.$ac_ext <<_ACEOF
16077/* end confdefs.h. */
dadf78ff
AJ
16078
16079 #include <sys/types.h>
16080 #ifdef HAVE_SYS_PARAM_H
16081 # include <sys/param.h>
16082 #endif
16083 #include <sys/statfs.h>
f5818d2f
AJ
16084
16085int
16086main ()
16087{
dadf78ff
AJ
16088
16089 struct statfs stfs;
f5818d2f
AJ
16090
16091 ;
16092 return 0;
16093}
16094_ACEOF
16095rm -f conftest.$ac_objext
daa2886c 16096if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
16097 (eval $ac_compile) 2>&5
16098 ac_status=$?
daa2886c 16099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
16100 (exit $ac_status); } &&
16101 { ac_try='test -s conftest.$ac_objext'
daa2886c 16102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
16103 (eval $ac_try) 2>&5
16104 ac_status=$?
daa2886c 16105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 16106 (exit $ac_status); }; }; then
dadf78ff
AJ
16107 wine_cv_sys_statfs_has_statfs=yes
16108else
f5818d2f 16109 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
16110sed 's/^/| /' conftest.$ac_ext >&5
16111
f5818d2f
AJ
16112wine_cv_sys_statfs_has_statfs=no
16113
dadf78ff 16114fi
f5818d2f 16115rm -f conftest.$ac_objext conftest.$ac_ext
dadf78ff 16116
f5818d2f 16117fi
daa2886c 16118echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5
f5818d2f 16119echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6
dadf78ff
AJ
16120 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
16121 then
f5818d2f 16122
daa2886c 16123cat >>confdefs.h <<\_ACEOF
dadf78ff 16124#define STATFS_DEFINED_BY_SYS_STATFS 1
daa2886c 16125_ACEOF
dadf78ff
AJ
16126
16127 fi
16128fi
16129
16130if test "$ac_cv_header_sys_mount_h" = "yes"
16131then
daa2886c 16132 echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5
f5818d2f
AJ
16133echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6
16134if test "${wine_cv_sys_mount_has_statfs+set}" = set; then
16135 echo $ECHO_N "(cached) $ECHO_C" >&6
dadf78ff 16136else
f5818d2f 16137 cat >conftest.$ac_ext <<_ACEOF
daa2886c 16138#line $LINENO "configure"
e24bcc77
AJ
16139/* confdefs.h. */
16140_ACEOF
16141cat confdefs.h >>conftest.$ac_ext
16142cat >>conftest.$ac_ext <<_ACEOF
16143/* end confdefs.h. */
dadf78ff
AJ
16144
16145 #include <sys/types.h>
16146 #ifdef HAVE_SYS_PARAM_H
16147 # include <sys/param.h>
16148 #endif
16149 #include <sys/mount.h>
f5818d2f
AJ
16150
16151int
16152main ()
16153{
dadf78ff
AJ
16154
16155 struct statfs stfs;
f5818d2f
AJ
16156
16157 ;
16158 return 0;
16159}
16160_ACEOF
16161rm -f conftest.$ac_objext
daa2886c 16162if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
16163 (eval $ac_compile) 2>&5
16164 ac_status=$?
daa2886c 16165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
16166 (exit $ac_status); } &&
16167 { ac_try='test -s conftest.$ac_objext'
daa2886c 16168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
16169 (eval $ac_try) 2>&5
16170 ac_status=$?
daa2886c 16171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 16172 (exit $ac_status); }; }; then
dadf78ff
AJ
16173 wine_cv_sys_mount_has_statfs=yes
16174else
f5818d2f 16175 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
16176sed 's/^/| /' conftest.$ac_ext >&5
16177
f5818d2f
AJ
16178wine_cv_sys_mount_has_statfs=no
16179
dadf78ff 16180fi
f5818d2f 16181rm -f conftest.$ac_objext conftest.$ac_ext
dadf78ff 16182
f5818d2f 16183fi
daa2886c 16184echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5
f5818d2f 16185echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6
dadf78ff
AJ
16186 if test "$wine_cv_sys_mount_has_statfs" = "yes"
16187 then
f5818d2f 16188
daa2886c 16189cat >>confdefs.h <<\_ACEOF
dadf78ff 16190#define STATFS_DEFINED_BY_SYS_MOUNT 1
daa2886c 16191_ACEOF
c7c217b3 16192
dadf78ff 16193 fi
c7c217b3
AJ
16194fi
16195
daa2886c 16196
5537dbbf
AJ
16197echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5
16198echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6
16199if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then
f5818d2f 16200 echo $ECHO_N "(cached) $ECHO_C" >&6
c7c217b3 16201else
f5818d2f 16202 cat >conftest.$ac_ext <<_ACEOF
daa2886c 16203#line $LINENO "configure"
e24bcc77
AJ
16204/* confdefs.h. */
16205_ACEOF
16206cat confdefs.h >>conftest.$ac_ext
16207cat >>conftest.$ac_ext <<_ACEOF
16208/* end confdefs.h. */
f5818d2f
AJ
16209#include <sys/types.h>
16210#ifdef HAVE_SYS_PARAM_H
16211# include <sys/param.h>
16212#endif
16213#ifdef STATFS_DEFINED_BY_SYS_MOUNT
16214# include <sys/mount.h>
16215#else
16216# ifdef STATFS_DEFINED_BY_SYS_VFS
16217# include <sys/vfs.h>
16218# else
16219# ifdef STATFS_DEFINED_BY_SYS_STATFS
16220# include <sys/statfs.h>
16221# endif
16222# endif
16223#endif
5537dbbf 16224
f5818d2f
AJ
16225int
16226main ()
16227{
5537dbbf
AJ
16228static struct statfs ac_aggr;
16229if (ac_aggr.f_bfree)
16230return 0;
f5818d2f
AJ
16231 ;
16232 return 0;
16233}
16234_ACEOF
16235rm -f conftest.$ac_objext
daa2886c 16236if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
16237 (eval $ac_compile) 2>&5
16238 ac_status=$?
daa2886c 16239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
16240 (exit $ac_status); } &&
16241 { ac_try='test -s conftest.$ac_objext'
daa2886c 16242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
16243 (eval $ac_try) 2>&5
16244 ac_status=$?
daa2886c 16245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 16246 (exit $ac_status); }; }; then
5537dbbf 16247 ac_cv_member_struct_statfs_f_bfree=yes
f5818d2f
AJ
16248else
16249 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
16250sed 's/^/| /' conftest.$ac_ext >&5
16251
5537dbbf
AJ
16252cat >conftest.$ac_ext <<_ACEOF
16253#line $LINENO "configure"
16254/* confdefs.h. */
16255_ACEOF
16256cat confdefs.h >>conftest.$ac_ext
16257cat >>conftest.$ac_ext <<_ACEOF
16258/* end confdefs.h. */
16259#include <sys/types.h>
16260#ifdef HAVE_SYS_PARAM_H
16261# include <sys/param.h>
16262#endif
16263#ifdef STATFS_DEFINED_BY_SYS_MOUNT
16264# include <sys/mount.h>
16265#else
16266# ifdef STATFS_DEFINED_BY_SYS_VFS
16267# include <sys/vfs.h>
16268# else
16269# ifdef STATFS_DEFINED_BY_SYS_STATFS
16270# include <sys/statfs.h>
16271# endif
16272# endif
16273#endif
f5818d2f 16274
5537dbbf
AJ
16275int
16276main ()
16277{
16278static struct statfs ac_aggr;
16279if (sizeof ac_aggr.f_bfree)
16280return 0;
16281 ;
16282 return 0;
16283}
daa2886c 16284_ACEOF
5537dbbf
AJ
16285rm -f conftest.$ac_objext
16286if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16287 (eval $ac_compile) 2>&5
16288 ac_status=$?
16289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16290 (exit $ac_status); } &&
16291 { ac_try='test -s conftest.$ac_objext'
16292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16293 (eval $ac_try) 2>&5
16294 ac_status=$?
16295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16296 (exit $ac_status); }; }; then
16297 ac_cv_member_struct_statfs_f_bfree=yes
16298else
16299 echo "$as_me: failed program was:" >&5
16300sed 's/^/| /' conftest.$ac_ext >&5
c7c217b3 16301
5537dbbf 16302ac_cv_member_struct_statfs_f_bfree=no
c7c217b3 16303fi
5537dbbf
AJ
16304rm -f conftest.$ac_objext conftest.$ac_ext
16305fi
16306rm -f conftest.$ac_objext conftest.$ac_ext
16307fi
16308echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5
16309echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6
16310if test $ac_cv_member_struct_statfs_f_bfree = yes; then
c7c217b3 16311
5537dbbf
AJ
16312cat >>confdefs.h <<_ACEOF
16313#define HAVE_STRUCT_STATFS_F_BFREE 1
16314_ACEOF
daa2886c
AJ
16315
16316
5537dbbf
AJ
16317fi
16318echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5
16319echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6
16320if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then
f5818d2f 16321 echo $ECHO_N "(cached) $ECHO_C" >&6
dadf78ff 16322else
f5818d2f 16323 cat >conftest.$ac_ext <<_ACEOF
daa2886c 16324#line $LINENO "configure"
e24bcc77
AJ
16325/* confdefs.h. */
16326_ACEOF
16327cat confdefs.h >>conftest.$ac_ext
16328cat >>conftest.$ac_ext <<_ACEOF
16329/* end confdefs.h. */
f5818d2f
AJ
16330#include <sys/types.h>
16331#ifdef HAVE_SYS_PARAM_H
16332# include <sys/param.h>
16333#endif
16334#ifdef STATFS_DEFINED_BY_SYS_MOUNT
16335# include <sys/mount.h>
16336#else
16337# ifdef STATFS_DEFINED_BY_SYS_VFS
16338# include <sys/vfs.h>
16339# else
16340# ifdef STATFS_DEFINED_BY_SYS_STATFS
16341# include <sys/statfs.h>
16342# endif
16343# endif
16344#endif
5537dbbf 16345
f5818d2f
AJ
16346int
16347main ()
16348{
5537dbbf
AJ
16349static struct statfs ac_aggr;
16350if (ac_aggr.f_bavail)
16351return 0;
f5818d2f
AJ
16352 ;
16353 return 0;
16354}
16355_ACEOF
16356rm -f conftest.$ac_objext
daa2886c 16357if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
16358 (eval $ac_compile) 2>&5
16359 ac_status=$?
daa2886c 16360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
16361 (exit $ac_status); } &&
16362 { ac_try='test -s conftest.$ac_objext'
daa2886c 16363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
16364 (eval $ac_try) 2>&5
16365 ac_status=$?
daa2886c 16366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 16367 (exit $ac_status); }; }; then
5537dbbf 16368 ac_cv_member_struct_statfs_f_bavail=yes
f5818d2f
AJ
16369else
16370 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
16371sed 's/^/| /' conftest.$ac_ext >&5
16372
5537dbbf
AJ
16373cat >conftest.$ac_ext <<_ACEOF
16374#line $LINENO "configure"
16375/* confdefs.h. */
16376_ACEOF
16377cat confdefs.h >>conftest.$ac_ext
16378cat >>conftest.$ac_ext <<_ACEOF
16379/* end confdefs.h. */
16380#include <sys/types.h>
16381#ifdef HAVE_SYS_PARAM_H
16382# include <sys/param.h>
16383#endif
16384#ifdef STATFS_DEFINED_BY_SYS_MOUNT
16385# include <sys/mount.h>
16386#else
16387# ifdef STATFS_DEFINED_BY_SYS_VFS
16388# include <sys/vfs.h>
16389# else
16390# ifdef STATFS_DEFINED_BY_SYS_STATFS
16391# include <sys/statfs.h>
16392# endif
16393# endif
16394#endif
16395
16396int
16397main ()
16398{
16399static struct statfs ac_aggr;
16400if (sizeof ac_aggr.f_bavail)
16401return 0;
16402 ;
16403 return 0;
16404}
16405_ACEOF
16406rm -f conftest.$ac_objext
16407if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16408 (eval $ac_compile) 2>&5
16409 ac_status=$?
16410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16411 (exit $ac_status); } &&
16412 { ac_try='test -s conftest.$ac_objext'
16413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16414 (eval $ac_try) 2>&5
16415 ac_status=$?
16416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16417 (exit $ac_status); }; }; then
16418 ac_cv_member_struct_statfs_f_bavail=yes
16419else
16420 echo "$as_me: failed program was:" >&5
16421sed 's/^/| /' conftest.$ac_ext >&5
16422
16423ac_cv_member_struct_statfs_f_bavail=no
16424fi
16425rm -f conftest.$ac_objext conftest.$ac_ext
f5818d2f
AJ
16426fi
16427rm -f conftest.$ac_objext conftest.$ac_ext
16428fi
5537dbbf
AJ
16429echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5
16430echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6
16431if test $ac_cv_member_struct_statfs_f_bavail = yes; then
f5818d2f 16432
5537dbbf
AJ
16433cat >>confdefs.h <<_ACEOF
16434#define HAVE_STRUCT_STATFS_F_BAVAIL 1
daa2886c 16435_ACEOF
dadf78ff 16436
dadf78ff 16437
5537dbbf 16438fi
daa2886c
AJ
16439
16440
5537dbbf
AJ
16441echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5
16442echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6
16443if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then
f5818d2f 16444 echo $ECHO_N "(cached) $ECHO_C" >&6
829fe323 16445else
f5818d2f 16446 cat >conftest.$ac_ext <<_ACEOF
daa2886c 16447#line $LINENO "configure"
e24bcc77
AJ
16448/* confdefs.h. */
16449_ACEOF
16450cat confdefs.h >>conftest.$ac_ext
16451cat >>conftest.$ac_ext <<_ACEOF
16452/* end confdefs.h. */
829fe323 16453#include <sys/types.h>
63ae7fee
PS
16454#ifdef HAVE_SYS_SOCKET_H
16455# include <sys/socket.h>
16456#endif
5537dbbf
AJ
16457#ifdef HAVE_SYS_UN_H
16458# include <sys/un.h>
16459#endif
16460
f5818d2f
AJ
16461int
16462main ()
16463{
5537dbbf
AJ
16464static struct msghdr ac_aggr;
16465if (ac_aggr.msg_accrights)
16466return 0;
f5818d2f
AJ
16467 ;
16468 return 0;
16469}
16470_ACEOF
16471rm -f conftest.$ac_objext
daa2886c 16472if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
16473 (eval $ac_compile) 2>&5
16474 ac_status=$?
daa2886c 16475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
16476 (exit $ac_status); } &&
16477 { ac_try='test -s conftest.$ac_objext'
daa2886c 16478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
16479 (eval $ac_try) 2>&5
16480 ac_status=$?
daa2886c 16481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 16482 (exit $ac_status); }; }; then
5537dbbf 16483 ac_cv_member_struct_msghdr_msg_accrights=yes
f5818d2f
AJ
16484else
16485 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
16486sed 's/^/| /' conftest.$ac_ext >&5
16487
5537dbbf
AJ
16488cat >conftest.$ac_ext <<_ACEOF
16489#line $LINENO "configure"
16490/* confdefs.h. */
16491_ACEOF
16492cat confdefs.h >>conftest.$ac_ext
16493cat >>conftest.$ac_ext <<_ACEOF
16494/* end confdefs.h. */
16495#include <sys/types.h>
16496#ifdef HAVE_SYS_SOCKET_H
16497# include <sys/socket.h>
16498#endif
16499#ifdef HAVE_SYS_UN_H
16500# include <sys/un.h>
16501#endif
f5818d2f 16502
5537dbbf
AJ
16503int
16504main ()
16505{
16506static struct msghdr ac_aggr;
16507if (sizeof ac_aggr.msg_accrights)
16508return 0;
16509 ;
16510 return 0;
16511}
daa2886c 16512_ACEOF
5537dbbf
AJ
16513rm -f conftest.$ac_objext
16514if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16515 (eval $ac_compile) 2>&5
16516 ac_status=$?
16517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16518 (exit $ac_status); } &&
16519 { ac_try='test -s conftest.$ac_objext'
16520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16521 (eval $ac_try) 2>&5
16522 ac_status=$?
16523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16524 (exit $ac_status); }; }; then
16525 ac_cv_member_struct_msghdr_msg_accrights=yes
16526else
16527 echo "$as_me: failed program was:" >&5
16528sed 's/^/| /' conftest.$ac_ext >&5
829fe323 16529
5537dbbf
AJ
16530ac_cv_member_struct_msghdr_msg_accrights=no
16531fi
16532rm -f conftest.$ac_objext conftest.$ac_ext
16533fi
16534rm -f conftest.$ac_objext conftest.$ac_ext
829fe323 16535fi
5537dbbf
AJ
16536echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5
16537echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6
16538if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then
829fe323 16539
5537dbbf
AJ
16540cat >>confdefs.h <<_ACEOF
16541#define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
16542_ACEOF
daa2886c
AJ
16543
16544
5537dbbf
AJ
16545fi
16546echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
16547echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
16548if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
f5818d2f 16549 echo $ECHO_N "(cached) $ECHO_C" >&6
2d33ab91 16550else
f5818d2f 16551 cat >conftest.$ac_ext <<_ACEOF
daa2886c 16552#line $LINENO "configure"
e24bcc77
AJ
16553/* confdefs.h. */
16554_ACEOF
16555cat confdefs.h >>conftest.$ac_ext
16556cat >>conftest.$ac_ext <<_ACEOF
16557/* end confdefs.h. */
2d33ab91 16558#include <sys/types.h>
63ae7fee
PS
16559#ifdef HAVE_SYS_SOCKET_H
16560# include <sys/socket.h>
16561#endif
5537dbbf
AJ
16562#ifdef HAVE_SYS_UN_H
16563# include <sys/un.h>
16564#endif
16565
f5818d2f
AJ
16566int
16567main ()
16568{
5537dbbf
AJ
16569static struct sockaddr ac_aggr;
16570if (ac_aggr.sa_len)
16571return 0;
f5818d2f
AJ
16572 ;
16573 return 0;
16574}
16575_ACEOF
16576rm -f conftest.$ac_objext
daa2886c 16577if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
16578 (eval $ac_compile) 2>&5
16579 ac_status=$?
daa2886c 16580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
16581 (exit $ac_status); } &&
16582 { ac_try='test -s conftest.$ac_objext'
daa2886c 16583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
16584 (eval $ac_try) 2>&5
16585 ac_status=$?
daa2886c 16586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 16587 (exit $ac_status); }; }; then
5537dbbf 16588 ac_cv_member_struct_sockaddr_sa_len=yes
09da966c 16589else
f5818d2f 16590 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
16591sed 's/^/| /' conftest.$ac_ext >&5
16592
5537dbbf
AJ
16593cat >conftest.$ac_ext <<_ACEOF
16594#line $LINENO "configure"
16595/* confdefs.h. */
16596_ACEOF
16597cat confdefs.h >>conftest.$ac_ext
16598cat >>conftest.$ac_ext <<_ACEOF
16599/* end confdefs.h. */
16600#include <sys/types.h>
16601#ifdef HAVE_SYS_SOCKET_H
16602# include <sys/socket.h>
16603#endif
16604#ifdef HAVE_SYS_UN_H
16605# include <sys/un.h>
16606#endif
09da966c 16607
5537dbbf
AJ
16608int
16609main ()
16610{
16611static struct sockaddr ac_aggr;
16612if (sizeof ac_aggr.sa_len)
16613return 0;
16614 ;
16615 return 0;
16616}
daa2886c 16617_ACEOF
5537dbbf
AJ
16618rm -f conftest.$ac_objext
16619if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16620 (eval $ac_compile) 2>&5
16621 ac_status=$?
16622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16623 (exit $ac_status); } &&
16624 { ac_try='test -s conftest.$ac_objext'
16625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16626 (eval $ac_try) 2>&5
16627 ac_status=$?
16628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16629 (exit $ac_status); }; }; then
16630 ac_cv_member_struct_sockaddr_sa_len=yes
16631else
16632 echo "$as_me: failed program was:" >&5
16633sed 's/^/| /' conftest.$ac_ext >&5
09da966c 16634
5537dbbf
AJ
16635ac_cv_member_struct_sockaddr_sa_len=no
16636fi
16637rm -f conftest.$ac_objext conftest.$ac_ext
16638fi
16639rm -f conftest.$ac_objext conftest.$ac_ext
09da966c 16640fi
5537dbbf
AJ
16641echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
16642echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
16643if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
09da966c 16644
5537dbbf
AJ
16645cat >>confdefs.h <<_ACEOF
16646#define HAVE_STRUCT_SOCKADDR_SA_LEN 1
16647_ACEOF
daa2886c
AJ
16648
16649
5537dbbf
AJ
16650fi
16651echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5
16652echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6
16653if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then
f5818d2f 16654 echo $ECHO_N "(cached) $ECHO_C" >&6
09da966c 16655else
f5818d2f 16656 cat >conftest.$ac_ext <<_ACEOF
daa2886c 16657#line $LINENO "configure"
e24bcc77
AJ
16658/* confdefs.h. */
16659_ACEOF
16660cat confdefs.h >>conftest.$ac_ext
16661cat >>conftest.$ac_ext <<_ACEOF
16662/* end confdefs.h. */
09da966c 16663#include <sys/types.h>
63ae7fee
PS
16664#ifdef HAVE_SYS_SOCKET_H
16665# include <sys/socket.h>
16666#endif
16667#ifdef HAVE_SYS_UN_H
16668# include <sys/un.h>
16669#endif
5537dbbf 16670
f5818d2f
AJ
16671int
16672main ()
16673{
5537dbbf
AJ
16674static struct sockaddr_un ac_aggr;
16675if (ac_aggr.sun_len)
16676return 0;
f5818d2f
AJ
16677 ;
16678 return 0;
16679}
16680_ACEOF
16681rm -f conftest.$ac_objext
daa2886c 16682if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f5818d2f
AJ
16683 (eval $ac_compile) 2>&5
16684 ac_status=$?
daa2886c 16685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f
AJ
16686 (exit $ac_status); } &&
16687 { ac_try='test -s conftest.$ac_objext'
daa2886c 16688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
f5818d2f
AJ
16689 (eval $ac_try) 2>&5
16690 ac_status=$?
daa2886c 16691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f5818d2f 16692 (exit $ac_status); }; }; then
5537dbbf 16693 ac_cv_member_struct_sockaddr_un_sun_len=yes
f5818d2f
AJ
16694else
16695 echo "$as_me: failed program was:" >&5
e24bcc77
AJ
16696sed 's/^/| /' conftest.$ac_ext >&5
16697
5537dbbf
AJ
16698cat >conftest.$ac_ext <<_ACEOF
16699#line $LINENO "configure"
16700/* confdefs.h. */
16701_ACEOF
16702cat confdefs.h >>conftest.$ac_ext
16703cat >>conftest.$ac_ext <<_ACEOF
16704/* end confdefs.h. */
16705#include <sys/types.h>
16706#ifdef HAVE_SYS_SOCKET_H
16707# include <sys/socket.h>
16708#endif
16709#ifdef HAVE_SYS_UN_H
16710# include <sys/un.h>
16711#endif
16712
16713int
16714main ()
16715{
16716static struct sockaddr_un ac_aggr;
16717if (sizeof ac_aggr.sun_len)
16718return 0;
16719 ;
16720 return 0;
16721}
16722_ACEOF
16723rm -f conftest.$ac_objext
16724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16725 (eval $ac_compile) 2>&5
16726 ac_status=$?
16727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16728 (exit $ac_status); } &&
16729 { ac_try='test -s conftest.$ac_objext'
16730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16731 (eval $ac_try) 2>&5
16732 ac_status=$?
16733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16734 (exit $ac_status); }; }; then
16735 ac_cv_member_struct_sockaddr_un_sun_len=yes
16736else
16737 echo "$as_me: failed program was:" >&5
16738sed 's/^/| /' conftest.$ac_ext >&5
16739
16740ac_cv_member_struct_sockaddr_un_sun_len=no
f5818d2f
AJ
16741fi
16742rm -f conftest.$ac_objext conftest.$ac_ext
16743fi
5537dbbf
AJ
16744rm -f conftest.$ac_objext conftest.$ac_ext
16745fi
16746echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5
16747echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6
16748if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then
f5818d2f 16749
5537dbbf
AJ
16750cat >>confdefs.h <<_ACEOF
16751#define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
16752_ACEOF
16753
16754
16755fi
16756
16757
16758echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5
16759echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6
16760if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then
16761 echo $ECHO_N "(cached) $ECHO_C" >&6
16762else
16763 cat >conftest.$ac_ext <<_ACEOF
16764#line $LINENO "configure"
16765/* confdefs.h. */
16766_ACEOF
16767cat confdefs.h >>conftest.$ac_ext
16768cat >>conftest.$ac_ext <<_ACEOF
16769/* end confdefs.h. */
16770#include <signal.h>
16771
16772int
16773main ()
16774{
16775static siginfo_t ac_aggr;
16776if (ac_aggr.si_fd)
16777return 0;
16778 ;
16779 return 0;
16780}
16781_ACEOF
16782rm -f conftest.$ac_objext
16783if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16784 (eval $ac_compile) 2>&5
16785 ac_status=$?
16786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16787 (exit $ac_status); } &&
16788 { ac_try='test -s conftest.$ac_objext'
16789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16790 (eval $ac_try) 2>&5
16791 ac_status=$?
16792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16793 (exit $ac_status); }; }; then
16794 ac_cv_member_siginfo_t_si_fd=yes
16795else
16796 echo "$as_me: failed program was:" >&5
16797sed 's/^/| /' conftest.$ac_ext >&5
16798
16799cat >conftest.$ac_ext <<_ACEOF
16800#line $LINENO "configure"
16801/* confdefs.h. */
daa2886c 16802_ACEOF
5537dbbf
AJ
16803cat confdefs.h >>conftest.$ac_ext
16804cat >>conftest.$ac_ext <<_ACEOF
16805/* end confdefs.h. */
16806#include <signal.h>
2d33ab91 16807
5537dbbf
AJ
16808int
16809main ()
16810{
16811static siginfo_t ac_aggr;
16812if (sizeof ac_aggr.si_fd)
16813return 0;
16814 ;
16815 return 0;
16816}
16817_ACEOF
16818rm -f conftest.$ac_objext
16819if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16820 (eval $ac_compile) 2>&5
16821 ac_status=$?
16822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823 (exit $ac_status); } &&
16824 { ac_try='test -s conftest.$ac_objext'
16825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16826 (eval $ac_try) 2>&5
16827 ac_status=$?
16828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16829 (exit $ac_status); }; }; then
16830 ac_cv_member_siginfo_t_si_fd=yes
16831else
16832 echo "$as_me: failed program was:" >&5
16833sed 's/^/| /' conftest.$ac_ext >&5
16834
16835ac_cv_member_siginfo_t_si_fd=no
16836fi
16837rm -f conftest.$ac_objext conftest.$ac_ext
16838fi
16839rm -f conftest.$ac_objext conftest.$ac_ext
2d33ab91 16840fi
5537dbbf
AJ
16841echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5
16842echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6
16843if test $ac_cv_member_siginfo_t_si_fd = yes; then
2d33ab91 16844
5537dbbf
AJ
16845cat >>confdefs.h <<_ACEOF
16846#define HAVE_SIGINFO_T_SI_FD 1
16847_ACEOF
16848
16849
16850fi
daa2886c
AJ
16851
16852
db89a54b
AJ
16853echo "$as_me:$LINENO: checking for struct option.name" >&5
16854echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6
16855if test "${ac_cv_member_struct_option_name+set}" = set; then
16856 echo $ECHO_N "(cached) $ECHO_C" >&6
16857else
16858 cat >conftest.$ac_ext <<_ACEOF
16859#line $LINENO "configure"
16860/* confdefs.h. */
16861_ACEOF
16862cat confdefs.h >>conftest.$ac_ext
16863cat >>conftest.$ac_ext <<_ACEOF
16864/* end confdefs.h. */
16865#ifdef HAVE_GETOPT_H
16866#include <getopt.h>
16867#endif
16868
16869int
16870main ()
16871{
16872static struct option ac_aggr;
16873if (ac_aggr.name)
16874return 0;
16875 ;
16876 return 0;
16877}
16878_ACEOF
16879rm -f conftest.$ac_objext
16880if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16881 (eval $ac_compile) 2>&5
16882 ac_status=$?
16883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16884 (exit $ac_status); } &&
16885 { ac_try='test -s conftest.$ac_objext'
16886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16887 (eval $ac_try) 2>&5
16888 ac_status=$?
16889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16890 (exit $ac_status); }; }; then
16891 ac_cv_member_struct_option_name=yes
16892else
16893 echo "$as_me: failed program was:" >&5
16894sed 's/^/| /' conftest.$ac_ext >&5
16895
16896cat >conftest.$ac_ext <<_ACEOF
16897#line $LINENO "configure"
16898/* confdefs.h. */
16899_ACEOF
16900cat confdefs.h >>conftest.$ac_ext
16901cat >>conftest.$ac_ext <<_ACEOF
16902/* end confdefs.h. */
16903#ifdef HAVE_GETOPT_H
16904#include <getopt.h>
16905#endif
16906
16907int
16908main ()
16909{
16910static struct option ac_aggr;
16911if (sizeof ac_aggr.name)
16912return 0;
16913 ;
16914 return 0;
16915}
16916_ACEOF
16917rm -f conftest.$ac_objext
16918if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16919 (eval $ac_compile) 2>&5
16920 ac_status=$?
16921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16922 (exit $ac_status); } &&
16923 { ac_try='test -s conftest.$ac_objext'
16924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16925 (eval $ac_try) 2>&5
16926 ac_status=$?
16927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16928 (exit $ac_status); }; }; then
16929 ac_cv_member_struct_option_name=yes
16930else
16931 echo "$as_me: failed program was:" >&5
16932sed 's/^/| /' conftest.$ac_ext >&5
16933
16934ac_cv_member_struct_option_name=no
16935fi
16936rm -f conftest.$ac_objext conftest.$ac_ext
16937fi
16938rm -f conftest.$ac_objext conftest.$ac_ext
16939fi
16940echo "$as_me:$LINENO: result: $ac_cv_member_struct_option_name" >&5
16941echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6
16942if test $ac_cv_member_struct_option_name = yes; then
16943
16944cat >>confdefs.h <<_ACEOF
16945#define HAVE_STRUCT_OPTION_NAME 1
16946_ACEOF
16947
16948
16949fi
16950
16951
d6507196
PR
16952echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
16953echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
16954if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
16955 echo $ECHO_N "(cached) $ECHO_C" >&6
16956else
16957 cat >conftest.$ac_ext <<_ACEOF
16958#line $LINENO "configure"
16959/* confdefs.h. */
16960_ACEOF
16961cat confdefs.h >>conftest.$ac_ext
16962cat >>conftest.$ac_ext <<_ACEOF
16963/* end confdefs.h. */
16964$ac_includes_default
16965int
16966main ()
16967{
16968static struct stat ac_aggr;
16969if (ac_aggr.st_blocks)
16970return 0;
16971 ;
16972 return 0;
16973}
16974_ACEOF
16975rm -f conftest.$ac_objext
16976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16977 (eval $ac_compile) 2>&5
16978 ac_status=$?
16979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16980 (exit $ac_status); } &&
16981 { ac_try='test -s conftest.$ac_objext'
16982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16983 (eval $ac_try) 2>&5
16984 ac_status=$?
16985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16986 (exit $ac_status); }; }; then
16987 ac_cv_member_struct_stat_st_blocks=yes
16988else
16989 echo "$as_me: failed program was:" >&5
16990sed 's/^/| /' conftest.$ac_ext >&5
16991
16992cat >conftest.$ac_ext <<_ACEOF
16993#line $LINENO "configure"
16994/* confdefs.h. */
16995_ACEOF
16996cat confdefs.h >>conftest.$ac_ext
16997cat >>conftest.$ac_ext <<_ACEOF
16998/* end confdefs.h. */
16999$ac_includes_default
17000int
17001main ()
17002{
17003static struct stat ac_aggr;
17004if (sizeof ac_aggr.st_blocks)
17005return 0;
17006 ;
17007 return 0;
17008}
17009_ACEOF
17010rm -f conftest.$ac_objext
17011if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17012 (eval $ac_compile) 2>&5
17013 ac_status=$?
17014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17015 (exit $ac_status); } &&
17016 { ac_try='test -s conftest.$ac_objext'
17017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17018 (eval $ac_try) 2>&5
17019 ac_status=$?
17020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021 (exit $ac_status); }; }; then
17022 ac_cv_member_struct_stat_st_blocks=yes
17023else
17024 echo "$as_me: failed program was:" >&5
17025sed 's/^/| /' conftest.$ac_ext >&5
17026
17027ac_cv_member_struct_stat_st_blocks=no
17028fi
17029rm -f conftest.$ac_objext conftest.$ac_ext
17030fi
17031rm -f conftest.$ac_objext conftest.$ac_ext
17032fi
17033echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
17034echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
17035if test $ac_cv_member_struct_stat_st_blocks = yes; then
17036
17037cat >>confdefs.h <<_ACEOF
17038#define HAVE_STRUCT_STAT_ST_BLOCKS 1
17039_ACEOF
17040
17041
17042fi
17043
17044
daa2886c 17045
fc01b729 17046case $host_cpu in
05783b55 17047 *i[3456789]86*) echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
f5818d2f 17048echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6
05783b55 17049if test "${ac_cv_cpp_def___i386__+set}" = set; then
f5818d2f 17050 echo $ECHO_N "(cached) $ECHO_C" >&6
51d46ba9 17051else
f5818d2f 17052 cat >conftest.$ac_ext <<_ACEOF
daa2886c 17053#line $LINENO "configure"
e24bcc77
AJ
17054/* confdefs.h. */
17055_ACEOF
17056cat confdefs.h >>conftest.$ac_ext
17057cat >>conftest.$ac_ext <<_ACEOF
17058/* end confdefs.h. */
f5818d2f 17059#ifndef __i386__
51d46ba9
AJ
17060yes
17061#endif
f5818d2f 17062_ACEOF
51d46ba9 17063if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11af04e3 17064 $EGREP "yes" >/dev/null 2>&1; then
05783b55 17065 ac_cv_cpp_def___i386__=yes
51d46ba9 17066else
05783b55 17067 ac_cv_cpp_def___i386__=no
51d46ba9
AJ
17068fi
17069rm -f conftest*
17070
17071fi
05783b55
AJ
17072echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
17073echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6
17074if test $ac_cv_cpp_def___i386__ = yes; then
17075 CFLAGS="$CFLAGS -D__i386__"
17076 LINTFLAGS="$LINTFLAGS -D__i386__"
51d46ba9 17077fi
05783b55
AJ
17078 ;;
17079 *alpha*) echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
69b67861 17080echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6
05783b55 17081if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
69b67861
SE
17082 echo $ECHO_N "(cached) $ECHO_C" >&6
17083else
17084 cat >conftest.$ac_ext <<_ACEOF
17085#line $LINENO "configure"
e24bcc77
AJ
17086/* confdefs.h. */
17087_ACEOF
17088cat confdefs.h >>conftest.$ac_ext
17089cat >>conftest.$ac_ext <<_ACEOF
17090/* end confdefs.h. */
69b67861
SE
17091#ifndef __ALPHA__
17092yes
17093#endif
17094_ACEOF
17095if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17096 $EGREP "yes" >/dev/null 2>&1; then
05783b55 17097 ac_cv_cpp_def___ALPHA__=yes
69b67861 17098else
05783b55 17099 ac_cv_cpp_def___ALPHA__=no
69b67861
SE
17100fi
17101rm -f conftest*
17102
17103fi
05783b55
AJ
17104echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
17105echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6
17106if test $ac_cv_cpp_def___ALPHA__ = yes; then
17107 CFLAGS="$CFLAGS -D__ALPHA__"
17108 LINTFLAGS="$LINTFLAGS -D__ALPHA__"
69b67861 17109fi
05783b55
AJ
17110 ;;
17111 *sparc*) echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
57807fa1 17112echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6
05783b55 17113if test "${ac_cv_cpp_def___sparc__+set}" = set; then
57807fa1
GM
17114 echo $ECHO_N "(cached) $ECHO_C" >&6
17115else
17116 cat >conftest.$ac_ext <<_ACEOF
17117#line $LINENO "configure"
e24bcc77
AJ
17118/* confdefs.h. */
17119_ACEOF
17120cat confdefs.h >>conftest.$ac_ext
17121cat >>conftest.$ac_ext <<_ACEOF
17122/* end confdefs.h. */
57807fa1
GM
17123#ifndef __sparc__
17124yes
17125#endif
17126_ACEOF
17127if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11af04e3 17128 $EGREP "yes" >/dev/null 2>&1; then
05783b55 17129 ac_cv_cpp_def___sparc__=yes
57807fa1 17130else
05783b55 17131 ac_cv_cpp_def___sparc__=no
57807fa1
GM
17132fi
17133rm -f conftest*
17134
17135fi
05783b55
AJ
17136echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
17137echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6
17138if test $ac_cv_cpp_def___sparc__ = yes; then
17139 CFLAGS="$CFLAGS -D__sparc__"
17140 LINTFLAGS="$LINTFLAGS -D__sparc__"
b64b7deb
PH
17141fi
17142 ;;
17143 *powerpc*) echo "$as_me:$LINENO: checking whether we need to define __powerpc__" >&5
17144echo $ECHO_N "checking whether we need to define __powerpc__... $ECHO_C" >&6
17145if test "${ac_cv_cpp_def___powerpc__+set}" = set; then
17146 echo $ECHO_N "(cached) $ECHO_C" >&6
17147else
17148 cat >conftest.$ac_ext <<_ACEOF
17149#line $LINENO "configure"
17150/* confdefs.h. */
17151_ACEOF
17152cat confdefs.h >>conftest.$ac_ext
17153cat >>conftest.$ac_ext <<_ACEOF
17154/* end confdefs.h. */
17155#ifndef __powerpc__
17156yes
17157#endif
17158_ACEOF
17159if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17160 $EGREP "yes" >/dev/null 2>&1; then
17161 ac_cv_cpp_def___powerpc__=yes
17162else
17163 ac_cv_cpp_def___powerpc__=no
17164fi
17165rm -f conftest*
17166
17167fi
17168echo "$as_me:$LINENO: result: $ac_cv_cpp_def___powerpc__" >&5
17169echo "${ECHO_T}$ac_cv_cpp_def___powerpc__" >&6
17170if test $ac_cv_cpp_def___powerpc__ = yes; then
17171 CFLAGS="$CFLAGS -D__powerpc__"
17172 LINTFLAGS="$LINTFLAGS -D__powerpc__"
57807fa1 17173fi
05783b55
AJ
17174 ;;
17175esac
57807fa1
GM
17176
17177case $host_vendor in
05783b55 17178 *sun*) echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
57807fa1 17179echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6
05783b55 17180if test "${ac_cv_cpp_def___sun__+set}" = set; then
57807fa1
GM
17181 echo $ECHO_N "(cached) $ECHO_C" >&6
17182else
17183 cat >conftest.$ac_ext <<_ACEOF
17184#line $LINENO "configure"
e24bcc77
AJ
17185/* confdefs.h. */
17186_ACEOF
17187cat confdefs.h >>conftest.$ac_ext
17188cat >>conftest.$ac_ext <<_ACEOF
17189/* end confdefs.h. */
57807fa1
GM
17190#ifndef __sun__
17191yes
17192#endif
17193_ACEOF
17194if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11af04e3 17195 $EGREP "yes" >/dev/null 2>&1; then
05783b55 17196 ac_cv_cpp_def___sun__=yes
57807fa1 17197else
05783b55 17198 ac_cv_cpp_def___sun__=no
57807fa1
GM
17199fi
17200rm -f conftest*
17201
17202fi
05783b55
AJ
17203echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
17204echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6
17205if test $ac_cv_cpp_def___sun__ = yes; then
17206 CFLAGS="$CFLAGS -D__sun__"
17207 LINTFLAGS="$LINTFLAGS -D__sun__"
57807fa1 17208fi
05783b55
AJ
17209 ;;
17210esac
57807fa1
GM
17211
17212
daa2886c
AJ
17213
17214
17215
11af04e3 17216 ac_config_commands="$ac_config_commands controls"
9bb05fc4 17217
11af04e3 17218 ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice"
a7f5cb5b 17219
11af04e3 17220 ac_config_commands="$ac_config_commands dlls/ddraw/dclipper"
a7f5cb5b 17221
11af04e3 17222 ac_config_commands="$ac_config_commands dlls/ddraw/ddraw"
829fe323 17223
11af04e3 17224 ac_config_commands="$ac_config_commands dlls/ddraw/direct3d"
1425941e 17225
11af04e3 17226 ac_config_commands="$ac_config_commands dlls/ddraw/dpalette"
1425941e 17227
11af04e3 17228 ac_config_commands="$ac_config_commands dlls/ddraw/dsurface"
87a2f8df 17229
11af04e3 17230 ac_config_commands="$ac_config_commands dlls/dinput/joystick"
87a2f8df 17231
11af04e3 17232 ac_config_commands="$ac_config_commands dlls/dinput/keyboard"
e2991ea7 17233
11af04e3 17234 ac_config_commands="$ac_config_commands dlls/dinput/mouse"
e2991ea7 17235
11af04e3 17236 ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
89118568 17237
11af04e3 17238 ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
89118568 17239
11af04e3 17240 ac_config_commands="$ac_config_commands dlls/kernel/messages"
f5818d2f 17241
11af04e3 17242 ac_config_commands="$ac_config_commands dlls/user/dde"
d0edc5fe 17243
11af04e3 17244 ac_config_commands="$ac_config_commands dlls/user/resources"
f5818d2f 17245
11af04e3 17246 ac_config_commands="$ac_config_commands dlls/wineps/data"
f5818d2f 17247
11af04e3 17248 ac_config_commands="$ac_config_commands files"
9bb05fc4 17249
11af04e3 17250 ac_config_commands="$ac_config_commands graphics"
9bb05fc4 17251
11af04e3 17252 ac_config_commands="$ac_config_commands include/wine"
f5818d2f 17253
11af04e3 17254 ac_config_commands="$ac_config_commands misc"
9bb05fc4 17255
11af04e3 17256 ac_config_commands="$ac_config_commands objects"
9bb05fc4 17257
11af04e3 17258 ac_config_commands="$ac_config_commands programs/regedit/tests"
f5aad769 17259
11af04e3 17260 ac_config_commands="$ac_config_commands windows"
9bb05fc4 17261
f5818d2f
AJ
17262
17263MAKE_RULES=Make.rules
17264
daa2886c 17265
f5818d2f 17266MAKE_DLL_RULES=dlls/Makedll.rules
d0edc5fe 17267
daa2886c 17268
edeee89c
AJ
17269MAKE_TEST_RULES=dlls/Maketest.rules
17270
17271
117436e0
AJ
17272MAKE_LIB_RULES=libs/Makelib.rules
17273
17274
626f425b
AJ
17275MAKE_PROG_RULES=programs/Makeprog.rules
17276
daa2886c 17277
9655a5fd 17278 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/capi2032/Makefile dlls/cfgmgr32/Makefile dlls/comcat/Makefile dlls/comctl32/Makefile dlls/comctl32/tests/Makefile dlls/commdlg/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/ctl3d/Makefile dlls/wined3d/Makefile dlls/d3d8/Makefile dlls/d3d9/Makefile dlls/d3dim/Makefile dlls/d3dx8/Makefile dlls/dciman32/Makefile dlls/ddraw/Makefile dlls/ddraw/tests/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/glut32/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/mshtml/Makefile dlls/msi/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/mswsock/Makefile dlls/netapi32/Makefile dlls/netapi32/tests/Makefile dlls/newdev/Makefile dlls/ntdll/Makefile dlls/ntdll/tests/Makefile dlls/odbc32/Makefile dlls/ole32/Makefile dlls/oleacc/Makefile dlls/oleaut32/Makefile dlls/oleaut32/tests/Makefile dlls/olecli/Makefile dlls/oledlg/Makefile dlls/olepro32/Makefile dlls/olesvr/Makefile dlls/opengl32/Makefile dlls/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/unicows/Makefile dlls/url/Makefile dlls/urlmon/Makefile dlls/urlmon/tests/Makefile dlls/user/Makefile dlls/user/tests/Makefile dlls/uxtheme/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 loader/Makefile programs/Makefile programs/avitools/Makefile programs/clock/Makefile programs/cmdlgtst/Makefile programs/control/Makefile programs/expand/Makefile programs/notepad/Makefile programs/progman/Makefile programs/regedit/Makefile programs/regsvr32/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/winemenubuilder/Makefile programs/winemine/Makefile programs/winepath/Makefile programs/winetest/Makefile programs/winevdm/Makefile programs/winhelp/Makefile programs/winver/Makefile server/Makefile tools/Makefile tools/widl/Makefile tools/winapi/Makefile tools/winebuild/Makefile tools/winedump/Makefile tools/winegcc/Makefile tools/wmc/Makefile tools/wrc/Makefile"
daa2886c 17279
626f425b 17280
f5818d2f 17281cat >confcache <<\_ACEOF
e2991ea7
AJ
17282# This file is a shell script that caches the results of configure
17283# tests run on this system so they can be shared between configure
f5818d2f
AJ
17284# scripts and configure runs, see configure's option --config-cache.
17285# It is not useful on other systems. If it contains results you don't
17286# want to keep, you may remove or edit it.
e2991ea7 17287#
f5818d2f
AJ
17288# config.status only pays attention to the cache file if you give it
17289# the --recheck option to rerun configure.
e2991ea7 17290#
11af04e3 17291# `ac_cv_env_foo' variables (set or unset) will be overridden when
f5818d2f
AJ
17292# loading this file, other *unset* `ac_cv_foo' will be assigned the
17293# following values.
17294
17295_ACEOF
17296
7e6ae4ba
AJ
17297# The following way of writing the cache mishandles newlines in values,
17298# but we know of no workaround that is simple, portable, and efficient.
17299# So, don't put newlines in cache variables' values.
e2991ea7
AJ
17300# Ultrix sh set writes to stderr and can't be redirected directly,
17301# and sets the high bit in the cache file unless we assign to the vars.
f5818d2f
AJ
17302{
17303 (set) 2>&1 |
17304 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17305 *ac_space=\ *)
17306 # `set' does not quote correctly, so add quotes (double-quote
17307 # substitution turns \\\\ into \\, and sed turns \\ into \).
17308 sed -n \
17309 "s/'/'\\\\''/g;
17310 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17311 ;;
17312 *)
17313 # `set' quotes correctly as required by POSIX, so do not add quotes.
17314 sed -n \
17315 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17316 ;;
17317 esac;
17318} |
17319 sed '
17320 t clear
17321 : clear
17322 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17323 t end
17324 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17325 : end' >>confcache
e24bcc77 17326if diff $cache_file confcache >/dev/null 2>&1; then :; else
e2991ea7 17327 if test -w $cache_file; then
f5818d2f
AJ
17328 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17329 cat confcache >$cache_file
e2991ea7
AJ
17330 else
17331 echo "not updating unwritable cache $cache_file"
17332 fi
17333fi
17334rm -f confcache
17335
e2991ea7
AJ
17336test "x$prefix" = xNONE && prefix=$ac_default_prefix
17337# Let make expand exec_prefix.
17338test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17339
f5818d2f
AJ
17340# VPATH may cause trouble with some makes, so we remove $(srcdir),
17341# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17342# trailing colons and then remove the whole line if VPATH becomes empty
17343# (actually we leave an empty line to preserve line numbers).
e2991ea7 17344if test "x$srcdir" = x.; then
f5818d2f
AJ
17345 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17346s/:*\$(srcdir):*/:/;
17347s/:*\${srcdir}:*/:/;
17348s/:*@srcdir@:*/:/;
17349s/^\([^=]*=[ ]*\):*/\1/;
17350s/:*$//;
17351s/^[^=]*=[ ]*$//;
17352}'
e2991ea7
AJ
17353fi
17354
18f92e76 17355DEFS=-DHAVE_CONFIG_H
e2991ea7 17356
11af04e3
AJ
17357ac_libobjs=
17358ac_ltlibobjs=
17359for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17360 # 1. Remove the extension, and $U if already installed.
17361 ac_i=`echo "$ac_i" |
17362 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
17363 # 2. Add them.
17364 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
17365 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
17366done
17367LIBOBJS=$ac_libobjs
17368
17369LTLIBOBJS=$ac_ltlibobjs
17370
17371
daa2886c 17372
e2991ea7 17373: ${CONFIG_STATUS=./config.status}
f5818d2f
AJ
17374ac_clean_files_save=$ac_clean_files
17375ac_clean_files="$ac_clean_files $CONFIG_STATUS"
daa2886c 17376{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
f5818d2f
AJ
17377echo "$as_me: creating $CONFIG_STATUS" >&6;}
17378cat >$CONFIG_STATUS <<_ACEOF
17379#! $SHELL
daa2886c 17380# Generated by $as_me.
e2991ea7 17381# Run this file to recreate the current configuration.
e2991ea7 17382# Compiler output produced by configure, useful for debugging
f5818d2f 17383# configure, is in config.log if it exists.
e2991ea7 17384
f5818d2f 17385debug=false
e24bcc77
AJ
17386ac_cs_recheck=false
17387ac_cs_silent=false
f5818d2f 17388SHELL=\${CONFIG_SHELL-$SHELL}
f5818d2f
AJ
17389_ACEOF
17390
17391cat >>$CONFIG_STATUS <<\_ACEOF
daa2886c
AJ
17392## --------------------- ##
17393## M4sh Initialization. ##
17394## --------------------- ##
17395
f5818d2f
AJ
17396# Be Bourne compatible
17397if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17398 emulate sh
17399 NULLCMD=:
11af04e3
AJ
17400 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17401 # is contrary to our usage. Disable this feature.
17402 alias -g '${1+"$@"}'='"$@"'
f5818d2f
AJ
17403elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17404 set -o posix
17405fi
17406
daa2886c
AJ
17407# Support unset when possible.
17408if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
17409 as_unset=unset
17410else
17411 as_unset=false
17412fi
17413
11af04e3
AJ
17414
17415# Work around bugs in pre-3.0 UWIN ksh.
17416$as_unset ENV MAIL MAILPATH
17417PS1='$ '
17418PS2='> '
17419PS4='+ '
17420
17421# NLS nuisances.
e24bcc77
AJ
17422for as_var in \
17423 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17424 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17425 LC_TELEPHONE LC_TIME
11af04e3
AJ
17426do
17427 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
17428 eval $as_var=C; export $as_var
17429 else
17430 $as_unset $as_var
17431 fi
17432done
17433
17434# Required to use basename.
17435if expr a : '\(a\)' >/dev/null 2>&1; then
17436 as_expr=expr
17437else
17438 as_expr=false
17439fi
17440
17441if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17442 as_basename=basename
17443else
17444 as_basename=false
17445fi
daa2886c
AJ
17446
17447
f5818d2f 17448# Name of the executable.
11af04e3 17449as_me=`$as_basename "$0" ||
daa2886c
AJ
17450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17451 X"$0" : 'X\(//\)$' \| \
17452 X"$0" : 'X\(/\)$' \| \
17453 . : '\(.\)' 2>/dev/null ||
17454echo X/"$0" |
17455 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17456 /^X\/\(\/\/\)$/{ s//\1/; q; }
17457 /^X\/\(\/\).*/{ s//\1/; q; }
17458 s/.*/./; q'`
17459
11af04e3 17460
daa2886c
AJ
17461# PATH needs CR, and LINENO needs CR and PATH.
17462# Avoid depending upon Character Ranges.
17463as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17464as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17465as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17466as_cr_digits='0123456789'
17467as_cr_alnum=$as_cr_Letters$as_cr_digits
17468
17469# The user is always right.
17470if test "${PATH_SEPARATOR+set}" != set; then
e24bcc77
AJ
17471 echo "#! /bin/sh" >conf$$.sh
17472 echo "exit 0" >>conf$$.sh
17473 chmod +x conf$$.sh
17474 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
daa2886c
AJ
17475 PATH_SEPARATOR=';'
17476 else
17477 PATH_SEPARATOR=:
17478 fi
e24bcc77 17479 rm -f conf$$.sh
daa2886c
AJ
17480fi
17481
17482
17483 as_lineno_1=$LINENO
17484 as_lineno_2=$LINENO
17485 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17486 test "x$as_lineno_1" != "x$as_lineno_2" &&
17487 test "x$as_lineno_3" = "x$as_lineno_2" || {
17488 # Find who we are. Look in the path if we contain no path at all
17489 # relative or not.
17490 case $0 in
17491 *[\\/]* ) as_myself=$0 ;;
17492 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17493for as_dir in $PATH
17494do
17495 IFS=$as_save_IFS
17496 test -z "$as_dir" && as_dir=.
17497 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17498done
17499
17500 ;;
17501 esac
17502 # We did not find ourselves, most probably we were run as `sh COMMAND'
17503 # in which case we are not to be found in the path.
17504 if test "x$as_myself" = x; then
17505 as_myself=$0
17506 fi
17507 if test ! -f "$as_myself"; then
17508 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17509echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17510 { (exit 1); exit 1; }; }
17511 fi
17512 case $CONFIG_SHELL in
17513 '')
17514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17515for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17516do
17517 IFS=$as_save_IFS
17518 test -z "$as_dir" && as_dir=.
17519 for as_base in sh bash ksh sh5; do
17520 case $as_dir in
17521 /*)
17522 if ("$as_dir/$as_base" -c '
17523 as_lineno_1=$LINENO
17524 as_lineno_2=$LINENO
17525 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17526 test "x$as_lineno_1" != "x$as_lineno_2" &&
17527 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11af04e3
AJ
17528 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17529 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
daa2886c
AJ
17530 CONFIG_SHELL=$as_dir/$as_base
17531 export CONFIG_SHELL
17532 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17533 fi;;
17534 esac
17535 done
17536done
17537;;
17538 esac
17539
17540 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17541 # uniformly replaced by the line number. The first 'sed' inserts a
17542 # line-number line before each line; the second 'sed' does the real
17543 # work. The second script uses 'N' to pair each line-number line
17544 # with the numbered line, and appends trailing '-' during
17545 # substitution so that $LINENO is not a special case at line end.
17546 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17547 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17548 sed '=' <$as_myself |
17549 sed '
17550 N
17551 s,$,-,
17552 : loop
17553 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17554 t loop
17555 s,-$,,
17556 s,^['$as_cr_digits']*\n,,
17557 ' >$as_me.lineno &&
17558 chmod +x $as_me.lineno ||
17559 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17560echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17561 { (exit 1); exit 1; }; }
17562
17563 # Don't try to exec as it changes $[0], causing all sort of problems
17564 # (the dirname of $[0] is not the place where we might find the
17565 # original and so on. Autoconf is especially sensible to this).
17566 . ./$as_me.lineno
17567 # Exit status is that of the last command.
17568 exit
17569}
17570
17571
17572case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17573 *c*,-n*) ECHO_N= ECHO_C='
17574' ECHO_T=' ' ;;
17575 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17576 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17577esac
f5818d2f
AJ
17578
17579if expr a : '\(a\)' >/dev/null 2>&1; then
17580 as_expr=expr
17581else
17582 as_expr=false
17583fi
17584
17585rm -f conf$$ conf$$.exe conf$$.file
17586echo >conf$$.file
17587if ln -s conf$$.file conf$$ 2>/dev/null; then
17588 # We could just check for DJGPP; but this test a) works b) is more generic
17589 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17590 if test -f conf$$.exe; then
17591 # Don't use ln at all; we don't have any links
17592 as_ln_s='cp -p'
17593 else
17594 as_ln_s='ln -s'
17595 fi
17596elif ln conf$$.file conf$$ 2>/dev/null; then
17597 as_ln_s=ln
17598else
17599 as_ln_s='cp -p'
17600fi
17601rm -f conf$$ conf$$.exe conf$$.file
17602
11af04e3
AJ
17603if mkdir -p . 2>/dev/null; then
17604 as_mkdir_p=:
17605else
17606 as_mkdir_p=false
17607fi
17608
f5818d2f
AJ
17609as_executable_p="test -f"
17610
daa2886c
AJ
17611# Sed expression to map a string onto a valid CPP name.
17612as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17613
17614# Sed expression to map a string onto a valid variable name.
17615as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
f5818d2f 17616
f5818d2f
AJ
17617
17618# IFS
17619# We need space, tab and new line, in precisely that order.
17620as_nl='
17621'
17622IFS=" $as_nl"
17623
17624# CDPATH.
11af04e3 17625$as_unset CDPATH
f5818d2f
AJ
17626
17627exec 6>&1
17628
daa2886c
AJ
17629# Open the log real soon, to keep \$[0] and so on meaningful, and to
17630# report actual input values of CONFIG_FILES etc. instead of their
17631# values after options handling. Logging --version etc. is OK.
17632exec 5>>config.log
17633{
17634 echo
17635 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17636## Running $as_me. ##
17637_ASBOX
17638} >&5
17639cat >&5 <<_CSEOF
17640
2361f41a 17641This file was extended by Wine $as_me 20031212, which was
e24bcc77 17642generated by GNU Autoconf 2.57. Invocation command line was
daa2886c
AJ
17643
17644 CONFIG_FILES = $CONFIG_FILES
17645 CONFIG_HEADERS = $CONFIG_HEADERS
17646 CONFIG_LINKS = $CONFIG_LINKS
17647 CONFIG_COMMANDS = $CONFIG_COMMANDS
17648 $ $0 $@
17649
17650_CSEOF
17651echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17652echo >&5
f5818d2f
AJ
17653_ACEOF
17654
17655# Files that config.status was made for.
17656if test -n "$ac_config_files"; then
17657 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17658fi
17659
17660if test -n "$ac_config_headers"; then
17661 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17662fi
17663
17664if test -n "$ac_config_links"; then
17665 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17666fi
17667
17668if test -n "$ac_config_commands"; then
17669 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17670fi
17671
daa2886c 17672cat >>$CONFIG_STATUS <<\_ACEOF
f5818d2f
AJ
17673
17674ac_cs_usage="\
17675\`$as_me' instantiates files from templates according to the
17676current configuration.
17677
17678Usage: $0 [OPTIONS] [FILE]...
17679
17680 -h, --help print this help, then exit
17681 -V, --version print version number, then exit
e24bcc77 17682 -q, --quiet do not print progress messages
f5818d2f
AJ
17683 -d, --debug don't remove temporary files
17684 --recheck update $as_me by reconfiguring in the same conditions
17685 --file=FILE[:TEMPLATE]
17686 instantiate the configuration file FILE
17687 --header=FILE[:TEMPLATE]
17688 instantiate the configuration header FILE
17689
17690Configuration files:
17691$config_files
17692
17693Configuration headers:
17694$config_headers
17695
17696Configuration commands:
17697$config_commands
17698
17699Report bugs to <bug-autoconf@gnu.org>."
daa2886c 17700_ACEOF
f5818d2f 17701
daa2886c 17702cat >>$CONFIG_STATUS <<_ACEOF
f5818d2f 17703ac_cs_version="\\
2361f41a 17704Wine config.status 20031212
e24bcc77 17705configured by $0, generated by GNU Autoconf 2.57,
f5818d2f
AJ
17706 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17707
17708Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
17709Free Software Foundation, Inc.
17710This config.status script is free software; the Free Software Foundation
17711gives unlimited permission to copy, distribute and modify it."
17712srcdir=$srcdir
17713INSTALL="$INSTALL"
daa2886c 17714_ACEOF
f5818d2f 17715
daa2886c 17716cat >>$CONFIG_STATUS <<\_ACEOF
f5818d2f
AJ
17717# If no file are specified by the user, then we need to provide default
17718# value. By we need to know if files were specified by the user.
17719ac_need_defaults=:
17720while test $# != 0
e2991ea7 17721do
f5818d2f
AJ
17722 case $1 in
17723 --*=*)
17724 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17725 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11af04e3
AJ
17726 ac_shift=:
17727 ;;
17728 -*)
17729 ac_option=$1
17730 ac_optarg=$2
17731 ac_shift=shift
f5818d2f 17732 ;;
f5818d2f
AJ
17733 *) # This is not an option, so the user has probably given explicit
17734 # arguments.
11af04e3 17735 ac_option=$1
f5818d2f
AJ
17736 ac_need_defaults=false;;
17737 esac
17738
11af04e3 17739 case $ac_option in
f5818d2f 17740 # Handling of the options.
daa2886c 17741_ACEOF
daa2886c 17742cat >>$CONFIG_STATUS <<\_ACEOF
e24bcc77
AJ
17743 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17744 ac_cs_recheck=: ;;
f5818d2f
AJ
17745 --version | --vers* | -V )
17746 echo "$ac_cs_version"; exit 0 ;;
17747 --he | --h)
17748 # Conflict between --help and --header
daa2886c 17749 { { echo "$as_me:$LINENO: error: ambiguous option: $1
f5818d2f
AJ
17750Try \`$0 --help' for more information." >&5
17751echo "$as_me: error: ambiguous option: $1
17752Try \`$0 --help' for more information." >&2;}
17753 { (exit 1); exit 1; }; };;
17754 --help | --hel | -h )
17755 echo "$ac_cs_usage"; exit 0 ;;
17756 --debug | --d* | -d )
17757 debug=: ;;
17758 --file | --fil | --fi | --f )
11af04e3
AJ
17759 $ac_shift
17760 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
f5818d2f
AJ
17761 ac_need_defaults=false;;
17762 --header | --heade | --head | --hea )
11af04e3
AJ
17763 $ac_shift
17764 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
f5818d2f 17765 ac_need_defaults=false;;
e24bcc77
AJ
17766 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17767 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17768 ac_cs_silent=: ;;
f5818d2f
AJ
17769
17770 # This is an error.
daa2886c 17771 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
f5818d2f
AJ
17772Try \`$0 --help' for more information." >&5
17773echo "$as_me: error: unrecognized option: $1
17774Try \`$0 --help' for more information." >&2;}
17775 { (exit 1); exit 1; }; } ;;
17776
17777 *) ac_config_targets="$ac_config_targets $1" ;;
17778
e2991ea7 17779 esac
f5818d2f 17780 shift
e2991ea7
AJ
17781done
17782
e24bcc77
AJ
17783ac_configure_extra_args=
17784
17785if $ac_cs_silent; then
17786 exec 6>/dev/null
17787 ac_configure_extra_args="$ac_configure_extra_args --silent"
17788fi
17789
17790_ACEOF
17791cat >>$CONFIG_STATUS <<_ACEOF
17792if \$ac_cs_recheck; then
17793 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17794 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17795fi
17796
f5818d2f 17797_ACEOF
e2991ea7 17798
f5818d2f 17799
f5818d2f 17800
f5818d2f 17801
daa2886c
AJ
17802
17803cat >>$CONFIG_STATUS <<\_ACEOF
f5818d2f
AJ
17804for ac_config_target in $ac_config_targets
17805do
17806 case "$ac_config_target" in
17807 # Handling of arguments.
17808 "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
17809 "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
edeee89c 17810 "dlls/Maketest.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
117436e0 17811 "libs/Makelib.rules" ) CONFIG_FILES="$CONFIG_FILES libs/Makelib.rules" ;;
f5818d2f
AJ
17812 "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
17813 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
f5818d2f
AJ
17814 "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
17815 "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
edeee89c 17816 "dlls/advapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
f5818d2f
AJ
17817 "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
17818 "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
d1447faa 17819 "dlls/cabinet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
00fdd9fc 17820 "dlls/capi2032/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/capi2032/Makefile" ;;
b107b928 17821 "dlls/cfgmgr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cfgmgr32/Makefile" ;;
34909c20 17822 "dlls/comcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
f5818d2f 17823 "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
2c4fd428 17824 "dlls/comctl32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;;
f5818d2f
AJ
17825 "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;;
17826 "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
17827 "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
5a23a001 17828 "dlls/ctl3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ctl3d/Makefile" ;;
01968613 17829 "dlls/wined3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wined3d/Makefile" ;;
3a99d8ba 17830 "dlls/d3d8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
aa1bdc42 17831 "dlls/d3d9/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d9/Makefile" ;;
eaae7050 17832 "dlls/d3dim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;;
e31ae926 17833 "dlls/d3dx8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
f5818d2f
AJ
17834 "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
17835 "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
f22a4720 17836 "dlls/ddraw/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/tests/Makefile" ;;
f5818d2f
AJ
17837 "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
17838 "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
d2d08f0c 17839 "dlls/dinput8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
3dec4c52
RM
17840 "dlls/dmband/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;;
17841 "dlls/dmcompos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;;
17842 "dlls/dmime/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;;
17843 "dlls/dmloader/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;;
17844 "dlls/dmscript/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;;
17845 "dlls/dmstyle/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;;
17846 "dlls/dmsynth/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;;
2d04be72 17847 "dlls/dmusic/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;;
3dec4c52 17848 "dlls/dmusic32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;;
f5818d2f
AJ
17849 "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
17850 "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
3dec4c52 17851 "dlls/dpnhpast/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;;
f5818d2f 17852 "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
d523a45b 17853 "dlls/dsound/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
f5818d2f 17854 "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
928ecb48 17855 "dlls/gdi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;;
f5818d2f 17856 "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
ef799c46 17857 "dlls/glut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glut32/Makefile" ;;
f5818d2f
AJ
17858 "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
17859 "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
17860 "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
38fa5ad1 17861 "dlls/iphlpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;;
f5818d2f 17862 "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
edeee89c 17863 "dlls/kernel/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;;
f5818d2f
AJ
17864 "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;;
17865 "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
17866 "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
17867 "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;;
0307f6dc 17868 "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;;
bed67fc9 17869 "dlls/msacm/msadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msadp32/Makefile" ;;
bcb9c46c 17870 "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;;
b706b23a 17871 "dlls/msacm/winemp3/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/winemp3/Makefile" ;;
f5818d2f 17872 "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
aa1c2a35 17873 "dlls/mshtml/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mshtml/Makefile" ;;
6386edc5 17874 "dlls/msi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msi/Makefile" ;;
f5818d2f 17875 "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
f6be044d 17876 "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;;
f5818d2f 17877 "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
f5818d2f 17878 "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
a768fa31 17879 "dlls/msvcrt/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
f5818d2f 17880 "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
19a1513f 17881 "dlls/msvcrtd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;;
f5818d2f 17882 "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;;
288b8ee1 17883 "dlls/msvideo/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/msrle32/Makefile" ;;
2123c137 17884 "dlls/mswsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mswsock/Makefile" ;;
f5818d2f 17885 "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
b812c90c 17886 "dlls/netapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
9655a5fd 17887 "dlls/newdev/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/newdev/Makefile" ;;
f5818d2f 17888 "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
1da29717 17889 "dlls/ntdll/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
f5818d2f
AJ
17890 "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
17891 "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
5caccaf6 17892 "dlls/oleacc/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleacc/Makefile" ;;
f5818d2f 17893 "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
edeee89c 17894 "dlls/oleaut32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
f5818d2f
AJ
17895 "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;;
17896 "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
17897 "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
17898 "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;;
17899 "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
17900 "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
17901 "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
17902 "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
17903 "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
17904 "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;;
17905 "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
ac89cc28 17906 "dlls/rpcrt4/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
f5818d2f
AJ
17907 "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
17908 "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
17909 "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
17910 "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
5b5bea03 17911 "dlls/shell32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
f5818d2f
AJ
17912 "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
17913 "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
edeee89c 17914 "dlls/shlwapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
4c692b9b 17915 "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
f5818d2f
AJ
17916 "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
17917 "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
17918 "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;;
6b0720f5 17919 "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;;
46321f4c 17920 "dlls/unicows/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/unicows/Makefile" ;;
f5818d2f
AJ
17921 "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
17922 "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
9398d9c1 17923 "dlls/urlmon/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
f5818d2f 17924 "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
edeee89c 17925 "dlls/user/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;;
0af4fb9e 17926 "dlls/uxtheme/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/Makefile" ;;
f5818d2f
AJ
17927 "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
17928 "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;;
17929 "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;;
17930 "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
17931 "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;;
17932 "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
edeee89c 17933 "dlls/wininet/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
f5818d2f
AJ
17934 "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
17935 "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
17936 "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;;
17937 "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;;
17938 "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;;
17939 "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;;
17940 "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;;
17941 "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;;
4ce28377 17942 "dlls/winmm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
f5818d2f 17943 "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;;
a120ce01 17944 "dlls/winmm/winealsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
9b0ba7ca 17945 "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
2a91e3f9
RL
17946 "dlls/winmm/wineaudioio/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
17947 "dlls/winmm/winenas/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
4691b185 17948 "dlls/winmm/winejack/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;;
f5818d2f
AJ
17949 "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
17950 "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;;
17951 "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;;
edeee89c 17952 "dlls/winsock/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/tests/Makefile" ;;
f5818d2f 17953 "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;;
88b11064 17954 "dlls/winspool/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/tests/Makefile" ;;
5caddc78 17955 "dlls/wintab32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
f5818d2f
AJ
17956 "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
17957 "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
17958 "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
17959 "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;;
17960 "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
f5818d2f 17961 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
6a9fe36d
AJ
17962 "libs/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
17963 "libs/port/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;;
7ab9a715 17964 "libs/unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/unicode/Makefile" ;;
6692d399 17965 "libs/uuid/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/uuid/Makefile" ;;
2d1c7906 17966 "libs/wine/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;;
e1a9b10f 17967 "libs/wpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;;
357c7401 17968 "loader/Makefile" ) CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;;
f5818d2f
AJ
17969 "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
17970 "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;;
17971 "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
17972 "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
17973 "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
acfda14a 17974 "programs/expand/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
f5818d2f 17975 "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
f5818d2f 17976 "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
4e2e176c 17977 "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
2f0d85c2 17978 "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
d77294a8 17979 "programs/rpcss/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
15e8e0a2 17980 "programs/rundll32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
ba02ae41 17981 "programs/start/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;;
f5818d2f
AJ
17982 "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
17983 "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
17984 "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
175d0595 17985 "programs/wineboot/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;;
82ce2cc7 17986 "programs/winecfg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;;
f5818d2f 17987 "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
f264bd32 17988 "programs/winedbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
65a42168 17989 "programs/winefile/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
88090b47 17990 "programs/winemenubuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemenubuilder/Makefile" ;;
f5818d2f 17991 "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
0d8a9fac 17992 "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
9f71bd98 17993 "programs/winetest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;;
fedc4117 17994 "programs/winevdm/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;;
f5818d2f
AJ
17995 "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
17996 "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
f5818d2f
AJ
17997 "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
17998 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
7d4ee77c 17999 "tools/widl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
f5818d2f
AJ
18000 "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
18001 "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
18002 "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
280661c6 18003 "tools/winegcc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winegcc/Makefile" ;;
f5818d2f
AJ
18004 "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
18005 "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
9bb05fc4 18006 "controls" ) CONFIG_COMMANDS="$CONFIG_COMMANDS controls" ;;
f5818d2f
AJ
18007 "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;;
18008 "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;;
18009 "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;;
18010 "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;;
18011 "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;;
18012 "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;;
18013 "dlls/dinput/joystick" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/joystick" ;;
18014 "dlls/dinput/keyboard" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/keyboard" ;;
18015 "dlls/dinput/mouse" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/mouse" ;;
89118568
AJ
18016 "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
18017 "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
f5818d2f
AJ
18018 "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
18019 "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;;
18020 "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
18021 "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;;
9bb05fc4
AJ
18022 "files" ) CONFIG_COMMANDS="$CONFIG_COMMANDS files" ;;
18023 "graphics" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics" ;;
f5818d2f 18024 "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
9bb05fc4 18025 "misc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS misc" ;;
9bb05fc4 18026 "objects" ) CONFIG_COMMANDS="$CONFIG_COMMANDS objects" ;;
f5aad769 18027 "programs/regedit/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regedit/tests" ;;
9bb05fc4 18028 "windows" ) CONFIG_COMMANDS="$CONFIG_COMMANDS windows" ;;
f5818d2f 18029 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
daa2886c 18030 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
f5818d2f
AJ
18031echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18032 { (exit 1); exit 1; }; };;
18033 esac
18034done
18035
18036# If the user did not use the arguments to specify the items to instantiate,
18037# then the envvar interface is used. Set only those that are not.
18038# We use the long form for the default assignment because of an extremely
18039# bizarre bug on SunOS 4.1.3.
18040if $ac_need_defaults; then
18041 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18042 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18043 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18044fi
18045
e24bcc77
AJ
18046# Have a temporary directory for convenience. Make it in the build tree
18047# simply because there is no reason to put it here, and in addition,
18048# creating and moving files from /tmp can sometimes cause problems.
f5818d2f
AJ
18049# Create a temporary directory, and hook for its removal unless debugging.
18050$debug ||
18051{
18052 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18053 trap '{ (exit 1); exit 1; }' 1 2 13 15
18054}
18055
18056# Create a (secure) tmp directory for tmp files.
e24bcc77 18057
f5818d2f 18058{
e24bcc77 18059 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
f5818d2f
AJ
18060 test -n "$tmp" && test -d "$tmp"
18061} ||
18062{
e24bcc77 18063 tmp=./confstat$$-$RANDOM
f5818d2f
AJ
18064 (umask 077 && mkdir $tmp)
18065} ||
18066{
e24bcc77 18067 echo "$me: cannot create a temporary directory in ." >&2
f5818d2f
AJ
18068 { (exit 1); exit 1; }
18069}
18070
daa2886c 18071_ACEOF
f5818d2f 18072
daa2886c 18073cat >>$CONFIG_STATUS <<_ACEOF
f5818d2f
AJ
18074
18075#
18076# CONFIG_FILES section.
18077#
18078
18079# No need to generate the scripts if there are no CONFIG_FILES.
18080# This happens for instance when ./config.status config.h
18081if test -n "\$CONFIG_FILES"; then
18082 # Protect against being on the right side of a sed subst in config.status.
18083 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18084 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18085s,@SHELL@,$SHELL,;t t
daa2886c
AJ
18086s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18087s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18088s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18089s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18090s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18091s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
f5818d2f
AJ
18092s,@exec_prefix@,$exec_prefix,;t t
18093s,@prefix@,$prefix,;t t
18094s,@program_transform_name@,$program_transform_name,;t t
18095s,@bindir@,$bindir,;t t
18096s,@sbindir@,$sbindir,;t t
18097s,@libexecdir@,$libexecdir,;t t
18098s,@datadir@,$datadir,;t t
18099s,@sysconfdir@,$sysconfdir,;t t
18100s,@sharedstatedir@,$sharedstatedir,;t t
18101s,@localstatedir@,$localstatedir,;t t
18102s,@libdir@,$libdir,;t t
18103s,@includedir@,$includedir,;t t
18104s,@oldincludedir@,$oldincludedir,;t t
18105s,@infodir@,$infodir,;t t
18106s,@mandir@,$mandir,;t t
f5818d2f
AJ
18107s,@build_alias@,$build_alias,;t t
18108s,@host_alias@,$host_alias,;t t
18109s,@target_alias@,$target_alias,;t t
daa2886c 18110s,@DEFS@,$DEFS,;t t
f5818d2f
AJ
18111s,@ECHO_C@,$ECHO_C,;t t
18112s,@ECHO_N@,$ECHO_N,;t t
18113s,@ECHO_T@,$ECHO_T,;t t
f5818d2f 18114s,@LIBS@,$LIBS,;t t
c728efc3
AJ
18115s,@WIN16_FILES@,$WIN16_FILES,;t t
18116s,@WIN16_INSTALL@,$WIN16_INSTALL,;t t
f5818d2f
AJ
18117s,@build@,$build,;t t
18118s,@build_cpu@,$build_cpu,;t t
18119s,@build_vendor@,$build_vendor,;t t
18120s,@build_os@,$build_os,;t t
18121s,@host@,$host,;t t
18122s,@host_cpu@,$host_cpu,;t t
18123s,@host_vendor@,$host_vendor,;t t
18124s,@host_os@,$host_os,;t t
f5818d2f
AJ
18125s,@SET_MAKE@,$SET_MAKE,;t t
18126s,@CC@,$CC,;t t
18127s,@CFLAGS@,$CFLAGS,;t t
18128s,@LDFLAGS@,$LDFLAGS,;t t
18129s,@CPPFLAGS@,$CPPFLAGS,;t t
18130s,@ac_ct_CC@,$ac_ct_CC,;t t
18131s,@EXEEXT@,$EXEEXT,;t t
18132s,@OBJEXT@,$OBJEXT,;t t
18133s,@CPP@,$CPP,;t t
fc01b729 18134s,@TOOLSDIR@,$TOOLSDIR,;t t
f5818d2f
AJ
18135s,@X_CFLAGS@,$X_CFLAGS,;t t
18136s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
18137s,@X_LIBS@,$X_LIBS,;t t
18138s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
18139s,@YACC@,$YACC,;t t
18140s,@LEX@,$LEX,;t t
18141s,@LEXLIB@,$LEXLIB,;t t
18142s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
18143s,@XYACC@,$XYACC,;t t
18144s,@XLEX@,$XLEX,;t t
1d4db787
MM
18145s,@AS@,$AS,;t t
18146s,@ac_ct_AS@,$ac_ct_AS,;t t
eb5f89c5
AJ
18147s,@LD@,$LD,;t t
18148s,@ac_ct_LD@,$ac_ct_LD,;t t
fc01b729
AJ
18149s,@AR@,$AR,;t t
18150s,@ac_ct_AR@,$ac_ct_AR,;t t
f5818d2f
AJ
18151s,@RANLIB@,$RANLIB,;t t
18152s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
fc01b729
AJ
18153s,@STRIP@,$STRIP,;t t
18154s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
18155s,@WINDRES@,$WINDRES,;t t
18156s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
f5818d2f 18157s,@LN_S@,$LN_S,;t t
df234a9f 18158s,@LN@,$LN,;t t
f5818d2f 18159s,@LDCONFIG@,$LDCONFIG,;t t
e24bcc77
AJ
18160s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18161s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18162s,@INSTALL_DATA@,$INSTALL_DATA,;t t
f5818d2f
AJ
18163s,@LINT@,$LINT,;t t
18164s,@LINTFLAGS@,$LINTFLAGS,;t t
1d8cb6ef
VB
18165s,@DB2HTML@,$DB2HTML,;t t
18166s,@DB2PDF@,$DB2PDF,;t t
18167s,@DB2PS@,$DB2PS,;t t
b817a3c5 18168s,@DB2TXT@,$DB2TXT,;t t
f45325e4 18169s,@LIBPTHREAD@,$LIBPTHREAD,;t t
f5818d2f 18170s,@JPEGLIB@,$JPEGLIB,;t t
11af04e3 18171s,@EGREP@,$EGREP,;t t
728bedcf 18172s,@GIFLIB@,$GIFLIB,;t t
f5818d2f
AJ
18173s,@XLIB@,$XLIB,;t t
18174s,@XFILES@,$XFILES,;t t
18175s,@OPENGLFILES@,$OPENGLFILES,;t t
18176s,@GLU32FILES@,$GLU32FILES,;t t
56ab2b3e 18177s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
ef799c46
JC
18178s,@GLUT_LIBS@,$GLUT_LIBS,;t t
18179s,@GLUT32FILES@,$GLUT32FILES,;t t
6f670b13 18180s,@NASLIBS@,$NASLIBS,;t t
f5818d2f 18181s,@CURSESLIBS@,$CURSESLIBS,;t t
6b0720f5
SQH
18182s,@sane_devel@,$sane_devel,;t t
18183s,@SANELIBS@,$SANELIBS,;t t
18184s,@SANEINCL@,$SANEINCL,;t t
4ee8290b 18185s,@ICULIBS@,$ICULIBS,;t t
f5818d2f
AJ
18186s,@ft_devel@,$ft_devel,;t t
18187s,@ft_devel2@,$ft_devel2,;t t
f5818d2f 18188s,@FREETYPEINCL@,$FREETYPEINCL,;t t
9b0ba7ca
CM
18189s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
18190s,@ARTSLIBS@,$ARTSLIBS,;t t
18191s,@ARTSINCL@,$ARTSINCL,;t t
f92b7c06 18192s,@ALSALIBS@,$ALSALIBS,;t t
2a91e3f9 18193s,@AUDIOIOLIBS@,$AUDIOIOLIBS,;t t
00fdd9fc 18194s,@CAPI4LINUXLIBS@,$CAPI4LINUXLIBS,;t t
fc09423d 18195s,@EXTRACFLAGS@,$EXTRACFLAGS,;t t
c1bfca04 18196s,@DLLEXT@,$DLLEXT,;t t
7bf07d15
AJ
18197s,@DLLFLAGS@,$DLLFLAGS,;t t
18198s,@DLLIBS@,$DLLIBS,;t t
7bf07d15 18199s,@LDSHARED@,$LDSHARED,;t t
6ac34ac6 18200s,@LDDLL@,$LDDLL,;t t
ada5e652
AJ
18201s,@LIBEXT@,$LIBEXT,;t t
18202s,@IMPLIBEXT@,$IMPLIBEXT,;t t
18203s,@DLLTOOL@,$DLLTOOL,;t t
18204s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
7bf07d15
AJ
18205s,@DLLWRAP@,$DLLWRAP,;t t
18206s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t
4d52d379 18207s,@LDEXECFLAGS@,$LDEXECFLAGS,;t t
c3c587eb
AJ
18208s,@CROSSTEST@,$CROSSTEST,;t t
18209s,@CROSSCC@,$CROSSCC,;t t
21ee3295 18210s,@CROSSWINDRES@,$CROSSWINDRES,;t t
f5818d2f 18211s,@LDPATH@,$LDPATH,;t t
7bf07d15 18212s,@CRTLIBS@,$CRTLIBS,;t t
546839f4
AJ
18213s,@WINE_BINARIES@,$WINE_BINARIES,;t t
18214s,@MAIN_BINARY@,$MAIN_BINARY,;t t
67e8dc68 18215s,@LDD@,$LDD,;t t
f5818d2f 18216s,@ALLOCA@,$ALLOCA,;t t
11af04e3
AJ
18217s,@LIBOBJS@,$LIBOBJS,;t t
18218s,@LTLIBOBJS@,$LTLIBOBJS,;t t
ff8331ea 18219/@MAKE_RULES@/r $MAKE_RULES
f5818d2f 18220s,@MAKE_RULES@,,;t t
d0edc5fe 18221/@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
f5818d2f 18222s,@MAKE_DLL_RULES@,,;t t
edeee89c
AJ
18223/@MAKE_TEST_RULES@/r $MAKE_TEST_RULES
18224s,@MAKE_TEST_RULES@,,;t t
117436e0
AJ
18225/@MAKE_LIB_RULES@/r $MAKE_LIB_RULES
18226s,@MAKE_LIB_RULES@,,;t t
626f425b 18227/@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
f5818d2f 18228s,@MAKE_PROG_RULES@,,;t t
e2991ea7 18229CEOF
f5818d2f 18230
daa2886c 18231_ACEOF
da0cfb36 18232
daa2886c 18233 cat >>$CONFIG_STATUS <<\_ACEOF
f5818d2f
AJ
18234 # Split the substitutions into bite-sized pieces for seds with
18235 # small command number limits, like on Digital OSF/1 and HP-UX.
18236 ac_max_sed_lines=48
18237 ac_sed_frag=1 # Number of current file.
18238 ac_beg=1 # First line for current file.
18239 ac_end=$ac_max_sed_lines # Line after last line for current file.
18240 ac_more_lines=:
18241 ac_sed_cmds=
18242 while $ac_more_lines; do
18243 if test $ac_beg -gt 1; then
18244 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18245 else
18246 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18247 fi
18248 if test ! -s $tmp/subs.frag; then
18249 ac_more_lines=false
da0cfb36 18250 else
f5818d2f
AJ
18251 # The purpose of the label and of the branching condition is to
18252 # speed up the sed processing (if there are no `@' at all, there
18253 # is no need to browse any of the substitutions).
18254 # These are the two extra sed commands mentioned above.
18255 (echo ':t
18256 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18257 if test -z "$ac_sed_cmds"; then
18258 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18259 else
18260 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18261 fi
18262 ac_sed_frag=`expr $ac_sed_frag + 1`
18263 ac_beg=$ac_end
18264 ac_end=`expr $ac_end + $ac_max_sed_lines`
da0cfb36 18265 fi
f5818d2f
AJ
18266 done
18267 if test -z "$ac_sed_cmds"; then
18268 ac_sed_cmds=cat
da0cfb36 18269 fi
f5818d2f 18270fi # test -n "$CONFIG_FILES"
da0cfb36 18271
daa2886c
AJ
18272_ACEOF
18273cat >>$CONFIG_STATUS <<\_ACEOF
f5818d2f 18274for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7e6ae4ba 18275 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
f5818d2f
AJ
18276 case $ac_file in
18277 - | *:- | *:-:* ) # input from stdin
18278 cat >$tmp/stdin
18279 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18280 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18281 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18282 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18283 * ) ac_file_in=$ac_file.in ;;
e2991ea7
AJ
18284 esac
18285
f5818d2f 18286 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
daa2886c
AJ
18287 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18288$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
f5818d2f
AJ
18289 X"$ac_file" : 'X\(//\)[^/]' \| \
18290 X"$ac_file" : 'X\(//\)$' \| \
18291 X"$ac_file" : 'X\(/\)' \| \
18292 . : '\(.\)' 2>/dev/null ||
18293echo X"$ac_file" |
18294 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18295 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18296 /^X\(\/\/\)$/{ s//\1/; q; }
18297 /^X\(\/\).*/{ s//\1/; q; }
18298 s/.*/./; q'`
11af04e3
AJ
18299 { if $as_mkdir_p; then
18300 mkdir -p "$ac_dir"
18301 else
18302 as_dir="$ac_dir"
18303 as_dirs=
18304 while test ! -d "$as_dir"; do
18305 as_dirs="$as_dir $as_dirs"
18306 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18307$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18308 X"$as_dir" : 'X\(//\)[^/]' \| \
18309 X"$as_dir" : 'X\(//\)$' \| \
18310 X"$as_dir" : 'X\(/\)' \| \
18311 . : '\(.\)' 2>/dev/null ||
18312echo X"$as_dir" |
18313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18314 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18315 /^X\(\/\/\)$/{ s//\1/; q; }
18316 /^X\(\/\).*/{ s//\1/; q; }
18317 s/.*/./; q'`
18318 done
18319 test ! -n "$as_dirs" || mkdir $as_dirs
18320 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18321echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18322 { (exit 1); exit 1; }; }; }
f5818d2f 18323
daa2886c 18324 ac_builddir=.
e2991ea7 18325
daa2886c
AJ
18326if test "$ac_dir" != .; then
18327 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18328 # A "../" for each directory in $ac_dir_suffix.
18329 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18330else
18331 ac_dir_suffix= ac_top_builddir=
18332fi
18333
18334case $srcdir in
18335 .) # No --srcdir option. We are building in place.
18336 ac_srcdir=.
18337 if test -z "$ac_top_builddir"; then
18338 ac_top_srcdir=.
18339 else
18340 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18341 fi ;;
18342 [\\/]* | ?:[\\/]* ) # Absolute path.
18343 ac_srcdir=$srcdir$ac_dir_suffix;
18344 ac_top_srcdir=$srcdir ;;
e2991ea7 18345 *) # Relative path.
daa2886c
AJ
18346 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18347 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18348esac
18349# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18350# absolute.
18351ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
11af04e3 18352ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
daa2886c
AJ
18353ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18354ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18355
e2991ea7 18356
f5818d2f
AJ
18357 case $INSTALL in
18358 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
daa2886c 18359 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
d7d4fdf8 18360 esac
da0cfb36 18361
f5818d2f 18362 if test x"$ac_file" != x-; then
daa2886c 18363 { echo "$as_me:$LINENO: creating $ac_file" >&5
f5818d2f
AJ
18364echo "$as_me: creating $ac_file" >&6;}
18365 rm -f "$ac_file"
18366 fi
18367 # Let's still pretend it is `configure' which instantiates (i.e., don't
18368 # use $as_me), people would be surprised to read:
daa2886c
AJ
18369 # /* config.h. Generated by config.status. */
18370 if test x"$ac_file" = x-; then
18371 configure_input=
18372 else
18373 configure_input="$ac_file. "
18374 fi
18375 configure_input=$configure_input"Generated from `echo $ac_file_in |
18376 sed 's,.*/,,'` by configure."
f5818d2f
AJ
18377
18378 # First look for the input files in the build tree, otherwise in the
18379 # src tree.
18380 ac_file_inputs=`IFS=:
18381 for f in $ac_file_in; do
18382 case $f in
18383 -) echo $tmp/stdin ;;
18384 [\\/$]*)
18385 # Absolute (can't be DOS-style, as IFS=:)
daa2886c 18386 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
f5818d2f
AJ
18387echo "$as_me: error: cannot find input file: $f" >&2;}
18388 { (exit 1); exit 1; }; }
18389 echo $f;;
18390 *) # Relative
18391 if test -f "$f"; then
18392 # Build tree
18393 echo $f
18394 elif test -f "$srcdir/$f"; then
18395 # Source tree
18396 echo $srcdir/$f
18397 else
18398 # /dev/null tree
daa2886c 18399 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
f5818d2f
AJ
18400echo "$as_me: error: cannot find input file: $f" >&2;}
18401 { (exit 1); exit 1; }; }
18402 fi;;
18403 esac
18404 done` || { (exit 1); exit 1; }
daa2886c
AJ
18405_ACEOF
18406cat >>$CONFIG_STATUS <<_ACEOF
f5818d2f
AJ
18407 sed "$ac_vpsub
18408$extrasub
daa2886c
AJ
18409_ACEOF
18410cat >>$CONFIG_STATUS <<\_ACEOF
f5818d2f
AJ
18411:t
18412/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18413s,@configure_input@,$configure_input,;t t
18414s,@srcdir@,$ac_srcdir,;t t
daa2886c 18415s,@abs_srcdir@,$ac_abs_srcdir,;t t
f5818d2f 18416s,@top_srcdir@,$ac_top_srcdir,;t t
daa2886c
AJ
18417s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18418s,@builddir@,$ac_builddir,;t t
18419s,@abs_builddir@,$ac_abs_builddir,;t t
18420s,@top_builddir@,$ac_top_builddir,;t t
18421s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
f5818d2f
AJ
18422s,@INSTALL@,$ac_INSTALL,;t t
18423" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18424 rm -f $tmp/stdin
18425 if test x"$ac_file" != x-; then
18426 mv $tmp/out $ac_file
18427 else
18428 cat $tmp/out
18429 rm -f $tmp/out
18430 fi
7e6ae4ba 18431
f5818d2f 18432done
daa2886c
AJ
18433_ACEOF
18434cat >>$CONFIG_STATUS <<\_ACEOF
f5818d2f
AJ
18435
18436#
18437# CONFIG_HEADER section.
18438#
e2991ea7 18439
18f92e76
AJ
18440# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18441# NAME is the cpp macro being defined and VALUE is the value it is being given.
18442#
18443# ac_d sets the value in "#define NAME VALUE" lines.
f5818d2f
AJ
18444ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18445ac_dB='[ ].*$,\1#\2'
18446ac_dC=' '
18447ac_dD=',;t'
18448# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18449ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18450ac_uB='$,\1#\2define\3'
18f92e76 18451ac_uC=' '
f5818d2f
AJ
18452ac_uD=',;t'
18453
18454for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7e6ae4ba 18455 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
f5818d2f
AJ
18456 case $ac_file in
18457 - | *:- | *:-:* ) # input from stdin
18458 cat >$tmp/stdin
18459 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18460 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18461 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18462 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18463 * ) ac_file_in=$ac_file.in ;;
18f92e76
AJ
18464 esac
18465
daa2886c 18466 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
f5818d2f
AJ
18467echo "$as_me: creating $ac_file" >&6;}
18468
18469 # First look for the input files in the build tree, otherwise in the
18470 # src tree.
18471 ac_file_inputs=`IFS=:
18472 for f in $ac_file_in; do
18473 case $f in
18474 -) echo $tmp/stdin ;;
18475 [\\/$]*)
18476 # Absolute (can't be DOS-style, as IFS=:)
daa2886c 18477 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
f5818d2f
AJ
18478echo "$as_me: error: cannot find input file: $f" >&2;}
18479 { (exit 1); exit 1; }; }
18480 echo $f;;
18481 *) # Relative
18482 if test -f "$f"; then
18483 # Build tree
18484 echo $f
18485 elif test -f "$srcdir/$f"; then
18486 # Source tree
18487 echo $srcdir/$f
18488 else
18489 # /dev/null tree
daa2886c 18490 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
f5818d2f
AJ
18491echo "$as_me: error: cannot find input file: $f" >&2;}
18492 { (exit 1); exit 1; }; }
18493 fi;;
18494 esac
18495 done` || { (exit 1); exit 1; }
18496 # Remove the trailing spaces.
18497 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18498
daa2886c 18499_ACEOF
f5818d2f
AJ
18500
18501# Transform confdefs.h into two sed scripts, `conftest.defines' and
18502# `conftest.undefs', that substitutes the proper values into
18503# config.h.in to produce config.h. The first handles `#define'
18504# templates, and the second `#undef' templates.
18505# And first: Protect against being on the right side of a sed subst in
18506# config.status. Protect against being in an unquoted here document
18507# in config.status.
18508rm -f conftest.defines conftest.undefs
18509# Using a here document instead of a string reduces the quoting nightmare.
18510# Putting comments in sed scripts is not portable.
18511#
18512# `end' is used to avoid that the second main sed command (meant for
18513# 0-ary CPP macros) applies to n-ary macro definitions.
18514# See the Autoconf documentation for `clear'.
daa2886c 18515cat >confdef2sed.sed <<\_ACEOF
f5818d2f
AJ
18516s/[\\&,]/\\&/g
18517s,[\\$`],\\&,g
18518t clear
18519: clear
daa2886c 18520s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
f5818d2f
AJ
18521t end
18522s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18523: end
daa2886c 18524_ACEOF
f5818d2f
AJ
18525# If some macros were called several times there might be several times
18526# the same #defines, which is useless. Nevertheless, we may not want to
18527# sort them, since we want the *last* AC-DEFINE to be honored.
18528uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18529sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18530rm -f confdef2sed.sed
18f92e76
AJ
18531
18532# This sed command replaces #undef with comments. This is necessary, for
18533# example, in the case of _POSIX_SOURCE, which is predefined and required
18534# on some systems where configure will not decide to define it.
daa2886c 18535cat >>conftest.undefs <<\_ACEOF
f5818d2f 18536s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
daa2886c 18537_ACEOF
18f92e76 18538
f5818d2f
AJ
18539# Break up conftest.defines because some shells have a limit on the size
18540# of here documents, and old seds have small limits too (100 cmds).
18541echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11af04e3 18542echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
f5818d2f
AJ
18543echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18544echo ' :' >>$CONFIG_STATUS
18545rm -f conftest.tail
18546while grep . conftest.defines >/dev/null
18547do
18548 # Write a limited-size here document to $tmp/defines.sed.
18549 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18550 # Speed up: don't consider the non `#define' lines.
18551 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18552 # Work around the forget-to-reset-the-flag bug.
18553 echo 't clr' >>$CONFIG_STATUS
18554 echo ': clr' >>$CONFIG_STATUS
18555 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18556 echo 'CEOF
18557 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18558 rm -f $tmp/in
18559 mv $tmp/out $tmp/in
18560' >>$CONFIG_STATUS
18561 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18562 rm -f conftest.defines
18563 mv conftest.tail conftest.defines
18564done
18565rm -f conftest.defines
11af04e3 18566echo ' fi # grep' >>$CONFIG_STATUS
f5818d2f 18567echo >>$CONFIG_STATUS
18f92e76 18568
f5818d2f
AJ
18569# Break up conftest.undefs because some shells have a limit on the size
18570# of here documents, and old seds have small limits too (100 cmds).
18571echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18f92e76 18572rm -f conftest.tail
f5818d2f 18573while grep . conftest.undefs >/dev/null
18f92e76 18574do
f5818d2f
AJ
18575 # Write a limited-size here document to $tmp/undefs.sed.
18576 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18577 # Speed up: don't consider the non `#undef'
18578 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18579 # Work around the forget-to-reset-the-flag bug.
18580 echo 't clr' >>$CONFIG_STATUS
18581 echo ': clr' >>$CONFIG_STATUS
18582 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18f92e76 18583 echo 'CEOF
f5818d2f
AJ
18584 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18585 rm -f $tmp/in
18586 mv $tmp/out $tmp/in
18587' >>$CONFIG_STATUS
18588 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18589 rm -f conftest.undefs
18590 mv conftest.tail conftest.undefs
18f92e76 18591done
f5818d2f
AJ
18592rm -f conftest.undefs
18593
daa2886c 18594cat >>$CONFIG_STATUS <<\_ACEOF
f5818d2f
AJ
18595 # Let's still pretend it is `configure' which instantiates (i.e., don't
18596 # use $as_me), people would be surprised to read:
daa2886c 18597 # /* config.h. Generated by config.status. */
f5818d2f 18598 if test x"$ac_file" = x-; then
daa2886c 18599 echo "/* Generated by configure. */" >$tmp/config.h
18f92e76 18600 else
daa2886c 18601 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
f5818d2f
AJ
18602 fi
18603 cat $tmp/in >>$tmp/config.h
18604 rm -f $tmp/in
18605 if test x"$ac_file" != x-; then
e24bcc77 18606 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
daa2886c 18607 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
f5818d2f
AJ
18608echo "$as_me: $ac_file is unchanged" >&6;}
18609 else
daa2886c
AJ
18610 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18611$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
f5818d2f
AJ
18612 X"$ac_file" : 'X\(//\)[^/]' \| \
18613 X"$ac_file" : 'X\(//\)$' \| \
18614 X"$ac_file" : 'X\(/\)' \| \
18615 . : '\(.\)' 2>/dev/null ||
18616echo X"$ac_file" |
18617 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18618 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18619 /^X\(\/\/\)$/{ s//\1/; q; }
18620 /^X\(\/\).*/{ s//\1/; q; }
18621 s/.*/./; q'`
11af04e3
AJ
18622 { if $as_mkdir_p; then
18623 mkdir -p "$ac_dir"
18624 else
18625 as_dir="$ac_dir"
18626 as_dirs=
18627 while test ! -d "$as_dir"; do
18628 as_dirs="$as_dir $as_dirs"
18629 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18630$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18631 X"$as_dir" : 'X\(//\)[^/]' \| \
18632 X"$as_dir" : 'X\(//\)$' \| \
18633 X"$as_dir" : 'X\(/\)' \| \
18634 . : '\(.\)' 2>/dev/null ||
18635echo X"$as_dir" |
18636 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18637 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18638 /^X\(\/\/\)$/{ s//\1/; q; }
18639 /^X\(\/\).*/{ s//\1/; q; }
18640 s/.*/./; q'`
18641 done
18642 test ! -n "$as_dirs" || mkdir $as_dirs
18643 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18644echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18645 { (exit 1); exit 1; }; }; }
f5818d2f 18646
f5818d2f
AJ
18647 rm -f $ac_file
18648 mv $tmp/config.h $ac_file
18f92e76 18649 fi
f5818d2f
AJ
18650 else
18651 cat $tmp/config.h
18652 rm -f $tmp/config.h
18f92e76 18653 fi
f5818d2f 18654done
daa2886c
AJ
18655_ACEOF
18656cat >>$CONFIG_STATUS <<\_ACEOF
18f92e76 18657
f5818d2f
AJ
18658#
18659# CONFIG_COMMANDS section.
18660#
18661for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18662 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18663 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
daa2886c
AJ
18664 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18665$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18666 X"$ac_dest" : 'X\(//\)[^/]' \| \
18667 X"$ac_dest" : 'X\(//\)$' \| \
18668 X"$ac_dest" : 'X\(/\)' \| \
18669 . : '\(.\)' 2>/dev/null ||
18670echo X"$ac_dest" |
18671 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18672 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18673 /^X\(\/\/\)$/{ s//\1/; q; }
18674 /^X\(\/\).*/{ s//\1/; q; }
18675 s/.*/./; q'`
18676 ac_builddir=.
f5818d2f 18677
daa2886c
AJ
18678if test "$ac_dir" != .; then
18679 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18680 # A "../" for each directory in $ac_dir_suffix.
18681 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18682else
18683 ac_dir_suffix= ac_top_builddir=
18684fi
18685
18686case $srcdir in
18687 .) # No --srcdir option. We are building in place.
18688 ac_srcdir=.
18689 if test -z "$ac_top_builddir"; then
18690 ac_top_srcdir=.
18691 else
18692 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18693 fi ;;
18694 [\\/]* | ?:[\\/]* ) # Absolute path.
18695 ac_srcdir=$srcdir$ac_dir_suffix;
18696 ac_top_srcdir=$srcdir ;;
18697 *) # Relative path.
18698 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18699 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18700esac
18701# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18702# absolute.
18703ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
11af04e3 18704ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
daa2886c
AJ
18705ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18706ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18707
18708
18709 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18710echo "$as_me: executing $ac_dest commands" >&6;}
f5818d2f 18711 case $ac_dest in
9bb05fc4
AJ
18712 controls ) test -d "controls" || ({ echo "$as_me:$LINENO: creating controls" >&5
18713echo "$as_me: creating controls" >&6;} && mkdir "controls") ;;
daa2886c 18714 dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/d3ddevice" >&5
f5818d2f 18715echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;;
daa2886c 18716 dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dclipper" >&5
f5818d2f 18717echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;;
daa2886c 18718 dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/ddraw" >&5
f5818d2f 18719echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;;
daa2886c 18720 dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/direct3d" >&5
f5818d2f 18721echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;;
daa2886c 18722 dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dpalette" >&5
f5818d2f 18723echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;;
daa2886c 18724 dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dsurface" >&5
f5818d2f 18725echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;;
daa2886c 18726 dlls/dinput/joystick ) test -d "dlls/dinput/joystick" || ({ echo "$as_me:$LINENO: creating dlls/dinput/joystick" >&5
f5818d2f 18727echo "$as_me: creating dlls/dinput/joystick" >&6;} && mkdir "dlls/dinput/joystick") ;;
daa2886c 18728 dlls/dinput/keyboard ) test -d "dlls/dinput/keyboard" || ({ echo "$as_me:$LINENO: creating dlls/dinput/keyboard" >&5
f5818d2f 18729echo "$as_me: creating dlls/dinput/keyboard" >&6;} && mkdir "dlls/dinput/keyboard") ;;
daa2886c 18730 dlls/dinput/mouse ) test -d "dlls/dinput/mouse" || ({ echo "$as_me:$LINENO: creating dlls/dinput/mouse" >&5
f5818d2f 18731echo "$as_me: creating dlls/dinput/mouse" >&6;} && mkdir "dlls/dinput/mouse") ;;
daa2886c 18732 dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
89118568 18733echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
daa2886c 18734 dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
89118568 18735echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
daa2886c 18736 dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
f5818d2f 18737echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
daa2886c 18738 dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:$LINENO: creating dlls/user/dde" >&5
f5818d2f 18739echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;;
daa2886c 18740 dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
f5818d2f 18741echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
daa2886c 18742 dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5
f5818d2f 18743echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;;
9bb05fc4
AJ
18744 files ) test -d "files" || ({ echo "$as_me:$LINENO: creating files" >&5
18745echo "$as_me: creating files" >&6;} && mkdir "files") ;;
18746 graphics ) test -d "graphics" || ({ echo "$as_me:$LINENO: creating graphics" >&5
18747echo "$as_me: creating graphics" >&6;} && mkdir "graphics") ;;
daa2886c 18748 include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
f5818d2f 18749echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
9bb05fc4
AJ
18750 misc ) test -d "misc" || ({ echo "$as_me:$LINENO: creating misc" >&5
18751echo "$as_me: creating misc" >&6;} && mkdir "misc") ;;
9bb05fc4
AJ
18752 objects ) test -d "objects" || ({ echo "$as_me:$LINENO: creating objects" >&5
18753echo "$as_me: creating objects" >&6;} && mkdir "objects") ;;
f5aad769
AP
18754 programs/regedit/tests ) test -d "programs/regedit/tests" || ({ echo "$as_me:$LINENO: creating programs/regedit/tests" >&5
18755echo "$as_me: creating programs/regedit/tests" >&6;} && mkdir "programs/regedit/tests") ;;
9bb05fc4
AJ
18756 windows ) test -d "windows" || ({ echo "$as_me:$LINENO: creating windows" >&5
18757echo "$as_me: creating windows" >&6;} && mkdir "windows") ;;
f5818d2f
AJ
18758 esac
18759done
daa2886c 18760_ACEOF
e2991ea7 18761
daa2886c 18762cat >>$CONFIG_STATUS <<\_ACEOF
87a2f8df 18763
f5818d2f 18764{ (exit 0); exit 0; }
daa2886c 18765_ACEOF
e2991ea7 18766chmod +x $CONFIG_STATUS
f5818d2f
AJ
18767ac_clean_files=$ac_clean_files_save
18768
daa2886c 18769
f5818d2f
AJ
18770# configure is writing to config.log, and then calls config.status.
18771# config.status does its own redirection, appending to config.log.
18772# Unfortunately, on DOS this fails, as config.log is still kept open
18773# by configure, so config.status won't be able to write to it; its
18774# output is simply discarded. So we exec the FD to /dev/null,
18775# effectively closing config.log, so it can be properly (re)opened and
18776# appended to by config.status. When coming back to configure, we
18777# need to make the FD available again.
18778if test "$no_create" != yes; then
18779 ac_cs_success=:
e24bcc77
AJ
18780 ac_config_status_args=
18781 test "$silent" = yes &&
18782 ac_config_status_args="$ac_config_status_args --quiet"
f5818d2f 18783 exec 5>/dev/null
e24bcc77 18784 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
f5818d2f
AJ
18785 exec 5>>config.log
18786 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18787 # would make configure fail if this is the last instruction.
18788 $ac_cs_success || { (exit 1); exit 1; }
18789fi
e2991ea7 18790
daa2886c 18791
8b4431f1
OK
18792if test "$have_x" = "no"
18793then
18794 echo
18795 echo "*** Warning: X development files not found. Wine will be built without"
18796 echo "*** X support, which currently does not work, and would probably not be"
18797 echo "*** what you want anyway. You will need to install devel packages of"
18e4b5e2 18798 echo "*** Xlib/Xfree86 at the very least."
8b4431f1
OK
18799fi
18800
bedf40b5 18801if test "$wine_cv_opengl_version_OK" = "no"
5c085704
LU
18802then
18803 echo
18804 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
5eee0bff
LU
18805 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
18806fi
18807
563598d4
IP
18808if test "$wine_cv_msg_freetype" = "yes"
18809then
18810 echo
18811 echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
f5818d2f
AJ
18812 echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
18813 echo "*** freetype-devel package (or its equivalent on your distribution) to"
18814 echo "*** enable Wine to use TrueType fonts."
563598d4
IP
18815fi
18816
e2991ea7 18817echo
1511bae7 18818echo "Configure finished. Do 'make depend && make' to compile Wine."
e2991ea7
AJ
18819echo
18820