Commit | Line | Data |
---|---|---|
e2991ea7 | 1 | #! /bin/sh |
e2991ea7 | 2 | # Guess values for system-dependent variables and create Makefiles. |
f85d8da4 | 3 | # Generated by GNU Autoconf 2.53 for Wine 20020509. |
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. | |
9 | ||
daa2886c AJ |
10 | if expr a : '\(a\)' >/dev/null 2>&1; then |
11 | as_expr=expr | |
12 | else | |
13 | as_expr=false | |
14 | fi | |
f5818d2f | 15 | |
f5818d2f | 16 | |
daa2886c AJ |
17 | ## --------------------- ## |
18 | ## M4sh Initialization. ## | |
19 | ## --------------------- ## | |
f5818d2f AJ |
20 | |
21 | # Be Bourne compatible | |
22 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
23 | emulate sh | |
24 | NULLCMD=: | |
25 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
26 | set -o posix | |
27 | fi | |
28 | ||
daa2886c AJ |
29 | # NLS nuisances. |
30 | # Support unset when possible. | |
31 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | |
32 | as_unset=unset | |
33 | else | |
34 | as_unset=false | |
35 | fi | |
36 | ||
37 | (set +x; test -n "`(LANG=C; export LANG) 2>&1`") && | |
38 | { $as_unset LANG || test "${LANG+set}" != set; } || | |
39 | { LANG=C; export LANG; } | |
40 | (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") && | |
41 | { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } || | |
42 | { LC_ALL=C; export LC_ALL; } | |
43 | (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") && | |
44 | { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } || | |
45 | { LC_TIME=C; export LC_TIME; } | |
46 | (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") && | |
47 | { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } || | |
48 | { LC_CTYPE=C; export LC_CTYPE; } | |
49 | (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") && | |
50 | { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } || | |
51 | { LANGUAGE=C; export LANGUAGE; } | |
52 | (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") && | |
53 | { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } || | |
54 | { LC_COLLATE=C; export LC_COLLATE; } | |
55 | (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") && | |
56 | { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } || | |
57 | { LC_NUMERIC=C; export LC_NUMERIC; } | |
58 | (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") && | |
59 | { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } || | |
60 | { LC_MESSAGES=C; export LC_MESSAGES; } | |
61 | ||
62 | ||
f5818d2f | 63 | # Name of the executable. |
daa2886c AJ |
64 | as_me=`(basename "$0") 2>/dev/null || |
65 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
66 | X"$0" : 'X\(//\)$' \| \ | |
67 | X"$0" : 'X\(/\)$' \| \ | |
68 | . : '\(.\)' 2>/dev/null || | |
69 | echo X/"$0" | | |
70 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
71 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
72 | /^X\/\(\/\).*/{ s//\1/; q; } | |
73 | s/.*/./; q'` | |
74 | ||
75 | # PATH needs CR, and LINENO needs CR and PATH. | |
76 | # Avoid depending upon Character Ranges. | |
77 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
78 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
79 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
80 | as_cr_digits='0123456789' | |
81 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
82 | ||
83 | # The user is always right. | |
84 | if test "${PATH_SEPARATOR+set}" != set; then | |
85 | echo "#! /bin/sh" >conftest.sh | |
86 | echo "exit 0" >>conftest.sh | |
87 | chmod +x conftest.sh | |
88 | if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then | |
89 | PATH_SEPARATOR=';' | |
90 | else | |
91 | PATH_SEPARATOR=: | |
92 | fi | |
93 | rm -f conftest.sh | |
94 | fi | |
95 | ||
96 | ||
97 | as_lineno_1=$LINENO | |
98 | as_lineno_2=$LINENO | |
99 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
100 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
101 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
102 | # Find who we are. Look in the path if we contain no path at all | |
103 | # relative or not. | |
104 | case $0 in | |
105 | *[\\/]* ) as_myself=$0 ;; | |
106 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
107 | for as_dir in $PATH | |
108 | do | |
109 | IFS=$as_save_IFS | |
110 | test -z "$as_dir" && as_dir=. | |
111 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
112 | done | |
113 | ||
114 | ;; | |
115 | esac | |
116 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
117 | # in which case we are not to be found in the path. | |
118 | if test "x$as_myself" = x; then | |
119 | as_myself=$0 | |
120 | fi | |
121 | if test ! -f "$as_myself"; then | |
122 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 | |
123 | { (exit 1); exit 1; }; } | |
124 | fi | |
125 | case $CONFIG_SHELL in | |
126 | '') | |
127 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
128 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
129 | do | |
130 | IFS=$as_save_IFS | |
131 | test -z "$as_dir" && as_dir=. | |
132 | for as_base in sh bash ksh sh5; do | |
133 | case $as_dir in | |
134 | /*) | |
135 | if ("$as_dir/$as_base" -c ' | |
136 | as_lineno_1=$LINENO | |
137 | as_lineno_2=$LINENO | |
138 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
139 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
140 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
141 | CONFIG_SHELL=$as_dir/$as_base | |
142 | export CONFIG_SHELL | |
143 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
144 | fi;; | |
145 | esac | |
146 | done | |
147 | done | |
148 | ;; | |
149 | esac | |
150 | ||
151 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
152 | # uniformly replaced by the line number. The first 'sed' inserts a | |
153 | # line-number line before each line; the second 'sed' does the real | |
154 | # work. The second script uses 'N' to pair each line-number line | |
155 | # with the numbered line, and appends trailing '-' during | |
156 | # substitution so that $LINENO is not a special case at line end. | |
157 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
158 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
159 | sed '=' <$as_myself | | |
160 | sed ' | |
161 | N | |
162 | s,$,-, | |
163 | : loop | |
164 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
165 | t loop | |
166 | s,-$,, | |
167 | s,^['$as_cr_digits']*\n,, | |
168 | ' >$as_me.lineno && | |
169 | chmod +x $as_me.lineno || | |
170 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
171 | { (exit 1); exit 1; }; } | |
172 | ||
173 | # Don't try to exec as it changes $[0], causing all sort of problems | |
174 | # (the dirname of $[0] is not the place where we might find the | |
175 | # original and so on. Autoconf is especially sensible to this). | |
176 | . ./$as_me.lineno | |
177 | # Exit status is that of the last command. | |
178 | exit | |
179 | } | |
180 | ||
181 | ||
182 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
183 | *c*,-n*) ECHO_N= ECHO_C=' | |
184 | ' ECHO_T=' ' ;; | |
185 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
186 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
187 | esac | |
f5818d2f AJ |
188 | |
189 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
190 | as_expr=expr | |
191 | else | |
192 | as_expr=false | |
193 | fi | |
194 | ||
195 | rm -f conf$$ conf$$.exe conf$$.file | |
196 | echo >conf$$.file | |
197 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
198 | # We could just check for DJGPP; but this test a) works b) is more generic | |
199 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
200 | if test -f conf$$.exe; then | |
201 | # Don't use ln at all; we don't have any links | |
202 | as_ln_s='cp -p' | |
203 | else | |
204 | as_ln_s='ln -s' | |
205 | fi | |
206 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
207 | as_ln_s=ln | |
208 | else | |
209 | as_ln_s='cp -p' | |
210 | fi | |
211 | rm -f conf$$ conf$$.exe conf$$.file | |
212 | ||
213 | as_executable_p="test -f" | |
214 | ||
daa2886c AJ |
215 | # Sed expression to map a string onto a valid CPP name. |
216 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" | |
217 | ||
218 | # Sed expression to map a string onto a valid variable name. | |
219 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" | |
f5818d2f | 220 | |
f5818d2f AJ |
221 | |
222 | # IFS | |
223 | # We need space, tab and new line, in precisely that order. | |
224 | as_nl=' | |
225 | ' | |
226 | IFS=" $as_nl" | |
227 | ||
228 | # CDPATH. | |
daa2886c AJ |
229 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; } |
230 | ||
f5818d2f AJ |
231 | |
232 | # Name of the host. | |
233 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
234 | # so uname gets run too. | |
235 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
236 | ||
237 | exec 6>&1 | |
238 | ||
239 | # | |
240 | # Initializations. | |
241 | # | |
e2991ea7 | 242 | ac_default_prefix=/usr/local |
f5818d2f AJ |
243 | cross_compiling=no |
244 | subdirs= | |
daa2886c AJ |
245 | MFLAGS= |
246 | MAKEFLAGS= | |
f5818d2f AJ |
247 | SHELL=${CONFIG_SHELL-/bin/sh} |
248 | ||
249 | # Maximum number of lines to put in a shell here document. | |
250 | # This variable seems obsolete. It should probably be removed, and | |
251 | # only ac_max_sed_lines should be used. | |
252 | : ${ac_max_here_lines=38} | |
253 | ||
daa2886c AJ |
254 | # Identity of this package. |
255 | PACKAGE_NAME='Wine' | |
256 | PACKAGE_TARNAME='wine' | |
f85d8da4 AJ |
257 | PACKAGE_VERSION='20020509' |
258 | PACKAGE_STRING='Wine 20020509' | |
daa2886c AJ |
259 | PACKAGE_BUGREPORT='' |
260 | ||
f5818d2f AJ |
261 | ac_unique_file="server/atom.c" |
262 | # Factoring default headers for most tests. | |
263 | ac_includes_default="\ | |
264 | #include <stdio.h> | |
265 | #if HAVE_SYS_TYPES_H | |
266 | # include <sys/types.h> | |
267 | #endif | |
268 | #if HAVE_SYS_STAT_H | |
269 | # include <sys/stat.h> | |
270 | #endif | |
271 | #if STDC_HEADERS | |
272 | # include <stdlib.h> | |
273 | # include <stddef.h> | |
274 | #else | |
275 | # if HAVE_STDLIB_H | |
276 | # include <stdlib.h> | |
277 | # endif | |
278 | #endif | |
279 | #if HAVE_STRING_H | |
280 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
281 | # include <memory.h> | |
282 | # endif | |
283 | # include <string.h> | |
284 | #endif | |
285 | #if HAVE_STRINGS_H | |
286 | # include <strings.h> | |
287 | #endif | |
288 | #if HAVE_INTTYPES_H | |
289 | # include <inttypes.h> | |
290 | #else | |
291 | # if HAVE_STDINT_H | |
292 | # include <stdint.h> | |
293 | # endif | |
294 | #endif | |
295 | #if HAVE_UNISTD_H | |
296 | # include <unistd.h> | |
297 | #endif" | |
e2991ea7 | 298 | |
daa2886c | 299 | |
e2991ea7 | 300 | # Initialize some variables set by options. |
f5818d2f AJ |
301 | ac_init_help= |
302 | ac_init_version=false | |
e2991ea7 AJ |
303 | # The variables have the same names as the options, with |
304 | # dashes changed to underlines. | |
f5818d2f | 305 | cache_file=/dev/null |
e2991ea7 | 306 | exec_prefix=NONE |
e2991ea7 | 307 | no_create= |
e2991ea7 AJ |
308 | no_recursion= |
309 | prefix=NONE | |
310 | program_prefix=NONE | |
311 | program_suffix=NONE | |
312 | program_transform_name=s,x,x, | |
313 | silent= | |
314 | site= | |
315 | srcdir= | |
e2991ea7 AJ |
316 | verbose= |
317 | x_includes=NONE | |
318 | x_libraries=NONE | |
f5818d2f AJ |
319 | |
320 | # Installation directory options. | |
321 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
322 | # and all the variables that are supposed to be based on exec_prefix | |
323 | # by default will actually change. | |
324 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
d7d4fdf8 AJ |
325 | bindir='${exec_prefix}/bin' |
326 | sbindir='${exec_prefix}/sbin' | |
327 | libexecdir='${exec_prefix}/libexec' | |
328 | datadir='${prefix}/share' | |
329 | sysconfdir='${prefix}/etc' | |
330 | sharedstatedir='${prefix}/com' | |
331 | localstatedir='${prefix}/var' | |
332 | libdir='${exec_prefix}/lib' | |
333 | includedir='${prefix}/include' | |
334 | oldincludedir='/usr/include' | |
335 | infodir='${prefix}/info' | |
336 | mandir='${prefix}/man' | |
e2991ea7 | 337 | |
e2991ea7 AJ |
338 | ac_prev= |
339 | for ac_option | |
340 | do | |
e2991ea7 AJ |
341 | # If the previous option needs an argument, assign it. |
342 | if test -n "$ac_prev"; then | |
343 | eval "$ac_prev=\$ac_option" | |
344 | ac_prev= | |
345 | continue | |
346 | fi | |
347 | ||
f5818d2f | 348 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
e2991ea7 AJ |
349 | |
350 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
351 | ||
f5818d2f | 352 | case $ac_option in |
e2991ea7 | 353 | |
d7d4fdf8 AJ |
354 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
355 | ac_prev=bindir ;; | |
356 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
f5818d2f | 357 | bindir=$ac_optarg ;; |
d7d4fdf8 AJ |
358 | |
359 | -build | --build | --buil | --bui | --bu) | |
f5818d2f | 360 | ac_prev=build_alias ;; |
d7d4fdf8 | 361 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
f5818d2f | 362 | build_alias=$ac_optarg ;; |
e2991ea7 AJ |
363 | |
364 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
365 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
366 | ac_prev=cache_file ;; | |
367 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
368 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
f5818d2f AJ |
369 | cache_file=$ac_optarg ;; |
370 | ||
371 | --config-cache | -C) | |
372 | cache_file=config.cache ;; | |
e2991ea7 | 373 | |
d7d4fdf8 AJ |
374 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
375 | ac_prev=datadir ;; | |
376 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
377 | | --da=*) | |
f5818d2f | 378 | datadir=$ac_optarg ;; |
d7d4fdf8 | 379 | |
e2991ea7 | 380 | -disable-* | --disable-*) |
f5818d2f | 381 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
e2991ea7 | 382 | # Reject names that are not valid shell variable names. |
f5818d2f AJ |
383 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
384 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
385 | { (exit 1); exit 1; }; } | |
386 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
387 | eval "enable_$ac_feature=no" ;; | |
e2991ea7 AJ |
388 | |
389 | -enable-* | --enable-*) | |
f5818d2f | 390 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
e2991ea7 | 391 | # Reject names that are not valid shell variable names. |
f5818d2f AJ |
392 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
393 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
394 | { (exit 1); exit 1; }; } | |
395 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
396 | case $ac_option in | |
397 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
e2991ea7 AJ |
398 | *) ac_optarg=yes ;; |
399 | esac | |
f5818d2f | 400 | eval "enable_$ac_feature='$ac_optarg'" ;; |
e2991ea7 AJ |
401 | |
402 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
403 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
404 | | --exec | --exe | --ex) | |
405 | ac_prev=exec_prefix ;; | |
406 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
407 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
408 | | --exec=* | --exe=* | --ex=*) | |
f5818d2f | 409 | exec_prefix=$ac_optarg ;; |
e2991ea7 AJ |
410 | |
411 | -gas | --gas | --ga | --g) | |
412 | # Obsolete; use --with-gas. | |
413 | with_gas=yes ;; | |
414 | ||
f5818d2f AJ |
415 | -help | --help | --hel | --he | -h) |
416 | ac_init_help=long ;; | |
417 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
418 | ac_init_help=recursive ;; | |
419 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
420 | ac_init_help=short ;; | |
e2991ea7 AJ |
421 | |
422 | -host | --host | --hos | --ho) | |
f5818d2f | 423 | ac_prev=host_alias ;; |
e2991ea7 | 424 | -host=* | --host=* | --hos=* | --ho=*) |
f5818d2f | 425 | host_alias=$ac_optarg ;; |
e2991ea7 | 426 | |
d7d4fdf8 AJ |
427 | -includedir | --includedir | --includedi | --included | --include \ |
428 | | --includ | --inclu | --incl | --inc) | |
429 | ac_prev=includedir ;; | |
430 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
431 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
f5818d2f | 432 | includedir=$ac_optarg ;; |
d7d4fdf8 AJ |
433 | |
434 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
435 | ac_prev=infodir ;; | |
436 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
f5818d2f | 437 | infodir=$ac_optarg ;; |
d7d4fdf8 AJ |
438 | |
439 | -libdir | --libdir | --libdi | --libd) | |
440 | ac_prev=libdir ;; | |
441 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
f5818d2f | 442 | libdir=$ac_optarg ;; |
d7d4fdf8 AJ |
443 | |
444 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
445 | | --libexe | --libex | --libe) | |
446 | ac_prev=libexecdir ;; | |
447 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
448 | | --libexe=* | --libex=* | --libe=*) | |
f5818d2f | 449 | libexecdir=$ac_optarg ;; |
d7d4fdf8 AJ |
450 | |
451 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
452 | | --localstate | --localstat | --localsta | --localst \ | |
453 | | --locals | --local | --loca | --loc | --lo) | |
454 | ac_prev=localstatedir ;; | |
455 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
456 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
457 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
f5818d2f | 458 | localstatedir=$ac_optarg ;; |
d7d4fdf8 AJ |
459 | |
460 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
461 | ac_prev=mandir ;; | |
462 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
f5818d2f | 463 | mandir=$ac_optarg ;; |
d7d4fdf8 | 464 | |
e2991ea7 AJ |
465 | -nfp | --nfp | --nf) |
466 | # Obsolete; use --without-fp. | |
467 | with_fp=no ;; | |
468 | ||
469 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
daa2886c | 470 | | --no-cr | --no-c | -n) |
e2991ea7 AJ |
471 | no_create=yes ;; |
472 | ||
473 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
474 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
475 | no_recursion=yes ;; | |
476 | ||
d7d4fdf8 AJ |
477 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
478 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
479 | | --oldin | --oldi | --old | --ol | --o) | |
480 | ac_prev=oldincludedir ;; | |
481 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
482 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
483 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
f5818d2f | 484 | oldincludedir=$ac_optarg ;; |
d7d4fdf8 | 485 | |
e2991ea7 AJ |
486 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
487 | ac_prev=prefix ;; | |
488 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
f5818d2f | 489 | prefix=$ac_optarg ;; |
e2991ea7 AJ |
490 | |
491 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
492 | | --program-pre | --program-pr | --program-p) | |
493 | ac_prev=program_prefix ;; | |
494 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
495 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
f5818d2f | 496 | program_prefix=$ac_optarg ;; |
e2991ea7 AJ |
497 | |
498 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
499 | | --program-suf | --program-su | --program-s) | |
500 | ac_prev=program_suffix ;; | |
501 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
502 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
f5818d2f | 503 | program_suffix=$ac_optarg ;; |
e2991ea7 AJ |
504 | |
505 | -program-transform-name | --program-transform-name \ | |
506 | | --program-transform-nam | --program-transform-na \ | |
507 | | --program-transform-n | --program-transform- \ | |
508 | | --program-transform | --program-transfor \ | |
509 | | --program-transfo | --program-transf \ | |
510 | | --program-trans | --program-tran \ | |
511 | | --progr-tra | --program-tr | --program-t) | |
512 | ac_prev=program_transform_name ;; | |
513 | -program-transform-name=* | --program-transform-name=* \ | |
514 | | --program-transform-nam=* | --program-transform-na=* \ | |
515 | | --program-transform-n=* | --program-transform-=* \ | |
516 | | --program-transform=* | --program-transfor=* \ | |
517 | | --program-transfo=* | --program-transf=* \ | |
518 | | --program-trans=* | --program-tran=* \ | |
519 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
f5818d2f | 520 | program_transform_name=$ac_optarg ;; |
e2991ea7 AJ |
521 | |
522 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
523 | | -silent | --silent | --silen | --sile | --sil) | |
524 | silent=yes ;; | |
525 | ||
d7d4fdf8 AJ |
526 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
527 | ac_prev=sbindir ;; | |
528 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
529 | | --sbi=* | --sb=*) | |
f5818d2f | 530 | sbindir=$ac_optarg ;; |
d7d4fdf8 AJ |
531 | |
532 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
533 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
534 | | --sharedst | --shareds | --shared | --share | --shar \ | |
535 | | --sha | --sh) | |
536 | ac_prev=sharedstatedir ;; | |
537 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
538 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
539 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
540 | | --sha=* | --sh=*) | |
f5818d2f | 541 | sharedstatedir=$ac_optarg ;; |
d7d4fdf8 | 542 | |
e2991ea7 AJ |
543 | -site | --site | --sit) |
544 | ac_prev=site ;; | |
545 | -site=* | --site=* | --sit=*) | |
f5818d2f | 546 | site=$ac_optarg ;; |
e2991ea7 AJ |
547 | |
548 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
549 | ac_prev=srcdir ;; | |
550 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
f5818d2f | 551 | srcdir=$ac_optarg ;; |
e2991ea7 | 552 | |
d7d4fdf8 AJ |
553 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
554 | | --syscon | --sysco | --sysc | --sys | --sy) | |
555 | ac_prev=sysconfdir ;; | |
556 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
557 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
f5818d2f | 558 | sysconfdir=$ac_optarg ;; |
d7d4fdf8 | 559 | |
e2991ea7 | 560 | -target | --target | --targe | --targ | --tar | --ta | --t) |
f5818d2f | 561 | ac_prev=target_alias ;; |
e2991ea7 | 562 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
f5818d2f | 563 | target_alias=$ac_optarg ;; |
e2991ea7 AJ |
564 | |
565 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
566 | verbose=yes ;; | |
567 | ||
f5818d2f AJ |
568 | -version | --version | --versio | --versi | --vers | -V) |
569 | ac_init_version=: ;; | |
e2991ea7 AJ |
570 | |
571 | -with-* | --with-*) | |
f5818d2f | 572 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
e2991ea7 | 573 | # Reject names that are not valid shell variable names. |
f5818d2f AJ |
574 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
575 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
576 | { (exit 1); exit 1; }; } | |
e2991ea7 | 577 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
f5818d2f AJ |
578 | case $ac_option in |
579 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
e2991ea7 AJ |
580 | *) ac_optarg=yes ;; |
581 | esac | |
f5818d2f | 582 | eval "with_$ac_package='$ac_optarg'" ;; |
e2991ea7 AJ |
583 | |
584 | -without-* | --without-*) | |
f5818d2f | 585 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
e2991ea7 | 586 | # Reject names that are not valid shell variable names. |
f5818d2f AJ |
587 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
588 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
589 | { (exit 1); exit 1; }; } | |
590 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
591 | eval "with_$ac_package=no" ;; | |
e2991ea7 AJ |
592 | |
593 | --x) | |
594 | # Obsolete; use --with-x. | |
595 | with_x=yes ;; | |
596 | ||
597 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
598 | | --x-incl | --x-inc | --x-in | --x-i) | |
599 | ac_prev=x_includes ;; | |
600 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
601 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
f5818d2f | 602 | x_includes=$ac_optarg ;; |
e2991ea7 AJ |
603 | |
604 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
605 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
606 | ac_prev=x_libraries ;; | |
607 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
608 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
f5818d2f | 609 | x_libraries=$ac_optarg ;; |
e2991ea7 | 610 | |
f5818d2f AJ |
611 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
612 | Try \`$0 --help' for more information." >&2 | |
613 | { (exit 1); exit 1; }; } | |
e2991ea7 AJ |
614 | ;; |
615 | ||
f5818d2f AJ |
616 | *=*) |
617 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
618 | # Reject names that are not valid shell variable names. | |
619 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
620 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
621 | { (exit 1); exit 1; }; } | |
622 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
623 | eval "$ac_envvar='$ac_optarg'" | |
624 | export $ac_envvar ;; | |
625 | ||
d7d4fdf8 | 626 | *) |
f5818d2f AJ |
627 | # FIXME: should be removed in autoconf 3.0. |
628 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
629 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
630 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
631 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
e2991ea7 AJ |
632 | ;; |
633 | ||
634 | esac | |
635 | done | |
636 | ||
637 | if test -n "$ac_prev"; then | |
f5818d2f AJ |
638 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
639 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
640 | { (exit 1); exit 1; }; } | |
e2991ea7 | 641 | fi |
e2991ea7 | 642 | |
f5818d2f AJ |
643 | # Be sure to have absolute paths. |
644 | for ac_var in exec_prefix prefix | |
645 | do | |
646 | eval ac_val=$`echo $ac_var` | |
647 | case $ac_val in | |
648 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
daa2886c | 649 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
f5818d2f AJ |
650 | { (exit 1); exit 1; }; };; |
651 | esac | |
652 | done | |
e2991ea7 | 653 | |
f5818d2f AJ |
654 | # Be sure to have absolute paths. |
655 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
656 | localstatedir libdir includedir oldincludedir infodir mandir | |
e2991ea7 | 657 | do |
f5818d2f AJ |
658 | eval ac_val=$`echo $ac_var` |
659 | case $ac_val in | |
660 | [\\/$]* | ?:[\\/]* ) ;; | |
daa2886c | 661 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
f5818d2f | 662 | { (exit 1); exit 1; }; };; |
e2991ea7 AJ |
663 | esac |
664 | done | |
665 | ||
f5818d2f AJ |
666 | # There might be people who depend on the old broken behavior: `$host' |
667 | # used to hold the argument of --host etc. | |
daa2886c | 668 | # FIXME: To remove some day. |
f5818d2f AJ |
669 | build=$build_alias |
670 | host=$host_alias | |
671 | target=$target_alias | |
672 | ||
daa2886c | 673 | # FIXME: To remove some day. |
f5818d2f AJ |
674 | if test "x$host_alias" != x; then |
675 | if test "x$build_alias" = x; then | |
676 | cross_compiling=maybe | |
677 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
678 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
679 | elif test "x$build_alias" != "x$host_alias"; then | |
680 | cross_compiling=yes | |
681 | fi | |
682 | fi | |
e2991ea7 | 683 | |
f5818d2f AJ |
684 | ac_tool_prefix= |
685 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
e2991ea7 | 686 | |
f5818d2f | 687 | test "$silent" = yes && exec 6>/dev/null |
e2991ea7 | 688 | |
daa2886c | 689 | |
e2991ea7 AJ |
690 | # Find the source files, if location was not specified. |
691 | if test -z "$srcdir"; then | |
692 | ac_srcdir_defaulted=yes | |
693 | # Try the directory containing this script, then its parent. | |
daa2886c AJ |
694 | ac_confdir=`(dirname "$0") 2>/dev/null || |
695 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
696 | X"$0" : 'X\(//\)[^/]' \| \ | |
697 | X"$0" : 'X\(//\)$' \| \ | |
698 | X"$0" : 'X\(/\)' \| \ | |
699 | . : '\(.\)' 2>/dev/null || | |
700 | echo X"$0" | | |
701 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
702 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
703 | /^X\(\/\/\)$/{ s//\1/; q; } | |
704 | /^X\(\/\).*/{ s//\1/; q; } | |
705 | s/.*/./; q'` | |
e2991ea7 AJ |
706 | srcdir=$ac_confdir |
707 | if test ! -r $srcdir/$ac_unique_file; then | |
708 | srcdir=.. | |
709 | fi | |
710 | else | |
711 | ac_srcdir_defaulted=no | |
712 | fi | |
713 | if test ! -r $srcdir/$ac_unique_file; then | |
714 | if test "$ac_srcdir_defaulted" = yes; then | |
daa2886c | 715 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
f5818d2f | 716 | { (exit 1); exit 1; }; } |
e2991ea7 | 717 | else |
daa2886c | 718 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
f5818d2f | 719 | { (exit 1); exit 1; }; } |
e2991ea7 AJ |
720 | fi |
721 | fi | |
f5818d2f AJ |
722 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
723 | ac_env_build_alias_set=${build_alias+set} | |
724 | ac_env_build_alias_value=$build_alias | |
725 | ac_cv_env_build_alias_set=${build_alias+set} | |
726 | ac_cv_env_build_alias_value=$build_alias | |
727 | ac_env_host_alias_set=${host_alias+set} | |
728 | ac_env_host_alias_value=$host_alias | |
729 | ac_cv_env_host_alias_set=${host_alias+set} | |
730 | ac_cv_env_host_alias_value=$host_alias | |
731 | ac_env_target_alias_set=${target_alias+set} | |
732 | ac_env_target_alias_value=$target_alias | |
733 | ac_cv_env_target_alias_set=${target_alias+set} | |
734 | ac_cv_env_target_alias_value=$target_alias | |
735 | ac_env_CC_set=${CC+set} | |
736 | ac_env_CC_value=$CC | |
737 | ac_cv_env_CC_set=${CC+set} | |
738 | ac_cv_env_CC_value=$CC | |
739 | ac_env_CFLAGS_set=${CFLAGS+set} | |
740 | ac_env_CFLAGS_value=$CFLAGS | |
741 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
742 | ac_cv_env_CFLAGS_value=$CFLAGS | |
743 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
744 | ac_env_LDFLAGS_value=$LDFLAGS | |
745 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
746 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
747 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
748 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
749 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
750 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
751 | ac_env_CPP_set=${CPP+set} | |
752 | ac_env_CPP_value=$CPP | |
753 | ac_cv_env_CPP_set=${CPP+set} | |
754 | ac_cv_env_CPP_value=$CPP | |
755 | ||
756 | # | |
757 | # Report the --help message. | |
758 | # | |
759 | if test "$ac_init_help" = "long"; then | |
760 | # Omit some internal or obsolete options to make the list less imposing. | |
761 | # This message is too long to be a string in the A/UX 3.1 sh. | |
daa2886c | 762 | cat <<_ACEOF |
f85d8da4 | 763 | \`configure' configures Wine 20020509 to adapt to many kinds of systems. |
f5818d2f AJ |
764 | |
765 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
766 | ||
767 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
768 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
769 | ||
770 | Defaults for the options are specified in brackets. | |
771 | ||
772 | Configuration: | |
773 | -h, --help display this help and exit | |
774 | --help=short display options specific to this package | |
775 | --help=recursive display the short help of all the included packages | |
776 | -V, --version display version information and exit | |
777 | -q, --quiet, --silent do not print \`checking...' messages | |
778 | --cache-file=FILE cache test results in FILE [disabled] | |
779 | -C, --config-cache alias for \`--cache-file=config.cache' | |
780 | -n, --no-create do not create output files | |
781 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
782 | ||
daa2886c | 783 | _ACEOF |
f5818d2f | 784 | |
daa2886c | 785 | cat <<_ACEOF |
f5818d2f AJ |
786 | Installation directories: |
787 | --prefix=PREFIX install architecture-independent files in PREFIX | |
788 | [$ac_default_prefix] | |
789 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
790 | [PREFIX] | |
791 | ||
792 | By default, \`make install' will install all the files in | |
793 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
794 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
795 | for instance \`--prefix=\$HOME'. | |
796 | ||
797 | For better control, use the options below. | |
798 | ||
799 | Fine tuning of the installation directories: | |
800 | --bindir=DIR user executables [EPREFIX/bin] | |
801 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
802 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
803 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
804 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
805 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
806 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
807 | --libdir=DIR object code libraries [EPREFIX/lib] | |
808 | --includedir=DIR C header files [PREFIX/include] | |
809 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
810 | --infodir=DIR info documentation [PREFIX/info] | |
811 | --mandir=DIR man documentation [PREFIX/man] | |
daa2886c | 812 | _ACEOF |
f5818d2f | 813 | |
daa2886c | 814 | cat <<\_ACEOF |
f5818d2f AJ |
815 | |
816 | X features: | |
817 | --x-includes=DIR X include files are in DIR | |
818 | --x-libraries=DIR X library files are in DIR | |
819 | ||
820 | System types: | |
821 | --build=BUILD configure for building on BUILD [guessed] | |
daa2886c | 822 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
daa2886c | 823 | _ACEOF |
f5818d2f AJ |
824 | fi |
825 | ||
826 | if test -n "$ac_init_help"; then | |
827 | case $ac_init_help in | |
f85d8da4 | 828 | short | recursive ) echo "Configuration of Wine 20020509:";; |
f5818d2f | 829 | esac |
daa2886c | 830 | cat <<\_ACEOF |
f5818d2f AJ |
831 | |
832 | Optional Features: | |
833 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
834 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
835 | --disable-debug compile out all debugging messages | |
836 | --disable-trace compile out TRACE messages | |
837 | --enable-opengl force usage of OpenGL even if the latter is | |
838 | thread-safe via pthread | |
839 | ||
840 | Optional Packages: | |
841 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
842 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
843 | --without-curses do not use curses | |
fc01b729 | 844 | --with-wine-tools=<dir> use Wine tools from directory <dir> |
f5818d2f AJ |
845 | --with-x use the X Window System |
846 | ||
847 | Some influential environment variables: | |
848 | CC C compiler command | |
849 | CFLAGS C compiler flags | |
850 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
851 | nonstandard directory <lib dir> | |
852 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
853 | headers in a nonstandard directory <include dir> | |
854 | CPP C preprocessor | |
855 | ||
856 | Use these variables to override the choices made by `configure' or to help | |
857 | it to find libraries and programs with nonstandard names/locations. | |
858 | ||
daa2886c | 859 | _ACEOF |
f5818d2f AJ |
860 | fi |
861 | ||
862 | if test "$ac_init_help" = "recursive"; then | |
863 | # If there are subdirs, report their specific --help. | |
864 | ac_popdir=`pwd` | |
daa2886c AJ |
865 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
866 | test -d $ac_dir || continue | |
867 | ac_builddir=. | |
868 | ||
869 | if test "$ac_dir" != .; then | |
870 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
871 | # A "../" for each directory in $ac_dir_suffix. | |
872 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
873 | else | |
874 | ac_dir_suffix= ac_top_builddir= | |
875 | fi | |
f5818d2f | 876 | |
daa2886c AJ |
877 | case $srcdir in |
878 | .) # No --srcdir option. We are building in place. | |
879 | ac_srcdir=. | |
880 | if test -z "$ac_top_builddir"; then | |
881 | ac_top_srcdir=. | |
882 | else | |
883 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
884 | fi ;; | |
885 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
886 | ac_srcdir=$srcdir$ac_dir_suffix; | |
887 | ac_top_srcdir=$srcdir ;; | |
888 | *) # Relative path. | |
889 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
890 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
891 | esac | |
892 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | |
893 | # absolute. | |
894 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
895 | ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` | |
896 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | |
897 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
898 | ||
899 | cd $ac_dir | |
f5818d2f | 900 | # Check for guested configure; otherwise get Cygnus style configure. |
daa2886c | 901 | if test -f $ac_srcdir/configure.gnu; then |
f5818d2f | 902 | echo |
daa2886c AJ |
903 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
904 | elif test -f $ac_srcdir/configure; then | |
f5818d2f | 905 | echo |
daa2886c AJ |
906 | $SHELL $ac_srcdir/configure --help=recursive |
907 | elif test -f $ac_srcdir/configure.ac || | |
908 | test -f $ac_srcdir/configure.in; then | |
f5818d2f AJ |
909 | echo |
910 | $ac_configure --help | |
911 | else | |
daa2886c | 912 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
f5818d2f AJ |
913 | fi |
914 | cd $ac_popdir | |
915 | done | |
916 | fi | |
e2991ea7 | 917 | |
f5818d2f AJ |
918 | test -n "$ac_init_help" && exit 0 |
919 | if $ac_init_version; then | |
daa2886c | 920 | cat <<\_ACEOF |
f85d8da4 | 921 | Wine configure 20020509 |
daa2886c | 922 | generated by GNU Autoconf 2.53 |
f5818d2f | 923 | |
daa2886c | 924 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
f5818d2f AJ |
925 | Free Software Foundation, Inc. |
926 | This configure script is free software; the Free Software Foundation | |
927 | gives unlimited permission to copy, distribute and modify it. | |
daa2886c | 928 | _ACEOF |
f5818d2f AJ |
929 | exit 0 |
930 | fi | |
931 | exec 5>config.log | |
daa2886c | 932 | cat >&5 <<_ACEOF |
f5818d2f AJ |
933 | This file contains any messages produced by compilers while |
934 | running configure, to aid debugging if configure makes a mistake. | |
935 | ||
f85d8da4 | 936 | It was created by Wine $as_me 20020509, which was |
daa2886c | 937 | generated by GNU Autoconf 2.53. Invocation command line was |
f5818d2f AJ |
938 | |
939 | $ $0 $@ | |
940 | ||
daa2886c | 941 | _ACEOF |
f5818d2f AJ |
942 | { |
943 | cat <<_ASUNAME | |
daa2886c AJ |
944 | ## --------- ## |
945 | ## Platform. ## | |
946 | ## --------- ## | |
f5818d2f AJ |
947 | |
948 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
949 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
950 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
951 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
952 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
953 | ||
954 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
955 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
956 | ||
957 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
958 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
959 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
960 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
961 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
962 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
963 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
964 | ||
f5818d2f | 965 | _ASUNAME |
daa2886c AJ |
966 | |
967 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
968 | for as_dir in $PATH | |
969 | do | |
970 | IFS=$as_save_IFS | |
971 | test -z "$as_dir" && as_dir=. | |
972 | echo "PATH: $as_dir" | |
973 | done | |
974 | ||
f5818d2f AJ |
975 | } >&5 |
976 | ||
daa2886c AJ |
977 | cat >&5 <<_ACEOF |
978 | ||
979 | ||
980 | ## ----------- ## | |
981 | ## Core tests. ## | |
982 | ## ----------- ## | |
983 | ||
984 | _ACEOF | |
f5818d2f | 985 | |
f5818d2f AJ |
986 | |
987 | # Keep a trace of the command line. | |
988 | # Strip out --no-create and --no-recursion so they do not pile up. | |
989 | # Also quote any args containing shell meta-characters. | |
990 | ac_configure_args= | |
991 | ac_sep= | |
992 | for ac_arg | |
993 | do | |
994 | case $ac_arg in | |
995 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
daa2886c | 996 | | --no-cr | --no-c | -n ) continue ;; |
f5818d2f | 997 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
daa2886c AJ |
998 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
999 | continue ;; | |
f5818d2f | 1000 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
daa2886c AJ |
1001 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1002 | esac | |
1003 | case " $ac_configure_args " in | |
1004 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1005 | *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1006 | ac_sep=" " ;; | |
f5818d2f AJ |
1007 | esac |
1008 | # Get rid of the leading space. | |
1009 | done | |
1010 | ||
1011 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1012 | # config.log. We remove comments because anyway the quotes in there | |
1013 | # would cause problems or look ugly. | |
daa2886c AJ |
1014 | # WARNING: Be sure not to use single quotes in there, as some shells, |
1015 | # such as our DU 5.0 friend, will then `close' the trap. | |
f5818d2f AJ |
1016 | trap 'exit_status=$? |
1017 | # Save into config.log some information that might help in debugging. | |
daa2886c AJ |
1018 | { |
1019 | echo | |
1020 | cat <<\_ASBOX | |
1021 | ## ---------------- ## | |
1022 | ## Cache variables. ## | |
1023 | ## ---------------- ## | |
1024 | _ASBOX | |
1025 | echo | |
1026 | # The following way of writing the cache mishandles newlines in values, | |
f5818d2f AJ |
1027 | { |
1028 | (set) 2>&1 | | |
1029 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1030 | *ac_space=\ *) | |
1031 | sed -n \ | |
1032 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
1033 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1034 | ;; | |
1035 | *) | |
1036 | sed -n \ | |
1037 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
1038 | ;; | |
1039 | esac; | |
daa2886c AJ |
1040 | } |
1041 | echo | |
1042 | if test -s confdefs.h; then | |
1043 | cat <<\_ASBOX | |
1044 | ## ----------- ## | |
1045 | ## confdefs.h. ## | |
1046 | ## ----------- ## | |
1047 | _ASBOX | |
1048 | echo | |
1049 | sed "/^$/d" confdefs.h | |
1050 | echo | |
1051 | fi | |
1052 | test "$ac_signal" != 0 && | |
1053 | echo "$as_me: caught signal $ac_signal" | |
1054 | echo "$as_me: exit $exit_status" | |
1055 | } >&5 | |
1056 | rm -f core core.* *.core && | |
1057 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
f5818d2f AJ |
1058 | exit $exit_status |
1059 | ' 0 | |
1060 | for ac_signal in 1 2 13 15; do | |
1061 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1062 | done | |
1063 | ac_signal=0 | |
1064 | ||
1065 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1066 | rm -rf conftest* confdefs.h | |
1067 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1068 | echo >confdefs.h | |
1069 | ||
daa2886c AJ |
1070 | # Predefined preprocessor variables. |
1071 | ||
1072 | cat >>confdefs.h <<_ACEOF | |
1073 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1074 | _ACEOF | |
1075 | ||
1076 | ||
1077 | cat >>confdefs.h <<_ACEOF | |
1078 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1079 | _ACEOF | |
1080 | ||
1081 | ||
1082 | cat >>confdefs.h <<_ACEOF | |
1083 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1084 | _ACEOF | |
1085 | ||
1086 | ||
1087 | cat >>confdefs.h <<_ACEOF | |
1088 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1089 | _ACEOF | |
1090 | ||
1091 | ||
1092 | cat >>confdefs.h <<_ACEOF | |
1093 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1094 | _ACEOF | |
1095 | ||
1096 | ||
f5818d2f | 1097 | # Let the site file select an alternate cache file if it wants to. |
e2991ea7 AJ |
1098 | # Prefer explicitly selected file to automatically selected ones. |
1099 | if test -z "$CONFIG_SITE"; then | |
1100 | if test "x$prefix" != xNONE; then | |
1101 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1102 | else | |
1103 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1104 | fi | |
1105 | fi | |
1106 | for ac_site_file in $CONFIG_SITE; do | |
1107 | if test -r "$ac_site_file"; then | |
daa2886c | 1108 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
f5818d2f | 1109 | echo "$as_me: loading site script $ac_site_file" >&6;} |
daa2886c | 1110 | sed 's/^/| /' "$ac_site_file" >&5 |
e2991ea7 AJ |
1111 | . "$ac_site_file" |
1112 | fi | |
1113 | done | |
1114 | ||
1115 | if test -r "$cache_file"; then | |
f5818d2f AJ |
1116 | # Some versions of bash will fail to source /dev/null (special |
1117 | # files actually), so we avoid doing that. | |
1118 | if test -f "$cache_file"; then | |
daa2886c | 1119 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
f5818d2f AJ |
1120 | echo "$as_me: loading cache $cache_file" >&6;} |
1121 | case $cache_file in | |
1122 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1123 | *) . ./$cache_file;; | |
1124 | esac | |
1125 | fi | |
e2991ea7 | 1126 | else |
daa2886c | 1127 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
f5818d2f AJ |
1128 | echo "$as_me: creating cache $cache_file" >&6;} |
1129 | >$cache_file | |
1130 | fi | |
1131 | ||
1132 | # Check that the precious variables saved in the cache have kept the same | |
1133 | # value. | |
1134 | ac_cache_corrupted=false | |
1135 | for ac_var in `(set) 2>&1 | | |
1136 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
1137 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1138 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1139 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1140 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1141 | case $ac_old_set,$ac_new_set in | |
1142 | set,) | |
daa2886c | 1143 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
f5818d2f AJ |
1144 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
1145 | ac_cache_corrupted=: ;; | |
1146 | ,set) | |
daa2886c | 1147 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
f5818d2f AJ |
1148 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
1149 | ac_cache_corrupted=: ;; | |
1150 | ,);; | |
1151 | *) | |
1152 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
daa2886c | 1153 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
f5818d2f | 1154 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
daa2886c | 1155 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
f5818d2f | 1156 | echo "$as_me: former value: $ac_old_val" >&2;} |
daa2886c | 1157 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
f5818d2f AJ |
1158 | echo "$as_me: current value: $ac_new_val" >&2;} |
1159 | ac_cache_corrupted=: | |
1160 | fi;; | |
1161 | esac | |
daa2886c | 1162 | # Pass precious variables to config.status. |
f5818d2f AJ |
1163 | if test "$ac_new_set" = set; then |
1164 | case $ac_new_val in | |
1165 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
daa2886c AJ |
1166 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
1167 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1168 | esac | |
1169 | case " $ac_configure_args " in | |
1170 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1171 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
f5818d2f AJ |
1172 | esac |
1173 | fi | |
1174 | done | |
1175 | if $ac_cache_corrupted; then | |
daa2886c | 1176 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
f5818d2f | 1177 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
daa2886c | 1178 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
f5818d2f AJ |
1179 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
1180 | { (exit 1); exit 1; }; } | |
e2991ea7 AJ |
1181 | fi |
1182 | ||
1183 | ac_ext=c | |
b817f4fb | 1184 | ac_cpp='$CPP $CPPFLAGS' |
f5818d2f AJ |
1185 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1186 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1187 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1188 | ||
daa2886c AJ |
1189 | |
1190 | ||
1191 | ||
1192 | ||
1193 | ||
1194 | ||
1195 | ||
1196 | ||
1197 | ||
1198 | ||
1199 | ||
1200 | ||
1201 | ||
1202 | ||
1203 | ||
1204 | ||
1205 | ||
1206 | ||
1207 | ||
1208 | ||
1209 | ||
1210 | ||
1211 | ||
1212 | ||
1213 | ||
e2991ea7 | 1214 | |
f5818d2f | 1215 | ac_config_headers="$ac_config_headers include/config.h" |
18f92e76 | 1216 | |
d7d4fdf8 AJ |
1217 | ac_aux_dir= |
1218 | for ac_dir in tools $srcdir/tools; do | |
1219 | if test -f $ac_dir/install-sh; then | |
1220 | ac_aux_dir=$ac_dir | |
1221 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1222 | break | |
1223 | elif test -f $ac_dir/install.sh; then | |
1224 | ac_aux_dir=$ac_dir | |
1225 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1226 | break | |
f5818d2f AJ |
1227 | elif test -f $ac_dir/shtool; then |
1228 | ac_aux_dir=$ac_dir | |
1229 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1230 | break | |
d7d4fdf8 AJ |
1231 | fi |
1232 | done | |
1233 | if test -z "$ac_aux_dir"; then | |
daa2886c | 1234 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&5 |
f5818d2f AJ |
1235 | echo "$as_me: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&2;} |
1236 | { (exit 1); exit 1; }; } | |
d7d4fdf8 | 1237 | fi |
f5818d2f AJ |
1238 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
1239 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1240 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
ff8331ea | 1241 | |
daa2886c AJ |
1242 | |
1243 | ||
318f4cef | 1244 | LIBEXT=so # library type .so or .a |
a0b2b1d0 | 1245 | |
f90efa9c AJ |
1246 | # Check whether --enable-debug or --disable-debug was given. |
1247 | if test "${enable_debug+set}" = set; then | |
1248 | enableval="$enable_debug" | |
f90efa9c | 1249 | |
f5818d2f AJ |
1250 | fi; |
1251 | # Check whether --enable-trace or --disable-trace was given. | |
1252 | if test "${enable_trace+set}" = set; then | |
1253 | enableval="$enable_trace" | |
f90efa9c | 1254 | |
f5818d2f | 1255 | fi; |
fbc15b17 LU |
1256 | # Check whether --enable-opengl or --disable-opengl was given. |
1257 | if test "${enable_opengl+set}" = set; then | |
1258 | enableval="$enable_opengl" | |
f90efa9c | 1259 | |
f5818d2f | 1260 | fi; |
f90efa9c | 1261 | |
5e5ad531 PS |
1262 | # Check whether --with-curses or --without-curses was given. |
1263 | if test "${with_curses+set}" = set; then | |
1264 | withval="$with_curses" | |
5e5ad531 | 1265 | |
f5818d2f | 1266 | fi; |
5e5ad531 | 1267 | |
fc01b729 AJ |
1268 | # Check whether --with-wine-tools or --without-wine-tools was given. |
1269 | if test "${with_wine_tools+set}" = set; then | |
1270 | withval="$with_wine_tools" | |
1271 | ||
1272 | fi; | |
1273 | ||
daa2886c | 1274 | |
f5818d2f AJ |
1275 | if test "x$enable_debug" = "xno" |
1276 | then | |
b7258bef | 1277 | |
daa2886c | 1278 | cat >>confdefs.h <<\_ACEOF |
f5818d2f | 1279 | #define NO_DEBUG_MSGS 1 |
daa2886c | 1280 | _ACEOF |
b7258bef | 1281 | |
ed2f19a6 | 1282 | fi |
f5818d2f | 1283 | if test "x$enable_trace" = "xno" -o "x$enable_debug" = "xno" |
ed2f19a6 | 1284 | then |
a0b2b1d0 | 1285 | |
daa2886c | 1286 | cat >>confdefs.h <<\_ACEOF |
f5818d2f | 1287 | #define NO_TRACE_MSGS 1 |
daa2886c | 1288 | _ACEOF |
f5818d2f AJ |
1289 | |
1290 | fi | |
1291 | ||
daa2886c | 1292 | |
f5818d2f AJ |
1293 | # Make sure we can run config.sub. |
1294 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
daa2886c | 1295 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
f5818d2f AJ |
1296 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
1297 | { (exit 1); exit 1; }; } | |
1298 | ||
daa2886c | 1299 | echo "$as_me:$LINENO: checking build system type" >&5 |
f5818d2f AJ |
1300 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
1301 | if test "${ac_cv_build+set}" = set; then | |
1302 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1303 | else | |
1304 | ac_cv_build_alias=$build_alias | |
1305 | test -z "$ac_cv_build_alias" && | |
1306 | ac_cv_build_alias=`$ac_config_guess` | |
1307 | test -z "$ac_cv_build_alias" && | |
daa2886c | 1308 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
f5818d2f AJ |
1309 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
1310 | { (exit 1); exit 1; }; } | |
1311 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
daa2886c AJ |
1312 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
1313 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
f5818d2f AJ |
1314 | { (exit 1); exit 1; }; } |
1315 | ||
1316 | fi | |
daa2886c | 1317 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
f5818d2f AJ |
1318 | echo "${ECHO_T}$ac_cv_build" >&6 |
1319 | build=$ac_cv_build | |
1320 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1321 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1322 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1323 | ||
daa2886c AJ |
1324 | |
1325 | echo "$as_me:$LINENO: checking host system type" >&5 | |
f5818d2f AJ |
1326 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
1327 | if test "${ac_cv_host+set}" = set; then | |
1328 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1329 | else | |
1330 | ac_cv_host_alias=$host_alias | |
1331 | test -z "$ac_cv_host_alias" && | |
1332 | ac_cv_host_alias=$ac_cv_build_alias | |
1333 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
daa2886c | 1334 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
f5818d2f AJ |
1335 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
1336 | { (exit 1); exit 1; }; } | |
1337 | ||
1338 | fi | |
daa2886c | 1339 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
f5818d2f AJ |
1340 | echo "${ECHO_T}$ac_cv_host" >&6 |
1341 | host=$ac_cv_host | |
1342 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1343 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1344 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1345 | ||
daa2886c | 1346 | |
daa2886c | 1347 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
f5818d2f AJ |
1348 | echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 |
1349 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` | |
1350 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
1351 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1352 | else | |
daa2886c | 1353 | cat >conftest.make <<\_ACEOF |
e2991ea7 AJ |
1354 | all: |
1355 | @echo 'ac_maketemp="${MAKE}"' | |
daa2886c | 1356 | _ACEOF |
e2991ea7 | 1357 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
f5818d2f | 1358 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
e2991ea7 AJ |
1359 | if test -n "$ac_maketemp"; then |
1360 | eval ac_cv_prog_make_${ac_make}_set=yes | |
1361 | else | |
1362 | eval ac_cv_prog_make_${ac_make}_set=no | |
1363 | fi | |
f5818d2f | 1364 | rm -f conftest.make |
e2991ea7 AJ |
1365 | fi |
1366 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
daa2886c | 1367 | echo "$as_me:$LINENO: result: yes" >&5 |
f5818d2f | 1368 | echo "${ECHO_T}yes" >&6 |
e2991ea7 AJ |
1369 | SET_MAKE= |
1370 | else | |
daa2886c | 1371 | echo "$as_me:$LINENO: result: no" >&5 |
f5818d2f | 1372 | echo "${ECHO_T}no" >&6 |
e2991ea7 AJ |
1373 | SET_MAKE="MAKE=${MAKE-make}" |
1374 | fi | |
1375 | ||
f5818d2f AJ |
1376 | ac_ext=c |
1377 | ac_cpp='$CPP $CPPFLAGS' | |
1378 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1379 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1380 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1381 | if test -n "$ac_tool_prefix"; then | |
1382 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1383 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
daa2886c | 1384 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
f5818d2f AJ |
1385 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1386 | if test "${ac_cv_prog_CC+set}" = set; then | |
1387 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1388 | else | |
1389 | if test -n "$CC"; then | |
1390 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1391 | else | |
daa2886c AJ |
1392 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1393 | for as_dir in $PATH | |
1394 | do | |
1395 | IFS=$as_save_IFS | |
1396 | test -z "$as_dir" && as_dir=. | |
1397 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1398 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1399 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
1400 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1401 | break 2 | |
1402 | fi | |
1403 | done | |
f5818d2f AJ |
1404 | done |
1405 | ||
1406 | fi | |
1407 | fi | |
1408 | CC=$ac_cv_prog_CC | |
1409 | if test -n "$CC"; then | |
daa2886c | 1410 | echo "$as_me:$LINENO: result: $CC" >&5 |
f5818d2f AJ |
1411 | echo "${ECHO_T}$CC" >&6 |
1412 | else | |
daa2886c | 1413 | echo "$as_me:$LINENO: result: no" >&5 |
f5818d2f AJ |
1414 | echo "${ECHO_T}no" >&6 |
1415 | fi | |
1416 | ||
1417 | fi | |
1418 | if test -z "$ac_cv_prog_CC"; then | |
1419 | ac_ct_CC=$CC | |
1420 | # Extract the first word of "gcc", so it can be a program name with args. | |
e2991ea7 | 1421 | set dummy gcc; ac_word=$2 |
daa2886c | 1422 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
f5818d2f AJ |
1423 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1424 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1425 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1426 | else | |
1427 | if test -n "$ac_ct_CC"; then | |
1428 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1429 | else | |
daa2886c AJ |
1430 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1431 | for as_dir in $PATH | |
1432 | do | |
1433 | IFS=$as_save_IFS | |
1434 | test -z "$as_dir" && as_dir=. | |
1435 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1436 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1437 | ac_cv_prog_ac_ct_CC="gcc" | |
1438 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1439 | break 2 | |
1440 | fi | |
1441 | done | |
f5818d2f AJ |
1442 | done |
1443 | ||
1444 | fi | |
1445 | fi | |
1446 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1447 | if test -n "$ac_ct_CC"; then | |
daa2886c | 1448 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
f5818d2f AJ |
1449 | echo "${ECHO_T}$ac_ct_CC" >&6 |
1450 | else | |
daa2886c | 1451 | echo "$as_me:$LINENO: result: no" >&5 |
f5818d2f AJ |
1452 | echo "${ECHO_T}no" >&6 |
1453 | fi | |
1454 | ||
1455 | CC=$ac_ct_CC | |
1456 | else | |
1457 | CC="$ac_cv_prog_CC" | |
1458 | fi | |
1459 | ||
1460 | if test -z "$CC"; then | |
1461 | if test -n "$ac_tool_prefix"; then | |
1462 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1463 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
daa2886c | 1464 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
f5818d2f AJ |
1465 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1466 | if test "${ac_cv_prog_CC+set}" = set; then | |
1467 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
e2991ea7 AJ |
1468 | else |
1469 | if test -n "$CC"; then | |
1470 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1471 | else | |
daa2886c AJ |
1472 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1473 | for as_dir in $PATH | |
1474 | do | |
1475 | IFS=$as_save_IFS | |
1476 | test -z "$as_dir" && as_dir=. | |
1477 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1478 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1479 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
1480 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1481 | break 2 | |
1482 | fi | |
1483 | done | |
f5818d2f AJ |
1484 | done |
1485 | ||
e2991ea7 AJ |
1486 | fi |
1487 | fi | |
f5818d2f | 1488 | CC=$ac_cv_prog_CC |
e2991ea7 | 1489 | if test -n "$CC"; then |
daa2886c | 1490 | echo "$as_me:$LINENO: result: $CC" >&5 |
f5818d2f AJ |
1491 | echo "${ECHO_T}$CC" >&6 |
1492 | else | |
daa2886c | 1493 | echo "$as_me:$LINENO: result: no" >&5 |
f5818d2f AJ |
1494 | echo "${ECHO_T}no" >&6 |
1495 | fi | |
1496 | ||
1497 | fi | |
1498 | if test -z "$ac_cv_prog_CC"; then | |
1499 | ac_ct_CC=$CC | |
1500 | # Extract the first word of "cc", so it can be a program name with args. | |
1501 | set dummy cc; ac_word=$2 | |
daa2886c | 1502 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
f5818d2f AJ |
1503 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1504 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1505 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1506 | else | |
1507 | if test -n "$ac_ct_CC"; then | |
1508 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1509 | else | |
daa2886c AJ |
1510 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1511 | for as_dir in $PATH | |
1512 | do | |
1513 | IFS=$as_save_IFS | |
1514 | test -z "$as_dir" && as_dir=. | |
1515 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1516 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1517 | ac_cv_prog_ac_ct_CC="cc" | |
1518 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1519 | break 2 | |
1520 | fi | |
1521 | done | |
f5818d2f AJ |
1522 | done |
1523 | ||
1524 | fi | |
1525 | fi | |
1526 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1527 | if test -n "$ac_ct_CC"; then | |
daa2886c | 1528 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
f5818d2f AJ |
1529 | echo "${ECHO_T}$ac_ct_CC" >&6 |
1530 | else | |
daa2886c | 1531 | echo "$as_me:$LINENO: result: no" >&5 |
f5818d2f AJ |
1532 | echo "${ECHO_T}no" >&6 |
1533 | fi | |
1534 | ||
1535 | CC=$ac_ct_CC | |
e2991ea7 | 1536 | else |
f5818d2f | 1537 | CC="$ac_cv_prog_CC" |
e2991ea7 AJ |
1538 | fi |
1539 | ||
f5818d2f | 1540 | fi |
b817f4fb AJ |
1541 | if test -z "$CC"; then |
1542 | # Extract the first word of "cc", so it can be a program name with args. | |
1543 | set dummy cc; ac_word=$2 | |
daa2886c | 1544 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
f5818d2f AJ |
1545 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1546 | if test "${ac_cv_prog_CC+set}" = set; then | |
1547 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b817f4fb AJ |
1548 | else |
1549 | if test -n "$CC"; then | |
1550 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1551 | else | |
b817f4fb | 1552 | ac_prog_rejected=no |
daa2886c AJ |
1553 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1554 | for as_dir in $PATH | |
1555 | do | |
1556 | IFS=$as_save_IFS | |
1557 | test -z "$as_dir" && as_dir=. | |
1558 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1559 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1560 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
1561 | ac_prog_rejected=yes | |
1562 | continue | |
1563 | fi | |
1564 | ac_cv_prog_CC="cc" | |
1565 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1566 | break 2 | |
1567 | fi | |
1568 | done | |
f5818d2f AJ |
1569 | done |
1570 | ||
b817f4fb AJ |
1571 | if test $ac_prog_rejected = yes; then |
1572 | # We found a bogon in the path, so make sure we never use it. | |
1573 | set dummy $ac_cv_prog_CC | |
1574 | shift | |
f5818d2f | 1575 | if test $# != 0; then |
b817f4fb AJ |
1576 | # We chose a different compiler from the bogus one. |
1577 | # However, it has the same basename, so the bogon will be chosen | |
1578 | # first if we set CC to just the basename; use the full file name. | |
1579 | shift | |
daa2886c | 1580 | set dummy "$as_dir/$ac_word" ${1+"$@"} |
b817f4fb AJ |
1581 | shift |
1582 | ac_cv_prog_CC="$@" | |
1583 | fi | |
1584 | fi | |
1585 | fi | |
1586 | fi | |
f5818d2f | 1587 | CC=$ac_cv_prog_CC |
b817f4fb | 1588 | if test -n "$CC"; then |
daa2886c | 1589 | echo "$as_me:$LINENO: result: $CC" >&5 |
f5818d2f | 1590 | echo "${ECHO_T}$CC" >&6 |
b817f4fb | 1591 | else |
daa2886c | 1592 | echo "$as_me:$LINENO: result: no" >&5 |
f5818d2f | 1593 | echo "${ECHO_T}no" >&6 |
b817f4fb AJ |
1594 | fi |
1595 | ||
f5818d2f AJ |
1596 | fi |
1597 | if test -z "$CC"; then | |
1598 | if test -n "$ac_tool_prefix"; then | |
1599 | for ac_prog in cl | |
1600 | do | |
1601 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1602 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
daa2886c | 1603 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
f5818d2f AJ |
1604 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1605 | if test "${ac_cv_prog_CC+set}" = set; then | |
1606 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1607 | else | |
1608 | if test -n "$CC"; then | |
18ad24a7 EP |
1609 | ac_cv_prog_CC="$CC" # Let the user override the test. |
1610 | else | |
daa2886c AJ |
1611 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1612 | for as_dir in $PATH | |
1613 | do | |
1614 | IFS=$as_save_IFS | |
1615 | test -z "$as_dir" && as_dir=. | |
1616 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1617 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1618 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
1619 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1620 | break 2 | |
1621 | fi | |
1622 | done | |
f5818d2f AJ |
1623 | done |
1624 | ||
18ad24a7 EP |
1625 | fi |
1626 | fi | |
f5818d2f | 1627 | CC=$ac_cv_prog_CC |
18ad24a7 | 1628 | if test -n "$CC"; then |
daa2886c | 1629 | echo "$as_me:$LINENO: result: $CC" >&5 |
f5818d2f | 1630 | echo "${ECHO_T}$CC" >&6 |
18ad24a7 | 1631 | else |
daa2886c | 1632 | echo "$as_me:$LINENO: result: no" >&5 |
f5818d2f | 1633 | echo "${ECHO_T}no" >&6 |
b817f4fb | 1634 | fi |
e2991ea7 | 1635 | |
f5818d2f AJ |
1636 | test -n "$CC" && break |
1637 | done | |
1638 | fi | |
1639 | if test -z "$CC"; then | |
1640 | ac_ct_CC=$CC | |
1641 | for ac_prog in cl | |
1642 | do | |
1643 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1644 | set dummy $ac_prog; ac_word=$2 | |
daa2886c | 1645 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
f5818d2f AJ |
1646 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1647 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1648 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1649 | else | |
1650 | if test -n "$ac_ct_CC"; then | |
1651 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1652 | else | |
daa2886c AJ |
1653 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1654 | for as_dir in $PATH | |
1655 | do | |
1656 | IFS=$as_save_IFS | |
1657 | test -z "$as_dir" && as_dir=. | |
1658 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1659 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1660 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
1661 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1662 | break 2 | |
1663 | fi | |
1664 | done | |
f5818d2f | 1665 | done |
da0cfb36 | 1666 | |
f5818d2f AJ |
1667 | fi |
1668 | fi | |
1669 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1670 | if test -n "$ac_ct_CC"; then | |
daa2886c | 1671 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
f5818d2f AJ |
1672 | echo "${ECHO_T}$ac_ct_CC" >&6 |
1673 | else | |
daa2886c | 1674 | echo "$as_me:$LINENO: result: no" >&5 |
f5818d2f AJ |
1675 | echo "${ECHO_T}no" >&6 |
1676 | fi | |
da0cfb36 | 1677 | |
f5818d2f AJ |
1678 | test -n "$ac_ct_CC" && break |
1679 | done | |
18ad24a7 | 1680 | |
f5818d2f AJ |
1681 | CC=$ac_ct_CC |
1682 | fi | |
1683 | ||
1684 | fi | |
1685 | ||
daa2886c AJ |
1686 | |
1687 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5 | |
1688 | echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;} | |
f5818d2f AJ |
1689 | { (exit 1); exit 1; }; } |
1690 | ||
1691 | # Provide some information about the compiler. | |
daa2886c | 1692 | echo "$as_me:$LINENO:" \ |
f5818d2f AJ |
1693 | "checking for C compiler version" >&5 |
1694 | ac_compiler=`set X $ac_compile; echo $2` | |
daa2886c | 1695 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
f5818d2f AJ |
1696 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
1697 | ac_status=$? | |
daa2886c | 1698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 1699 | (exit $ac_status); } |
daa2886c | 1700 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
f5818d2f AJ |
1701 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
1702 | ac_status=$? | |
daa2886c | 1703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 1704 | (exit $ac_status); } |
daa2886c | 1705 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
f5818d2f AJ |
1706 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
1707 | ac_status=$? | |
daa2886c | 1708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
1709 | (exit $ac_status); } |
1710 | ||
1711 | cat >conftest.$ac_ext <<_ACEOF | |
daa2886c | 1712 | #line $LINENO "configure" |
da0cfb36 | 1713 | #include "confdefs.h" |
18ad24a7 | 1714 | |
daa2886c AJ |
1715 | #ifdef F77_DUMMY_MAIN |
1716 | # ifdef __cplusplus | |
1717 | extern "C" | |
1718 | # endif | |
1719 | int F77_DUMMY_MAIN() { return 1; } | |
1720 | #endif | |
f5818d2f AJ |
1721 | int |
1722 | main () | |
1723 | { | |
1724 | ||
1725 | ; | |
1726 | return 0; | |
1727 | } | |
1728 | _ACEOF | |
1729 | ac_clean_files_save=$ac_clean_files | |
1730 | ac_clean_files="$ac_clean_files a.out a.exe" | |
1731 | # Try to create an executable without -o first, disregard a.out. | |
1732 | # It will help us diagnose broken compilers, and finding out an intuition | |
1733 | # of exeext. | |
daa2886c | 1734 | echo "$as_me:$LINENO: checking for C compiler default output" >&5 |
f5818d2f AJ |
1735 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 |
1736 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
daa2886c | 1737 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
f5818d2f AJ |
1738 | (eval $ac_link_default) 2>&5 |
1739 | ac_status=$? | |
daa2886c | 1740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
1741 | (exit $ac_status); }; then |
1742 | # Find the output, starting from the most likely. This scheme is | |
1743 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
1744 | # resort. | |
daa2886c AJ |
1745 | |
1746 | # Be careful to initialize this variable, since it used to be cached. | |
1747 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
1748 | ac_cv_exeext= | |
1749 | for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null; | |
f5818d2f AJ |
1750 | ls a.out conftest 2>/dev/null; |
1751 | ls a.* conftest.* 2>/dev/null`; do | |
1752 | case $ac_file in | |
daa2886c | 1753 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;; |
f5818d2f AJ |
1754 | a.out ) # We found the default executable, but exeext='' is most |
1755 | # certainly right. | |
1756 | break;; | |
1757 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1758 | # FIXME: I believe we export ac_cv_exeext for Libtool --akim. | |
1759 | export ac_cv_exeext | |
1760 | break;; | |
1761 | * ) break;; | |
1762 | esac | |
1763 | done | |
1764 | else | |
1765 | echo "$as_me: failed program was:" >&5 | |
1766 | cat conftest.$ac_ext >&5 | |
daa2886c | 1767 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5 |
f5818d2f AJ |
1768 | echo "$as_me: error: C compiler cannot create executables" >&2;} |
1769 | { (exit 77); exit 77; }; } | |
1770 | fi | |
1771 | ||
1772 | ac_exeext=$ac_cv_exeext | |
daa2886c | 1773 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
f5818d2f AJ |
1774 | echo "${ECHO_T}$ac_file" >&6 |
1775 | ||
1776 | # Check the compiler produces executables we can run. If not, either | |
1777 | # the compiler is broken, or we cross compile. | |
daa2886c | 1778 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
f5818d2f AJ |
1779 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
1780 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
1781 | # If not cross compiling, check that we can run a simple program. | |
1782 | if test "$cross_compiling" != yes; then | |
1783 | if { ac_try='./$ac_file' | |
daa2886c | 1784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
1785 | (eval $ac_try) 2>&5 |
1786 | ac_status=$? | |
daa2886c | 1787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
1788 | (exit $ac_status); }; }; then |
1789 | cross_compiling=no | |
7e6ae4ba | 1790 | else |
f5818d2f AJ |
1791 | if test "$cross_compiling" = maybe; then |
1792 | cross_compiling=yes | |
1793 | else | |
daa2886c | 1794 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
f5818d2f AJ |
1795 | If you meant to cross compile, use \`--host'." >&5 |
1796 | echo "$as_me: error: cannot run C compiled programs. | |
1797 | If you meant to cross compile, use \`--host'." >&2;} | |
1798 | { (exit 1); exit 1; }; } | |
1799 | fi | |
7e6ae4ba | 1800 | fi |
f5818d2f | 1801 | fi |
daa2886c | 1802 | echo "$as_me:$LINENO: result: yes" >&5 |
f5818d2f AJ |
1803 | echo "${ECHO_T}yes" >&6 |
1804 | ||
1805 | rm -f a.out a.exe conftest$ac_cv_exeext | |
1806 | ac_clean_files=$ac_clean_files_save | |
1807 | # Check the compiler produces executables we can run. If not, either | |
1808 | # the compiler is broken, or we cross compile. | |
daa2886c | 1809 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
f5818d2f | 1810 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
daa2886c | 1811 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
f5818d2f AJ |
1812 | echo "${ECHO_T}$cross_compiling" >&6 |
1813 | ||
daa2886c AJ |
1814 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
1815 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
1816 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
f5818d2f AJ |
1817 | (eval $ac_link) 2>&5 |
1818 | ac_status=$? | |
daa2886c | 1819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
1820 | (exit $ac_status); }; then |
1821 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
1822 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
1823 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
1824 | # `rm'. | |
1825 | for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do | |
1826 | case $ac_file in | |
1827 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; | |
1828 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1829 | export ac_cv_exeext | |
1830 | break;; | |
1831 | * ) break;; | |
1832 | esac | |
1833 | done | |
da0cfb36 | 1834 | else |
daa2886c AJ |
1835 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5 |
1836 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;} | |
f5818d2f | 1837 | { (exit 1); exit 1; }; } |
da0cfb36 | 1838 | fi |
da0cfb36 | 1839 | |
f5818d2f | 1840 | rm -f conftest$ac_cv_exeext |
daa2886c | 1841 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
f5818d2f | 1842 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
da0cfb36 | 1843 | |
f5818d2f AJ |
1844 | rm -f conftest.$ac_ext |
1845 | EXEEXT=$ac_cv_exeext | |
1846 | ac_exeext=$EXEEXT | |
daa2886c AJ |
1847 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
1848 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
f5818d2f AJ |
1849 | if test "${ac_cv_objext+set}" = set; then |
1850 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
e2991ea7 | 1851 | else |
f5818d2f | 1852 | cat >conftest.$ac_ext <<_ACEOF |
daa2886c | 1853 | #line $LINENO "configure" |
f5818d2f | 1854 | #include "confdefs.h" |
d7d4fdf8 | 1855 | |
daa2886c AJ |
1856 | #ifdef F77_DUMMY_MAIN |
1857 | # ifdef __cplusplus | |
1858 | extern "C" | |
1859 | # endif | |
1860 | int F77_DUMMY_MAIN() { return 1; } | |
1861 | #endif | |
f5818d2f AJ |
1862 | int |
1863 | main () | |
1864 | { | |
da0cfb36 | 1865 | |
f5818d2f AJ |
1866 | ; |
1867 | return 0; | |
1868 | } | |
1869 | _ACEOF | |
1870 | rm -f conftest.o conftest.obj | |
daa2886c | 1871 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
f5818d2f AJ |
1872 | (eval $ac_compile) 2>&5 |
1873 | ac_status=$? | |
daa2886c | 1874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
1875 | (exit $ac_status); }; then |
1876 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
1877 | case $ac_file in | |
1878 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; | |
1879 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
1880 | break;; | |
1881 | esac | |
1882 | done | |
18ad24a7 | 1883 | else |
f5818d2f AJ |
1884 | echo "$as_me: failed program was:" >&5 |
1885 | cat conftest.$ac_ext >&5 | |
daa2886c AJ |
1886 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5 |
1887 | echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;} | |
f5818d2f | 1888 | { (exit 1); exit 1; }; } |
18ad24a7 EP |
1889 | fi |
1890 | ||
f5818d2f AJ |
1891 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
1892 | fi | |
daa2886c | 1893 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
f5818d2f AJ |
1894 | echo "${ECHO_T}$ac_cv_objext" >&6 |
1895 | OBJEXT=$ac_cv_objext | |
1896 | ac_objext=$OBJEXT | |
daa2886c | 1897 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
f5818d2f AJ |
1898 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
1899 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
1900 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
e2991ea7 | 1901 | else |
f5818d2f | 1902 | cat >conftest.$ac_ext <<_ACEOF |
daa2886c | 1903 | #line $LINENO "configure" |
f5818d2f AJ |
1904 | #include "confdefs.h" |
1905 | ||
daa2886c AJ |
1906 | #ifdef F77_DUMMY_MAIN |
1907 | # ifdef __cplusplus | |
1908 | extern "C" | |
1909 | # endif | |
1910 | int F77_DUMMY_MAIN() { return 1; } | |
1911 | #endif | |
f5818d2f AJ |
1912 | int |
1913 | main () | |
1914 | { | |
1915 | #ifndef __GNUC__ | |
1916 | choke me | |
1917 | #endif | |
1918 | ||
1919 | ; | |
1920 | return 0; | |
1921 | } | |
1922 | _ACEOF | |
1923 | rm -f conftest.$ac_objext | |
daa2886c | 1924 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
f5818d2f AJ |
1925 | (eval $ac_compile) 2>&5 |
1926 | ac_status=$? | |
daa2886c | 1927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
1928 | (exit $ac_status); } && |
1929 | { ac_try='test -s conftest.$ac_objext' | |
daa2886c | 1930 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
1931 | (eval $ac_try) 2>&5 |
1932 | ac_status=$? | |
daa2886c | 1933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
1934 | (exit $ac_status); }; }; then |
1935 | ac_compiler_gnu=yes | |
1936 | else | |
1937 | echo "$as_me: failed program was:" >&5 | |
1938 | cat conftest.$ac_ext >&5 | |
1939 | ac_compiler_gnu=no | |
1940 | fi | |
1941 | rm -f conftest.$ac_objext conftest.$ac_ext | |
1942 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
1943 | ||
1944 | fi | |
daa2886c | 1945 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
f5818d2f AJ |
1946 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
1947 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
1948 | ac_test_CFLAGS=${CFLAGS+set} | |
1949 | ac_save_CFLAGS=$CFLAGS | |
1950 | CFLAGS="-g" | |
daa2886c | 1951 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
f5818d2f AJ |
1952 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
1953 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
1954 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1955 | else | |
1956 | cat >conftest.$ac_ext <<_ACEOF | |
daa2886c | 1957 | #line $LINENO "configure" |
f5818d2f AJ |
1958 | #include "confdefs.h" |
1959 | ||
daa2886c AJ |
1960 | #ifdef F77_DUMMY_MAIN |
1961 | # ifdef __cplusplus | |
1962 | extern "C" | |
1963 | # endif | |
1964 | int F77_DUMMY_MAIN() { return 1; } | |
1965 | #endif | |
f5818d2f AJ |
1966 | int |
1967 | main () | |
1968 | { | |
1969 | ||
1970 | ; | |
1971 | return 0; | |
1972 | } | |
1973 | _ACEOF | |
1974 | rm -f conftest.$ac_objext | |
daa2886c | 1975 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
f5818d2f AJ |
1976 | (eval $ac_compile) 2>&5 |
1977 | ac_status=$? | |
daa2886c | 1978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
1979 | (exit $ac_status); } && |
1980 | { ac_try='test -s conftest.$ac_objext' | |
daa2886c | 1981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
1982 | (eval $ac_try) 2>&5 |
1983 | ac_status=$? | |
daa2886c | 1984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 1985 | (exit $ac_status); }; }; then |
7e6ae4ba | 1986 | ac_cv_prog_cc_g=yes |
e2991ea7 | 1987 | else |
f5818d2f AJ |
1988 | echo "$as_me: failed program was:" >&5 |
1989 | cat conftest.$ac_ext >&5 | |
1990 | ac_cv_prog_cc_g=no | |
e2991ea7 | 1991 | fi |
f5818d2f | 1992 | rm -f conftest.$ac_objext conftest.$ac_ext |
e2991ea7 | 1993 | fi |
daa2886c | 1994 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
f5818d2f | 1995 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
18ad24a7 | 1996 | if test "$ac_test_CFLAGS" = set; then |
f5818d2f | 1997 | CFLAGS=$ac_save_CFLAGS |
18ad24a7 EP |
1998 | elif test $ac_cv_prog_cc_g = yes; then |
1999 | if test "$GCC" = yes; then | |
da0cfb36 AJ |
2000 | CFLAGS="-g -O2" |
2001 | else | |
18ad24a7 | 2002 | CFLAGS="-g" |
e2991ea7 AJ |
2003 | fi |
2004 | else | |
18ad24a7 EP |
2005 | if test "$GCC" = yes; then |
2006 | CFLAGS="-O2" | |
2007 | else | |
2008 | CFLAGS= | |
2009 | fi | |
e2991ea7 | 2010 | fi |
f5818d2f AJ |
2011 | # Some people use a C++ compiler to compile C. Since we use `exit', |
2012 | # in C++ we need to declare it. In case someone uses the same compiler | |
2013 | # for both compiling C and C++ we need to have the C++ compiler decide | |
2014 | # the declaration of exit, since it's the most demanding environment. | |
2015 | cat >conftest.$ac_ext <<_ACEOF | |
2016 | #ifndef __cplusplus | |
2017 | choke me | |
2018 | #endif | |
2019 | _ACEOF | |
2020 | rm -f conftest.$ac_objext | |
daa2886c | 2021 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
f5818d2f AJ |
2022 | (eval $ac_compile) 2>&5 |
2023 | ac_status=$? | |
daa2886c | 2024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
2025 | (exit $ac_status); } && |
2026 | { ac_try='test -s conftest.$ac_objext' | |
daa2886c | 2027 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
2028 | (eval $ac_try) 2>&5 |
2029 | ac_status=$? | |
daa2886c | 2030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
2031 | (exit $ac_status); }; }; then |
2032 | for ac_declaration in \ | |
2033 | ''\ | |
2034 | '#include <stdlib.h>' \ | |
2035 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2036 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2037 | 'extern "C" void exit (int) throw ();' \ | |
2038 | 'extern "C" void exit (int);' \ | |
2039 | 'void exit (int);' | |
2040 | do | |
2041 | cat >conftest.$ac_ext <<_ACEOF | |
daa2886c | 2042 | #line $LINENO "configure" |
f5818d2f AJ |
2043 | #include "confdefs.h" |
2044 | #include <stdlib.h> | |
2045 | $ac_declaration | |
daa2886c AJ |
2046 | #ifdef F77_DUMMY_MAIN |
2047 | # ifdef __cplusplus | |
2048 | extern "C" | |
2049 | # endif | |
2050 | int F77_DUMMY_MAIN() { return 1; } | |
2051 | #endif | |
f5818d2f AJ |
2052 | int |
2053 | main () | |
2054 | { | |
2055 | exit (42); | |
2056 | ; | |
2057 | return 0; | |
2058 | } | |
2059 | _ACEOF | |
2060 | rm -f conftest.$ac_objext | |
daa2886c | 2061 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
f5818d2f AJ |
2062 | (eval $ac_compile) 2>&5 |
2063 | ac_status=$? | |
daa2886c | 2064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
2065 | (exit $ac_status); } && |
2066 | { ac_try='test -s conftest.$ac_objext' | |
daa2886c | 2067 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
2068 | (eval $ac_try) 2>&5 |
2069 | ac_status=$? | |
daa2886c | 2070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
2071 | (exit $ac_status); }; }; then |
2072 | : | |
2073 | else | |
2074 | echo "$as_me: failed program was:" >&5 | |
2075 | cat conftest.$ac_ext >&5 | |
2076 | continue | |
2077 | fi | |
2078 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2079 | cat >conftest.$ac_ext <<_ACEOF | |
daa2886c | 2080 | #line $LINENO "configure" |
f5818d2f AJ |
2081 | #include "confdefs.h" |
2082 | $ac_declaration | |
daa2886c AJ |
2083 | #ifdef F77_DUMMY_MAIN |
2084 | # ifdef __cplusplus | |
2085 | extern "C" | |
2086 | # endif | |
2087 | int F77_DUMMY_MAIN() { return 1; } | |
2088 | #endif | |
f5818d2f AJ |
2089 | int |
2090 | main () | |
2091 | { | |
2092 | exit (42); | |
2093 | ; | |
2094 | return 0; | |
2095 | } | |
2096 | _ACEOF | |
2097 | rm -f conftest.$ac_objext | |
daa2886c | 2098 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
f5818d2f AJ |
2099 | (eval $ac_compile) 2>&5 |
2100 | ac_status=$? | |
daa2886c | 2101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
2102 | (exit $ac_status); } && |
2103 | { ac_try='test -s conftest.$ac_objext' | |
daa2886c | 2104 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
2105 | (eval $ac_try) 2>&5 |
2106 | ac_status=$? | |
daa2886c | 2107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
2108 | (exit $ac_status); }; }; then |
2109 | break | |
2110 | else | |
2111 | echo "$as_me: failed program was:" >&5 | |
2112 | cat conftest.$ac_ext >&5 | |
2113 | fi | |
2114 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2115 | done | |
2116 | rm -f conftest* | |
2117 | if test -n "$ac_declaration"; then | |
2118 | echo '#ifdef __cplusplus' >>confdefs.h | |
2119 | echo $ac_declaration >>confdefs.h | |
2120 | echo '#endif' >>confdefs.h | |
2121 | fi | |
2122 | ||
2123 | else | |
2124 | echo "$as_me: failed program was:" >&5 | |
2125 | cat conftest.$ac_ext >&5 | |
2126 | fi | |
2127 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2128 | ac_ext=c | |
2129 | ac_cpp='$CPP $CPPFLAGS' | |
2130 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2131 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2132 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
e2991ea7 | 2133 | |
f5818d2f AJ |
2134 | ac_ext=c |
2135 | ac_cpp='$CPP $CPPFLAGS' | |
2136 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2137 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2138 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
daa2886c | 2139 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
f5818d2f | 2140 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
e2991ea7 AJ |
2141 | # On Suns, sometimes $CPP names a directory. |
2142 | if test -n "$CPP" && test -d "$CPP"; then | |
2143 | CPP= | |
2144 | fi | |
2145 | if test -z "$CPP"; then | |
f5818d2f AJ |
2146 | if test "${ac_cv_prog_CPP+set}" = set; then |
2147 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2148 | else | |
2149 | # Double quotes because CPP needs to be expanded | |
2150 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
2151 | do | |
2152 | ac_preproc_ok=false | |
2153 | for ac_c_preproc_warn_flag in '' yes | |
2154 | do | |
2155 | # Use a header file that comes with gcc, so configuring glibc | |
2156 | # with a fresh cross-compiler works. | |
e2991ea7 | 2157 | # On the NeXT, cc -E runs the code through the compiler's parser, |
f5818d2f AJ |
2158 | # not just through cpp. "Syntax error" is here to catch this case. |
2159 | cat >conftest.$ac_ext <<_ACEOF | |
daa2886c | 2160 | #line $LINENO "configure" |
e2991ea7 AJ |
2161 | #include "confdefs.h" |
2162 | #include <assert.h> | |
f5818d2f AJ |
2163 | Syntax error |
2164 | _ACEOF | |
daa2886c | 2165 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
f5818d2f AJ |
2166 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
2167 | ac_status=$? | |
2168 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
2169 | rm -f conftest.er1 | |
2170 | cat conftest.err >&5 | |
daa2886c | 2171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
2172 | (exit $ac_status); } >/dev/null; then |
2173 | if test -s conftest.err; then | |
2174 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2175 | else | |
2176 | ac_cpp_err= | |
2177 | fi | |
2178 | else | |
2179 | ac_cpp_err=yes | |
2180 | fi | |
2181 | if test -z "$ac_cpp_err"; then | |
e2991ea7 AJ |
2182 | : |
2183 | else | |
f5818d2f | 2184 | echo "$as_me: failed program was:" >&5 |
da0cfb36 | 2185 | cat conftest.$ac_ext >&5 |
f5818d2f AJ |
2186 | # Broken: fails on valid input. |
2187 | continue | |
2188 | fi | |
2189 | rm -f conftest.err conftest.$ac_ext | |
2190 | ||
2191 | # OK, works on sane cases. Now check whether non-existent headers | |
2192 | # can be detected and how. | |
2193 | cat >conftest.$ac_ext <<_ACEOF | |
daa2886c | 2194 | #line $LINENO "configure" |
e2991ea7 | 2195 | #include "confdefs.h" |
f5818d2f AJ |
2196 | #include <ac_nonexistent.h> |
2197 | _ACEOF | |
daa2886c | 2198 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
f5818d2f AJ |
2199 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
2200 | ac_status=$? | |
2201 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
2202 | rm -f conftest.er1 | |
2203 | cat conftest.err >&5 | |
daa2886c | 2204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
2205 | (exit $ac_status); } >/dev/null; then |
2206 | if test -s conftest.err; then | |
2207 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2208 | else | |
2209 | ac_cpp_err= | |
2210 | fi | |
2211 | else | |
2212 | ac_cpp_err=yes | |
2213 | fi | |
2214 | if test -z "$ac_cpp_err"; then | |
2215 | # Broken: success on invalid input. | |
2216 | continue | |
18ad24a7 | 2217 | else |
f5818d2f | 2218 | echo "$as_me: failed program was:" >&5 |
18ad24a7 | 2219 | cat conftest.$ac_ext >&5 |
f5818d2f AJ |
2220 | # Passes both tests. |
2221 | ac_preproc_ok=: | |
2222 | break | |
2223 | fi | |
2224 | rm -f conftest.err conftest.$ac_ext | |
2225 | ||
2226 | done | |
2227 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
2228 | rm -f conftest.err conftest.$ac_ext | |
2229 | if $ac_preproc_ok; then | |
2230 | break | |
2231 | fi | |
2232 | ||
2233 | done | |
2234 | ac_cv_prog_CPP=$CPP | |
2235 | ||
2236 | fi | |
2237 | CPP=$ac_cv_prog_CPP | |
2238 | else | |
2239 | ac_cv_prog_CPP=$CPP | |
2240 | fi | |
daa2886c | 2241 | echo "$as_me:$LINENO: result: $CPP" >&5 |
f5818d2f AJ |
2242 | echo "${ECHO_T}$CPP" >&6 |
2243 | ac_preproc_ok=false | |
2244 | for ac_c_preproc_warn_flag in '' yes | |
2245 | do | |
2246 | # Use a header file that comes with gcc, so configuring glibc | |
2247 | # with a fresh cross-compiler works. | |
2248 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
2249 | # not just through cpp. "Syntax error" is here to catch this case. | |
2250 | cat >conftest.$ac_ext <<_ACEOF | |
daa2886c | 2251 | #line $LINENO "configure" |
18ad24a7 EP |
2252 | #include "confdefs.h" |
2253 | #include <assert.h> | |
f5818d2f AJ |
2254 | Syntax error |
2255 | _ACEOF | |
daa2886c | 2256 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
f5818d2f AJ |
2257 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
2258 | ac_status=$? | |
2259 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
2260 | rm -f conftest.er1 | |
2261 | cat conftest.err >&5 | |
daa2886c | 2262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
2263 | (exit $ac_status); } >/dev/null; then |
2264 | if test -s conftest.err; then | |
2265 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2266 | else | |
2267 | ac_cpp_err= | |
2268 | fi | |
2269 | else | |
2270 | ac_cpp_err=yes | |
2271 | fi | |
2272 | if test -z "$ac_cpp_err"; then | |
e2991ea7 AJ |
2273 | : |
2274 | else | |
f5818d2f | 2275 | echo "$as_me: failed program was:" >&5 |
da0cfb36 | 2276 | cat conftest.$ac_ext >&5 |
f5818d2f AJ |
2277 | # Broken: fails on valid input. |
2278 | continue | |
e2991ea7 | 2279 | fi |
f5818d2f AJ |
2280 | rm -f conftest.err conftest.$ac_ext |
2281 | ||
2282 | # OK, works on sane cases. Now check whether non-existent headers | |
2283 | # can be detected and how. | |
2284 | cat >conftest.$ac_ext <<_ACEOF | |
daa2886c | 2285 | #line $LINENO "configure" |
f5818d2f AJ |
2286 | #include "confdefs.h" |
2287 | #include <ac_nonexistent.h> | |
2288 | _ACEOF | |
daa2886c | 2289 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
f5818d2f AJ |
2290 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
2291 | ac_status=$? | |
2292 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
2293 | rm -f conftest.er1 | |
2294 | cat conftest.err >&5 | |
daa2886c | 2295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
2296 | (exit $ac_status); } >/dev/null; then |
2297 | if test -s conftest.err; then | |
2298 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2299 | else | |
2300 | ac_cpp_err= | |
2301 | fi | |
2302 | else | |
2303 | ac_cpp_err=yes | |
18ad24a7 | 2304 | fi |
f5818d2f AJ |
2305 | if test -z "$ac_cpp_err"; then |
2306 | # Broken: success on invalid input. | |
2307 | continue | |
2308 | else | |
2309 | echo "$as_me: failed program was:" >&5 | |
2310 | cat conftest.$ac_ext >&5 | |
2311 | # Passes both tests. | |
2312 | ac_preproc_ok=: | |
2313 | break | |
e2991ea7 | 2314 | fi |
f5818d2f AJ |
2315 | rm -f conftest.err conftest.$ac_ext |
2316 | ||
2317 | done | |
2318 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
2319 | rm -f conftest.err conftest.$ac_ext | |
2320 | if $ac_preproc_ok; then | |
2321 | : | |
e2991ea7 | 2322 | else |
daa2886c | 2323 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5 |
f5818d2f AJ |
2324 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} |
2325 | { (exit 1); exit 1; }; } | |
e2991ea7 | 2326 | fi |
e2991ea7 | 2327 | |
f5818d2f AJ |
2328 | ac_ext=c |
2329 | ac_cpp='$CPP $CPPFLAGS' | |
2330 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2331 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2332 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2333 | ||
daa2886c | 2334 | |
fc01b729 AJ |
2335 | echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5 |
2336 | echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6 | |
2337 | if test "${wine_cv_toolsdir+set}" = set; then | |
2338 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2339 | else | |
2340 | if test -z "$with_wine_tools"; then | |
2341 | if test "$cross_compiling" = "yes"; then | |
2342 | { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5 | |
2343 | echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;} | |
2344 | { (exit 1); exit 1; }; } | |
2345 | else | |
2346 | wine_cv_toolsdir="\$(TOPOBJDIR)" | |
2347 | fi | |
2348 | elif test -d "$with_wine_tools/tools/winebuild"; then | |
2349 | case $with_wine_tools in | |
2350 | /*) wine_cv_toolsdir="$with_wine_tools" ;; | |
2351 | *) wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;; | |
2352 | esac | |
2353 | else | |
2354 | { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5 | |
2355 | echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;} | |
2356 | { (exit 1); exit 1; }; } | |
2357 | fi | |
2358 | fi | |
2359 | echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5 | |
2360 | echo "${ECHO_T}$wine_cv_toolsdir" >&6 | |
2361 | TOOLSDIR=$wine_cv_toolsdir | |
2362 | ||
2363 | ||
2364 | ||
daa2886c AJ |
2365 | |
2366 | echo "$as_me:$LINENO: checking for X" >&5 | |
f5818d2f | 2367 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
e2991ea7 | 2368 | |
daa2886c | 2369 | |
e2991ea7 | 2370 | # Check whether --with-x or --without-x was given. |
d7d4fdf8 AJ |
2371 | if test "${with_x+set}" = set; then |
2372 | withval="$with_x" | |
e2991ea7 | 2373 | |
f5818d2f | 2374 | fi; |
b817f4fb | 2375 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
e2991ea7 | 2376 | if test "x$with_x" = xno; then |
b817f4fb AJ |
2377 | # The user explicitly disabled X. |
2378 | have_x=disabled | |
e2991ea7 AJ |
2379 | else |
2380 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
b817f4fb AJ |
2381 | # Both variables are already set. |
2382 | have_x=yes | |
e2991ea7 | 2383 | else |
f5818d2f AJ |
2384 | if test "${ac_cv_have_x+set}" = set; then |
2385 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
e2991ea7 AJ |
2386 | else |
2387 | # One or both of the vars are not set, and there is no cached value. | |
f5818d2f AJ |
2388 | ac_x_includes=no ac_x_libraries=no |
2389 | rm -fr conftest.dir | |
2390 | if mkdir conftest.dir; then | |
2391 | cd conftest.dir | |
e2991ea7 | 2392 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
daa2886c | 2393 | cat >Imakefile <<'_ACEOF' |
e2991ea7 AJ |
2394 | acfindx: |
2395 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
daa2886c | 2396 | _ACEOF |
e2991ea7 | 2397 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
e2991ea7 | 2398 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
d7d4fdf8 | 2399 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` |
e2991ea7 AJ |
2400 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
2401 | for ac_extension in a so sl; do | |
2402 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
f5818d2f | 2403 | test -f $ac_im_libdir/libX11.$ac_extension; then |
e2991ea7 AJ |
2404 | ac_im_usrlibdir=$ac_im_libdir; break |
2405 | fi | |
2406 | done | |
da0cfb36 AJ |
2407 | # Screen out bogus values from the imake configuration. They are |
2408 | # bogus both because they are the default anyway, and because | |
2409 | # using them would break gcc on systems where it needs fixed includes. | |
f5818d2f | 2410 | case $ac_im_incroot in |
e2991ea7 | 2411 | /usr/include) ;; |
f5818d2f | 2412 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
e2991ea7 | 2413 | esac |
f5818d2f | 2414 | case $ac_im_usrlibdir in |
e2991ea7 | 2415 | /usr/lib | /lib) ;; |
f5818d2f | 2416 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
e2991ea7 AJ |
2417 | esac |
2418 | fi | |
2419 | cd .. | |
f5818d2f | 2420 | rm -fr conftest.dir |
e2991ea7 AJ |
2421 | fi |
2422 | ||
f5818d2f AJ |
2423 | # Standard set of common directories for X headers. |
2424 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
2425 | ac_x_header_dirs=' | |
2426 | /usr/X11/include | |
2427 | /usr/X11R6/include | |
2428 | /usr/X11R5/include | |
2429 | /usr/X11R4/include | |
2430 | ||
2431 | /usr/include/X11 | |
2432 | /usr/include/X11R6 | |
2433 | /usr/include/X11R5 | |
2434 | /usr/include/X11R4 | |
2435 | ||
2436 | /usr/local/X11/include | |
2437 | /usr/local/X11R6/include | |
2438 | /usr/local/X11R5/include | |
2439 | /usr/local/X11R4/include | |
2440 | ||
2441 | /usr/local/include/X11 | |
2442 | /usr/local/include/X11R6 | |
2443 | /usr/local/include/X11R5 | |
2444 | /usr/local/include/X11R4 | |
2445 | ||
2446 | /usr/X386/include | |
2447 | /usr/x386/include | |
2448 | /usr/XFree86/include/X11 | |
2449 | ||
2450 | /usr/include | |
2451 | /usr/local/include | |
2452 | /usr/unsupported/include | |
2453 | /usr/athena/include | |
2454 | /usr/local/x11r5/include | |
2455 | /usr/lpp/Xamples/include | |
2456 | ||
2457 | /usr/openwin/include | |
2458 | /usr/openwin/share/include' | |
2459 | ||
2460 | if test "$ac_x_includes" = no; then | |
2461 | # Guess where to find include files, by looking for Intrinsic.h. | |
b817f4fb | 2462 | # First, try using that file with no special directory specified. |
f5818d2f | 2463 | cat >conftest.$ac_ext <<_ACEOF |
daa2886c | 2464 | #line $LINENO "configure" |
e2991ea7 | 2465 | #include "confdefs.h" |
f5818d2f AJ |
2466 | #include <X11/Intrinsic.h> |
2467 | _ACEOF | |
daa2886c | 2468 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
f5818d2f AJ |
2469 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
2470 | ac_status=$? | |
2471 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
2472 | rm -f conftest.er1 | |
2473 | cat conftest.err >&5 | |
daa2886c | 2474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
2475 | (exit $ac_status); } >/dev/null; then |
2476 | if test -s conftest.err; then | |
2477 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2478 | else | |
2479 | ac_cpp_err= | |
2480 | fi | |
2481 | else | |
2482 | ac_cpp_err=yes | |
2483 | fi | |
2484 | if test -z "$ac_cpp_err"; then | |
b817f4fb AJ |
2485 | # We can compile using X headers with no special include directory. |
2486 | ac_x_includes= | |
e2991ea7 | 2487 | else |
f5818d2f | 2488 | echo "$as_me: failed program was:" >&5 |
da0cfb36 | 2489 | cat conftest.$ac_ext >&5 |
f5818d2f AJ |
2490 | for ac_dir in $ac_x_header_dirs; do |
2491 | if test -r "$ac_dir/X11/Intrinsic.h"; then | |
2492 | ac_x_includes=$ac_dir | |
2493 | break | |
2494 | fi | |
2495 | done | |
e2991ea7 | 2496 | fi |
f5818d2f AJ |
2497 | rm -f conftest.err conftest.$ac_ext |
2498 | fi # $ac_x_includes = no | |
b817f4fb | 2499 | |
f5818d2f | 2500 | if test "$ac_x_libraries" = no; then |
b817f4fb | 2501 | # Check for the libraries. |
b817f4fb AJ |
2502 | # See if we find them without any special options. |
2503 | # Don't add to $LIBS permanently. | |
f5818d2f AJ |
2504 | ac_save_LIBS=$LIBS |
2505 | LIBS="-lXt $LIBS" | |
2506 | cat >conftest.$ac_ext <<_ACEOF | |
daa2886c | 2507 | #line $LINENO "configure" |
e2991ea7 | 2508 | #include "confdefs.h" |
f5818d2f | 2509 | #include <X11/Intrinsic.h> |
daa2886c AJ |
2510 | #ifdef F77_DUMMY_MAIN |
2511 | # ifdef __cplusplus | |
2512 | extern "C" | |
2513 | # endif | |
2514 | int F77_DUMMY_MAIN() { return 1; } | |
2515 | #endif | |
f5818d2f AJ |
2516 | int |
2517 | main () | |
2518 | { | |
2519 | XtMalloc (0) | |
2520 | ; | |
2521 | return 0; | |
2522 | } | |
2523 | _ACEOF | |
2524 | rm -f conftest.$ac_objext conftest$ac_exeext | |
daa2886c | 2525 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f5818d2f AJ |
2526 | (eval $ac_link) 2>&5 |
2527 | ac_status=$? | |
daa2886c | 2528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
2529 | (exit $ac_status); } && |
2530 | { ac_try='test -s conftest$ac_exeext' | |
daa2886c | 2531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
2532 | (eval $ac_try) 2>&5 |
2533 | ac_status=$? | |
daa2886c | 2534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
2535 | (exit $ac_status); }; }; then |
2536 | LIBS=$ac_save_LIBS | |
b817f4fb AJ |
2537 | # We can link X programs with no special library path. |
2538 | ac_x_libraries= | |
e2991ea7 | 2539 | else |
f5818d2f AJ |
2540 | echo "$as_me: failed program was:" >&5 |
2541 | cat conftest.$ac_ext >&5 | |
2542 | LIBS=$ac_save_LIBS | |
2543 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
e2991ea7 | 2544 | do |
f5818d2f | 2545 | # Don't even attempt the hair of trying to link an X program! |
e2991ea7 | 2546 | for ac_extension in a so sl; do |
f5818d2f | 2547 | if test -r $ac_dir/libXt.$ac_extension; then |
b817f4fb | 2548 | ac_x_libraries=$ac_dir |
e2991ea7 AJ |
2549 | break 2 |
2550 | fi | |
2551 | done | |
2552 | done | |
2553 | fi | |
f5818d2f AJ |
2554 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
2555 | fi # $ac_x_libraries = no | |
b817f4fb | 2556 | |
f5818d2f | 2557 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then |
b817f4fb AJ |
2558 | # Didn't find X anywhere. Cache the known absence of X. |
2559 | ac_cv_have_x="have_x=no" | |
e2991ea7 | 2560 | else |
b817f4fb AJ |
2561 | # Record where we found X for the cache. |
2562 | ac_cv_have_x="have_x=yes \ | |
2563 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
e2991ea7 AJ |
2564 | fi |
2565 | fi | |
f5818d2f | 2566 | |
e2991ea7 | 2567 | fi |
b817f4fb | 2568 | eval "$ac_cv_have_x" |
e2991ea7 AJ |
2569 | fi # $with_x != no |
2570 | ||
b817f4fb | 2571 | if test "$have_x" != yes; then |
daa2886c | 2572 | echo "$as_me:$LINENO: result: $have_x" >&5 |
f5818d2f | 2573 | echo "${ECHO_T}$have_x" >&6 |
b817f4fb | 2574 | no_x=yes |
e2991ea7 | 2575 | else |
b817f4fb | 2576 | # If each of the values was on the command line, it overrides each guess. |
e2991ea7 AJ |
2577 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
2578 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
b817f4fb AJ |
2579 | # Update the cache value to reflect the command line values. |
2580 | ac_cv_have_x="have_x=yes \ | |
2581 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
daa2886c | 2582 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
f5818d2f | 2583 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 |
e2991ea7 AJ |
2584 | fi |
2585 | ||
b817f4fb | 2586 | if test "$no_x" = yes; then |
ff8331ea | 2587 | # Not all programs may use this symbol, but it does not hurt to define it. |
f5818d2f | 2588 | |
daa2886c | 2589 | cat >>confdefs.h <<\_ACEOF |
da0cfb36 | 2590 | #define X_DISPLAY_MISSING 1 |
daa2886c | 2591 | _ACEOF |
da0cfb36 AJ |
2592 | |
2593 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
ff8331ea AJ |
2594 | else |
2595 | if test -n "$x_includes"; then | |
2596 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
2597 | fi | |
2598 | ||
ff8331ea AJ |
2599 | # It would also be nice to do this for all -L options, not just this one. |
2600 | if test -n "$x_libraries"; then | |
2601 | X_LIBS="$X_LIBS -L$x_libraries" | |
da0cfb36 AJ |
2602 | # For Solaris; some versions of Sun CC require a space after -R and |
2603 | # others require no space. Words are not sufficient . . . . | |
f5818d2f | 2604 | case `(uname -sr) 2>/dev/null` in |
da0cfb36 | 2605 | "SunOS 5"*) |
daa2886c | 2606 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 |
f5818d2f AJ |
2607 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 |
2608 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | |
2609 | cat >conftest.$ac_ext <<_ACEOF | |
daa2886c | 2610 | #line $LINENO "configure" |
ff8331ea AJ |
2611 | #include "confdefs.h" |
2612 | ||
daa2886c AJ |
2613 | #ifdef F77_DUMMY_MAIN |
2614 | # ifdef __cplusplus | |
2615 | extern "C" | |
2616 | # endif | |
2617 | int F77_DUMMY_MAIN() { return 1; } | |
2618 | #endif | |
f5818d2f AJ |
2619 | int |
2620 | main () | |
2621 | { | |
da0cfb36 | 2622 | |
f5818d2f AJ |
2623 | ; |
2624 | return 0; | |
2625 | } | |
2626 | _ACEOF | |
2627 | rm -f conftest.$ac_objext conftest$ac_exeext | |
daa2886c | 2628 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f5818d2f AJ |
2629 | (eval $ac_link) 2>&5 |
2630 | ac_status=$? | |
daa2886c | 2631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
2632 | (exit $ac_status); } && |
2633 | { ac_try='test -s conftest$ac_exeext' | |
daa2886c | 2634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
2635 | (eval $ac_try) 2>&5 |
2636 | ac_status=$? | |
daa2886c | 2637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 2638 | (exit $ac_status); }; }; then |
da0cfb36 | 2639 | ac_R_nospace=yes |
ff8331ea | 2640 | else |
f5818d2f AJ |
2641 | echo "$as_me: failed program was:" >&5 |
2642 | cat conftest.$ac_ext >&5 | |
2643 | ac_R_nospace=no | |
ff8331ea | 2644 | fi |
f5818d2f | 2645 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
da0cfb36 | 2646 | if test $ac_R_nospace = yes; then |
daa2886c | 2647 | echo "$as_me:$LINENO: result: no" >&5 |
f5818d2f | 2648 | echo "${ECHO_T}no" >&6 |
da0cfb36 AJ |
2649 | X_LIBS="$X_LIBS -R$x_libraries" |
2650 | else | |
2651 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
f5818d2f | 2652 | cat >conftest.$ac_ext <<_ACEOF |
daa2886c | 2653 | #line $LINENO "configure" |
da0cfb36 AJ |
2654 | #include "confdefs.h" |
2655 | ||
daa2886c AJ |
2656 | #ifdef F77_DUMMY_MAIN |
2657 | # ifdef __cplusplus | |
2658 | extern "C" | |
2659 | # endif | |
2660 | int F77_DUMMY_MAIN() { return 1; } | |
2661 | #endif | |
f5818d2f AJ |
2662 | int |
2663 | main () | |
2664 | { | |
da0cfb36 | 2665 | |
f5818d2f AJ |
2666 | ; |
2667 | return 0; | |
2668 | } | |
2669 | _ACEOF | |
2670 | rm -f conftest.$ac_objext conftest$ac_exeext | |
daa2886c | 2671 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f5818d2f AJ |
2672 | (eval $ac_link) 2>&5 |
2673 | ac_status=$? | |
daa2886c | 2674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
2675 | (exit $ac_status); } && |
2676 | { ac_try='test -s conftest$ac_exeext' | |
daa2886c | 2677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
2678 | (eval $ac_try) 2>&5 |
2679 | ac_status=$? | |
daa2886c | 2680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 2681 | (exit $ac_status); }; }; then |
da0cfb36 | 2682 | ac_R_space=yes |
ff8331ea | 2683 | else |
f5818d2f AJ |
2684 | echo "$as_me: failed program was:" >&5 |
2685 | cat conftest.$ac_ext >&5 | |
2686 | ac_R_space=no | |
ff8331ea | 2687 | fi |
f5818d2f | 2688 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
da0cfb36 | 2689 | if test $ac_R_space = yes; then |
daa2886c | 2690 | echo "$as_me:$LINENO: result: yes" >&5 |
f5818d2f | 2691 | echo "${ECHO_T}yes" >&6 |
da0cfb36 AJ |
2692 | X_LIBS="$X_LIBS -R $x_libraries" |
2693 | else | |
daa2886c | 2694 | echo "$as_me:$LINENO: result: neither works" >&5 |
f5818d2f | 2695 | echo "${ECHO_T}neither works" >&6 |
da0cfb36 AJ |
2696 | fi |
2697 | fi | |
f5818d2f | 2698 | LIBS=$ac_xsave_LIBS |
da0cfb36 AJ |
2699 | esac |
2700 | fi | |
ff8331ea AJ |
2701 | |
2702 | # Check for system-dependent libraries X programs must link with. | |
da0cfb36 AJ |
2703 | # Do this before checking for the system-independent R6 libraries |
2704 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
ff8331ea AJ |
2705 | |
2706 | if test "$ISC" = yes; then | |
2707 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
2708 | else | |
f5818d2f AJ |
2709 | # Martyn Johnson says this is needed for Ultrix, if the X |
2710 | # libraries were built with DECnet support. And Karl Berry says | |
ff8331ea | 2711 | # the Alpha needs dnet_stub (dnet does not exist). |
f5818d2f AJ |
2712 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
2713 | cat >conftest.$ac_ext <<_ACEOF | |
daa2886c | 2714 | #line $LINENO "configure" |
ff8331ea | 2715 | #include "confdefs.h" |
f5818d2f | 2716 | |
59730ae1 | 2717 | /* Override any gcc2 internal prototype to avoid an error. */ |
f5818d2f AJ |
2718 | #ifdef __cplusplus |
2719 | extern "C" | |
2720 | #endif | |
e2bfa4c7 | 2721 | /* We use char because int might match the return type of a gcc2 |
f5818d2f AJ |
2722 | builtin and then its argument prototype would still apply. */ |
2723 | char XOpenDisplay (); | |
daa2886c AJ |
2724 | #ifdef F77_DUMMY_MAIN |
2725 | # ifdef __cplusplus | |
2726 | extern "C" | |
2727 | # endif | |
2728 | int F77_DUMMY_MAIN() { return 1; } | |
2729 | #endif | |
f5818d2f AJ |
2730 | int |
2731 | main () | |
2732 | { | |
2733 | XOpenDisplay (); | |
2734 | ; | |
2735 | return 0; | |
2736 | } | |
2737 | _ACEOF | |
2738 | rm -f conftest.$ac_objext conftest$ac_exeext | |
daa2886c | 2739 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f5818d2f AJ |
2740 | (eval $ac_link) 2>&5 |
2741 | ac_status=$? | |
daa2886c | 2742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
2743 | (exit $ac_status); } && |
2744 | { ac_try='test -s conftest$ac_exeext' | |
daa2886c | 2745 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
2746 | (eval $ac_try) 2>&5 |
2747 | ac_status=$? | |
daa2886c | 2748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
2749 | (exit $ac_status); }; }; then |
2750 | : | |
ff8331ea | 2751 | else |
f5818d2f AJ |
2752 | echo "$as_me: failed program was:" >&5 |
2753 | cat conftest.$ac_ext >&5 | |
daa2886c | 2754 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 |
f5818d2f AJ |
2755 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 |
2756 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
2757 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2758 | else | |
2759 | ac_check_lib_save_LIBS=$LIBS | |
2760 | LIBS="-ldnet $LIBS" | |
2761 | cat >conftest.$ac_ext <<_ACEOF | |
daa2886c | 2762 | #line $LINENO "configure" |
f5818d2f | 2763 | #include "confdefs.h" |
ff8331ea | 2764 | |
f5818d2f AJ |
2765 | /* Override any gcc2 internal prototype to avoid an error. */ |
2766 | #ifdef __cplusplus | |
2767 | extern "C" | |
2768 | #endif | |
2769 | /* We use char because int might match the return type of a gcc2 | |
2770 | builtin and then its argument prototype would still apply. */ | |
2771 | char dnet_ntoa (); | |
daa2886c AJ |
2772 | #ifdef F77_DUMMY_MAIN |
2773 | # ifdef __cplusplus | |
2774 | extern "C" | |
2775 | # endif | |
2776 | int F77_DUMMY_MAIN() { return 1; } | |
2777 | #endif | |
f5818d2f AJ |
2778 | int |
2779 | main () | |
2780 | { | |
2781 | dnet_ntoa (); | |
2782 | ; | |
2783 | return 0; | |
2784 | } | |
2785 | _ACEOF | |
2786 | rm -f conftest.$ac_objext conftest$ac_exeext | |
daa2886c | 2787 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f5818d2f AJ |
2788 | (eval $ac_link) 2>&5 |
2789 | ac_status=$? | |
daa2886c | 2790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
2791 | (exit $ac_status); } && |
2792 | { ac_try='test -s conftest$ac_exeext' | |
daa2886c | 2793 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
2794 | (eval $ac_try) 2>&5 |
2795 | ac_status=$? | |
daa2886c | 2796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
2797 | (exit $ac_status); }; }; then |
2798 | ac_cv_lib_dnet_dnet_ntoa=yes | |
2799 | else | |
2800 | echo "$as_me: failed program was:" >&5 | |
2801 | cat conftest.$ac_ext >&5 | |
2802 | ac_cv_lib_dnet_dnet_ntoa=no | |
2803 | fi | |
2804 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
2805 | LIBS=$ac_check_lib_save_LIBS | |
2806 | fi | |
daa2886c | 2807 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 |
f5818d2f AJ |
2808 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 |
2809 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
ff8331ea | 2810 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
ff8331ea AJ |
2811 | fi |
2812 | ||
59730ae1 | 2813 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
daa2886c | 2814 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 |
f5818d2f AJ |
2815 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 |
2816 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then | |
2817 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ff8331ea | 2818 | else |
f5818d2f | 2819 | ac_check_lib_save_LIBS=$LIBS |
ff8331ea | 2820 | LIBS="-ldnet_stub $LIBS" |
f5818d2f | 2821 | cat >conftest.$ac_ext <<_ACEOF |
daa2886c | 2822 | #line $LINENO "configure" |
ff8331ea | 2823 | #include "confdefs.h" |
f5818d2f | 2824 | |
59730ae1 | 2825 | /* Override any gcc2 internal prototype to avoid an error. */ |
f5818d2f AJ |
2826 | #ifdef __cplusplus |
2827 | extern "C" | |
2828 | #endif | |
e2bfa4c7 | 2829 | /* We use char because int might match the return type of a gcc2 |
f5818d2f AJ |
2830 | builtin and then its argument prototype would still apply. */ |
2831 | char dnet_ntoa (); | |
daa2886c AJ |
2832 | #ifdef F77_DUMMY_MAIN |
2833 | # ifdef __cplusplus | |
2834 | extern "C" | |
2835 | # endif | |
2836 | int F77_DUMMY_MAIN() { return 1; } | |
2837 | #endif | |
f5818d2f AJ |
2838 | int |
2839 | main () | |
2840 | { | |
2841 | dnet_ntoa (); | |
2842 | ; | |
2843 | return 0; | |
2844 | } | |
2845 | _ACEOF | |
2846 | rm -f conftest.$ac_objext conftest$ac_exeext | |
daa2886c | 2847 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f5818d2f AJ |
2848 | (eval $ac_link) 2>&5 |
2849 | ac_status=$? | |
daa2886c | 2850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
2851 | (exit $ac_status); } && |
2852 | { ac_try='test -s conftest$ac_exeext' | |
daa2886c | 2853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
2854 | (eval $ac_try) 2>&5 |
2855 | ac_status=$? | |
daa2886c | 2856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
2857 | (exit $ac_status); }; }; then |
2858 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | |
2859 | else | |
2860 | echo "$as_me: failed program was:" >&5 | |
2861 | cat conftest.$ac_ext >&5 | |
2862 | ac_cv_lib_dnet_stub_dnet_ntoa=no | |
2863 | fi | |
2864 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
2865 | LIBS=$ac_check_lib_save_LIBS | |
2866 | fi | |
daa2886c | 2867 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 |
f5818d2f AJ |
2868 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 |
2869 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then | |
ff8331ea | 2870 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
ff8331ea AJ |
2871 | fi |
2872 | ||
2873 | fi | |
f5818d2f AJ |
2874 | fi |
2875 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
2876 | LIBS="$ac_xsave_LIBS" | |
ff8331ea AJ |
2877 | |
2878 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
2879 | # to get the SysV transport functions. | |
f5818d2f | 2880 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
da0cfb36 AJ |
2881 | # needs -lnsl. |
2882 | # The nsl library prevents programs from opening the X display | |
f5818d2f AJ |
2883 | # on Irix 5.2, according to T.E. Dickey. |
2884 | # The functions gethostbyname, getservbyname, and inet_addr are | |
2885 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
daa2886c | 2886 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 |
f5818d2f AJ |
2887 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 |
2888 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
2889 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2890 | else | |
2891 | cat >conftest.$ac_ext <<_ACEOF | |
daa2886c | 2892 | #line $LINENO "configure" |
da0cfb36 AJ |
2893 | #include "confdefs.h" |
2894 | /* System header to define __stub macros and hopefully few prototypes, | |
f5818d2f | 2895 | which can conflict with char gethostbyname (); below. */ |
da0cfb36 AJ |
2896 | #include <assert.h> |
2897 | /* Override any gcc2 internal prototype to avoid an error. */ | |
f5818d2f AJ |
2898 | #ifdef __cplusplus |
2899 | extern "C" | |
2900 | #endif | |
da0cfb36 | 2901 | /* We use char because int might match the return type of a gcc2 |
f5818d2f AJ |
2902 | builtin and then its argument prototype would still apply. */ |
2903 | char gethostbyname (); | |
2904 | char (*f) (); | |
da0cfb36 | 2905 | |
daa2886c AJ |
2906 | #ifdef F77_DUMMY_MAIN |
2907 | # ifdef __cplusplus | |
2908 | extern "C" | |
2909 | # endif | |
2910 | int F77_DUMMY_MAIN() { return 1; } | |
2911 | #endif | |
f5818d2f AJ |
2912 | int |
2913 | main () | |
2914 | { | |
da0cfb36 AJ |
2915 | /* The GNU C library defines this for functions which it implements |
2916 | to always fail with ENOSYS. Some functions are actually named | |
2917 | something starting with __ and the normal name is an alias. */ | |
2918 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
2919 | choke me | |
2920 | #else | |
f5818d2f | 2921 | f = gethostbyname; |
da0cfb36 AJ |
2922 | #endif |
2923 | ||
f5818d2f AJ |
2924 | ; |
2925 | return 0; | |
2926 | } | |
2927 | _ACEOF | |
2928 | rm -f conftest.$ac_objext conftest$ac_exeext | |
daa2886c | 2929 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f5818d2f AJ |
2930 | (eval $ac_link) 2>&5 |
2931 | ac_status=$? | |
daa2886c | 2932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
2933 | (exit $ac_status); } && |
2934 | { ac_try='test -s conftest$ac_exeext' | |
daa2886c | 2935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
2936 | (eval $ac_try) 2>&5 |
2937 | ac_status=$? | |
daa2886c | 2938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
2939 | (exit $ac_status); }; }; then |
2940 | ac_cv_func_gethostbyname=yes | |
2941 | else | |
2942 | echo "$as_me: failed program was:" >&5 | |
2943 | cat conftest.$ac_ext >&5 | |
2944 | ac_cv_func_gethostbyname=no | |
2945 | fi | |
2946 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
2947 | fi | |
daa2886c | 2948 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 |
f5818d2f | 2949 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 |
da0cfb36 AJ |
2950 | |
2951 | if test $ac_cv_func_gethostbyname = no; then | |
daa2886c | 2952 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
f5818d2f AJ |
2953 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 |
2954 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
2955 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ff8331ea | 2956 | else |
f5818d2f | 2957 | ac_check_lib_save_LIBS=$LIBS |
ff8331ea | 2958 | LIBS="-lnsl $LIBS" |
f5818d2f | 2959 | cat >conftest.$ac_ext <<_ACEOF |
daa2886c | 2960 | #line $LINENO "configure" |
ff8331ea | 2961 | #include "confdefs.h" |
f5818d2f | 2962 | |
59730ae1 | 2963 | /* Override any gcc2 internal prototype to avoid an error. */ |
f5818d2f AJ |
2964 | #ifdef __cplusplus |
2965 | extern "C" | |
2966 | #endif | |
e2bfa4c7 | 2967 | /* We use char because int might match the return type of a gcc2 |
f5818d2f AJ |
2968 | builtin and then its argument prototype would still apply. */ |
2969 | char gethostbyname (); | |
daa2886c AJ |
2970 | #ifdef F77_DUMMY_MAIN |
2971 | # ifdef __cplusplus | |
2972 | extern "C" | |
2973 | # endif | |
2974 | int F77_DUMMY_MAIN() { return 1; } | |
2975 | #endif | |
f5818d2f AJ |
2976 | int |
2977 | main () | |
2978 | { | |
2979 | gethostbyname (); | |
2980 | ; | |
2981 | return 0; | |
2982 | } | |
2983 | _ACEOF | |
2984 | rm -f conftest.$ac_objext conftest$ac_exeext | |
daa2886c | 2985 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f5818d2f AJ |
2986 | (eval $ac_link) 2>&5 |
2987 | ac_status=$? | |
daa2886c | 2988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
2989 | (exit $ac_status); } && |
2990 | { ac_try='test -s conftest$ac_exeext' | |
daa2886c | 2991 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
2992 | (eval $ac_try) 2>&5 |
2993 | ac_status=$? | |
daa2886c | 2994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
2995 | (exit $ac_status); }; }; then |
2996 | ac_cv_lib_nsl_gethostbyname=yes | |
2997 | else | |
2998 | echo "$as_me: failed program was:" >&5 | |
2999 | cat conftest.$ac_ext >&5 | |
3000 | ac_cv_lib_nsl_gethostbyname=no | |
3001 | fi | |
3002 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
3003 | LIBS=$ac_check_lib_save_LIBS | |
3004 | fi | |
daa2886c | 3005 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
f5818d2f AJ |
3006 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 |
3007 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
3008 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
3009 | fi | |
ff8331ea | 3010 | |
f5818d2f | 3011 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
daa2886c | 3012 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 |
f5818d2f AJ |
3013 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 |
3014 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then | |
3015 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ff8331ea | 3016 | else |
f5818d2f AJ |
3017 | ac_check_lib_save_LIBS=$LIBS |
3018 | LIBS="-lbsd $LIBS" | |
3019 | cat >conftest.$ac_ext <<_ACEOF | |
daa2886c | 3020 | #line $LINENO "configure" |
f5818d2f | 3021 | #include "confdefs.h" |
ff8331ea | 3022 | |
f5818d2f AJ |
3023 | /* Override any gcc2 internal prototype to avoid an error. */ |
3024 | #ifdef __cplusplus | |
3025 | extern "C" | |
3026 | #endif | |
3027 | /* We use char because int might match the return type of a gcc2 | |
3028 | builtin and then its argument prototype would still apply. */ | |
3029 | char gethostbyname (); | |
daa2886c AJ |
3030 | #ifdef F77_DUMMY_MAIN |
3031 | # ifdef __cplusplus | |
3032 | extern "C" | |
3033 | # endif | |
3034 | int F77_DUMMY_MAIN() { return 1; } | |
3035 | #endif | |
f5818d2f AJ |
3036 | int |
3037 | main () | |
3038 | { | |
3039 | gethostbyname (); | |
3040 | ; | |
3041 | return 0; | |
3042 | } | |
3043 | _ACEOF | |
3044 | rm -f conftest.$ac_objext conftest$ac_exeext | |
daa2886c | 3045 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f5818d2f AJ |
3046 | (eval $ac_link) 2>&5 |
3047 | ac_status=$? | |
daa2886c | 3048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
3049 | (exit $ac_status); } && |
3050 | { ac_try='test -s conftest$ac_exeext' | |
daa2886c | 3051 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
3052 | (eval $ac_try) 2>&5 |
3053 | ac_status=$? | |
daa2886c | 3054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
3055 | (exit $ac_status); }; }; then |
3056 | ac_cv_lib_bsd_gethostbyname=yes | |
3057 | else | |
3058 | echo "$as_me: failed program was:" >&5 | |
3059 | cat conftest.$ac_ext >&5 | |
3060 | ac_cv_lib_bsd_gethostbyname=no | |
3061 | fi | |
3062 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
3063 | LIBS=$ac_check_lib_save_LIBS | |
3064 | fi | |
daa2886c | 3065 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 |
f5818d2f AJ |
3066 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 |
3067 | if test $ac_cv_lib_bsd_gethostbyname = yes; then | |
3068 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | |
ff8331ea AJ |
3069 | fi |
3070 | ||
f5818d2f | 3071 | fi |
da0cfb36 | 3072 | fi |
ff8331ea AJ |
3073 | |
3074 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
da0cfb36 AJ |
3075 | # socket/setsockopt and other routines are undefined under SCO ODT |
3076 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
f5818d2f AJ |
3077 | # on later versions), says Simon Leinen: it contains gethostby* |
3078 | # variants that don't use the nameserver (or something). -lsocket | |
3079 | # must be given before -lnsl if both are needed. We assume that | |
3080 | # if connect needs -lnsl, so does gethostbyname. | |
daa2886c | 3081 | echo "$as_me:$LINENO: checking for connect" >&5 |
f5818d2f AJ |
3082 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 |
3083 | if test "${ac_cv_func_connect+set}" = set; then | |
3084 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3085 | else | |
3086 | cat >conftest.$ac_ext <<_ACEOF | |
daa2886c | 3087 | #line $LINENO "configure" |
da0cfb36 AJ |
3088 | #include "confdefs.h" |
3089 | /* System header to define __stub macros and hopefully few prototypes, | |
f5818d2f | 3090 | which can conflict with char connect (); below. */ |
da0cfb36 AJ |
3091 | #include <assert.h> |
3092 | /* Override any gcc2 internal prototype to avoid an error. */ | |
f5818d2f AJ |
3093 | #ifdef __cplusplus |
3094 | extern "C" | |
3095 | #endif | |
da0cfb36 | 3096 | /* We use char because int might match the return type of a gcc2 |
f5818d2f AJ |
3097 | builtin and then its argument prototype would still apply. */ |
3098 | char connect (); | |
3099 | char (*f) (); | |
da0cfb36 | 3100 | |
daa2886c AJ |
3101 | #ifdef F77_DUMMY_MAIN |
3102 | # ifdef __cplusplus | |
3103 | extern "C" | |
3104 | # endif | |
3105 | int F77_DUMMY_MAIN() { return 1; } | |
3106 | #endif | |
f5818d2f AJ |
3107 | int |
3108 | main () | |
3109 | { | |
da0cfb36 AJ |
3110 | /* The GNU C library defines this for functions which it implements |
3111 | to always fail with ENOSYS. Some functions are actually named | |
3112 | something starting with __ and the normal name is an alias. */ | |
3113 | #if defined (__stub_connect) || defined (__stub___connect) | |
3114 | choke me | |
3115 | #else | |
f5818d2f | 3116 | f = connect; |
da0cfb36 AJ |
3117 | #endif |
3118 | ||
f5818d2f AJ |
3119 | ; |
3120 | return 0; | |
3121 | } | |
3122 | _ACEOF | |
3123 | rm -f conftest.$ac_objext conftest$ac_exeext | |
daa2886c | 3124 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f5818d2f AJ |
3125 | (eval $ac_link) 2>&5 |
3126 | ac_status=$? | |
daa2886c | 3127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
3128 | (exit $ac_status); } && |
3129 | { ac_try='test -s conftest$ac_exeext' | |
daa2886c | 3130 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
3131 | (eval $ac_try) 2>&5 |
3132 | ac_status=$? | |
daa2886c | 3133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
3134 | (exit $ac_status); }; }; then |
3135 | ac_cv_func_connect=yes | |
3136 | else | |
3137 | echo "$as_me: failed program was:" >&5 | |
3138 | cat conftest.$ac_ext >&5 | |
3139 | ac_cv_func_connect=no | |
3140 | fi | |
3141 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
3142 | fi | |
daa2886c | 3143 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 |
f5818d2f | 3144 | echo "${ECHO_T}$ac_cv_func_connect" >&6 |
da0cfb36 AJ |
3145 | |
3146 | if test $ac_cv_func_connect = no; then | |
daa2886c | 3147 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
f5818d2f AJ |
3148 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 |
3149 | if test "${ac_cv_lib_socket_connect+set}" = set; then | |
3150 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ff8331ea | 3151 | else |
f5818d2f | 3152 | ac_check_lib_save_LIBS=$LIBS |
da0cfb36 | 3153 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
f5818d2f | 3154 | cat >conftest.$ac_ext <<_ACEOF |
daa2886c | 3155 | #line $LINENO "configure" |
ff8331ea | 3156 | #include "confdefs.h" |
f5818d2f | 3157 | |
59730ae1 | 3158 | /* Override any gcc2 internal prototype to avoid an error. */ |
f5818d2f AJ |
3159 | #ifdef __cplusplus |
3160 | extern "C" | |
3161 | #endif | |
e2bfa4c7 | 3162 | /* We use char because int might match the return type of a gcc2 |
f5818d2f AJ |
3163 | builtin and then its argument prototype would still apply. */ |
3164 | char connect (); | |
daa2886c AJ |
3165 | #ifdef F77_DUMMY_MAIN |
3166 | # ifdef __cplusplus | |
3167 | extern "C" | |
3168 | # endif | |
3169 | int F77_DUMMY_MAIN() { return 1; } | |
3170 | #endif | |
f5818d2f AJ |
3171 | int |
3172 | main () | |
3173 | { | |
3174 | connect (); | |
3175 | ; | |
3176 | return 0; | |
3177 | } | |
3178 | _ACEOF | |
3179 | rm -f conftest.$ac_objext conftest$ac_exeext | |
daa2886c | 3180 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f5818d2f AJ |
3181 | (eval $ac_link) 2>&5 |
3182 | ac_status=$? | |
daa2886c | 3183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
3184 | (exit $ac_status); } && |
3185 | { ac_try='test -s conftest$ac_exeext' | |
daa2886c | 3186 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
3187 | (eval $ac_try) 2>&5 |
3188 | ac_status=$? | |
daa2886c | 3189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
3190 | (exit $ac_status); }; }; then |
3191 | ac_cv_lib_socket_connect=yes | |
3192 | else | |
3193 | echo "$as_me: failed program was:" >&5 | |
3194 | cat conftest.$ac_ext >&5 | |
3195 | ac_cv_lib_socket_connect=no | |
3196 | fi | |
3197 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
3198 | LIBS=$ac_check_lib_save_LIBS | |
3199 | fi | |
daa2886c | 3200 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 |
f5818d2f AJ |
3201 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 |
3202 | if test $ac_cv_lib_socket_connect = yes; then | |
da0cfb36 | 3203 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
ff8331ea AJ |
3204 | fi |
3205 | ||
da0cfb36 AJ |
3206 | fi |
3207 | ||
f5818d2f | 3208 | # Guillermo Gomez says -lposix is necessary on A/UX. |
daa2886c | 3209 | echo "$as_me:$LINENO: checking for remove" >&5 |
f5818d2f AJ |
3210 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 |
3211 | if test "${ac_cv_func_remove+set}" = set; then | |
3212 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
da0cfb36 | 3213 | else |
f5818d2f | 3214 | cat >conftest.$ac_ext <<_ACEOF |
daa2886c | 3215 | #line $LINENO "configure" |
da0cfb36 AJ |
3216 | #include "confdefs.h" |
3217 | /* System header to define __stub macros and hopefully few prototypes, | |
f5818d2f | 3218 | which can conflict with char remove (); below. */ |
da0cfb36 AJ |
3219 | #include <assert.h> |
3220 | /* Override any gcc2 internal prototype to avoid an error. */ | |
f5818d2f AJ |
3221 | #ifdef __cplusplus |
3222 | extern "C" | |
3223 | #endif | |
da0cfb36 | 3224 | /* We use char because int might match the return type of a gcc2 |
f5818d2f AJ |
3225 | builtin and then its argument prototype would still apply. */ |
3226 | char remove (); | |
3227 | char (*f) (); | |
da0cfb36 | 3228 | |
daa2886c AJ |
3229 | #ifdef F77_DUMMY_MAIN |
3230 | # ifdef __cplusplus | |
3231 | extern "C" | |
3232 | # endif | |
3233 | int F77_DUMMY_MAIN() { return 1; } | |
3234 | #endif | |
f5818d2f AJ |
3235 | int |
3236 | main () | |
3237 | { | |
da0cfb36 AJ |
3238 | /* The GNU C library defines this for functions which it implements |
3239 | to always fail with ENOSYS. Some functions are actually named | |
3240 | something starting with __ and the normal name is an alias. */ | |
3241 | #if defined (__stub_remove) || defined (__stub___remove) | |
3242 | choke me | |
3243 | #else | |
f5818d2f | 3244 | f = remove; |
da0cfb36 AJ |
3245 | #endif |
3246 | ||
f5818d2f AJ |
3247 | ; |
3248 | return 0; | |
3249 | } | |
3250 | _ACEOF | |
3251 | rm -f conftest.$ac_objext conftest$ac_exeext | |
daa2886c | 3252 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f5818d2f AJ |
3253 | (eval $ac_link) 2>&5 |
3254 | ac_status=$? | |
daa2886c | 3255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
3256 | (exit $ac_status); } && |
3257 | { ac_try='test -s conftest$ac_exeext' | |
daa2886c | 3258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
3259 | (eval $ac_try) 2>&5 |
3260 | ac_status=$? | |
daa2886c | 3261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
3262 | (exit $ac_status); }; }; then |
3263 | ac_cv_func_remove=yes | |
3264 | else | |
3265 | echo "$as_me: failed program was:" >&5 | |
3266 | cat conftest.$ac_ext >&5 | |
3267 | ac_cv_func_remove=no | |
3268 | fi | |
3269 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
3270 | fi | |
daa2886c | 3271 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 |
f5818d2f | 3272 | echo "${ECHO_T}$ac_cv_func_remove" >&6 |
da0cfb36 AJ |
3273 | |
3274 | if test $ac_cv_func_remove = no; then | |
daa2886c | 3275 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 |
f5818d2f AJ |
3276 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 |
3277 | if test "${ac_cv_lib_posix_remove+set}" = set; then | |
3278 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
e2bfa4c7 | 3279 | else |
f5818d2f | 3280 | ac_check_lib_save_LIBS=$LIBS |
da0cfb36 | 3281 | LIBS="-lposix $LIBS" |
f5818d2f | 3282 | cat >conftest.$ac_ext <<_ACEOF |
daa2886c | 3283 | #line $LINENO "configure" |
e2bfa4c7 | 3284 | #include "confdefs.h" |
f5818d2f | 3285 | |
e2bfa4c7 | 3286 | /* Override any gcc2 internal prototype to avoid an error. */ |
f5818d2f AJ |
3287 | #ifdef __cplusplus |
3288 | extern "C" | |
3289 | #endif | |
e2bfa4c7 | 3290 | /* We use char because int might match the return type of a gcc2 |
f5818d2f AJ |
3291 | builtin and then its argument prototype would still apply. */ |
3292 | char remove (); | |
daa2886c AJ |
3293 | #ifdef F77_DUMMY_MAIN |
3294 | # ifdef __cplusplus | |
3295 | extern "C" | |
3296 | # endif | |
3297 | int F77_DUMMY_MAIN() { return 1; } | |
3298 | #endif | |
f5818d2f AJ |
3299 | int |
3300 | main () | |
3301 | { | |
3302 | remove (); | |
3303 | ; | |
3304 | return 0; | |
3305 | } | |
3306 | _ACEOF | |
3307 | rm -f conftest.$ac_objext conftest$ac_exeext | |
daa2886c | 3308 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f5818d2f AJ |
3309 | (eval $ac_link) 2>&5 |
3310 | ac_status=$? | |
daa2886c | 3311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
3312 | (exit $ac_status); } && |
3313 | { ac_try='test -s conftest$ac_exeext' | |
daa2886c | 3314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
3315 | (eval $ac_try) 2>&5 |
3316 | ac_status=$? | |
daa2886c | 3317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
3318 | (exit $ac_status); }; }; then |
3319 | ac_cv_lib_posix_remove=yes | |
3320 | else | |
3321 | echo "$as_me: failed program was:" >&5 | |
3322 | cat conftest.$ac_ext >&5 | |
3323 | ac_cv_lib_posix_remove=no | |
3324 | fi | |
3325 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
3326 | LIBS=$ac_check_lib_save_LIBS | |
3327 | fi | |
daa2886c | 3328 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 |
f5818d2f AJ |
3329 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 |
3330 | if test $ac_cv_lib_posix_remove = yes; then | |
da0cfb36 | 3331 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
da0cfb36 AJ |
3332 | fi |
3333 | ||
3334 | fi | |
3335 | ||
3336 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
daa2886c | 3337 | echo "$as_me:$LINENO: checking for shmat" >&5 |
f5818d2f AJ |
3338 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 |
3339 | if test "${ac_cv_func_shmat+set}" = set; then | |
3340 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
da0cfb36 | 3341 | else |
f5818d2f | 3342 | cat >conftest.$ac_ext <<_ACEOF |
daa2886c | 3343 | #line $LINENO "configure" |
da0cfb36 AJ |
3344 | #include "confdefs.h" |
3345 | /* System header to define __stub macros and hopefully few prototypes, | |
f5818d2f | 3346 | which can conflict with char shmat (); below. */ |
da0cfb36 AJ |
3347 | #include <assert.h> |
3348 | /* Override any gcc2 internal prototype to avoid an error. */ | |
f5818d2f AJ |
3349 | #ifdef __cplusplus |
3350 | extern "C" | |
3351 | #endif | |
da0cfb36 | 3352 | /* We use char because int might match the return type of a gcc2 |
f5818d2f AJ |
3353 | builtin and then its argument prototype would still apply. */ |
3354 | char shmat (); | |
3355 | char (*f) (); | |
da0cfb36 | 3356 | |
daa2886c AJ |
3357 | #ifdef F77_DUMMY_MAIN |
3358 | # ifdef __cplusplus | |
3359 | extern "C" | |
3360 | # endif | |
3361 | int F77_DUMMY_MAIN() { return 1; } | |
3362 | #endif | |
f5818d2f AJ |
3363 | int |
3364 | main () | |
3365 | { | |
da0cfb36 AJ |
3366 | /* The GNU C library defines this for functions which it implements |
3367 | to always fail with ENOSYS. Some functions are actually named | |
3368 | something starting with __ and the normal name is an alias. */ | |
3369 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
3370 | choke me | |
3371 | #else | |
f5818d2f | 3372 | f = shmat; |
da0cfb36 AJ |
3373 | #endif |
3374 | ||
f5818d2f AJ |
3375 | ; |
3376 | return 0; | |
3377 | } | |
3378 | _ACEOF | |
3379 | rm -f conftest.$ac_objext conftest$ac_exeext | |
daa2886c | 3380 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f5818d2f AJ |
3381 | (eval $ac_link) 2>&5 |
3382 | ac_status=$? | |
daa2886c | 3383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
3384 | (exit $ac_status); } && |
3385 | { ac_try='test -s conftest$ac_exeext' | |
daa2886c | 3386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
3387 | (eval $ac_try) 2>&5 |
3388 | ac_status=$? | |
daa2886c | 3389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
3390 | (exit $ac_status); }; }; then |
3391 | ac_cv_func_shmat=yes | |
3392 | else | |
3393 | echo "$as_me: failed program was:" >&5 | |
3394 | cat conftest.$ac_ext >&5 | |
3395 | ac_cv_func_shmat=no | |
3396 | fi | |
3397 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
3398 | fi | |
daa2886c | 3399 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 |
f5818d2f | 3400 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 |
da0cfb36 AJ |
3401 | |
3402 | if test $ac_cv_func_shmat = no; then | |
daa2886c | 3403 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 |
f5818d2f AJ |
3404 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 |
3405 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then | |
3406 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
da0cfb36 | 3407 | else |
f5818d2f | 3408 | ac_check_lib_save_LIBS=$LIBS |
da0cfb36 | 3409 | LIBS="-lipc $LIBS" |
f5818d2f | 3410 | cat >conftest.$ac_ext <<_ACEOF |
daa2886c | 3411 | #line $LINENO "configure" |
da0cfb36 | 3412 | #include "confdefs.h" |
f5818d2f | 3413 | |
da0cfb36 | 3414 | /* Override any gcc2 internal prototype to avoid an error. */ |
f5818d2f AJ |
3415 | #ifdef __cplusplus |
3416 | extern "C" | |
3417 | #endif | |
da0cfb36 | 3418 | /* We use char because int might match the return type of a gcc2 |
f5818d2f AJ |
3419 | builtin and then its argument prototype would still apply. */ |
3420 | char shmat (); | |
daa2886c AJ |
3421 | #ifdef F77_DUMMY_MAIN |
3422 | # ifdef __cplusplus | |
3423 | extern "C" | |
3424 | # endif | |
3425 | int F77_DUMMY_MAIN() { return 1; } | |
3426 | #endif | |
f5818d2f AJ |
3427 | int |
3428 | main () | |
3429 | { | |
3430 | shmat (); | |
3431 | ; | |
3432 | return 0; | |
3433 | } | |
3434 | _ACEOF | |
3435 | rm -f conftest.$ac_objext conftest$ac_exeext | |
daa2886c | 3436 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f5818d2f AJ |
3437 | (eval $ac_link) 2>&5 |
3438 | ac_status=$? | |
daa2886c | 3439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
3440 | (exit $ac_status); } && |
3441 | { ac_try='test -s conftest$ac_exeext' | |
daa2886c | 3442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
3443 | (eval $ac_try) 2>&5 |
3444 | ac_status=$? | |
daa2886c | 3445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
3446 | (exit $ac_status); }; }; then |
3447 | ac_cv_lib_ipc_shmat=yes | |
3448 | else | |
3449 | echo "$as_me: failed program was:" >&5 | |
3450 | cat conftest.$ac_ext >&5 | |
3451 | ac_cv_lib_ipc_shmat=no | |
3452 | fi | |
3453 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
3454 | LIBS=$ac_check_lib_save_LIBS | |
3455 | fi | |
daa2886c | 3456 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 |
f5818d2f AJ |
3457 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 |
3458 | if test $ac_cv_lib_ipc_shmat = yes; then | |
da0cfb36 | 3459 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
e2bfa4c7 AJ |
3460 | fi |
3461 | ||
ff8331ea AJ |
3462 | fi |
3463 | fi | |
da0cfb36 AJ |
3464 | |
3465 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
f5818d2f | 3466 | ac_save_LDFLAGS=$LDFLAGS |
da0cfb36 AJ |
3467 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
3468 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
3469 | # check for ICE first), but we must link in the order -lSM -lICE or | |
3470 | # we get undefined symbols. So assume we have SM if we have ICE. | |
3471 | # These have to be linked with before -lX11, unlike the other | |
3472 | # libraries we check for below, so use a different variable. | |
f5818d2f | 3473 | # John Interrante, Karl Berry |
daa2886c | 3474 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 |
f5818d2f AJ |
3475 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 |
3476 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then | |
3477 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3478 | else | |
3479 | ac_check_lib_save_LIBS=$LIBS | |
18ad24a7 | 3480 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
f5818d2f | 3481 | cat >conftest.$ac_ext <<_ACEOF |
daa2886c | 3482 | #line $LINENO "configure" |
da0cfb36 | 3483 | #include "confdefs.h" |
f5818d2f | 3484 | |
da0cfb36 | 3485 | /* Override any gcc2 internal prototype to avoid an error. */ |
f5818d2f AJ |
3486 | #ifdef __cplusplus |
3487 | extern "C" | |
3488 | #endif | |
da0cfb36 | 3489 | /* We use char because int might match the return type of a gcc2 |
f5818d2f AJ |
3490 | builtin and then its argument prototype would still apply. */ |
3491 | char IceConnectionNumber (); | |
daa2886c AJ |
3492 | #ifdef F77_DUMMY_MAIN |
3493 | # ifdef __cplusplus | |
3494 | extern "C" | |
3495 | # endif | |
3496 | int F77_DUMMY_MAIN() { return 1; } | |
3497 | #endif | |
f5818d2f AJ |
3498 | int |
3499 | main () | |
3500 | { | |
3501 | IceConnectionNumber (); | |
3502 | ; | |
3503 | return 0; | |
3504 | } | |
3505 | _ACEOF | |
3506 | rm -f conftest.$ac_objext conftest$ac_exeext | |
daa2886c | 3507 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f5818d2f AJ |
3508 | (eval $ac_link) 2>&5 |
3509 | ac_status=$? | |
daa2886c | 3510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
3511 | (exit $ac_status); } && |
3512 | { ac_try='test -s conftest$ac_exeext' | |
daa2886c | 3513 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
3514 | (eval $ac_try) 2>&5 |
3515 | ac_status=$? | |
daa2886c | 3516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
3517 | (exit $ac_status); }; }; then |
3518 | ac_cv_lib_ICE_IceConnectionNumber=yes | |
3519 | else | |
3520 | echo "$as_me: failed program was:" >&5 | |
3521 | cat conftest.$ac_ext >&5 | |
3522 | ac_cv_lib_ICE_IceConnectionNumber=no | |
3523 | fi | |
3524 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
3525 | LIBS=$ac_check_lib_save_LIBS | |
3526 | fi | |
daa2886c | 3527 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 |
f5818d2f AJ |
3528 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 |
3529 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then | |
da0cfb36 | 3530 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
da0cfb36 AJ |
3531 | fi |
3532 | ||
f5818d2f | 3533 | LDFLAGS=$ac_save_LDFLAGS |
da0cfb36 | 3534 | |
ff8331ea AJ |
3535 | fi |
3536 | ||
e2991ea7 AJ |
3537 | for ac_prog in 'bison -y' byacc |
3538 | do | |
f5818d2f | 3539 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
e2991ea7 | 3540 | set dummy $ac_prog; ac_word=$2 |
daa2886c | 3541 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
f5818d2f AJ |
3542 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
3543 | if test "${ac_cv_prog_YACC+set}" = set; then | |
3544 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
e2991ea7 AJ |
3545 | else |
3546 | if test -n "$YACC"; then | |
3547 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
3548 | else | |
daa2886c AJ |
3549 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3550 | for as_dir in $PATH | |
3551 | do | |
3552 | IFS=$as_save_IFS | |
3553 | test -z "$as_dir" && as_dir=. | |
3554 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3555 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3556 | ac_cv_prog_YACC="$ac_prog" | |
3557 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3558 | break 2 | |
3559 | fi | |
3560 | done | |
f5818d2f AJ |
3561 | done |
3562 | ||
e2991ea7 AJ |
3563 | fi |
3564 | fi | |
f5818d2f | 3565 | YACC=$ac_cv_prog_YACC |
e2991ea7 | 3566 | if test -n "$YACC"; then |
daa2886c | 3567 | echo "$as_me:$LINENO: result: $YACC" >&5 |
f5818d2f | 3568 | echo "${ECHO_T}$YACC" >&6 |
e2991ea7 | 3569 | else |
daa2886c | 3570 | echo "$as_me:$LINENO: result: no" >&5 |
f5818d2f | 3571 | echo "${ECHO_T}no" >&6 |
e2991ea7 AJ |
3572 | fi |
3573 | ||
f5818d2f | 3574 | test -n "$YACC" && break |
e2991ea7 AJ |
3575 | done |
3576 | test -n "$YACC" || YACC="yacc" | |
3577 | ||
f5818d2f AJ |
3578 | for ac_prog in flex lex |
3579 | do | |
3580 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3581 | set dummy $ac_prog; ac_word=$2 | |
daa2886c | 3582 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
f5818d2f AJ |
3583 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
3584 | if test "${ac_cv_prog_LEX+set}" = set; then | |
3585 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
e2991ea7 AJ |
3586 | else |
3587 | if test -n "$LEX"; then | |
3588 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
3589 | else | |
daa2886c AJ |
3590 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3591 | for as_dir in $PATH | |
3592 | do | |
3593 | IFS=$as_save_IFS | |
3594 | test -z "$as_dir" && as_dir=. | |
3595 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3596 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3597 | ac_cv_prog_LEX="$ac_prog" | |
3598 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3599 | break 2 | |
3600 | fi | |
3601 | done | |
f5818d2f AJ |
3602 | done |
3603 | ||
e2991ea7 AJ |
3604 | fi |
3605 | fi | |
f5818d2f | 3606 | LEX=$ac_cv_prog_LEX |
e2991ea7 | 3607 | if test -n "$LEX"; then |
daa2886c | 3608 | echo "$as_me:$LINENO: result: $LEX" >&5 |
f5818d2f | 3609 | echo "${ECHO_T}$LEX" >&6 |
e2991ea7 | 3610 | else |
daa2886c | 3611 | echo "$as_me:$LINENO: result: no" >&5 |
f5818d2f | 3612 | echo "${ECHO_T}no" >&6 |
e2991ea7 AJ |
3613 | fi |
3614 | ||
f5818d2f AJ |
3615 | test -n "$LEX" && break |
3616 | done | |
3617 | test -n "$LEX" || LEX=":" | |
3618 | ||
e2991ea7 AJ |
3619 | if test -z "$LEXLIB" |
3620 | then | |
daa2886c | 3621 | echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 |
f5818d2f AJ |
3622 | echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6 |
3623 | if test "${ac_cv_lib_fl_yywrap+set}" = set; then | |
3624 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3625 | else | |
3626 | ac_check_lib_save_LIBS=$LIBS | |
3627 | LIBS="-lfl $LIBS" | |
3628 | cat >conftest.$ac_ext <<_ACEOF | |
daa2886c | 3629 | #line $LINENO "configure" |
e2991ea7 | 3630 | #include "confdefs.h" |
f5818d2f | 3631 | |
59730ae1 | 3632 | /* Override any gcc2 internal prototype to avoid an error. */ |
f5818d2f AJ |
3633 | #ifdef __cplusplus |
3634 | extern "C" | |
3635 | #endif | |
e2bfa4c7 | 3636 | /* We use char because int might match the return type of a gcc2 |
f5818d2f AJ |
3637 | builtin and then its argument prototype would still apply. */ |
3638 | char yywrap (); | |
daa2886c AJ |
3639 | #ifdef F77_DUMMY_MAIN |
3640 | # ifdef __cplusplus | |
3641 | extern "C" | |
3642 | # endif | |
3643 | int F77_DUMMY_MAIN() { return 1; } | |
3644 | #endif | |
f5818d2f AJ |
3645 | int |
3646 | main () | |
3647 | { | |
3648 | yywrap (); | |
3649 | ; | |
3650 | return 0; | |
3651 | } | |
3652 | _ACEOF | |
3653 | rm -f conftest.$ac_objext conftest$ac_exeext | |
daa2886c | 3654 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f5818d2f AJ |
3655 | (eval $ac_link) 2>&5 |
3656 | ac_status=$? | |
daa2886c | 3657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
3658 | (exit $ac_status); } && |
3659 | { ac_try='test -s conftest$ac_exeext' | |
daa2886c | 3660 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
3661 | (eval $ac_try) 2>&5 |
3662 | ac_status=$? | |
daa2886c | 3663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
3664 | (exit $ac_status); }; }; then |
3665 | ac_cv_lib_fl_yywrap=yes | |
3666 | else | |
3667 | echo "$as_me: failed program was:" >&5 | |
3668 | cat conftest.$ac_ext >&5 | |
3669 | ac_cv_lib_fl_yywrap=no | |
3670 | fi | |
3671 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
3672 | LIBS=$ac_check_lib_save_LIBS | |
3673 | fi | |
daa2886c | 3674 | echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 |
f5818d2f AJ |
3675 | echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6 |
3676 | if test $ac_cv_lib_fl_yywrap = yes; then | |
3677 | LEXLIB="-lfl" | |
3678 | else | |
daa2886c | 3679 | echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 |
f5818d2f AJ |
3680 | echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6 |
3681 | if test "${ac_cv_lib_l_yywrap+set}" = set; then | |
3682 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3683 | else | |
3684 | ac_check_lib_save_LIBS=$LIBS | |
3685 | LIBS="-ll $LIBS" | |
3686 | cat >conftest.$ac_ext <<_ACEOF | |
daa2886c | 3687 | #line $LINENO "configure" |
f5818d2f | 3688 | #include "confdefs.h" |
e2991ea7 | 3689 | |
f5818d2f AJ |
3690 | /* Override any gcc2 internal prototype to avoid an error. */ |
3691 | #ifdef __cplusplus | |
3692 | extern "C" | |
3693 | #endif | |
3694 | /* We use char because int might match the return type of a gcc2 | |
3695 | builtin and then its argument prototype would still apply. */ | |
3696 | char yywrap (); | |
daa2886c AJ |
3697 | #ifdef F77_DUMMY_MAIN |
3698 | # ifdef __cplusplus | |
3699 | extern "C" | |
3700 | # endif | |
3701 | int F77_DUMMY_MAIN() { return 1; } | |
3702 | #endif | |
f5818d2f AJ |
3703 | int |
3704 | main () | |
3705 | { | |
3706 | yywrap (); | |
3707 | ; | |
3708 | return 0; | |
3709 | } | |
3710 | _ACEOF | |
3711 | rm -f conftest.$ac_objext conftest$ac_exeext | |
daa2886c | 3712 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f5818d2f AJ |
3713 | (eval $ac_link) 2>&5 |
3714 | ac_status=$? | |
daa2886c | 3715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
3716 | (exit $ac_status); } && |
3717 | { ac_try='test -s conftest$ac_exeext' | |
daa2886c | 3718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
3719 | (eval $ac_try) 2>&5 |
3720 | ac_status=$? | |
daa2886c | 3721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
3722 | (exit $ac_status); }; }; then |
3723 | ac_cv_lib_l_yywrap=yes | |
e2991ea7 | 3724 | else |
f5818d2f AJ |
3725 | echo "$as_me: failed program was:" >&5 |
3726 | cat conftest.$ac_ext >&5 | |
3727 | ac_cv_lib_l_yywrap=no | |
3728 | fi | |
3729 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
3730 | LIBS=$ac_check_lib_save_LIBS | |
3731 | fi | |
daa2886c | 3732 | echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 |
f5818d2f AJ |
3733 | echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6 |
3734 | if test $ac_cv_lib_l_yywrap = yes; then | |
3735 | LEXLIB="-ll" | |
3736 | fi | |
3737 | ||
e2991ea7 | 3738 | fi |
e2991ea7 AJ |
3739 | |
3740 | fi | |
f5818d2f AJ |
3741 | |
3742 | if test "x$LEX" != "x:"; then | |
daa2886c | 3743 | echo "$as_me:$LINENO: checking lex output file root" >&5 |
f5818d2f AJ |
3744 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6 |
3745 | if test "${ac_cv_prog_lex_root+set}" = set; then | |
3746 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3747 | else | |
3748 | # The minimal lex program is just a single line: %%. But some broken lexes | |
3749 | # (Solaris, I think it was) want two %% lines, so accommodate them. | |
daa2886c AJ |
3750 | cat >conftest.l <<_ACEOF |
3751 | %% | |
3752 | %% | |
3753 | _ACEOF | |
3754 | { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5 | |
3755 | (eval $LEX conftest.l) 2>&5 | |
3756 | ac_status=$? | |
3757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3758 | (exit $ac_status); } | |
f5818d2f AJ |
3759 | if test -f lex.yy.c; then |
3760 | ac_cv_prog_lex_root=lex.yy | |
3761 | elif test -f lexyy.c; then | |
3762 | ac_cv_prog_lex_root=lexyy | |
3763 | else | |
daa2886c | 3764 | { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 |
f5818d2f AJ |
3765 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} |
3766 | { (exit 1); exit 1; }; } | |
3767 | fi | |
3768 | fi | |
daa2886c | 3769 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 |
f5818d2f | 3770 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6 |
daa2886c | 3771 | rm -f conftest.l |
f5818d2f AJ |
3772 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root |
3773 | ||
daa2886c | 3774 | echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 |
f5818d2f AJ |
3775 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6 |
3776 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then | |
3777 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
e2991ea7 | 3778 | else |
f5818d2f AJ |
3779 | # POSIX says lex can declare yytext either as a pointer or an array; the |
3780 | # default is implementation-dependent. Figure out which it is, since | |
3781 | # not all implementations provide the %pointer and %array declarations. | |
3782 | ac_cv_prog_lex_yytext_pointer=no | |
3783 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c | |
3784 | ac_save_LIBS=$LIBS | |
3785 | LIBS="$LIBS $LEXLIB" | |
3786 | cat >conftest.$ac_ext <<_ACEOF | |
3787 | `cat $LEX_OUTPUT_ROOT.c` | |
3788 | _ACEOF | |
3789 | rm -f conftest.$ac_objext conftest$ac_exeext | |
daa2886c | 3790 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f5818d2f AJ |
3791 | (eval $ac_link) 2>&5 |
3792 | ac_status=$? | |
daa2886c | 3793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
3794 | (exit $ac_status); } && |
3795 | { ac_try='test -s conftest$ac_exeext' | |
daa2886c | 3796 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
3797 | (eval $ac_try) 2>&5 |
3798 | ac_status=$? | |
daa2886c | 3799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
3800 | (exit $ac_status); }; }; then |
3801 | ac_cv_prog_lex_yytext_pointer=yes | |
3802 | else | |
3803 | echo "$as_me: failed program was:" >&5 | |
3804 | cat conftest.$ac_ext >&5 | |
3805 | fi | |
3806 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
3807 | LIBS=$ac_save_LIBS | |
3808 | rm -f "${LEX_OUTPUT_ROOT}.c" | |
3809 | ||
e2991ea7 | 3810 | fi |
daa2886c | 3811 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
f5818d2f AJ |
3812 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6 |
3813 | if test $ac_cv_prog_lex_yytext_pointer = yes; then | |
3814 | ||
daa2886c | 3815 | cat >>confdefs.h <<\_ACEOF |
f5818d2f | 3816 | #define YYTEXT_POINTER 1 |
daa2886c | 3817 | _ACEOF |
e2991ea7 AJ |
3818 | |
3819 | fi | |
3820 | ||
f5818d2f | 3821 | fi |
5c5a6217 MM |
3822 | |
3823 | for ac_prog in $YACC bison yacc | |
3824 | do | |
f5818d2f | 3825 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
5c5a6217 | 3826 | set dummy $ac_prog; ac_word=$2 |
daa2886c | 3827 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
f5818d2f AJ |
3828 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
3829 | if test "${ac_cv_prog_XYACC+set}" = set; then | |
3830 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5c5a6217 MM |
3831 | else |
3832 | if test -n "$XYACC"; then | |
3833 | ac_cv_prog_XYACC="$XYACC" # Let the user override the test. | |
3834 | else | |
daa2886c AJ |
3835 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3836 | for as_dir in $PATH | |
3837 | do | |
3838 | IFS=$as_save_IFS | |
3839 | test -z "$as_dir" && as_dir=. | |
3840 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3841 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3842 | ac_cv_prog_XYACC="$ac_prog" | |
3843 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3844 | break 2 | |
3845 | fi | |
3846 | done | |
f5818d2f AJ |
3847 | done |
3848 | ||
5c5a6217 MM |
3849 | fi |
3850 | fi | |
f5818d2f | 3851 | XYACC=$ac_cv_prog_XYACC |
5c5a6217 | 3852 | if test -n "$XYACC"; then |
daa2886c | 3853 | echo "$as_me:$LINENO: result: $XYACC" >&5 |
f5818d2f | 3854 | echo "${ECHO_T}$XYACC" >&6 |
5c5a6217 | 3855 | else |
daa2886c | 3856 | echo "$as_me:$LINENO: result: no" >&5 |
f5818d2f | 3857 | echo "${ECHO_T}no" >&6 |
5c5a6217 MM |
3858 | fi |
3859 | ||
f5818d2f | 3860 | test -n "$XYACC" && break |
5c5a6217 MM |
3861 | done |
3862 | test -n "$XYACC" || XYACC="none" | |
3863 | ||
3864 | if test "$XYACC" = "none" | |
3865 | then | |
daa2886c | 3866 | { { echo "$as_me:$LINENO: error: no suitable bison/yacc found. Please install the 'bison' package." >&5 |
f5818d2f AJ |
3867 | echo "$as_me: error: no suitable bison/yacc found. Please install the 'bison' package." >&2;} |
3868 | { (exit 1); exit 1; }; } | |
5c5a6217 | 3869 | fi |
b53bb419 MM |
3870 | for ac_prog in $LEX flex lex |
3871 | do | |
f5818d2f | 3872 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
b53bb419 | 3873 | set dummy $ac_prog; ac_word=$2 |
daa2886c | 3874 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
f5818d2f AJ |
3875 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
3876 | if test "${ac_cv_prog_XLEX+set}" = set; then | |
3877 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b53bb419 MM |
3878 | else |
3879 | if test -n "$XLEX"; then | |
3880 | ac_cv_prog_XLEX="$XLEX" # Let the user override the test. | |
3881 | else | |
daa2886c AJ |
3882 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3883 | for as_dir in $PATH | |
3884 | do | |
3885 | IFS=$as_save_IFS | |
3886 | test -z "$as_dir" && as_dir=. | |
3887 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3888 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3889 | ac_cv_prog_XLEX="$ac_prog" | |
3890 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3891 | break 2 | |
3892 | fi | |
3893 | done | |
f5818d2f AJ |
3894 | done |
3895 | ||
b53bb419 MM |
3896 | fi |
3897 | fi | |
f5818d2f | 3898 | XLEX=$ac_cv_prog_XLEX |
b53bb419 | 3899 | if test -n "$XLEX"; then |
daa2886c | 3900 | echo "$as_me:$LINENO: result: $XLEX" >&5 |
f5818d2f | 3901 | echo "${ECHO_T}$XLEX" >&6 |
b53bb419 | 3902 | else |
daa2886c | 3903 | echo "$as_me:$LINENO: result: no" >&5 |
f5818d2f | 3904 | echo "${ECHO_T}no" >&6 |
b53bb419 MM |
3905 | fi |
3906 | ||
f5818d2f | 3907 | test -n "$XLEX" && break |
b53bb419 MM |
3908 | done |
3909 | test -n "$XLEX" || XLEX="none" | |
3910 | ||
3911 | if test "$XLEX" = "none" | |
3912 | then | |
daa2886c | 3913 | { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5 |
f5818d2f AJ |
3914 | echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;} |
3915 | { (exit 1); exit 1; }; } | |
3916 | fi | |
fc01b729 AJ |
3917 | |
3918 | if test -n "$ac_tool_prefix"; then | |
3919 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
3920 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
3921 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3922 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3923 | if test "${ac_cv_prog_AR+set}" = set; then | |
3924 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3925 | else | |
3926 | if test -n "$AR"; then | |
3927 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
3928 | else | |
3929 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3930 | for as_dir in $PATH | |
3931 | do | |
3932 | IFS=$as_save_IFS | |
3933 | test -z "$as_dir" && as_dir=. | |
3934 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3935 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3936 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
3937 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3938 | break 2 | |
3939 | fi | |
3940 | done | |
3941 | done | |
3942 | ||
3943 | fi | |
3944 | fi | |
3945 | AR=$ac_cv_prog_AR | |
3946 | if test -n "$AR"; then | |
3947 | echo "$as_me:$LINENO: result: $AR" >&5 | |
3948 | echo "${ECHO_T}$AR" >&6 | |
3949 | else | |
3950 | echo "$as_me:$LINENO: result: no" >&5 | |
3951 | echo "${ECHO_T}no" >&6 | |
3952 | fi | |
3953 | ||
3954 | fi | |
3955 | if test -z "$ac_cv_prog_AR"; then | |
3956 | ac_ct_AR=$AR | |
3957 | # Extract the first word of "ar", so it can be a program name with args. | |
3958 | set dummy ar; ac_word=$2 | |
3959 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3960 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3961 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
3962 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3963 | else | |
3964 | if test -n "$ac_ct_AR"; then | |
3965 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
3966 | else | |
3967 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3968 | for as_dir in $PATH | |
3969 | do | |
3970 | IFS=$as_save_IFS | |
3971 | test -z "$as_dir" && as_dir=. | |
3972 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3973 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3974 | ac_cv_prog_ac_ct_AR="ar" | |
3975 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3976 | break 2 | |
3977 | fi | |
3978 | done | |
3979 | done | |
3980 | ||
3981 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar" | |
3982 | fi | |
3983 | fi | |
3984 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
3985 | if test -n "$ac_ct_AR"; then | |
3986 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
3987 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
3988 | else | |
3989 | echo "$as_me:$LINENO: result: no" >&5 | |
3990 | echo "${ECHO_T}no" >&6 | |
3991 | fi | |
3992 | ||
3993 | AR=$ac_ct_AR | |
3994 | else | |
3995 | AR="$ac_cv_prog_AR" | |
3996 | fi | |
3997 | ||
f5818d2f AJ |
3998 | if test -n "$ac_tool_prefix"; then |
3999 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
4000 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
daa2886c | 4001 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
f5818d2f AJ |
4002 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
4003 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
4004 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ff8331ea AJ |
4005 | else |
4006 | if test -n "$RANLIB"; then | |
4007 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
4008 | else | |
daa2886c AJ |
4009 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4010 | for as_dir in $PATH | |
4011 | do | |
4012 | IFS=$as_save_IFS | |
4013 | test -z "$as_dir" && as_dir=. | |
4014 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4015 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4016 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
4017 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4018 | break 2 | |
4019 | fi | |
4020 | done | |
f5818d2f AJ |
4021 | done |
4022 | ||
e2991ea7 | 4023 | fi |
e2991ea7 | 4024 | fi |
f5818d2f | 4025 | RANLIB=$ac_cv_prog_RANLIB |
ff8331ea | 4026 | if test -n "$RANLIB"; then |
daa2886c | 4027 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
f5818d2f AJ |
4028 | echo "${ECHO_T}$RANLIB" >&6 |
4029 | else | |
daa2886c | 4030 | echo "$as_me:$LINENO: result: no" >&5 |
f5818d2f AJ |
4031 | echo "${ECHO_T}no" >&6 |
4032 | fi | |
4033 | ||
4034 | fi | |
4035 | if test -z "$ac_cv_prog_RANLIB"; then | |
4036 | ac_ct_RANLIB=$RANLIB | |
4037 | # Extract the first word of "ranlib", so it can be a program name with args. | |
4038 | set dummy ranlib; ac_word=$2 | |
daa2886c | 4039 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
f5818d2f AJ |
4040 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
4041 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
4042 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4043 | else | |
4044 | if test -n "$ac_ct_RANLIB"; then | |
4045 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
4046 | else | |
daa2886c AJ |
4047 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4048 | for as_dir in $PATH | |
4049 | do | |
4050 | IFS=$as_save_IFS | |
4051 | test -z "$as_dir" && as_dir=. | |
4052 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4053 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4054 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
4055 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4056 | break 2 | |
4057 | fi | |
4058 | done | |
f5818d2f AJ |
4059 | done |
4060 | ||
4061 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
4062 | fi | |
4063 | fi | |
4064 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
4065 | if test -n "$ac_ct_RANLIB"; then | |
daa2886c | 4066 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
f5818d2f AJ |
4067 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
4068 | else | |
daa2886c | 4069 | echo "$as_me:$LINENO: result: no" >&5 |
f5818d2f AJ |
4070 | echo "${ECHO_T}no" >&6 |
4071 | fi | |
4072 | ||
4073 | RANLIB=$ac_ct_RANLIB | |
ff8331ea | 4074 | else |
f5818d2f | 4075 | RANLIB="$ac_cv_prog_RANLIB" |
ff8331ea | 4076 | fi |
e2991ea7 | 4077 | |
fc01b729 AJ |
4078 | if test -n "$ac_tool_prefix"; then |
4079 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
4080 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
4081 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4082 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4083 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
4084 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4085 | else | |
4086 | if test -n "$STRIP"; then | |
4087 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
4088 | else | |
4089 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4090 | for as_dir in $PATH | |
4091 | do | |
4092 | IFS=$as_save_IFS | |
4093 | test -z "$as_dir" && as_dir=. | |
4094 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4095 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4096 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
4097 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4098 | break 2 | |
4099 | fi | |
4100 | done | |
4101 | done | |
4102 | ||
4103 | fi | |
4104 | fi | |
4105 | STRIP=$ac_cv_prog_STRIP | |
4106 | if test -n "$STRIP"; then | |
4107 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
4108 | echo "${ECHO_T}$STRIP" >&6 | |
4109 | else | |
4110 | echo "$as_me:$LINENO: result: no" >&5 | |
4111 | echo "${ECHO_T}no" >&6 | |
4112 | fi | |
4113 | ||
4114 | fi | |
4115 | if test -z "$ac_cv_prog_STRIP"; then | |
4116 | ac_ct_STRIP=$STRIP | |
4117 | # Extract the first word of "strip", so it can be a program name with args. | |
4118 | set dummy strip; ac_word=$2 | |
4119 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4120 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4121 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
4122 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4123 | else | |
4124 | if test -n "$ac_ct_STRIP"; then | |
4125 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
4126 | else | |
4127 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4128 | for as_dir in $PATH | |
4129 | do | |
4130 | IFS=$as_save_IFS | |
4131 | test -z "$as_dir" && as_dir=. | |
4132 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4133 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4134 | ac_cv_prog_ac_ct_STRIP="strip" | |
4135 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4136 | break 2 | |
4137 | fi | |
4138 | done | |
4139 | done | |
4140 | ||
4141 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="strip" | |
4142 | fi | |
4143 | fi | |
4144 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
4145 | if test -n "$ac_ct_STRIP"; then | |
4146 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
4147 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
4148 | else | |
4149 | echo "$as_me:$LINENO: result: no" >&5 | |
4150 | echo "${ECHO_T}no" >&6 | |
4151 | fi | |
4152 | ||
4153 | STRIP=$ac_ct_STRIP | |
4154 | else | |
4155 | STRIP="$ac_cv_prog_STRIP" | |
4156 | fi | |
4157 | ||
4158 | if test -n "$ac_tool_prefix"; then | |
4159 | # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. | |
4160 | set dummy ${ac_tool_prefix}windres; ac_word=$2 | |
4161 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4162 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4163 | if test "${ac_cv_prog_WINDRES+set}" = set; then | |
4164 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4165 | else | |
4166 | if test -n "$WINDRES"; then | |
4167 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
4168 | else | |
4169 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4170 | for as_dir in $PATH | |
4171 | do | |
4172 | IFS=$as_save_IFS | |
4173 | test -z "$as_dir" && as_dir=. | |
4174 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4175 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4176 | ac_cv_prog_WINDRES="${ac_tool_prefix}windres" | |
4177 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4178 | break 2 | |
4179 | fi | |
4180 | done | |
4181 | done | |
4182 | ||
4183 | fi | |
4184 | fi | |
4185 | WINDRES=$ac_cv_prog_WINDRES | |
4186 | if test -n "$WINDRES"; then | |
4187 | echo "$as_me:$LINENO: result: $WINDRES" >&5 | |
4188 | echo "${ECHO_T}$WINDRES" >&6 | |
4189 | else | |
4190 | echo "$as_me:$LINENO: result: no" >&5 | |
4191 | echo "${ECHO_T}no" >&6 | |
4192 | fi | |
4193 | ||
4194 | fi | |
4195 | if test -z "$ac_cv_prog_WINDRES"; then | |
4196 | ac_ct_WINDRES=$WINDRES | |
4197 | # Extract the first word of "windres", so it can be a program name with args. | |
4198 | set dummy windres; ac_word=$2 | |
4199 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4200 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4201 | if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then | |
4202 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4203 | else | |
4204 | if test -n "$ac_ct_WINDRES"; then | |
4205 | ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. | |
4206 | else | |
4207 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4208 | for as_dir in $PATH | |
4209 | do | |
4210 | IFS=$as_save_IFS | |
4211 | test -z "$as_dir" && as_dir=. | |
4212 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4213 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4214 | ac_cv_prog_ac_ct_WINDRES="windres" | |
4215 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4216 | break 2 | |
4217 | fi | |
4218 | done | |
4219 | done | |
4220 | ||
4221 | test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES="false" | |
4222 | fi | |
4223 | fi | |
4224 | ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES | |
4225 | if test -n "$ac_ct_WINDRES"; then | |
4226 | echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5 | |
4227 | echo "${ECHO_T}$ac_ct_WINDRES" >&6 | |
4228 | else | |
4229 | echo "$as_me:$LINENO: result: no" >&5 | |
4230 | echo "${ECHO_T}no" >&6 | |
4231 | fi | |
4232 | ||
4233 | WINDRES=$ac_ct_WINDRES | |
4234 | else | |
4235 | WINDRES="$ac_cv_prog_WINDRES" | |
4236 | fi | |
4237 | ||
d7d4fdf8 AJ |
4238 | # Find a good install program. We prefer a C program (faster), |
4239 | # so one script is as good as another. But avoid the broken or | |
4240 | # incompatible versions: | |
4241 | # SysV /etc/install, /usr/sbin/install | |
4242 | # SunOS /usr/etc/install | |
4243 | # IRIX /sbin/install | |
4244 | # AIX /bin/install | |
f5818d2f | 4245 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
18ad24a7 | 4246 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
d7d4fdf8 AJ |
4247 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
4248 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
4249 | # ./install, which can be erroneously created by make from ./install.sh. | |
daa2886c AJ |
4250 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
4251 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
d7d4fdf8 | 4252 | if test -z "$INSTALL"; then |
f5818d2f AJ |
4253 | if test "${ac_cv_path_install+set}" = set; then |
4254 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d7d4fdf8 | 4255 | else |
daa2886c AJ |
4256 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4257 | for as_dir in $PATH | |
4258 | do | |
4259 | IFS=$as_save_IFS | |
4260 | test -z "$as_dir" && as_dir=. | |
4261 | # Account for people who put trailing slashes in PATH elements. | |
4262 | case $as_dir/ in | |
4263 | ./ | .// | /cC/* | \ | |
4264 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
4265 | /usr/ucb/* ) ;; | |
4266 | *) | |
4267 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
4268 | # Don't use installbsd from OSF since it installs stuff as root | |
4269 | # by default. | |
4270 | for ac_prog in ginstall scoinst install; do | |
4271 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4272 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
4273 | if test $ac_prog = install && | |
4274 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4275 | # AIX install. It has an incompatible calling convention. | |
4276 | : | |
4277 | elif test $ac_prog = install && | |
4278 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4279 | # program-specific install script used by HP pwplus--don't use. | |
4280 | : | |
4281 | else | |
4282 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
4283 | break 3 | |
4284 | fi | |
4285 | fi | |
d7d4fdf8 | 4286 | done |
daa2886c AJ |
4287 | done |
4288 | ;; | |
4289 | esac | |
4290 | done | |
4291 | ||
d7d4fdf8 AJ |
4292 | |
4293 | fi | |
4294 | if test "${ac_cv_path_install+set}" = set; then | |
f5818d2f | 4295 | INSTALL=$ac_cv_path_install |
d7d4fdf8 AJ |
4296 | else |
4297 | # As a last resort, use the slow shell script. We don't cache a | |
4298 | # path for INSTALL within a source directory, because that will | |
4299 | # break other packages using the cache if that directory is | |
4300 | # removed, or if the path is relative. | |
f5818d2f | 4301 | INSTALL=$ac_install_sh |
d7d4fdf8 AJ |
4302 | fi |
4303 | fi | |
daa2886c | 4304 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
f5818d2f | 4305 | echo "${ECHO_T}$INSTALL" >&6 |
d7d4fdf8 AJ |
4306 | |
4307 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
4308 | # It thinks the first close brace ends the variable substitution. | |
4309 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
4310 | ||
f5818d2f | 4311 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
18ad24a7 | 4312 | |
d7d4fdf8 AJ |
4313 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
4314 | ||
daa2886c | 4315 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
f5818d2f AJ |
4316 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
4317 | LN_S=$as_ln_s | |
4318 | if test "$LN_S" = "ln -s"; then | |
daa2886c | 4319 | echo "$as_me:$LINENO: result: yes" >&5 |
f5818d2f | 4320 | echo "${ECHO_T}yes" >&6 |
641ee76a | 4321 | else |
daa2886c | 4322 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
f5818d2f | 4323 | echo "${ECHO_T}no, using $LN_S" >&6 |
641ee76a AJ |
4324 | fi |
4325 | ||
df234a9f AJ |
4326 | echo "$as_me:$LINENO: checking whether ln works" >&5 |
4327 | echo $ECHO_N "checking whether ln works... $ECHO_C" >&6 | |
4328 | rm -f conf$$ conf$$.file | |
4329 | echo >conf$$.file | |
4330 | if ln conf$$.file conf$$ 2>/dev/null; then | |
4331 | LN=ln | |
4332 | ||
4333 | echo "$as_me:$LINENO: result: yes" >&5 | |
4334 | echo "${ECHO_T}yes" >&6 | |
4335 | else | |
4336 | LN="cp -p" | |
4337 | ||
4338 | echo "$as_me:$LINENO: result: no, using $LN" >&5 | |
4339 | echo "${ECHO_T}no, using $LN" >&6 | |
4340 | fi | |
4341 | rm -f conf$$ conf$$.file | |
c7c217b3 AJ |
4342 | # Extract the first word of "c2man", so it can be a program name with args. |
4343 | set dummy c2man; ac_word=$2 | |
daa2886c | 4344 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
f5818d2f AJ |
4345 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
4346 | if test "${ac_cv_prog_C2MAN+set}" = set; then | |
4347 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c7c217b3 AJ |
4348 | else |
4349 | if test -n "$C2MAN"; then | |
4350 | ac_cv_prog_C2MAN="$C2MAN" # Let the user override the test. | |
4351 | else | |
daa2886c AJ |
4352 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4353 | for as_dir in $PATH | |
4354 | do | |
4355 | IFS=$as_save_IFS | |
4356 | test -z "$as_dir" && as_dir=. | |
4357 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4358 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4359 | ac_cv_prog_C2MAN="c2man" | |
4360 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4361 | break 2 | |
4362 | fi | |
4363 | done | |
f5818d2f AJ |
4364 | done |
4365 | ||
e0df32ff | 4366 | test -z "$ac_cv_prog_C2MAN" && ac_cv_prog_C2MAN="\$(TOPSRCDIR)/tools/c2man.pl" |
c7c217b3 AJ |
4367 | fi |
4368 | fi | |
f5818d2f | 4369 | C2MAN=$ac_cv_prog_C2MAN |
c7c217b3 | 4370 | if test -n "$C2MAN"; then |
daa2886c | 4371 | echo "$as_me:$LINENO: result: $C2MAN" >&5 |
f5818d2f | 4372 | echo "${ECHO_T}$C2MAN" >&6 |
c7c217b3 | 4373 | else |
daa2886c | 4374 | echo "$as_me:$LINENO: result: no" >&5 |
f5818d2f | 4375 | echo "${ECHO_T}no" >&6 |
c7c217b3 AJ |
4376 | fi |
4377 | ||
ffe6b767 JJ |
4378 | # Extract the first word of "ldconfig", so it can be a program name with args. |
4379 | set dummy ldconfig; ac_word=$2 | |
daa2886c | 4380 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
f5818d2f AJ |
4381 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
4382 | if test "${ac_cv_path_LDCONFIG+set}" = set; then | |
4383 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ffe6b767 | 4384 | else |
f5818d2f AJ |
4385 | case $LDCONFIG in |
4386 | [\\/]* | ?:[\\/]*) | |
ffe6b767 JJ |
4387 | ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path. |
4388 | ;; | |
4389 | *) | |
daa2886c | 4390 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
91372b39 | 4391 | for as_dir in /sbin /usr/sbin $PATH |
daa2886c AJ |
4392 | do |
4393 | IFS=$as_save_IFS | |
4394 | test -z "$as_dir" && as_dir=. | |
4395 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4396 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4397 | ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext" | |
4398 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4399 | break 2 | |
4400 | fi | |
4401 | done | |
f5818d2f AJ |
4402 | done |
4403 | ||
318f4cef | 4404 | test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true" |
ffe6b767 JJ |
4405 | ;; |
4406 | esac | |
4407 | fi | |
f5818d2f | 4408 | LDCONFIG=$ac_cv_path_LDCONFIG |
79e44abe | 4409 | |
f5818d2f | 4410 | if test -n "$LDCONFIG"; then |
daa2886c | 4411 | echo "$as_me:$LINENO: result: $LDCONFIG" >&5 |
f5818d2f | 4412 | echo "${ECHO_T}$LDCONFIG" >&6 |
d48ca948 | 4413 | else |
daa2886c | 4414 | echo "$as_me:$LINENO: result: no" >&5 |
f5818d2f | 4415 | echo "${ECHO_T}no" >&6 |
d48ca948 HT |
4416 | fi |
4417 | ||
daa2886c | 4418 | |
fc01b729 AJ |
4419 | case $host_os in |
4420 | cygwin*|mingw32*) | |
4421 | if test -n "$ac_tool_prefix"; then | |
4422 | # Extract the first word of "${ac_tool_prefix}ld -r --enable-stdcall-fixup", so it can be a program name with args. | |
4423 | set dummy ${ac_tool_prefix}ld -r --enable-stdcall-fixup; ac_word=$2 | |
4424 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4425 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4426 | if test "${ac_cv_prog_LDCOMBINE+set}" = set; then | |
4427 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4428 | else | |
4429 | if test -n "$LDCOMBINE"; then | |
4430 | ac_cv_prog_LDCOMBINE="$LDCOMBINE" # Let the user override the test. | |
4431 | else | |
4432 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4433 | for as_dir in $PATH | |
4434 | do | |
4435 | IFS=$as_save_IFS | |
4436 | test -z "$as_dir" && as_dir=. | |
4437 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4438 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4439 | ac_cv_prog_LDCOMBINE="${ac_tool_prefix}ld -r --enable-stdcall-fixup" | |
4440 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4441 | break 2 | |
4442 | fi | |
4443 | done | |
4444 | done | |
4445 | ||
4446 | fi | |
4447 | fi | |
4448 | LDCOMBINE=$ac_cv_prog_LDCOMBINE | |
4449 | if test -n "$LDCOMBINE"; then | |
4450 | echo "$as_me:$LINENO: result: $LDCOMBINE" >&5 | |
4451 | echo "${ECHO_T}$LDCOMBINE" >&6 | |
4452 | else | |
4453 | echo "$as_me:$LINENO: result: no" >&5 | |
4454 | echo "${ECHO_T}no" >&6 | |
4455 | fi | |
4456 | ||
4457 | fi | |
4458 | if test -z "$ac_cv_prog_LDCOMBINE"; then | |
4459 | ac_ct_LDCOMBINE=$LDCOMBINE | |
4460 | # Extract the first word of "ld -r --enable-stdcall-fixup", so it can be a program name with args. | |
4461 | set dummy ld -r --enable-stdcall-fixup; ac_word=$2 | |
4462 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4463 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4464 | if test "${ac_cv_prog_ac_ct_LDCOMBINE+set}" = set; then | |
4465 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4466 | else | |
4467 | if test -n "$ac_ct_LDCOMBINE"; then | |
4468 | ac_cv_prog_ac_ct_LDCOMBINE="$ac_ct_LDCOMBINE" # Let the user override the test. | |
4469 | else | |
4470 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4471 | for as_dir in $PATH | |
4472 | do | |
4473 | IFS=$as_save_IFS | |
4474 | test -z "$as_dir" && as_dir=. | |
4475 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4476 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4477 | ac_cv_prog_ac_ct_LDCOMBINE="ld -r --enable-stdcall-fixup" | |
4478 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4479 | break 2 | |
4480 | fi | |
4481 | done | |
4482 | done | |
4483 | ||
4484 | test -z "$ac_cv_prog_ac_ct_LDCOMBINE" && ac_cv_prog_ac_ct_LDCOMBINE="ld -r --enable-stdcall-fixup" | |
4485 | fi | |
4486 | fi | |
4487 | ac_ct_LDCOMBINE=$ac_cv_prog_ac_ct_LDCOMBINE | |
4488 | if test -n "$ac_ct_LDCOMBINE"; then | |
4489 | echo "$as_me:$LINENO: result: $ac_ct_LDCOMBINE" >&5 | |
4490 | echo "${ECHO_T}$ac_ct_LDCOMBINE" >&6 | |
4491 | else | |
4492 | echo "$as_me:$LINENO: result: no" >&5 | |
4493 | echo "${ECHO_T}no" >&6 | |
4494 | fi | |
4495 | ||
4496 | LDCOMBINE=$ac_ct_LDCOMBINE | |
4497 | else | |
4498 | LDCOMBINE="$ac_cv_prog_LDCOMBINE" | |
4499 | fi | |
4500 | ;; | |
4501 | *) | |
4502 | if test -n "$ac_tool_prefix"; then | |
4503 | # Extract the first word of "${ac_tool_prefix}ld -r", so it can be a program name with args. | |
4504 | set dummy ${ac_tool_prefix}ld -r; ac_word=$2 | |
4505 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4506 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4507 | if test "${ac_cv_prog_LDCOMBINE+set}" = set; then | |
4508 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4509 | else | |
4510 | if test -n "$LDCOMBINE"; then | |
4511 | ac_cv_prog_LDCOMBINE="$LDCOMBINE" # Let the user override the test. | |
4512 | else | |
4513 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4514 | for as_dir in $PATH | |
4515 | do | |
4516 | IFS=$as_save_IFS | |
4517 | test -z "$as_dir" && as_dir=. | |
4518 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4519 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4520 | ac_cv_prog_LDCOMBINE="${ac_tool_prefix}ld -r" | |
4521 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4522 | break 2 | |
4523 | fi | |
4524 | done | |
4525 | done | |
4526 | ||
4527 | fi | |
4528 | fi | |
4529 | LDCOMBINE=$ac_cv_prog_LDCOMBINE | |
4530 | if test -n "$LDCOMBINE"; then | |
4531 | echo "$as_me:$LINENO: result: $LDCOMBINE" >&5 | |
4532 | echo "${ECHO_T}$LDCOMBINE" >&6 | |
4533 | else | |
4534 | echo "$as_me:$LINENO: result: no" >&5 | |
4535 | echo "${ECHO_T}no" >&6 | |
4536 | fi | |
4537 | ||
4538 | fi | |
4539 | if test -z "$ac_cv_prog_LDCOMBINE"; then | |
4540 | ac_ct_LDCOMBINE=$LDCOMBINE | |
4541 | # Extract the first word of "ld -r", so it can be a program name with args. | |
4542 | set dummy ld -r; ac_word=$2 | |
4543 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4544 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4545 | if test "${ac_cv_prog_ac_ct_LDCOMBINE+set}" = set; then | |
4546 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4547 | else | |
4548 | if test -n "$ac_ct_LDCOMBINE"; then | |
4549 | ac_cv_prog_ac_ct_LDCOMBINE="$ac_ct_LDCOMBINE" # Let the user override the test. | |
4550 | else | |
4551 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4552 | for as_dir in $PATH | |
4553 | do | |
4554 | IFS=$as_save_IFS | |
4555 | test -z "$as_dir" && as_dir=. | |
4556 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4557 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4558 | ac_cv_prog_ac_ct_LDCOMBINE="ld -r" | |
4559 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4560 | break 2 | |
4561 | fi | |
4562 | done | |
4563 | done | |
4564 | ||
4565 | test -z "$ac_cv_prog_ac_ct_LDCOMBINE" && ac_cv_prog_ac_ct_LDCOMBINE="ld -r" | |
4566 | fi | |
4567 | fi | |
4568 | ac_ct_LDCOMBINE=$ac_cv_prog_ac_ct_LDCOMBINE | |
4569 | if test -n "$ac_ct_LDCOMBINE"; then | |
4570 | echo "$as_me:$LINENO: result: $ac_ct_LDCOMBINE" >&5 | |
4571 | echo "${ECHO_T}$ac_ct_LDCOMBINE" >&6 | |
4572 | else | |
4573 | echo "$as_me:$LINENO: result: no" >&5 | |
4574 | echo "${ECHO_T}no" >&6 | |
4575 | fi | |
4576 | ||
4577 | LDCOMBINE=$ac_ct_LDCOMBINE | |
4578 | else | |
4579 | LDCOMBINE="$ac_cv_prog_LDCOMBINE" | |
4580 | fi | |
4581 | ;; | |
4582 | esac | |
4583 | ||
a9be64e2 PS |
4584 | for ac_prog in lclint lint |
4585 | do | |
f5818d2f | 4586 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
a9be64e2 | 4587 | set dummy $ac_prog; ac_word=$2 |
daa2886c | 4588 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
f5818d2f AJ |
4589 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
4590 | if test "${ac_cv_prog_LINT+set}" = set; then | |
4591 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a9be64e2 PS |
4592 | else |
4593 | if test -n "$LINT"; then | |
4594 | ac_cv_prog_LINT="$LINT" # Let the user override the test. | |
4595 | else | |
daa2886c AJ |
4596 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4597 | for as_dir in $PATH | |
4598 | do | |
4599 | IFS=$as_save_IFS | |
4600 | test -z "$as_dir" && as_dir=. | |
4601 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4602 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4603 | ac_cv_prog_LINT="$ac_prog" | |
4604 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4605 | break 2 | |
4606 | fi | |
4607 | done | |
f5818d2f AJ |
4608 | done |
4609 | ||
a9be64e2 PS |
4610 | fi |
4611 | fi | |
f5818d2f | 4612 | LINT=$ac_cv_prog_LINT |
a9be64e2 | 4613 | if test -n "$LINT"; then |
daa2886c | 4614 | echo "$as_me:$LINENO: result: $LINT" >&5 |
f5818d2f | 4615 | echo "${ECHO_T}$LINT" >&6 |
a9be64e2 | 4616 | else |
daa2886c | 4617 | echo "$as_me:$LINENO: result: no" >&5 |
f5818d2f | 4618 | echo "${ECHO_T}no" >&6 |
a9be64e2 PS |
4619 | fi |
4620 | ||
f5818d2f | 4621 | test -n "$LINT" && break |
a9be64e2 PS |
4622 | done |
4623 | ||
4624 | if test "$LINT" = "lint" | |
4625 | then | |
4626 | LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4" | |
4627 | fi | |
4628 | ||
daa2886c AJ |
4629 | |
4630 | ||
daa2886c AJ |
4631 | |
4632 | ||
4633 | echo "$as_me:$LINENO: checking for sqrt in -lm" >&5 | |
f5818d2f AJ |
4634 | echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6 |
4635 | if test "${ac_cv_lib_m_sqrt+set}" = set; then | |
4636 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13277480 | 4637 | else |
f5818d2f | 4638 | ac_check_lib_save_LIBS=$LIBS |
13277480 | 4639 | LIBS="-lm $LIBS" |
f5818d2f | 4640 | cat >conftest.$ac_ext <<_ACEOF |
daa2886c | 4641 | #line $LINENO "configure" |
13277480 | 4642 | #include "confdefs.h" |
f5818d2f | 4643 | |
13277480 | 4644 | /* Override any gcc2 internal prototype to avoid an error. */ |
f5818d2f AJ |
4645 | #ifdef __cplusplus |
4646 | extern "C" | |
4647 | #endif | |
13277480 | 4648 | /* We use char because int might match the return type of a gcc2 |
f5818d2f AJ |
4649 | builtin and then its argument prototype would still apply. */ |
4650 | char sqrt (); | |
daa2886c AJ |
4651 | #ifdef F77_DUMMY_MAIN |
4652 | # ifdef __cplusplus | |
4653 | extern "C" | |
4654 | # endif | |
4655 | int F77_DUMMY_MAIN() { return 1; } | |
4656 | #endif | |
f5818d2f AJ |
4657 | int |
4658 | main () | |
4659 | { | |
4660 | sqrt (); | |
4661 | ; | |
4662 | return 0; | |
4663 | } | |
4664 | _ACEOF | |
4665 | rm -f conftest.$ac_objext conftest$ac_exeext | |
daa2886c | 4666 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f5818d2f AJ |
4667 | (eval $ac_link) 2>&5 |
4668 | ac_status=$? | |
daa2886c | 4669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
4670 | (exit $ac_status); } && |
4671 | { ac_try='test -s conftest$ac_exeext' | |
daa2886c | 4672 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
4673 | (eval $ac_try) 2>&5 |
4674 | ac_status=$? | |
daa2886c | 4675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
4676 | (exit $ac_status); }; }; then |
4677 | ac_cv_lib_m_sqrt=yes | |
4678 | else | |
4679 | echo "$as_me: failed program was:" >&5 | |
4680 | cat conftest.$ac_ext >&5 | |
4681 | ac_cv_lib_m_sqrt=no | |
4682 | fi | |
4683 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
4684 | LIBS=$ac_check_lib_save_LIBS | |
4685 | fi | |
daa2886c | 4686 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5 |
f5818d2f AJ |
4687 | echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6 |
4688 | if test $ac_cv_lib_m_sqrt = yes; then | |
daa2886c | 4689 | cat >>confdefs.h <<_ACEOF |
f5818d2f | 4690 | #define HAVE_LIBM 1 |
daa2886c | 4691 | _ACEOF |
f5818d2f AJ |
4692 | |
4693 | LIBS="-lm $LIBS" | |
13277480 HA |
4694 | |
4695 | fi | |
13277480 | 4696 | |
daa2886c AJ |
4697 | |
4698 | echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5 | |
f5818d2f AJ |
4699 | echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6 |
4700 | if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then | |
4701 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
902da699 | 4702 | else |
f5818d2f | 4703 | ac_check_lib_save_LIBS=$LIBS |
902da699 | 4704 | LIBS="-li386 $LIBS" |
f5818d2f | 4705 | cat >conftest.$ac_ext <<_ACEOF |
daa2886c | 4706 | #line $LINENO "configure" |
902da699 | 4707 | #include "confdefs.h" |
f5818d2f | 4708 | |
59730ae1 | 4709 | /* Override any gcc2 internal prototype to avoid an error. */ |
f5818d2f AJ |
4710 | #ifdef __cplusplus |
4711 | extern "C" | |
4712 | #endif | |
e2bfa4c7 | 4713 | /* We use char because int might match the return type of a gcc2 |
f5818d2f AJ |
4714 | builtin and then its argument prototype would still apply. */ |
4715 | char i386_set_ldt (); | |
daa2886c AJ |
4716 | #ifdef F77_DUMMY_MAIN |
4717 | # ifdef __cplusplus | |
4718 | extern "C" | |
4719 | # endif | |
4720 | int F77_DUMMY_MAIN() { return 1; } | |
4721 | #endif | |
f5818d2f AJ |
4722 | int |
4723 | main () | |
4724 | { | |
4725 | i386_set_ldt (); | |
4726 | ; | |
4727 | return 0; | |
4728 | } | |
4729 | _ACEOF | |
4730 | rm -f conftest.$ac_objext conftest$ac_exeext | |
daa2886c | 4731 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f5818d2f AJ |
4732 | (eval $ac_link) 2>&5 |
4733 | ac_status=$? | |
daa2886c | 4734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
4735 | (exit $ac_status); } && |
4736 | { ac_try='test -s conftest$ac_exeext' | |
daa2886c | 4737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
4738 | (eval $ac_try) 2>&5 |
4739 | ac_status=$? | |
daa2886c | 4740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
4741 | (exit $ac_status); }; }; then |
4742 | ac_cv_lib_i386_i386_set_ldt=yes | |
4743 | else | |
4744 | echo "$as_me: failed program was:" >&5 | |
4745 | cat conftest.$ac_ext >&5 | |
4746 | ac_cv_lib_i386_i386_set_ldt=no | |
4747 | fi | |
4748 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
4749 | LIBS=$ac_check_lib_save_LIBS | |
4750 | fi | |
daa2886c | 4751 | echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5 |
f5818d2f AJ |
4752 | echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6 |
4753 | if test $ac_cv_lib_i386_i386_set_ldt = yes; then | |
daa2886c | 4754 | cat >>confdefs.h <<_ACEOF |
f5818d2f | 4755 | #define HAVE_LIBI386 1 |
daa2886c | 4756 | _ACEOF |
02e90087 AJ |
4757 | |
4758 | LIBS="-li386 $LIBS" | |
4759 | ||
02e90087 AJ |
4760 | fi |
4761 | ||
daa2886c AJ |
4762 | |
4763 | echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5 | |
f5818d2f AJ |
4764 | echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6 |
4765 | if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then | |
4766 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ecc7669d | 4767 | else |
f5818d2f | 4768 | ac_check_lib_save_LIBS=$LIBS |
ecc7669d | 4769 | LIBS="-lossaudio $LIBS" |
f5818d2f | 4770 | cat >conftest.$ac_ext <<_ACEOF |
daa2886c | 4771 | #line $LINENO "configure" |
ecc7669d | 4772 | #include "confdefs.h" |
f5818d2f | 4773 | |
ecc7669d | 4774 | /* Override any gcc2 internal prototype to avoid an error. */ |
f5818d2f AJ |
4775 | #ifdef __cplusplus |
4776 | extern "C" | |
4777 | #endif | |
ecc7669d | 4778 | /* We use char because int might match the return type of a gcc2 |
f5818d2f AJ |
4779 | builtin and then its argument prototype would still apply. */ |
4780 | char _oss_ioctl (); | |
daa2886c AJ |
4781 | #ifdef F77_DUMMY_MAIN |
4782 | # ifdef __cplusplus | |
4783 | extern "C" | |
4784 | # endif | |
4785 | int F77_DUMMY_MAIN() { return 1; } | |
4786 | #endif | |
f5818d2f AJ |
4787 | int |
4788 | main () | |
4789 | { | |
4790 | _oss_ioctl (); | |
4791 | ; | |
4792 | return 0; | |
4793 | } | |
4794 | _ACEOF | |
4795 | rm -f conftest.$ac_objext conftest$ac_exeext | |
daa2886c | 4796 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f5818d2f AJ |
4797 | (eval $ac_link) 2>&5 |
4798 | ac_status=$? | |
daa2886c | 4799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
4800 | (exit $ac_status); } && |
4801 | { ac_try='test -s conftest$ac_exeext' | |
daa2886c | 4802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
4803 | (eval $ac_try) 2>&5 |
4804 | ac_status=$? | |
daa2886c | 4805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
4806 | (exit $ac_status); }; }; then |
4807 | ac_cv_lib_ossaudio__oss_ioctl=yes | |
4808 | else | |
4809 | echo "$as_me: failed program was:" >&5 | |
4810 | cat conftest.$ac_ext >&5 | |
4811 | ac_cv_lib_ossaudio__oss_ioctl=no | |
4812 | fi | |
4813 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
4814 | LIBS=$ac_check_lib_save_LIBS | |
4815 | fi | |
daa2886c | 4816 | echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5 |
f5818d2f AJ |
4817 | echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6 |
4818 | if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then | |
daa2886c | 4819 | cat >>confdefs.h <<_ACEOF |
f5818d2f | 4820 | #define HAVE_LIBOSSAUDIO 1 |
daa2886c | 4821 | _ACEOF |
ecc7669d TV |
4822 | |
4823 | LIBS="-lossaudio $LIBS" | |
4824 | ||
ecc7669d TV |
4825 | fi |
4826 | ||
daa2886c | 4827 | |
2e8e2334 UW |
4828 | for ac_func in iswalnum |
4829 | do | |
f5818d2f | 4830 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
daa2886c | 4831 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
f5818d2f AJ |
4832 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
4833 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
4834 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4835 | else | |
4836 | cat >conftest.$ac_ext <<_ACEOF | |
daa2886c | 4837 | #line $LINENO "configure" |
2e8e2334 UW |
4838 | #include "confdefs.h" |
4839 | /* System header to define __stub macros and hopefully few prototypes, | |
f5818d2f | 4840 | which can conflict with char $ac_func (); below. */ |
2e8e2334 UW |
4841 | #include <assert.h> |
4842 | /* Override any gcc2 internal prototype to avoid an error. */ | |
f5818d2f AJ |
4843 | #ifdef __cplusplus |
4844 | extern "C" | |
4845 | #endif | |
2e8e2334 | 4846 | /* We use char because int might match the return type of a gcc2 |
f5818d2f AJ |
4847 | builtin and then its argument prototype would still apply. */ |
4848 | char $ac_func (); | |
4849 | char (*f) (); | |
2e8e2334 | 4850 | |
daa2886c AJ |
4851 | #ifdef F77_DUMMY_MAIN |
4852 | # ifdef __cplusplus | |
4853 | extern "C" | |
4854 | # endif | |
4855 | int F77_DUMMY_MAIN() { return 1; } | |
4856 | #endif | |
f5818d2f AJ |
4857 | int |
4858 | main () | |
4859 | { | |
2e8e2334 UW |
4860 | /* The GNU C library defines this for functions which it implements |
4861 | to always fail with ENOSYS. Some functions are actually named | |
4862 | something starting with __ and the normal name is an alias. */ | |
4863 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
4864 | choke me | |
4865 | #else | |
f5818d2f | 4866 | f = $ac_func; |
2e8e2334 UW |
4867 | #endif |
4868 | ||
f5818d2f AJ |
4869 | ; |
4870 | return 0; | |
4871 | } | |
4872 | _ACEOF | |
4873 | rm -f conftest.$ac_objext conftest$ac_exeext | |
daa2886c | 4874 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f5818d2f AJ |
4875 | (eval $ac_link) 2>&5 |
4876 | ac_status=$? | |
daa2886c | 4877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
4878 | (exit $ac_status); } && |
4879 | { ac_try='test -s conftest$ac_exeext' | |
daa2886c | 4880 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
4881 | (eval $ac_try) 2>&5 |
4882 | ac_status=$? | |
daa2886c | 4883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
4884 | (exit $ac_status); }; }; then |
4885 | eval "$as_ac_var=yes" | |
4886 | else | |
4887 | echo "$as_me: failed program was:" >&5 | |
4888 | cat conftest.$ac_ext >&5 | |
4889 | eval "$as_ac_var=no" | |
4890 | fi | |
4891 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
4892 | fi | |
daa2886c | 4893 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
f5818d2f AJ |
4894 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
4895 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
daa2886c | 4896 | cat >>confdefs.h <<_ACEOF |
f5818d2f | 4897 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
daa2886c | 4898 | _ACEOF |
f5818d2f AJ |
4899 | |
4900 | else | |
4901 | ||
daa2886c | 4902 | echo "$as_me:$LINENO: checking for iswalnum in -lw" >&5 |
f5818d2f AJ |
4903 | echo $ECHO_N "checking for iswalnum in -lw... $ECHO_C" >&6 |
4904 | if test "${ac_cv_lib_w_iswalnum+set}" = set; then | |
4905 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4906 | else | |
4907 | ac_check_lib_save_LIBS=$LIBS | |
02e90087 | 4908 | LIBS="-lw $LIBS" |
f5818d2f | 4909 | cat >conftest.$ac_ext <<_ACEOF |
daa2886c | 4910 | #line $LINENO "configure" |
02e90087 | 4911 | #include "confdefs.h" |
f5818d2f | 4912 | |
02e90087 | 4913 | /* Override any gcc2 internal prototype to avoid an error. */ |
f5818d2f AJ |
4914 | #ifdef __cplusplus |
4915 | extern "C" | |
4916 | #endif | |
02e90087 | 4917 | /* We use char because int might match the return type of a gcc2 |
f5818d2f AJ |
4918 | builtin and then its argument prototype would still apply. */ |
4919 | char iswalnum (); | |
daa2886c AJ |
4920 | #ifdef F77_DUMMY_MAIN |
4921 | # ifdef __cplusplus | |
4922 | extern "C" | |
4923 | # endif | |
4924 | int F77_DUMMY_MAIN() { return 1; } | |
4925 | #endif | |
f5818d2f AJ |
4926 | int |
4927 | main () | |
4928 | { | |
4929 | iswalnum (); | |
4930 | ; | |
4931 | return 0; | |
4932 | } | |
4933 | _ACEOF | |
4934 | rm -f conftest.$ac_objext conftest$ac_exeext | |
daa2886c | 4935 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f5818d2f AJ |
4936 | (eval $ac_link) 2>&5 |
4937 | ac_status=$? | |
daa2886c | 4938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
4939 | (exit $ac_status); } && |
4940 | { ac_try='test -s conftest$ac_exeext' | |
daa2886c | 4941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
4942 | (eval $ac_try) 2>&5 |
4943 | ac_status=$? | |
daa2886c | 4944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
4945 | (exit $ac_status); }; }; then |
4946 | ac_cv_lib_w_iswalnum=yes | |
4947 | else | |
4948 | echo "$as_me: failed program was:" >&5 | |
4949 | cat conftest.$ac_ext >&5 | |
4950 | ac_cv_lib_w_iswalnum=no | |
4951 | fi | |
4952 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
4953 | LIBS=$ac_check_lib_save_LIBS | |
4954 | fi | |
daa2886c | 4955 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_iswalnum" >&5 |
f5818d2f AJ |
4956 | echo "${ECHO_T}$ac_cv_lib_w_iswalnum" >&6 |
4957 | if test $ac_cv_lib_w_iswalnum = yes; then | |
daa2886c | 4958 | cat >>confdefs.h <<_ACEOF |
f5818d2f | 4959 | #define HAVE_LIBW 1 |
daa2886c | 4960 | _ACEOF |
02e90087 AJ |
4961 | |
4962 | LIBS="-lw $LIBS" | |
4963 | ||
02e90087 AJ |
4964 | fi |
4965 | ||
2e8e2334 UW |
4966 | fi |
4967 | done | |
4968 | ||
daa2886c | 4969 | |
ea584724 PS |
4970 | for ac_func in gethostbyname |
4971 | do | |
f5818d2f | 4972 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
daa2886c | 4973 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
f5818d2f AJ |
4974 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
4975 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
4976 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4977 | else | |
4978 | cat >conftest.$ac_ext <<_ACEOF | |
daa2886c | 4979 | #line $LINENO "configure" |
ea584724 PS |
4980 | #include "confdefs.h" |
4981 | /* System header to define __stub macros and hopefully few prototypes, | |
f5818d2f | 4982 | which can conflict with char $ac_func (); below. */ |
ea584724 PS |
4983 | #include <assert.h> |
4984 | /* Override any gcc2 internal prototype to avoid an error. */ | |
f5818d2f AJ |
4985 | #ifdef __cplusplus |
4986 | extern "C" | |
4987 | #endif | |
ea584724 | 4988 | /* We use char because int might match the return type of a gcc2 |
f5818d2f AJ |
4989 | builtin and then its argument prototype would still apply. */ |
4990 | char $ac_func (); | |
4991 | char (*f) (); | |
ea584724 | 4992 | |
daa2886c AJ |
4993 | #ifdef F77_DUMMY_MAIN |
4994 | # ifdef __cplusplus | |
4995 | extern "C" | |
4996 | # endif | |
4997 | int F77_DUMMY_MAIN() { return 1; } | |
4998 | #endif | |
f5818d2f AJ |
4999 | int |
5000 | main () | |
5001 | { | |
ea584724 PS |
5002 | /* The GNU C library defines this for functions which it implements |
5003 | to always fail with ENOSYS. Some functions are actually named | |
5004 | something starting with __ and the normal name is an alias. */ | |
5005 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5006 | choke me | |
5007 | #else | |
f5818d2f | 5008 | f = $ac_func; |
ea584724 PS |
5009 | #endif |
5010 | ||
f5818d2f AJ |
5011 | ; |
5012 | return 0; | |
5013 | } | |
5014 | _ACEOF | |
5015 | rm -f conftest.$ac_objext conftest$ac_exeext | |
daa2886c | 5016 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f5818d2f AJ |
5017 | (eval $ac_link) 2>&5 |
5018 | ac_status=$? | |
daa2886c | 5019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
5020 | (exit $ac_status); } && |
5021 | { ac_try='test -s conftest$ac_exeext' | |
daa2886c | 5022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
5023 | (eval $ac_try) 2>&5 |
5024 | ac_status=$? | |
daa2886c | 5025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
5026 | (exit $ac_status); }; }; then |
5027 | eval "$as_ac_var=yes" | |
5028 | else | |
5029 | echo "$as_me: failed program was:" >&5 | |
5030 | cat conftest.$ac_ext >&5 | |
5031 | eval "$as_ac_var=no" | |
5032 | fi | |
5033 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
5034 | fi | |
daa2886c | 5035 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
f5818d2f AJ |
5036 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
5037 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
daa2886c | 5038 | cat >>confdefs.h <<_ACEOF |
f5818d2f | 5039 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
daa2886c | 5040 | _ACEOF |
f5818d2f AJ |
5041 | |
5042 | else | |
5043 | ||
daa2886c | 5044 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
f5818d2f AJ |
5045 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 |
5046 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
5047 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5048 | else | |
5049 | ac_check_lib_save_LIBS=$LIBS | |
2e8e2334 | 5050 | LIBS="-lnsl $LIBS" |
f5818d2f | 5051 | cat >conftest.$ac_ext <<_ACEOF |
daa2886c | 5052 | #line $LINENO "configure" |
ea584724 | 5053 | #include "confdefs.h" |
f5818d2f | 5054 | |
ea584724 | 5055 | /* Override any gcc2 internal prototype to avoid an error. */ |
f5818d2f AJ |
5056 | #ifdef __cplusplus |
5057 | extern "C" | |
5058 | #endif | |
ea584724 | 5059 | /* We use char because int might match the return type of a gcc2 |
f5818d2f AJ |
5060 | builtin and then its argument prototype would still apply. */ |
5061 | char gethostbyname (); | |
daa2886c AJ |
5062 | #ifdef F77_DUMMY_MAIN |
5063 | # ifdef __cplusplus | |
5064 | extern "C" | |
5065 | # endif | |
5066 | int F77_DUMMY_MAIN() { return 1; } | |
5067 | #endif | |
f5818d2f AJ |
5068 | int |
5069 | main () | |
5070 | { | |
5071 | gethostbyname (); | |
5072 | ; | |
5073 | return 0; | |
5074 | } | |
5075 | _ACEOF | |
5076 | rm -f conftest.$ac_objext conftest$ac_exeext | |
daa2886c | 5077 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f5818d2f AJ |
5078 | (eval $ac_link) 2>&5 |
5079 | ac_status=$? | |
daa2886c | 5080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
5081 | (exit $ac_status); } && |
5082 | { ac_try='test -s conftest$ac_exeext' | |
daa2886c | 5083 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
5084 | (eval $ac_try) 2>&5 |
5085 | ac_status=$? | |
daa2886c | 5086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
5087 | (exit $ac_status); }; }; then |
5088 | ac_cv_lib_nsl_gethostbyname=yes | |
5089 | else | |
5090 | echo "$as_me: failed program was:" >&5 | |
5091 | cat conftest.$ac_ext >&5 | |
5092 | ac_cv_lib_nsl_gethostbyname=no | |
5093 | fi | |
5094 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
5095 | LIBS=$ac_check_lib_save_LIBS | |
5096 | fi | |
daa2886c | 5097 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
f5818d2f AJ |
5098 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 |
5099 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
daa2886c | 5100 | cat >>confdefs.h <<_ACEOF |
f5818d2f | 5101 | #define HAVE_LIBNSL 1 |
daa2886c | 5102 | _ACEOF |
ea584724 | 5103 | |
2e8e2334 UW |
5104 | LIBS="-lnsl $LIBS" |
5105 | ||
ea584724 PS |
5106 | fi |
5107 | ||
715a55e7 | 5108 | fi |
f070fda2 MM |
5109 | done |
5110 | ||
daa2886c | 5111 | |
715a55e7 UW |
5112 | for ac_func in connect |
5113 | do | |
f5818d2f | 5114 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
daa2886c | 5115 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
f5818d2f AJ |
5116 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
5117 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
5118 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5119 | else | |
5120 | cat >conftest.$ac_ext <<_ACEOF | |
daa2886c | 5121 | #line $LINENO "configure" |
715a55e7 UW |
5122 | #include "confdefs.h" |
5123 | /* System header to define __stub macros and hopefully few prototypes, | |
f5818d2f | 5124 | which can conflict with char $ac_func (); below. */ |
715a55e7 UW |
5125 | #include <assert.h> |
5126 | /* Override any gcc2 internal prototype to avoid an error. */ | |
f5818d2f AJ |
5127 | #ifdef __cplusplus |
5128 | extern "C" | |
5129 | #endif | |
715a55e7 | 5130 | /* We use char because int might match the return type of a gcc2 |
f5818d2f AJ |
5131 | builtin and then its argument prototype would still apply. */ |
5132 | char $ac_func (); | |
5133 | char (*f) (); | |
715a55e7 | 5134 | |
daa2886c AJ |
5135 | #ifdef F77_DUMMY_MAIN |
5136 | # ifdef __cplusplus | |
5137 | extern "C" | |
5138 | # endif | |
5139 | int F77_DUMMY_MAIN() { return 1; } | |
5140 | #endif | |
f5818d2f AJ |
5141 | int |
5142 | main () | |
5143 | { | |
715a55e7 UW |
5144 | /* The GNU C library defines this for functions which it implements |
5145 | to always fail with ENOSYS. Some functions are actually named | |
5146 | something starting with __ and the normal name is an alias. */ | |
5147 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5148 | choke me | |
5149 | #else | |
f5818d2f | 5150 | f = $ac_func; |
715a55e7 UW |
5151 | #endif |
5152 | ||
f5818d2f AJ |
5153 | ; |
5154 | return 0; | |
5155 | } | |
5156 | _ACEOF | |
5157 | rm -f conftest.$ac_objext conftest$ac_exeext | |
daa2886c | 5158 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f5818d2f AJ |
5159 | (eval $ac_link) 2>&5 |
5160 | ac_status=$? | |
daa2886c | 5161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
5162 | (exit $ac_status); } && |
5163 | { ac_try='test -s conftest$ac_exeext' | |
daa2886c | 5164 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
5165 | (eval $ac_try) 2>&5 |
5166 | ac_status=$? | |
daa2886c | 5167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
5168 | (exit $ac_status); }; }; then |
5169 | eval "$as_ac_var=yes" | |
5170 | else | |
5171 | echo "$as_me: failed program was:" >&5 | |
5172 | cat conftest.$ac_ext >&5 | |
5173 | eval "$as_ac_var=no" | |
5174 | fi | |
5175 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
5176 | fi | |
daa2886c | 5177 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
f5818d2f AJ |
5178 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
5179 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
daa2886c | 5180 | cat >>confdefs.h <<_ACEOF |
f5818d2f | 5181 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
daa2886c | 5182 | _ACEOF |
f5818d2f AJ |
5183 | |
5184 | else | |
5185 | ||
daa2886c | 5186 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
f5818d2f AJ |
5187 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 |
5188 | if test "${ac_cv_lib_socket_connect+set}" = set; then | |
5189 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5190 | else | |
5191 | ac_check_lib_save_LIBS=$LIBS | |
715a55e7 | 5192 | LIBS="-lsocket $LIBS" |
f5818d2f | 5193 | cat >conftest.$ac_ext <<_ACEOF |
daa2886c | 5194 | #line $LINENO "configure" |
715a55e7 | 5195 | #include "confdefs.h" |
f5818d2f | 5196 | |
715a55e7 | 5197 | /* Override any gcc2 internal prototype to avoid an error. */ |
f5818d2f AJ |
5198 | #ifdef __cplusplus |
5199 | extern "C" | |
5200 | #endif | |
715a55e7 | 5201 | /* We use char because int might match the return type of a gcc2 |
f5818d2f AJ |
5202 | builtin and then its argument prototype would still apply. */ |
5203 | char connect (); | |
daa2886c AJ |
5204 | #ifdef F77_DUMMY_MAIN |
5205 | # ifdef __cplusplus | |
5206 | extern "C" | |
5207 | # endif | |
5208 | int F77_DUMMY_MAIN() { return 1; } | |
5209 | #endif | |
f5818d2f AJ |
5210 | int |
5211 | main () | |
5212 | { | |
5213 | connect (); | |
5214 | ; | |
5215 | return 0; | |
5216 | } | |
5217 | _ACEOF | |
5218 | rm -f conftest.$ac_objext conftest$ac_exeext | |
daa2886c | 5219 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f5818d2f AJ |
5220 | (eval $ac_link) 2>&5 |
5221 | ac_status=$? | |
daa2886c | 5222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
5223 | (exit $ac_status); } && |
5224 | { ac_try='test -s conftest$ac_exeext' | |
daa2886c | 5225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
5226 | (eval $ac_try) 2>&5 |
5227 | ac_status=$? | |
daa2886c | 5228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
5229 | (exit $ac_status); }; }; then |
5230 | ac_cv_lib_socket_connect=yes | |
5231 | else | |
5232 | echo "$as_me: failed program was:" >&5 | |
5233 | cat conftest.$ac_ext >&5 | |
5234 | ac_cv_lib_socket_connect=no | |
5235 | fi | |
5236 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
5237 | LIBS=$ac_check_lib_save_LIBS | |
5238 | fi | |
daa2886c | 5239 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 |
f5818d2f AJ |
5240 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 |
5241 | if test $ac_cv_lib_socket_connect = yes; then | |
daa2886c | 5242 | cat >>confdefs.h <<_ACEOF |
f5818d2f | 5243 | #define HAVE_LIBSOCKET 1 |
daa2886c | 5244 | _ACEOF |
715a55e7 UW |
5245 | |
5246 | LIBS="-lsocket $LIBS" | |
5247 | ||
715a55e7 UW |
5248 | fi |
5249 | ||
ea584724 | 5250 | fi |
f070fda2 MM |
5251 | done |
5252 | ||
daa2886c | 5253 | |
c555274d AJ |
5254 | for ac_func in inet_aton |
5255 | do | |
5256 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
daa2886c | 5257 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
c555274d AJ |
5258 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
5259 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
5260 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5261 | else | |
5262 | cat >conftest.$ac_ext <<_ACEOF | |
daa2886c | 5263 | #line $LINENO "configure" |
c555274d AJ |
5264 | #include "confdefs.h" |
5265 | /* System header to define __stub macros and hopefully few prototypes, | |
5266 | which can conflict with char $ac_func (); below. */ | |
5267 | #include <assert.h> | |
5268 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5269 | #ifdef __cplusplus | |
5270 | extern "C" | |
5271 | #endif | |
5272 | /* We use char because int might match the return type of a gcc2 | |
5273 | builtin and then its argument prototype would still apply. */ | |
5274 | char $ac_func (); | |
5275 | char (*f) (); | |
5276 | ||
daa2886c AJ |
5277 | #ifdef F77_DUMMY_MAIN |
5278 | # ifdef __cplusplus | |
5279 | extern "C" | |
5280 | # endif | |
5281 | int F77_DUMMY_MAIN() { return 1; } | |
5282 | #endif | |
c555274d AJ |
5283 | int |
5284 | main () | |
5285 | { | |
5286 | /* The GNU C library defines this for functions which it implements | |
5287 | to always fail with ENOSYS. Some functions are actually named | |
5288 | something starting with __ and the normal name is an alias. */ | |
5289 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5290 | choke me | |
5291 | #else | |
5292 | f = $ac_func; | |
5293 | #endif | |
5294 | ||
5295 | ; | |
5296 | return 0; | |
5297 | } | |
5298 | _ACEOF | |
5299 | rm -f conftest.$ac_objext conftest$ac_exeext | |
daa2886c | 5300 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
c555274d AJ |
5301 | (eval $ac_link) 2>&5 |
5302 | ac_status=$? | |
daa2886c | 5303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
c555274d AJ |
5304 | (exit $ac_status); } && |
5305 | { ac_try='test -s conftest$ac_exeext' | |
daa2886c | 5306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
c555274d AJ |
5307 | (eval $ac_try) 2>&5 |
5308 | ac_status=$? | |
daa2886c | 5309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
c555274d AJ |
5310 | (exit $ac_status); }; }; then |
5311 | eval "$as_ac_var=yes" | |
5312 | else | |
5313 | echo "$as_me: failed program was:" >&5 | |
5314 | cat conftest.$ac_ext >&5 | |
5315 | eval "$as_ac_var=no" | |
5316 | fi | |
5317 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
5318 | fi | |
daa2886c | 5319 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
c555274d AJ |
5320 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
5321 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
daa2886c | 5322 | cat >>confdefs.h <<_ACEOF |
c555274d | 5323 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
daa2886c | 5324 | _ACEOF |
c555274d AJ |
5325 | |
5326 | else | |
5327 | ||
daa2886c | 5328 | echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5 |
3b943bca FG |
5329 | echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6 |
5330 | if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then | |
f5818d2f | 5331 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d30dfd24 | 5332 | else |
f5818d2f | 5333 | ac_check_lib_save_LIBS=$LIBS |
3b943bca | 5334 | LIBS="-lresolv $LIBS" |
f5818d2f | 5335 | cat >conftest.$ac_ext <<_ACEOF |
daa2886c | 5336 | #line $LINENO "configure" |
d30dfd24 | 5337 | #include "confdefs.h" |
f5818d2f | 5338 | |
d30dfd24 | 5339 | /* Override any gcc2 internal prototype to avoid an error. */ |
f5818d2f AJ |
5340 | #ifdef __cplusplus |
5341 | extern "C" | |
5342 | #endif | |
d30dfd24 | 5343 | /* We use char because int might match the return type of a gcc2 |
f5818d2f | 5344 | builtin and then its argument prototype would still apply. */ |
3b943bca | 5345 | char inet_aton (); |
daa2886c AJ |
5346 | #ifdef F77_DUMMY_MAIN |
5347 | # ifdef __cplusplus | |
5348 | extern "C" | |
5349 | # endif | |
5350 | int F77_DUMMY_MAIN() { return 1; } | |
5351 | #endif | |
f5818d2f AJ |
5352 | int |
5353 | main () | |
5354 | { | |
3b943bca | 5355 | inet_aton (); |
f5818d2f AJ |
5356 | ; |
5357 | return 0; | |
5358 | } | |
5359 | _ACEOF | |
5360 | rm -f conftest.$ac_objext conftest$ac_exeext | |
daa2886c | 5361 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f5818d2f AJ |
5362 | (eval $ac_link) 2>&5 |
5363 | ac_status=$? | |
daa2886c | 5364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
5365 | (exit $ac_status); } && |
5366 | { ac_try='test -s conftest$ac_exeext' | |
daa2886c | 5367 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
5368 | (eval $ac_try) 2>&5 |
5369 | ac_status=$? | |
daa2886c | 5370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 5371 | (exit $ac_status); }; }; then |
3b943bca FG |
5372 | ac_cv_lib_resolv_inet_aton=yes |
5373 | else | |
5374 | echo "$as_me: failed program was:" >&5 | |
5375 | cat conftest.$ac_ext >&5 | |
5376 | ac_cv_lib_resolv_inet_aton=no | |
5377 | fi | |
5378 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
5379 | LIBS=$ac_check_lib_save_LIBS | |
5380 | fi | |
daa2886c | 5381 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5 |
3b943bca FG |
5382 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6 |
5383 | if test $ac_cv_lib_resolv_inet_aton = yes; then | |
daa2886c | 5384 | cat >>confdefs.h <<_ACEOF |
3b943bca | 5385 | #define HAVE_LIBRESOLV 1 |
daa2886c | 5386 | _ACEOF |
3b943bca FG |
5387 | |
5388 | LIBS="-lresolv $LIBS" | |
5389 | ||
5390 | fi | |
5391 | ||
c555274d AJ |
5392 | fi |
5393 | done | |
5394 | ||
daa2886c AJ |
5395 | |
5396 | echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5 | |
3b943bca FG |
5397 | echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6 |
5398 | if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then | |
5399 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5400 | else | |
5401 | ac_check_lib_save_LIBS=$LIBS | |
5402 | LIBS="-lxpg4 $LIBS" | |
5403 | cat >conftest.$ac_ext <<_ACEOF | |
daa2886c | 5404 | #line $LINENO "configure" |
3b943bca FG |
5405 | #include "confdefs.h" |
5406 | ||
5407 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5408 | #ifdef __cplusplus | |
5409 | extern "C" | |
5410 | #endif | |
5411 | /* We use char because int might match the return type of a gcc2 | |
5412 | builtin and then its argument prototype would still apply. */ | |
5413 | char _xpg4_setrunelocale (); | |
daa2886c AJ |
5414 | #ifdef F77_DUMMY_MAIN |
5415 | # ifdef __cplusplus | |
5416 | extern "C" | |
5417 | # endif | |
5418 | int F77_DUMMY_MAIN() { return 1; } | |
5419 | #endif | |
3b943bca FG |
5420 | int |
5421 | main () | |
5422 | { | |
5423 | _xpg4_setrunelocale (); | |
5424 | ; | |
5425 | return 0; | |
5426 | } | |
5427 | _ACEOF | |
5428 | rm -f conftest.$ac_objext conftest$ac_exeext | |
daa2886c | 5429 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
3b943bca FG |
5430 | (eval $ac_link) 2>&5 |
5431 | ac_status=$? | |
daa2886c | 5432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3b943bca FG |
5433 | (exit $ac_status); } && |
5434 | { ac_try='test -s conftest$ac_exeext' | |
daa2886c | 5435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3b943bca FG |
5436 | (eval $ac_try) 2>&5 |
5437 | ac_status=$? | |
daa2886c | 5438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3b943bca | 5439 | (exit $ac_status); }; }; then |
f5818d2f AJ |
5440 | ac_cv_lib_xpg4__xpg4_setrunelocale=yes |
5441 | else | |
5442 | echo "$as_me: failed program was:" >&5 | |
5443 | cat conftest.$ac_ext >&5 | |
5444 | ac_cv_lib_xpg4__xpg4_setrunelocale=no | |
5445 | fi | |
5446 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
5447 | LIBS=$ac_check_lib_save_LIBS | |
5448 | fi | |
daa2886c | 5449 | echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5 |
f5818d2f AJ |
5450 | echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6 |
5451 | if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then | |
daa2886c | 5452 | cat >>confdefs.h <<_ACEOF |
f5818d2f | 5453 | #define HAVE_LIBXPG4 1 |
daa2886c | 5454 | _ACEOF |
d30dfd24 AJ |
5455 | |
5456 | LIBS="-lxpg4 $LIBS" | |
5457 | ||
d30dfd24 AJ |
5458 | fi |
5459 | ||
daa2886c AJ |
5460 | |
5461 | echo "$as_me:$LINENO: checking for mmap in -lmmap" >&5 | |
f5818d2f AJ |
5462 | echo $ECHO_N "checking for mmap in -lmmap... $ECHO_C" >&6 |
5463 | if test "${ac_cv_lib_mmap_mmap+set}" = set; then | |
5464 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
0e7bd08c | 5465 | else |
f5818d2f | 5466 | ac_check_lib_save_LIBS=$LIBS |
0e7bd08c | 5467 | LIBS="-lmmap $LIBS" |
f5818d2f | 5468 | cat >conftest.$ac_ext <<_ACEOF |
daa2886c | 5469 | #line $LINENO "configure" |
0e7bd08c | 5470 | #include "confdefs.h" |
f5818d2f | 5471 | |
0e7bd08c | 5472 | /* Override any gcc2 internal prototype to avoid an error. */ |
f5818d2f AJ |
5473 | #ifdef __cplusplus |
5474 | extern "C" | |
5475 | #endif | |
0e7bd08c | 5476 | /* We use char because int might match the return type of a gcc2 |
f5818d2f AJ |
5477 | builtin and then its argument prototype would still apply. */ |
5478 | char mmap (); | |
daa2886c AJ |
5479 | #ifdef F77_DUMMY_MAIN |
5480 | # ifdef __cplusplus | |
5481 | extern "C" | |
5482 | # endif | |
5483 | int F77_DUMMY_MAIN() { return 1; } | |
5484 | #endif | |
f5818d2f AJ |
5485 | int |
5486 | main () | |
5487 | { | |
5488 | mmap (); | |
5489 | ; | |
5490 | return 0; | |
5491 | } | |
5492 | _ACEOF | |
5493 | rm -f conftest.$ac_objext conftest$ac_exeext | |
daa2886c | 5494 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f5818d2f AJ |
5495 | (eval $ac_link) 2>&5 |
5496 | ac_status=$? | |
daa2886c | 5497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
5498 | (exit $ac_status); } && |
5499 | { ac_try='test -s conftest$ac_exeext' | |
daa2886c | 5500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
5501 | (eval $ac_try) 2>&5 |
5502 | ac_status=$? | |
daa2886c | 5503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
5504 | (exit $ac_status); }; }; then |
5505 | ac_cv_lib_mmap_mmap=yes | |
5506 | else | |
5507 | echo "$as_me: failed program was:" >&5 | |
5508 | cat conftest.$ac_ext >&5 | |
5509 | ac_cv_lib_mmap_mmap=no | |
5510 | fi | |
5511 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
5512 | LIBS=$ac_check_lib_save_LIBS | |
5513 | fi | |
daa2886c | 5514 | echo "$as_me:$LINENO: result: $ac_cv_lib_mmap_mmap" >&5 |
f5818d2f AJ |
5515 | echo "${ECHO_T}$ac_cv_lib_mmap_mmap" >&6 |
5516 | if test $ac_cv_lib_mmap_mmap = yes; then | |
daa2886c | 5517 | cat >>confdefs.h <<_ACEOF |
f5818d2f | 5518 | #define HAVE_LIBMMAP 1 |
daa2886c | 5519 | _ACEOF |
0e7bd08c AJ |
5520 | |
5521 | LIBS="-lmmap $LIBS" | |
5522 | ||
0e7bd08c AJ |
5523 | fi |
5524 | ||
daa2886c | 5525 | |
fa3a5360 | 5526 | JPEGLIB="" |
562089b5 | 5527 | |
daa2886c AJ |
5528 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
5529 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
5530 | if test "${ac_cv_header_stdc+set}" = set; then | |
f5818d2f AJ |
5531 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5532 | else | |
5533 | cat >conftest.$ac_ext <<_ACEOF | |
daa2886c | 5534 | #line $LINENO "configure" |
f070fda2 | 5535 | #include "confdefs.h" |
daa2886c AJ |
5536 | #include <stdlib.h> |
5537 | #include <stdarg.h> | |
5538 | #include <string.h> | |
5539 | #include <float.h> | |
5540 | ||
f5818d2f | 5541 | _ACEOF |
daa2886c | 5542 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
f5818d2f AJ |
5543 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
5544 | ac_status=$? | |
5545 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
5546 | rm -f conftest.er1 | |
5547 | cat conftest.err >&5 | |
daa2886c | 5548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
5549 | (exit $ac_status); } >/dev/null; then |
5550 | if test -s conftest.err; then | |
5551 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5552 | else | |
5553 | ac_cpp_err= | |
5554 | fi | |
5555 | else | |
5556 | ac_cpp_err=yes | |
5557 | fi | |
5558 | if test -z "$ac_cpp_err"; then | |
daa2886c | 5559 | ac_cv_header_stdc=yes |
f5818d2f AJ |
5560 | else |
5561 | echo "$as_me: failed program was:" >&5 | |
f070fda2 | 5562 | cat conftest.$ac_ext >&5 |
daa2886c | 5563 | ac_cv_header_stdc=no |
f070fda2 | 5564 | fi |
f5818d2f | 5565 | rm -f conftest.err conftest.$ac_ext |
f5818d2f | 5566 | |
daa2886c AJ |
5567 | if test $ac_cv_header_stdc = yes; then |
5568 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
f5818d2f | 5569 | cat >conftest.$ac_ext <<_ACEOF |
daa2886c | 5570 | #line $LINENO "configure" |
f070fda2 | 5571 | #include "confdefs.h" |
daa2886c | 5572 | #include <string.h> |
f070fda2 | 5573 | |
f5818d2f | 5574 | _ACEOF |
daa2886c AJ |
5575 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5576 | egrep "memchr" >/dev/null 2>&1; then | |
5577 | : | |
f5818d2f | 5578 | else |
daa2886c | 5579 | ac_cv_header_stdc=no |
f5818d2f | 5580 | fi |
daa2886c AJ |
5581 | rm -f conftest* |
5582 | ||
f5818d2f | 5583 | fi |
f5818d2f | 5584 | |
daa2886c AJ |
5585 | if test $ac_cv_header_stdc = yes; then |
5586 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5587 | cat >conftest.$ac_ext <<_ACEOF | |
5588 | #line $LINENO "configure" | |
8220bc9d | 5589 | #include "confdefs.h" |
daa2886c | 5590 | #include <stdlib.h> |
f5818d2f | 5591 | |
daa2886c AJ |
5592 | _ACEOF |
5593 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5594 | egrep "free" >/dev/null 2>&1; then | |
5595 | : | |
5596 | else | |
5597 | ac_cv_header_stdc=no | |
5598 | fi | |
5599 | rm -f conftest* | |
5600 | ||
5601 | fi | |
5602 | ||
5603 | if test $ac_cv_header_stdc = yes; then | |
5604 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5605 | if test "$cross_compiling" = yes; then | |
5606 | : | |
5607 | else | |
5608 | cat >conftest.$ac_ext <<_ACEOF | |
5609 | #line $LINENO "configure" | |
5610 | #include "confdefs.h" | |
5611 | #include <ctype.h> | |
5612 | #if ((' ' & 0x0FF) == 0x020) | |
5613 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5614 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5615 | #else | |
5616 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ | |
5617 | || ('j' <= (c) && (c) <= 'r') \ | |
5618 | || ('s' <= (c) && (c) <= 'z')) | |
5619 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
5620 | #endif | |
5621 | ||
5622 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
5623 | int | |
5624 | main () | |
5625 | { | |
5626 | int i; | |
5627 | for (i = 0; i < 256; i++) | |
5628 | if (XOR (islower (i), ISLOWER (i)) | |
5629 | || toupper (i) != TOUPPER (i)) | |
5630 | exit(2); | |
5631 | exit (0); | |
5632 | } | |
5633 | _ACEOF | |
5634 | rm -f conftest$ac_exeext | |
5635 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5636 | (eval $ac_link) 2>&5 | |
5637 | ac_status=$? | |
5638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5639 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5641 | (eval $ac_try) 2>&5 | |
5642 | ac_status=$? | |
5643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5644 | (exit $ac_status); }; }; then | |
5645 | : | |
5646 | else | |
5647 | echo "$as_me: program exited with status $ac_status" >&5 | |
5648 | echo "$as_me: failed program was:" >&5 | |
5649 | cat conftest.$ac_ext >&5 | |
5650 | ( exit $ac_status ) | |
5651 | ac_cv_header_stdc=no | |
5652 | fi | |
5653 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
5654 | fi | |
5655 | fi | |
5656 | fi | |
5657 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
5658 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
5659 | if test $ac_cv_header_stdc = yes; then | |
5660 | ||
5661 | cat >>confdefs.h <<\_ACEOF | |
5662 | #define STDC_HEADERS 1 | |
5663 | _ACEOF | |
5664 | ||
5665 | fi | |
5666 | ||
5667 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
5668 | ||
5669 | ||
5670 | ||
5671 | ||
5672 | ||
5673 | ||
5674 | ||
5675 | ||
5676 | ||
5677 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
5678 | inttypes.h stdint.h unistd.h | |
5679 | do | |
5680 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5681 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5682 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5683 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5684 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5685 | else | |
5686 | cat >conftest.$ac_ext <<_ACEOF | |
5687 | #line $LINENO "configure" | |
5688 | #include "confdefs.h" | |
5689 | $ac_includes_default | |
5690 | ||
5691 | #include <$ac_header> | |
5692 | _ACEOF | |
5693 | rm -f conftest.$ac_objext | |
5694 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5695 | (eval $ac_compile) 2>&5 | |
5696 | ac_status=$? | |
5697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5698 | (exit $ac_status); } && | |
5699 | { ac_try='test -s conftest.$ac_objext' | |
5700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5701 | (eval $ac_try) 2>&5 | |
5702 | ac_status=$? | |
5703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5704 | (exit $ac_status); }; }; then | |
5705 | eval "$as_ac_Header=yes" | |
5706 | else | |
5707 | echo "$as_me: failed program was:" >&5 | |
5708 | cat conftest.$ac_ext >&5 | |
5709 | eval "$as_ac_Header=no" | |
5710 | fi | |
5711 | rm -f conftest.$ac_objext conftest.$ac_ext | |
5712 | fi | |
5713 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5714 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5715 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
5716 | cat >>confdefs.h <<_ACEOF | |
5717 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5718 | _ACEOF | |
5719 | ||
5720 | fi | |
5721 | ||
5722 | done | |
5723 | ||
5724 | ||
5725 | ||
f5818d2f | 5726 | for ac_header in jpeglib.h |
252b0fe0 | 5727 | do |
f5818d2f | 5728 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
daa2886c AJ |
5729 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
5730 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
f5818d2f AJ |
5731 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
5732 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5733 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
daa2886c AJ |
5734 | fi |
5735 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5736 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
f5818d2f | 5737 | else |
daa2886c AJ |
5738 | # Is the header compilable? |
5739 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5740 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
5741 | cat >conftest.$ac_ext <<_ACEOF | |
5742 | #line $LINENO "configure" | |
5743 | #include "confdefs.h" | |
5744 | $ac_includes_default | |
5745 | #include <$ac_header> | |
5746 | _ACEOF | |
5747 | rm -f conftest.$ac_objext | |
5748 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5749 | (eval $ac_compile) 2>&5 | |
5750 | ac_status=$? | |
5751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5752 | (exit $ac_status); } && | |
5753 | { ac_try='test -s conftest.$ac_objext' | |
5754 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5755 | (eval $ac_try) 2>&5 | |
5756 | ac_status=$? | |
5757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5758 | (exit $ac_status); }; }; then | |
5759 | ac_header_compiler=yes | |
5760 | else | |
5761 | echo "$as_me: failed program was:" >&5 | |
5762 | cat conftest.$ac_ext >&5 | |
5763 | ac_header_compiler=no | |
5764 | fi | |
5765 | rm -f conftest.$ac_objext conftest.$ac_ext | |
5766 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5767 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
5768 | ||
5769 | # Is the header present? | |
5770 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5771 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
5772 | cat >conftest.$ac_ext <<_ACEOF | |
5773 | #line $LINENO "configure" | |
252b0fe0 | 5774 | #include "confdefs.h" |
f5818d2f AJ |
5775 | #include <$ac_header> |
5776 | _ACEOF | |
daa2886c | 5777 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
f5818d2f AJ |
5778 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
5779 | ac_status=$? | |
5780 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
5781 | rm -f conftest.er1 | |
5782 | cat conftest.err >&5 | |
daa2886c | 5783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
5784 | (exit $ac_status); } >/dev/null; then |
5785 | if test -s conftest.err; then | |
5786 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5787 | else | |
5788 | ac_cpp_err= | |
5789 | fi | |
5790 | else | |
5791 | ac_cpp_err=yes | |
5792 | fi | |
5793 | if test -z "$ac_cpp_err"; then | |
daa2886c | 5794 | ac_header_preproc=yes |
f5818d2f AJ |
5795 | else |
5796 | echo "$as_me: failed program was:" >&5 | |
252b0fe0 | 5797 | cat conftest.$ac_ext >&5 |
daa2886c | 5798 | ac_header_preproc=no |
252b0fe0 | 5799 | fi |
f5818d2f | 5800 | rm -f conftest.err conftest.$ac_ext |
daa2886c AJ |
5801 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5802 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5803 | ||
5804 | # So? What about this header? | |
5805 | case $ac_header_compiler:$ac_header_preproc in | |
5806 | yes:no ) | |
5807 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5808 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5809 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5810 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
5811 | no:yes ) | |
5812 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
5813 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5814 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5815 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5816 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5817 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
5818 | esac | |
5819 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5820 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5821 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5822 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5823 | else | |
5824 | eval "$as_ac_Header=$ac_header_preproc" | |
252b0fe0 | 5825 | fi |
daa2886c | 5826 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
f5818d2f | 5827 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
daa2886c AJ |
5828 | |
5829 | fi | |
f5818d2f | 5830 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
daa2886c | 5831 | cat >>confdefs.h <<_ACEOF |
f5818d2f | 5832 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
daa2886c AJ |
5833 | _ACEOF |
5834 | echo "$as_me:$LINENO: checking for jpeg_start_decompress in -ljpeg" >&5 | |
f5818d2f AJ |
5835 | echo $ECHO_N "checking for jpeg_start_decompress in -ljpeg... $ECHO_C" >&6 |
5836 | if test "${ac_cv_lib_jpeg_jpeg_start_decompress+set}" = set; then | |
5837 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b0fe0 | 5838 | else |
f5818d2f | 5839 | ac_check_lib_save_LIBS=$LIBS |
252b0fe0 | 5840 | LIBS="-ljpeg $LIBS" |
f5818d2f | 5841 | cat >conftest.$ac_ext <<_ACEOF |
daa2886c | 5842 | #line $LINENO "configure" |
252b0fe0 | 5843 | #include "confdefs.h" |
f5818d2f | 5844 | |
252b0fe0 | 5845 | /* Override any gcc2 internal prototype to avoid an error. */ |
f5818d2f AJ |
5846 | #ifdef __cplusplus |
5847 | extern "C" | |
5848 | #endif | |
252b0fe0 | 5849 | /* We use char because int might match the return type of a gcc2 |
f5818d2f AJ |
5850 | builtin and then its argument prototype would still apply. */ |
5851 | char jpeg_start_decompress (); | |
daa2886c AJ |
5852 | #ifdef F77_DUMMY_MAIN |
5853 | # ifdef __cplusplus | |
5854 | extern "C" | |
5855 | # endif | |
5856 | int F77_DUMMY_MAIN() { return 1; } | |
5857 | #endif | |
f5818d2f AJ |
5858 | int |
5859 | main () | |
5860 | { | |
5861 | jpeg_start_decompress (); | |
5862 | ; | |
5863 | return 0; | |
5864 | } | |
5865 | _ACEOF | |
5866 | rm -f conftest.$ac_objext conftest$ac_exeext | |
daa2886c | 5867 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f5818d2f AJ |
5868 | (eval $ac_link) 2>&5 |
5869 | ac_status=$? | |
daa2886c | 5870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
5871 | (exit $ac_status); } && |
5872 | { ac_try='test -s conftest$ac_exeext' | |
daa2886c | 5873 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
5874 | (eval $ac_try) 2>&5 |
5875 | ac_status=$? | |
daa2886c | 5876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
5877 | (exit $ac_status); }; }; then |
5878 | ac_cv_lib_jpeg_jpeg_start_decompress=yes | |
5879 | else | |
5880 | echo "$as_me: failed program was:" >&5 | |
5881 | cat conftest.$ac_ext >&5 | |
5882 | ac_cv_lib_jpeg_jpeg_start_decompress=no | |
5883 | fi | |
5884 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
5885 | LIBS=$ac_check_lib_save_LIBS | |
5886 | fi | |
daa2886c | 5887 | echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_start_decompress" >&5 |
f5818d2f AJ |
5888 | echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_decompress" >&6 |
5889 | if test $ac_cv_lib_jpeg_jpeg_start_decompress = yes; then | |
5890 | ||
daa2886c | 5891 | cat >>confdefs.h <<\_ACEOF |
252b0fe0 | 5892 | #define HAVE_LIBJPEG 1 |
daa2886c | 5893 | _ACEOF |
252b0fe0 MM |
5894 | |
5895 | JPEGLIB="-ljpeg" | |
252b0fe0 | 5896 | |
f5818d2f | 5897 | fi |
252b0fe0 | 5898 | |
daa2886c | 5899 | |
252b0fe0 | 5900 | fi |
daa2886c | 5901 | |
252b0fe0 MM |
5902 | done |
5903 | ||
daa2886c AJ |
5904 | |
5905 | ||
5906 | ||
5907 | ||
2941a212 | 5908 | XFILES="" |
10ad97c8 | 5909 | |
bedf40b5 LU |
5910 | OPENGLFILES="" |
5911 | ||
b63ab445 | 5912 | GLU32FILES="" |
ea584724 PS |
5913 | if test "$have_x" = "yes" |
5914 | then | |
24110288 | 5915 | XLIB="-lXext -lX11" |
1eb593cb OK |
5916 | ac_save_CPPFLAGS="$CPPFLAGS" |
5917 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" | |
24110288 | 5918 | |
daa2886c | 5919 | |
f5818d2f | 5920 | for ac_header in X11/Xlib.h |
24110288 | 5921 | do |
f5818d2f | 5922 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
daa2886c AJ |
5923 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
5924 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
f5818d2f AJ |
5925 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
5926 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5927 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
daa2886c AJ |
5928 | fi |
5929 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5930 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
f5818d2f | 5931 | else |
daa2886c AJ |
5932 | # Is the header compilable? |
5933 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5934 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
5935 | cat >conftest.$ac_ext <<_ACEOF | |
5936 | #line $LINENO "configure" | |
24110288 | 5937 | #include "confdefs.h" |
daa2886c | 5938 | $ac_includes_default |
f5818d2f AJ |
5939 | #include <$ac_header> |
5940 | _ACEOF | |
daa2886c AJ |
5941 | rm -f conftest.$ac_objext |
5942 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5943 | (eval $ac_compile) 2>&5 | |
5944 | ac_status=$? | |
5945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5946 | (exit $ac_status); } && | |
5947 | { ac_try='test -s conftest.$ac_objext' | |
5948 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5949 | (eval $ac_try) 2>&5 | |
5950 | ac_status=$? | |
5951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5952 | (exit $ac_status); }; }; then | |
5953 | ac_header_compiler=yes | |
5954 | else | |
5955 | echo "$as_me: failed program was:" >&5 | |
5956 | cat conftest.$ac_ext >&5 | |
5957 | ac_header_compiler=no | |
5958 | fi | |
5959 | rm -f conftest.$ac_objext conftest.$ac_ext | |
5960 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5961 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
5962 | ||
5963 | # Is the header present? | |
5964 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5965 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
5966 | cat >conftest.$ac_ext <<_ACEOF | |
5967 | #line $LINENO "configure" | |
5968 | #include "confdefs.h" | |
5969 | #include <$ac_header> | |
5970 | _ACEOF | |
5971 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
f5818d2f AJ |
5972 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
5973 | ac_status=$? | |
5974 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
5975 | rm -f conftest.er1 | |
5976 | cat conftest.err >&5 | |
daa2886c | 5977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
5978 | (exit $ac_status); } >/dev/null; then |
5979 | if test -s conftest.err; then | |
5980 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5981 | else | |
5982 | ac_cpp_err= | |
5983 | fi | |
5984 | else | |
5985 | ac_cpp_err=yes | |
5986 | fi | |
5987 | if test -z "$ac_cpp_err"; then | |
daa2886c | 5988 | ac_header_preproc=yes |
f5818d2f AJ |
5989 | else |
5990 | echo "$as_me: failed program was:" >&5 | |
24110288 | 5991 | cat conftest.$ac_ext >&5 |
daa2886c | 5992 | ac_header_preproc=no |
24110288 | 5993 | fi |
f5818d2f | 5994 | rm -f conftest.err conftest.$ac_ext |
daa2886c AJ |
5995 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5996 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5997 | ||
5998 | # So? What about this header? | |
5999 | case $ac_header_compiler:$ac_header_preproc in | |
6000 | yes:no ) | |
6001 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6002 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6003 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6004 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
6005 | no:yes ) | |
6006 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6007 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6008 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6009 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6010 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6011 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
6012 | esac | |
6013 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6014 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6015 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6016 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6017 | else | |
6018 | eval "$as_ac_Header=$ac_header_preproc" | |
24110288 | 6019 | fi |
daa2886c | 6020 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
f5818d2f | 6021 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
daa2886c AJ |
6022 | |
6023 | fi | |
f5818d2f | 6024 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
daa2886c | 6025 | cat >>confdefs.h <<_ACEOF |
f5818d2f | 6026 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
daa2886c AJ |
6027 | _ACEOF |
6028 | ||
f5818d2f AJ |
6029 | |
6030 | for ac_header in X11/XKBlib.h | |
f2b77ccb | 6031 | do |
f5818d2f | 6032 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
daa2886c AJ |
6033 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
6034 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
f5818d2f AJ |
6035 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
6036 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6037 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
daa2886c AJ |
6038 | fi |
6039 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6040 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
f5818d2f | 6041 | else |
daa2886c AJ |
6042 | # Is the header compilable? |
6043 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6044 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6045 | cat >conftest.$ac_ext <<_ACEOF | |
6046 | #line $LINENO "configure" | |
6047 | #include "confdefs.h" | |
6048 | $ac_includes_default | |
6049 | #include <$ac_header> | |
6050 | _ACEOF | |
6051 | rm -f conftest.$ac_objext | |
6052 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6053 | (eval $ac_compile) 2>&5 | |
6054 | ac_status=$? | |
6055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6056 | (exit $ac_status); } && | |
6057 | { ac_try='test -s conftest.$ac_objext' | |
6058 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6059 | (eval $ac_try) 2>&5 | |
6060 | ac_status=$? | |
6061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6062 | (exit $ac_status); }; }; then | |
6063 | ac_header_compiler=yes | |
6064 | else | |
6065 | echo "$as_me: failed program was:" >&5 | |
6066 | cat conftest.$ac_ext >&5 | |
6067 | ac_header_compiler=no | |
6068 | fi | |
6069 | rm -f conftest.$ac_objext conftest.$ac_ext | |
6070 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6071 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6072 | ||
6073 | # Is the header present? | |
6074 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6075 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6076 | cat >conftest.$ac_ext <<_ACEOF | |
6077 | #line $LINENO "configure" | |
f2b77ccb | 6078 | #include "confdefs.h" |
f5818d2f AJ |
6079 | #include <$ac_header> |
6080 | _ACEOF | |
daa2886c | 6081 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
f5818d2f AJ |
6082 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
6083 | ac_status=$? | |
6084 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
6085 | rm -f conftest.er1 | |
6086 | cat conftest.err >&5 | |
daa2886c | 6087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
6088 | (exit $ac_status); } >/dev/null; then |
6089 | if test -s conftest.err; then | |
6090 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6091 | else | |
6092 | ac_cpp_err= | |
6093 | fi | |
6094 | else | |
6095 | ac_cpp_err=yes | |
6096 | fi | |
6097 | if test -z "$ac_cpp_err"; then | |
daa2886c | 6098 | ac_header_preproc=yes |
f5818d2f AJ |
6099 | else |
6100 | echo "$as_me: failed program was:" >&5 | |
f2b77ccb | 6101 | cat conftest.$ac_ext >&5 |
daa2886c | 6102 | ac_header_preproc=no |
24110288 | 6103 | fi |
f5818d2f | 6104 | rm -f conftest.err conftest.$ac_ext |
daa2886c AJ |
6105 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
6106 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6107 | ||
6108 | # So? What about this header? | |
6109 | case $ac_header_compiler:$ac_header_preproc in | |
6110 | yes:no ) | |
6111 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6112 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6113 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6114 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
6115 | no:yes ) | |
6116 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6117 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6118 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6119 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6120 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6121 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
6122 | esac | |
6123 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6124 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6125 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6126 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6127 | else | |
6128 | eval "$as_ac_Header=$ac_header_preproc" | |
f2b77ccb | 6129 | fi |
daa2886c | 6130 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
f5818d2f | 6131 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
daa2886c AJ |
6132 | |
6133 | fi | |
f5818d2f | 6134 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
daa2886c | 6135 | cat >>confdefs.h <<_ACEOF |
f5818d2f | 6136 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
daa2886c AJ |
6137 | _ACEOF |
6138 | echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5 | |
f5818d2f AJ |
6139 | echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6 |
6140 | if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then | |
6141 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c90fb25c | 6142 | else |
f5818d2f | 6143 | ac_check_lib_save_LIBS=$LIBS |
c90fb25c | 6144 | LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
f5818d2f | 6145 | cat >conftest.$ac_ext <<_ACEOF |
daa2886c | 6146 | #line $LINENO "configure" |
c90fb25c | 6147 | #include "confdefs.h" |
f5818d2f | 6148 | |
c90fb25c | 6149 | /* Override any gcc2 internal prototype to avoid an error. */ |
f5818d2f AJ |
6150 | #ifdef __cplusplus |
6151 | extern "C" | |
6152 | #endif | |
c90fb25c | 6153 | /* We use char because int might match the return type of a gcc2 |
f5818d2f AJ |
6154 | builtin and then its argument prototype would still apply. */ |
6155 | char XkbQueryExtension (); | |
daa2886c AJ |
6156 | #ifdef F77_DUMMY_MAIN |
6157 | # ifdef __cplusplus | |
6158 | extern "C" | |
6159 | # endif | |
6160 | int F77_DUMMY_MAIN() { return 1; } | |
6161 | #endif | |
f5818d2f AJ |
6162 | int |
6163 | main () | |
6164 | { | |
6165 | XkbQueryExtension (); | |
6166 | ; | |
6167 | return 0; | |
6168 | } | |
6169 | _ACEOF | |
6170 | rm -f conftest.$ac_objext conftest$ac_exeext | |
daa2886c | 6171 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f5818d2f AJ |
6172 | (eval $ac_link) 2>&5 |
6173 | ac_status=$? | |
daa2886c | 6174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
6175 | (exit $ac_status); } && |
6176 | { ac_try='test -s conftest$ac_exeext' | |
daa2886c | 6177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
6178 | (eval $ac_try) 2>&5 |
6179 | ac_status=$? | |
daa2886c | 6180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
6181 | (exit $ac_status); }; }; then |
6182 | ac_cv_lib_X11_XkbQueryExtension=yes | |
6183 | else | |
6184 | echo "$as_me: failed program was:" >&5 | |
6185 | cat conftest.$ac_ext >&5 | |
6186 | ac_cv_lib_X11_XkbQueryExtension=no | |
6187 | fi | |
6188 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6189 | LIBS=$ac_check_lib_save_LIBS | |
6190 | fi | |
daa2886c | 6191 | echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5 |
f5818d2f AJ |
6192 | echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6 |
6193 | if test $ac_cv_lib_X11_XkbQueryExtension = yes; then | |
6194 | ||
daa2886c | 6195 | cat >>confdefs.h <<\_ACEOF |
c90fb25c | 6196 | #define HAVE_XKB 1 |
daa2886c | 6197 | _ACEOF |
c90fb25c | 6198 | |
c90fb25c OK |
6199 | fi |
6200 | ||
daa2886c | 6201 | |
c90fb25c | 6202 | else |
daa2886c | 6203 | { echo "$as_me:$LINENO: WARNING: Xkb extension not found, Wine will be built without it" >&5 |
f5818d2f AJ |
6204 | echo "$as_me: WARNING: Xkb extension not found, Wine will be built without it" >&2;} |
6205 | ||
c90fb25c | 6206 | fi |
daa2886c | 6207 | |
c90fb25c OK |
6208 | done |
6209 | ||
daa2886c AJ |
6210 | |
6211 | ||
f5818d2f | 6212 | for ac_header in X11/extensions/XShm.h |
c90fb25c | 6213 | do |
f5818d2f | 6214 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
daa2886c | 6215 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
f5818d2f AJ |
6216 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
6217 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6218 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6219 | else | |
6220 | cat >conftest.$ac_ext <<_ACEOF | |
daa2886c | 6221 | #line $LINENO "configure" |
c90fb25c | 6222 | #include "confdefs.h" |
daa2886c AJ |
6223 | #include <X11/Xlib.h> |
6224 | ||
f5818d2f AJ |
6225 | #include <$ac_header> |
6226 | _ACEOF | |
daa2886c AJ |
6227 | rm -f conftest.$ac_objext |
6228 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6229 | (eval $ac_compile) 2>&5 | |
f5818d2f | 6230 | ac_status=$? |
daa2886c AJ |
6231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6232 | (exit $ac_status); } && | |
6233 | { ac_try='test -s conftest.$ac_objext' | |
6234 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6235 | (eval $ac_try) 2>&5 | |
6236 | ac_status=$? | |
6237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6238 | (exit $ac_status); }; }; then | |
f5818d2f AJ |
6239 | eval "$as_ac_Header=yes" |
6240 | else | |
6241 | echo "$as_me: failed program was:" >&5 | |
daa2886c AJ |
6242 | cat conftest.$ac_ext >&5 |
6243 | eval "$as_ac_Header=no" | |
c90fb25c | 6244 | fi |
daa2886c | 6245 | rm -f conftest.$ac_objext conftest.$ac_ext |
c90fb25c | 6246 | fi |
daa2886c | 6247 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
f5818d2f AJ |
6248 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
6249 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
daa2886c | 6250 | cat >>confdefs.h <<_ACEOF |
f5818d2f | 6251 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
daa2886c AJ |
6252 | _ACEOF |
6253 | echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5 | |
f5818d2f AJ |
6254 | echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6 |
6255 | if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then | |
6256 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ea584724 | 6257 | else |
f5818d2f | 6258 | ac_check_lib_save_LIBS=$LIBS |
376ec88e | 6259 | LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
f5818d2f | 6260 | cat >conftest.$ac_ext <<_ACEOF |
daa2886c | 6261 | #line $LINENO "configure" |
ea584724 | 6262 | #include "confdefs.h" |
f5818d2f | 6263 | |
ea584724 | 6264 | /* Override any gcc2 internal prototype to avoid an error. */ |
f5818d2f AJ |
6265 | #ifdef __cplusplus |
6266 | extern "C" | |
6267 | #endif | |
ea584724 | 6268 | /* We use char because int might match the return type of a gcc2 |
f5818d2f AJ |
6269 | builtin and then its argument prototype would still apply. */ |
6270 | char XShmQueryExtension (); | |
daa2886c AJ |
6271 | #ifdef F77_DUMMY_MAIN |
6272 | # ifdef __cplusplus | |
6273 | extern "C" | |
6274 | # endif | |
6275 | int F77_DUMMY_MAIN() { return 1; } | |
6276 | #endif | |
f5818d2f AJ |
6277 | int |
6278 | main () | |
6279 | { | |
6280 | XShmQueryExtension (); | |
6281 | ; | |
6282 | return 0; | |
6283 | } | |
6284 | _ACEOF | |
6285 | rm -f conftest.$ac_objext conftest$ac_exeext | |
daa2886c | 6286 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f5818d2f AJ |
6287 | (eval $ac_link) 2>&5 |
6288 | ac_status=$? | |
daa2886c | 6289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
6290 | (exit $ac_status); } && |
6291 | { ac_try='test -s conftest$ac_exeext' | |
daa2886c | 6292 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
6293 | (eval $ac_try) 2>&5 |
6294 | ac_status=$? | |
daa2886c | 6295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
6296 | (exit $ac_status); }; }; then |
6297 | ac_cv_lib_Xext_XShmQueryExtension=yes | |
6298 | else | |
6299 | echo "$as_me: failed program was:" >&5 | |
6300 | cat conftest.$ac_ext >&5 | |
6301 | ac_cv_lib_Xext_XShmQueryExtension=no | |
6302 | fi | |
6303 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6304 | LIBS=$ac_check_lib_save_LIBS | |
6305 | fi | |
daa2886c | 6306 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5 |
f5818d2f AJ |
6307 | echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6 |
6308 | if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then | |
6309 | ||
daa2886c | 6310 | cat >>confdefs.h <<\_ACEOF |
ea584724 | 6311 | #define HAVE_LIBXXSHM 1 |
daa2886c | 6312 | _ACEOF |
ea584724 | 6313 | |
ea584724 PS |
6314 | fi |
6315 | ||
daa2886c | 6316 | |
f2b77ccb | 6317 | else |
daa2886c | 6318 | { echo "$as_me:$LINENO: WARNING: XShm extension not found, Wine will be built without it" >&5 |
f5818d2f | 6319 | echo "$as_me: WARNING: XShm extension not found, Wine will be built without it" >&2;} |
f2b77ccb | 6320 | fi |
daa2886c | 6321 | |
f2b77ccb JS |
6322 | done |
6323 | ||
daa2886c AJ |
6324 | |
6325 | ||
f5818d2f | 6326 | for ac_header in X11/extensions/shape.h |
24110288 | 6327 | do |
f5818d2f | 6328 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
daa2886c | 6329 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
f5818d2f AJ |
6330 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
6331 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6332 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6333 | else | |
6334 | cat >conftest.$ac_ext <<_ACEOF | |
daa2886c | 6335 | #line $LINENO "configure" |
24110288 | 6336 | #include "confdefs.h" |
daa2886c AJ |
6337 | #include <X11/Xlib.h> |
6338 | ||
f5818d2f AJ |
6339 | #include <$ac_header> |
6340 | _ACEOF | |
daa2886c AJ |
6341 | rm -f conftest.$ac_objext |
6342 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6343 | (eval $ac_compile) 2>&5 | |
f5818d2f | 6344 | ac_status=$? |
daa2886c AJ |
6345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6346 | (exit $ac_status); } && | |
6347 | { ac_try='test -s conftest.$ac_objext' | |
6348 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6349 | (eval $ac_try) 2>&5 | |
6350 | ac_status=$? | |
6351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6352 | (exit $ac_status); }; }; then | |
f5818d2f AJ |
6353 | eval "$as_ac_Header=yes" |
6354 | else | |
6355 | echo "$as_me: failed program was:" >&5 | |
daa2886c AJ |
6356 | cat conftest.$ac_ext >&5 |
6357 | eval "$as_ac_Header=no" | |
24110288 | 6358 | fi |
daa2886c | 6359 | rm -f conftest.$ac_objext conftest.$ac_ext |
24110288 | 6360 | fi |
daa2886c | 6361 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
f5818d2f AJ |
6362 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
6363 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
daa2886c | 6364 | cat >>confdefs.h <<_ACEOF |
f5818d2f | 6365 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
daa2886c AJ |
6366 | _ACEOF |
6367 | echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 | |
f5818d2f AJ |
6368 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 |
6369 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then | |
6370 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5b6879c5 | 6371 | else |
f5818d2f | 6372 | ac_check_lib_save_LIBS=$LIBS |
5b6879c5 | 6373 | LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
f5818d2f | 6374 | cat >conftest.$ac_ext <<_ACEOF |
daa2886c | 6375 | #line $LINENO "configure" |
5b6879c5 | 6376 | #include "confdefs.h" |
f5818d2f | 6377 | |
5b6879c5 | 6378 | /* Override any gcc2 internal prototype to avoid an error. */ |
f5818d2f AJ |
6379 | #ifdef __cplusplus |
6380 | extern "C" | |
6381 | #endif | |
5b6879c5 | 6382 | /* We use char because int might match the return type of a gcc2 |
f5818d2f AJ |
6383 | builtin and then its argument prototype would still apply. */ |
6384 | char XShapeQueryExtension (); | |
daa2886c AJ |
6385 | #ifdef F77_DUMMY_MAIN |
6386 | # ifdef __cplusplus | |
6387 | extern "C" | |
6388 | # endif | |
6389 | int F77_DUMMY_MAIN() { return 1; } | |
6390 | #endif | |
f5818d2f AJ |
6391 | int |
6392 | main () | |
6393 | { | |
6394 | XShapeQueryExtension (); | |
6395 | ; | |
6396 | return 0; | |
6397 | } | |
6398 | _ACEOF | |
6399 | rm -f conftest.$ac_objext conftest$ac_exeext | |
daa2886c | 6400 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f5818d2f AJ |
6401 | (eval $ac_link) 2>&5 |
6402 | ac_status=$? | |
daa2886c | 6403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
6404 | (exit $ac_status); } && |
6405 | { ac_try='test -s conftest$ac_exeext' | |
daa2886c | 6406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
6407 | (eval $ac_try) 2>&5 |
6408 | ac_status=$? | |
daa2886c | 6409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
6410 | (exit $ac_status); }; }; then |
6411 | ac_cv_lib_Xext_XShapeQueryExtension=yes | |
6412 | else | |
6413 | echo "$as_me: failed program was:" >&5 | |
6414 | cat conftest.$ac_ext >&5 | |
6415 | ac_cv_lib_Xext_XShapeQueryExtension=no | |
6416 | fi | |
6417 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6418 | LIBS=$ac_check_lib_save_LIBS | |
6419 | fi | |
daa2886c | 6420 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 |
f5818d2f AJ |
6421 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 |
6422 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then | |
6423 | ||
daa2886c | 6424 | cat >>confdefs.h <<\_ACEOF |
5b6879c5 | 6425 | #define HAVE_LIBXSHAPE 1 |
daa2886c | 6426 | _ACEOF |
5b6879c5 | 6427 | |
5b6879c5 FJ |
6428 | fi |
6429 | ||
daa2886c | 6430 | |
5b6879c5 | 6431 | else |
daa2886c | 6432 | { echo "$as_me:$LINENO: WARNING: XShape extension not found, Wine will be built without it" >&5 |
f5818d2f | 6433 | echo "$as_me: WARNING: XShape extension not found, Wine will be built without it" >&2;} |
5b6879c5 | 6434 | fi |
daa2886c | 6435 | |
5b6879c5 FJ |
6436 | done |
6437 | ||
daa2886c AJ |
6438 | |
6439 | ||
f5818d2f | 6440 | for ac_header in X11/extensions/xf86dga.h |
5b6879c5 | 6441 | do |
f5818d2f | 6442 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
daa2886c | 6443 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
f5818d2f AJ |
6444 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
6445 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6446 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6447 | else | |
6448 | cat >conftest.$ac_ext <<_ACEOF | |
daa2886c | 6449 | #line $LINENO "configure" |
5b6879c5 | 6450 | #include "confdefs.h" |
daa2886c AJ |
6451 | #include <X11/Xlib.h> |
6452 | ||
f5818d2f AJ |
6453 | #include <$ac_header> |
6454 | _ACEOF | |
daa2886c AJ |
6455 | rm -f conftest.$ac_objext |
6456 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6457 | (eval $ac_compile) 2>&5 | |
f5818d2f | 6458 | ac_status=$? |
daa2886c AJ |
6459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6460 | (exit $ac_status); } && | |
6461 | { ac_try='test -s conftest.$ac_objext' | |
6462 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6463 | (eval $ac_try) 2>&5 | |
6464 | ac_status=$? | |
6465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6466 | (exit $ac_status); }; }; then | |
f5818d2f AJ |
6467 | eval "$as_ac_Header=yes" |
6468 | else | |
6469 | echo "$as_me: failed program was:" >&5 | |
daa2886c AJ |
6470 | cat conftest.$ac_ext >&5 |
6471 | eval "$as_ac_Header=no" | |
5b6879c5 | 6472 | fi |
daa2886c | 6473 | rm -f conftest.$ac_objext conftest.$ac_ext |
5b6879c5 | 6474 | fi |
daa2886c | 6475 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
f5818d2f AJ |
6476 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
6477 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
daa2886c | 6478 | cat >>confdefs.h <<_ACEOF |
f5818d2f | 6479 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
daa2886c AJ |
6480 | _ACEOF |
6481 | echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5 | |
f5818d2f AJ |
6482 | echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6 |
6483 | if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then | |
6484 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d94475bd | 6485 | else |
f5818d2f | 6486 | ac_check_lib_save_LIBS=$LIBS |
10ad97c8 | 6487 | LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS |
f2b77ccb | 6488 | $LIBS" |
f5818d2f | 6489 | cat >conftest.$ac_ext <<_ACEOF |
daa2886c | 6490 | #line $LINENO "configure" |
d94475bd | 6491 | #include "confdefs.h" |
f5818d2f | 6492 | |
d94475bd | 6493 | /* Override any gcc2 internal prototype to avoid an error. */ |
f5818d2f AJ |
6494 | #ifdef __cplusplus |
6495 | extern "C" | |
6496 | #endif | |
d94475bd | 6497 | /* We use char because int might match the return type of a gcc2 |
f5818d2f AJ |
6498 | builtin and then its argument prototype would still apply. */ |
6499 | char XDGAQueryExtension (); | |
daa2886c AJ |
6500 | #ifdef F77_DUMMY_MAIN |
6501 | # ifdef __cplusplus | |
6502 | extern "C" | |
6503 | # endif | |
6504 | int F77_DUMMY_MAIN() { return 1; } | |
6505 | #endif | |
f5818d2f AJ |
6506 | int |
6507 | main () | |
6508 | { | |
6509 | XDGAQueryExtension (); | |
6510 | ; | |
6511 | return 0; | |
6512 | } | |
6513 | _ACEOF | |
6514 | rm -f conftest.$ac_objext conftest$ac_exeext | |
daa2886c | 6515 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f5818d2f AJ |
6516 | (eval $ac_link) 2>&5 |
6517 | ac_status=$? | |
daa2886c | 6518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
6519 | (exit $ac_status); } && |
6520 | { ac_try='test -s conftest$ac_exeext' | |
daa2886c | 6521 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
6522 | (eval $ac_try) 2>&5 |
6523 | ac_status=$? | |
daa2886c | 6524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
6525 | (exit $ac_status); }; }; then |
6526 | ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes | |
6527 | else | |
6528 | echo "$as_me: failed program was:" >&5 | |
6529 | cat conftest.$ac_ext >&5 | |
6530 | ac_cv_lib_Xxf86dga_XDGAQueryExtension=no | |
6531 | fi | |
6532 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6533 | LIBS=$ac_check_lib_save_LIBS | |
6534 | fi | |
daa2886c | 6535 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5 |
f5818d2f AJ |
6536 | echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6 |
6537 | if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then | |
6538 | ||
daa2886c | 6539 | cat >>confdefs.h <<\_ACEOF |
d94475bd | 6540 | #define HAVE_LIBXXF86DGA2 1 |
daa2886c | 6541 | _ACEOF |
10ad97c8 | 6542 | |
f2b77ccb | 6543 | X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga" |
f5818d2f | 6544 | |
d94475bd | 6545 | else |
daa2886c | 6546 | echo "$as_me:$LINENO: checking for XF86DGAQueryExtension in -lXxf86dga" >&5 |
f5818d2f AJ |
6547 | echo $ECHO_N "checking for XF86DGAQueryExtension in -lXxf86dga... $ECHO_C" >&6 |
6548 | if test "${ac_cv_lib_Xxf86dga_XF86DGAQueryExtension+set}" = set; then | |
6549 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
02e90087 | 6550 | else |
f5818d2f | 6551 | ac_check_lib_save_LIBS=$LIBS |
f2b77ccb JS |
6552 | LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS |
6553 | $LIBS" | |
f5818d2f | 6554 | cat >conftest.$ac_ext <<_ACEOF |
daa2886c | 6555 | #line $LINENO "configure" |
02e90087 | 6556 | #include "confdefs.h" |
f5818d2f | 6557 | |
02e90087 | 6558 | /* Override any gcc2 internal prototype to avoid an error. */ |
f5818d2f AJ |
6559 | #ifdef __cplusplus |
6560 | extern "C" | |
6561 | #endif | |
02e90087 | 6562 | /* We use char because int might match the return type of a gcc2 |
f5818d2f AJ |
6563 | builtin and then its argument prototype would still apply. */ |
6564 | char XF86DGAQueryExtension (); | |
daa2886c AJ |
6565 | #ifdef F77_DUMMY_MAIN |
6566 | # ifdef __cplusplus | |
6567 | extern "C" | |
6568 | # endif | |
6569 | int F77_DUMMY_MAIN() { return 1; } | |
6570 | #endif | |
f5818d2f AJ |
6571 | int |
6572 | main () | |
6573 | { | |
6574 | XF86DGAQueryExtension (); | |
6575 | ; | |
6576 | return 0; | |
6577 | } | |
6578 | _ACEOF | |
6579 | rm -f conftest.$ac_objext conftest$ac_exeext | |
daa2886c | 6580 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f5818d2f AJ |
6581 | (eval $ac_link) 2>&5 |
6582 | ac_status=$? | |
daa2886c | 6583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
6584 | (exit $ac_status); } && |
6585 | { ac_try='test -s conftest$ac_exeext' | |
daa2886c | 6586 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
6587 | (eval $ac_try) 2>&5 |
6588 | ac_status=$? | |
daa2886c | 6589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
6590 | (exit $ac_status); }; }; then |
6591 | ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=yes | |
6592 | else | |
6593 | echo "$as_me: failed program was:" >&5 | |
6594 | cat conftest.$ac_ext >&5 | |
6595 | ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=no | |
6596 | fi | |
6597 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6598 | LIBS=$ac_check_lib_save_LIBS | |
6599 | fi | |
daa2886c | 6600 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&5 |
f5818d2f AJ |
6601 | echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&6 |
6602 | if test $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension = yes; then | |
6603 | ||
daa2886c | 6604 | cat >>confdefs.h <<\_ACEOF |
0623a6f3 | 6605 | #define HAVE_LIBXXF86DGA 1 |
daa2886c | 6606 | _ACEOF |
10ad97c8 | 6607 | |
f2b77ccb | 6608 | X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga" |
f5818d2f | 6609 | |
0623a6f3 AJ |
6610 | fi |
6611 | ||
daa2886c | 6612 | |
f2b77ccb JS |
6613 | fi |
6614 | ||
daa2886c | 6615 | |
f2b77ccb | 6616 | else |
daa2886c | 6617 | { echo "$as_me:$LINENO: WARNING: DGA extension not found, Wine will be built without it" >&5 |
f5818d2f | 6618 | echo "$as_me: WARNING: DGA extension not found, Wine will be built without it" >&2;} |
f2b77ccb | 6619 | fi |
daa2886c | 6620 | |
f2b77ccb JS |
6621 | done |
6622 | ||
daa2886c AJ |
6623 | |
6624 | ||
f5818d2f | 6625 | for ac_header in X11/extensions/xf86vmode.h |
24110288 | 6626 | do |
f5818d2f | 6627 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
daa2886c | 6628 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
f5818d2f AJ |
6629 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
6630 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6631 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6632 | else | |
6633 | cat >conftest.$ac_ext <<_ACEOF | |
daa2886c | 6634 | #line $LINENO "configure" |
24110288 | 6635 | #include "confdefs.h" |
daa2886c AJ |
6636 | #include <X11/Xlib.h> |
6637 | ||
f5818d2f AJ |
6638 | #include <$ac_header> |
6639 | _ACEOF | |
daa2886c AJ |
6640 | rm -f conftest.$ac_objext |
6641 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6642 | (eval $ac_compile) 2>&5 | |
f5818d2f | 6643 | ac_status=$? |
daa2886c AJ |
6644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6645 | (exit $ac_status); } && | |
6646 | { ac_try='test -s conftest.$ac_objext' | |
6647 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6648 | (eval $ac_try) 2>&5 | |
6649 | ac_status=$? | |
6650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6651 | (exit $ac_status); }; }; then | |
f5818d2f AJ |
6652 | eval "$as_ac_Header=yes" |
6653 | else | |
6654 | echo "$as_me: failed program was:" >&5 | |
daa2886c AJ |
6655 | cat conftest.$ac_ext >&5 |
6656 | eval "$as_ac_Header=no" | |
24110288 | 6657 | fi |
daa2886c | 6658 | rm -f conftest.$ac_objext conftest.$ac_ext |
24110288 | 6659 | fi |
daa2886c | 6660 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
f5818d2f AJ |
6661 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
6662 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
daa2886c | 6663 | cat >>confdefs.h <<_ACEOF |
f5818d2f | 6664 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
daa2886c AJ |
6665 | _ACEOF |
6666 | echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5 | |
f5818d2f AJ |
6667 | echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6 |
6668 | if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then | |
6669 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
399931a2 | 6670 | else |
f5818d2f | 6671 | ac_check_lib_save_LIBS=$LIBS |
f2b77ccb JS |
6672 | LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS |
6673 | $LIBS" | |
f5818d2f | 6674 | cat >conftest.$ac_ext <<_ACEOF |
daa2886c | 6675 | #line $LINENO "configure" |
399931a2 | 6676 | #include "confdefs.h" |
f5818d2f | 6677 | |
399931a2 | 6678 | /* Override any gcc2 internal prototype to avoid an error. */ |
f5818d2f AJ |
6679 | #ifdef __cplusplus |
6680 | extern "C" | |
6681 | #endif | |
399931a2 | 6682 | /* We use char because int might match the return type of a gcc2 |
f5818d2f AJ |
6683 | builtin and then its argument prototype would still apply. */ |
6684 | char XF86VidModeQueryExtension (); | |
daa2886c AJ |
6685 | #ifdef F77_DUMMY_MAIN |
6686 | # ifdef __cplusplus | |
6687 | extern "C" | |
6688 | # endif | |
6689 | int F77_DUMMY_MAIN() { return 1; } | |
6690 | #endif | |
f5818d2f AJ |
6691 | int |
6692 | main () | |
6693 | { | |
6694 | XF86VidModeQueryExtension (); | |
6695 | ; | |
6696 | return 0; | |
6697 | } | |
6698 | _ACEOF | |
6699 | rm -f conftest.$ac_objext conftest$ac_exeext | |
daa2886c | 6700 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f5818d2f AJ |
6701 | (eval $ac_link) 2>&5 |
6702 | ac_status=$? | |
daa2886c | 6703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
6704 | (exit $ac_status); } && |
6705 | { ac_try='test -s conftest$ac_exeext' | |
daa2886c | 6706 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
6707 | (eval $ac_try) 2>&5 |
6708 | ac_status=$? | |
daa2886c | 6709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
6710 | (exit $ac_status); }; }; then |
6711 | ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes | |
6712 | else | |
6713 | echo "$as_me: failed program was:" >&5 | |
6714 | cat conftest.$ac_ext >&5 | |
6715 | ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no | |
6716 | fi | |
6717 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6718 | LIBS=$ac_check_lib_save_LIBS | |
6719 | fi | |
daa2886c | 6720 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5 |
f5818d2f AJ |
6721 | echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6 |
6722 | if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then | |
6723 | ||
daa2886c | 6724 | cat >>confdefs.h <<\_ACEOF |
399931a2 | 6725 | #define HAVE_LIBXXF86VM 1 |
daa2886c | 6726 | _ACEOF |
f2b77ccb JS |
6727 | |
6728 | X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm" | |
f5818d2f | 6729 | |
399931a2 SC |
6730 | fi |
6731 | ||
daa2886c | 6732 | |
f2b77ccb | 6733 | else |
daa2886c | 6734 | { echo "$as_me:$LINENO: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&5 |
f5818d2f | 6735 | echo "$as_me: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&2;} |
f2b77ccb | 6736 | fi |
daa2886c | 6737 | |
f2b77ccb | 6738 | done |
5c085704 | 6739 | |
daa2886c AJ |
6740 | |
6741 | ||
f5818d2f | 6742 | for ac_header in X11/extensions/Xvlib.h |
3d2f32dc | 6743 | do |
f5818d2f | 6744 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
daa2886c | 6745 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
f5818d2f AJ |
6746 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
6747 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6748 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6749 | else | |
6750 | cat >conftest.$ac_ext <<_ACEOF | |
daa2886c | 6751 | #line $LINENO "configure" |
3d2f32dc | 6752 | #include "confdefs.h" |
daa2886c AJ |
6753 | #include <X11/Xlib.h> |
6754 | ||
f5818d2f AJ |
6755 | #include <$ac_header> |
6756 | _ACEOF | |
daa2886c AJ |
6757 | rm -f conftest.$ac_objext |
6758 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6759 | (eval $ac_compile) 2>&5 | |
f5818d2f | 6760 | ac_status=$? |
daa2886c AJ |
6761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6762 | (exit $ac_status); } && | |
6763 | { ac_try='test -s conftest.$ac_objext' | |
6764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6765 | (eval $ac_try) 2>&5 | |
6766 | ac_status=$? | |
6767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6768 | (exit $ac_status); }; }; then | |
f5818d2f AJ |
6769 | eval "$as_ac_Header=yes" |
6770 | else | |
6771 | echo "$as_me: failed program was:" >&5 | |
daa2886c AJ |
6772 | cat conftest.$ac_ext >&5 |
6773 | eval "$as_ac_Header=no" | |
3d2f32dc | 6774 | fi |
daa2886c | 6775 | rm -f conftest.$ac_objext conftest.$ac_ext |
3d2f32dc | 6776 | fi |
daa2886c | 6777 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
f5818d2f AJ |
6778 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
6779 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
daa2886c | 6780 | cat >>confdefs.h <<_ACEOF |
f5818d2f | 6781 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
daa2886c AJ |
6782 | _ACEOF |
6783 | echo "$as_me:$LINENO: checking for XvShmCreateImage in -lXv" >&5 | |
f5818d2f AJ |
6784 | echo $ECHO_N "checking for XvShmCreateImage in -lXv... $ECHO_C" >&6 |
6785 | if test "${ac_cv_lib_Xv_XvShmCreateImage+set}" = set; then | |
6786 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3d2f32dc | 6787 | else |
f5818d2f | 6788 | ac_check_lib_save_LIBS=$LIBS |
3d2f32dc LU |
6789 | LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS |
6790 | $LIBS" | |
f5818d2f | 6791 | cat >conftest.$ac_ext <<_ACEOF |
daa2886c | 6792 | #line $LINENO "configure" |
3d2f32dc | 6793 | #include "confdefs.h" |
f5818d2f | 6794 | |
3d2f32dc | 6795 | /* Override any gcc2 internal prototype to avoid an error. */ |
f5818d2f AJ |
6796 | #ifdef __cplusplus |
6797 | extern "C" | |
6798 | #endif | |
3d2f32dc | 6799 | /* We use char because int might match the return type of a gcc2 |
f5818d2f AJ |
6800 | builtin and then its argument prototype would still apply. */ |
6801 | char XvShmCreateImage (); | |
daa2886c AJ |
6802 | #ifdef F77_DUMMY_MAIN |
6803 | # ifdef __cplusplus | |
6804 | extern "C" | |
6805 | # endif | |
6806 | int F77_DUMMY_MAIN() { return 1; } | |
6807 | #endif | |
f5818d2f AJ |
6808 | int |
6809 | main () | |
6810 | { | |
6811 | XvShmCreateImage (); | |
6812 | ; | |
6813 | return 0; | |
6814 | } | |
6815 | _ACEOF | |
6816 | rm -f conftest.$ac_objext conftest$ac_exeext | |
daa2886c | 6817 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f5818d2f AJ |
6818 | (eval $ac_link) 2>&5 |
6819 | ac_status=$? | |
daa2886c | 6820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
6821 | (exit $ac_status); } && |
6822 | { ac_try='test -s conftest$ac_exeext' | |
daa2886c | 6823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
6824 | (eval $ac_try) 2>&5 |
6825 | ac_status=$? | |
daa2886c | 6826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
6827 | (exit $ac_status); }; }; then |
6828 | ac_cv_lib_Xv_XvShmCreateImage=yes | |
6829 | else | |
6830 | echo "$as_me: failed program was:" >&5 | |
6831 | cat conftest.$ac_ext >&5 | |
6832 | ac_cv_lib_Xv_XvShmCreateImage=no | |
6833 | fi | |
6834 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
6835 | LIBS=$ac_check_lib_save_LIBS | |
6836 | fi | |
daa2886c | 6837 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_XvShmCreateImage" >&5 |
f5818d2f AJ |
6838 | echo "${ECHO_T}$ac_cv_lib_Xv_XvShmCreateImage" >&6 |
6839 | if test $ac_cv_lib_Xv_XvShmCreateImage = yes; then | |
6840 | ||
daa2886c | 6841 | cat >>confdefs.h <<\_ACEOF |
3d2f32dc | 6842 | #define HAVE_XVIDEO 1 |
daa2886c | 6843 | _ACEOF |
3d2f32dc LU |
6844 | |
6845 | X_PRE_LIBS="$X_PRE_LIBS -lXv" | |
f5818d2f | 6846 | |
3d2f32dc LU |
6847 | fi |
6848 | ||
daa2886c | 6849 | |
3d2f32dc | 6850 | else |
daa2886c | 6851 | { echo "$as_me:$LINENO: WARNING: XVideo extension not found, Wine will be built without it" >&5 |
f5818d2f | 6852 | echo "$as_me: WARNING: XVideo extension not found, Wine will be built without it" >&2;} |
3d2f32dc | 6853 | fi |
daa2886c | 6854 | |
3d2f32dc LU |
6855 | done |
6856 | ||
daa2886c AJ |
6857 | |
6858 | ||
f5818d2f | 6859 | for ac_header in X11/extensions/Xrender.h |
ff453fcd | 6860 | do |
f5818d2f | 6861 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
daa2886c | 6862 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
f5818d2f AJ |
6863 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
6864 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6865 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6866 | else | |
6867 | cat >conftest.$ac_ext <<_ACEOF | |
daa2886c | 6868 | #line $LINENO "configure" |
ff453fcd | 6869 | #include "confdefs.h" |
daa2886c AJ |
6870 | #include <X11/Xlib.h> |
6871 | ||
f5818d2f AJ |
6872 | #include <$ac_header> |
6873 | _ACEOF | |
daa2886c AJ |
6874 | rm -f conftest.$ac_objext |
6875 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6876 | (eval $ac_compile) 2>&5 | |
f5818d2f | 6877 | ac_status=$? |
daa2886c AJ |
6878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6879 | (exit $ac_status); } && | |
6880 | { ac_try='test -s conftest.$ac_objext' | |
6881 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6882 | (eval $ac_try) 2>&5 | |
6883 | ac_status=$? | |
6884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6885 | (exit $ac_status); }; }; then | |
f5818d2f AJ |
6886 | eval "$as_ac_Header=yes" |
6887 | else | |
6888 | echo "$as_me: failed program was:" >&5 | |
daa2886c AJ |
6889 | cat conftest.$ac_ext >&5 |
6890 | eval "$as_ac_Header=no" | |
ff453fcd | 6891 | fi |
daa2886c | 6892 | rm -f conftest.$ac_objext conftest.$ac_ext |
ff453fcd | 6893 | fi |
daa2886c | 6894 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
f5818d2f AJ |
6895 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
6896 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
daa2886c | 6897 | cat >>confdefs.h <<_ACEOF |
f5818d2f | 6898 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
daa2886c | 6899 | _ACEOF |
f5818d2f | 6900 | |
ff453fcd | 6901 | fi |
daa2886c | 6902 | |
ff453fcd HD |
6903 | done |
6904 | ||
daa2886c AJ |
6905 | |
6906 | ||
f2b77ccb | 6907 | fi |
daa2886c | 6908 | |
f2b77ccb | 6909 | done |
f5818d2f AJ |
6910 | |
6911 | if test "x$enable_opengl" != "xno" | |
fbc15b17 | 6912 | then |
42dcd97e | 6913 | if test -f /usr/X11R6/lib/libGL.a -a ! -f /usr/X11R6/lib/libGL.so |
b508a1da | 6914 | then |
daa2886c | 6915 | { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system. |
f5818d2f AJ |
6916 | This prevents linking to OpenGL. Delete the file and restart configure." >&5 |
6917 | echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system. | |
6918 | This prevents linking to OpenGL. Delete the file and restart configure." >&2;} | |
6919 | { (exit 1); exit 1; }; } | |
b508a1da AJ |
6920 | fi |
6921 | ||
daa2886c AJ |
6922 | |
6923 | ||
6924 | for ac_header in GL/gl.h GL/glx.h | |
24110288 | 6925 | do |
f5818d2f | 6926 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
daa2886c AJ |
6927 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
6928 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
f5818d2f AJ |
6929 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
6930 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6931 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
daa2886c AJ |
6932 | fi |
6933 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6934 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
f5818d2f | 6935 | else |
daa2886c AJ |
6936 | # Is the header compilable? |
6937 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6938 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6939 | cat >conftest.$ac_ext <<_ACEOF | |
6940 | #line $LINENO "configure" | |
6941 | #include "confdefs.h" | |
6942 | $ac_includes_default | |
6943 | #include <$ac_header> | |
6944 | _ACEOF | |
6945 | rm -f conftest.$ac_objext | |
6946 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6947 | (eval $ac_compile) 2>&5 | |
6948 | ac_status=$? | |
6949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6950 | (exit $ac_status); } && | |
6951 | { ac_try='test -s conftest.$ac_objext' | |
6952 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6953 | (eval $ac_try) 2>&5 | |
6954 | ac_status=$? | |
6955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6956 | (exit $ac_status); }; }; then | |
6957 | ac_header_compiler=yes | |
6958 | else | |
6959 | echo "$as_me: failed program was:" >&5 | |
6960 | cat conftest.$ac_ext >&5 | |
6961 | ac_header_compiler=no | |
6962 | fi | |
6963 | rm -f conftest.$ac_objext conftest.$ac_ext | |
6964 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6965 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6966 | ||
6967 | # Is the header present? | |
6968 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6969 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6970 | cat >conftest.$ac_ext <<_ACEOF | |
6971 | #line $LINENO "configure" | |
24110288 | 6972 | #include "confdefs.h" |
f5818d2f AJ |
6973 | #include <$ac_header> |
6974 | _ACEOF | |
daa2886c | 6975 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
f5818d2f AJ |
6976 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
6977 | ac_status=$? | |
6978 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
6979 | rm -f conftest.er1 | |
6980 | cat conftest.err >&5 | |
daa2886c | 6981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
6982 | (exit $ac_status); } >/dev/null; then |
6983 | if test -s conftest.err; then | |
6984 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6985 | else | |
6986 | ac_cpp_err= | |
6987 | fi | |
6988 | else | |
6989 | ac_cpp_err=yes | |
6990 | fi | |
6991 | if test -z "$ac_cpp_err"; then | |
daa2886c | 6992 | ac_header_preproc=yes |
f5818d2f AJ |
6993 | else |
6994 | echo "$as_me: failed program was:" >&5 | |
24110288 | 6995 | cat conftest.$ac_ext >&5 |
daa2886c | 6996 | ac_header_preproc=no |
24110288 | 6997 | fi |
f5818d2f | 6998 | rm -f conftest.err conftest.$ac_ext |
daa2886c AJ |
6999 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7000 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
7001 | ||
7002 | # So? What about this header? | |
7003 | case $ac_header_compiler:$ac_header_preproc in | |
7004 | yes:no ) | |
7005 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
7006 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7007 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7008 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
7009 | no:yes ) | |
7010 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
7011 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7012 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7013 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7014 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7015 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
7016 | esac | |
7017 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7018 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7019 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
7020 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7021 | else | |
7022 | eval "$as_ac_Header=$ac_header_preproc" | |
24110288 | 7023 | fi |
daa2886c | 7024 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
f5818d2f | 7025 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
daa2886c AJ |
7026 | |
7027 | fi | |
f5818d2f | 7028 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
daa2886c | 7029 | cat >>confdefs.h <<_ACEOF |
f5818d2f | 7030 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
daa2886c | 7031 | _ACEOF |
f5818d2f | 7032 | |
24110288 | 7033 | fi |
daa2886c | 7034 | |
24110288 PS |
7035 | done |
7036 | ||
22a969ba | 7037 | if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes" |
fbc15b17 | 7038 | then |
daa2886c AJ |
7039 | |
7040 | for ac_header in GL/glext.h | |
7041 | do | |
7042 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7043 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7044 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7045 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
7046 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7047 | else | |
7048 | cat >conftest.$ac_ext <<_ACEOF | |
7049 | #line $LINENO "configure" | |
7050 | #include "confdefs.h" | |
7051 | #include <GL/glx.h> | |
7052 | ||
7053 | #include <$ac_header> | |
7054 | _ACEOF | |
7055 | rm -f conftest.$ac_objext | |
7056 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7057 | (eval $ac_compile) 2>&5 | |
7058 | ac_status=$? | |
7059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7060 | (exit $ac_status); } && | |
7061 | { ac_try='test -s conftest.$ac_objext' | |
7062 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7063 | (eval $ac_try) 2>&5 | |
7064 | ac_status=$? | |
7065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7066 | (exit $ac_status); }; }; then | |
7067 | eval "$as_ac_Header=yes" | |
7068 | else | |
7069 | echo "$as_me: failed program was:" >&5 | |
7070 | cat conftest.$ac_ext >&5 | |
7071 | eval "$as_ac_Header=no" | |
7072 | fi | |
7073 | rm -f conftest.$ac_objext conftest.$ac_ext | |
7074 | fi | |
7075 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
7076 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
7077 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
7078 | cat >>confdefs.h <<_ACEOF | |
7079 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7080 | _ACEOF | |
7081 | ||
7082 | fi | |
7083 | ||
7084 | done | |
7085 | ||
7086 | echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5 | |
f5818d2f AJ |
7087 | echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6 |
7088 | if test "${wine_cv_opengl_version_OK+set}" = set; then | |
7089 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5c085704 | 7090 | else |
f5818d2f | 7091 | cat >conftest.$ac_ext <<_ACEOF |
daa2886c | 7092 | #line $LINENO "configure" |
5c085704 LU |
7093 | #include "confdefs.h" |
7094 | #include <GL/gl.h> | |
daa2886c AJ |
7095 | #ifdef F77_DUMMY_MAIN |
7096 | # ifdef __cplusplus | |
7097 | extern "C" | |
7098 | # endif | |
7099 | int F77_DUMMY_MAIN() { return 1; } | |
7100 | #endif | |
f5818d2f AJ |
7101 | int |
7102 | main () | |
7103 | { | |
5c085704 | 7104 | GLenum test = GL_UNSIGNED_SHORT_5_6_5; |
f5818d2f AJ |
7105 | ; |
7106 | return 0; | |
7107 | } | |
7108 | _ACEOF | |
7109 | rm -f conftest.$ac_objext | |
daa2886c | 7110 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
f5818d2f AJ |
7111 | (eval $ac_compile) 2>&5 |
7112 | ac_status=$? | |
daa2886c | 7113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
7114 | (exit $ac_status); } && |
7115 | { ac_try='test -s conftest.$ac_objext' | |
daa2886c | 7116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
7117 | (eval $ac_try) 2>&5 |
7118 | ac_status=$? | |
daa2886c | 7119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 7120 | (exit $ac_status); }; }; then |
bedf40b5 | 7121 | wine_cv_opengl_version_OK="yes" |
5c085704 | 7122 | else |
f5818d2f AJ |
7123 | echo "$as_me: failed program was:" >&5 |
7124 | cat conftest.$ac_ext >&5 | |
7125 | wine_cv_opengl_version_OK="no" | |
7126 | ||
5c085704 | 7127 | fi |
f5818d2f | 7128 | rm -f conftest.$ac_objext conftest.$ac_ext |
5c085704 | 7129 | |
f5818d2f | 7130 | fi |
daa2886c | 7131 | echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5 |
f5818d2f | 7132 | echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6 |
5c085704 | 7133 | |
daa2886c | 7134 | echo "$as_me:$LINENO: checking for thread-safe OpenGL version" >&5 |
f5818d2f AJ |
7135 | echo $ECHO_N "checking for thread-safe OpenGL version... $ECHO_C" >&6 |
7136 | if test "${wine_cv_opengl_version_threadsafe+set}" = set; then | |
7137 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5eee0bff LU |
7138 | else |
7139 | saved_libs=$LIBS | |
fbc15b17 | 7140 | LIBS="$X_LIBS -lGL" |
f5818d2f | 7141 | cat >conftest.$ac_ext <<_ACEOF |
daa2886c | 7142 | #line $LINENO "configure" |
5eee0bff LU |
7143 | #include "confdefs.h" |
7144 | ||
daa2886c AJ |
7145 | #ifdef F77_DUMMY_MAIN |
7146 | # ifdef __cplusplus | |
7147 | extern "C" | |
7148 | # endif | |
7149 | int F77_DUMMY_MAIN() { return 1; } | |
7150 | #endif | |
f5818d2f AJ |
7151 | int |
7152 | main () | |
7153 | { | |
5eee0bff | 7154 | pthread_getspecific(); |
f5818d2f AJ |
7155 | ; |
7156 | return 0; | |
7157 | } | |
7158 | _ACEOF | |
7159 | rm -f conftest.$ac_objext conftest$ac_exeext | |
daa2886c | 7160 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f5818d2f AJ |
7161 | (eval $ac_link) 2>&5 |
7162 | ac_status=$? | |
daa2886c | 7163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
7164 | (exit $ac_status); } && |
7165 | { ac_try='test -s conftest$ac_exeext' | |
daa2886c | 7166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
7167 | (eval $ac_try) 2>&5 |
7168 | ac_status=$? | |
daa2886c | 7169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 7170 | (exit $ac_status); }; }; then |
bedf40b5 | 7171 | wine_cv_opengl_version_threadsafe="yes" |
5eee0bff | 7172 | else |
f5818d2f AJ |
7173 | echo "$as_me: failed program was:" >&5 |
7174 | cat conftest.$ac_ext >&5 | |
7175 | wine_cv_opengl_version_threadsafe="no" | |
5eee0bff | 7176 | fi |
f5818d2f | 7177 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
fbc15b17 | 7178 | LIBS=$saved_libs |
5eee0bff | 7179 | |
f5818d2f | 7180 | fi |
daa2886c | 7181 | echo "$as_me:$LINENO: result: $wine_cv_opengl_version_threadsafe" >&5 |
f5818d2f | 7182 | echo "${ECHO_T}$wine_cv_opengl_version_threadsafe" >&6 |
5eee0bff | 7183 | |
f5818d2f | 7184 | if test "$wine_cv_opengl_version_OK" = "yes" -a \( "$wine_cv_opengl_version_threadsafe" = "no" -o "x$enable_opengl" = "xyes" \) |
fbc15b17 | 7185 | then |
daa2886c | 7186 | echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5 |
f5818d2f AJ |
7187 | echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6 |
7188 | if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then | |
7189 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5ff00774 | 7190 | else |
f5818d2f | 7191 | ac_check_lib_save_LIBS=$LIBS |
376ec88e | 7192 | LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS" |
f5818d2f | 7193 | cat >conftest.$ac_ext <<_ACEOF |
daa2886c | 7194 | #line $LINENO "configure" |
5ff00774 | 7195 | #include "confdefs.h" |
f5818d2f | 7196 | |
5ff00774 | 7197 | /* Override any gcc2 internal prototype to avoid an error. */ |
f5818d2f AJ |
7198 | #ifdef __cplusplus |
7199 | extern "C" | |
7200 | #endif | |
5ff00774 | 7201 | /* We use char because int might match the return type of a gcc2 |
f5818d2f AJ |
7202 | builtin and then its argument prototype would still apply. */ |
7203 | char glXCreateContext (); | |
daa2886c AJ |
7204 | #ifdef F77_DUMMY_MAIN |
7205 | # ifdef __cplusplus | |
7206 | extern "C" | |
7207 | # endif | |
7208 | int F77_DUMMY_MAIN() { return 1; } | |
7209 | #endif | |
f5818d2f AJ |
7210 | int |
7211 | main () | |
7212 | { | |
7213 | glXCreateContext (); | |
7214 | ; | |
7215 | return 0; | |
7216 | } | |
7217 | _ACEOF | |
7218 | rm -f conftest.$ac_objext conftest$ac_exeext | |
daa2886c | 7219 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f5818d2f AJ |
7220 | (eval $ac_link) 2>&5 |
7221 | ac_status=$? | |
daa2886c | 7222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
7223 | (exit $ac_status); } && |
7224 | { ac_try='test -s conftest$ac_exeext' | |
daa2886c | 7225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
7226 | (eval $ac_try) 2>&5 |
7227 | ac_status=$? | |
daa2886c | 7228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
7229 | (exit $ac_status); }; }; then |
7230 | ac_cv_lib_GL_glXCreateContext=yes | |
7231 | else | |
7232 | echo "$as_me: failed program was:" >&5 | |
7233 | cat conftest.$ac_ext >&5 | |
7234 | ac_cv_lib_GL_glXCreateContext=no | |
7235 | fi | |
7236 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7237 | LIBS=$ac_check_lib_save_LIBS | |
7238 | fi | |
daa2886c | 7239 | echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5 |
f5818d2f AJ |
7240 | echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6 |
7241 | if test $ac_cv_lib_GL_glXCreateContext = yes; then | |
bedf40b5 | 7242 | X_PRE_LIBS="$X_PRE_LIBS -lGL" |
5d68f79a | 7243 | |
f5818d2f | 7244 | fi |
fbc15b17 | 7245 | |
daa2886c | 7246 | |
b508a1da | 7247 | if test "$ac_cv_lib_GL_glXCreateContext" = "yes" |
bd8ede1b | 7248 | then |
bd8ede1b | 7249 | OPENGLFILES='$(OPENGLFILES)' |
f5818d2f | 7250 | |
daa2886c | 7251 | cat >>confdefs.h <<\_ACEOF |
6bb6d4c2 | 7252 | #define HAVE_OPENGL 1 |
daa2886c | 7253 | _ACEOF |
6bb6d4c2 | 7254 | |
daa2886c AJ |
7255 | |
7256 | echo "$as_me:$LINENO: checking for glXGetProcAddressARB in -lGL" >&5 | |
f5818d2f AJ |
7257 | echo $ECHO_N "checking for glXGetProcAddressARB in -lGL... $ECHO_C" >&6 |
7258 | if test "${ac_cv_lib_GL_glXGetProcAddressARB+set}" = set; then | |
7259 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
48c08164 | 7260 | else |
f5818d2f | 7261 | ac_check_lib_save_LIBS=$LIBS |
376ec88e | 7262 | LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS" |
f5818d2f | 7263 | cat >conftest.$ac_ext <<_ACEOF |
daa2886c | 7264 | #line $LINENO "configure" |
48c08164 | 7265 | #include "confdefs.h" |
f5818d2f | 7266 | |
48c08164 | 7267 | /* Override any gcc2 internal prototype to avoid an error. */ |
f5818d2f AJ |
7268 | #ifdef __cplusplus |
7269 | extern "C" | |
7270 | #endif | |
48c08164 | 7271 | /* We use char because int might match the return type of a gcc2 |
f5818d2f AJ |
7272 | builtin and then its argument prototype would still apply. */ |
7273 | char glXGetProcAddressARB (); | |
daa2886c AJ |
7274 | #ifdef F77_DUMMY_MAIN |
7275 | # ifdef __cplusplus | |
7276 | extern "C" | |
7277 | # endif | |
7278 | int F77_DUMMY_MAIN() { return 1; } | |
7279 | #endif | |
f5818d2f AJ |
7280 | int |
7281 | main () | |
7282 | { | |
7283 | glXGetProcAddressARB (); | |
7284 | ; | |
7285 | return 0; | |
7286 | } | |
7287 | _ACEOF | |
7288 | rm -f conftest.$ac_objext conftest$ac_exeext | |
daa2886c | 7289 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f5818d2f AJ |
7290 | (eval $ac_link) 2>&5 |
7291 | ac_status=$? | |
daa2886c | 7292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
7293 | (exit $ac_status); } && |
7294 | { ac_try='test -s conftest$ac_exeext' | |
daa2886c | 7295 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
7296 | (eval $ac_try) 2>&5 |
7297 | ac_status=$? | |
daa2886c | 7298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
7299 | (exit $ac_status); }; }; then |
7300 | ac_cv_lib_GL_glXGetProcAddressARB=yes | |
7301 | else | |
7302 | echo "$as_me: failed program was:" >&5 | |
7303 | cat conftest.$ac_ext >&5 | |
7304 | ac_cv_lib_GL_glXGetProcAddressARB=no | |
7305 | fi | |
7306 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7307 | LIBS=$ac_check_lib_save_LIBS | |
7308 | fi | |
daa2886c | 7309 | echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXGetProcAddressARB" >&5 |
f5818d2f AJ |
7310 | echo "${ECHO_T}$ac_cv_lib_GL_glXGetProcAddressARB" >&6 |
7311 | if test $ac_cv_lib_GL_glXGetProcAddressARB = yes; then | |
7312 | ||
daa2886c | 7313 | cat >>confdefs.h <<\_ACEOF |
bedf40b5 | 7314 | #define HAVE_GLX_GETPROCADDRESS 1 |
daa2886c | 7315 | _ACEOF |
48c08164 | 7316 | |
5ff00774 LU |
7317 | fi |
7318 | ||
daa2886c | 7319 | |
b508a1da | 7320 | if test "$ac_cv_lib_GL_glXGetProcAddressARB" = "yes" |
bedf40b5 | 7321 | then |
daa2886c | 7322 | echo "$as_me:$LINENO: checking for OpenGL extension functions prototypes" >&5 |
f5818d2f AJ |
7323 | echo $ECHO_N "checking for OpenGL extension functions prototypes... $ECHO_C" >&6 |
7324 | if test "${wine_cv_extension_prototypes+set}" = set; then | |
7325 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1434d875 | 7326 | else |
f5818d2f | 7327 | cat >conftest.$ac_ext <<_ACEOF |
daa2886c | 7328 | #line $LINENO "configure" |
1434d875 LU |
7329 | #include "confdefs.h" |
7330 | #include <GL/gl.h> | |
6bb6d4c2 MM |
7331 | #ifdef HAVE_GL_GLEXT_H |
7332 | # include <GL/glext.h> | |
7333 | #endif | |
f5818d2f | 7334 | |
daa2886c AJ |
7335 | #ifdef F77_DUMMY_MAIN |
7336 | # ifdef __cplusplus | |
7337 | extern "C" | |
7338 | # endif | |
7339 | int F77_DUMMY_MAIN() { return 1; } | |
7340 | #endif | |
f5818d2f AJ |
7341 | int |
7342 | main () | |
7343 | { | |
7344 | PFNGLCOLORTABLEEXTPROC test_proc; | |
7345 | ; | |
7346 | return 0; | |
7347 | } | |
7348 | _ACEOF | |
7349 | rm -f conftest.$ac_objext | |
daa2886c | 7350 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
f5818d2f AJ |
7351 | (eval $ac_compile) 2>&5 |
7352 | ac_status=$? | |
daa2886c | 7353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
7354 | (exit $ac_status); } && |
7355 | { ac_try='test -s conftest.$ac_objext' | |
daa2886c | 7356 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
7357 | (eval $ac_try) 2>&5 |
7358 | ac_status=$? | |
daa2886c | 7359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 7360 | (exit $ac_status); }; }; then |
fe210ef3 | 7361 | wine_cv_extension_prototypes="yes" |
1434d875 | 7362 | else |
f5818d2f AJ |
7363 | echo "$as_me: failed program was:" >&5 |
7364 | cat conftest.$ac_ext >&5 | |
7365 | wine_cv_extension_prototypes="no" | |
7366 | ||
1434d875 | 7367 | fi |
f5818d2f | 7368 | rm -f conftest.$ac_objext conftest.$ac_ext |
1434d875 | 7369 | |
f5818d2f | 7370 | fi |
daa2886c | 7371 | echo "$as_me:$LINENO: result: $wine_cv_extension_prototypes" >&5 |
f5818d2f | 7372 | echo "${ECHO_T}$wine_cv_extension_prototypes" >&6 |
b508a1da | 7373 | if test "$wine_cv_extension_prototypes" = "yes" |
fe210ef3 | 7374 | then |
f5818d2f | 7375 | |
daa2886c | 7376 | cat >>confdefs.h <<\_ACEOF |
fe210ef3 | 7377 | #define HAVE_GLEXT_PROTOTYPES 1 |
daa2886c | 7378 | _ACEOF |
fe210ef3 LU |
7379 | |
7380 | fi | |
bedf40b5 | 7381 | fi |
d6c0f9f7 | 7382 | |
fbc15b17 | 7383 | fi |
daa2886c | 7384 | echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5 |
f5818d2f AJ |
7385 | echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6 |
7386 | if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then | |
7387 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b63ab445 | 7388 | else |
f5818d2f | 7389 | ac_check_lib_save_LIBS=$LIBS |
b63ab445 MM |
7390 | LIBS="-lGLU $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS |
7391 | $LIBS" | |
f5818d2f | 7392 | cat >conftest.$ac_ext <<_ACEOF |
daa2886c | 7393 | #line $LINENO "configure" |
b63ab445 | 7394 | #include "confdefs.h" |
f5818d2f | 7395 | |
b63ab445 | 7396 | /* Override any gcc2 internal prototype to avoid an error. */ |
f5818d2f AJ |
7397 | #ifdef __cplusplus |
7398 | extern "C" | |
7399 | #endif | |
b63ab445 | 7400 | /* We use char because int might match the return type of a gcc2 |
f5818d2f AJ |
7401 | builtin and then its argument prototype would still apply. */ |
7402 | char gluLookAt (); | |
daa2886c AJ |
7403 | #ifdef F77_DUMMY_MAIN |
7404 | # ifdef __cplusplus | |
7405 | extern "C" | |
7406 | # endif | |
7407 | int F77_DUMMY_MAIN() { return 1; } | |
7408 | #endif | |
f5818d2f AJ |
7409 | int |
7410 | main () | |
7411 | { | |
7412 | gluLookAt (); | |
7413 | ; | |
7414 | return 0; | |
7415 | } | |
7416 | _ACEOF | |
7417 | rm -f conftest.$ac_objext conftest$ac_exeext | |
daa2886c | 7418 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f5818d2f AJ |
7419 | (eval $ac_link) 2>&5 |
7420 | ac_status=$? | |
daa2886c | 7421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
7422 | (exit $ac_status); } && |
7423 | { ac_try='test -s conftest$ac_exeext' | |
daa2886c | 7424 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
7425 | (eval $ac_try) 2>&5 |
7426 | ac_status=$? | |
daa2886c | 7427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
7428 | (exit $ac_status); }; }; then |
7429 | ac_cv_lib_GLU_gluLookAt=yes | |
7430 | else | |
7431 | echo "$as_me: failed program was:" >&5 | |
7432 | cat conftest.$ac_ext >&5 | |
7433 | ac_cv_lib_GLU_gluLookAt=no | |
7434 | fi | |
7435 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7436 | LIBS=$ac_check_lib_save_LIBS | |
7437 | fi | |
daa2886c | 7438 | echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5 |
f5818d2f AJ |
7439 | echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6 |
7440 | if test $ac_cv_lib_GLU_gluLookAt = yes; then | |
b63ab445 MM |
7441 | X_PRE_LIBS="$X_PRE_LIBS -lGLU" |
7442 | GLU32FILES='$(GLU32FILES)' | |
f5818d2f | 7443 | |
b63ab445 MM |
7444 | fi |
7445 | ||
fbc15b17 LU |
7446 | fi |
7447 | fi | |
24110288 | 7448 | fi |
1eb593cb OK |
7449 | |
7450 | CPPFLAGS="$ac_save_CPPFLAGS" | |
2941a212 | 7451 | XFILES='$(XFILES)' |
24110288 | 7452 | else |
daa2886c AJ |
7453 | XLIB="" |
7454 | X_CFLAGS="" | |
7455 | X_LIBS="" | |
7456 | fi | |
7457 | ||
7458 | CURSESLIBS="" | |
7459 | if test "x$with_curses" != "xno" | |
7460 | then | |
7461 | ||
7462 | for ac_header in ncurses.h | |
7463 | do | |
7464 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7465 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
7466 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7467 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7468 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
7469 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7470 | fi | |
7471 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
7472 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
7473 | else | |
7474 | # Is the header compilable? | |
7475 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
7476 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
7477 | cat >conftest.$ac_ext <<_ACEOF | |
7478 | #line $LINENO "configure" | |
7479 | #include "confdefs.h" | |
7480 | $ac_includes_default | |
7481 | #include <$ac_header> | |
7482 | _ACEOF | |
7483 | rm -f conftest.$ac_objext | |
7484 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7485 | (eval $ac_compile) 2>&5 | |
7486 | ac_status=$? | |
7487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7488 | (exit $ac_status); } && | |
7489 | { ac_try='test -s conftest.$ac_objext' | |
7490 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7491 | (eval $ac_try) 2>&5 | |
7492 | ac_status=$? | |
7493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7494 | (exit $ac_status); }; }; then | |
7495 | ac_header_compiler=yes | |
7496 | else | |
7497 | echo "$as_me: failed program was:" >&5 | |
7498 | cat conftest.$ac_ext >&5 | |
7499 | ac_header_compiler=no | |
24110288 | 7500 | fi |
daa2886c AJ |
7501 | rm -f conftest.$ac_objext conftest.$ac_ext |
7502 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
7503 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
24110288 | 7504 | |
daa2886c AJ |
7505 | # Is the header present? |
7506 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
7507 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
7508 | cat >conftest.$ac_ext <<_ACEOF | |
7509 | #line $LINENO "configure" | |
a1d6d247 | 7510 | #include "confdefs.h" |
f5818d2f AJ |
7511 | #include <$ac_header> |
7512 | _ACEOF | |
daa2886c | 7513 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
f5818d2f AJ |
7514 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
7515 | ac_status=$? | |
7516 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
7517 | rm -f conftest.er1 | |
7518 | cat conftest.err >&5 | |
daa2886c | 7519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
7520 | (exit $ac_status); } >/dev/null; then |
7521 | if test -s conftest.err; then | |
7522 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7523 | else | |
7524 | ac_cpp_err= | |
7525 | fi | |
7526 | else | |
7527 | ac_cpp_err=yes | |
7528 | fi | |
7529 | if test -z "$ac_cpp_err"; then | |
daa2886c | 7530 | ac_header_preproc=yes |
f5818d2f AJ |
7531 | else |
7532 | echo "$as_me: failed program was:" >&5 | |
a1d6d247 | 7533 | cat conftest.$ac_ext >&5 |
daa2886c | 7534 | ac_header_preproc=no |
a1d6d247 | 7535 | fi |
f5818d2f | 7536 | rm -f conftest.err conftest.$ac_ext |
daa2886c AJ |
7537 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7538 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
7539 | ||
7540 | # So? What about this header? | |
7541 | case $ac_header_compiler:$ac_header_preproc in | |
7542 | yes:no ) | |
7543 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
7544 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7545 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7546 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
7547 | no:yes ) | |
7548 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
7549 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7550 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7551 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7552 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7553 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
7554 | esac | |
7555 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7556 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7557 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
7558 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7559 | else | |
7560 | eval "$as_ac_Header=$ac_header_preproc" | |
a1d6d247 | 7561 | fi |
daa2886c | 7562 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
f5818d2f | 7563 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
daa2886c AJ |
7564 | |
7565 | fi | |
f5818d2f | 7566 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
daa2886c | 7567 | cat >>confdefs.h <<_ACEOF |
f5818d2f | 7568 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
daa2886c AJ |
7569 | _ACEOF |
7570 | echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5 | |
f5818d2f AJ |
7571 | echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6 |
7572 | if test "${ac_cv_lib_ncurses_waddch+set}" = set; then | |
7573 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
e884f9ca | 7574 | else |
f5818d2f | 7575 | ac_check_lib_save_LIBS=$LIBS |
e884f9ca | 7576 | LIBS="-lncurses $LIBS" |
f5818d2f | 7577 | cat >conftest.$ac_ext <<_ACEOF |
daa2886c | 7578 | #line $LINENO "configure" |
e884f9ca | 7579 | #include "confdefs.h" |
f5818d2f | 7580 | |
e884f9ca | 7581 | /* Override any gcc2 internal prototype to avoid an error. */ |
f5818d2f AJ |
7582 | #ifdef __cplusplus |
7583 | extern "C" | |
7584 | #endif | |
e884f9ca | 7585 | /* We use char because int might match the return type of a gcc2 |
f5818d2f AJ |
7586 | builtin and then its argument prototype would still apply. */ |
7587 | char waddch (); | |
daa2886c AJ |
7588 | #ifdef F77_DUMMY_MAIN |
7589 | # ifdef __cplusplus | |
7590 | extern "C" | |
7591 | # endif | |
7592 | int F77_DUMMY_MAIN() { return 1; } | |
7593 | #endif | |
f5818d2f AJ |
7594 | int |
7595 | main () | |
7596 | { | |
7597 | waddch (); | |
7598 | ; | |
7599 | return 0; | |
7600 | } | |
7601 | _ACEOF | |
7602 | rm -f conftest.$ac_objext conftest$ac_exeext | |
daa2886c | 7603 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f5818d2f AJ |
7604 | (eval $ac_link) 2>&5 |
7605 | ac_status=$? | |
daa2886c | 7606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
7607 | (exit $ac_status); } && |
7608 | { ac_try='test -s conftest$ac_exeext' | |
daa2886c | 7609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
7610 | (eval $ac_try) 2>&5 |
7611 | ac_status=$? | |
daa2886c | 7612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
7613 | (exit $ac_status); }; }; then |
7614 | ac_cv_lib_ncurses_waddch=yes | |
7615 | else | |
7616 | echo "$as_me: failed program was:" >&5 | |
7617 | cat conftest.$ac_ext >&5 | |
7618 | ac_cv_lib_ncurses_waddch=no | |
7619 | fi | |
7620 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7621 | LIBS=$ac_check_lib_save_LIBS | |
7622 | fi | |
daa2886c | 7623 | echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5 |
f5818d2f AJ |
7624 | echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6 |
7625 | if test $ac_cv_lib_ncurses_waddch = yes; then | |
7626 | ||
daa2886c | 7627 | cat >>confdefs.h <<\_ACEOF |
48957684 | 7628 | #define HAVE_LIBNCURSES 1 |
daa2886c | 7629 | _ACEOF |
e884f9ca | 7630 | |
48957684 | 7631 | CURSESLIBS="-lncurses" |
f544507b | 7632 | else |
f5818d2f AJ |
7633 | |
7634 | for ac_header in curses.h | |
24110288 | 7635 | do |
f5818d2f | 7636 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
daa2886c AJ |
7637 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
7638 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
f5818d2f AJ |
7639 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
7640 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
7641 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
daa2886c AJ |
7642 | fi |
7643 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
7644 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
f5818d2f | 7645 | else |
daa2886c AJ |
7646 | # Is the header compilable? |
7647 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
7648 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
7649 | cat >conftest.$ac_ext <<_ACEOF | |
7650 | #line $LINENO "configure" | |
7651 | #include "confdefs.h" | |
7652 | $ac_includes_default | |
7653 | #include <$ac_header> | |
7654 | _ACEOF | |
7655 | rm -f conftest.$ac_objext | |
7656 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7657 | (eval $ac_compile) 2>&5 | |
7658 | ac_status=$? | |
7659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7660 | (exit $ac_status); } && | |
7661 | { ac_try='test -s conftest.$ac_objext' | |
7662 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7663 | (eval $ac_try) 2>&5 | |
7664 | ac_status=$? | |
7665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7666 | (exit $ac_status); }; }; then | |
7667 | ac_header_compiler=yes | |
7668 | else | |
7669 | echo "$as_me: failed program was:" >&5 | |
7670 | cat conftest.$ac_ext >&5 | |
7671 | ac_header_compiler=no | |
7672 | fi | |
7673 | rm -f conftest.$ac_objext conftest.$ac_ext | |
7674 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
7675 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
7676 | ||
7677 | # Is the header present? | |
7678 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
7679 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
7680 | cat >conftest.$ac_ext <<_ACEOF | |
7681 | #line $LINENO "configure" | |
24110288 | 7682 | #include "confdefs.h" |
f5818d2f AJ |
7683 | #include <$ac_header> |
7684 | _ACEOF | |
daa2886c | 7685 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
f5818d2f AJ |
7686 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
7687 | ac_status=$? | |
7688 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
7689 | rm -f conftest.er1 | |
7690 | cat conftest.err >&5 | |
daa2886c | 7691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
7692 | (exit $ac_status); } >/dev/null; then |
7693 | if test -s conftest.err; then | |
7694 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7695 | else | |
7696 | ac_cpp_err= | |
7697 | fi | |
7698 | else | |
7699 | ac_cpp_err=yes | |
7700 | fi | |
7701 | if test -z "$ac_cpp_err"; then | |
daa2886c | 7702 | ac_header_preproc=yes |
f5818d2f AJ |
7703 | else |
7704 | echo "$as_me: failed program was:" >&5 | |
24110288 | 7705 | cat conftest.$ac_ext >&5 |
daa2886c | 7706 | ac_header_preproc=no |
24110288 | 7707 | fi |
f5818d2f | 7708 | rm -f conftest.err conftest.$ac_ext |
daa2886c AJ |
7709 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7710 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
7711 | ||
7712 | # So? What about this header? | |
7713 | case $ac_header_compiler:$ac_header_preproc in | |
7714 | yes:no ) | |
7715 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
7716 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7717 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7718 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
7719 | no:yes ) | |
7720 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
7721 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7722 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7723 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7724 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7725 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
7726 | esac | |
7727 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7728 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7729 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
7730 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7731 | else | |
7732 | eval "$as_ac_Header=$ac_header_preproc" | |
24110288 | 7733 | fi |
daa2886c | 7734 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
f5818d2f | 7735 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
daa2886c AJ |
7736 | |
7737 | fi | |
f5818d2f | 7738 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
daa2886c | 7739 | cat >>confdefs.h <<_ACEOF |
f5818d2f | 7740 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
daa2886c AJ |
7741 | _ACEOF |
7742 | echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5 | |
f5818d2f AJ |
7743 | echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6 |
7744 | if test "${ac_cv_lib_curses_waddch+set}" = set; then | |
7745 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
e884f9ca | 7746 | else |
f5818d2f | 7747 | ac_check_lib_save_LIBS=$LIBS |
e884f9ca | 7748 | LIBS="-lcurses $LIBS" |
f5818d2f | 7749 | cat >conftest.$ac_ext <<_ACEOF |
daa2886c | 7750 | #line $LINENO "configure" |
e884f9ca | 7751 | #include "confdefs.h" |
f5818d2f | 7752 | |
e884f9ca | 7753 | /* Override any gcc2 internal prototype to avoid an error. */ |
f5818d2f AJ |
7754 | #ifdef __cplusplus |
7755 | extern "C" | |
7756 | #endif | |
e884f9ca | 7757 | /* We use char because int might match the return type of a gcc2 |
f5818d2f AJ |
7758 | builtin and then its argument prototype would still apply. */ |
7759 | char waddch (); | |
daa2886c AJ |
7760 | #ifdef F77_DUMMY_MAIN |
7761 | # ifdef __cplusplus | |
7762 | extern "C" | |
7763 | # endif | |
7764 | int F77_DUMMY_MAIN() { return 1; } | |
7765 | #endif | |
f5818d2f AJ |
7766 | int |
7767 | main () | |
7768 | { | |
7769 | waddch (); | |
7770 | ; | |
7771 | return 0; | |
7772 | } | |
7773 | _ACEOF | |
7774 | rm -f conftest.$ac_objext conftest$ac_exeext | |
daa2886c | 7775 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f5818d2f AJ |
7776 | (eval $ac_link) 2>&5 |
7777 | ac_status=$? | |
daa2886c | 7778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
7779 | (exit $ac_status); } && |
7780 | { ac_try='test -s conftest$ac_exeext' | |
daa2886c | 7781 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
7782 | (eval $ac_try) 2>&5 |
7783 | ac_status=$? | |
daa2886c | 7784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
7785 | (exit $ac_status); }; }; then |
7786 | ac_cv_lib_curses_waddch=yes | |
7787 | else | |
7788 | echo "$as_me: failed program was:" >&5 | |
7789 | cat conftest.$ac_ext >&5 | |
7790 | ac_cv_lib_curses_waddch=no | |
7791 | fi | |
7792 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7793 | LIBS=$ac_check_lib_save_LIBS | |
7794 | fi | |
daa2886c | 7795 | echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5 |
f5818d2f AJ |
7796 | echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6 |
7797 | if test $ac_cv_lib_curses_waddch = yes; then | |
7798 | ||
daa2886c | 7799 | cat >>confdefs.h <<\_ACEOF |
48957684 | 7800 | #define HAVE_LIBCURSES 1 |
daa2886c | 7801 | _ACEOF |
e884f9ca | 7802 | |
48957684 | 7803 | CURSESLIBS="-lcurses" |
638f169b AJ |
7804 | fi |
7805 | ||
638f169b | 7806 | fi |
daa2886c | 7807 | |
ed2f19a6 | 7808 | done |
638f169b AJ |
7809 | |
7810 | fi | |
48957684 | 7811 | |
48957684 | 7812 | fi |
daa2886c | 7813 | |
ed2f19a6 | 7814 | done |
f544507b | 7815 | |
48957684 AJ |
7816 | saved_libs="$LIBS" |
7817 | LIBS="$CURSESLIBS $LIBS" | |
f5818d2f | 7818 | |
daa2886c | 7819 | |
f5818d2f | 7820 | for ac_func in getbkgd resizeterm |
ed2f19a6 | 7821 | do |
f5818d2f | 7822 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
daa2886c | 7823 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
f5818d2f AJ |
7824 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
7825 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
7826 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7827 | else | |
7828 | cat >conftest.$ac_ext <<_ACEOF | |
daa2886c | 7829 | #line $LINENO "configure" |
f544507b | 7830 | #include "confdefs.h" |
ed2f19a6 | 7831 | /* System header to define __stub macros and hopefully few prototypes, |
f5818d2f | 7832 | which can conflict with char $ac_func (); below. */ |
ed2f19a6 | 7833 | #include <assert.h> |
f544507b | 7834 | /* Override any gcc2 internal prototype to avoid an error. */ |
f5818d2f AJ |
7835 | #ifdef __cplusplus |
7836 | extern "C" | |
7837 | #endif | |
f544507b | 7838 | /* We use char because int might match the return type of a gcc2 |
f5818d2f AJ |
7839 | builtin and then its argument prototype would still apply. */ |
7840 | char $ac_func (); | |
7841 | char (*f) (); | |
ed2f19a6 | 7842 | |
daa2886c AJ |
7843 | #ifdef F77_DUMMY_MAIN |
7844 | # ifdef __cplusplus | |
7845 | extern "C" | |
7846 | # endif | |
7847 | int F77_DUMMY_MAIN() { return 1; } | |
7848 | #endif | |
f5818d2f AJ |
7849 | int |
7850 | main () | |
7851 | { | |
ed2f19a6 AJ |
7852 | /* The GNU C library defines this for functions which it implements |
7853 | to always fail with ENOSYS. Some functions are actually named | |
7854 | something starting with __ and the normal name is an alias. */ | |
7855 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7856 | choke me | |
7857 | #else | |
f5818d2f | 7858 | f = $ac_func; |
ed2f19a6 AJ |
7859 | #endif |
7860 | ||
f5818d2f AJ |
7861 | ; |
7862 | return 0; | |
7863 | } | |
7864 | _ACEOF | |
7865 | rm -f conftest.$ac_objext conftest$ac_exeext | |
daa2886c | 7866 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f5818d2f AJ |
7867 | (eval $ac_link) 2>&5 |
7868 | ac_status=$? | |
daa2886c | 7869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
7870 | (exit $ac_status); } && |
7871 | { ac_try='test -s conftest$ac_exeext' | |
daa2886c | 7872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
7873 | (eval $ac_try) 2>&5 |
7874 | ac_status=$? | |
daa2886c | 7875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
7876 | (exit $ac_status); }; }; then |
7877 | eval "$as_ac_var=yes" | |
7878 | else | |
7879 | echo "$as_me: failed program was:" >&5 | |
7880 | cat conftest.$ac_ext >&5 | |
7881 | eval "$as_ac_var=no" | |
7882 | fi | |
7883 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7884 | fi | |
daa2886c | 7885 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
f5818d2f AJ |
7886 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
7887 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
daa2886c | 7888 | cat >>confdefs.h <<_ACEOF |
f5818d2f | 7889 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
daa2886c | 7890 | _ACEOF |
ed2f19a6 | 7891 | |
e884f9ca | 7892 | fi |
ed2f19a6 | 7893 | done |
e884f9ca | 7894 | |
48957684 | 7895 | LIBS="$saved_libs" |
e884f9ca JP |
7896 | fi |
7897 | ||
daa2886c | 7898 | |
ab8b7dba | 7899 | CUPSLIBS="" |
3ee02bab | 7900 | wine_cv_warn_cups_h=no |
daa2886c | 7901 | echo "$as_me:$LINENO: checking for cupsGetPPD in -lcups" >&5 |
f5818d2f AJ |
7902 | echo $ECHO_N "checking for cupsGetPPD in -lcups... $ECHO_C" >&6 |
7903 | if test "${ac_cv_lib_cups_cupsGetPPD+set}" = set; then | |
7904 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ab8b7dba | 7905 | else |
f5818d2f | 7906 | ac_check_lib_save_LIBS=$LIBS |
ab8b7dba | 7907 | LIBS="-lcups $LIBS" |
f5818d2f | 7908 | cat >conftest.$ac_ext <<_ACEOF |
daa2886c | 7909 | #line $LINENO "configure" |
ab8b7dba | 7910 | #include "confdefs.h" |
f5818d2f | 7911 | |
ab8b7dba | 7912 | /* Override any gcc2 internal prototype to avoid an error. */ |
f5818d2f AJ |
7913 | #ifdef __cplusplus |
7914 | extern "C" | |
7915 | #endif | |
ab8b7dba | 7916 | /* We use char because int might match the return type of a gcc2 |
f5818d2f AJ |
7917 | builtin and then its argument prototype would still apply. */ |
7918 | char cupsGetPPD (); | |
daa2886c AJ |
7919 | #ifdef F77_DUMMY_MAIN |
7920 | # ifdef __cplusplus | |
7921 | extern "C" | |
7922 | # endif | |
7923 | int F77_DUMMY_MAIN() { return 1; } | |
7924 | #endif | |
f5818d2f AJ |
7925 | int |
7926 | main () | |
7927 | { | |
7928 | cupsGetPPD (); | |
7929 | ; | |
7930 | return 0; | |
7931 | } | |
7932 | _ACEOF | |
7933 | rm -f conftest.$ac_objext conftest$ac_exeext | |
daa2886c | 7934 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f5818d2f AJ |
7935 | (eval $ac_link) 2>&5 |
7936 | ac_status=$? | |
daa2886c | 7937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
7938 | (exit $ac_status); } && |
7939 | { ac_try='test -s conftest$ac_exeext' | |
daa2886c | 7940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
7941 | (eval $ac_try) 2>&5 |
7942 | ac_status=$? | |
daa2886c | 7943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
7944 | (exit $ac_status); }; }; then |
7945 | ac_cv_lib_cups_cupsGetPPD=yes | |
7946 | else | |
7947 | echo "$as_me: failed program was:" >&5 | |
7948 | cat conftest.$ac_ext >&5 | |
7949 | ac_cv_lib_cups_cupsGetPPD=no | |
7950 | fi | |
7951 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
7952 | LIBS=$ac_check_lib_save_LIBS | |
7953 | fi | |
daa2886c | 7954 | echo "$as_me:$LINENO: result: $ac_cv_lib_cups_cupsGetPPD" >&5 |
f5818d2f AJ |
7955 | echo "${ECHO_T}$ac_cv_lib_cups_cupsGetPPD" >&6 |
7956 | if test $ac_cv_lib_cups_cupsGetPPD = yes; then | |
daa2886c AJ |
7957 | if test "${ac_cv_header_cups_cups_h+set}" = set; then |
7958 | echo "$as_me:$LINENO: checking for cups/cups.h" >&5 | |
f5818d2f AJ |
7959 | echo $ECHO_N "checking for cups/cups.h... $ECHO_C" >&6 |
7960 | if test "${ac_cv_header_cups_cups_h+set}" = set; then | |
7961 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
daa2886c AJ |
7962 | fi |
7963 | echo "$as_me:$LINENO: result: $ac_cv_header_cups_cups_h" >&5 | |
7964 | echo "${ECHO_T}$ac_cv_header_cups_cups_h" >&6 | |
f5818d2f | 7965 | else |
daa2886c AJ |
7966 | # Is the header compilable? |
7967 | echo "$as_me:$LINENO: checking cups/cups.h usability" >&5 | |
7968 | echo $ECHO_N "checking cups/cups.h usability... $ECHO_C" >&6 | |
7969 | cat >conftest.$ac_ext <<_ACEOF | |
7970 | #line $LINENO "configure" | |
7971 | #include "confdefs.h" | |
7972 | $ac_includes_default | |
7973 | #include <cups/cups.h> | |
7974 | _ACEOF | |
7975 | rm -f conftest.$ac_objext | |
7976 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7977 | (eval $ac_compile) 2>&5 | |
7978 | ac_status=$? | |
7979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7980 | (exit $ac_status); } && | |
7981 | { ac_try='test -s conftest.$ac_objext' | |
7982 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7983 | (eval $ac_try) 2>&5 | |
7984 | ac_status=$? | |
7985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7986 | (exit $ac_status); }; }; then | |
7987 | ac_header_compiler=yes | |
7988 | else | |
7989 | echo "$as_me: failed program was:" >&5 | |
7990 | cat conftest.$ac_ext >&5 | |
7991 | ac_header_compiler=no | |
7992 | fi | |
7993 | rm -f conftest.$ac_objext conftest.$ac_ext | |
7994 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
7995 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
7996 | ||
7997 | # Is the header present? | |
7998 | echo "$as_me:$LINENO: checking cups/cups.h presence" >&5 | |
7999 | echo $ECHO_N "checking cups/cups.h presence... $ECHO_C" >&6 | |
8000 | cat >conftest.$ac_ext <<_ACEOF | |
8001 | #line $LINENO "configure" | |
f5818d2f AJ |
8002 | #include "confdefs.h" |
8003 | #include <cups/cups.h> | |
8004 | _ACEOF | |
daa2886c | 8005 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
f5818d2f AJ |
8006 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
8007 | ac_status=$? | |
8008 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
8009 | rm -f conftest.er1 | |
8010 | cat conftest.err >&5 | |
daa2886c | 8011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
8012 | (exit $ac_status); } >/dev/null; then |
8013 | if test -s conftest.err; then | |
8014 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8015 | else | |
8016 | ac_cpp_err= | |
8017 | fi | |
ab8b7dba | 8018 | else |
f5818d2f | 8019 | ac_cpp_err=yes |
ab8b7dba | 8020 | fi |
f5818d2f | 8021 | if test -z "$ac_cpp_err"; then |
daa2886c | 8022 | ac_header_preproc=yes |
3ee02bab | 8023 | else |
f5818d2f | 8024 | echo "$as_me: failed program was:" >&5 |
3ee02bab | 8025 | cat conftest.$ac_ext >&5 |
daa2886c | 8026 | ac_header_preproc=no |
3ee02bab | 8027 | fi |
f5818d2f | 8028 | rm -f conftest.err conftest.$ac_ext |
daa2886c AJ |
8029 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8030 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
8031 | ||
8032 | # So? What about this header? | |
8033 | case $ac_header_compiler:$ac_header_preproc in | |
8034 | yes:no ) | |
8035 | { echo "$as_me:$LINENO: WARNING: cups/cups.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8036 | echo "$as_me: WARNING: cups/cups.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8037 | { echo "$as_me:$LINENO: WARNING: cups/cups.h: proceeding with the preprocessor's result" >&5 | |
8038 | echo "$as_me: WARNING: cups/cups.h: proceeding with the preprocessor's result" >&2;};; | |
8039 | no:yes ) | |
8040 | { echo "$as_me:$LINENO: WARNING: cups/cups.h: present but cannot be compiled" >&5 | |
8041 | echo "$as_me: WARNING: cups/cups.h: present but cannot be compiled" >&2;} | |
8042 | { echo "$as_me:$LINENO: WARNING: cups/cups.h: check for missing prerequisite headers?" >&5 | |
8043 | echo "$as_me: WARNING: cups/cups.h: check for missing prerequisite headers?" >&2;} | |
8044 | { echo "$as_me:$LINENO: WARNING: cups/cups.h: proceeding with the preprocessor's result" >&5 | |
8045 | echo "$as_me: WARNING: cups/cups.h: proceeding with the preprocessor's result" >&2;};; | |
8046 | esac | |
8047 | echo "$as_me:$LINENO: checking for cups/cups.h" >&5 | |
8048 | echo $ECHO_N "checking for cups/cups.h... $ECHO_C" >&6 | |
8049 | if test "${ac_cv_header_cups_cups_h+set}" = set; then | |
8050 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8051 | else | |
8052 | ac_cv_header_cups_cups_h=$ac_header_preproc | |
3ee02bab | 8053 | fi |
daa2886c | 8054 | echo "$as_me:$LINENO: result: $ac_cv_header_cups_cups_h" >&5 |
f5818d2f | 8055 | echo "${ECHO_T}$ac_cv_header_cups_cups_h" >&6 |
daa2886c AJ |
8056 | |
8057 | fi | |
f5818d2f AJ |
8058 | if test $ac_cv_header_cups_cups_h = yes; then |
8059 | ||
daa2886c | 8060 | cat >>confdefs.h <<\_ACEOF |
ab8b7dba | 8061 | #define HAVE_CUPS 1 |
daa2886c | 8062 | _ACEOF |
ab8b7dba | 8063 | |
3ee02bab MM |
8064 | CUPSLIBS="-lcups" |
8065 | else | |
f5818d2f | 8066 | wine_cv_warn_cups_h=yes |
3ee02bab MM |
8067 | fi |
8068 | ||
daa2886c AJ |
8069 | |
8070 | ||
ab8b7dba MM |
8071 | fi |
8072 | ||
daa2886c AJ |
8073 | |
8074 | ||
6b0720f5 SQH |
8075 | # Extract the first word of "sane-config", so it can be a program name with args. |
8076 | set dummy sane-config; ac_word=$2 | |
daa2886c | 8077 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6b0720f5 SQH |
8078 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
8079 | if test "${ac_cv_prog_sane_devel+set}" = set; then | |
8080 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8081 | else | |
8082 | if test -n "$sane_devel"; then | |
8083 | ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test. | |
8084 | else | |
daa2886c AJ |
8085 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8086 | for as_dir in $PATH | |
8087 | do | |
8088 | IFS=$as_save_IFS | |
8089 | test -z "$as_dir" && as_dir=. | |
8090 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8091 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8092 | ac_cv_prog_sane_devel="sane-config" | |
8093 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8094 | break 2 | |
8095 | fi | |
8096 | done | |
6b0720f5 SQH |
8097 | done |
8098 | ||
8099 | test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no" | |
8100 | fi | |
8101 | fi | |
8102 | sane_devel=$ac_cv_prog_sane_devel | |
8103 | if test -n "$sane_devel"; then | |
daa2886c | 8104 | echo "$as_me:$LINENO: result: $sane_devel" >&5 |
6b0720f5 SQH |
8105 | echo "${ECHO_T}$sane_devel" >&6 |
8106 | else | |
daa2886c | 8107 | echo "$as_me:$LINENO: result: no" >&5 |
6b0720f5 SQH |
8108 | echo "${ECHO_T}no" >&6 |
8109 | fi | |
8110 | ||
8111 | if test "$sane_devel" = "no" | |
8112 | then | |
8113 | SANELIBS="" | |
8114 | SANEINCL="" | |
8115 | else | |
8116 | SANELIBS="`$sane_devel --libs`" | |
8117 | SANEINCL="`$sane_devel --cflags`" | |
8118 | ac_save_CPPFLAGS="$CPPFLAGS" | |
8119 | ac_save_LIBS="$LIBS" | |
8120 | CPPFLAGS="$CPPFLAGS $SANEINCL" | |
8121 | LIBS="$LIBS $SANELIBS" | |
daa2886c AJ |
8122 | if test "${ac_cv_header_sane_sane_h+set}" = set; then |
8123 | echo "$as_me:$LINENO: checking for sane/sane.h" >&5 | |
6b0720f5 SQH |
8124 | echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6 |
8125 | if test "${ac_cv_header_sane_sane_h+set}" = set; then | |
8126 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
daa2886c AJ |
8127 | fi |
8128 | echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5 | |
8129 | echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6 | |
6b0720f5 | 8130 | else |
daa2886c AJ |
8131 | # Is the header compilable? |
8132 | echo "$as_me:$LINENO: checking sane/sane.h usability" >&5 | |
8133 | echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6 | |
8134 | cat >conftest.$ac_ext <<_ACEOF | |
8135 | #line $LINENO "configure" | |
8136 | #include "confdefs.h" | |
8137 | $ac_includes_default | |
8138 | #include <sane/sane.h> | |
8139 | _ACEOF | |
8140 | rm -f conftest.$ac_objext | |
8141 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8142 | (eval $ac_compile) 2>&5 | |
8143 | ac_status=$? | |
8144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8145 | (exit $ac_status); } && | |
8146 | { ac_try='test -s conftest.$ac_objext' | |
8147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8148 | (eval $ac_try) 2>&5 | |
8149 | ac_status=$? | |
8150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8151 | (exit $ac_status); }; }; then | |
8152 | ac_header_compiler=yes | |
8153 | else | |
8154 | echo "$as_me: failed program was:" >&5 | |
8155 | cat conftest.$ac_ext >&5 | |
8156 | ac_header_compiler=no | |
8157 | fi | |
8158 | rm -f conftest.$ac_objext conftest.$ac_ext | |
8159 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
8160 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
8161 | ||
8162 | # Is the header present? | |
8163 | echo "$as_me:$LINENO: checking sane/sane.h presence" >&5 | |
8164 | echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6 | |
8165 | cat >conftest.$ac_ext <<_ACEOF | |
8166 | #line $LINENO "configure" | |
6b0720f5 SQH |
8167 | #include "confdefs.h" |
8168 | #include <sane/sane.h> | |
8169 | _ACEOF | |
daa2886c | 8170 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
6b0720f5 SQH |
8171 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
8172 | ac_status=$? | |
8173 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
8174 | rm -f conftest.er1 | |
8175 | cat conftest.err >&5 | |
daa2886c | 8176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6b0720f5 SQH |
8177 | (exit $ac_status); } >/dev/null; then |
8178 | if test -s conftest.err; then | |
8179 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8180 | else | |
8181 | ac_cpp_err= | |
8182 | fi | |
8183 | else | |
8184 | ac_cpp_err=yes | |
8185 | fi | |
8186 | if test -z "$ac_cpp_err"; then | |
daa2886c | 8187 | ac_header_preproc=yes |
6b0720f5 SQH |
8188 | else |
8189 | echo "$as_me: failed program was:" >&5 | |
8190 | cat conftest.$ac_ext >&5 | |
daa2886c | 8191 | ac_header_preproc=no |
6b0720f5 SQH |
8192 | fi |
8193 | rm -f conftest.err conftest.$ac_ext | |
daa2886c AJ |
8194 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8195 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
8196 | ||
8197 | # So? What about this header? | |
8198 | case $ac_header_compiler:$ac_header_preproc in | |
8199 | yes:no ) | |
8200 | { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8201 | echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8202 | { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5 | |
8203 | echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;};; | |
8204 | no:yes ) | |
8205 | { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5 | |
8206 | echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;} | |
8207 | { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5 | |
8208 | echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;} | |
8209 | { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5 | |
8210 | echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;};; | |
8211 | esac | |
8212 | echo "$as_me:$LINENO: checking for sane/sane.h" >&5 | |
8213 | echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6 | |
8214 | if test "${ac_cv_header_sane_sane_h+set}" = set; then | |
8215 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8216 | else | |
8217 | ac_cv_header_sane_sane_h=$ac_header_preproc | |
6b0720f5 | 8218 | fi |
daa2886c | 8219 | echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5 |
6b0720f5 | 8220 | echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6 |
daa2886c AJ |
8221 | |
8222 | fi | |
6b0720f5 | 8223 | if test $ac_cv_header_sane_sane_h = yes; then |
daa2886c | 8224 | echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5 |
6b0720f5 SQH |
8225 | echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6 |
8226 | if test "${ac_cv_lib_sane_sane_open+set}" = set; then | |
8227 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8228 | else | |
8229 | ac_check_lib_save_LIBS=$LIBS | |
8230 | LIBS="-lsane $LIBS" | |
8231 | cat >conftest.$ac_ext <<_ACEOF | |
daa2886c | 8232 | #line $LINENO "configure" |
6b0720f5 SQH |
8233 | #include "confdefs.h" |
8234 | ||
8235 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8236 | #ifdef __cplusplus | |
8237 | extern "C" | |
8238 | #endif | |
8239 | /* We use char because int might match the return type of a gcc2 | |
8240 | builtin and then its argument prototype would still apply. */ | |
8241 | char sane_open (); | |
daa2886c AJ |
8242 | #ifdef F77_DUMMY_MAIN |
8243 | # ifdef __cplusplus | |
8244 | extern "C" | |
8245 | # endif | |
8246 | int F77_DUMMY_MAIN() { return 1; } | |
8247 | #endif | |
6b0720f5 SQH |
8248 | int |
8249 | main () | |
8250 | { | |
8251 | sane_open (); | |
8252 | ; | |
8253 | return 0; | |
8254 | } | |
8255 | _ACEOF | |
8256 | rm -f conftest.$ac_objext conftest$ac_exeext | |
daa2886c | 8257 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
6b0720f5 SQH |
8258 | (eval $ac_link) 2>&5 |
8259 | ac_status=$? | |
daa2886c | 8260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6b0720f5 SQH |
8261 | (exit $ac_status); } && |
8262 | { ac_try='test -s conftest$ac_exeext' | |
daa2886c | 8263 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6b0720f5 SQH |
8264 | (eval $ac_try) 2>&5 |
8265 | ac_status=$? | |
daa2886c | 8266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6b0720f5 SQH |
8267 | (exit $ac_status); }; }; then |
8268 | ac_cv_lib_sane_sane_open=yes | |
8269 | else | |
8270 | echo "$as_me: failed program was:" >&5 | |
8271 | cat conftest.$ac_ext >&5 | |
8272 | ac_cv_lib_sane_sane_open=no | |
8273 | fi | |
8274 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
8275 | LIBS=$ac_check_lib_save_LIBS | |
8276 | fi | |
daa2886c | 8277 | echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5 |
6b0720f5 SQH |
8278 | echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6 |
8279 | if test $ac_cv_lib_sane_sane_open = yes; then | |
8280 | ||
daa2886c | 8281 | cat >>confdefs.h <<\_ACEOF |
6b0720f5 | 8282 | #define HAVE_SANE 1 |
daa2886c | 8283 | _ACEOF |
6b0720f5 SQH |
8284 | |
8285 | else | |
8286 | SANELIBS="" | |
96328b37 | 8287 | SANEINCL="" |
6b0720f5 SQH |
8288 | fi |
8289 | ||
96328b37 AJ |
8290 | else |
8291 | SANELIBS="" | |
8292 | SANEINCL="" | |
6b0720f5 SQH |
8293 | fi |
8294 | ||
daa2886c | 8295 | |
6b0720f5 SQH |
8296 | LIBS="$ac_save_LIBS" |
8297 | CPPFLAGS="$ac_save_CPPFLAGS" | |
8298 | fi | |
8299 | ||
daa2886c AJ |
8300 | |
8301 | ||
8302 | echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5 | |
f5818d2f AJ |
8303 | echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6 |
8304 | if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then | |
8305 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
563598d4 | 8306 | else |
f5818d2f | 8307 | ac_check_lib_save_LIBS=$LIBS |
8871a11b | 8308 | LIBS="-lfreetype $X_LIBS $LIBS" |
f5818d2f | 8309 | cat >conftest.$ac_ext <<_ACEOF |
daa2886c | 8310 | #line $LINENO "configure" |
563598d4 | 8311 | #include "confdefs.h" |
f5818d2f | 8312 | |
563598d4 | 8313 | /* Override any gcc2 internal prototype to avoid an error. */ |
f5818d2f AJ |
8314 | #ifdef __cplusplus |
8315 | extern "C" | |
8316 | #endif | |
563598d4 | 8317 | /* We use char because int might match the return type of a gcc2 |
f5818d2f AJ |
8318 | builtin and then its argument prototype would still apply. */ |
8319 | char FT_Init_FreeType (); | |
daa2886c AJ |
8320 | #ifdef F77_DUMMY_MAIN |
8321 | # ifdef __cplusplus | |
8322 | extern "C" | |
8323 | # endif | |
8324 | int F77_DUMMY_MAIN() { return 1; } | |
8325 | #endif | |
f5818d2f AJ |
8326 | int |
8327 | main () | |
8328 | { | |
8329 | FT_Init_FreeType (); | |
8330 | ; | |
8331 | return 0; | |
8332 | } | |
8333 | _ACEOF | |
8334 | rm -f conftest.$ac_objext conftest$ac_exeext | |
daa2886c | 8335 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f5818d2f AJ |
8336 | (eval $ac_link) 2>&5 |
8337 | ac_status=$? | |
daa2886c | 8338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
8339 | (exit $ac_status); } && |
8340 | { ac_try='test -s conftest$ac_exeext' | |
daa2886c | 8341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
8342 | (eval $ac_try) 2>&5 |
8343 | ac_status=$? | |
daa2886c | 8344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
8345 | (exit $ac_status); }; }; then |
8346 | ac_cv_lib_freetype_FT_Init_FreeType=yes | |
8347 | else | |
8348 | echo "$as_me: failed program was:" >&5 | |
8349 | cat conftest.$ac_ext >&5 | |
8350 | ac_cv_lib_freetype_FT_Init_FreeType=no | |
8351 | fi | |
8352 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
8353 | LIBS=$ac_check_lib_save_LIBS | |
8354 | fi | |
daa2886c | 8355 | echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5 |
f5818d2f AJ |
8356 | echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6 |
8357 | if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then | |
563598d4 IP |
8358 | ft_lib=yes |
8359 | else | |
f5818d2f | 8360 | ft_lib=no |
563598d4 IP |
8361 | fi |
8362 | ||
8363 | if test "$ft_lib" = "no" | |
8364 | then | |
563598d4 IP |
8365 | FREETYPEINCL="" |
8366 | wine_cv_msg_freetype=no | |
8367 | else | |
8368 | # Extract the first word of "freetype-config", so it can be a program name with args. | |
8369 | set dummy freetype-config; ac_word=$2 | |
daa2886c | 8370 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
f5818d2f AJ |
8371 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
8372 | if test "${ac_cv_prog_ft_devel+set}" = set; then | |
8373 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
563598d4 IP |
8374 | else |
8375 | if test -n "$ft_devel"; then | |
8376 | ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test. | |
8377 | else | |
daa2886c AJ |
8378 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8379 | for as_dir in $PATH | |
8380 | do | |
8381 | IFS=$as_save_IFS | |
8382 | test -z "$as_dir" && as_dir=. | |
8383 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8384 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8385 | ac_cv_prog_ft_devel="freetype-config" | |
8386 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8387 | break 2 | |
8388 | fi | |
8389 | done | |
f5818d2f AJ |
8390 | done |
8391 | ||
563598d4 IP |
8392 | test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no" |
8393 | fi | |
8394 | fi | |
f5818d2f | 8395 | ft_devel=$ac_cv_prog_ft_devel |
563598d4 | 8396 | if test -n "$ft_devel"; then |
daa2886c | 8397 | echo "$as_me:$LINENO: result: $ft_devel" >&5 |
f5818d2f | 8398 | echo "${ECHO_T}$ft_devel" >&6 |
563598d4 | 8399 | else |
daa2886c | 8400 | echo "$as_me:$LINENO: result: no" >&5 |
f5818d2f | 8401 | echo "${ECHO_T}no" >&6 |
563598d4 IP |
8402 | fi |
8403 | ||
d28955d8 MM |
8404 | if test "$ft_devel" = "no" |
8405 | then | |
8406 | # Extract the first word of "freetype2-config", so it can be a program name with args. | |
8407 | set dummy freetype2-config; ac_word=$2 | |
daa2886c | 8408 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
f5818d2f AJ |
8409 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
8410 | if test "${ac_cv_prog_ft_devel2+set}" = set; then | |
8411 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d28955d8 MM |
8412 | else |
8413 | if test -n "$ft_devel2"; then | |
8414 | ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test. | |
8415 | else | |
daa2886c AJ |
8416 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8417 | for as_dir in $PATH | |
8418 | do | |
8419 | IFS=$as_save_IFS | |
8420 | test -z "$as_dir" && as_dir=. | |
8421 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8422 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8423 | ac_cv_prog_ft_devel2="freetype2-config" | |
8424 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8425 | break 2 | |
8426 | fi | |
8427 | done | |
f5818d2f AJ |
8428 | done |
8429 | ||
d28955d8 MM |
8430 | test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no" |
8431 | fi | |
8432 | fi | |
f5818d2f | 8433 | ft_devel2=$ac_cv_prog_ft_devel2 |
d28955d8 | 8434 | if test -n "$ft_devel2"; then |
daa2886c | 8435 | echo "$as_me:$LINENO: result: $ft_devel2" >&5 |
f5818d2f | 8436 | echo "${ECHO_T}$ft_devel2" >&6 |
d28955d8 | 8437 | else |
daa2886c | 8438 | echo "$as_me:$LINENO: result: no" >&5 |
f5818d2f | 8439 | echo "${ECHO_T}no" >&6 |
d28955d8 MM |
8440 | fi |
8441 | ||
8442 | if test "$ft_devel2" = "freetype2-config" | |
8443 | then | |
8444 | ft_devel=$ft_devel2 | |
8445 | fi | |
8446 | fi | |
563598d4 IP |
8447 | if test "$ft_devel" = "no" |
8448 | then | |
563598d4 IP |
8449 | FREETYPEINCL="" |
8450 | wine_cv_msg_freetype=yes | |
8451 | else | |
d28955d8 | 8452 | FREETYPEINCL=`$ft_devel --cflags` |
40432fef IP |
8453 | ac_save_CPPFLAGS="$CPPFLAGS" |
8454 | CPPFLAGS="$FREETYPEINCL $CPPFLAGS" | |
f5818d2f | 8455 | |
daa2886c AJ |
8456 | |
8457 | ||
8458 | ||
8459 | ||
8460 | ||
8461 | ||
8462 | ||
f5818d2f | 8463 | for ac_header in freetype/freetype.h \ |
40432fef IP |
8464 | freetype/ftglyph.h \ |
8465 | freetype/tttables.h \ | |
8466 | freetype/ftnames.h \ | |
8467 | freetype/ftsnames.h \ | |
814654ef | 8468 | freetype/ttnameid.h \ |
4e2024e8 HD |
8469 | freetype/ftoutln.h \ |
8470 | freetype/internal/sfnt.h | |
40432fef | 8471 | do |
f5818d2f | 8472 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
daa2886c AJ |
8473 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
8474 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
f5818d2f AJ |
8475 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
8476 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8477 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
daa2886c AJ |
8478 | fi |
8479 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
8480 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
f5818d2f | 8481 | else |
daa2886c AJ |
8482 | # Is the header compilable? |
8483 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
8484 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
8485 | cat >conftest.$ac_ext <<_ACEOF | |
8486 | #line $LINENO "configure" | |
8487 | #include "confdefs.h" | |
8488 | $ac_includes_default | |
8489 | #include <$ac_header> | |
8490 | _ACEOF | |
8491 | rm -f conftest.$ac_objext | |
8492 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8493 | (eval $ac_compile) 2>&5 | |
8494 | ac_status=$? | |
8495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8496 | (exit $ac_status); } && | |
8497 | { ac_try='test -s conftest.$ac_objext' | |
8498 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8499 | (eval $ac_try) 2>&5 | |
8500 | ac_status=$? | |
8501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8502 | (exit $ac_status); }; }; then | |
8503 | ac_header_compiler=yes | |
8504 | else | |
8505 | echo "$as_me: failed program was:" >&5 | |
8506 | cat conftest.$ac_ext >&5 | |
8507 | ac_header_compiler=no | |
8508 | fi | |
8509 | rm -f conftest.$ac_objext conftest.$ac_ext | |
8510 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
8511 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
8512 | ||
8513 | # Is the header present? | |
8514 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
8515 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
8516 | cat >conftest.$ac_ext <<_ACEOF | |
8517 | #line $LINENO "configure" | |
40432fef | 8518 | #include "confdefs.h" |
f5818d2f AJ |
8519 | #include <$ac_header> |
8520 | _ACEOF | |
daa2886c | 8521 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
f5818d2f AJ |
8522 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
8523 | ac_status=$? | |
8524 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
8525 | rm -f conftest.er1 | |
8526 | cat conftest.err >&5 | |
daa2886c | 8527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
8528 | (exit $ac_status); } >/dev/null; then |
8529 | if test -s conftest.err; then | |
8530 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8531 | else | |
8532 | ac_cpp_err= | |
8533 | fi | |
8534 | else | |
8535 | ac_cpp_err=yes | |
8536 | fi | |
8537 | if test -z "$ac_cpp_err"; then | |
daa2886c | 8538 | ac_header_preproc=yes |
f5818d2f AJ |
8539 | else |
8540 | echo "$as_me: failed program was:" >&5 | |
40432fef | 8541 | cat conftest.$ac_ext >&5 |
daa2886c | 8542 | ac_header_preproc=no |
40432fef | 8543 | fi |
f5818d2f | 8544 | rm -f conftest.err conftest.$ac_ext |
daa2886c AJ |
8545 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8546 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
8547 | ||
8548 | # So? What about this header? | |
8549 | case $ac_header_compiler:$ac_header_preproc in | |
8550 | yes:no ) | |
8551 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8552 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8553 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8554 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
8555 | no:yes ) | |
8556 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
8557 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8558 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8559 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8560 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8561 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
8562 | esac | |
8563 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8564 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8565 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8566 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8567 | else | |
8568 | eval "$as_ac_Header=$ac_header_preproc" | |
40432fef | 8569 | fi |
daa2886c | 8570 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
f5818d2f | 8571 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
daa2886c AJ |
8572 | |
8573 | fi | |
f5818d2f | 8574 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
daa2886c | 8575 | cat >>confdefs.h <<_ACEOF |
f5818d2f | 8576 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
daa2886c | 8577 | _ACEOF |
f5818d2f | 8578 | |
40432fef | 8579 | fi |
daa2886c | 8580 | |
40432fef IP |
8581 | done |
8582 | ||
f5818d2f | 8583 | cat >conftest.$ac_ext <<_ACEOF |
daa2886c | 8584 | #line $LINENO "configure" |
18d7573c AJ |
8585 | #include "confdefs.h" |
8586 | #include <ft2build.h> | |
8587 | #include <freetype/fttrigon.h> | |
f5818d2f | 8588 | _ACEOF |
daa2886c | 8589 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
f5818d2f AJ |
8590 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
8591 | ac_status=$? | |
8592 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
8593 | rm -f conftest.er1 | |
8594 | cat conftest.err >&5 | |
daa2886c | 8595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
8596 | (exit $ac_status); } >/dev/null; then |
8597 | if test -s conftest.err; then | |
8598 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8599 | else | |
8600 | ac_cpp_err= | |
8601 | fi | |
8602 | else | |
8603 | ac_cpp_err=yes | |
8604 | fi | |
8605 | if test -z "$ac_cpp_err"; then | |
8606 | ||
daa2886c | 8607 | cat >>confdefs.h <<\_ACEOF |
18d7573c | 8608 | #define HAVE_FREETYPE_FTTRIGON_H 1 |
daa2886c | 8609 | _ACEOF |
18d7573c | 8610 | |
c1d38132 | 8611 | wine_cv_fttrigon=yes |
18d7573c | 8612 | else |
f5818d2f | 8613 | echo "$as_me: failed program was:" >&5 |
18d7573c | 8614 | cat conftest.$ac_ext >&5 |
c1d38132 | 8615 | wine_cv_fttrigon=no |
18d7573c | 8616 | fi |
f5818d2f | 8617 | rm -f conftest.err conftest.$ac_ext |
40432fef | 8618 | CPPFLAGS="$ac_save_CPPFLAGS" |
c1d38132 | 8619 | if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes" |
9b1d3726 | 8620 | then |
f5818d2f | 8621 | |
daa2886c | 8622 | cat >>confdefs.h <<\_ACEOF |
9b1d3726 | 8623 | #define HAVE_FREETYPE 1 |
daa2886c | 8624 | _ACEOF |
9b1d3726 HD |
8625 | |
8626 | wine_cv_msg_freetype=no | |
8627 | else | |
9b1d3726 HD |
8628 | FREETYPEINCL="" |
8629 | wine_cv_msg_freetype=yes | |
8630 | fi | |
563598d4 IP |
8631 | fi |
8632 | fi | |
8633 | ||
daa2886c AJ |
8634 | |
8635 | echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5 | |
f5818d2f AJ |
8636 | echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6 |
8637 | if test "${ac_cv_c_ppdev+set}" = set; then | |
8638 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6509fa93 | 8639 | else |
f5818d2f | 8640 | cat >conftest.$ac_ext <<_ACEOF |
daa2886c | 8641 | #line $LINENO "configure" |
6509fa93 UB |
8642 | #include "confdefs.h" |
8643 | #include <linux/ppdev.h> | |
daa2886c AJ |
8644 | #ifdef F77_DUMMY_MAIN |
8645 | # ifdef __cplusplus | |
8646 | extern "C" | |
8647 | # endif | |
8648 | int F77_DUMMY_MAIN() { return 1; } | |
8649 | #endif | |
f5818d2f AJ |
8650 | int |
8651 | main () | |
8652 | { | |
6509fa93 | 8653 | ioctl (1,PPCLAIM,0) |
f5818d2f AJ |
8654 | ; |
8655 | return 0; | |
8656 | } | |
8657 | _ACEOF | |
8658 | rm -f conftest.$ac_objext | |
daa2886c | 8659 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
f5818d2f AJ |
8660 | (eval $ac_compile) 2>&5 |
8661 | ac_status=$? | |
daa2886c | 8662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
8663 | (exit $ac_status); } && |
8664 | { ac_try='test -s conftest.$ac_objext' | |
daa2886c | 8665 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
8666 | (eval $ac_try) 2>&5 |
8667 | ac_status=$? | |
daa2886c | 8668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 8669 | (exit $ac_status); }; }; then |
6509fa93 UB |
8670 | ac_cv_c_ppdev="yes" |
8671 | else | |
f5818d2f AJ |
8672 | echo "$as_me: failed program was:" >&5 |
8673 | cat conftest.$ac_ext >&5 | |
8674 | ac_cv_c_ppdev="no" | |
6509fa93 | 8675 | fi |
f5818d2f | 8676 | rm -f conftest.$ac_objext conftest.$ac_ext |
6509fa93 | 8677 | |
f5818d2f | 8678 | fi |
daa2886c | 8679 | echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5 |
f5818d2f | 8680 | echo "${ECHO_T}$ac_cv_c_ppdev" >&6 |
6509fa93 UB |
8681 | if test "$ac_cv_c_ppdev" = "yes" |
8682 | then | |
f5818d2f | 8683 | |
daa2886c | 8684 | cat >>confdefs.h <<\_ACEOF |
6509fa93 | 8685 | #define HAVE_PPDEV 1 |
daa2886c | 8686 | _ACEOF |
6509fa93 UB |
8687 | |
8688 | fi | |
8689 | ||
daa2886c | 8690 | echo "$as_me:$LINENO: checking for GNU style IPX support" >&5 |
f5818d2f AJ |
8691 | echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6 |
8692 | if test "${ac_cv_c_ipx_gnu+set}" = set; then | |
8693 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
94d99642 | 8694 | else |
f5818d2f | 8695 | cat >conftest.$ac_ext <<_ACEOF |
daa2886c | 8696 | #line $LINENO "configure" |
94d99642 PR |
8697 | #include "confdefs.h" |
8698 | #include <sys/socket.h> | |
8699 | #include <netipx/ipx.h> | |
daa2886c AJ |
8700 | #ifdef F77_DUMMY_MAIN |
8701 | # ifdef __cplusplus | |
8702 | extern "C" | |
8703 | # endif | |
8704 | int F77_DUMMY_MAIN() { return 1; } | |
8705 | #endif | |
f5818d2f AJ |
8706 | int |
8707 | main () | |
8708 | { | |
94d99642 | 8709 | ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX |
f5818d2f AJ |
8710 | ; |
8711 | return 0; | |
8712 | } | |
8713 | _ACEOF | |
8714 | rm -f conftest.$ac_objext | |
daa2886c | 8715 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
f5818d2f AJ |
8716 | (eval $ac_compile) 2>&5 |
8717 | ac_status=$? | |
daa2886c | 8718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
8719 | (exit $ac_status); } && |
8720 | { ac_try='test -s conftest.$ac_objext' | |
daa2886c | 8721 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
8722 | (eval $ac_try) 2>&5 |
8723 | ac_status=$? | |
daa2886c | 8724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 8725 | (exit $ac_status); }; }; then |
c23872d9 | 8726 | ac_cv_c_ipx_gnu="yes" |
94d99642 | 8727 | else |
f5818d2f AJ |
8728 | echo "$as_me: failed program was:" >&5 |
8729 | cat conftest.$ac_ext >&5 | |
8730 | ac_cv_c_ipx_gnu="no" | |
94d99642 | 8731 | fi |
f5818d2f | 8732 | rm -f conftest.$ac_objext conftest.$ac_ext |
94d99642 | 8733 | |
f5818d2f | 8734 | fi |
daa2886c | 8735 | echo "$as_me:$LINENO: result: $ac_cv_c_ipx_gnu" >&5 |
f5818d2f | 8736 | echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6 |
c23872d9 AH |
8737 | if test "$ac_cv_c_ipx_gnu" = "yes" |
8738 | then | |
f5818d2f | 8739 | |
daa2886c | 8740 | cat >>confdefs.h <<\_ACEOF |
c23872d9 | 8741 | #define HAVE_IPX_GNU 1 |
daa2886c | 8742 | _ACEOF |
c23872d9 AH |
8743 | |
8744 | fi | |
94d99642 PR |
8745 | |
8746 | if test "$ac_cv_c_ipx_gnu" = "no" | |
8747 | then | |
daa2886c | 8748 | echo "$as_me:$LINENO: checking for linux style IPX support" >&5 |
f5818d2f AJ |
8749 | echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6 |
8750 | if test "${ac_cv_c_ipx_linux+set}" = set; then | |
8751 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
94d99642 | 8752 | else |
f5818d2f | 8753 | cat >conftest.$ac_ext <<_ACEOF |
daa2886c | 8754 | #line $LINENO "configure" |
94d99642 PR |
8755 | #include "confdefs.h" |
8756 | #include <sys/socket.h> | |
8757 | #include <asm/types.h> | |
8758 | #include <linux/ipx.h> | |
daa2886c AJ |
8759 | #ifdef F77_DUMMY_MAIN |
8760 | # ifdef __cplusplus | |
8761 | extern "C" | |
8762 | # endif | |
8763 | int F77_DUMMY_MAIN() { return 1; } | |
8764 | #endif | |
f5818d2f AJ |
8765 | int |
8766 | main () | |
8767 | { | |
94d99642 | 8768 | ((struct sockaddr_ipx *)0)->sipx_family == AF_IPX |
f5818d2f AJ |
8769 | ; |
8770 | return 0; | |
8771 | } | |
8772 | _ACEOF | |
8773 | rm -f conftest.$ac_objext | |
daa2886c | 8774 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
f5818d2f AJ |
8775 | (eval $ac_compile) 2>&5 |
8776 | ac_status=$? | |
daa2886c | 8777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
8778 | (exit $ac_status); } && |
8779 | { ac_try='test -s conftest.$ac_objext' | |
daa2886c | 8780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
8781 | (eval $ac_try) 2>&5 |
8782 | ac_status=$? | |
daa2886c | 8783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 8784 | (exit $ac_status); }; }; then |
c23872d9 | 8785 | ac_cv_c_ipx_linux="yes" |
94d99642 | 8786 | else |
f5818d2f AJ |
8787 | echo "$as_me: failed program was:" >&5 |
8788 | cat conftest.$ac_ext >&5 | |
8789 | ac_cv_c_ipx_linux="no" | |
94d99642 | 8790 | fi |
f5818d2f | 8791 | rm -f conftest.$ac_objext conftest.$ac_ext |
94d99642 | 8792 | |
f5818d2f | 8793 | fi |
daa2886c | 8794 | echo "$as_me:$LINENO: result: $ac_cv_c_ipx_linux" >&5 |
f5818d2f | 8795 | echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6 |
c23872d9 AH |
8796 | if test "$ac_cv_c_ipx_linux" = "yes" |
8797 | then | |
f5818d2f | 8798 | |
daa2886c | 8799 | cat >>confdefs.h <<\_ACEOF |
c23872d9 | 8800 | #define HAVE_IPX_LINUX 1 |
daa2886c | 8801 | _ACEOF |
c23872d9 AH |
8802 | |
8803 | fi | |
94d99642 PR |
8804 | fi |
8805 | ||
daa2886c AJ |
8806 | |
8807 | ||
8808 | ||
8809 | for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h | |
8810 | do | |
8811 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
8812 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8813 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8814 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8815 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8816 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8817 | fi | |
8818 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
8819 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
8820 | else | |
8821 | # Is the header compilable? | |
8822 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
8823 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
8824 | cat >conftest.$ac_ext <<_ACEOF | |
8825 | #line $LINENO "configure" | |
8826 | #include "confdefs.h" | |
8827 | $ac_includes_default | |
8828 | #include <$ac_header> | |
8829 | _ACEOF | |
8830 | rm -f conftest.$ac_objext | |
8831 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8832 | (eval $ac_compile) 2>&5 | |
8833 | ac_status=$? | |
8834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8835 | (exit $ac_status); } && | |
8836 | { ac_try='test -s conftest.$ac_objext' | |
8837 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8838 | (eval $ac_try) 2>&5 | |
8839 | ac_status=$? | |
8840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8841 | (exit $ac_status); }; }; then | |
8842 | ac_header_compiler=yes | |
8843 | else | |
8844 | echo "$as_me: failed program was:" >&5 | |
8845 | cat conftest.$ac_ext >&5 | |
8846 | ac_header_compiler=no | |
8847 | fi | |
8848 | rm -f conftest.$ac_objext conftest.$ac_ext | |
8849 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
8850 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
8851 | ||
8852 | # Is the header present? | |
8853 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
8854 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
8855 | cat >conftest.$ac_ext <<_ACEOF | |
8856 | #line $LINENO "configure" | |
0623a6f3 | 8857 | #include "confdefs.h" |
f5818d2f AJ |
8858 | #include <$ac_header> |
8859 | _ACEOF | |
daa2886c | 8860 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
f5818d2f AJ |
8861 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
8862 | ac_status=$? | |
8863 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
8864 | rm -f conftest.er1 | |
8865 | cat conftest.err >&5 | |
daa2886c | 8866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
8867 | (exit $ac_status); } >/dev/null; then |
8868 | if test -s conftest.err; then | |
8869 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8870 | else | |
8871 | ac_cpp_err= | |
8872 | fi | |
8873 | else | |
8874 | ac_cpp_err=yes | |
8875 | fi | |
8876 | if test -z "$ac_cpp_err"; then | |
daa2886c | 8877 | ac_header_preproc=yes |
f5818d2f AJ |
8878 | else |
8879 | echo "$as_me: failed program was:" >&5 | |
0623a6f3 | 8880 | cat conftest.$ac_ext >&5 |
daa2886c | 8881 | ac_header_preproc=no |
0623a6f3 | 8882 | fi |
f5818d2f | 8883 | rm -f conftest.err conftest.$ac_ext |
daa2886c AJ |
8884 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8885 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
8886 | ||
8887 | # So? What about this header? | |
8888 | case $ac_header_compiler:$ac_header_preproc in | |
8889 | yes:no ) | |
8890 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8891 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8892 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8893 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
8894 | no:yes ) | |
8895 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
8896 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8897 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8898 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8899 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8900 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
8901 | esac | |
8902 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8903 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8904 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8905 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8906 | else | |
8907 | eval "$as_ac_Header=$ac_header_preproc" | |
0623a6f3 | 8908 | fi |
daa2886c | 8909 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
f5818d2f | 8910 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
daa2886c AJ |
8911 | |
8912 | fi | |
f5818d2f | 8913 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
daa2886c | 8914 | cat >>confdefs.h <<_ACEOF |
f5818d2f | 8915 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
daa2886c | 8916 | _ACEOF |
ecc7669d | 8917 | break |
c7c217b3 | 8918 | fi |
daa2886c | 8919 | |
c7c217b3 | 8920 | done |
0623a6f3 | 8921 | |
daa2886c AJ |
8922 | |
8923 | echo "$as_me:$LINENO: checking for Open Sound System" >&5 | |
f5818d2f AJ |
8924 | echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6 |
8925 | if test "${ac_cv_c_opensoundsystem+set}" = set; then | |
8926 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a69b88b2 | 8927 | else |
f5818d2f | 8928 | cat >conftest.$ac_ext <<_ACEOF |
daa2886c | 8929 | #line $LINENO "configure" |
a69b88b2 | 8930 | #include "confdefs.h" |
c7c217b3 | 8931 | |
ecc7669d | 8932 | #if defined(HAVE_SYS_SOUNDCARD_H) |
c7c217b3 | 8933 | #include <sys/soundcard.h> |
ecc7669d | 8934 | #elif defined(HAVE_MACHINE_SOUNDCARD_H) |
c7c217b3 | 8935 | #include <machine/soundcard.h> |
ecc7669d TV |
8936 | #elif defined(HAVE_SOUNDCARD_H) |
8937 | #include <soundcard.h> | |
c7c217b3 | 8938 | #endif |
a69b88b2 | 8939 | |
daa2886c AJ |
8940 | #ifdef F77_DUMMY_MAIN |
8941 | # ifdef __cplusplus | |
8942 | extern "C" | |
8943 | # endif | |
8944 | int F77_DUMMY_MAIN() { return 1; } | |
8945 | #endif | |
f5818d2f AJ |
8946 | int |
8947 | main () | |
8948 | { | |
c7c217b3 | 8949 | |
daa2886c | 8950 | |
a69b88b2 AJ |
8951 | /* check for one of the Open Sound System specific SNDCTL_ defines */ |
8952 | #if !defined(SNDCTL_DSP_STEREO) | |
8953 | #error No open sound system | |
8954 | #endif | |
8955 | ||
f5818d2f AJ |
8956 | ; |
8957 | return 0; | |
8958 | } | |
8959 | _ACEOF | |
8960 | rm -f conftest.$ac_objext | |
daa2886c | 8961 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
f5818d2f AJ |
8962 | (eval $ac_compile) 2>&5 |
8963 | ac_status=$? | |
daa2886c | 8964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
8965 | (exit $ac_status); } && |
8966 | { ac_try='test -s conftest.$ac_objext' | |
daa2886c | 8967 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
8968 | (eval $ac_try) 2>&5 |
8969 | ac_status=$? | |
daa2886c | 8970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 8971 | (exit $ac_status); }; }; then |
c7c217b3 | 8972 | ac_cv_c_opensoundsystem="yes" |
a69b88b2 | 8973 | else |
f5818d2f AJ |
8974 | echo "$as_me: failed program was:" >&5 |
8975 | cat conftest.$ac_ext >&5 | |
8976 | ac_cv_c_opensoundsystem="no" | |
a69b88b2 | 8977 | fi |
f5818d2f | 8978 | rm -f conftest.$ac_objext conftest.$ac_ext |
a69b88b2 | 8979 | fi |
daa2886c | 8980 | echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem" >&5 |
f5818d2f | 8981 | echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6 |
0623a6f3 | 8982 | |
dadf78ff AJ |
8983 | if test "$ac_cv_c_opensoundsystem" = "yes" |
8984 | then | |
f5818d2f | 8985 | |
daa2886c | 8986 | cat >>confdefs.h <<\_ACEOF |
dadf78ff | 8987 | #define HAVE_OSS 1 |
daa2886c | 8988 | _ACEOF |
dadf78ff AJ |
8989 | |
8990 | fi | |
8991 | ||
daa2886c | 8992 | echo "$as_me:$LINENO: checking for Open Sound System/MIDI interface" >&5 |
f5818d2f AJ |
8993 | echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6 |
8994 | if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then | |
8995 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
338d3b2d | 8996 | else |
f5818d2f | 8997 | cat >conftest.$ac_ext <<_ACEOF |
daa2886c | 8998 | #line $LINENO "configure" |
338d3b2d EP |
8999 | #include "confdefs.h" |
9000 | ||
9001 | #if defined(HAVE_SYS_SOUNDCARD_H) | |
9002 | #include <sys/soundcard.h> | |
9003 | #elif defined(HAVE_MACHINE_SOUNDCARD_H) | |
9004 | #include <machine/soundcard.h> | |
9005 | #elif defined(HAVE_SOUNDCARD_H) | |
9006 | #include <soundcard.h> | |
9007 | #endif | |
338d3b2d | 9008 | |
daa2886c AJ |
9009 | #ifdef F77_DUMMY_MAIN |
9010 | # ifdef __cplusplus | |
9011 | extern "C" | |
9012 | # endif | |
9013 | int F77_DUMMY_MAIN() { return 1; } | |
9014 | #endif | |
f5818d2f AJ |
9015 | int |
9016 | main () | |
9017 | { | |
338d3b2d | 9018 | |
daa2886c | 9019 | |
338d3b2d EP |
9020 | /* check for one of the Open Sound System specific SNDCTL_SEQ defines */ |
9021 | #if !defined(SNDCTL_SEQ_SYNC) | |
9022 | #error No open sound system MIDI interface | |
9023 | #endif | |
9024 | ||
f5818d2f AJ |
9025 | ; |
9026 | return 0; | |
9027 | } | |
9028 | _ACEOF | |
9029 | rm -f conftest.$ac_objext | |
daa2886c | 9030 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
f5818d2f AJ |
9031 | (eval $ac_compile) 2>&5 |
9032 | ac_status=$? | |
daa2886c | 9033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
9034 | (exit $ac_status); } && |
9035 | { ac_try='test -s conftest.$ac_objext' | |
daa2886c | 9036 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
9037 | (eval $ac_try) 2>&5 |
9038 | ac_status=$? | |
daa2886c | 9039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 9040 | (exit $ac_status); }; }; then |
338d3b2d EP |
9041 | ac_cv_c_opensoundsystem_midi="yes" |
9042 | else | |
f5818d2f AJ |
9043 | echo "$as_me: failed program was:" >&5 |
9044 | cat conftest.$ac_ext >&5 | |
9045 | ac_cv_c_opensoundsystem_midi="no" | |
338d3b2d | 9046 | fi |
f5818d2f | 9047 | rm -f conftest.$ac_objext conftest.$ac_ext |
338d3b2d | 9048 | fi |
daa2886c | 9049 | echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem_midi" >&5 |
f5818d2f | 9050 | echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6 |
338d3b2d EP |
9051 | |
9052 | if test "$ac_cv_c_opensoundsystem_midi" = "yes" | |
9053 | then | |
f5818d2f | 9054 | |
daa2886c | 9055 | cat >>confdefs.h <<\_ACEOF |
338d3b2d | 9056 | #define HAVE_OSS_MIDI 1 |
daa2886c | 9057 | _ACEOF |
338d3b2d EP |
9058 | |
9059 | fi | |
9060 | ||
9b0ba7ca CM |
9061 | # Extract the first word of "artsc-config", so it can be a program name with args. |
9062 | set dummy artsc-config; ac_word=$2 | |
daa2886c | 9063 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9b0ba7ca CM |
9064 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
9065 | if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then | |
9066 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9067 | else | |
9068 | case $ARTSCCONFIG in | |
9069 | [\\/]* | ?:[\\/]*) | |
9070 | ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path. | |
9071 | ;; | |
9072 | *) | |
daa2886c AJ |
9073 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9074 | for as_dir in $PATH | |
9075 | do | |
9076 | IFS=$as_save_IFS | |
9077 | test -z "$as_dir" && as_dir=. | |
9078 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9079 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9080 | ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext" | |
9081 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9082 | break 2 | |
9083 | fi | |
9084 | done | |
9b0ba7ca CM |
9085 | done |
9086 | ||
9087 | ;; | |
9088 | esac | |
9089 | fi | |
9090 | ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG | |
9091 | ||
9092 | if test -n "$ARTSCCONFIG"; then | |
daa2886c | 9093 | echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5 |
9b0ba7ca CM |
9094 | echo "${ECHO_T}$ARTSCCONFIG" >&6 |
9095 | else | |
daa2886c | 9096 | echo "$as_me:$LINENO: result: no" >&5 |
9b0ba7ca CM |
9097 | echo "${ECHO_T}no" >&6 |
9098 | fi | |
9099 | ||
daa2886c | 9100 | echo "$as_me:$LINENO: checking for aRts Sound server" >&5 |
9b0ba7ca CM |
9101 | echo $ECHO_N "checking for aRts Sound server... $ECHO_C" >&6 |
9102 | if test "${ac_cv_c_artsserver+set}" = set; then | |
9103 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9104 | else | |
9105 | if test x$ARTSCCONFIG = x -o x$ARTSCCONFIG = x'"$ARTSCCONFIG"'; | |
9106 | then | |
9107 | ac_cv_c_artsserver=no | |
9108 | else | |
9109 | ARTSC_CFLAGS=`$ARTSCCONFIG --cflags` | |
9110 | ARTSC_LIBS=`$ARTSCCONFIG --libs` | |
9111 | ac_cv_c_artsserver=no | |
9112 | save_CFLAGS="$CFLAGS" | |
9113 | CFLAGS="$CFLAGS $ARTSC_CFLAGS" | |
9114 | cat >conftest.$ac_ext <<_ACEOF | |
daa2886c | 9115 | #line $LINENO "configure" |
9b0ba7ca CM |
9116 | #include "confdefs.h" |
9117 | ||
9118 | #include <artsc.h> | |
9119 | ||
daa2886c AJ |
9120 | #ifdef F77_DUMMY_MAIN |
9121 | # ifdef __cplusplus | |
9122 | extern "C" | |
9123 | # endif | |
9124 | int F77_DUMMY_MAIN() { return 1; } | |
9125 | #endif | |
9b0ba7ca CM |
9126 | int |
9127 | main () | |
9128 | { | |
9129 | ||
9130 | arts_stream_t stream; | |
9131 | ||
9132 | ; | |
9133 | return 0; | |
9134 | } | |
9135 | _ACEOF | |
9136 | rm -f conftest.$ac_objext | |
daa2886c | 9137 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
9b0ba7ca CM |
9138 | (eval $ac_compile) 2>&5 |
9139 | ac_status=$? | |
daa2886c | 9140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9b0ba7ca CM |
9141 | (exit $ac_status); } && |
9142 | { ac_try='test -s conftest.$ac_objext' | |
daa2886c | 9143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9b0ba7ca CM |
9144 | (eval $ac_try) 2>&5 |
9145 | ac_status=$? | |
daa2886c | 9146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9b0ba7ca CM |
9147 | (exit $ac_status); }; }; then |
9148 | ||
9149 | ac_cv_c_artsserver=yes | |
9150 | ||
9151 | else | |
9152 | echo "$as_me: failed program was:" >&5 | |
9153 | cat conftest.$ac_ext >&5 | |
9154 | fi | |
9155 | rm -f conftest.$ac_objext conftest.$ac_ext | |
9156 | CFLAGS="$save_CFLAGS" | |
9157 | fi | |
9158 | fi | |
daa2886c | 9159 | echo "$as_me:$LINENO: result: $ac_cv_c_artsserver" >&5 |
9b0ba7ca CM |
9160 | echo "${ECHO_T}$ac_cv_c_artsserver" >&6 |
9161 | ||
9162 | if test "$ac_cv_c_artsserver" = "yes" | |
9163 | then | |
9164 | ARTSLIBS=$ARTSC_LIBS | |
9165 | ||
9166 | ARTSINCL=$ARTSC_CFLAGS | |
9167 | ||
daa2886c AJ |
9168 | |
9169 | ||
9170 | cat >>confdefs.h <<\_ACEOF | |
9b0ba7ca | 9171 | #define HAVE_ARTS 1 |
daa2886c | 9172 | _ACEOF |
9b0ba7ca CM |
9173 | |
9174 | fi | |
9175 | ||
daa2886c AJ |
9176 | |
9177 | echo "$as_me:$LINENO: checking whether mmap64 works defined as mmap" >&5 | |
f5818d2f AJ |
9178 | echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6 |
9179 | if test "${ac_cv_mmap64_works+set}" = set; then | |
9180 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
0f6cfbc7 MM |
9181 | else |
9182 | if test "$cross_compiling" = yes; then | |
9183 | ac_cv_mmap64_works="no" | |
9184 | else | |
f5818d2f | 9185 | cat >conftest.$ac_ext <<_ACEOF |
daa2886c | 9186 | #line $LINENO "configure" |
0f6cfbc7 MM |
9187 | #include "confdefs.h" |
9188 | ||
9189 | #define _FILE_OFFSET_BITS 64 | |
9190 | #include <stdio.h> | |
9191 | #include <unistd.h> | |
9192 | #include <fcntl.h> | |
9193 | #include <sys/mman.h> | |
9194 | #include <errno.h> | |
9195 | ||
9196 | int main(int argc,char **argv) { | |
9197 | int fd = open("conftest.map",O_CREAT|O_RDWR,0600); | |
9198 | if (fd == -1) exit(1); | |
9199 | ||
9200 | unlink("conftest.map"); | |
9201 | ||
9202 | write(fd,"test",4); | |
9203 | ||
9204 | if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) && | |
9205 | (errno == EINVAL) | |
9206 | ) { | |
9207 | exit(1); | |
9208 | } | |
9209 | close(fd); | |
9210 | fprintf(stderr,"success!\n"); | |
9211 | exit(0); | |
9212 | } | |
9213 | ||
daa2886c | 9214 | |
f5818d2f AJ |
9215 | _ACEOF |
9216 | rm -f conftest$ac_exeext | |
daa2886c | 9217 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f5818d2f AJ |
9218 | (eval $ac_link) 2>&5 |
9219 | ac_status=$? | |
daa2886c | 9220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 9221 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
daa2886c | 9222 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
9223 | (eval $ac_try) 2>&5 |
9224 | ac_status=$? | |
daa2886c | 9225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 9226 | (exit $ac_status); }; }; then |
0f6cfbc7 MM |
9227 | ac_cv_mmap64_works="yes" |
9228 | else | |
f5818d2f AJ |
9229 | echo "$as_me: program exited with status $ac_status" >&5 |
9230 | echo "$as_me: failed program was:" >&5 | |
9231 | cat conftest.$ac_ext >&5 | |
daa2886c | 9232 | ( exit $ac_status ) |
f5818d2f | 9233 | ac_cv_mmap64_works="no" |
0f6cfbc7 | 9234 | fi |
f5818d2f | 9235 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
0f6cfbc7 | 9236 | fi |
0f6cfbc7 | 9237 | fi |
daa2886c | 9238 | echo "$as_me:$LINENO: result: $ac_cv_mmap64_works" >&5 |
f5818d2f | 9239 | echo "${ECHO_T}$ac_cv_mmap64_works" >&6 |
0f6cfbc7 MM |
9240 | |
9241 | if test "$ac_cv_mmap64_works" = "yes" | |
9242 | then | |
f5818d2f | 9243 | |
daa2886c | 9244 | cat >>confdefs.h <<\_ACEOF |
0f6cfbc7 | 9245 | #define _FILE_OFFSET_BITS 64 |
daa2886c | 9246 | _ACEOF |
0f6cfbc7 MM |
9247 | |
9248 | fi | |
9249 | ||
daa2886c | 9250 | |
4f8c37b4 AJ |
9251 | if test "x${GCC}" = "xyes" |
9252 | then | |
9253 | CFLAGS="$CFLAGS -Wall" | |
daa2886c | 9254 | echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5 |
f5818d2f AJ |
9255 | echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6 |
9256 | if test "${ac_cv_c_gcc_strength_bug+set}" = set; then | |
9257 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4f8c37b4 AJ |
9258 | else |
9259 | if test "$cross_compiling" = yes; then | |
9260 | ac_cv_c_gcc_strength_bug="yes" | |
9261 | else | |
f5818d2f | 9262 | cat >conftest.$ac_ext <<_ACEOF |
daa2886c | 9263 | #line $LINENO "configure" |
4f8c37b4 AJ |
9264 | #include "confdefs.h" |
9265 | ||
5aee80f6 | 9266 | int L[4] = {0,1,2,3}; |
4f8c37b4 | 9267 | int main(void) { |
d2e1c1a4 | 9268 | static int Array[3]; |
4f8c37b4 AJ |
9269 | unsigned int B = 3; |
9270 | int i; | |
d2e1c1a4 | 9271 | for(i=0; i<B; i++) Array[i] = i - 3; |
5aee80f6 EP |
9272 | for(i=0; i<4 - 1; i++) L[i] = L[i + 1]; |
9273 | L[i] = 4; | |
f5818d2f | 9274 | |
5aee80f6 | 9275 | exit( Array[1] != -2 || L[2] != 3); |
4f8c37b4 | 9276 | } |
f5818d2f AJ |
9277 | _ACEOF |
9278 | rm -f conftest$ac_exeext | |
daa2886c | 9279 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f5818d2f AJ |
9280 | (eval $ac_link) 2>&5 |
9281 | ac_status=$? | |
daa2886c | 9282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 9283 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
daa2886c | 9284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
9285 | (eval $ac_try) 2>&5 |
9286 | ac_status=$? | |
daa2886c | 9287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 9288 | (exit $ac_status); }; }; then |
4f8c37b4 AJ |
9289 | ac_cv_c_gcc_strength_bug="no" |
9290 | else | |
f5818d2f AJ |
9291 | echo "$as_me: program exited with status $ac_status" >&5 |
9292 | echo "$as_me: failed program was:" >&5 | |
9293 | cat conftest.$ac_ext >&5 | |
daa2886c | 9294 | ( exit $ac_status ) |
f5818d2f | 9295 | ac_cv_c_gcc_strength_bug="yes" |
4f8c37b4 | 9296 | fi |
f5818d2f | 9297 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
4f8c37b4 | 9298 | fi |
4f8c37b4 | 9299 | fi |
daa2886c | 9300 | echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5 |
f5818d2f | 9301 | echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6 |
4f8c37b4 AJ |
9302 | if test "$ac_cv_c_gcc_strength_bug" = "yes" |
9303 | then | |
9304 | CFLAGS="$CFLAGS -fno-strength-reduce" | |
9305 | fi | |
f9b94cb9 | 9306 | |
daa2886c | 9307 | echo "$as_me:$LINENO: checking for gcc -mpreferred-stack-boundary=2 support" >&5 |
f5818d2f AJ |
9308 | echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6 |
9309 | if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then | |
9310 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f9b94cb9 | 9311 | else |
67e8dc68 AJ |
9312 | ac_wine_try_cflags_saved=$CFLAGS |
9313 | CFLAGS="$CFLAGS -mpreferred-stack-boundary=2" | |
9314 | cat >conftest.$ac_ext <<_ACEOF | |
daa2886c | 9315 | #line $LINENO "configure" |
f9b94cb9 AJ |
9316 | #include "confdefs.h" |
9317 | ||
daa2886c AJ |
9318 | #ifdef F77_DUMMY_MAIN |
9319 | # ifdef __cplusplus | |
9320 | extern "C" | |
9321 | # endif | |
9322 | int F77_DUMMY_MAIN() { return 1; } | |
9323 | #endif | |
f5818d2f AJ |
9324 | int |
9325 | main () | |
9326 | { | |
67e8dc68 | 9327 | |
f5818d2f AJ |
9328 | ; |
9329 | return 0; | |
9330 | } | |
9331 | _ACEOF | |
67e8dc68 AJ |
9332 | rm -f conftest.$ac_objext conftest$ac_exeext |
9333 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9334 | (eval $ac_link) 2>&5 | |
f5818d2f | 9335 | ac_status=$? |
daa2886c | 9336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 9337 | (exit $ac_status); } && |
67e8dc68 | 9338 | { ac_try='test -s conftest$ac_exeext' |
daa2886c | 9339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
9340 | (eval $ac_try) 2>&5 |
9341 | ac_status=$? | |
daa2886c | 9342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 9343 | (exit $ac_status); }; }; then |
f9b94cb9 AJ |
9344 | ac_cv_c_gcc_stack_boundary="yes" |
9345 | else | |
f5818d2f AJ |
9346 | echo "$as_me: failed program was:" >&5 |
9347 | cat conftest.$ac_ext >&5 | |
9348 | ac_cv_c_gcc_stack_boundary="no" | |
f9b94cb9 | 9349 | fi |
67e8dc68 AJ |
9350 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
9351 | CFLAGS=$ac_wine_try_cflags_saved | |
f5818d2f | 9352 | fi |
daa2886c | 9353 | echo "$as_me:$LINENO: result: $ac_cv_c_gcc_stack_boundary" >&5 |
f5818d2f | 9354 | echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6 |
f9b94cb9 AJ |
9355 | if test "$ac_cv_c_gcc_stack_boundary" = "yes" |
9356 | then | |
9357 | CFLAGS="$CFLAGS -mpreferred-stack-boundary=2" | |
9358 | fi | |
4f8c37b4 AJ |
9359 | fi |
9360 | ||
daa2886c AJ |
9361 | |
9362 | echo "$as_me:$LINENO: checking whether .type must sit inside a .def directive" >&5 | |
f5818d2f AJ |
9363 | echo $ECHO_N "checking whether .type must sit inside a .def directive... $ECHO_C" >&6 |
9364 | if test "${ac_cv_c_type_in_def+set}" = set; then | |
9365 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c77cbbcd | 9366 | else |
67e8dc68 | 9367 | ac_try_asm_link_saved_libs=$LIBS |
c77cbbcd DP |
9368 | LIBS="conftest_asm.s $LIBS" |
9369 | cat > conftest_asm.s <<EOF | |
9370 | .globl _ac_test | |
9371 | .def _ac_test; .scl 2; .type 32; .endef | |
9372 | _ac_test: | |
9373 | .long 0 | |
9374 | EOF | |
f5818d2f | 9375 | cat >conftest.$ac_ext <<_ACEOF |
daa2886c | 9376 | #line $LINENO "configure" |
c77cbbcd DP |
9377 | #include "confdefs.h" |
9378 | ||
daa2886c AJ |
9379 | #ifdef F77_DUMMY_MAIN |
9380 | # ifdef __cplusplus | |
9381 | extern "C" | |
9382 | # endif | |
9383 | int F77_DUMMY_MAIN() { return 1; } | |
9384 | #endif | |
f5818d2f AJ |
9385 | int |
9386 | main () | |
9387 | { | |
c77cbbcd | 9388 | |
f5818d2f AJ |
9389 | ; |
9390 | return 0; | |
9391 | } | |
9392 | _ACEOF | |
9393 | rm -f conftest.$ac_objext conftest$ac_exeext | |
daa2886c | 9394 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f5818d2f AJ |
9395 | (eval $ac_link) 2>&5 |
9396 | ac_status=$? | |
daa2886c | 9397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
9398 | (exit $ac_status); } && |
9399 | { ac_try='test -s conftest$ac_exeext' | |
daa2886c | 9400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
9401 | (eval $ac_try) 2>&5 |
9402 | ac_status=$? | |
daa2886c | 9403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 9404 | (exit $ac_status); }; }; then |
c77cbbcd DP |
9405 | ac_cv_c_type_in_def="yes" |
9406 | else | |
f5818d2f AJ |
9407 | echo "$as_me: failed program was:" >&5 |
9408 | cat conftest.$ac_ext >&5 | |
9409 | ac_cv_c_type_in_def="no" | |
c77cbbcd | 9410 | fi |
f5818d2f | 9411 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
67e8dc68 AJ |
9412 | rm -f conftest_asm.s |
9413 | LIBS=$ac_try_asm_link_saved_libs | |
c77cbbcd | 9414 | fi |
daa2886c | 9415 | echo "$as_me:$LINENO: result: $ac_cv_c_type_in_def" >&5 |
f5818d2f | 9416 | echo "${ECHO_T}$ac_cv_c_type_in_def" >&6 |
c77cbbcd DP |
9417 | if test "$ac_cv_c_type_in_def" = "yes" |
9418 | then | |
f5818d2f | 9419 | |
daa2886c | 9420 | cat >>confdefs.h <<\_ACEOF |
c77cbbcd | 9421 | #define NEED_TYPE_IN_DEF 1 |
daa2886c | 9422 | _ACEOF |
c77cbbcd DP |
9423 | |
9424 | fi | |
c77cbbcd | 9425 | |
daa2886c AJ |
9426 | |
9427 | echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5 | |
f5818d2f AJ |
9428 | echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6 |
9429 | if test "${ac_cv_c_extern_prefix+set}" = set; then | |
9430 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8cc3a5e4 | 9431 | else |
67e8dc68 | 9432 | ac_try_asm_link_saved_libs=$LIBS |
8cc3a5e4 AJ |
9433 | LIBS="conftest_asm.s $LIBS" |
9434 | cat > conftest_asm.s <<EOF | |
9435 | .globl _ac_test | |
9436 | _ac_test: | |
9437 | .long 0 | |
9438 | EOF | |
f5818d2f | 9439 | cat >conftest.$ac_ext <<_ACEOF |
daa2886c | 9440 | #line $LINENO "configure" |
8cc3a5e4 AJ |
9441 | #include "confdefs.h" |
9442 | extern int ac_test; | |
daa2886c AJ |
9443 | #ifdef F77_DUMMY_MAIN |
9444 | # ifdef __cplusplus | |
9445 | extern "C" | |
9446 | # endif | |
9447 | int F77_DUMMY_MAIN() { return 1; } | |
9448 | #endif | |
f5818d2f AJ |
9449 | int |
9450 | main () | |
9451 | { | |
8cc3a5e4 | 9452 | if (ac_test) return 1 |
f5818d2f AJ |
9453 | ; |
9454 | return 0; | |
9455 | } | |
9456 | _ACEOF | |
fa3a5360 AJ |
9457 | rm -f conftest.$ac_objext conftest$ac_exeext |
9458 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9459 | (eval $ac_link) 2>&5 | |
9460 | ac_status=$? | |
9461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9462 | (exit $ac_status); } && | |
9463 | { ac_try='test -s conftest$ac_exeext' | |
9464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9465 | (eval $ac_try) 2>&5 | |
9466 | ac_status=$? | |
9467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9468 | (exit $ac_status); }; }; then | |
9469 | ac_cv_c_extern_prefix="yes" | |
9470 | else | |
9471 | echo "$as_me: failed program was:" >&5 | |
9472 | cat conftest.$ac_ext >&5 | |
9473 | ac_cv_c_extern_prefix="no" | |
9474 | fi | |
9475 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
67e8dc68 AJ |
9476 | rm -f conftest_asm.s |
9477 | LIBS=$ac_try_asm_link_saved_libs | |
fa3a5360 AJ |
9478 | fi |
9479 | echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5 | |
9480 | echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6 | |
9481 | if test "$ac_cv_c_extern_prefix" = "yes" | |
9482 | then | |
9483 | ||
9484 | cat >>confdefs.h <<\_ACEOF | |
9485 | #define NEED_UNDERSCORE_PREFIX 1 | |
9486 | _ACEOF | |
9487 | ||
9488 | fi | |
9489 | ||
9490 | ||
9491 | echo "$as_me:$LINENO: checking whether stdcall symbols need to be decorated" >&5 | |
9492 | echo $ECHO_N "checking whether stdcall symbols need to be decorated... $ECHO_C" >&6 | |
9493 | if test "${ac_cv_c_stdcall_decoration+set}" = set; then | |
9494 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9495 | else | |
67e8dc68 | 9496 | ac_try_asm_link_saved_libs=$LIBS |
fa3a5360 | 9497 | LIBS="conftest_asm.s $LIBS" |
fa3a5360 AJ |
9498 | cat > conftest_asm.s <<EOF |
9499 | .globl _ac_test@0 | |
9500 | _ac_test@0: | |
fa3a5360 AJ |
9501 | .globl ac_test@0 |
9502 | ac_test@0: | |
9503 | EOF | |
fa3a5360 AJ |
9504 | cat >conftest.$ac_ext <<_ACEOF |
9505 | #line $LINENO "configure" | |
9506 | #include "confdefs.h" | |
9507 | extern void __attribute__((__stdcall__)) ac_test(void); | |
9508 | #ifdef F77_DUMMY_MAIN | |
9509 | # ifdef __cplusplus | |
9510 | extern "C" | |
9511 | # endif | |
9512 | int F77_DUMMY_MAIN() { return 1; } | |
9513 | #endif | |
9514 | int | |
9515 | main () | |
9516 | { | |
67e8dc68 | 9517 | ac_test() |
fa3a5360 AJ |
9518 | ; |
9519 | return 0; | |
9520 | } | |
9521 | _ACEOF | |
9522 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9523 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9524 | (eval $ac_link) 2>&5 | |
9525 | ac_status=$? | |
9526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9527 | (exit $ac_status); } && | |
9528 | { ac_try='test -s conftest$ac_exeext' | |
9529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9530 | (eval $ac_try) 2>&5 | |
9531 | ac_status=$? | |
9532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9533 | (exit $ac_status); }; }; then | |
9534 | ac_cv_c_stdcall_decoration="yes" | |
9535 | else | |
9536 | echo "$as_me: failed program was:" >&5 | |
9537 | cat conftest.$ac_ext >&5 | |
9538 | ac_cv_c_stdcall_decoration="no" | |
9539 | fi | |
9540 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
67e8dc68 AJ |
9541 | rm -f conftest_asm.s |
9542 | LIBS=$ac_try_asm_link_saved_libs | |
fa3a5360 AJ |
9543 | fi |
9544 | echo "$as_me:$LINENO: result: $ac_cv_c_stdcall_decoration" >&5 | |
9545 | echo "${ECHO_T}$ac_cv_c_stdcall_decoration" >&6 | |
9546 | if test "$ac_cv_c_stdcall_decoration" = "yes" | |
9547 | then | |
9548 | ||
9549 | cat >>confdefs.h <<\_ACEOF | |
9550 | #define NEED_STDCALL_DECORATION 1 | |
9551 | _ACEOF | |
9552 | ||
9553 | fi | |
9554 | ||
9555 | ||
9556 | echo "$as_me:$LINENO: checking whether assembler accepts .string" >&5 | |
9557 | echo $ECHO_N "checking whether assembler accepts .string... $ECHO_C" >&6 | |
9558 | if test "${ac_cv_c_asm_string+set}" = set; then | |
9559 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9560 | else | |
67e8dc68 | 9561 | ac_try_asm_link_saved_libs=$LIBS |
fa3a5360 AJ |
9562 | LIBS="conftest_asm.s $LIBS" |
9563 | cat > conftest_asm.s <<EOF | |
9564 | .string "test" | |
9565 | EOF | |
9566 | cat >conftest.$ac_ext <<_ACEOF | |
9567 | #line $LINENO "configure" | |
9568 | #include "confdefs.h" | |
9569 | ||
9570 | #ifdef F77_DUMMY_MAIN | |
9571 | # ifdef __cplusplus | |
9572 | extern "C" | |
9573 | # endif | |
9574 | int F77_DUMMY_MAIN() { return 1; } | |
9575 | #endif | |
9576 | int | |
9577 | main () | |
9578 | { | |
9579 | ||
9580 | ; | |
9581 | return 0; | |
9582 | } | |
9583 | _ACEOF | |
9584 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9585 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9586 | (eval $ac_link) 2>&5 | |
9587 | ac_status=$? | |
9588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9589 | (exit $ac_status); } && | |
9590 | { ac_try='test -s conftest$ac_exeext' | |
9591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9592 | (eval $ac_try) 2>&5 | |
9593 | ac_status=$? | |
9594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9595 | (exit $ac_status); }; }; then | |
9596 | ac_cv_c_asm_string="yes" | |
9597 | else | |
9598 | echo "$as_me: failed program was:" >&5 | |
9599 | cat conftest.$ac_ext >&5 | |
9600 | ac_cv_c_asm_string="no" | |
9601 | fi | |
9602 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
67e8dc68 AJ |
9603 | rm -f conftest_asm.s |
9604 | LIBS=$ac_try_asm_link_saved_libs | |
fa3a5360 AJ |
9605 | fi |
9606 | echo "$as_me:$LINENO: result: $ac_cv_c_asm_string" >&5 | |
9607 | echo "${ECHO_T}$ac_cv_c_asm_string" >&6 | |
9608 | if test "$ac_cv_c_asm_string" = "yes" | |
9609 | then | |
9610 | ||
9611 | cat >>confdefs.h <<\_ACEOF | |
9612 | #define HAVE_ASM_STRING 1 | |
9613 | _ACEOF | |
9614 | ||
9615 | fi | |
9616 | ||
9617 | ||
9618 | LDSHARED="" | |
9619 | LDDLLFLAGS="" | |
9620 | DLLIBS="" | |
9621 | ||
fc01b729 AJ |
9622 | case $host_os in |
9623 | cygwin*|mingw32*) | |
9624 | if test -n "$ac_tool_prefix"; then | |
9625 | # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args. | |
9626 | set dummy ${ac_tool_prefix}dllwrap; ac_word=$2 | |
fa3a5360 AJ |
9627 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9628 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9629 | if test "${ac_cv_prog_DLLWRAP+set}" = set; then | |
9630 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9631 | else | |
9632 | if test -n "$DLLWRAP"; then | |
9633 | ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test. | |
9634 | else | |
9635 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9636 | for as_dir in $PATH | |
9637 | do | |
9638 | IFS=$as_save_IFS | |
9639 | test -z "$as_dir" && as_dir=. | |
9640 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9641 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
fc01b729 | 9642 | ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap" |
fa3a5360 AJ |
9643 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
9644 | break 2 | |
9645 | fi | |
9646 | done | |
9647 | done | |
9648 | ||
fa3a5360 AJ |
9649 | fi |
9650 | fi | |
9651 | DLLWRAP=$ac_cv_prog_DLLWRAP | |
9652 | if test -n "$DLLWRAP"; then | |
9653 | echo "$as_me:$LINENO: result: $DLLWRAP" >&5 | |
9654 | echo "${ECHO_T}$DLLWRAP" >&6 | |
9655 | else | |
9656 | echo "$as_me:$LINENO: result: no" >&5 | |
9657 | echo "${ECHO_T}no" >&6 | |
9658 | fi | |
9659 | ||
fc01b729 AJ |
9660 | fi |
9661 | if test -z "$ac_cv_prog_DLLWRAP"; then | |
9662 | ac_ct_DLLWRAP=$DLLWRAP | |
9663 | # Extract the first word of "dllwrap", so it can be a program name with args. | |
9664 | set dummy dllwrap; ac_word=$2 | |
9665 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9666 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9667 | if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then | |
9668 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9669 | else | |
9670 | if test -n "$ac_ct_DLLWRAP"; then | |
9671 | ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test. | |
9672 | else | |
9673 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9674 | for as_dir in $PATH | |
9675 | do | |
9676 | IFS=$as_save_IFS | |
9677 | test -z "$as_dir" && as_dir=. | |
9678 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9679 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9680 | ac_cv_prog_ac_ct_DLLWRAP="dllwrap" | |
9681 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9682 | break 2 | |
9683 | fi | |
9684 | done | |
9685 | done | |
9686 | ||
9687 | test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP="false" | |
9688 | fi | |
9689 | fi | |
9690 | ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP | |
9691 | if test -n "$ac_ct_DLLWRAP"; then | |
9692 | echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5 | |
9693 | echo "${ECHO_T}$ac_ct_DLLWRAP" >&6 | |
9694 | else | |
9695 | echo "$as_me:$LINENO: result: no" >&5 | |
9696 | echo "${ECHO_T}no" >&6 | |
9697 | fi | |
9698 | ||
9699 | DLLWRAP=$ac_ct_DLLWRAP | |
9700 | else | |
9701 | DLLWRAP="$ac_cv_prog_DLLWRAP" | |
9702 | fi | |
9703 | ||
9704 | if test "$DLLWRAP" = "false"; then | |
fa3a5360 | 9705 | LIBEXT="a" |
fc01b729 AJ |
9706 | else |
9707 | LIBEXT="dll" | |
fa3a5360 AJ |
9708 | fi |
9709 | ;; | |
9710 | *) | |
9711 | ||
9712 | for ac_header in dlfcn.h | |
9713 | do | |
9714 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9715 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9716 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9717 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9718 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9719 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9720 | fi | |
9721 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9722 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9723 | else | |
9724 | # Is the header compilable? | |
9725 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
9726 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
9727 | cat >conftest.$ac_ext <<_ACEOF | |
9728 | #line $LINENO "configure" | |
9729 | #include "confdefs.h" | |
9730 | $ac_includes_default | |
9731 | #include <$ac_header> | |
9732 | _ACEOF | |
9733 | rm -f conftest.$ac_objext | |
9734 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9735 | (eval $ac_compile) 2>&5 | |
f5818d2f | 9736 | ac_status=$? |
daa2886c | 9737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 9738 | (exit $ac_status); } && |
fa3a5360 | 9739 | { ac_try='test -s conftest.$ac_objext' |
daa2886c | 9740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
9741 | (eval $ac_try) 2>&5 |
9742 | ac_status=$? | |
daa2886c | 9743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 9744 | (exit $ac_status); }; }; then |
fa3a5360 | 9745 | ac_header_compiler=yes |
8cc3a5e4 | 9746 | else |
f5818d2f AJ |
9747 | echo "$as_me: failed program was:" >&5 |
9748 | cat conftest.$ac_ext >&5 | |
fa3a5360 | 9749 | ac_header_compiler=no |
8cc3a5e4 | 9750 | fi |
fa3a5360 AJ |
9751 | rm -f conftest.$ac_objext conftest.$ac_ext |
9752 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9753 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
f5818d2f | 9754 | |
fa3a5360 AJ |
9755 | # Is the header present? |
9756 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
9757 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
9758 | cat >conftest.$ac_ext <<_ACEOF | |
9759 | #line $LINENO "configure" | |
9760 | #include "confdefs.h" | |
9761 | #include <$ac_header> | |
daa2886c | 9762 | _ACEOF |
fa3a5360 AJ |
9763 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
9764 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9765 | ac_status=$? | |
9766 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
9767 | rm -f conftest.er1 | |
9768 | cat conftest.err >&5 | |
9769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9770 | (exit $ac_status); } >/dev/null; then | |
9771 | if test -s conftest.err; then | |
9772 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9773 | else | |
9774 | ac_cpp_err= | |
9775 | fi | |
9776 | else | |
9777 | ac_cpp_err=yes | |
9778 | fi | |
9779 | if test -z "$ac_cpp_err"; then | |
9780 | ac_header_preproc=yes | |
9781 | else | |
9782 | echo "$as_me: failed program was:" >&5 | |
9783 | cat conftest.$ac_ext >&5 | |
9784 | ac_header_preproc=no | |
9785 | fi | |
9786 | rm -f conftest.err conftest.$ac_ext | |
9787 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9788 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
8cc3a5e4 | 9789 | |
fa3a5360 AJ |
9790 | # So? What about this header? |
9791 | case $ac_header_compiler:$ac_header_preproc in | |
9792 | yes:no ) | |
9793 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9794 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9795 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9796 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
9797 | no:yes ) | |
9798 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9799 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9800 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9801 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9802 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9803 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
9804 | esac | |
9805 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9806 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9807 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9808 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9809 | else | |
9810 | eval "$as_ac_Header=$ac_header_preproc" | |
8cc3a5e4 | 9811 | fi |
fa3a5360 AJ |
9812 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9813 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
8cc3a5e4 | 9814 | |
fa3a5360 AJ |
9815 | fi |
9816 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
9817 | cat >>confdefs.h <<_ACEOF | |
9818 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9819 | _ACEOF | |
daa2886c | 9820 | |
fa3a5360 AJ |
9821 | for ac_func in dlopen |
9822 | do | |
9823 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
9824 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
9825 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
9826 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
f5818d2f | 9827 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
93a5b868 | 9828 | else |
fa3a5360 | 9829 | cat >conftest.$ac_ext <<_ACEOF |
daa2886c | 9830 | #line $LINENO "configure" |
93a5b868 | 9831 | #include "confdefs.h" |
fa3a5360 AJ |
9832 | /* System header to define __stub macros and hopefully few prototypes, |
9833 | which can conflict with char $ac_func (); below. */ | |
9834 | #include <assert.h> | |
9835 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9836 | #ifdef __cplusplus | |
9837 | extern "C" | |
9838 | #endif | |
9839 | /* We use char because int might match the return type of a gcc2 | |
9840 | builtin and then its argument prototype would still apply. */ | |
9841 | char $ac_func (); | |
9842 | char (*f) (); | |
9843 | ||
daa2886c AJ |
9844 | #ifdef F77_DUMMY_MAIN |
9845 | # ifdef __cplusplus | |
9846 | extern "C" | |
9847 | # endif | |
9848 | int F77_DUMMY_MAIN() { return 1; } | |
9849 | #endif | |
f5818d2f AJ |
9850 | int |
9851 | main () | |
9852 | { | |
fa3a5360 AJ |
9853 | /* The GNU C library defines this for functions which it implements |
9854 | to always fail with ENOSYS. Some functions are actually named | |
9855 | something starting with __ and the normal name is an alias. */ | |
9856 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9857 | choke me | |
9858 | #else | |
9859 | f = $ac_func; | |
9860 | #endif | |
9861 | ||
f5818d2f AJ |
9862 | ; |
9863 | return 0; | |
9864 | } | |
9865 | _ACEOF | |
9866 | rm -f conftest.$ac_objext conftest$ac_exeext | |
daa2886c | 9867 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f5818d2f AJ |
9868 | (eval $ac_link) 2>&5 |
9869 | ac_status=$? | |
daa2886c | 9870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
9871 | (exit $ac_status); } && |
9872 | { ac_try='test -s conftest$ac_exeext' | |
daa2886c | 9873 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
9874 | (eval $ac_try) 2>&5 |
9875 | ac_status=$? | |
daa2886c | 9876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 9877 | (exit $ac_status); }; }; then |
fa3a5360 | 9878 | eval "$as_ac_var=yes" |
93a5b868 | 9879 | else |
f5818d2f AJ |
9880 | echo "$as_me: failed program was:" >&5 |
9881 | cat conftest.$ac_ext >&5 | |
fa3a5360 | 9882 | eval "$as_ac_var=no" |
93a5b868 | 9883 | fi |
f5818d2f | 9884 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
93a5b868 | 9885 | fi |
fa3a5360 AJ |
9886 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
9887 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
9888 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
9889 | cat >>confdefs.h <<_ACEOF | |
9890 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
daa2886c | 9891 | _ACEOF |
93a5b868 | 9892 | |
fa3a5360 AJ |
9893 | else |
9894 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
9895 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
9896 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
f5818d2f | 9897 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
0623a6f3 | 9898 | else |
fa3a5360 AJ |
9899 | ac_check_lib_save_LIBS=$LIBS |
9900 | LIBS="-ldl $LIBS" | |
f5818d2f | 9901 | cat >conftest.$ac_ext <<_ACEOF |
daa2886c | 9902 | #line $LINENO "configure" |
0623a6f3 AJ |
9903 | #include "confdefs.h" |
9904 | ||
fa3a5360 AJ |
9905 | /* Override any gcc2 internal prototype to avoid an error. */ |
9906 | #ifdef __cplusplus | |
9907 | extern "C" | |
9908 | #endif | |
9909 | /* We use char because int might match the return type of a gcc2 | |
9910 | builtin and then its argument prototype would still apply. */ | |
9911 | char dlopen (); | |
daa2886c AJ |
9912 | #ifdef F77_DUMMY_MAIN |
9913 | # ifdef __cplusplus | |
9914 | extern "C" | |
9915 | # endif | |
9916 | int F77_DUMMY_MAIN() { return 1; } | |
9917 | #endif | |
f5818d2f AJ |
9918 | int |
9919 | main () | |
9920 | { | |
fa3a5360 | 9921 | dlopen (); |
f5818d2f AJ |
9922 | ; |
9923 | return 0; | |
9924 | } | |
9925 | _ACEOF | |
9926 | rm -f conftest.$ac_objext conftest$ac_exeext | |
daa2886c | 9927 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f5818d2f AJ |
9928 | (eval $ac_link) 2>&5 |
9929 | ac_status=$? | |
daa2886c | 9930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
9931 | (exit $ac_status); } && |
9932 | { ac_try='test -s conftest$ac_exeext' | |
daa2886c | 9933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
9934 | (eval $ac_try) 2>&5 |
9935 | ac_status=$? | |
daa2886c | 9936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 9937 | (exit $ac_status); }; }; then |
fa3a5360 | 9938 | ac_cv_lib_dl_dlopen=yes |
0623a6f3 | 9939 | else |
f5818d2f AJ |
9940 | echo "$as_me: failed program was:" >&5 |
9941 | cat conftest.$ac_ext >&5 | |
fa3a5360 | 9942 | ac_cv_lib_dl_dlopen=no |
0623a6f3 | 9943 | fi |
f5818d2f | 9944 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
fa3a5360 | 9945 | LIBS=$ac_check_lib_save_LIBS |
0623a6f3 | 9946 | fi |
fa3a5360 AJ |
9947 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
9948 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
9949 | if test $ac_cv_lib_dl_dlopen = yes; then | |
f5818d2f | 9950 | |
daa2886c | 9951 | cat >>confdefs.h <<\_ACEOF |
fa3a5360 | 9952 | #define HAVE_DLOPEN 1 |
daa2886c | 9953 | _ACEOF |
0623a6f3 | 9954 | |
fa3a5360 AJ |
9955 | DLLIBS="-ldl" |
9956 | else | |
9957 | LIBEXT="a" | |
0623a6f3 AJ |
9958 | fi |
9959 | ||
fa3a5360 | 9960 | fi |
466ae143 AJ |
9961 | done |
9962 | ||
466ae143 | 9963 | else |
fa3a5360 | 9964 | LIBEXT="a" |
466ae143 AJ |
9965 | fi |
9966 | ||
fa3a5360 AJ |
9967 | done |
9968 | ||
9969 | ||
9970 | if test "$LIBEXT" = "so" | |
9971 | then | |
466ae143 | 9972 | echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5 |
f5818d2f AJ |
9973 | echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6 |
9974 | if test "${ac_cv_c_dll_gnuelf+set}" = set; then | |
9975 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7e6ae4ba | 9976 | else |
67e8dc68 AJ |
9977 | ac_wine_try_cflags_saved=$CFLAGS |
9978 | CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic" | |
9979 | cat >conftest.$ac_ext <<_ACEOF | |
daa2886c | 9980 | #line $LINENO "configure" |
7e6ae4ba AJ |
9981 | #include "confdefs.h" |
9982 | ||
daa2886c AJ |
9983 | #ifdef F77_DUMMY_MAIN |
9984 | # ifdef __cplusplus | |
9985 | extern "C" | |
9986 | # endif | |
9987 | int F77_DUMMY_MAIN() { return 1; } | |
9988 | #endif | |
f5818d2f AJ |
9989 | int |
9990 | main () | |
9991 | { | |
67e8dc68 | 9992 | |
f5818d2f AJ |
9993 | ; |
9994 | return 0; | |
9995 | } | |
9996 | _ACEOF | |
9997 | rm -f conftest.$ac_objext conftest$ac_exeext | |
daa2886c | 9998 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f5818d2f AJ |
9999 | (eval $ac_link) 2>&5 |
10000 | ac_status=$? | |
daa2886c | 10001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
10002 | (exit $ac_status); } && |
10003 | { ac_try='test -s conftest$ac_exeext' | |
daa2886c | 10004 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
10005 | (eval $ac_try) 2>&5 |
10006 | ac_status=$? | |
daa2886c | 10007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 10008 | (exit $ac_status); }; }; then |
37e5e7f4 | 10009 | ac_cv_c_dll_gnuelf="yes" |
7e6ae4ba | 10010 | else |
f5818d2f AJ |
10011 | echo "$as_me: failed program was:" >&5 |
10012 | cat conftest.$ac_ext >&5 | |
10013 | ac_cv_c_dll_gnuelf="no" | |
7e6ae4ba | 10014 | fi |
f5818d2f | 10015 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
67e8dc68 | 10016 | CFLAGS=$ac_wine_try_cflags_saved |
f5818d2f | 10017 | fi |
daa2886c | 10018 | echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5 |
f5818d2f | 10019 | echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6 |
466ae143 AJ |
10020 | if test "$ac_cv_c_dll_gnuelf" = "yes" |
10021 | then | |
10022 | LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)" | |
10023 | LDDLLFLAGS="-Wl,-Bsymbolic" | |
10024 | else | |
10025 | echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5 | |
f5818d2f AJ |
10026 | echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6 |
10027 | if test "${ac_cv_c_dll_unixware+set}" = set; then | |
10028 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4b992b0f | 10029 | else |
67e8dc68 AJ |
10030 | ac_wine_try_cflags_saved=$CFLAGS |
10031 | CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic" | |
10032 | cat >conftest.$ac_ext <<_ACEOF | |
daa2886c | 10033 | #line $LINENO "configure" |
4b992b0f TV |
10034 | #include "confdefs.h" |
10035 | ||
daa2886c AJ |
10036 | #ifdef F77_DUMMY_MAIN |
10037 | # ifdef __cplusplus | |
10038 | extern "C" | |
10039 | # endif | |
10040 | int F77_DUMMY_MAIN() { return 1; } | |
10041 | #endif | |
f5818d2f AJ |
10042 | int |
10043 | main () | |
10044 | { | |
67e8dc68 | 10045 | |
f5818d2f AJ |
10046 | ; |
10047 | return 0; | |
10048 | } | |
10049 | _ACEOF | |
10050 | rm -f conftest.$ac_objext conftest$ac_exeext | |
daa2886c | 10051 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f5818d2f AJ |
10052 | (eval $ac_link) 2>&5 |
10053 | ac_status=$? | |
daa2886c | 10054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
10055 | (exit $ac_status); } && |
10056 | { ac_try='test -s conftest$ac_exeext' | |
daa2886c | 10057 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
10058 | (eval $ac_try) 2>&5 |
10059 | ac_status=$? | |
daa2886c | 10060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 10061 | (exit $ac_status); }; }; then |
e977d6ca | 10062 | ac_cv_c_dll_unixware="yes" |
4b992b0f | 10063 | else |
f5818d2f AJ |
10064 | echo "$as_me: failed program was:" >&5 |
10065 | cat conftest.$ac_ext >&5 | |
10066 | ac_cv_c_dll_unixware="no" | |
4b992b0f | 10067 | fi |
f5818d2f | 10068 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
67e8dc68 | 10069 | CFLAGS=$ac_wine_try_cflags_saved |
f5818d2f | 10070 | fi |
daa2886c | 10071 | echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5 |
f5818d2f | 10072 | echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6 |
466ae143 AJ |
10073 | if test "$ac_cv_c_dll_unixware" = "yes" |
10074 | then | |
10075 | LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)" | |
10076 | LDDLLFLAGS="-Wl,-B,symbolic" | |
10077 | fi | |
10078 | fi | |
fa3a5360 AJ |
10079 | fi |
10080 | ;; | |
10081 | esac | |
7e6ae4ba | 10082 | |
d48ca948 | 10083 | if test "$LIBEXT" = "a"; then |
daa2886c | 10084 | { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries. |
f5818d2f AJ |
10085 | It is currently not possible to build Wine without shared library |
10086 | (.so) support to allow transparent switch between .so and .dll files. | |
10087 | If you are using Linux, you will need a newer binutils. | |
10088 | " >&5 | |
10089 | echo "$as_me: error: could not find a way to build shared libraries. | |
10090 | It is currently not possible to build Wine without shared library | |
10091 | (.so) support to allow transparent switch between .so and .dll files. | |
10092 | If you are using Linux, you will need a newer binutils. | |
10093 | " >&2;} | |
10094 | { (exit 1); exit 1; }; } | |
d48ca948 HT |
10095 | fi |
10096 | ||
0adad95d | 10097 | DLLFLAGS="" |
0adad95d | 10098 | |
318f4cef | 10099 | if test "$LIBEXT" = "so"; then |
318f4cef | 10100 | DLLFLAGS="-fPIC" |
c1bfca04 | 10101 | DLLEXT=".so" |
d48ca948 HT |
10102 | elif test "$LIBEXT" = "dll"; then |
10103 | #DLLFLAGS="-fPIC" # -fPIC doesn't work(at least in cygwin-b20) - FIXME | |
c1bfca04 | 10104 | DLLEXT="" |
a9ee4a2e PS |
10105 | fi |
10106 | ||
fc01b729 AJ |
10107 | case $build_os in |
10108 | cygwin*|mingw32*) | |
10109 | LDPATH="PATH=\"\$(TOOLSDIR)/library:\$(TOOLSDIR)/unicode:\$\$PATH\"" ;; | |
10110 | *) | |
10111 | LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/library:\$(TOOLSDIR)/unicode:\$\$LD_LIBRARY_PATH\"" ;; | |
10112 | esac | |
10113 | ||
daa2886c AJ |
10114 | |
10115 | ||
10116 | ||
10117 | ||
10118 | ||
10119 | ||
10120 | ||
10121 | ||
10122 | ||
67e8dc68 AJ |
10123 | if test "$LIBEXT" = "so" |
10124 | then | |
10125 | # Extract the first word of "ldd", so it can be a program name with args. | |
10126 | set dummy ldd; ac_word=$2 | |
10127 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10128 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10129 | if test "${ac_cv_path_LDD+set}" = set; then | |
10130 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10131 | else | |
10132 | case $LDD in | |
10133 | [\\/]* | ?:[\\/]*) | |
10134 | ac_cv_path_LDD="$LDD" # Let the user override the test with a path. | |
10135 | ;; | |
10136 | *) | |
10137 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10138 | for as_dir in /sbin:/usr/sbin:$PATH | |
10139 | do | |
10140 | IFS=$as_save_IFS | |
10141 | test -z "$as_dir" && as_dir=. | |
10142 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10143 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10144 | ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" | |
10145 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10146 | break 2 | |
10147 | fi | |
10148 | done | |
10149 | done | |
10150 | ||
10151 | test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true" | |
10152 | ;; | |
10153 | esac | |
10154 | fi | |
10155 | LDD=$ac_cv_path_LDD | |
10156 | ||
10157 | if test -n "$LDD"; then | |
10158 | echo "$as_me:$LINENO: result: $LDD" >&5 | |
10159 | echo "${ECHO_T}$LDD" >&6 | |
10160 | else | |
10161 | echo "$as_me:$LINENO: result: no" >&5 | |
10162 | echo "${ECHO_T}no" >&6 | |
10163 | fi | |
10164 | ||
daa2886c | 10165 | |
67e8dc68 AJ |
10166 | echo "$as_me:$LINENO: checking for -lX11 soname" >&5 |
10167 | echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6 | |
10168 | if test "${ac_cv_lib_soname_X11+set}" = set; then | |
10169 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10170 | else | |
10171 | ac_get_soname_save_LIBS=$LIBS | |
10172 | LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS" | |
10173 | cat >conftest.$ac_ext <<_ACEOF | |
10174 | #line $LINENO "configure" | |
10175 | #include "confdefs.h" | |
fa3a5360 | 10176 | |
67e8dc68 AJ |
10177 | /* Override any gcc2 internal prototype to avoid an error. */ |
10178 | #ifdef __cplusplus | |
10179 | extern "C" | |
10180 | #endif | |
10181 | /* We use char because int might match the return type of a gcc2 | |
10182 | builtin and then its argument prototype would still apply. */ | |
10183 | char XCreateWindow (); | |
10184 | #ifdef F77_DUMMY_MAIN | |
10185 | # ifdef __cplusplus | |
10186 | extern "C" | |
10187 | # endif | |
10188 | int F77_DUMMY_MAIN() { return 1; } | |
10189 | #endif | |
10190 | int | |
10191 | main () | |
10192 | { | |
10193 | XCreateWindow (); | |
10194 | ; | |
10195 | return 0; | |
10196 | } | |
10197 | _ACEOF | |
10198 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10199 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10200 | (eval $ac_link) 2>&5 | |
10201 | ac_status=$? | |
10202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10203 | (exit $ac_status); } && | |
10204 | { ac_try='test -s conftest$ac_exeext' | |
10205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10206 | (eval $ac_try) 2>&5 | |
10207 | ac_status=$? | |
10208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10209 | (exit $ac_status); }; }; then | |
10210 | ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'` | |
10211 | if test "x$ac_cv_lib_soname_X11" = "x" | |
10212 | then | |
10213 | ac_cv_lib_soname_X11="libX11.so" | |
10214 | fi | |
10215 | else | |
10216 | echo "$as_me: failed program was:" >&5 | |
10217 | cat conftest.$ac_ext >&5 | |
10218 | ac_cv_lib_soname_X11="libX11.so" | |
10219 | fi | |
10220 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10221 | LIBS=$ac_get_soname_save_LIBS | |
10222 | fi | |
10223 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5 | |
10224 | echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6 | |
10225 | if test "x$ac_cv_lib_soname_X11" != xNONE | |
10226 | then | |
10227 | cat >>confdefs.h <<_ACEOF | |
10228 | #define SONAME_LIBX11 "$ac_cv_lib_soname_X11" | |
10229 | _ACEOF | |
10230 | fi | |
0adad95d | 10231 | |
67e8dc68 AJ |
10232 | echo "$as_me:$LINENO: checking for -lXext soname" >&5 |
10233 | echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6 | |
10234 | if test "${ac_cv_lib_soname_Xext+set}" = set; then | |
10235 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10236 | else | |
10237 | ac_get_soname_save_LIBS=$LIBS | |
10238 | LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS" | |
10239 | cat >conftest.$ac_ext <<_ACEOF | |
10240 | #line $LINENO "configure" | |
10241 | #include "confdefs.h" | |
10242 | ||
10243 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10244 | #ifdef __cplusplus | |
10245 | extern "C" | |
10246 | #endif | |
10247 | /* We use char because int might match the return type of a gcc2 | |
10248 | builtin and then its argument prototype would still apply. */ | |
10249 | char XextCreateExtension (); | |
10250 | #ifdef F77_DUMMY_MAIN | |
10251 | # ifdef __cplusplus | |
10252 | extern "C" | |
10253 | # endif | |
10254 | int F77_DUMMY_MAIN() { return 1; } | |
10255 | #endif | |
10256 | int | |
10257 | main () | |
10258 | { | |
10259 | XextCreateExtension (); | |
10260 | ; | |
10261 | return 0; | |
10262 | } | |
10263 | _ACEOF | |
10264 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10265 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10266 | (eval $ac_link) 2>&5 | |
10267 | ac_status=$? | |
10268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10269 | (exit $ac_status); } && | |
10270 | { ac_try='test -s conftest$ac_exeext' | |
10271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10272 | (eval $ac_try) 2>&5 | |
10273 | ac_status=$? | |
10274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10275 | (exit $ac_status); }; }; then | |
10276 | ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'` | |
10277 | if test "x$ac_cv_lib_soname_Xext" = "x" | |
10278 | then | |
10279 | ac_cv_lib_soname_Xext="libXext.so" | |
10280 | fi | |
10281 | else | |
10282 | echo "$as_me: failed program was:" >&5 | |
10283 | cat conftest.$ac_ext >&5 | |
10284 | ac_cv_lib_soname_Xext="libXext.so" | |
10285 | fi | |
10286 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10287 | LIBS=$ac_get_soname_save_LIBS | |
10288 | fi | |
10289 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5 | |
10290 | echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6 | |
10291 | if test "x$ac_cv_lib_soname_Xext" != xNONE | |
10292 | then | |
10293 | cat >>confdefs.h <<_ACEOF | |
10294 | #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext" | |
10295 | _ACEOF | |
10296 | fi | |
10297 | ||
10298 | echo "$as_me:$LINENO: checking for -lXrender soname" >&5 | |
10299 | echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6 | |
10300 | if test "${ac_cv_lib_soname_Xrender+set}" = set; then | |
10301 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10302 | else | |
10303 | ac_get_soname_save_LIBS=$LIBS | |
10304 | LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" | |
10305 | cat >conftest.$ac_ext <<_ACEOF | |
10306 | #line $LINENO "configure" | |
10307 | #include "confdefs.h" | |
10308 | ||
10309 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10310 | #ifdef __cplusplus | |
10311 | extern "C" | |
10312 | #endif | |
10313 | /* We use char because int might match the return type of a gcc2 | |
10314 | builtin and then its argument prototype would still apply. */ | |
10315 | char XRenderQueryExtension (); | |
10316 | #ifdef F77_DUMMY_MAIN | |
10317 | # ifdef __cplusplus | |
10318 | extern "C" | |
10319 | # endif | |
10320 | int F77_DUMMY_MAIN() { return 1; } | |
10321 | #endif | |
10322 | int | |
10323 | main () | |
10324 | { | |
10325 | XRenderQueryExtension (); | |
10326 | ; | |
10327 | return 0; | |
10328 | } | |
10329 | _ACEOF | |
10330 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10331 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10332 | (eval $ac_link) 2>&5 | |
10333 | ac_status=$? | |
10334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10335 | (exit $ac_status); } && | |
10336 | { ac_try='test -s conftest$ac_exeext' | |
10337 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10338 | (eval $ac_try) 2>&5 | |
10339 | ac_status=$? | |
10340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10341 | (exit $ac_status); }; }; then | |
10342 | ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'` | |
10343 | if test "x$ac_cv_lib_soname_Xrender" = "x" | |
10344 | then | |
10345 | ac_cv_lib_soname_Xrender="libXrender.so" | |
10346 | fi | |
10347 | else | |
10348 | echo "$as_me: failed program was:" >&5 | |
10349 | cat conftest.$ac_ext >&5 | |
10350 | ac_cv_lib_soname_Xrender="libXrender.so" | |
10351 | fi | |
10352 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10353 | LIBS=$ac_get_soname_save_LIBS | |
10354 | fi | |
10355 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5 | |
10356 | echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6 | |
10357 | if test "x$ac_cv_lib_soname_Xrender" != xNONE | |
10358 | then | |
10359 | cat >>confdefs.h <<_ACEOF | |
10360 | #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender" | |
10361 | _ACEOF | |
10362 | fi | |
10363 | ||
10364 | echo "$as_me:$LINENO: checking for -lfreetype soname" >&5 | |
10365 | echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6 | |
10366 | if test "${ac_cv_lib_soname_freetype+set}" = set; then | |
10367 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10368 | else | |
10369 | ac_get_soname_save_LIBS=$LIBS | |
10370 | LIBS="-lfreetype $X_LIBS $LIBS" | |
10371 | cat >conftest.$ac_ext <<_ACEOF | |
10372 | #line $LINENO "configure" | |
10373 | #include "confdefs.h" | |
10374 | ||
10375 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10376 | #ifdef __cplusplus | |
10377 | extern "C" | |
10378 | #endif | |
10379 | /* We use char because int might match the return type of a gcc2 | |
10380 | builtin and then its argument prototype would still apply. */ | |
10381 | char FT_Init_FreeType (); | |
10382 | #ifdef F77_DUMMY_MAIN | |
10383 | # ifdef __cplusplus | |
10384 | extern "C" | |
10385 | # endif | |
10386 | int F77_DUMMY_MAIN() { return 1; } | |
10387 | #endif | |
10388 | int | |
10389 | main () | |
10390 | { | |
10391 | FT_Init_FreeType (); | |
10392 | ; | |
10393 | return 0; | |
10394 | } | |
10395 | _ACEOF | |
10396 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10397 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10398 | (eval $ac_link) 2>&5 | |
10399 | ac_status=$? | |
10400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10401 | (exit $ac_status); } && | |
10402 | { ac_try='test -s conftest$ac_exeext' | |
10403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10404 | (eval $ac_try) 2>&5 | |
10405 | ac_status=$? | |
10406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10407 | (exit $ac_status); }; }; then | |
10408 | ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.so | sed 's/^[ ]*\([^ ]*\)[ ]*=>.*$/\1/'` | |
10409 | if test "x$ac_cv_lib_soname_freetype" = "x" | |
10410 | then | |
10411 | ac_cv_lib_soname_freetype="libfreetype.so" | |
10412 | fi | |
10413 | else | |
10414 | echo "$as_me: failed program was:" >&5 | |
10415 | cat conftest.$ac_ext >&5 | |
10416 | ac_cv_lib_soname_freetype="libfreetype.so" | |
10417 | fi | |
10418 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10419 | LIBS=$ac_get_soname_save_LIBS | |
10420 | fi | |
10421 | echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5 | |
10422 | echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6 | |
10423 | if test "x$ac_cv_lib_soname_freetype" != xNONE | |
10424 | then | |
10425 | cat >>confdefs.h <<_ACEOF | |
10426 | #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype" | |
10427 | _ACEOF | |
10428 | fi | |
10429 | fi | |
10430 | ||
10431 | ||
10432 | ||
10433 | wine_cv_libc_reentrant=no | |
10434 | echo "$as_me:$LINENO: checking for reentrant libc: __errno_location" >&5 | |
f5818d2f AJ |
10435 | echo $ECHO_N "checking for reentrant libc: __errno_location... $ECHO_C" >&6 |
10436 | if test "${wine_cv_libc_r___errno_location+set}" = set; then | |
10437 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d30dfd24 AJ |
10438 | else |
10439 | if test "$cross_compiling" = yes; then | |
f5818d2f | 10440 | wine_cv_libc_r___errno_location=yes |
d30dfd24 | 10441 | else |
f5818d2f | 10442 | cat >conftest.$ac_ext <<_ACEOF |
daa2886c | 10443 | #line $LINENO "configure" |
d30dfd24 AJ |
10444 | #include "confdefs.h" |
10445 | int myerrno = 0; | |
10446 | char buf[256]; | |
10447 | int *__errno_location(){return &myerrno;} | |
10448 | main(){connect(0,buf,255); exit(!myerrno);} | |
f5818d2f AJ |
10449 | _ACEOF |
10450 | rm -f conftest$ac_exeext | |
daa2886c | 10451 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f5818d2f AJ |
10452 | (eval $ac_link) 2>&5 |
10453 | ac_status=$? | |
daa2886c | 10454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 10455 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
daa2886c | 10456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
10457 | (eval $ac_try) 2>&5 |
10458 | ac_status=$? | |
daa2886c | 10459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 10460 | (exit $ac_status); }; }; then |
598412ed | 10461 | wine_cv_libc_r___errno_location=yes |
d30dfd24 | 10462 | else |
f5818d2f AJ |
10463 | echo "$as_me: program exited with status $ac_status" >&5 |
10464 | echo "$as_me: failed program was:" >&5 | |
10465 | cat conftest.$ac_ext >&5 | |
daa2886c | 10466 | ( exit $ac_status ) |
f5818d2f | 10467 | wine_cv_libc_r___errno_location=no |
d30dfd24 | 10468 | fi |
f5818d2f | 10469 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
d30dfd24 | 10470 | fi |
715a55e7 | 10471 | fi |
daa2886c | 10472 | echo "$as_me:$LINENO: result: $wine_cv_libc_r___errno_location" >&5 |
f5818d2f | 10473 | echo "${ECHO_T}$wine_cv_libc_r___errno_location" >&6 |
67e8dc68 AJ |
10474 | if test "$wine_cv_libc_r___errno_location" = "yes"; then |
10475 | wine_cv_libc_reentrant=__errno_location | |
10476 | else | |
10477 | echo "$as_me:$LINENO: checking for reentrant libc: __error" >&5 | |
f5818d2f AJ |
10478 | echo $ECHO_N "checking for reentrant libc: __error... $ECHO_C" >&6 |
10479 | if test "${wine_cv_libc_r___error+set}" = set; then | |
10480 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
715a55e7 UW |
10481 | else |
10482 | if test "$cross_compiling" = yes; then | |
f5818d2f | 10483 | wine_cv_libc_r___error=yes |
c2606381 | 10484 | else |
f5818d2f | 10485 | cat >conftest.$ac_ext <<_ACEOF |
daa2886c | 10486 | #line $LINENO "configure" |
c2606381 MM |
10487 | #include "confdefs.h" |
10488 | int myerrno = 0; | |
67e8dc68 | 10489 | char buf256; |
c2606381 MM |
10490 | int *__error(){return &myerrno;} |
10491 | main(){connect(0,buf,255); exit(!myerrno);} | |
f5818d2f AJ |
10492 | _ACEOF |
10493 | rm -f conftest$ac_exeext | |
daa2886c | 10494 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f5818d2f AJ |
10495 | (eval $ac_link) 2>&5 |
10496 | ac_status=$? | |
daa2886c | 10497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 10498 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
daa2886c | 10499 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
10500 | (eval $ac_try) 2>&5 |
10501 | ac_status=$? | |
daa2886c | 10502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 10503 | (exit $ac_status); }; }; then |
598412ed | 10504 | wine_cv_libc_r___error=yes |
c2606381 | 10505 | else |
f5818d2f AJ |
10506 | echo "$as_me: program exited with status $ac_status" >&5 |
10507 | echo "$as_me: failed program was:" >&5 | |
10508 | cat conftest.$ac_ext >&5 | |
daa2886c | 10509 | ( exit $ac_status ) |
f5818d2f | 10510 | wine_cv_libc_r___error=no |
c2606381 | 10511 | fi |
f5818d2f | 10512 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
c2606381 | 10513 | fi |
d30dfd24 | 10514 | fi |
daa2886c | 10515 | echo "$as_me:$LINENO: result: $wine_cv_libc_r___error" >&5 |
f5818d2f | 10516 | echo "${ECHO_T}$wine_cv_libc_r___error" >&6 |
67e8dc68 AJ |
10517 | if test "$wine_cv_libc_r___error" = "yes"; then |
10518 | wine_cv_libc_reentrant=__error | |
10519 | else | |
10520 | echo "$as_me:$LINENO: checking for reentrant libc: ___errno" >&5 | |
f5818d2f AJ |
10521 | echo $ECHO_N "checking for reentrant libc: ___errno... $ECHO_C" >&6 |
10522 | if test "${wine_cv_libc_r____errno+set}" = set; then | |
10523 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
715a55e7 UW |
10524 | else |
10525 | if test "$cross_compiling" = yes; then | |
f5818d2f | 10526 | wine_cv_libc_r____errno=yes |
715a55e7 | 10527 | else |
f5818d2f | 10528 | cat >conftest.$ac_ext <<_ACEOF |
daa2886c | 10529 | #line $LINENO "configure" |
715a55e7 UW |
10530 | #include "confdefs.h" |
10531 | int myerrno = 0; | |
67e8dc68 | 10532 | char buf256; |
715a55e7 UW |
10533 | int *___errno(){return &myerrno;} |
10534 | main(){connect(0,buf,255); exit(!myerrno);} | |
f5818d2f AJ |
10535 | _ACEOF |
10536 | rm -f conftest$ac_exeext | |
daa2886c | 10537 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f5818d2f AJ |
10538 | (eval $ac_link) 2>&5 |
10539 | ac_status=$? | |
daa2886c | 10540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 10541 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
daa2886c | 10542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
10543 | (eval $ac_try) 2>&5 |
10544 | ac_status=$? | |
daa2886c | 10545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 10546 | (exit $ac_status); }; }; then |
598412ed | 10547 | wine_cv_libc_r____errno=yes |
715a55e7 | 10548 | else |
f5818d2f AJ |
10549 | echo "$as_me: program exited with status $ac_status" >&5 |
10550 | echo "$as_me: failed program was:" >&5 | |
10551 | cat conftest.$ac_ext >&5 | |
daa2886c | 10552 | ( exit $ac_status ) |
f5818d2f | 10553 | wine_cv_libc_r____errno=no |
715a55e7 | 10554 | fi |
f5818d2f | 10555 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
715a55e7 | 10556 | fi |
715a55e7 | 10557 | fi |
daa2886c | 10558 | echo "$as_me:$LINENO: result: $wine_cv_libc_r____errno" >&5 |
f5818d2f | 10559 | echo "${ECHO_T}$wine_cv_libc_r____errno" >&6 |
67e8dc68 AJ |
10560 | if test "$wine_cv_libc_r____errno" = "yes"; then |
10561 | wine_cv_libc_reentrant=___errno | |
10562 | else | |
10563 | echo "$as_me:$LINENO: checking for reentrant libc: __thr_errno" >&5 | |
f5818d2f AJ |
10564 | echo $ECHO_N "checking for reentrant libc: __thr_errno... $ECHO_C" >&6 |
10565 | if test "${wine_cv_libc_r___thr_errno+set}" = set; then | |
10566 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
e977d6ca RR |
10567 | else |
10568 | if test "$cross_compiling" = yes; then | |
f5818d2f | 10569 | wine_cv_libc_r___thr_errno=yes |
e977d6ca | 10570 | else |
f5818d2f | 10571 | cat >conftest.$ac_ext <<_ACEOF |
daa2886c | 10572 | #line $LINENO "configure" |
e977d6ca RR |
10573 | #include "confdefs.h" |
10574 | int myerrno = 0; | |
67e8dc68 | 10575 | char buf256; |
e977d6ca RR |
10576 | int *__thr_errno(){return &myerrno;} |
10577 | main(){connect(0,buf,255); exit(!myerrno);} | |
f5818d2f AJ |
10578 | _ACEOF |
10579 | rm -f conftest$ac_exeext | |
daa2886c | 10580 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f5818d2f AJ |
10581 | (eval $ac_link) 2>&5 |
10582 | ac_status=$? | |
daa2886c | 10583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 10584 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
daa2886c | 10585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
10586 | (eval $ac_try) 2>&5 |
10587 | ac_status=$? | |
daa2886c | 10588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 10589 | (exit $ac_status); }; }; then |
598412ed | 10590 | wine_cv_libc_r___thr_errno=yes |
e977d6ca | 10591 | else |
f5818d2f AJ |
10592 | echo "$as_me: program exited with status $ac_status" >&5 |
10593 | echo "$as_me: failed program was:" >&5 | |
10594 | cat conftest.$ac_ext >&5 | |
daa2886c | 10595 | ( exit $ac_status ) |
f5818d2f | 10596 | wine_cv_libc_r___thr_errno=no |
e977d6ca | 10597 | fi |
f5818d2f | 10598 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
e977d6ca | 10599 | fi |
e977d6ca | 10600 | fi |
daa2886c | 10601 | echo "$as_me:$LINENO: result: $wine_cv_libc_r___thr_errno" >&5 |
f5818d2f | 10602 | echo "${ECHO_T}$wine_cv_libc_r___thr_errno" >&6 |
67e8dc68 AJ |
10603 | if test "$wine_cv_libc_r___thr_errno" = "yes"; then |
10604 | wine_cv_libc_reentrant=__thr_errno | |
10605 | else | |
10606 | echo "$as_me:$LINENO: checking for reentrant libc: __errno" >&5 | |
f5818d2f AJ |
10607 | echo $ECHO_N "checking for reentrant libc: __errno... $ECHO_C" >&6 |
10608 | if test "${wine_cv_libc_r___errno+set}" = set; then | |
10609 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33dff344 BJY |
10610 | else |
10611 | if test "$cross_compiling" = yes; then | |
f5818d2f | 10612 | wine_cv_libc_r___errno=yes |
33dff344 | 10613 | else |
f5818d2f | 10614 | cat >conftest.$ac_ext <<_ACEOF |
daa2886c | 10615 | #line $LINENO "configure" |
33dff344 BJY |
10616 | #include "confdefs.h" |
10617 | int myerrno = 0; | |
67e8dc68 | 10618 | char buf256; |
33dff344 BJY |
10619 | int *__errno(){return &myerrno;} |
10620 | main(){connect(0,buf,255); exit(!myerrno);} | |
f5818d2f AJ |
10621 | _ACEOF |
10622 | rm -f conftest$ac_exeext | |
daa2886c | 10623 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f5818d2f AJ |
10624 | (eval $ac_link) 2>&5 |
10625 | ac_status=$? | |
daa2886c | 10626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 10627 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
daa2886c | 10628 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
10629 | (eval $ac_try) 2>&5 |
10630 | ac_status=$? | |
daa2886c | 10631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 10632 | (exit $ac_status); }; }; then |
33dff344 BJY |
10633 | wine_cv_libc_r___errno=yes |
10634 | else | |
f5818d2f AJ |
10635 | echo "$as_me: program exited with status $ac_status" >&5 |
10636 | echo "$as_me: failed program was:" >&5 | |
10637 | cat conftest.$ac_ext >&5 | |
daa2886c | 10638 | ( exit $ac_status ) |
f5818d2f | 10639 | wine_cv_libc_r___errno=no |
33dff344 | 10640 | fi |
f5818d2f | 10641 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
33dff344 | 10642 | fi |
33dff344 | 10643 | fi |
daa2886c | 10644 | echo "$as_me:$LINENO: result: $wine_cv_libc_r___errno" >&5 |
f5818d2f | 10645 | echo "${ECHO_T}$wine_cv_libc_r___errno" >&6 |
67e8dc68 AJ |
10646 | if test "$wine_cv_libc_r___errno" = "yes"; then |
10647 | wine_cv_libc_reentrant=__errno | |
10648 | fi | |
10649 | ||
10650 | ||
10651 | fi | |
10652 | ||
10653 | fi | |
10654 | ||
10655 | fi | |
10656 | ||
33dff344 BJY |
10657 | fi |
10658 | ||
daa2886c | 10659 | |
f5818d2f | 10660 | if test "$wine_cv_libc_reentrant" != "no" |
d30dfd24 | 10661 | then |
f5818d2f | 10662 | |
daa2886c | 10663 | cat >>confdefs.h <<_ACEOF |
598412ed | 10664 | #define ERRNO_LOCATION $wine_cv_libc_reentrant |
daa2886c | 10665 | _ACEOF |
d30dfd24 AJ |
10666 | |
10667 | fi | |
10668 | ||
daa2886c | 10669 | |
867fb9d7 | 10670 | if test "$have_x" = "yes" |
24110288 | 10671 | then |
daa2886c | 10672 | echo "$as_me:$LINENO: checking for reentrant X libraries" >&5 |
f5818d2f AJ |
10673 | echo $ECHO_N "checking for reentrant X libraries... $ECHO_C" >&6 |
10674 | if test "${wine_cv_x_reentrant+set}" = set; then | |
10675 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a11d7b1a | 10676 | else |
867fb9d7 AJ |
10677 | libX11_check=none |
10678 | for dir in "$x_libraries" /usr/lib /usr/local/lib /lib; do | |
10679 | if test -r $dir/libX11.so; then | |
10680 | libX11_check="-D $dir/libX11.so" | |
10681 | break | |
10682 | fi | |
10683 | if test -r $dir/libX11.a; then | |
10684 | libX11_check="$dir/libX11.a" | |
10685 | break | |
10686 | fi | |
10687 | done | |
10688 | if test "$libX11_check" != "none"; then | |
10689 | if nm $libX11_check | grep $wine_cv_libc_reentrant >/dev/null 2>&1 | |
10690 | then | |
10691 | wine_cv_x_reentrant=yes | |
10692 | else | |
10693 | wine_cv_x_reentrant=no | |
10694 | fi | |
a11d7b1a | 10695 | else |
867fb9d7 | 10696 | wine_cv_x_reentrant=unknown |
f5818d2f | 10697 | fi |
a11d7b1a | 10698 | fi |
daa2886c | 10699 | echo "$as_me:$LINENO: result: $wine_cv_x_reentrant" >&5 |
f5818d2f | 10700 | echo "${ECHO_T}$wine_cv_x_reentrant" >&6 |
a11d7b1a AJ |
10701 | fi |
10702 | ||
daa2886c | 10703 | |
1bb94039 PS |
10704 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
10705 | # for constant arguments. Useless! | |
daa2886c | 10706 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
f5818d2f AJ |
10707 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 |
10708 | if test "${ac_cv_working_alloca_h+set}" = set; then | |
10709 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1bb94039 | 10710 | else |
f5818d2f | 10711 | cat >conftest.$ac_ext <<_ACEOF |
daa2886c | 10712 | #line $LINENO "configure" |
1bb94039 PS |
10713 | #include "confdefs.h" |
10714 | #include <alloca.h> | |
daa2886c AJ |
10715 | #ifdef F77_DUMMY_MAIN |
10716 | # ifdef __cplusplus | |
10717 | extern "C" | |
10718 | # endif | |
10719 | int F77_DUMMY_MAIN() { return 1; } | |
10720 | #endif | |
f5818d2f AJ |
10721 | int |
10722 | main () | |
10723 | { | |
10724 | char *p = (char *) alloca (2 * sizeof (int)); | |
10725 | ; | |
10726 | return 0; | |
10727 | } | |
10728 | _ACEOF | |
10729 | rm -f conftest.$ac_objext conftest$ac_exeext | |
daa2886c | 10730 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f5818d2f AJ |
10731 | (eval $ac_link) 2>&5 |
10732 | ac_status=$? | |
daa2886c | 10733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
10734 | (exit $ac_status); } && |
10735 | { ac_try='test -s conftest$ac_exeext' | |
daa2886c | 10736 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
10737 | (eval $ac_try) 2>&5 |
10738 | ac_status=$? | |
daa2886c | 10739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
10740 | (exit $ac_status); }; }; then |
10741 | ac_cv_working_alloca_h=yes | |
10742 | else | |
10743 | echo "$as_me: failed program was:" >&5 | |
10744 | cat conftest.$ac_ext >&5 | |
10745 | ac_cv_working_alloca_h=no | |
10746 | fi | |
10747 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10748 | fi | |
daa2886c | 10749 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
f5818d2f AJ |
10750 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 |
10751 | if test $ac_cv_working_alloca_h = yes; then | |
10752 | ||
daa2886c | 10753 | cat >>confdefs.h <<\_ACEOF |
1bb94039 | 10754 | #define HAVE_ALLOCA_H 1 |
daa2886c | 10755 | _ACEOF |
1bb94039 PS |
10756 | |
10757 | fi | |
10758 | ||
daa2886c | 10759 | echo "$as_me:$LINENO: checking for alloca" >&5 |
f5818d2f AJ |
10760 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 |
10761 | if test "${ac_cv_func_alloca_works+set}" = set; then | |
10762 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1bb94039 | 10763 | else |
f5818d2f | 10764 | cat >conftest.$ac_ext <<_ACEOF |
daa2886c | 10765 | #line $LINENO "configure" |
1bb94039 | 10766 | #include "confdefs.h" |
1bb94039 PS |
10767 | #ifdef __GNUC__ |
10768 | # define alloca __builtin_alloca | |
10769 | #else | |
18ad24a7 EP |
10770 | # ifdef _MSC_VER |
10771 | # include <malloc.h> | |
10772 | # define alloca _alloca | |
1bb94039 | 10773 | # else |
18ad24a7 EP |
10774 | # if HAVE_ALLOCA_H |
10775 | # include <alloca.h> | |
1bb94039 | 10776 | # else |
18ad24a7 EP |
10777 | # ifdef _AIX |
10778 | #pragma alloca | |
10779 | # else | |
10780 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
1bb94039 | 10781 | char *alloca (); |
18ad24a7 | 10782 | # endif |
1bb94039 PS |
10783 | # endif |
10784 | # endif | |
10785 | # endif | |
10786 | #endif | |
10787 | ||
daa2886c AJ |
10788 | #ifdef F77_DUMMY_MAIN |
10789 | # ifdef __cplusplus | |
10790 | extern "C" | |
10791 | # endif | |
10792 | int F77_DUMMY_MAIN() { return 1; } | |
10793 | #endif | |
f5818d2f AJ |
10794 | int |
10795 | main () | |
10796 | { | |
10797 | char *p = (char *) alloca (1); | |
10798 | ; | |
10799 | return 0; | |
10800 | } | |
10801 | _ACEOF | |
10802 | rm -f conftest.$ac_objext conftest$ac_exeext | |
daa2886c | 10803 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f5818d2f AJ |
10804 | (eval $ac_link) 2>&5 |
10805 | ac_status=$? | |
daa2886c | 10806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
10807 | (exit $ac_status); } && |
10808 | { ac_try='test -s conftest$ac_exeext' | |
daa2886c | 10809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
10810 | (eval $ac_try) 2>&5 |
10811 | ac_status=$? | |
daa2886c | 10812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 10813 | (exit $ac_status); }; }; then |
1bb94039 PS |
10814 | ac_cv_func_alloca_works=yes |
10815 | else | |
f5818d2f AJ |
10816 | echo "$as_me: failed program was:" >&5 |
10817 | cat conftest.$ac_ext >&5 | |
10818 | ac_cv_func_alloca_works=no | |
1bb94039 | 10819 | fi |
f5818d2f | 10820 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
1bb94039 | 10821 | fi |
daa2886c | 10822 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
f5818d2f | 10823 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 |
1bb94039 | 10824 | |
1bb94039 | 10825 | if test $ac_cv_func_alloca_works = yes; then |
f5818d2f | 10826 | |
daa2886c | 10827 | cat >>confdefs.h <<\_ACEOF |
1bb94039 | 10828 | #define HAVE_ALLOCA 1 |
daa2886c | 10829 | _ACEOF |
1bb94039 | 10830 | |
f5818d2f | 10831 | else |
1bb94039 | 10832 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
f5818d2f AJ |
10833 | # that cause trouble. Some versions do not even contain alloca or |
10834 | # contain a buggy version. If you still want to use their alloca, | |
10835 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
10836 | ||
10837 | ALLOCA=alloca.$ac_objext | |
10838 | ||
daa2886c | 10839 | cat >>confdefs.h <<\_ACEOF |
1bb94039 | 10840 | #define C_ALLOCA 1 |
daa2886c AJ |
10841 | _ACEOF |
10842 | ||
1bb94039 | 10843 | |
daa2886c | 10844 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
f5818d2f AJ |
10845 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 |
10846 | if test "${ac_cv_os_cray+set}" = set; then | |
10847 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1bb94039 | 10848 | else |
f5818d2f | 10849 | cat >conftest.$ac_ext <<_ACEOF |
daa2886c | 10850 | #line $LINENO "configure" |
1bb94039 PS |
10851 | #include "confdefs.h" |
10852 | #if defined(CRAY) && ! defined(CRAY2) | |
10853 | webecray | |
10854 | #else | |
10855 | wenotbecray | |
10856 | #endif | |
10857 | ||
f5818d2f | 10858 | _ACEOF |
1bb94039 PS |
10859 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
10860 | egrep "webecray" >/dev/null 2>&1; then | |
1bb94039 PS |
10861 | ac_cv_os_cray=yes |
10862 | else | |
1bb94039 PS |
10863 | ac_cv_os_cray=no |
10864 | fi | |
10865 | rm -f conftest* | |
10866 | ||
10867 | fi | |
daa2886c | 10868 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
f5818d2f | 10869 | echo "${ECHO_T}$ac_cv_os_cray" >&6 |
1bb94039 | 10870 | if test $ac_cv_os_cray = yes; then |
f5818d2f AJ |
10871 | for ac_func in _getb67 GETB67 getb67; do |
10872 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
daa2886c | 10873 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
f5818d2f AJ |
10874 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
10875 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
10876 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10877 | else | |
10878 | cat >conftest.$ac_ext <<_ACEOF | |
daa2886c | 10879 | #line $LINENO "configure" |
1bb94039 PS |
10880 | #include "confdefs.h" |
10881 | /* System header to define __stub macros and hopefully few prototypes, | |
f5818d2f | 10882 | which can conflict with char $ac_func (); below. */ |
1bb94039 PS |
10883 | #include <assert.h> |
10884 | /* Override any gcc2 internal prototype to avoid an error. */ | |
f5818d2f AJ |
10885 | #ifdef __cplusplus |
10886 | extern "C" | |
10887 | #endif | |
1bb94039 | 10888 | /* We use char because int might match the return type of a gcc2 |
f5818d2f AJ |
10889 | builtin and then its argument prototype would still apply. */ |
10890 | char $ac_func (); | |
10891 | char (*f) (); | |
1bb94039 | 10892 | |
daa2886c AJ |
10893 | #ifdef F77_DUMMY_MAIN |
10894 | # ifdef __cplusplus | |
10895 | extern "C" | |
10896 | # endif | |
10897 | int F77_DUMMY_MAIN() { return 1; } | |
10898 | #endif | |
f5818d2f AJ |
10899 | int |
10900 | main () | |
10901 | { | |
1bb94039 PS |
10902 | /* The GNU C library defines this for functions which it implements |
10903 | to always fail with ENOSYS. Some functions are actually named | |
10904 | something starting with __ and the normal name is an alias. */ | |
10905 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10906 | choke me | |
10907 | #else | |
f5818d2f | 10908 | f = $ac_func; |
1bb94039 PS |
10909 | #endif |
10910 | ||
f5818d2f AJ |
10911 | ; |
10912 | return 0; | |
10913 | } | |
10914 | _ACEOF | |
10915 | rm -f conftest.$ac_objext conftest$ac_exeext | |
daa2886c | 10916 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f5818d2f AJ |
10917 | (eval $ac_link) 2>&5 |
10918 | ac_status=$? | |
daa2886c | 10919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
10920 | (exit $ac_status); } && |
10921 | { ac_try='test -s conftest$ac_exeext' | |
daa2886c | 10922 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
10923 | (eval $ac_try) 2>&5 |
10924 | ac_status=$? | |
daa2886c | 10925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
10926 | (exit $ac_status); }; }; then |
10927 | eval "$as_ac_var=yes" | |
10928 | else | |
10929 | echo "$as_me: failed program was:" >&5 | |
10930 | cat conftest.$ac_ext >&5 | |
10931 | eval "$as_ac_var=no" | |
10932 | fi | |
10933 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
10934 | fi | |
daa2886c | 10935 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
f5818d2f AJ |
10936 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
10937 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
10938 | ||
daa2886c | 10939 | cat >>confdefs.h <<_ACEOF |
1bb94039 | 10940 | #define CRAY_STACKSEG_END $ac_func |
daa2886c | 10941 | _ACEOF |
1bb94039 | 10942 | |
f5818d2f | 10943 | break |
1bb94039 PS |
10944 | fi |
10945 | ||
f5818d2f | 10946 | done |
1bb94039 PS |
10947 | fi |
10948 | ||
daa2886c | 10949 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
f5818d2f AJ |
10950 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 |
10951 | if test "${ac_cv_c_stack_direction+set}" = set; then | |
10952 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1bb94039 PS |
10953 | else |
10954 | if test "$cross_compiling" = yes; then | |
10955 | ac_cv_c_stack_direction=0 | |
10956 | else | |
f5818d2f | 10957 | cat >conftest.$ac_ext <<_ACEOF |
daa2886c | 10958 | #line $LINENO "configure" |
1bb94039 | 10959 | #include "confdefs.h" |
f5818d2f | 10960 | int |
1bb94039 PS |
10961 | find_stack_direction () |
10962 | { | |
10963 | static char *addr = 0; | |
10964 | auto char dummy; | |
10965 | if (addr == 0) | |
10966 | { | |
10967 | addr = &dummy; | |
10968 | return find_stack_direction (); | |
10969 | } | |
10970 | else | |
10971 | return (&dummy > addr) ? 1 : -1; | |
10972 | } | |
f5818d2f AJ |
10973 | |
10974 | int | |
1bb94039 PS |
10975 | main () |
10976 | { | |
f5818d2f | 10977 | exit (find_stack_direction () < 0); |
1bb94039 | 10978 | } |
f5818d2f AJ |
10979 | _ACEOF |
10980 | rm -f conftest$ac_exeext | |
daa2886c | 10981 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f5818d2f AJ |
10982 | (eval $ac_link) 2>&5 |
10983 | ac_status=$? | |
daa2886c | 10984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 10985 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
daa2886c | 10986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
10987 | (eval $ac_try) 2>&5 |
10988 | ac_status=$? | |
daa2886c | 10989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 10990 | (exit $ac_status); }; }; then |
1bb94039 PS |
10991 | ac_cv_c_stack_direction=1 |
10992 | else | |
f5818d2f AJ |
10993 | echo "$as_me: program exited with status $ac_status" >&5 |
10994 | echo "$as_me: failed program was:" >&5 | |
10995 | cat conftest.$ac_ext >&5 | |
daa2886c | 10996 | ( exit $ac_status ) |
f5818d2f | 10997 | ac_cv_c_stack_direction=-1 |
1bb94039 | 10998 | fi |
f5818d2f | 10999 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
1bb94039 | 11000 | fi |
1bb94039 | 11001 | fi |
daa2886c | 11002 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
f5818d2f | 11003 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 |
1bb94039 | 11004 | |
daa2886c | 11005 | cat >>confdefs.h <<_ACEOF |
1bb94039 | 11006 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
daa2886c AJ |
11007 | _ACEOF |
11008 | ||
1bb94039 PS |
11009 | |
11010 | fi | |
11011 | ||
daa2886c AJ |
11012 | |
11013 | ||
11014 | ||
11015 | ||
11016 | ||
11017 | ||
11018 | ||
11019 | ||
11020 | ||
11021 | ||
11022 | ||
11023 | ||
11024 | ||
11025 | ||
11026 | ||
11027 | ||
11028 | ||
11029 | ||
11030 | ||
11031 | ||
11032 | ||
11033 | ||
11034 | ||
11035 | ||
11036 | ||
11037 | ||
11038 | ||
11039 | ||
11040 | ||
11041 | ||
11042 | ||
11043 | ||
11044 | ||
11045 | ||
11046 | ||
11047 | ||
11048 | ||
11049 | ||
11050 | ||
b9627c14 SE |
11051 | |
11052 | ||
0a8e15ab SE |
11053 | |
11054 | ||
daa2886c | 11055 | |
daa2886c AJ |
11056 | |
11057 | ||
2487ccea | 11058 | for ac_func in \ |
f61d7e0a | 11059 | __libc_fork \ |
2487ccea | 11060 | _lwp_create \ |
81ecb52c PS |
11061 | _pclose \ |
11062 | _popen \ | |
0a8e15ab | 11063 | _snprintf \ |
81ecb52c PS |
11064 | _stricmp \ |
11065 | _strnicmp \ | |
b9627c14 | 11066 | chsize \ |
2487ccea | 11067 | clone \ |
a7ca2ba7 | 11068 | ecvt \ |
d6deb6db JG |
11069 | finite \ |
11070 | fpclass \ | |
b9627c14 | 11071 | ftruncate \ |
3f1ed52d | 11072 | ftruncate64 \ |
b9010214 PS |
11073 | getnetbyaddr \ |
11074 | getnetbyname \ | |
2487ccea | 11075 | getpagesize \ |
b9010214 PS |
11076 | getprotobyname \ |
11077 | getprotobynumber \ | |
11078 | getservbyport \ | |
11079 | getsockopt \ | |
11080 | inet_network \ | |
3f1ed52d | 11081 | lseek64 \ |
27bb311d | 11082 | lstat \ |
2487ccea | 11083 | memmove \ |
a85b0a6d | 11084 | mmap \ |
81ecb52c | 11085 | pclose \ |
81ecb52c | 11086 | popen \ |
b9627c14 | 11087 | pread \ |
f1a0de99 | 11088 | pwrite \ |
2487ccea | 11089 | rfork \ |
b9010214 | 11090 | select \ |
2487ccea | 11091 | sendmsg \ |
b9010214 | 11092 | settimeofday \ |
2487ccea | 11093 | sigaltstack \ |
0a8e15ab | 11094 | snprintf \ |
b9010214 | 11095 | statfs \ |
3b96efc0 | 11096 | strcasecmp \ |
2487ccea | 11097 | strerror \ |
3b96efc0 | 11098 | strncasecmp \ |
2487ccea AJ |
11099 | tcgetattr \ |
11100 | timegm \ | |
11101 | usleep \ | |
11102 | vfscanf \ | |
11103 | wait4 \ | |
11104 | waitpid \ | |
11105 | ||
e2991ea7 | 11106 | do |
f5818d2f | 11107 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
daa2886c | 11108 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
f5818d2f AJ |
11109 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
11110 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
11111 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11112 | else | |
11113 | cat >conftest.$ac_ext <<_ACEOF | |
daa2886c | 11114 | #line $LINENO "configure" |
e2991ea7 AJ |
11115 | #include "confdefs.h" |
11116 | /* System header to define __stub macros and hopefully few prototypes, | |
f5818d2f | 11117 | which can conflict with char $ac_func (); below. */ |
e2991ea7 AJ |
11118 | #include <assert.h> |
11119 | /* Override any gcc2 internal prototype to avoid an error. */ | |
f5818d2f AJ |
11120 | #ifdef __cplusplus |
11121 | extern "C" | |
11122 | #endif | |
e2bfa4c7 | 11123 | /* We use char because int might match the return type of a gcc2 |
f5818d2f AJ |
11124 | builtin and then its argument prototype would still apply. */ |
11125 | char $ac_func (); | |
11126 | char (*f) (); | |
e2991ea7 | 11127 | |
daa2886c AJ |
11128 | #ifdef F77_DUMMY_MAIN |
11129 | # ifdef __cplusplus | |
11130 | extern "C" | |
11131 | # endif | |
11132 | int F77_DUMMY_MAIN() { return 1; } | |
11133 | #endif | |
f5818d2f AJ |
11134 | int |
11135 | main () | |
11136 | { | |
e2991ea7 AJ |
11137 | /* The GNU C library defines this for functions which it implements |
11138 | to always fail with ENOSYS. Some functions are actually named | |
11139 | something starting with __ and the normal name is an alias. */ | |
11140 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11141 | choke me | |
11142 | #else | |
f5818d2f | 11143 | f = $ac_func; |
e2991ea7 AJ |
11144 | #endif |
11145 | ||
f5818d2f AJ |
11146 | ; |
11147 | return 0; | |
11148 | } | |
11149 | _ACEOF | |
11150 | rm -f conftest.$ac_objext conftest$ac_exeext | |
daa2886c | 11151 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f5818d2f AJ |
11152 | (eval $ac_link) 2>&5 |
11153 | ac_status=$? | |
daa2886c | 11154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
11155 | (exit $ac_status); } && |
11156 | { ac_try='test -s conftest$ac_exeext' | |
daa2886c | 11157 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
11158 | (eval $ac_try) 2>&5 |
11159 | ac_status=$? | |
daa2886c | 11160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
11161 | (exit $ac_status); }; }; then |
11162 | eval "$as_ac_var=yes" | |
11163 | else | |
11164 | echo "$as_me: failed program was:" >&5 | |
11165 | cat conftest.$ac_ext >&5 | |
11166 | eval "$as_ac_var=no" | |
11167 | fi | |
11168 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
11169 | fi | |
daa2886c | 11170 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
f5818d2f AJ |
11171 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
11172 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
daa2886c | 11173 | cat >>confdefs.h <<_ACEOF |
f5818d2f | 11174 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
daa2886c | 11175 | _ACEOF |
7e6ae4ba | 11176 | |
e2991ea7 AJ |
11177 | fi |
11178 | done | |
11179 | ||
daa2886c AJ |
11180 | |
11181 | ||
11182 | ||
11183 | ||
11184 | ||
11185 | ||
11186 | ||
11187 | ||
11188 | ||
11189 | ||
11190 | ||
11191 | ||
11192 | ||
11193 | ||
11194 | ||
11195 | ||
11196 | ||
11197 | ||
11198 | ||
11199 | ||
11200 | ||
11201 | ||
11202 | ||
11203 | ||
11204 | ||
11205 | ||
11206 | ||
11207 | ||
11208 | ||
11209 | ||
11210 | ||
11211 | ||
11212 | ||
11213 | ||
11214 | ||
11215 | ||
11216 | ||
11217 | ||
11218 | ||
11219 | ||
11220 | ||
11221 | ||
11222 | ||
11223 | ||
11224 | ||
11225 | ||
11226 | ||
11227 | ||
11228 | ||
11229 | ||
11230 | ||
11231 | ||
11232 | ||
11233 | ||
11234 | ||
11235 | ||
11236 | ||
11237 | ||
e7c6d17b RZ |
11238 | |
11239 | ||
11240 | ||
daa2886c | 11241 | |
0314a65a | 11242 | |
c3e06df9 AJ |
11243 | |
11244 | ||
127ec92b | 11245 | |
daa2886c AJ |
11246 | |
11247 | ||
f5818d2f | 11248 | for ac_header in \ |
96336324 | 11249 | arpa/inet.h \ |
2487ccea | 11250 | arpa/nameser.h \ |
81ecb52c | 11251 | direct.h \ |
2487ccea AJ |
11252 | elf.h \ |
11253 | float.h \ | |
2e8e2334 | 11254 | ieeefp.h \ |
81ecb52c | 11255 | io.h \ |
2487ccea | 11256 | libio.h \ |
01f78aaa | 11257 | libutil.h \ |
96336324 | 11258 | link.h \ |
2487ccea | 11259 | linux/cdrom.h \ |
e7c6d17b | 11260 | linux/hdreg.h \ |
c9b3b2e8 | 11261 | linux/input.h \ |
028e9a17 | 11262 | linux/joystick.h \ |
e7c6d17b | 11263 | linux/major.h \ |
0314a65a | 11264 | linux/param.h \ |
533e7eea | 11265 | linux/serial.h \ |
2487ccea | 11266 | linux/ucdrom.h \ |
2487ccea | 11267 | net/if.h \ |
5d1a6385 | 11268 | netdb.h \ |
2487ccea | 11269 | netinet/in.h \ |
7a4e5997 PS |
11270 | netinet/in_systm.h \ |
11271 | netinet/ip.h \ | |
96336324 | 11272 | netinet/tcp.h \ |
2d7be870 | 11273 | pty.h \ |
2487ccea | 11274 | resolv.h \ |
96336324 | 11275 | sched.h \ |
e7c6d17b | 11276 | scsi/sg.h \ |
96336324 | 11277 | socket.h \ |
eda758eb | 11278 | stdint.h \ |
2487ccea AJ |
11279 | strings.h \ |
11280 | sys/cdio.h \ | |
13277480 | 11281 | sys/errno.h \ |
2487ccea AJ |
11282 | sys/file.h \ |
11283 | sys/filio.h \ | |
6098399a | 11284 | sys/inttypes.h \ |
c3e06df9 | 11285 | sys/ioctl.h \ |
96336324 | 11286 | sys/ipc.h \ |
624cbd7c | 11287 | sys/link.h \ |
2487ccea | 11288 | sys/lwp.h \ |
13277480 | 11289 | sys/mman.h \ |
2487ccea AJ |
11290 | sys/modem.h \ |
11291 | sys/mount.h \ | |
96336324 | 11292 | sys/msg.h \ |
2487ccea | 11293 | sys/param.h \ |
2af03e45 | 11294 | sys/ptrace.h \ |
8a1bdb30 | 11295 | sys/reg.h \ |
96336324 | 11296 | sys/shm.h \ |
e7c6d17b | 11297 | sys/signal.h \ |
96336324 | 11298 | sys/socket.h \ |
2487ccea AJ |
11299 | sys/sockio.h \ |
11300 | sys/statfs.h \ | |
11301 | sys/strtio.h \ | |
11302 | sys/syscall.h \ | |
127ec92b | 11303 | sys/sysctl.h \ |
81ecb52c | 11304 | sys/time.h \ |
2af03e45 | 11305 | sys/user.h \ |
96336324 PS |
11306 | sys/v86.h \ |
11307 | sys/v86intr.h \ | |
2487ccea | 11308 | sys/vfs.h \ |
96336324 | 11309 | sys/vm86.h \ |
e7c6d17b | 11310 | sys/wait.h \ |
2487ccea | 11311 | syscall.h \ |
c3e06df9 | 11312 | termios.h \ |
7a4e5997 | 11313 | ucontext.h \ |
81ecb52c | 11314 | unistd.h \ |
2487ccea | 11315 | |
02e90087 | 11316 | do |
f5818d2f | 11317 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
daa2886c AJ |
11318 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
11319 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
f5818d2f AJ |
11320 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
11321 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11322 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
daa2886c AJ |
11323 | fi |
11324 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
11325 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
f5818d2f | 11326 | else |
daa2886c AJ |
11327 | # Is the header compilable? |
11328 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11329 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
11330 | cat >conftest.$ac_ext <<_ACEOF | |
11331 | #line $LINENO "configure" | |
11332 | #include "confdefs.h" | |
11333 | $ac_includes_default | |
11334 | #include <$ac_header> | |
11335 | _ACEOF | |
11336 | rm -f conftest.$ac_objext | |
11337 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11338 | (eval $ac_compile) 2>&5 | |
11339 | ac_status=$? | |
11340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11341 | (exit $ac_status); } && | |
11342 | { ac_try='test -s conftest.$ac_objext' | |
11343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11344 | (eval $ac_try) 2>&5 | |
11345 | ac_status=$? | |
11346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11347 | (exit $ac_status); }; }; then | |
11348 | ac_header_compiler=yes | |
11349 | else | |
11350 | echo "$as_me: failed program was:" >&5 | |
11351 | cat conftest.$ac_ext >&5 | |
11352 | ac_header_compiler=no | |
11353 | fi | |
11354 | rm -f conftest.$ac_objext conftest.$ac_ext | |
11355 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11356 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
11357 | ||
11358 | # Is the header present? | |
11359 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11360 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
11361 | cat >conftest.$ac_ext <<_ACEOF | |
11362 | #line $LINENO "configure" | |
02e90087 | 11363 | #include "confdefs.h" |
f5818d2f AJ |
11364 | #include <$ac_header> |
11365 | _ACEOF | |
daa2886c | 11366 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
f5818d2f AJ |
11367 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
11368 | ac_status=$? | |
11369 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
11370 | rm -f conftest.er1 | |
11371 | cat conftest.err >&5 | |
daa2886c | 11372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
11373 | (exit $ac_status); } >/dev/null; then |
11374 | if test -s conftest.err; then | |
11375 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11376 | else | |
11377 | ac_cpp_err= | |
11378 | fi | |
11379 | else | |
11380 | ac_cpp_err=yes | |
11381 | fi | |
11382 | if test -z "$ac_cpp_err"; then | |
daa2886c | 11383 | ac_header_preproc=yes |
f5818d2f AJ |
11384 | else |
11385 | echo "$as_me: failed program was:" >&5 | |
02e90087 | 11386 | cat conftest.$ac_ext >&5 |
daa2886c | 11387 | ac_header_preproc=no |
02e90087 | 11388 | fi |
f5818d2f | 11389 | rm -f conftest.err conftest.$ac_ext |
daa2886c AJ |
11390 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11391 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
11392 | ||
11393 | # So? What about this header? | |
11394 | case $ac_header_compiler:$ac_header_preproc in | |
11395 | yes:no ) | |
11396 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11397 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11398 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11399 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
11400 | no:yes ) | |
11401 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11402 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11403 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11404 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11405 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11406 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
11407 | esac | |
11408 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11409 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11410 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11411 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11412 | else | |
11413 | eval "$as_ac_Header=$ac_header_preproc" | |
02e90087 | 11414 | fi |
daa2886c | 11415 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
f5818d2f | 11416 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
daa2886c AJ |
11417 | |
11418 | fi | |
f5818d2f | 11419 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
daa2886c | 11420 | cat >>confdefs.h <<_ACEOF |
f5818d2f | 11421 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
daa2886c | 11422 | _ACEOF |
f5818d2f | 11423 | |
02e90087 | 11424 | fi |
daa2886c | 11425 | |
02e90087 AJ |
11426 | done |
11427 | ||
daa2886c | 11428 | echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 |
f5818d2f AJ |
11429 | echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6 |
11430 | if test "${ac_cv_header_stat_broken+set}" = set; then | |
11431 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
e2991ea7 | 11432 | else |
f5818d2f | 11433 | cat >conftest.$ac_ext <<_ACEOF |
daa2886c | 11434 | #line $LINENO "configure" |
e2991ea7 AJ |
11435 | #include "confdefs.h" |
11436 | #include <sys/types.h> | |
11437 | #include <sys/stat.h> | |
11438 | ||
11439 | #if defined(S_ISBLK) && defined(S_IFDIR) | |
11440 | # if S_ISBLK (S_IFDIR) | |
11441 | You lose. | |
11442 | # endif | |
11443 | #endif | |
11444 | ||
11445 | #if defined(S_ISBLK) && defined(S_IFCHR) | |
11446 | # if S_ISBLK (S_IFCHR) | |
11447 | You lose. | |
11448 | # endif | |
11449 | #endif | |
11450 | ||
11451 | #if defined(S_ISLNK) && defined(S_IFREG) | |
11452 | # if S_ISLNK (S_IFREG) | |
11453 | You lose. | |
11454 | # endif | |
11455 | #endif | |
11456 | ||
11457 | #if defined(S_ISSOCK) && defined(S_IFREG) | |
11458 | # if S_ISSOCK (S_IFREG) | |
11459 | You lose. | |
11460 | # endif | |
11461 | #endif | |
11462 | ||
f5818d2f | 11463 | _ACEOF |
e2991ea7 AJ |
11464 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
11465 | egrep "You lose" >/dev/null 2>&1; then | |
e2991ea7 AJ |
11466 | ac_cv_header_stat_broken=yes |
11467 | else | |
e2991ea7 AJ |
11468 | ac_cv_header_stat_broken=no |
11469 | fi | |
11470 | rm -f conftest* | |
11471 | ||
11472 | fi | |
daa2886c | 11473 | echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 |
f5818d2f | 11474 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6 |
e2991ea7 | 11475 | if test $ac_cv_header_stat_broken = yes; then |
f5818d2f | 11476 | |
daa2886c | 11477 | cat >>confdefs.h <<\_ACEOF |
e2991ea7 | 11478 | #define STAT_MACROS_BROKEN 1 |
daa2886c | 11479 | _ACEOF |
e2991ea7 AJ |
11480 | |
11481 | fi | |
11482 | ||
daa2886c AJ |
11483 | |
11484 | ||
11485 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
f5818d2f AJ |
11486 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
11487 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
11488 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11489 | else | |
11490 | ac_cv_prog_cc_stdc=no | |
11491 | ac_save_CC=$CC | |
11492 | cat >conftest.$ac_ext <<_ACEOF | |
daa2886c | 11493 | #line $LINENO "configure" |
f5818d2f AJ |
11494 | #include "confdefs.h" |
11495 | #include <stdarg.h> | |
11496 | #include <stdio.h> | |
11497 | #include <sys/types.h> | |
11498 | #include <sys/stat.h> | |
11499 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
11500 | struct buf { int x; }; | |
11501 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
11502 | static char *e (p, i) | |
11503 | char **p; | |
11504 | int i; | |
11505 | { | |
11506 | return p[i]; | |
11507 | } | |
11508 | static char *f (char * (*g) (char **, int), char **p, ...) | |
11509 | { | |
11510 | char *s; | |
11511 | va_list v; | |
11512 | va_start (v,p); | |
11513 | s = g (p, va_arg (v,int)); | |
11514 | va_end (v); | |
11515 | return s; | |
11516 | } | |
11517 | int test (int i, double x); | |
11518 | struct s1 {int (*f) (int a);}; | |
11519 | struct s2 {int (*f) (double a);}; | |
11520 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
11521 | int argc; | |
11522 | char **argv; | |
daa2886c AJ |
11523 | #ifdef F77_DUMMY_MAIN |
11524 | # ifdef __cplusplus | |
11525 | extern "C" | |
11526 | # endif | |
11527 | int F77_DUMMY_MAIN() { return 1; } | |
11528 | #endif | |
f5818d2f AJ |
11529 | int |
11530 | main () | |
11531 | { | |
11532 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
11533 | ; | |
11534 | return 0; | |
11535 | } | |
11536 | _ACEOF | |
11537 | # Don't try gcc -ansi; that turns off useful extensions and | |
11538 | # breaks some systems' header files. | |
11539 | # AIX -qlanglvl=ansi | |
11540 | # Ultrix and OSF/1 -std1 | |
11541 | # HP-UX 10.20 and later -Ae | |
11542 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
11543 | # SVR4 -Xc -D__EXTENSIONS__ | |
11544 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
11545 | do | |
11546 | CC="$ac_save_CC $ac_arg" | |
11547 | rm -f conftest.$ac_objext | |
daa2886c | 11548 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
f5818d2f AJ |
11549 | (eval $ac_compile) 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_objext' | |
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 AJ |
11558 | (exit $ac_status); }; }; then |
11559 | ac_cv_prog_cc_stdc=$ac_arg | |
11560 | break | |
11561 | else | |
11562 | echo "$as_me: failed program was:" >&5 | |
11563 | cat conftest.$ac_ext >&5 | |
11564 | fi | |
11565 | rm -f conftest.$ac_objext | |
11566 | done | |
11567 | rm -f conftest.$ac_ext conftest.$ac_objext | |
11568 | CC=$ac_save_CC | |
11569 | ||
11570 | fi | |
2487ccea | 11571 | |
f5818d2f AJ |
11572 | case "x$ac_cv_prog_cc_stdc" in |
11573 | x|xno) | |
daa2886c | 11574 | echo "$as_me:$LINENO: result: none needed" >&5 |
f5818d2f AJ |
11575 | echo "${ECHO_T}none needed" >&6 ;; |
11576 | *) | |
daa2886c | 11577 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
f5818d2f AJ |
11578 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
11579 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
11580 | esac | |
2487ccea | 11581 | |
daa2886c | 11582 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
f5818d2f AJ |
11583 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
11584 | if test "${ac_cv_c_const+set}" = set; then | |
11585 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
e2991ea7 | 11586 | else |
f5818d2f | 11587 | cat >conftest.$ac_ext <<_ACEOF |
daa2886c | 11588 | #line $LINENO "configure" |
e2991ea7 AJ |
11589 | #include "confdefs.h" |
11590 | ||
daa2886c AJ |
11591 | #ifdef F77_DUMMY_MAIN |
11592 | # ifdef __cplusplus | |
11593 | extern "C" | |
11594 | # endif | |
11595 | int F77_DUMMY_MAIN() { return 1; } | |
11596 | #endif | |
f5818d2f AJ |
11597 | int |
11598 | main () | |
11599 | { | |
11600 | /* FIXME: Include the comments suggested by Paul. */ | |
11601 | #ifndef __cplusplus | |
11602 | /* Ultrix mips cc rejects this. */ | |
11603 | typedef int charset[2]; | |
11604 | const charset x; | |
11605 | /* SunOS 4.1.1 cc rejects this. */ | |
11606 | char const *const *ccp; | |
11607 | char **p; | |
11608 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
11609 | struct point {int x, y;}; | |
11610 | static struct point const zero = {0,0}; | |
11611 | /* AIX XL C 1.02.0.0 rejects this. | |
11612 | It does not let you subtract one const X* pointer from another in | |
11613 | an arm of an if-expression whose if-part is not a constant | |
11614 | expression */ | |
11615 | const char *g = "string"; | |
11616 | ccp = &g + (g ? g-g : 0); | |
11617 | /* HPUX 7.0 cc rejects these. */ | |
11618 | ++ccp; | |
11619 | p = (char**) ccp; | |
11620 | ccp = (char const *const *) p; | |
11621 | { /* SCO 3.2v4 cc rejects this. */ | |
11622 | char *t; | |
11623 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
11624 | ||
11625 | *t++ = 0; | |
11626 | } | |
11627 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
11628 | int x[] = {25, 17}; | |
11629 | const int *foo = &x[0]; | |
11630 | ++foo; | |
11631 | } | |
11632 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
11633 | typedef const int *iptr; | |
11634 | iptr p = 0; | |
11635 | ++p; | |
11636 | } | |
11637 | { /* AIX XL C 1.02.0.0 rejects this saying | |
11638 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
11639 | struct s { int j; const int *ap[3]; }; | |
11640 | struct s *b; b->j = 5; | |
11641 | } | |
11642 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
11643 | const int foo = 10; | |
11644 | } | |
11645 | #endif | |
e2991ea7 | 11646 | |
f5818d2f AJ |
11647 | ; |
11648 | return 0; | |
e2991ea7 | 11649 | } |
f5818d2f AJ |
11650 | _ACEOF |
11651 | rm -f conftest.$ac_objext | |
daa2886c | 11652 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
f5818d2f AJ |
11653 | (eval $ac_compile) 2>&5 |
11654 | ac_status=$? | |
daa2886c | 11655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
11656 | (exit $ac_status); } && |
11657 | { ac_try='test -s conftest.$ac_objext' | |
daa2886c | 11658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
11659 | (eval $ac_try) 2>&5 |
11660 | ac_status=$? | |
daa2886c | 11661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 11662 | (exit $ac_status); }; }; then |
e2991ea7 AJ |
11663 | ac_cv_c_const=yes |
11664 | else | |
f5818d2f AJ |
11665 | echo "$as_me: failed program was:" >&5 |
11666 | cat conftest.$ac_ext >&5 | |
11667 | ac_cv_c_const=no | |
e2991ea7 | 11668 | fi |
f5818d2f | 11669 | rm -f conftest.$ac_objext conftest.$ac_ext |
e2991ea7 | 11670 | fi |
daa2886c | 11671 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
f5818d2f | 11672 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
e2991ea7 | 11673 | if test $ac_cv_c_const = no; then |
f5818d2f | 11674 | |
daa2886c | 11675 | cat >>confdefs.h <<\_ACEOF |
f5818d2f | 11676 | #define const |
daa2886c | 11677 | _ACEOF |
e2991ea7 AJ |
11678 | |
11679 | fi | |
11680 | ||
daa2886c | 11681 | echo "$as_me:$LINENO: checking for inline" >&5 |
f5818d2f AJ |
11682 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 |
11683 | if test "${ac_cv_c_inline+set}" = set; then | |
11684 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1a8bbd7c MM |
11685 | else |
11686 | ac_cv_c_inline=no | |
11687 | for ac_kw in inline __inline__ __inline; do | |
f5818d2f | 11688 | cat >conftest.$ac_ext <<_ACEOF |
daa2886c | 11689 | #line $LINENO "configure" |
1a8bbd7c | 11690 | #include "confdefs.h" |
f5818d2f AJ |
11691 | #ifndef __cplusplus |
11692 | static $ac_kw int static_foo () {return 0; } | |
11693 | $ac_kw int foo () {return 0; } | |
11694 | #endif | |
1a8bbd7c | 11695 | |
f5818d2f AJ |
11696 | _ACEOF |
11697 | rm -f conftest.$ac_objext | |
daa2886c | 11698 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
f5818d2f AJ |
11699 | (eval $ac_compile) 2>&5 |
11700 | ac_status=$? | |
daa2886c | 11701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
11702 | (exit $ac_status); } && |
11703 | { ac_try='test -s conftest.$ac_objext' | |
daa2886c | 11704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
11705 | (eval $ac_try) 2>&5 |
11706 | ac_status=$? | |
daa2886c | 11707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 11708 | (exit $ac_status); }; }; then |
1a8bbd7c MM |
11709 | ac_cv_c_inline=$ac_kw; break |
11710 | else | |
f5818d2f AJ |
11711 | echo "$as_me: failed program was:" >&5 |
11712 | cat conftest.$ac_ext >&5 | |
1a8bbd7c | 11713 | fi |
f5818d2f | 11714 | rm -f conftest.$ac_objext conftest.$ac_ext |
1a8bbd7c MM |
11715 | done |
11716 | ||
11717 | fi | |
daa2886c | 11718 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
f5818d2f AJ |
11719 | echo "${ECHO_T}$ac_cv_c_inline" >&6 |
11720 | case $ac_cv_c_inline in | |
1a8bbd7c | 11721 | inline | yes) ;; |
f5818d2f | 11722 | no) |
daa2886c | 11723 | cat >>confdefs.h <<\_ACEOF |
f5818d2f | 11724 | #define inline |
daa2886c | 11725 | _ACEOF |
1a8bbd7c | 11726 | ;; |
daa2886c | 11727 | *) cat >>confdefs.h <<_ACEOF |
1a8bbd7c | 11728 | #define inline $ac_cv_c_inline |
daa2886c | 11729 | _ACEOF |
1a8bbd7c MM |
11730 | ;; |
11731 | esac | |
11732 | ||
daa2886c | 11733 | echo "$as_me:$LINENO: checking for mode_t" >&5 |
f5818d2f AJ |
11734 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 |
11735 | if test "${ac_cv_type_mode_t+set}" = set; then | |
11736 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c7c217b3 | 11737 | else |
f5818d2f | 11738 | cat >conftest.$ac_ext <<_ACEOF |
daa2886c | 11739 | #line $LINENO "configure" |
c7c217b3 | 11740 | #include "confdefs.h" |
f5818d2f | 11741 | $ac_includes_default |
daa2886c AJ |
11742 | #ifdef F77_DUMMY_MAIN |
11743 | # ifdef __cplusplus | |
11744 | extern "C" | |
11745 | # endif | |
11746 | int F77_DUMMY_MAIN() { return 1; } | |
11747 | #endif | |
f5818d2f AJ |
11748 | int |
11749 | main () | |
c7c217b3 | 11750 | { |
f5818d2f AJ |
11751 | if ((mode_t *) 0) |
11752 | return 0; | |
11753 | if (sizeof (mode_t)) | |
11754 | return 0; | |
11755 | ; | |
11756 | return 0; | |
c7c217b3 | 11757 | } |
f5818d2f AJ |
11758 | _ACEOF |
11759 | rm -f conftest.$ac_objext | |
daa2886c | 11760 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
f5818d2f AJ |
11761 | (eval $ac_compile) 2>&5 |
11762 | ac_status=$? | |
daa2886c | 11763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
11764 | (exit $ac_status); } && |
11765 | { ac_try='test -s conftest.$ac_objext' | |
daa2886c | 11766 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
11767 | (eval $ac_try) 2>&5 |
11768 | ac_status=$? | |
daa2886c | 11769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
11770 | (exit $ac_status); }; }; then |
11771 | ac_cv_type_mode_t=yes | |
11772 | else | |
11773 | echo "$as_me: failed program was:" >&5 | |
11774 | cat conftest.$ac_ext >&5 | |
11775 | ac_cv_type_mode_t=no | |
11776 | fi | |
11777 | rm -f conftest.$ac_objext conftest.$ac_ext | |
11778 | fi | |
daa2886c | 11779 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
f5818d2f AJ |
11780 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 |
11781 | if test $ac_cv_type_mode_t = yes; then | |
f5818d2f | 11782 | |
daa2886c | 11783 | cat >>confdefs.h <<_ACEOF |
5769d1de | 11784 | #define HAVE_MODE_T 1 |
daa2886c | 11785 | _ACEOF |
f5818d2f | 11786 | |
f5818d2f | 11787 | |
5769d1de | 11788 | fi |
daa2886c | 11789 | echo "$as_me:$LINENO: checking for off_t" >&5 |
f5818d2f AJ |
11790 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 |
11791 | if test "${ac_cv_type_off_t+set}" = set; then | |
11792 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c7c217b3 | 11793 | else |
f5818d2f | 11794 | cat >conftest.$ac_ext <<_ACEOF |
daa2886c | 11795 | #line $LINENO "configure" |
f5818d2f AJ |
11796 | #include "confdefs.h" |
11797 | $ac_includes_default | |
daa2886c AJ |
11798 | #ifdef F77_DUMMY_MAIN |
11799 | # ifdef __cplusplus | |
11800 | extern "C" | |
11801 | # endif | |
11802 | int F77_DUMMY_MAIN() { return 1; } | |
11803 | #endif | |
f5818d2f AJ |
11804 | int |
11805 | main () | |
11806 | { | |
11807 | if ((off_t *) 0) | |
11808 | return 0; | |
11809 | if (sizeof (off_t)) | |
11810 | return 0; | |
11811 | ; | |
11812 | return 0; | |
11813 | } | |
11814 | _ACEOF | |
11815 | rm -f conftest.$ac_objext | |
daa2886c | 11816 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
f5818d2f AJ |
11817 | (eval $ac_compile) 2>&5 |
11818 | ac_status=$? | |
daa2886c | 11819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
11820 | (exit $ac_status); } && |
11821 | { ac_try='test -s conftest.$ac_objext' | |
daa2886c | 11822 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
11823 | (eval $ac_try) 2>&5 |
11824 | ac_status=$? | |
daa2886c | 11825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
11826 | (exit $ac_status); }; }; then |
11827 | ac_cv_type_off_t=yes | |
11828 | else | |
11829 | echo "$as_me: failed program was:" >&5 | |
11830 | cat conftest.$ac_ext >&5 | |
11831 | ac_cv_type_off_t=no | |
11832 | fi | |
11833 | rm -f conftest.$ac_objext conftest.$ac_ext | |
11834 | fi | |
daa2886c | 11835 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
f5818d2f AJ |
11836 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 |
11837 | if test $ac_cv_type_off_t = yes; then | |
f5818d2f | 11838 | |
daa2886c | 11839 | cat >>confdefs.h <<_ACEOF |
5769d1de | 11840 | #define HAVE_OFF_T 1 |
daa2886c | 11841 | _ACEOF |
f5818d2f | 11842 | |
f5818d2f | 11843 | |
5769d1de | 11844 | fi |
daa2886c | 11845 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
f5818d2f AJ |
11846 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
11847 | if test "${ac_cv_type_pid_t+set}" = set; then | |
11848 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11849 | else | |
11850 | cat >conftest.$ac_ext <<_ACEOF | |
daa2886c | 11851 | #line $LINENO "configure" |
f5818d2f AJ |
11852 | #include "confdefs.h" |
11853 | $ac_includes_default | |
daa2886c AJ |
11854 | #ifdef F77_DUMMY_MAIN |
11855 | # ifdef __cplusplus | |
11856 | extern "C" | |
11857 | # endif | |
11858 | int F77_DUMMY_MAIN() { return 1; } | |
11859 | #endif | |
f5818d2f AJ |
11860 | int |
11861 | main () | |
11862 | { | |
11863 | if ((pid_t *) 0) | |
11864 | return 0; | |
11865 | if (sizeof (pid_t)) | |
11866 | return 0; | |
11867 | ; | |
11868 | return 0; | |
11869 | } | |
11870 | _ACEOF | |
11871 | rm -f conftest.$ac_objext | |
daa2886c | 11872 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
f5818d2f AJ |
11873 | (eval $ac_compile) 2>&5 |
11874 | ac_status=$? | |
daa2886c | 11875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
11876 | (exit $ac_status); } && |
11877 | { ac_try='test -s conftest.$ac_objext' | |
daa2886c | 11878 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
11879 | (eval $ac_try) 2>&5 |
11880 | ac_status=$? | |
daa2886c | 11881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
11882 | (exit $ac_status); }; }; then |
11883 | ac_cv_type_pid_t=yes | |
11884 | else | |
11885 | echo "$as_me: failed program was:" >&5 | |
11886 | cat conftest.$ac_ext >&5 | |
11887 | ac_cv_type_pid_t=no | |
11888 | fi | |
11889 | rm -f conftest.$ac_objext conftest.$ac_ext | |
11890 | fi | |
daa2886c | 11891 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
f5818d2f AJ |
11892 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
11893 | if test $ac_cv_type_pid_t = yes; then | |
f5818d2f | 11894 | |
daa2886c | 11895 | cat >>confdefs.h <<_ACEOF |
5769d1de | 11896 | #define HAVE_PID_T 1 |
daa2886c | 11897 | _ACEOF |
f5818d2f | 11898 | |
c7c217b3 | 11899 | |
5769d1de | 11900 | fi |
daa2886c | 11901 | echo "$as_me:$LINENO: checking for size_t" >&5 |
f5818d2f AJ |
11902 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
11903 | if test "${ac_cv_type_size_t+set}" = set; then | |
11904 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11905 | else | |
11906 | cat >conftest.$ac_ext <<_ACEOF | |
daa2886c | 11907 | #line $LINENO "configure" |
f5818d2f AJ |
11908 | #include "confdefs.h" |
11909 | $ac_includes_default | |
daa2886c AJ |
11910 | #ifdef F77_DUMMY_MAIN |
11911 | # ifdef __cplusplus | |
11912 | extern "C" | |
11913 | # endif | |
11914 | int F77_DUMMY_MAIN() { return 1; } | |
11915 | #endif | |
f5818d2f AJ |
11916 | int |
11917 | main () | |
11918 | { | |
11919 | if ((size_t *) 0) | |
11920 | return 0; | |
11921 | if (sizeof (size_t)) | |
11922 | return 0; | |
11923 | ; | |
11924 | return 0; | |
11925 | } | |
11926 | _ACEOF | |
11927 | rm -f conftest.$ac_objext | |
daa2886c | 11928 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
f5818d2f AJ |
11929 | (eval $ac_compile) 2>&5 |
11930 | ac_status=$? | |
daa2886c | 11931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
11932 | (exit $ac_status); } && |
11933 | { ac_try='test -s conftest.$ac_objext' | |
daa2886c | 11934 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
11935 | (eval $ac_try) 2>&5 |
11936 | ac_status=$? | |
daa2886c | 11937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
11938 | (exit $ac_status); }; }; then |
11939 | ac_cv_type_size_t=yes | |
11940 | else | |
11941 | echo "$as_me: failed program was:" >&5 | |
11942 | cat conftest.$ac_ext >&5 | |
11943 | ac_cv_type_size_t=no | |
c7c217b3 | 11944 | fi |
f5818d2f AJ |
11945 | rm -f conftest.$ac_objext conftest.$ac_ext |
11946 | fi | |
daa2886c | 11947 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
f5818d2f AJ |
11948 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
11949 | if test $ac_cv_type_size_t = yes; then | |
5769d1de AJ |
11950 | |
11951 | cat >>confdefs.h <<_ACEOF | |
11952 | #define HAVE_SIZE_T 1 | |
11953 | _ACEOF | |
11954 | ||
11955 | ||
11956 | fi | |
11957 | echo "$as_me:$LINENO: checking for ssize_t" >&5 | |
11958 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 | |
11959 | if test "${ac_cv_type_ssize_t+set}" = set; then | |
11960 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11961 | else | |
11962 | cat >conftest.$ac_ext <<_ACEOF | |
11963 | #line $LINENO "configure" | |
11964 | #include "confdefs.h" | |
11965 | $ac_includes_default | |
11966 | #ifdef F77_DUMMY_MAIN | |
11967 | # ifdef __cplusplus | |
11968 | extern "C" | |
11969 | # endif | |
11970 | int F77_DUMMY_MAIN() { return 1; } | |
11971 | #endif | |
11972 | int | |
11973 | main () | |
11974 | { | |
11975 | if ((ssize_t *) 0) | |
11976 | return 0; | |
11977 | if (sizeof (ssize_t)) | |
11978 | return 0; | |
11979 | ; | |
11980 | return 0; | |
11981 | } | |
11982 | _ACEOF | |
11983 | rm -f conftest.$ac_objext | |
11984 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11985 | (eval $ac_compile) 2>&5 | |
11986 | ac_status=$? | |
11987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11988 | (exit $ac_status); } && | |
11989 | { ac_try='test -s conftest.$ac_objext' | |
11990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11991 | (eval $ac_try) 2>&5 | |
11992 | ac_status=$? | |
11993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11994 | (exit $ac_status); }; }; then | |
11995 | ac_cv_type_ssize_t=yes | |
f5818d2f | 11996 | else |
5769d1de AJ |
11997 | echo "$as_me: failed program was:" >&5 |
11998 | cat conftest.$ac_ext >&5 | |
11999 | ac_cv_type_ssize_t=no | |
12000 | fi | |
12001 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12002 | fi | |
12003 | echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 | |
12004 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6 | |
12005 | if test $ac_cv_type_ssize_t = yes; then | |
f5818d2f | 12006 | |
daa2886c | 12007 | cat >>confdefs.h <<_ACEOF |
5769d1de | 12008 | #define HAVE_SSIZE_T 1 |
daa2886c | 12009 | _ACEOF |
c7c217b3 | 12010 | |
5769d1de | 12011 | |
f5818d2f | 12012 | fi |
c7c217b3 | 12013 | |
daa2886c | 12014 | echo "$as_me:$LINENO: checking for long long" >&5 |
f5818d2f AJ |
12015 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 |
12016 | if test "${ac_cv_type_long_long+set}" = set; then | |
12017 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12018 | else | |
12019 | cat >conftest.$ac_ext <<_ACEOF | |
daa2886c | 12020 | #line $LINENO "configure" |
f5818d2f AJ |
12021 | #include "confdefs.h" |
12022 | $ac_includes_default | |
daa2886c AJ |
12023 | #ifdef F77_DUMMY_MAIN |
12024 | # ifdef __cplusplus | |
12025 | extern "C" | |
12026 | # endif | |
12027 | int F77_DUMMY_MAIN() { return 1; } | |
12028 | #endif | |
f5818d2f AJ |
12029 | int |
12030 | main () | |
12031 | { | |
12032 | if ((long long *) 0) | |
12033 | return 0; | |
12034 | if (sizeof (long long)) | |
12035 | return 0; | |
12036 | ; | |
12037 | return 0; | |
12038 | } | |
12039 | _ACEOF | |
12040 | rm -f conftest.$ac_objext | |
daa2886c | 12041 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
f5818d2f AJ |
12042 | (eval $ac_compile) 2>&5 |
12043 | ac_status=$? | |
daa2886c | 12044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
12045 | (exit $ac_status); } && |
12046 | { ac_try='test -s conftest.$ac_objext' | |
daa2886c | 12047 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
12048 | (eval $ac_try) 2>&5 |
12049 | ac_status=$? | |
daa2886c | 12050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
12051 | (exit $ac_status); }; }; then |
12052 | ac_cv_type_long_long=yes | |
12053 | else | |
12054 | echo "$as_me: failed program was:" >&5 | |
12055 | cat conftest.$ac_ext >&5 | |
12056 | ac_cv_type_long_long=no | |
12057 | fi | |
12058 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12059 | fi | |
daa2886c | 12060 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
f5818d2f AJ |
12061 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 |
12062 | ||
daa2886c | 12063 | echo "$as_me:$LINENO: checking size of long long" >&5 |
f5818d2f AJ |
12064 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 |
12065 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
12066 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12067 | else | |
12068 | if test "$ac_cv_type_long_long" = yes; then | |
daa2886c AJ |
12069 | # The cast to unsigned long works around a bug in the HP C Compiler |
12070 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
12071 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12072 | # This bug is HP SR number 8606223364. | |
f5818d2f AJ |
12073 | if test "$cross_compiling" = yes; then |
12074 | # Depending upon the size, compute the lo and hi bounds. | |
12075 | cat >conftest.$ac_ext <<_ACEOF | |
daa2886c | 12076 | #line $LINENO "configure" |
f5818d2f AJ |
12077 | #include "confdefs.h" |
12078 | $ac_includes_default | |
daa2886c AJ |
12079 | #ifdef F77_DUMMY_MAIN |
12080 | # ifdef __cplusplus | |
12081 | extern "C" | |
12082 | # endif | |
12083 | int F77_DUMMY_MAIN() { return 1; } | |
12084 | #endif | |
f5818d2f AJ |
12085 | int |
12086 | main () | |
12087 | { | |
daa2886c AJ |
12088 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; |
12089 | test_array [0] = 0 | |
12090 | ||
f5818d2f AJ |
12091 | ; |
12092 | return 0; | |
12093 | } | |
12094 | _ACEOF | |
12095 | rm -f conftest.$ac_objext | |
daa2886c | 12096 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
f5818d2f AJ |
12097 | (eval $ac_compile) 2>&5 |
12098 | ac_status=$? | |
daa2886c | 12099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
12100 | (exit $ac_status); } && |
12101 | { ac_try='test -s conftest.$ac_objext' | |
daa2886c | 12102 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
12103 | (eval $ac_try) 2>&5 |
12104 | ac_status=$? | |
daa2886c | 12105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
12106 | (exit $ac_status); }; }; then |
12107 | ac_lo=0 ac_mid=0 | |
12108 | while :; do | |
12109 | cat >conftest.$ac_ext <<_ACEOF | |
daa2886c | 12110 | #line $LINENO "configure" |
f5818d2f AJ |
12111 | #include "confdefs.h" |
12112 | $ac_includes_default | |
daa2886c AJ |
12113 | #ifdef F77_DUMMY_MAIN |
12114 | # ifdef __cplusplus | |
12115 | extern "C" | |
12116 | # endif | |
12117 | int F77_DUMMY_MAIN() { return 1; } | |
12118 | #endif | |
f5818d2f AJ |
12119 | int |
12120 | main () | |
12121 | { | |
daa2886c AJ |
12122 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
12123 | test_array [0] = 0 | |
12124 | ||
f5818d2f AJ |
12125 | ; |
12126 | return 0; | |
12127 | } | |
12128 | _ACEOF | |
12129 | rm -f conftest.$ac_objext | |
daa2886c | 12130 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
f5818d2f AJ |
12131 | (eval $ac_compile) 2>&5 |
12132 | ac_status=$? | |
daa2886c | 12133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
12134 | (exit $ac_status); } && |
12135 | { ac_try='test -s conftest.$ac_objext' | |
daa2886c | 12136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
12137 | (eval $ac_try) 2>&5 |
12138 | ac_status=$? | |
daa2886c | 12139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
12140 | (exit $ac_status); }; }; then |
12141 | ac_hi=$ac_mid; break | |
12142 | else | |
12143 | echo "$as_me: failed program was:" >&5 | |
12144 | cat conftest.$ac_ext >&5 | |
daa2886c AJ |
12145 | ac_lo=`expr $ac_mid + 1` |
12146 | if test $ac_lo -le $ac_mid; then | |
12147 | ac_lo= ac_hi= | |
12148 | break | |
12149 | fi | |
12150 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
f5818d2f AJ |
12151 | fi |
12152 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12153 | done | |
12154 | else | |
12155 | echo "$as_me: failed program was:" >&5 | |
12156 | cat conftest.$ac_ext >&5 | |
daa2886c AJ |
12157 | cat >conftest.$ac_ext <<_ACEOF |
12158 | #line $LINENO "configure" | |
12159 | #include "confdefs.h" | |
12160 | $ac_includes_default | |
12161 | #ifdef F77_DUMMY_MAIN | |
12162 | # ifdef __cplusplus | |
12163 | extern "C" | |
12164 | # endif | |
12165 | int F77_DUMMY_MAIN() { return 1; } | |
12166 | #endif | |
12167 | int | |
12168 | main () | |
12169 | { | |
12170 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
12171 | test_array [0] = 0 | |
12172 | ||
12173 | ; | |
12174 | return 0; | |
12175 | } | |
12176 | _ACEOF | |
12177 | rm -f conftest.$ac_objext | |
12178 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12179 | (eval $ac_compile) 2>&5 | |
12180 | ac_status=$? | |
12181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12182 | (exit $ac_status); } && | |
12183 | { ac_try='test -s conftest.$ac_objext' | |
12184 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12185 | (eval $ac_try) 2>&5 | |
12186 | ac_status=$? | |
12187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12188 | (exit $ac_status); }; }; then | |
12189 | ac_hi=-1 ac_mid=-1 | |
f5818d2f AJ |
12190 | while :; do |
12191 | cat >conftest.$ac_ext <<_ACEOF | |
daa2886c | 12192 | #line $LINENO "configure" |
f5818d2f AJ |
12193 | #include "confdefs.h" |
12194 | $ac_includes_default | |
daa2886c AJ |
12195 | #ifdef F77_DUMMY_MAIN |
12196 | # ifdef __cplusplus | |
12197 | extern "C" | |
12198 | # endif | |
12199 | int F77_DUMMY_MAIN() { return 1; } | |
12200 | #endif | |
f5818d2f AJ |
12201 | int |
12202 | main () | |
12203 | { | |
daa2886c AJ |
12204 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; |
12205 | test_array [0] = 0 | |
12206 | ||
f5818d2f AJ |
12207 | ; |
12208 | return 0; | |
12209 | } | |
12210 | _ACEOF | |
12211 | rm -f conftest.$ac_objext | |
daa2886c | 12212 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
f5818d2f AJ |
12213 | (eval $ac_compile) 2>&5 |
12214 | ac_status=$? | |
daa2886c | 12215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
12216 | (exit $ac_status); } && |
12217 | { ac_try='test -s conftest.$ac_objext' | |
daa2886c | 12218 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
12219 | (eval $ac_try) 2>&5 |
12220 | ac_status=$? | |
daa2886c | 12221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
12222 | (exit $ac_status); }; }; then |
12223 | ac_lo=$ac_mid; break | |
12224 | else | |
12225 | echo "$as_me: failed program was:" >&5 | |
12226 | cat conftest.$ac_ext >&5 | |
daa2886c AJ |
12227 | ac_hi=`expr '(' $ac_mid ')' - 1` |
12228 | if test $ac_mid -le $ac_hi; then | |
12229 | ac_lo= ac_hi= | |
12230 | break | |
12231 | fi | |
12232 | ac_mid=`expr 2 '*' $ac_mid` | |
f5818d2f AJ |
12233 | fi |
12234 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12235 | done | |
daa2886c AJ |
12236 | else |
12237 | echo "$as_me: failed program was:" >&5 | |
12238 | cat conftest.$ac_ext >&5 | |
12239 | ac_lo= ac_hi= | |
12240 | fi | |
12241 | rm -f conftest.$ac_objext conftest.$ac_ext | |
f5818d2f AJ |
12242 | fi |
12243 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12244 | # Binary search between lo and hi bounds. | |
12245 | while test "x$ac_lo" != "x$ac_hi"; do | |
12246 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
12247 | cat >conftest.$ac_ext <<_ACEOF | |
daa2886c | 12248 | #line $LINENO "configure" |
f5818d2f AJ |
12249 | #include "confdefs.h" |
12250 | $ac_includes_default | |
daa2886c AJ |
12251 | #ifdef F77_DUMMY_MAIN |
12252 | # ifdef __cplusplus | |
12253 | extern "C" | |
12254 | # endif | |
12255 | int F77_DUMMY_MAIN() { return 1; } | |
12256 | #endif | |
f5818d2f AJ |
12257 | int |
12258 | main () | |
12259 | { | |
daa2886c AJ |
12260 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
12261 | test_array [0] = 0 | |
12262 | ||
f5818d2f AJ |
12263 | ; |
12264 | return 0; | |
12265 | } | |
12266 | _ACEOF | |
12267 | rm -f conftest.$ac_objext | |
daa2886c | 12268 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
f5818d2f AJ |
12269 | (eval $ac_compile) 2>&5 |
12270 | ac_status=$? | |
daa2886c | 12271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
12272 | (exit $ac_status); } && |
12273 | { ac_try='test -s conftest.$ac_objext' | |
daa2886c | 12274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
12275 | (eval $ac_try) 2>&5 |
12276 | ac_status=$? | |
daa2886c | 12277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
12278 | (exit $ac_status); }; }; then |
12279 | ac_hi=$ac_mid | |
12280 | else | |
12281 | echo "$as_me: failed program was:" >&5 | |
12282 | cat conftest.$ac_ext >&5 | |
daa2886c | 12283 | ac_lo=`expr '(' $ac_mid ')' + 1` |
f5818d2f AJ |
12284 | fi |
12285 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12286 | done | |
daa2886c AJ |
12287 | case $ac_lo in |
12288 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
12289 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5 | |
12290 | echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;} | |
12291 | { (exit 1); exit 1; }; } ;; | |
12292 | esac | |
f5818d2f AJ |
12293 | else |
12294 | if test "$cross_compiling" = yes; then | |
daa2886c | 12295 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
f5818d2f AJ |
12296 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
12297 | { (exit 1); exit 1; }; } | |
12298 | else | |
12299 | cat >conftest.$ac_ext <<_ACEOF | |
daa2886c | 12300 | #line $LINENO "configure" |
f5818d2f AJ |
12301 | #include "confdefs.h" |
12302 | $ac_includes_default | |
daa2886c AJ |
12303 | long longval () { return (long) (sizeof (long long)); } |
12304 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
12305 | #include <stdio.h> | |
12306 | #include <stdlib.h> | |
12307 | #ifdef F77_DUMMY_MAIN | |
12308 | # ifdef __cplusplus | |
12309 | extern "C" | |
12310 | # endif | |
12311 | int F77_DUMMY_MAIN() { return 1; } | |
12312 | #endif | |
f5818d2f AJ |
12313 | int |
12314 | main () | |
12315 | { | |
daa2886c AJ |
12316 | |
12317 | FILE *f = fopen ("conftest.val", "w"); | |
12318 | if (! f) | |
12319 | exit (1); | |
12320 | if (((long) (sizeof (long long))) < 0) | |
12321 | { | |
12322 | long i = longval (); | |
12323 | if (i != ((long) (sizeof (long long)))) | |
12324 | exit (1); | |
12325 | fprintf (f, "%ld\n", i); | |
12326 | } | |
12327 | else | |
12328 | { | |
12329 | unsigned long i = ulongval (); | |
12330 | if (i != ((long) (sizeof (long long)))) | |
12331 | exit (1); | |
12332 | fprintf (f, "%lu\n", i); | |
12333 | } | |
12334 | exit (ferror (f) || fclose (f) != 0); | |
12335 | ||
f5818d2f AJ |
12336 | ; |
12337 | return 0; | |
12338 | } | |
12339 | _ACEOF | |
12340 | rm -f conftest$ac_exeext | |
daa2886c | 12341 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
f5818d2f AJ |
12342 | (eval $ac_link) 2>&5 |
12343 | ac_status=$? | |
daa2886c | 12344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 12345 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
daa2886c | 12346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
12347 | (eval $ac_try) 2>&5 |
12348 | ac_status=$? | |
daa2886c | 12349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
12350 | (exit $ac_status); }; }; then |
12351 | ac_cv_sizeof_long_long=`cat conftest.val` | |
12352 | else | |
12353 | echo "$as_me: program exited with status $ac_status" >&5 | |
12354 | echo "$as_me: failed program was:" >&5 | |
12355 | cat conftest.$ac_ext >&5 | |
daa2886c AJ |
12356 | ( exit $ac_status ) |
12357 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5 | |
12358 | echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;} | |
12359 | { (exit 1); exit 1; }; } | |
f5818d2f AJ |
12360 | fi |
12361 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
12362 | fi | |
12363 | fi | |
12364 | rm -f conftest.val | |
12365 | else | |
12366 | ac_cv_sizeof_long_long=0 | |
12367 | fi | |
12368 | fi | |
daa2886c | 12369 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
f5818d2f | 12370 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 |
daa2886c | 12371 | cat >>confdefs.h <<_ACEOF |
f5818d2f | 12372 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
daa2886c AJ |
12373 | _ACEOF |
12374 | ||
12375 | ||
c7c217b3 | 12376 | |
daa2886c | 12377 | echo "$as_me:$LINENO: checking whether linux/input.h is for real" >&5 |
f5818d2f AJ |
12378 | echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6 |
12379 | if test "${wine_cv_linux_input_h+set}" = set; then | |
12380 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
74f2b4b2 | 12381 | else |
f5818d2f | 12382 | cat >conftest.$ac_ext <<_ACEOF |
daa2886c | 12383 | #line $LINENO "configure" |
74f2b4b2 MM |
12384 | #include "confdefs.h" |
12385 | ||
12386 | #include <linux/input.h> | |
f5818d2f | 12387 | |
daa2886c AJ |
12388 | #ifdef F77_DUMMY_MAIN |
12389 | # ifdef __cplusplus | |
12390 | extern "C" | |
12391 | # endif | |
12392 | int F77_DUMMY_MAIN() { return 1; } | |
12393 | #endif | |
f5818d2f AJ |
12394 | int |
12395 | main () | |
12396 | { | |
74f2b4b2 MM |
12397 | |
12398 | int foo = EVIOCGBIT(EV_ABS,42); | |
12399 | int bar = BTN_PINKIE; | |
12400 | int fortytwo = 42; | |
f5818d2f AJ |
12401 | |
12402 | ; | |
12403 | return 0; | |
12404 | } | |
12405 | _ACEOF | |
12406 | rm -f conftest.$ac_objext | |
daa2886c | 12407 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
f5818d2f AJ |
12408 | (eval $ac_compile) 2>&5 |
12409 | ac_status=$? | |
daa2886c | 12410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
12411 | (exit $ac_status); } && |
12412 | { ac_try='test -s conftest.$ac_objext' | |
daa2886c | 12413 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
12414 | (eval $ac_try) 2>&5 |
12415 | ac_status=$? | |
daa2886c | 12416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 12417 | (exit $ac_status); }; }; then |
74f2b4b2 MM |
12418 | wine_cv_linux_input_h=yes |
12419 | else | |
f5818d2f AJ |
12420 | echo "$as_me: failed program was:" >&5 |
12421 | cat conftest.$ac_ext >&5 | |
12422 | wine_cv_linux_input_h=no | |
74f2b4b2 | 12423 | fi |
f5818d2f | 12424 | rm -f conftest.$ac_objext conftest.$ac_ext |
74f2b4b2 | 12425 | |
f5818d2f | 12426 | fi |
daa2886c | 12427 | echo "$as_me:$LINENO: result: $wine_cv_linux_input_h" >&5 |
f5818d2f | 12428 | echo "${ECHO_T}$wine_cv_linux_input_h" >&6 |
74f2b4b2 MM |
12429 | if test "$wine_cv_linux_input_h" = "yes" |
12430 | then | |
f5818d2f | 12431 | |
daa2886c | 12432 | cat >>confdefs.h <<\_ACEOF |
74f2b4b2 | 12433 | #define HAVE_CORRECT_LINUXINPUT_H 1 |
daa2886c | 12434 | _ACEOF |
74f2b4b2 MM |
12435 | |
12436 | fi | |
12437 | ||
daa2886c AJ |
12438 | |
12439 | echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5 | |
f5818d2f AJ |
12440 | echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6 |
12441 | if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then | |
12442 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ff7a61f8 | 12443 | else |
f5818d2f | 12444 | cat >conftest.$ac_ext <<_ACEOF |
daa2886c | 12445 | #line $LINENO "configure" |
ff7a61f8 RK |
12446 | #include "confdefs.h" |
12447 | ||
12448 | #include <netdb.h> | |
f5818d2f | 12449 | |
daa2886c AJ |
12450 | #ifdef F77_DUMMY_MAIN |
12451 | # ifdef __cplusplus | |
12452 | extern "C" | |
12453 | # endif | |
12454 | int F77_DUMMY_MAIN() { return 1; } | |
12455 | #endif | |
f5818d2f AJ |
12456 | int |
12457 | main () | |
12458 | { | |
ff7a61f8 RK |
12459 | |
12460 | char *name=NULL; | |
12461 | struct hostent he; | |
12462 | struct hostent *result; | |
12463 | char *buf=NULL; | |
12464 | int bufsize=0; | |
12465 | int res,errnr; | |
12466 | char *addr=NULL; | |
12467 | int addrlen=0; | |
12468 | int addrtype=0; | |
12469 | res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr); | |
12470 | res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr); | |
f5818d2f AJ |
12471 | |
12472 | ; | |
12473 | return 0; | |
12474 | } | |
12475 | _ACEOF | |
12476 | rm -f conftest.$ac_objext | |
daa2886c | 12477 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
f5818d2f AJ |
12478 | (eval $ac_compile) 2>&5 |
12479 | ac_status=$? | |
daa2886c | 12480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
12481 | (exit $ac_status); } && |
12482 | { ac_try='test -s conftest.$ac_objext' | |
daa2886c | 12483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
12484 | (eval $ac_try) 2>&5 |
12485 | ac_status=$? | |
daa2886c | 12486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 12487 | (exit $ac_status); }; }; then |
ff7a61f8 RK |
12488 | wine_cv_linux_gethostbyname_r_6=yes |
12489 | else | |
f5818d2f AJ |
12490 | echo "$as_me: failed program was:" >&5 |
12491 | cat conftest.$ac_ext >&5 | |
12492 | wine_cv_linux_gethostbyname_r_6=no | |
12493 | ||
ff7a61f8 | 12494 | fi |
f5818d2f | 12495 | rm -f conftest.$ac_objext conftest.$ac_ext |
ff7a61f8 | 12496 | |
f5818d2f | 12497 | fi |
daa2886c | 12498 | echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5 |
f5818d2f | 12499 | echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6 |
ff7a61f8 RK |
12500 | if test "$wine_cv_linux_gethostbyname_r_6" = "yes" |
12501 | then | |
f5818d2f | 12502 | |
daa2886c | 12503 | cat >>confdefs.h <<\_ACEOF |
ff7a61f8 | 12504 | #define HAVE_LINUX_GETHOSTBYNAME_R_6 1 |
daa2886c | 12505 | _ACEOF |
ff7a61f8 RK |
12506 | |
12507 | fi | |
12508 | ||
028e9a17 MM |
12509 | if test "$ac_cv_header_linux_joystick_h" = "yes" |
12510 | then | |
daa2886c | 12511 | echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5 |
f5818d2f AJ |
12512 | echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6 |
12513 | if test "${wine_cv_linux_joystick_22_api+set}" = set; then | |
12514 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
028e9a17 | 12515 | else |
f5818d2f | 12516 | cat >conftest.$ac_ext <<_ACEOF |
daa2886c | 12517 | #line $LINENO "configure" |
028e9a17 MM |
12518 | #include "confdefs.h" |
12519 | ||
12520 | #include <sys/ioctl.h> | |
12521 | #include <linux/joystick.h> | |
12522 | ||
12523 | struct js_event blub; | |
605a9c39 MM |
12524 | #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON) |
12525 | #error "no 2.2 header" | |
12526 | #endif | |
f5818d2f | 12527 | |
daa2886c AJ |
12528 | #ifdef F77_DUMMY_MAIN |
12529 | # ifdef __cplusplus | |
12530 | extern "C" | |
12531 | # endif | |
12532 | int F77_DUMMY_MAIN() { return 1; } | |
12533 | #endif | |
f5818d2f AJ |
12534 | int |
12535 | main () | |
12536 | { | |
028e9a17 | 12537 | /*empty*/ |
f5818d2f AJ |
12538 | ; |
12539 | return 0; | |
12540 | } | |
12541 | _ACEOF | |
12542 | rm -f conftest.$ac_objext | |
daa2886c | 12543 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
f5818d2f AJ |
12544 | (eval $ac_compile) 2>&5 |
12545 | ac_status=$? | |
daa2886c | 12546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
12547 | (exit $ac_status); } && |
12548 | { ac_try='test -s conftest.$ac_objext' | |
daa2886c | 12549 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
12550 | (eval $ac_try) 2>&5 |
12551 | ac_status=$? | |
daa2886c | 12552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 12553 | (exit $ac_status); }; }; then |
028e9a17 MM |
12554 | wine_cv_linux_joystick_22_api=yes |
12555 | else | |
f5818d2f AJ |
12556 | echo "$as_me: failed program was:" >&5 |
12557 | cat conftest.$ac_ext >&5 | |
12558 | wine_cv_linux_joystick_22_api=no | |
028e9a17 | 12559 | fi |
f5818d2f | 12560 | rm -f conftest.$ac_objext conftest.$ac_ext |
028e9a17 | 12561 | |
f5818d2f | 12562 | fi |
daa2886c | 12563 | echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5 |
f5818d2f | 12564 | echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6 |
87d224ac | 12565 | if test "$wine_cv_linux_joystick_22_api" = "yes" |
028e9a17 | 12566 | then |
f5818d2f | 12567 | |
daa2886c | 12568 | cat >>confdefs.h <<\_ACEOF |
028e9a17 | 12569 | #define HAVE_LINUX_22_JOYSTICK_API 1 |
daa2886c | 12570 | _ACEOF |
028e9a17 MM |
12571 | |
12572 | fi | |
12573 | fi | |
12574 | ||
daa2886c | 12575 | |
dadf78ff AJ |
12576 | if test "$ac_cv_header_sys_vfs_h" = "yes" |
12577 | then | |
daa2886c | 12578 | echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5 |
f5818d2f AJ |
12579 | echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6 |
12580 | if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then | |
12581 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c7c217b3 | 12582 | else |
f5818d2f | 12583 | cat >conftest.$ac_ext <<_ACEOF |
daa2886c | 12584 | #line $LINENO "configure" |
c7c217b3 AJ |
12585 | #include "confdefs.h" |
12586 | ||
46ea8b3f | 12587 | #include <sys/types.h> |
c7c217b3 AJ |
12588 | #ifdef HAVE_SYS_PARAM_H |
12589 | # include <sys/param.h> | |
12590 | #endif | |
dadf78ff | 12591 | #include <sys/vfs.h> |
f5818d2f | 12592 | |
daa2886c AJ |
12593 | #ifdef F77_DUMMY_MAIN |
12594 | # ifdef __cplusplus | |
12595 | extern "C" | |
12596 | # endif | |
12597 | int F77_DUMMY_MAIN() { return 1; } | |
12598 | #endif | |
f5818d2f AJ |
12599 | int |
12600 | main () | |
12601 | { | |
c7c217b3 AJ |
12602 | |
12603 | struct statfs stfs; | |
12604 | ||
dadf78ff | 12605 | memset(&stfs,0,sizeof(stfs)); |
f5818d2f AJ |
12606 | |
12607 | ; | |
12608 | return 0; | |
12609 | } | |
12610 | _ACEOF | |
12611 | rm -f conftest.$ac_objext | |
daa2886c | 12612 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
f5818d2f AJ |
12613 | (eval $ac_compile) 2>&5 |
12614 | ac_status=$? | |
daa2886c | 12615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
12616 | (exit $ac_status); } && |
12617 | { ac_try='test -s conftest.$ac_objext' | |
daa2886c | 12618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
12619 | (eval $ac_try) 2>&5 |
12620 | ac_status=$? | |
daa2886c | 12621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 12622 | (exit $ac_status); }; }; then |
dadf78ff | 12623 | wine_cv_sys_vfs_has_statfs=yes |
c7c217b3 | 12624 | else |
f5818d2f AJ |
12625 | echo "$as_me: failed program was:" >&5 |
12626 | cat conftest.$ac_ext >&5 | |
12627 | wine_cv_sys_vfs_has_statfs=no | |
12628 | ||
c7c217b3 | 12629 | fi |
f5818d2f | 12630 | rm -f conftest.$ac_objext conftest.$ac_ext |
c7c217b3 | 12631 | |
f5818d2f | 12632 | fi |
daa2886c | 12633 | echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5 |
f5818d2f | 12634 | echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6 |
dadf78ff AJ |
12635 | if test "$wine_cv_sys_vfs_has_statfs" = "yes" |
12636 | then | |
f5818d2f | 12637 | |
daa2886c | 12638 | cat >>confdefs.h <<\_ACEOF |
dadf78ff | 12639 | #define STATFS_DEFINED_BY_SYS_VFS 1 |
daa2886c | 12640 | _ACEOF |
dadf78ff AJ |
12641 | |
12642 | fi | |
12643 | fi | |
12644 | ||
12645 | if test "$ac_cv_header_sys_statfs_h" = "yes" | |
c7c217b3 | 12646 | then |
daa2886c | 12647 | echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5 |
f5818d2f AJ |
12648 | echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6 |
12649 | if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then | |
12650 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
dadf78ff | 12651 | else |
f5818d2f | 12652 | cat >conftest.$ac_ext <<_ACEOF |
daa2886c | 12653 | #line $LINENO "configure" |
dadf78ff AJ |
12654 | #include "confdefs.h" |
12655 | ||
12656 | #include <sys/types.h> | |
12657 | #ifdef HAVE_SYS_PARAM_H | |
12658 | # include <sys/param.h> | |
12659 | #endif | |
12660 | #include <sys/statfs.h> | |
f5818d2f | 12661 | |
daa2886c AJ |
12662 | #ifdef F77_DUMMY_MAIN |
12663 | # ifdef __cplusplus | |
12664 | extern "C" | |
12665 | # endif | |
12666 | int F77_DUMMY_MAIN() { return 1; } | |
12667 | #endif | |
f5818d2f AJ |
12668 | int |
12669 | main () | |
12670 | { | |
dadf78ff AJ |
12671 | |
12672 | struct statfs stfs; | |
f5818d2f AJ |
12673 | |
12674 | ; | |
12675 | return 0; | |
12676 | } | |
12677 | _ACEOF | |
12678 | rm -f conftest.$ac_objext | |
daa2886c | 12679 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
f5818d2f AJ |
12680 | (eval $ac_compile) 2>&5 |
12681 | ac_status=$? | |
daa2886c | 12682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
12683 | (exit $ac_status); } && |
12684 | { ac_try='test -s conftest.$ac_objext' | |
daa2886c | 12685 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
12686 | (eval $ac_try) 2>&5 |
12687 | ac_status=$? | |
daa2886c | 12688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 12689 | (exit $ac_status); }; }; then |
dadf78ff AJ |
12690 | wine_cv_sys_statfs_has_statfs=yes |
12691 | else | |
f5818d2f AJ |
12692 | echo "$as_me: failed program was:" >&5 |
12693 | cat conftest.$ac_ext >&5 | |
12694 | wine_cv_sys_statfs_has_statfs=no | |
12695 | ||
dadf78ff | 12696 | fi |
f5818d2f | 12697 | rm -f conftest.$ac_objext conftest.$ac_ext |
dadf78ff | 12698 | |
f5818d2f | 12699 | fi |
daa2886c | 12700 | echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5 |
f5818d2f | 12701 | echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6 |
dadf78ff AJ |
12702 | if test "$wine_cv_sys_statfs_has_statfs" = "yes" |
12703 | then | |
f5818d2f | 12704 | |
daa2886c | 12705 | cat >>confdefs.h <<\_ACEOF |
dadf78ff | 12706 | #define STATFS_DEFINED_BY_SYS_STATFS 1 |
daa2886c | 12707 | _ACEOF |
dadf78ff AJ |
12708 | |
12709 | fi | |
12710 | fi | |
12711 | ||
12712 | if test "$ac_cv_header_sys_mount_h" = "yes" | |
12713 | then | |
daa2886c | 12714 | echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5 |
f5818d2f AJ |
12715 | echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6 |
12716 | if test "${wine_cv_sys_mount_has_statfs+set}" = set; then | |
12717 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
dadf78ff | 12718 | else |
f5818d2f | 12719 | cat >conftest.$ac_ext <<_ACEOF |
daa2886c | 12720 | #line $LINENO "configure" |
dadf78ff AJ |
12721 | #include "confdefs.h" |
12722 | ||
12723 | #include <sys/types.h> | |
12724 | #ifdef HAVE_SYS_PARAM_H | |
12725 | # include <sys/param.h> | |
12726 | #endif | |
12727 | #include <sys/mount.h> | |
f5818d2f | 12728 | |
daa2886c AJ |
12729 | #ifdef F77_DUMMY_MAIN |
12730 | # ifdef __cplusplus | |
12731 | extern "C" | |
12732 | # endif | |
12733 | int F77_DUMMY_MAIN() { return 1; } | |
12734 | #endif | |
f5818d2f AJ |
12735 | int |
12736 | main () | |
12737 | { | |
dadf78ff AJ |
12738 | |
12739 | struct statfs stfs; | |
f5818d2f AJ |
12740 | |
12741 | ; | |
12742 | return 0; | |
12743 | } | |
12744 | _ACEOF | |
12745 | rm -f conftest.$ac_objext | |
daa2886c | 12746 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
f5818d2f AJ |
12747 | (eval $ac_compile) 2>&5 |
12748 | ac_status=$? | |
daa2886c | 12749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
12750 | (exit $ac_status); } && |
12751 | { ac_try='test -s conftest.$ac_objext' | |
daa2886c | 12752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
12753 | (eval $ac_try) 2>&5 |
12754 | ac_status=$? | |
daa2886c | 12755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 12756 | (exit $ac_status); }; }; then |
dadf78ff AJ |
12757 | wine_cv_sys_mount_has_statfs=yes |
12758 | else | |
f5818d2f AJ |
12759 | echo "$as_me: failed program was:" >&5 |
12760 | cat conftest.$ac_ext >&5 | |
12761 | wine_cv_sys_mount_has_statfs=no | |
12762 | ||
dadf78ff | 12763 | fi |
f5818d2f | 12764 | rm -f conftest.$ac_objext conftest.$ac_ext |
dadf78ff | 12765 | |
f5818d2f | 12766 | fi |
daa2886c | 12767 | echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5 |
f5818d2f | 12768 | echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6 |
dadf78ff AJ |
12769 | if test "$wine_cv_sys_mount_has_statfs" = "yes" |
12770 | then | |
f5818d2f | 12771 | |
daa2886c | 12772 | cat >>confdefs.h <<\_ACEOF |
dadf78ff | 12773 | #define STATFS_DEFINED_BY_SYS_MOUNT 1 |
daa2886c | 12774 | _ACEOF |
c7c217b3 | 12775 | |
dadf78ff | 12776 | fi |
c7c217b3 AJ |
12777 | fi |
12778 | ||
daa2886c | 12779 | |
daa2886c | 12780 | echo "$as_me:$LINENO: checking for f_bfree in struct statfs" >&5 |
f5818d2f AJ |
12781 | echo $ECHO_N "checking for f_bfree in struct statfs... $ECHO_C" >&6 |
12782 | if test "${ac_cv_c_statfs_f_bfree+set}" = set; then | |
12783 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c7c217b3 | 12784 | else |
f5818d2f | 12785 | cat >conftest.$ac_ext <<_ACEOF |
daa2886c | 12786 | #line $LINENO "configure" |
c7c217b3 | 12787 | #include "confdefs.h" |
f5818d2f AJ |
12788 | #include <sys/types.h> |
12789 | #ifdef HAVE_SYS_PARAM_H | |
12790 | # include <sys/param.h> | |
12791 | #endif | |
12792 | #ifdef STATFS_DEFINED_BY_SYS_MOUNT | |
12793 | # include <sys/mount.h> | |
12794 | #else | |
12795 | # ifdef STATFS_DEFINED_BY_SYS_VFS | |
12796 | # include <sys/vfs.h> | |
12797 | # else | |
12798 | # ifdef STATFS_DEFINED_BY_SYS_STATFS | |
12799 | # include <sys/statfs.h> | |
12800 | # endif | |
12801 | # endif | |
12802 | #endif | |
daa2886c AJ |
12803 | #ifdef F77_DUMMY_MAIN |
12804 | # ifdef __cplusplus | |
12805 | extern "C" | |
12806 | # endif | |
12807 | int F77_DUMMY_MAIN() { return 1; } | |
12808 | #endif | |
f5818d2f AJ |
12809 | int |
12810 | main () | |
12811 | { | |
12812 | struct statfs s; s.f_bfree = 0 | |
12813 | ; | |
12814 | return 0; | |
12815 | } | |
12816 | _ACEOF | |
12817 | rm -f conftest.$ac_objext | |
daa2886c | 12818 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
f5818d2f AJ |
12819 | (eval $ac_compile) 2>&5 |
12820 | ac_status=$? | |
daa2886c | 12821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
12822 | (exit $ac_status); } && |
12823 | { ac_try='test -s conftest.$ac_objext' | |
daa2886c | 12824 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
12825 | (eval $ac_try) 2>&5 |
12826 | ac_status=$? | |
daa2886c | 12827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
12828 | (exit $ac_status); }; }; then |
12829 | ac_cv_c_statfs_f_bfree="yes" | |
12830 | else | |
12831 | echo "$as_me: failed program was:" >&5 | |
12832 | cat conftest.$ac_ext >&5 | |
12833 | ac_cv_c_statfs_f_bfree="no" | |
12834 | fi | |
12835 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12836 | fi | |
daa2886c | 12837 | echo "$as_me:$LINENO: result: $ac_cv_c_statfs_f_bfree" >&5 |
f5818d2f AJ |
12838 | echo "${ECHO_T}$ac_cv_c_statfs_f_bfree" >&6 |
12839 | if test "x$ac_cv_c_statfs_f_bfree" = "xyes"; then | |
12840 | ||
daa2886c | 12841 | cat >>confdefs.h <<\_ACEOF |
c7c217b3 | 12842 | #define STATFS_HAS_BFREE 1 |
daa2886c | 12843 | _ACEOF |
c7c217b3 AJ |
12844 | |
12845 | fi | |
12846 | ||
daa2886c AJ |
12847 | |
12848 | ||
12849 | echo "$as_me:$LINENO: checking for f_bavail in struct statfs" >&5 | |
f5818d2f AJ |
12850 | echo $ECHO_N "checking for f_bavail in struct statfs... $ECHO_C" >&6 |
12851 | if test "${ac_cv_c_statfs_f_bavail+set}" = set; then | |
12852 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
dadf78ff | 12853 | else |
f5818d2f | 12854 | cat >conftest.$ac_ext <<_ACEOF |
daa2886c | 12855 | #line $LINENO "configure" |
dadf78ff | 12856 | #include "confdefs.h" |
f5818d2f AJ |
12857 | #include <sys/types.h> |
12858 | #ifdef HAVE_SYS_PARAM_H | |
12859 | # include <sys/param.h> | |
12860 | #endif | |
12861 | #ifdef STATFS_DEFINED_BY_SYS_MOUNT | |
12862 | # include <sys/mount.h> | |
12863 | #else | |
12864 | # ifdef STATFS_DEFINED_BY_SYS_VFS | |
12865 | # include <sys/vfs.h> | |
12866 | # else | |
12867 | # ifdef STATFS_DEFINED_BY_SYS_STATFS | |
12868 | # include <sys/statfs.h> | |
12869 | # endif | |
12870 | # endif | |
12871 | #endif | |
daa2886c AJ |
12872 | #ifdef F77_DUMMY_MAIN |
12873 | # ifdef __cplusplus | |
12874 | extern "C" | |
12875 | # endif | |
12876 | int F77_DUMMY_MAIN() { return 1; } | |
12877 | #endif | |
f5818d2f AJ |
12878 | int |
12879 | main () | |
12880 | { | |
12881 | struct statfs s; s.f_bavail = 0 | |
12882 | ; | |
12883 | return 0; | |
12884 | } | |
12885 | _ACEOF | |
12886 | rm -f conftest.$ac_objext | |
daa2886c | 12887 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
f5818d2f AJ |
12888 | (eval $ac_compile) 2>&5 |
12889 | ac_status=$? | |
daa2886c | 12890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
12891 | (exit $ac_status); } && |
12892 | { ac_try='test -s conftest.$ac_objext' | |
daa2886c | 12893 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
12894 | (eval $ac_try) 2>&5 |
12895 | ac_status=$? | |
daa2886c | 12896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
12897 | (exit $ac_status); }; }; then |
12898 | ac_cv_c_statfs_f_bavail="yes" | |
12899 | else | |
12900 | echo "$as_me: failed program was:" >&5 | |
12901 | cat conftest.$ac_ext >&5 | |
12902 | ac_cv_c_statfs_f_bavail="no" | |
12903 | fi | |
12904 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12905 | fi | |
daa2886c | 12906 | echo "$as_me:$LINENO: result: $ac_cv_c_statfs_f_bavail" >&5 |
f5818d2f AJ |
12907 | echo "${ECHO_T}$ac_cv_c_statfs_f_bavail" >&6 |
12908 | if test "x$ac_cv_c_statfs_f_bavail" = "xyes"; then | |
12909 | ||
daa2886c | 12910 | cat >>confdefs.h <<\_ACEOF |
dadf78ff | 12911 | #define STATFS_HAS_BAVAIL 1 |
daa2886c | 12912 | _ACEOF |
dadf78ff AJ |
12913 | |
12914 | fi | |
12915 | ||
daa2886c AJ |
12916 | |
12917 | ||
12918 | echo "$as_me:$LINENO: checking for msg_accrights in struct msghdr" >&5 | |
f5818d2f AJ |
12919 | echo $ECHO_N "checking for msg_accrights in struct msghdr... $ECHO_C" >&6 |
12920 | if test "${ac_cv_c_msghdr_msg_accrights+set}" = set; then | |
12921 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
829fe323 | 12922 | else |
f5818d2f | 12923 | cat >conftest.$ac_ext <<_ACEOF |
daa2886c | 12924 | #line $LINENO "configure" |
829fe323 AJ |
12925 | #include "confdefs.h" |
12926 | #include <sys/types.h> | |
12927 | #include <sys/socket.h> | |
daa2886c AJ |
12928 | #ifdef F77_DUMMY_MAIN |
12929 | # ifdef __cplusplus | |
12930 | extern "C" | |
12931 | # endif | |
12932 | int F77_DUMMY_MAIN() { return 1; } | |
12933 | #endif | |
f5818d2f AJ |
12934 | int |
12935 | main () | |
12936 | { | |
12937 | struct msghdr s; s.msg_accrights = 0 | |
12938 | ; | |
12939 | return 0; | |
12940 | } | |
12941 | _ACEOF | |
12942 | rm -f conftest.$ac_objext | |
daa2886c | 12943 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
f5818d2f AJ |
12944 | (eval $ac_compile) 2>&5 |
12945 | ac_status=$? | |
daa2886c | 12946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
12947 | (exit $ac_status); } && |
12948 | { ac_try='test -s conftest.$ac_objext' | |
daa2886c | 12949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
12950 | (eval $ac_try) 2>&5 |
12951 | ac_status=$? | |
daa2886c | 12952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
12953 | (exit $ac_status); }; }; then |
12954 | ac_cv_c_msghdr_msg_accrights="yes" | |
12955 | else | |
12956 | echo "$as_me: failed program was:" >&5 | |
12957 | cat conftest.$ac_ext >&5 | |
12958 | ac_cv_c_msghdr_msg_accrights="no" | |
12959 | fi | |
12960 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12961 | fi | |
daa2886c | 12962 | echo "$as_me:$LINENO: result: $ac_cv_c_msghdr_msg_accrights" >&5 |
f5818d2f AJ |
12963 | echo "${ECHO_T}$ac_cv_c_msghdr_msg_accrights" >&6 |
12964 | if test "x$ac_cv_c_msghdr_msg_accrights" = "xyes"; then | |
12965 | ||
daa2886c | 12966 | cat >>confdefs.h <<\_ACEOF |
829fe323 | 12967 | #define HAVE_MSGHDR_ACCRIGHTS 1 |
daa2886c | 12968 | _ACEOF |
829fe323 AJ |
12969 | |
12970 | fi | |
12971 | ||
daa2886c AJ |
12972 | |
12973 | ||
12974 | echo "$as_me:$LINENO: checking for sa_len in struct sockaddr" >&5 | |
f5818d2f AJ |
12975 | echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6 |
12976 | if test "${ac_cv_c_sockaddr_sa_len+set}" = set; then | |
12977 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2d33ab91 | 12978 | else |
f5818d2f | 12979 | cat >conftest.$ac_ext <<_ACEOF |
daa2886c | 12980 | #line $LINENO "configure" |
2d33ab91 JL |
12981 | #include "confdefs.h" |
12982 | #include <sys/types.h> | |
12983 | #include <sys/socket.h> | |
daa2886c AJ |
12984 | #ifdef F77_DUMMY_MAIN |
12985 | # ifdef __cplusplus | |
12986 | extern "C" | |
12987 | # endif | |
12988 | int F77_DUMMY_MAIN() { return 1; } | |
12989 | #endif | |
f5818d2f AJ |
12990 | int |
12991 | main () | |
12992 | { | |
12993 | struct sockaddr s; s.sa_len = 0 | |
12994 | ; | |
12995 | return 0; | |
12996 | } | |
12997 | _ACEOF | |
12998 | rm -f conftest.$ac_objext | |
daa2886c | 12999 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
f5818d2f AJ |
13000 | (eval $ac_compile) 2>&5 |
13001 | ac_status=$? | |
daa2886c | 13002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
13003 | (exit $ac_status); } && |
13004 | { ac_try='test -s conftest.$ac_objext' | |
daa2886c | 13005 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
13006 | (eval $ac_try) 2>&5 |
13007 | ac_status=$? | |
daa2886c | 13008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 13009 | (exit $ac_status); }; }; then |
09da966c PS |
13010 | ac_cv_c_sockaddr_sa_len="yes" |
13011 | else | |
f5818d2f AJ |
13012 | echo "$as_me: failed program was:" >&5 |
13013 | cat conftest.$ac_ext >&5 | |
13014 | ac_cv_c_sockaddr_sa_len="no" | |
09da966c | 13015 | fi |
f5818d2f | 13016 | rm -f conftest.$ac_objext conftest.$ac_ext |
09da966c | 13017 | fi |
daa2886c | 13018 | echo "$as_me:$LINENO: result: $ac_cv_c_sockaddr_sa_len" >&5 |
f5818d2f AJ |
13019 | echo "${ECHO_T}$ac_cv_c_sockaddr_sa_len" >&6 |
13020 | if test "x$ac_cv_c_sockaddr_sa_len" = "xyes"; then | |
09da966c | 13021 | |
daa2886c | 13022 | cat >>confdefs.h <<\_ACEOF |
09da966c | 13023 | #define HAVE_SOCKADDR_SA_LEN 1 |
daa2886c | 13024 | _ACEOF |
09da966c PS |
13025 | |
13026 | fi | |
13027 | ||
daa2886c AJ |
13028 | |
13029 | ||
13030 | echo "$as_me:$LINENO: checking for sun_len in struct sockaddr_un" >&5 | |
f5818d2f AJ |
13031 | echo $ECHO_N "checking for sun_len in struct sockaddr_un... $ECHO_C" >&6 |
13032 | if test "${ac_cv_c_sockaddr_un_sun_len+set}" = set; then | |
13033 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
09da966c | 13034 | else |
f5818d2f | 13035 | cat >conftest.$ac_ext <<_ACEOF |
daa2886c | 13036 | #line $LINENO "configure" |
09da966c PS |
13037 | #include "confdefs.h" |
13038 | #include <sys/types.h> | |
13039 | #include <sys/socket.h> | |
2d33ab91 | 13040 | #include <sys/un.h> |
daa2886c AJ |
13041 | #ifdef F77_DUMMY_MAIN |
13042 | # ifdef __cplusplus | |
13043 | extern "C" | |
13044 | # endif | |
13045 | int F77_DUMMY_MAIN() { return 1; } | |
13046 | #endif | |
f5818d2f AJ |
13047 | int |
13048 | main () | |
13049 | { | |
13050 | struct sockaddr_un s; s.sun_len = 0 | |
13051 | ; | |
13052 | return 0; | |
13053 | } | |
13054 | _ACEOF | |
13055 | rm -f conftest.$ac_objext | |
daa2886c | 13056 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
f5818d2f AJ |
13057 | (eval $ac_compile) 2>&5 |
13058 | ac_status=$? | |
daa2886c | 13059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
13060 | (exit $ac_status); } && |
13061 | { ac_try='test -s conftest.$ac_objext' | |
daa2886c | 13062 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
f5818d2f AJ |
13063 | (eval $ac_try) 2>&5 |
13064 | ac_status=$? | |
daa2886c | 13065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
13066 | (exit $ac_status); }; }; then |
13067 | ac_cv_c_sockaddr_un_sun_len="yes" | |
13068 | else | |
13069 | echo "$as_me: failed program was:" >&5 | |
13070 | cat conftest.$ac_ext >&5 | |
13071 | ac_cv_c_sockaddr_un_sun_len="no" | |
13072 | fi | |
13073 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13074 | fi | |
daa2886c | 13075 | echo "$as_me:$LINENO: result: $ac_cv_c_sockaddr_un_sun_len" >&5 |
f5818d2f AJ |
13076 | echo "${ECHO_T}$ac_cv_c_sockaddr_un_sun_len" >&6 |
13077 | if test "x$ac_cv_c_sockaddr_un_sun_len" = "xyes"; then | |
13078 | ||
daa2886c | 13079 | cat >>confdefs.h <<\_ACEOF |
2d33ab91 | 13080 | #define HAVE_SOCKADDR_SUN_LEN 1 |
daa2886c | 13081 | _ACEOF |
2d33ab91 JL |
13082 | |
13083 | fi | |
13084 | ||
daa2886c AJ |
13085 | |
13086 | ||
13087 | ||
fc01b729 | 13088 | case $host_cpu in |
f5818d2f | 13089 | *i345678986* ) |
daa2886c | 13090 | echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5 |
f5818d2f AJ |
13091 | echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6 |
13092 | if test "${ac_cv_cpp_def_i386+set}" = set; then | |
13093 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
51d46ba9 | 13094 | else |
f5818d2f | 13095 | cat >conftest.$ac_ext <<_ACEOF |
daa2886c | 13096 | #line $LINENO "configure" |
51d46ba9 | 13097 | #include "confdefs.h" |
f5818d2f | 13098 | #ifndef __i386__ |
51d46ba9 AJ |
13099 | yes |
13100 | #endif | |
f5818d2f | 13101 | _ACEOF |
51d46ba9 AJ |
13102 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
13103 | egrep "yes" >/dev/null 2>&1; then | |
51d46ba9 AJ |
13104 | ac_cv_cpp_def_i386="yes" |
13105 | else | |
51d46ba9 AJ |
13106 | ac_cv_cpp_def_i386="no" |
13107 | fi | |
13108 | rm -f conftest* | |
13109 | ||
13110 | fi | |
daa2886c | 13111 | echo "$as_me:$LINENO: result: $ac_cv_cpp_def_i386" >&5 |
f5818d2f AJ |
13112 | echo "${ECHO_T}$ac_cv_cpp_def_i386" >&6 |
13113 | ;; | |
13114 | esac | |
51d46ba9 AJ |
13115 | if test "$ac_cv_cpp_def_i386" = "yes" |
13116 | then | |
13117 | CFLAGS="$CFLAGS -D__i386__" | |
a9be64e2 | 13118 | LINTFLAGS="$LINTFLAGS -D__i386__" |
51d46ba9 AJ |
13119 | fi |
13120 | ||
daa2886c AJ |
13121 | |
13122 | ||
13123 | ||
13124 | ||
9bb05fc4 AJ |
13125 | ac_config_commands="$ac_config_commands controls" |
13126 | ||
f5818d2f | 13127 | ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice" |
a7f5cb5b | 13128 | |
f5818d2f | 13129 | ac_config_commands="$ac_config_commands dlls/ddraw/dclipper" |
a7f5cb5b | 13130 | |
f5818d2f | 13131 | ac_config_commands="$ac_config_commands dlls/ddraw/ddraw" |
829fe323 | 13132 | |
f5818d2f | 13133 | ac_config_commands="$ac_config_commands dlls/ddraw/direct3d" |
1425941e | 13134 | |
f5818d2f | 13135 | ac_config_commands="$ac_config_commands dlls/ddraw/dpalette" |
1425941e | 13136 | |
f5818d2f | 13137 | ac_config_commands="$ac_config_commands dlls/ddraw/dsurface" |
87a2f8df | 13138 | |
f5818d2f | 13139 | ac_config_commands="$ac_config_commands dlls/dinput/joystick" |
87a2f8df | 13140 | |
f5818d2f | 13141 | ac_config_commands="$ac_config_commands dlls/dinput/keyboard" |
e2991ea7 | 13142 | |
f5818d2f | 13143 | ac_config_commands="$ac_config_commands dlls/dinput/mouse" |
e2991ea7 | 13144 | |
89118568 AJ |
13145 | ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv" |
13146 | ||
13147 | ac_config_commands="$ac_config_commands dlls/gdi/mfdrv" | |
13148 | ||
13149 | ac_config_commands="$ac_config_commands dlls/gdi/win16drv" | |
13150 | ||
f5818d2f AJ |
13151 | ac_config_commands="$ac_config_commands dlls/kernel/messages" |
13152 | ||
c72f0b21 AJ |
13153 | ac_config_commands="$ac_config_commands dlls/kernel/tests" |
13154 | ||
e8d97701 MM |
13155 | ac_config_commands="$ac_config_commands dlls/oleaut32/tests" |
13156 | ||
c74a791a JS |
13157 | ac_config_commands="$ac_config_commands dlls/shlwapi/tests" |
13158 | ||
f5818d2f | 13159 | ac_config_commands="$ac_config_commands dlls/user/dde" |
d0edc5fe | 13160 | |
f5818d2f AJ |
13161 | ac_config_commands="$ac_config_commands dlls/user/resources" |
13162 | ||
c72f0b21 AJ |
13163 | ac_config_commands="$ac_config_commands dlls/user/tests" |
13164 | ||
f5818d2f AJ |
13165 | ac_config_commands="$ac_config_commands dlls/wineps/data" |
13166 | ||
9a68b7be AJ |
13167 | ac_config_commands="$ac_config_commands dlls/winsock/tests" |
13168 | ||
9bb05fc4 AJ |
13169 | ac_config_commands="$ac_config_commands files" |
13170 | ||
13171 | ac_config_commands="$ac_config_commands graphics" | |
13172 | ||
13173 | ac_config_commands="$ac_config_commands graphics/x11drv" | |
13174 | ||
13175 | ac_config_commands="$ac_config_commands if1632" | |
13176 | ||
f5818d2f AJ |
13177 | ac_config_commands="$ac_config_commands include/wine" |
13178 | ||
9bb05fc4 AJ |
13179 | ac_config_commands="$ac_config_commands loader" |
13180 | ||
13181 | ac_config_commands="$ac_config_commands loader/ne" | |
13182 | ||
13183 | ac_config_commands="$ac_config_commands memory" | |
13184 | ||
13185 | ac_config_commands="$ac_config_commands misc" | |
13186 | ||
13187 | ac_config_commands="$ac_config_commands msdos" | |
13188 | ||
13189 | ac_config_commands="$ac_config_commands objects" | |
13190 | ||
c72f0b21 AJ |
13191 | ac_config_commands="$ac_config_commands programs/regapi/tests" |
13192 | ||
13193 | ac_config_commands="$ac_config_commands programs/winetest/tests" | |
13194 | ||
9bb05fc4 AJ |
13195 | ac_config_commands="$ac_config_commands relay32" |
13196 | ||
13197 | ac_config_commands="$ac_config_commands scheduler" | |
13198 | ||
13199 | ac_config_commands="$ac_config_commands win32" | |
13200 | ||
13201 | ac_config_commands="$ac_config_commands windows" | |
13202 | ||
f5818d2f AJ |
13203 | |
13204 | MAKE_RULES=Make.rules | |
13205 | ||
daa2886c | 13206 | |
f5818d2f | 13207 | MAKE_DLL_RULES=dlls/Makedll.rules |
d0edc5fe | 13208 | |
daa2886c | 13209 | |
626f425b AJ |
13210 | MAKE_PROG_RULES=programs/Makeprog.rules |
13211 | ||
daa2886c | 13212 | |
bed67fc9 | 13213 | ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules programs/Makeprog.rules Makefile debugger/Makefile dlls/Makefile dlls/advapi32/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/comcat/Makefile dlls/comctl32/Makefile dlls/commdlg/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/dciman32/Makefile dlls/ddraw/Makefile dlls/devenum/Makefile dlls/dinput/Makefile dlls/dplay/Makefile dlls/dplayx/Makefile dlls/dsound/Makefile dlls/gdi/Makefile dlls/glu32/Makefile dlls/icmp/Makefile dlls/imagehlp/Makefile dlls/imm32/Makefile dlls/kernel/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/msdmo/Makefile dlls/msimg32/Makefile dlls/msisys/Makefile dlls/msnet32/Makefile dlls/msrle32/Makefile dlls/msvcrt/Makefile dlls/msvcrt20/Makefile dlls/msvideo/Makefile dlls/netapi32/Makefile dlls/ntdll/Makefile dlls/odbc32/Makefile dlls/ole32/Makefile dlls/oleaut32/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/serialui/Makefile dlls/setupapi/Makefile dlls/shdocvw/Makefile dlls/shell32/Makefile dlls/shfolder/Makefile dlls/shlwapi/Makefile dlls/snmpapi/Makefile dlls/sti/Makefile dlls/tapi32/Makefile dlls/ttydrv/Makefile dlls/twain/Makefile dlls/url/Makefile dlls/urlmon/Makefile dlls/user/Makefile dlls/version/Makefile dlls/win32s/Makefile dlls/winaspi/Makefile dlls/winedos/Makefile dlls/wineps/Makefile dlls/wininet/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/wavemap/Makefile dlls/winmm/winearts/Makefile dlls/winmm/wineoss/Makefile dlls/winnls/Makefile dlls/winsock/Makefile dlls/winspool/Makefile dlls/wintrust/Makefile dlls/wow32/Makefile dlls/wsock32/Makefile dlls/x11drv/Makefile documentation/Makefile include/Makefile library/Makefile miscemu/Makefile ole/Makefile programs/Makefile programs/avitools/Makefile programs/clock/Makefile programs/cmdlgtst/Makefile programs/control/Makefile programs/expand/Makefile programs/notepad/Makefile programs/osversioncheck/Makefile programs/progman/Makefile programs/regapi/Makefile programs/regedit/Makefile programs/regsvr32/Makefile programs/regtest/Makefile programs/uninstaller/Makefile programs/view/Makefile programs/wcmd/Makefile programs/wineconsole/Makefile programs/winemine/Makefile programs/winepath/Makefile programs/winetest/Makefile programs/winhelp/Makefile programs/winver/Makefile server/Makefile tools/Makefile tools/winapi/Makefile tools/winebuild/Makefile tools/winedump/Makefile tools/wmc/Makefile tools/wrc/Makefile tsx11/Makefile unicode/Makefile" |
daa2886c | 13214 | |
626f425b | 13215 | |
f5818d2f | 13216 | cat >confcache <<\_ACEOF |
e2991ea7 AJ |
13217 | # This file is a shell script that caches the results of configure |
13218 | # tests run on this system so they can be shared between configure | |
f5818d2f AJ |
13219 | # scripts and configure runs, see configure's option --config-cache. |
13220 | # It is not useful on other systems. If it contains results you don't | |
13221 | # want to keep, you may remove or edit it. | |
e2991ea7 | 13222 | # |
f5818d2f AJ |
13223 | # config.status only pays attention to the cache file if you give it |
13224 | # the --recheck option to rerun configure. | |
e2991ea7 | 13225 | # |
f5818d2f AJ |
13226 | # `ac_cv_env_foo' variables (set or unset) will be overriden when |
13227 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
13228 | # following values. | |
13229 | ||
13230 | _ACEOF | |
13231 | ||
7e6ae4ba AJ |
13232 | # The following way of writing the cache mishandles newlines in values, |
13233 | # but we know of no workaround that is simple, portable, and efficient. | |
13234 | # So, don't put newlines in cache variables' values. | |
e2991ea7 AJ |
13235 | # Ultrix sh set writes to stderr and can't be redirected directly, |
13236 | # and sets the high bit in the cache file unless we assign to the vars. | |
f5818d2f AJ |
13237 | { |
13238 | (set) 2>&1 | | |
13239 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
13240 | *ac_space=\ *) | |
13241 | # `set' does not quote correctly, so add quotes (double-quote | |
13242 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
13243 | sed -n \ | |
13244 | "s/'/'\\\\''/g; | |
13245 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
13246 | ;; | |
13247 | *) | |
13248 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
13249 | sed -n \ | |
13250 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
13251 | ;; | |
13252 | esac; | |
13253 | } | | |
13254 | sed ' | |
13255 | t clear | |
13256 | : clear | |
13257 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
13258 | t end | |
13259 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
13260 | : end' >>confcache | |
13261 | if cmp -s $cache_file confcache; then :; else | |
e2991ea7 | 13262 | if test -w $cache_file; then |
f5818d2f AJ |
13263 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
13264 | cat confcache >$cache_file | |
e2991ea7 AJ |
13265 | else |
13266 | echo "not updating unwritable cache $cache_file" | |
13267 | fi | |
13268 | fi | |
13269 | rm -f confcache | |
13270 | ||
e2991ea7 AJ |
13271 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
13272 | # Let make expand exec_prefix. | |
13273 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
13274 | ||
f5818d2f AJ |
13275 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
13276 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
13277 | # trailing colons and then remove the whole line if VPATH becomes empty | |
13278 | # (actually we leave an empty line to preserve line numbers). | |
e2991ea7 | 13279 | if test "x$srcdir" = x.; then |
f5818d2f AJ |
13280 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
13281 | s/:*\$(srcdir):*/:/; | |
13282 | s/:*\${srcdir}:*/:/; | |
13283 | s/:*@srcdir@:*/:/; | |
13284 | s/^\([^=]*=[ ]*\):*/\1/; | |
13285 | s/:*$//; | |
13286 | s/^[^=]*=[ ]*$//; | |
13287 | }' | |
e2991ea7 AJ |
13288 | fi |
13289 | ||
18f92e76 | 13290 | DEFS=-DHAVE_CONFIG_H |
e2991ea7 | 13291 | |
daa2886c | 13292 | |
e2991ea7 | 13293 | : ${CONFIG_STATUS=./config.status} |
f5818d2f AJ |
13294 | ac_clean_files_save=$ac_clean_files |
13295 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
daa2886c | 13296 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
f5818d2f AJ |
13297 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
13298 | cat >$CONFIG_STATUS <<_ACEOF | |
13299 | #! $SHELL | |
daa2886c | 13300 | # Generated by $as_me. |
e2991ea7 | 13301 | # Run this file to recreate the current configuration. |
e2991ea7 | 13302 | # Compiler output produced by configure, useful for debugging |
f5818d2f | 13303 | # configure, is in config.log if it exists. |
e2991ea7 | 13304 | |
f5818d2f AJ |
13305 | debug=false |
13306 | SHELL=\${CONFIG_SHELL-$SHELL} | |
f5818d2f AJ |
13307 | _ACEOF |
13308 | ||
13309 | cat >>$CONFIG_STATUS <<\_ACEOF | |
daa2886c AJ |
13310 | |
13311 | ## --------------------- ## | |
13312 | ## M4sh Initialization. ## | |
13313 | ## --------------------- ## | |
13314 | ||
f5818d2f AJ |
13315 | # Be Bourne compatible |
13316 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
13317 | emulate sh | |
13318 | NULLCMD=: | |
13319 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
13320 | set -o posix | |
13321 | fi | |
13322 | ||
daa2886c AJ |
13323 | # NLS nuisances. |
13324 | # Support unset when possible. | |
13325 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | |
13326 | as_unset=unset | |
13327 | else | |
13328 | as_unset=false | |
13329 | fi | |
13330 | ||
13331 | (set +x; test -n "`(LANG=C; export LANG) 2>&1`") && | |
13332 | { $as_unset LANG || test "${LANG+set}" != set; } || | |
13333 | { LANG=C; export LANG; } | |
13334 | (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") && | |
13335 | { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } || | |
13336 | { LC_ALL=C; export LC_ALL; } | |
13337 | (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") && | |
13338 | { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } || | |
13339 | { LC_TIME=C; export LC_TIME; } | |
13340 | (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") && | |
13341 | { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } || | |
13342 | { LC_CTYPE=C; export LC_CTYPE; } | |
13343 | (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") && | |
13344 | { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } || | |
13345 | { LANGUAGE=C; export LANGUAGE; } | |
13346 | (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") && | |
13347 | { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } || | |
13348 | { LC_COLLATE=C; export LC_COLLATE; } | |
13349 | (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") && | |
13350 | { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } || | |
13351 | { LC_NUMERIC=C; export LC_NUMERIC; } | |
13352 | (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") && | |
13353 | { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } || | |
13354 | { LC_MESSAGES=C; export LC_MESSAGES; } | |
13355 | ||
13356 | ||
f5818d2f | 13357 | # Name of the executable. |
daa2886c AJ |
13358 | as_me=`(basename "$0") 2>/dev/null || |
13359 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
13360 | X"$0" : 'X\(//\)$' \| \ | |
13361 | X"$0" : 'X\(/\)$' \| \ | |
13362 | . : '\(.\)' 2>/dev/null || | |
13363 | echo X/"$0" | | |
13364 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
13365 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
13366 | /^X\/\(\/\).*/{ s//\1/; q; } | |
13367 | s/.*/./; q'` | |
13368 | ||
13369 | # PATH needs CR, and LINENO needs CR and PATH. | |
13370 | # Avoid depending upon Character Ranges. | |
13371 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
13372 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
13373 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
13374 | as_cr_digits='0123456789' | |
13375 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
13376 | ||
13377 | # The user is always right. | |
13378 | if test "${PATH_SEPARATOR+set}" != set; then | |
13379 | echo "#! /bin/sh" >conftest.sh | |
13380 | echo "exit 0" >>conftest.sh | |
13381 | chmod +x conftest.sh | |
13382 | if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then | |
13383 | PATH_SEPARATOR=';' | |
13384 | else | |
13385 | PATH_SEPARATOR=: | |
13386 | fi | |
13387 | rm -f conftest.sh | |
13388 | fi | |
13389 | ||
13390 | ||
13391 | as_lineno_1=$LINENO | |
13392 | as_lineno_2=$LINENO | |
13393 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
13394 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
13395 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
13396 | # Find who we are. Look in the path if we contain no path at all | |
13397 | # relative or not. | |
13398 | case $0 in | |
13399 | *[\\/]* ) as_myself=$0 ;; | |
13400 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13401 | for as_dir in $PATH | |
13402 | do | |
13403 | IFS=$as_save_IFS | |
13404 | test -z "$as_dir" && as_dir=. | |
13405 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
13406 | done | |
13407 | ||
13408 | ;; | |
13409 | esac | |
13410 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
13411 | # in which case we are not to be found in the path. | |
13412 | if test "x$as_myself" = x; then | |
13413 | as_myself=$0 | |
13414 | fi | |
13415 | if test ! -f "$as_myself"; then | |
13416 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
13417 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
13418 | { (exit 1); exit 1; }; } | |
13419 | fi | |
13420 | case $CONFIG_SHELL in | |
13421 | '') | |
13422 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13423 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
13424 | do | |
13425 | IFS=$as_save_IFS | |
13426 | test -z "$as_dir" && as_dir=. | |
13427 | for as_base in sh bash ksh sh5; do | |
13428 | case $as_dir in | |
13429 | /*) | |
13430 | if ("$as_dir/$as_base" -c ' | |
13431 | as_lineno_1=$LINENO | |
13432 | as_lineno_2=$LINENO | |
13433 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
13434 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
13435 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
13436 | CONFIG_SHELL=$as_dir/$as_base | |
13437 | export CONFIG_SHELL | |
13438 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
13439 | fi;; | |
13440 | esac | |
13441 | done | |
13442 | done | |
13443 | ;; | |
13444 | esac | |
13445 | ||
13446 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
13447 | # uniformly replaced by the line number. The first 'sed' inserts a | |
13448 | # line-number line before each line; the second 'sed' does the real | |
13449 | # work. The second script uses 'N' to pair each line-number line | |
13450 | # with the numbered line, and appends trailing '-' during | |
13451 | # substitution so that $LINENO is not a special case at line end. | |
13452 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
13453 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
13454 | sed '=' <$as_myself | | |
13455 | sed ' | |
13456 | N | |
13457 | s,$,-, | |
13458 | : loop | |
13459 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
13460 | t loop | |
13461 | s,-$,, | |
13462 | s,^['$as_cr_digits']*\n,, | |
13463 | ' >$as_me.lineno && | |
13464 | chmod +x $as_me.lineno || | |
13465 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
13466 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
13467 | { (exit 1); exit 1; }; } | |
13468 | ||
13469 | # Don't try to exec as it changes $[0], causing all sort of problems | |
13470 | # (the dirname of $[0] is not the place where we might find the | |
13471 | # original and so on. Autoconf is especially sensible to this). | |
13472 | . ./$as_me.lineno | |
13473 | # Exit status is that of the last command. | |
13474 | exit | |
13475 | } | |
13476 | ||
13477 | ||
13478 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
13479 | *c*,-n*) ECHO_N= ECHO_C=' | |
13480 | ' ECHO_T=' ' ;; | |
13481 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
13482 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
13483 | esac | |
f5818d2f AJ |
13484 | |
13485 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
13486 | as_expr=expr | |
13487 | else | |
13488 | as_expr=false | |
13489 | fi | |
13490 | ||
13491 | rm -f conf$$ conf$$.exe conf$$.file | |
13492 | echo >conf$$.file | |
13493 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
13494 | # We could just check for DJGPP; but this test a) works b) is more generic | |
13495 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
13496 | if test -f conf$$.exe; then | |
13497 | # Don't use ln at all; we don't have any links | |
13498 | as_ln_s='cp -p' | |
13499 | else | |
13500 | as_ln_s='ln -s' | |
13501 | fi | |
13502 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
13503 | as_ln_s=ln | |
13504 | else | |
13505 | as_ln_s='cp -p' | |
13506 | fi | |
13507 | rm -f conf$$ conf$$.exe conf$$.file | |
13508 | ||
13509 | as_executable_p="test -f" | |
13510 | ||
daa2886c AJ |
13511 | # Sed expression to map a string onto a valid CPP name. |
13512 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" | |
13513 | ||
13514 | # Sed expression to map a string onto a valid variable name. | |
13515 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" | |
f5818d2f | 13516 | |
f5818d2f AJ |
13517 | |
13518 | # IFS | |
13519 | # We need space, tab and new line, in precisely that order. | |
13520 | as_nl=' | |
13521 | ' | |
13522 | IFS=" $as_nl" | |
13523 | ||
13524 | # CDPATH. | |
daa2886c | 13525 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; } |
f5818d2f AJ |
13526 | |
13527 | exec 6>&1 | |
13528 | ||
daa2886c AJ |
13529 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
13530 | # report actual input values of CONFIG_FILES etc. instead of their | |
13531 | # values after options handling. Logging --version etc. is OK. | |
13532 | exec 5>>config.log | |
13533 | { | |
13534 | echo | |
13535 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
13536 | ## Running $as_me. ## | |
13537 | _ASBOX | |
13538 | } >&5 | |
13539 | cat >&5 <<_CSEOF | |
13540 | ||
f85d8da4 | 13541 | This file was extended by Wine $as_me 20020509, which was |
daa2886c AJ |
13542 | generated by GNU Autoconf 2.53. Invocation command line was |
13543 | ||
13544 | CONFIG_FILES = $CONFIG_FILES | |
13545 | CONFIG_HEADERS = $CONFIG_HEADERS | |
13546 | CONFIG_LINKS = $CONFIG_LINKS | |
13547 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
13548 | $ $0 $@ | |
13549 | ||
13550 | _CSEOF | |
13551 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
13552 | echo >&5 | |
f5818d2f AJ |
13553 | _ACEOF |
13554 | ||
13555 | # Files that config.status was made for. | |
13556 | if test -n "$ac_config_files"; then | |
13557 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
13558 | fi | |
13559 | ||
13560 | if test -n "$ac_config_headers"; then | |
13561 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
13562 | fi | |
13563 | ||
13564 | if test -n "$ac_config_links"; then | |
13565 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
13566 | fi | |
13567 | ||
13568 | if test -n "$ac_config_commands"; then | |
13569 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
13570 | fi | |
13571 | ||
daa2886c | 13572 | cat >>$CONFIG_STATUS <<\_ACEOF |
f5818d2f AJ |
13573 | |
13574 | ac_cs_usage="\ | |
13575 | \`$as_me' instantiates files from templates according to the | |
13576 | current configuration. | |
13577 | ||
13578 | Usage: $0 [OPTIONS] [FILE]... | |
13579 | ||
13580 | -h, --help print this help, then exit | |
13581 | -V, --version print version number, then exit | |
13582 | -d, --debug don't remove temporary files | |
13583 | --recheck update $as_me by reconfiguring in the same conditions | |
13584 | --file=FILE[:TEMPLATE] | |
13585 | instantiate the configuration file FILE | |
13586 | --header=FILE[:TEMPLATE] | |
13587 | instantiate the configuration header FILE | |
13588 | ||
13589 | Configuration files: | |
13590 | $config_files | |
13591 | ||
13592 | Configuration headers: | |
13593 | $config_headers | |
13594 | ||
13595 | Configuration commands: | |
13596 | $config_commands | |
13597 | ||
13598 | Report bugs to <bug-autoconf@gnu.org>." | |
daa2886c | 13599 | _ACEOF |
f5818d2f | 13600 | |
daa2886c | 13601 | cat >>$CONFIG_STATUS <<_ACEOF |
f5818d2f | 13602 | ac_cs_version="\\ |
f85d8da4 | 13603 | Wine config.status 20020509 |
daa2886c | 13604 | configured by $0, generated by GNU Autoconf 2.53, |
f5818d2f AJ |
13605 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
13606 | ||
13607 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 | |
13608 | Free Software Foundation, Inc. | |
13609 | This config.status script is free software; the Free Software Foundation | |
13610 | gives unlimited permission to copy, distribute and modify it." | |
13611 | srcdir=$srcdir | |
13612 | INSTALL="$INSTALL" | |
daa2886c | 13613 | _ACEOF |
f5818d2f | 13614 | |
daa2886c | 13615 | cat >>$CONFIG_STATUS <<\_ACEOF |
f5818d2f AJ |
13616 | # If no file are specified by the user, then we need to provide default |
13617 | # value. By we need to know if files were specified by the user. | |
13618 | ac_need_defaults=: | |
13619 | while test $# != 0 | |
e2991ea7 | 13620 | do |
f5818d2f AJ |
13621 | case $1 in |
13622 | --*=*) | |
13623 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
13624 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
13625 | shift | |
13626 | set dummy "$ac_option" "$ac_optarg" ${1+"$@"} | |
13627 | shift | |
13628 | ;; | |
13629 | -*);; | |
13630 | *) # This is not an option, so the user has probably given explicit | |
13631 | # arguments. | |
13632 | ac_need_defaults=false;; | |
13633 | esac | |
13634 | ||
13635 | case $1 in | |
13636 | # Handling of the options. | |
daa2886c AJ |
13637 | _ACEOF |
13638 | cat >>$CONFIG_STATUS <<_ACEOF | |
e2991ea7 | 13639 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
f5818d2f AJ |
13640 | echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" |
13641 | exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; | |
daa2886c AJ |
13642 | _ACEOF |
13643 | cat >>$CONFIG_STATUS <<\_ACEOF | |
f5818d2f AJ |
13644 | --version | --vers* | -V ) |
13645 | echo "$ac_cs_version"; exit 0 ;; | |
13646 | --he | --h) | |
13647 | # Conflict between --help and --header | |
daa2886c | 13648 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
f5818d2f AJ |
13649 | Try \`$0 --help' for more information." >&5 |
13650 | echo "$as_me: error: ambiguous option: $1 | |
13651 | Try \`$0 --help' for more information." >&2;} | |
13652 | { (exit 1); exit 1; }; };; | |
13653 | --help | --hel | -h ) | |
13654 | echo "$ac_cs_usage"; exit 0 ;; | |
13655 | --debug | --d* | -d ) | |
13656 | debug=: ;; | |
13657 | --file | --fil | --fi | --f ) | |
13658 | shift | |
13659 | CONFIG_FILES="$CONFIG_FILES $1" | |
13660 | ac_need_defaults=false;; | |
13661 | --header | --heade | --head | --hea ) | |
13662 | shift | |
13663 | CONFIG_HEADERS="$CONFIG_HEADERS $1" | |
13664 | ac_need_defaults=false;; | |
13665 | ||
13666 | # This is an error. | |
daa2886c | 13667 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
f5818d2f AJ |
13668 | Try \`$0 --help' for more information." >&5 |
13669 | echo "$as_me: error: unrecognized option: $1 | |
13670 | Try \`$0 --help' for more information." >&2;} | |
13671 | { (exit 1); exit 1; }; } ;; | |
13672 | ||
13673 | *) ac_config_targets="$ac_config_targets $1" ;; | |
13674 | ||
e2991ea7 | 13675 | esac |
f5818d2f | 13676 | shift |
e2991ea7 AJ |
13677 | done |
13678 | ||
f5818d2f | 13679 | _ACEOF |
e2991ea7 | 13680 | |
f5818d2f | 13681 | |
f5818d2f | 13682 | |
f5818d2f | 13683 | |
daa2886c AJ |
13684 | |
13685 | cat >>$CONFIG_STATUS <<\_ACEOF | |
f5818d2f AJ |
13686 | for ac_config_target in $ac_config_targets |
13687 | do | |
13688 | case "$ac_config_target" in | |
13689 | # Handling of arguments. | |
13690 | "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;; | |
13691 | "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;; | |
13692 | "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;; | |
13693 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
f5818d2f AJ |
13694 | "debugger/Makefile" ) CONFIG_FILES="$CONFIG_FILES debugger/Makefile" ;; |
13695 | "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;; | |
13696 | "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;; | |
13697 | "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;; | |
13698 | "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;; | |
34909c20 | 13699 | "dlls/comcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;; |
f5818d2f AJ |
13700 | "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;; |
13701 | "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;; | |
13702 | "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;; | |
13703 | "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;; | |
13704 | "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;; | |
13705 | "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;; | |
13706 | "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;; | |
13707 | "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;; | |
13708 | "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;; | |
13709 | "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;; | |
13710 | "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;; | |
13711 | "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;; | |
13712 | "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;; | |
13713 | "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;; | |
13714 | "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;; | |
13715 | "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;; | |
13716 | "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;; | |
13717 | "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;; | |
13718 | "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;; | |
13719 | "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;; | |
13720 | "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;; | |
0307f6dc | 13721 | "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;; |
bed67fc9 | 13722 | "dlls/msacm/msadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msadp32/Makefile" ;; |
bcb9c46c | 13723 | "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;; |
f5818d2f AJ |
13724 | "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;; |
13725 | "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;; | |
f6be044d | 13726 | "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;; |
f5818d2f AJ |
13727 | "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;; |
13728 | "dlls/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;; | |
13729 | "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;; | |
13730 | "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;; | |
13731 | "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;; | |
13732 | "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;; | |
13733 | "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;; | |
13734 | "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;; | |
13735 | "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;; | |
13736 | "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;; | |
13737 | "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;; | |
13738 | "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;; | |
13739 | "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;; | |
13740 | "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;; | |
13741 | "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;; | |
13742 | "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;; | |
13743 | "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;; | |
13744 | "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;; | |
13745 | "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;; | |
13746 | "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;; | |
13747 | "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;; | |
13748 | "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;; | |
13749 | "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;; | |
13750 | "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;; | |
13751 | "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;; | |
13752 | "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;; | |
13753 | "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;; | |
4c692b9b | 13754 | "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;; |
f5818d2f AJ |
13755 | "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;; |
13756 | "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;; | |
13757 | "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;; | |
6b0720f5 | 13758 | "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;; |
f5818d2f AJ |
13759 | "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;; |
13760 | "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;; | |
13761 | "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;; | |
13762 | "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;; | |
13763 | "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;; | |
13764 | "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;; | |
13765 | "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;; | |
13766 | "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;; | |
13767 | "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;; | |
13768 | "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;; | |
13769 | "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;; | |
13770 | "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;; | |
13771 | "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;; | |
13772 | "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;; | |
13773 | "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;; | |
13774 | "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;; | |
13775 | "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;; | |
13776 | "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;; | |
9b0ba7ca | 13777 | "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;; |
f5818d2f AJ |
13778 | "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;; |
13779 | "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;; | |
13780 | "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;; | |
13781 | "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;; | |
13782 | "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;; | |
13783 | "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;; | |
13784 | "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;; | |
13785 | "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;; | |
13786 | "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;; | |
f5818d2f AJ |
13787 | "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; |
13788 | "library/Makefile" ) CONFIG_FILES="$CONFIG_FILES library/Makefile" ;; | |
f5818d2f | 13789 | "miscemu/Makefile" ) CONFIG_FILES="$CONFIG_FILES miscemu/Makefile" ;; |
f5818d2f AJ |
13790 | "ole/Makefile" ) CONFIG_FILES="$CONFIG_FILES ole/Makefile" ;; |
13791 | "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;; | |
13792 | "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;; | |
13793 | "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;; | |
13794 | "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;; | |
13795 | "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;; | |
acfda14a | 13796 | "programs/expand/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;; |
f5818d2f AJ |
13797 | "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;; |
13798 | "programs/osversioncheck/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/osversioncheck/Makefile" ;; | |
13799 | "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;; | |
13800 | "programs/regapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regapi/Makefile" ;; | |
4e2e176c | 13801 | "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;; |
2f0d85c2 | 13802 | "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;; |
f5818d2f AJ |
13803 | "programs/regtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regtest/Makefile" ;; |
13804 | "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;; | |
13805 | "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;; | |
13806 | "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;; | |
13807 | "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;; | |
13808 | "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;; | |
0d8a9fac | 13809 | "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;; |
f5818d2f AJ |
13810 | "programs/winetest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;; |
13811 | "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;; | |
13812 | "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;; | |
f5818d2f AJ |
13813 | "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;; |
13814 | "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; | |
13815 | "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;; | |
13816 | "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;; | |
13817 | "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;; | |
13818 | "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;; | |
13819 | "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;; | |
13820 | "tsx11/Makefile" ) CONFIG_FILES="$CONFIG_FILES tsx11/Makefile" ;; | |
13821 | "unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES unicode/Makefile" ;; | |
9bb05fc4 | 13822 | "controls" ) CONFIG_COMMANDS="$CONFIG_COMMANDS controls" ;; |
f5818d2f AJ |
13823 | "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;; |
13824 | "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;; | |
13825 | "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;; | |
13826 | "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;; | |
13827 | "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;; | |
13828 | "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;; | |
13829 | "dlls/dinput/joystick" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/joystick" ;; | |
13830 | "dlls/dinput/keyboard" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/keyboard" ;; | |
13831 | "dlls/dinput/mouse" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/mouse" ;; | |
89118568 AJ |
13832 | "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;; |
13833 | "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;; | |
13834 | "dlls/gdi/win16drv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/win16drv" ;; | |
f5818d2f | 13835 | "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;; |
c72f0b21 | 13836 | "dlls/kernel/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/tests" ;; |
e8d97701 | 13837 | "dlls/oleaut32/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/oleaut32/tests" ;; |
c74a791a | 13838 | "dlls/shlwapi/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/shlwapi/tests" ;; |
f5818d2f AJ |
13839 | "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;; |
13840 | "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;; | |
c72f0b21 | 13841 | "dlls/user/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/tests" ;; |
f5818d2f | 13842 | "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;; |
9a68b7be | 13843 | "dlls/winsock/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/winsock/tests" ;; |
9bb05fc4 AJ |
13844 | "files" ) CONFIG_COMMANDS="$CONFIG_COMMANDS files" ;; |
13845 | "graphics" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics" ;; | |
13846 | "graphics/x11drv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics/x11drv" ;; | |
13847 | "if1632" ) CONFIG_COMMANDS="$CONFIG_COMMANDS if1632" ;; | |
f5818d2f | 13848 | "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;; |
9bb05fc4 AJ |
13849 | "loader" ) CONFIG_COMMANDS="$CONFIG_COMMANDS loader" ;; |
13850 | "loader/ne" ) CONFIG_COMMANDS="$CONFIG_COMMANDS loader/ne" ;; | |
13851 | "memory" ) CONFIG_COMMANDS="$CONFIG_COMMANDS memory" ;; | |
13852 | "misc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS misc" ;; | |
13853 | "msdos" ) CONFIG_COMMANDS="$CONFIG_COMMANDS msdos" ;; | |
13854 | "objects" ) CONFIG_COMMANDS="$CONFIG_COMMANDS objects" ;; | |
c72f0b21 AJ |
13855 | "programs/regapi/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regapi/tests" ;; |
13856 | "programs/winetest/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/winetest/tests" ;; | |
9bb05fc4 AJ |
13857 | "relay32" ) CONFIG_COMMANDS="$CONFIG_COMMANDS relay32" ;; |
13858 | "scheduler" ) CONFIG_COMMANDS="$CONFIG_COMMANDS scheduler" ;; | |
13859 | "win32" ) CONFIG_COMMANDS="$CONFIG_COMMANDS win32" ;; | |
13860 | "windows" ) CONFIG_COMMANDS="$CONFIG_COMMANDS windows" ;; | |
f5818d2f | 13861 | "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;; |
daa2886c | 13862 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
f5818d2f AJ |
13863 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
13864 | { (exit 1); exit 1; }; };; | |
13865 | esac | |
13866 | done | |
13867 | ||
13868 | # If the user did not use the arguments to specify the items to instantiate, | |
13869 | # then the envvar interface is used. Set only those that are not. | |
13870 | # We use the long form for the default assignment because of an extremely | |
13871 | # bizarre bug on SunOS 4.1.3. | |
13872 | if $ac_need_defaults; then | |
13873 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
13874 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
13875 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
13876 | fi | |
13877 | ||
13878 | # Create a temporary directory, and hook for its removal unless debugging. | |
13879 | $debug || | |
13880 | { | |
13881 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
13882 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
13883 | } | |
13884 | ||
13885 | # Create a (secure) tmp directory for tmp files. | |
13886 | : ${TMPDIR=/tmp} | |
13887 | { | |
13888 | tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && | |
13889 | test -n "$tmp" && test -d "$tmp" | |
13890 | } || | |
13891 | { | |
13892 | tmp=$TMPDIR/cs$$-$RANDOM | |
13893 | (umask 077 && mkdir $tmp) | |
13894 | } || | |
13895 | { | |
13896 | echo "$me: cannot create a temporary directory in $TMPDIR" >&2 | |
13897 | { (exit 1); exit 1; } | |
13898 | } | |
13899 | ||
daa2886c | 13900 | _ACEOF |
f5818d2f | 13901 | |
daa2886c | 13902 | cat >>$CONFIG_STATUS <<_ACEOF |
f5818d2f AJ |
13903 | |
13904 | # | |
13905 | # CONFIG_FILES section. | |
13906 | # | |
13907 | ||
13908 | # No need to generate the scripts if there are no CONFIG_FILES. | |
13909 | # This happens for instance when ./config.status config.h | |
13910 | if test -n "\$CONFIG_FILES"; then | |
13911 | # Protect against being on the right side of a sed subst in config.status. | |
13912 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
13913 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
13914 | s,@SHELL@,$SHELL,;t t | |
daa2886c AJ |
13915 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
13916 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
13917 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
13918 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
13919 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
13920 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
f5818d2f AJ |
13921 | s,@exec_prefix@,$exec_prefix,;t t |
13922 | s,@prefix@,$prefix,;t t | |
13923 | s,@program_transform_name@,$program_transform_name,;t t | |
13924 | s,@bindir@,$bindir,;t t | |
13925 | s,@sbindir@,$sbindir,;t t | |
13926 | s,@libexecdir@,$libexecdir,;t t | |
13927 | s,@datadir@,$datadir,;t t | |
13928 | s,@sysconfdir@,$sysconfdir,;t t | |
13929 | s,@sharedstatedir@,$sharedstatedir,;t t | |
13930 | s,@localstatedir@,$localstatedir,;t t | |
13931 | s,@libdir@,$libdir,;t t | |
13932 | s,@includedir@,$includedir,;t t | |
13933 | s,@oldincludedir@,$oldincludedir,;t t | |
13934 | s,@infodir@,$infodir,;t t | |
13935 | s,@mandir@,$mandir,;t t | |
f5818d2f AJ |
13936 | s,@build_alias@,$build_alias,;t t |
13937 | s,@host_alias@,$host_alias,;t t | |
13938 | s,@target_alias@,$target_alias,;t t | |
daa2886c | 13939 | s,@DEFS@,$DEFS,;t t |
f5818d2f AJ |
13940 | s,@ECHO_C@,$ECHO_C,;t t |
13941 | s,@ECHO_N@,$ECHO_N,;t t | |
13942 | s,@ECHO_T@,$ECHO_T,;t t | |
f5818d2f AJ |
13943 | s,@LIBS@,$LIBS,;t t |
13944 | s,@OPTIONS@,$OPTIONS,;t t | |
13945 | s,@build@,$build,;t t | |
13946 | s,@build_cpu@,$build_cpu,;t t | |
13947 | s,@build_vendor@,$build_vendor,;t t | |
13948 | s,@build_os@,$build_os,;t t | |
13949 | s,@host@,$host,;t t | |
13950 | s,@host_cpu@,$host_cpu,;t t | |
13951 | s,@host_vendor@,$host_vendor,;t t | |
13952 | s,@host_os@,$host_os,;t t | |
f5818d2f AJ |
13953 | s,@SET_MAKE@,$SET_MAKE,;t t |
13954 | s,@CC@,$CC,;t t | |
13955 | s,@CFLAGS@,$CFLAGS,;t t | |
13956 | s,@LDFLAGS@,$LDFLAGS,;t t | |
13957 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
13958 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
13959 | s,@EXEEXT@,$EXEEXT,;t t | |
13960 | s,@OBJEXT@,$OBJEXT,;t t | |
13961 | s,@CPP@,$CPP,;t t | |
fc01b729 | 13962 | s,@TOOLSDIR@,$TOOLSDIR,;t t |
f5818d2f AJ |
13963 | s,@X_CFLAGS@,$X_CFLAGS,;t t |
13964 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t | |
13965 | s,@X_LIBS@,$X_LIBS,;t t | |
13966 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t | |
13967 | s,@YACC@,$YACC,;t t | |
13968 | s,@LEX@,$LEX,;t t | |
13969 | s,@LEXLIB@,$LEXLIB,;t t | |
13970 | s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t | |
13971 | s,@XYACC@,$XYACC,;t t | |
13972 | s,@XLEX@,$XLEX,;t t | |
fc01b729 AJ |
13973 | s,@AR@,$AR,;t t |
13974 | s,@ac_ct_AR@,$ac_ct_AR,;t t | |
f5818d2f AJ |
13975 | s,@RANLIB@,$RANLIB,;t t |
13976 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
fc01b729 AJ |
13977 | s,@STRIP@,$STRIP,;t t |
13978 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
13979 | s,@WINDRES@,$WINDRES,;t t | |
13980 | s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t | |
f5818d2f AJ |
13981 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
13982 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
13983 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
13984 | s,@LN_S@,$LN_S,;t t | |
df234a9f | 13985 | s,@LN@,$LN,;t t |
f5818d2f AJ |
13986 | s,@C2MAN@,$C2MAN,;t t |
13987 | s,@LDCONFIG@,$LDCONFIG,;t t | |
fc01b729 AJ |
13988 | s,@LDCOMBINE@,$LDCOMBINE,;t t |
13989 | s,@ac_ct_LDCOMBINE@,$ac_ct_LDCOMBINE,;t t | |
f5818d2f AJ |
13990 | s,@LINT@,$LINT,;t t |
13991 | s,@LINTFLAGS@,$LINTFLAGS,;t t | |
f5818d2f AJ |
13992 | s,@JPEGLIB@,$JPEGLIB,;t t |
13993 | s,@XLIB@,$XLIB,;t t | |
13994 | s,@XFILES@,$XFILES,;t t | |
13995 | s,@OPENGLFILES@,$OPENGLFILES,;t t | |
13996 | s,@GLU32FILES@,$GLU32FILES,;t t | |
13997 | s,@CURSESLIBS@,$CURSESLIBS,;t t | |
13998 | s,@CUPSLIBS@,$CUPSLIBS,;t t | |
6b0720f5 SQH |
13999 | s,@sane_devel@,$sane_devel,;t t |
14000 | s,@SANELIBS@,$SANELIBS,;t t | |
14001 | s,@SANEINCL@,$SANEINCL,;t t | |
f5818d2f AJ |
14002 | s,@ft_devel@,$ft_devel,;t t |
14003 | s,@ft_devel2@,$ft_devel2,;t t | |
f5818d2f | 14004 | s,@FREETYPEINCL@,$FREETYPEINCL,;t t |
9b0ba7ca CM |
14005 | s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t |
14006 | s,@ARTSLIBS@,$ARTSLIBS,;t t | |
14007 | s,@ARTSINCL@,$ARTSINCL,;t t | |
f5818d2f | 14008 | s,@DLLWRAP@,$DLLWRAP,;t t |
fc01b729 | 14009 | s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t |
fa3a5360 | 14010 | s,@DLLIBS@,$DLLIBS,;t t |
f5818d2f | 14011 | s,@DLLFLAGS@,$DLLFLAGS,;t t |
c1bfca04 | 14012 | s,@DLLEXT@,$DLLEXT,;t t |
f5818d2f AJ |
14013 | s,@LDSHARED@,$LDSHARED,;t t |
14014 | s,@LDDLLFLAGS@,$LDDLLFLAGS,;t t | |
14015 | s,@LIBEXT@,$LIBEXT,;t t | |
14016 | s,@LDPATH@,$LDPATH,;t t | |
67e8dc68 | 14017 | s,@LDD@,$LDD,;t t |
f5818d2f | 14018 | s,@ALLOCA@,$ALLOCA,;t t |
ff8331ea | 14019 | /@MAKE_RULES@/r $MAKE_RULES |
f5818d2f | 14020 | s,@MAKE_RULES@,,;t t |
d0edc5fe | 14021 | /@MAKE_DLL_RULES@/r $MAKE_DLL_RULES |
f5818d2f | 14022 | s,@MAKE_DLL_RULES@,,;t t |
626f425b | 14023 | /@MAKE_PROG_RULES@/r $MAKE_PROG_RULES |
f5818d2f | 14024 | s,@MAKE_PROG_RULES@,,;t t |
e2991ea7 | 14025 | CEOF |
f5818d2f | 14026 | |
daa2886c | 14027 | _ACEOF |
da0cfb36 | 14028 | |
daa2886c | 14029 | cat >>$CONFIG_STATUS <<\_ACEOF |
f5818d2f AJ |
14030 | # Split the substitutions into bite-sized pieces for seds with |
14031 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
14032 | ac_max_sed_lines=48 | |
14033 | ac_sed_frag=1 # Number of current file. | |
14034 | ac_beg=1 # First line for current file. | |
14035 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
14036 | ac_more_lines=: | |
14037 | ac_sed_cmds= | |
14038 | while $ac_more_lines; do | |
14039 | if test $ac_beg -gt 1; then | |
14040 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
14041 | else | |
14042 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
14043 | fi | |
14044 | if test ! -s $tmp/subs.frag; then | |
14045 | ac_more_lines=false | |
da0cfb36 | 14046 | else |
f5818d2f AJ |
14047 | # The purpose of the label and of the branching condition is to |
14048 | # speed up the sed processing (if there are no `@' at all, there | |
14049 | # is no need to browse any of the substitutions). | |
14050 | # These are the two extra sed commands mentioned above. | |
14051 | (echo ':t | |
14052 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
14053 | if test -z "$ac_sed_cmds"; then | |
14054 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
14055 | else | |
14056 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
14057 | fi | |
14058 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
14059 | ac_beg=$ac_end | |
14060 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
da0cfb36 | 14061 | fi |
f5818d2f AJ |
14062 | done |
14063 | if test -z "$ac_sed_cmds"; then | |
14064 | ac_sed_cmds=cat | |
da0cfb36 | 14065 | fi |
f5818d2f | 14066 | fi # test -n "$CONFIG_FILES" |
da0cfb36 | 14067 | |
daa2886c AJ |
14068 | _ACEOF |
14069 | cat >>$CONFIG_STATUS <<\_ACEOF | |
f5818d2f | 14070 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
7e6ae4ba | 14071 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
f5818d2f AJ |
14072 | case $ac_file in |
14073 | - | *:- | *:-:* ) # input from stdin | |
14074 | cat >$tmp/stdin | |
14075 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
14076 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
14077 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
14078 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
14079 | * ) ac_file_in=$ac_file.in ;; | |
e2991ea7 AJ |
14080 | esac |
14081 | ||
f5818d2f | 14082 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
daa2886c AJ |
14083 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
14084 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
f5818d2f AJ |
14085 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
14086 | X"$ac_file" : 'X\(//\)$' \| \ | |
14087 | X"$ac_file" : 'X\(/\)' \| \ | |
14088 | . : '\(.\)' 2>/dev/null || | |
14089 | echo X"$ac_file" | | |
14090 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
14091 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
14092 | /^X\(\/\/\)$/{ s//\1/; q; } | |
14093 | /^X\(\/\).*/{ s//\1/; q; } | |
14094 | s/.*/./; q'` | |
daa2886c | 14095 | { case "$ac_dir" in |
f5818d2f AJ |
14096 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; |
14097 | *) as_incr_dir=.;; | |
14098 | esac | |
14099 | as_dummy="$ac_dir" | |
14100 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do | |
14101 | case $as_mkdir_dir in | |
14102 | # Skip DOS drivespec | |
14103 | ?:) as_incr_dir=$as_mkdir_dir ;; | |
14104 | *) | |
14105 | as_incr_dir=$as_incr_dir/$as_mkdir_dir | |
daa2886c AJ |
14106 | test -d "$as_incr_dir" || |
14107 | mkdir "$as_incr_dir" || | |
14108 | { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 | |
14109 | echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} | |
14110 | { (exit 1); exit 1; }; } | |
f5818d2f AJ |
14111 | ;; |
14112 | esac | |
14113 | done; } | |
14114 | ||
daa2886c | 14115 | ac_builddir=. |
e2991ea7 | 14116 | |
daa2886c AJ |
14117 | if test "$ac_dir" != .; then |
14118 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
14119 | # A "../" for each directory in $ac_dir_suffix. | |
14120 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
14121 | else | |
14122 | ac_dir_suffix= ac_top_builddir= | |
14123 | fi | |
14124 | ||
14125 | case $srcdir in | |
14126 | .) # No --srcdir option. We are building in place. | |
14127 | ac_srcdir=. | |
14128 | if test -z "$ac_top_builddir"; then | |
14129 | ac_top_srcdir=. | |
14130 | else | |
14131 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
14132 | fi ;; | |
14133 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
14134 | ac_srcdir=$srcdir$ac_dir_suffix; | |
14135 | ac_top_srcdir=$srcdir ;; | |
e2991ea7 | 14136 | *) # Relative path. |
daa2886c AJ |
14137 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
14138 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
14139 | esac | |
14140 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | |
14141 | # absolute. | |
14142 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
14143 | ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` | |
14144 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | |
14145 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
14146 | ||
e2991ea7 | 14147 | |
f5818d2f AJ |
14148 | case $INSTALL in |
14149 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
daa2886c | 14150 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
d7d4fdf8 | 14151 | esac |
da0cfb36 | 14152 | |
f5818d2f | 14153 | if test x"$ac_file" != x-; then |
daa2886c | 14154 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
f5818d2f AJ |
14155 | echo "$as_me: creating $ac_file" >&6;} |
14156 | rm -f "$ac_file" | |
14157 | fi | |
14158 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
14159 | # use $as_me), people would be surprised to read: | |
daa2886c AJ |
14160 | # /* config.h. Generated by config.status. */ |
14161 | if test x"$ac_file" = x-; then | |
14162 | configure_input= | |
14163 | else | |
14164 | configure_input="$ac_file. " | |
14165 | fi | |
14166 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
14167 | sed 's,.*/,,'` by configure." | |
f5818d2f AJ |
14168 | |
14169 | # First look for the input files in the build tree, otherwise in the | |
14170 | # src tree. | |
14171 | ac_file_inputs=`IFS=: | |
14172 | for f in $ac_file_in; do | |
14173 | case $f in | |
14174 | -) echo $tmp/stdin ;; | |
14175 | [\\/$]*) | |
14176 | # Absolute (can't be DOS-style, as IFS=:) | |
daa2886c | 14177 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
f5818d2f AJ |
14178 | echo "$as_me: error: cannot find input file: $f" >&2;} |
14179 | { (exit 1); exit 1; }; } | |
14180 | echo $f;; | |
14181 | *) # Relative | |
14182 | if test -f "$f"; then | |
14183 | # Build tree | |
14184 | echo $f | |
14185 | elif test -f "$srcdir/$f"; then | |
14186 | # Source tree | |
14187 | echo $srcdir/$f | |
14188 | else | |
14189 | # /dev/null tree | |
daa2886c | 14190 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
f5818d2f AJ |
14191 | echo "$as_me: error: cannot find input file: $f" >&2;} |
14192 | { (exit 1); exit 1; }; } | |
14193 | fi;; | |
14194 | esac | |
14195 | done` || { (exit 1); exit 1; } | |
daa2886c AJ |
14196 | _ACEOF |
14197 | cat >>$CONFIG_STATUS <<_ACEOF | |
f5818d2f AJ |
14198 | sed "$ac_vpsub |
14199 | $extrasub | |
daa2886c AJ |
14200 | _ACEOF |
14201 | cat >>$CONFIG_STATUS <<\_ACEOF | |
f5818d2f AJ |
14202 | :t |
14203 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
14204 | s,@configure_input@,$configure_input,;t t | |
14205 | s,@srcdir@,$ac_srcdir,;t t | |
daa2886c | 14206 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
f5818d2f | 14207 | s,@top_srcdir@,$ac_top_srcdir,;t t |
daa2886c AJ |
14208 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
14209 | s,@builddir@,$ac_builddir,;t t | |
14210 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
14211 | s,@top_builddir@,$ac_top_builddir,;t t | |
14212 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
f5818d2f AJ |
14213 | s,@INSTALL@,$ac_INSTALL,;t t |
14214 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
14215 | rm -f $tmp/stdin | |
14216 | if test x"$ac_file" != x-; then | |
14217 | mv $tmp/out $ac_file | |
14218 | else | |
14219 | cat $tmp/out | |
14220 | rm -f $tmp/out | |
14221 | fi | |
7e6ae4ba | 14222 | |
f5818d2f | 14223 | done |
daa2886c AJ |
14224 | _ACEOF |
14225 | cat >>$CONFIG_STATUS <<\_ACEOF | |
f5818d2f AJ |
14226 | |
14227 | # | |
14228 | # CONFIG_HEADER section. | |
14229 | # | |
e2991ea7 | 14230 | |
18f92e76 AJ |
14231 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
14232 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
14233 | # | |
14234 | # ac_d sets the value in "#define NAME VALUE" lines. | |
f5818d2f AJ |
14235 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
14236 | ac_dB='[ ].*$,\1#\2' | |
14237 | ac_dC=' ' | |
14238 | ac_dD=',;t' | |
14239 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
14240 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
14241 | ac_uB='$,\1#\2define\3' | |
18f92e76 | 14242 | ac_uC=' ' |
f5818d2f AJ |
14243 | ac_uD=',;t' |
14244 | ||
14245 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
7e6ae4ba | 14246 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
f5818d2f AJ |
14247 | case $ac_file in |
14248 | - | *:- | *:-:* ) # input from stdin | |
14249 | cat >$tmp/stdin | |
14250 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
14251 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
14252 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
14253 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
14254 | * ) ac_file_in=$ac_file.in ;; | |
18f92e76 AJ |
14255 | esac |
14256 | ||
daa2886c | 14257 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
f5818d2f AJ |
14258 | echo "$as_me: creating $ac_file" >&6;} |
14259 | ||
14260 | # First look for the input files in the build tree, otherwise in the | |
14261 | # src tree. | |
14262 | ac_file_inputs=`IFS=: | |
14263 | for f in $ac_file_in; do | |
14264 | case $f in | |
14265 | -) echo $tmp/stdin ;; | |
14266 | [\\/$]*) | |
14267 | # Absolute (can't be DOS-style, as IFS=:) | |
daa2886c | 14268 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
f5818d2f AJ |
14269 | echo "$as_me: error: cannot find input file: $f" >&2;} |
14270 | { (exit 1); exit 1; }; } | |
14271 | echo $f;; | |
14272 | *) # Relative | |
14273 | if test -f "$f"; then | |
14274 | # Build tree | |
14275 | echo $f | |
14276 | elif test -f "$srcdir/$f"; then | |
14277 | # Source tree | |
14278 | echo $srcdir/$f | |
14279 | else | |
14280 | # /dev/null tree | |
daa2886c | 14281 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
f5818d2f AJ |
14282 | echo "$as_me: error: cannot find input file: $f" >&2;} |
14283 | { (exit 1); exit 1; }; } | |
14284 | fi;; | |
14285 | esac | |
14286 | done` || { (exit 1); exit 1; } | |
14287 | # Remove the trailing spaces. | |
14288 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
14289 | ||
daa2886c | 14290 | _ACEOF |
f5818d2f AJ |
14291 | |
14292 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
14293 | # `conftest.undefs', that substitutes the proper values into | |
14294 | # config.h.in to produce config.h. The first handles `#define' | |
14295 | # templates, and the second `#undef' templates. | |
14296 | # And first: Protect against being on the right side of a sed subst in | |
14297 | # config.status. Protect against being in an unquoted here document | |
14298 | # in config.status. | |
14299 | rm -f conftest.defines conftest.undefs | |
14300 | # Using a here document instead of a string reduces the quoting nightmare. | |
14301 | # Putting comments in sed scripts is not portable. | |
14302 | # | |
14303 | # `end' is used to avoid that the second main sed command (meant for | |
14304 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
14305 | # See the Autoconf documentation for `clear'. | |
daa2886c | 14306 | cat >confdef2sed.sed <<\_ACEOF |
f5818d2f AJ |
14307 | s/[\\&,]/\\&/g |
14308 | s,[\\$`],\\&,g | |
14309 | t clear | |
14310 | : clear | |
daa2886c | 14311 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
f5818d2f AJ |
14312 | t end |
14313 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
14314 | : end | |
daa2886c | 14315 | _ACEOF |
f5818d2f AJ |
14316 | # If some macros were called several times there might be several times |
14317 | # the same #defines, which is useless. Nevertheless, we may not want to | |
14318 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
14319 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
14320 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
14321 | rm -f confdef2sed.sed | |
18f92e76 AJ |
14322 | |
14323 | # This sed command replaces #undef with comments. This is necessary, for | |
14324 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
14325 | # on some systems where configure will not decide to define it. | |
daa2886c | 14326 | cat >>conftest.undefs <<\_ACEOF |
f5818d2f | 14327 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
daa2886c | 14328 | _ACEOF |
18f92e76 | 14329 | |
f5818d2f AJ |
14330 | # Break up conftest.defines because some shells have a limit on the size |
14331 | # of here documents, and old seds have small limits too (100 cmds). | |
14332 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
14333 | echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
14334 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
14335 | echo ' :' >>$CONFIG_STATUS | |
14336 | rm -f conftest.tail | |
14337 | while grep . conftest.defines >/dev/null | |
14338 | do | |
14339 | # Write a limited-size here document to $tmp/defines.sed. | |
14340 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
14341 | # Speed up: don't consider the non `#define' lines. | |
14342 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
14343 | # Work around the forget-to-reset-the-flag bug. | |
14344 | echo 't clr' >>$CONFIG_STATUS | |
14345 | echo ': clr' >>$CONFIG_STATUS | |
14346 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
14347 | echo 'CEOF | |
14348 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
14349 | rm -f $tmp/in | |
14350 | mv $tmp/out $tmp/in | |
14351 | ' >>$CONFIG_STATUS | |
14352 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
14353 | rm -f conftest.defines | |
14354 | mv conftest.tail conftest.defines | |
14355 | done | |
14356 | rm -f conftest.defines | |
14357 | echo ' fi # egrep' >>$CONFIG_STATUS | |
14358 | echo >>$CONFIG_STATUS | |
18f92e76 | 14359 | |
f5818d2f AJ |
14360 | # Break up conftest.undefs because some shells have a limit on the size |
14361 | # of here documents, and old seds have small limits too (100 cmds). | |
14362 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
18f92e76 | 14363 | rm -f conftest.tail |
f5818d2f | 14364 | while grep . conftest.undefs >/dev/null |
18f92e76 | 14365 | do |
f5818d2f AJ |
14366 | # Write a limited-size here document to $tmp/undefs.sed. |
14367 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
14368 | # Speed up: don't consider the non `#undef' | |
14369 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
14370 | # Work around the forget-to-reset-the-flag bug. | |
14371 | echo 't clr' >>$CONFIG_STATUS | |
14372 | echo ': clr' >>$CONFIG_STATUS | |
14373 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
18f92e76 | 14374 | echo 'CEOF |
f5818d2f AJ |
14375 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
14376 | rm -f $tmp/in | |
14377 | mv $tmp/out $tmp/in | |
14378 | ' >>$CONFIG_STATUS | |
14379 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
14380 | rm -f conftest.undefs | |
14381 | mv conftest.tail conftest.undefs | |
18f92e76 | 14382 | done |
f5818d2f AJ |
14383 | rm -f conftest.undefs |
14384 | ||
daa2886c | 14385 | cat >>$CONFIG_STATUS <<\_ACEOF |
f5818d2f AJ |
14386 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
14387 | # use $as_me), people would be surprised to read: | |
daa2886c | 14388 | # /* config.h. Generated by config.status. */ |
f5818d2f | 14389 | if test x"$ac_file" = x-; then |
daa2886c | 14390 | echo "/* Generated by configure. */" >$tmp/config.h |
18f92e76 | 14391 | else |
daa2886c | 14392 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
f5818d2f AJ |
14393 | fi |
14394 | cat $tmp/in >>$tmp/config.h | |
14395 | rm -f $tmp/in | |
14396 | if test x"$ac_file" != x-; then | |
14397 | if cmp -s $ac_file $tmp/config.h 2>/dev/null; then | |
daa2886c | 14398 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
f5818d2f AJ |
14399 | echo "$as_me: $ac_file is unchanged" >&6;} |
14400 | else | |
daa2886c AJ |
14401 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
14402 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
f5818d2f AJ |
14403 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
14404 | X"$ac_file" : 'X\(//\)$' \| \ | |
14405 | X"$ac_file" : 'X\(/\)' \| \ | |
14406 | . : '\(.\)' 2>/dev/null || | |
14407 | echo X"$ac_file" | | |
14408 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
14409 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
14410 | /^X\(\/\/\)$/{ s//\1/; q; } | |
14411 | /^X\(\/\).*/{ s//\1/; q; } | |
14412 | s/.*/./; q'` | |
daa2886c | 14413 | { case "$ac_dir" in |
f5818d2f AJ |
14414 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; |
14415 | *) as_incr_dir=.;; | |
14416 | esac | |
14417 | as_dummy="$ac_dir" | |
14418 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do | |
14419 | case $as_mkdir_dir in | |
14420 | # Skip DOS drivespec | |
14421 | ?:) as_incr_dir=$as_mkdir_dir ;; | |
14422 | *) | |
14423 | as_incr_dir=$as_incr_dir/$as_mkdir_dir | |
daa2886c AJ |
14424 | test -d "$as_incr_dir" || |
14425 | mkdir "$as_incr_dir" || | |
14426 | { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 | |
14427 | echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} | |
14428 | { (exit 1); exit 1; }; } | |
f5818d2f AJ |
14429 | ;; |
14430 | esac | |
14431 | done; } | |
14432 | ||
f5818d2f AJ |
14433 | rm -f $ac_file |
14434 | mv $tmp/config.h $ac_file | |
18f92e76 | 14435 | fi |
f5818d2f AJ |
14436 | else |
14437 | cat $tmp/config.h | |
14438 | rm -f $tmp/config.h | |
18f92e76 | 14439 | fi |
f5818d2f | 14440 | done |
daa2886c AJ |
14441 | _ACEOF |
14442 | cat >>$CONFIG_STATUS <<\_ACEOF | |
18f92e76 | 14443 | |
f5818d2f AJ |
14444 | # |
14445 | # CONFIG_COMMANDS section. | |
14446 | # | |
14447 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
14448 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
14449 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
daa2886c AJ |
14450 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
14451 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14452 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
14453 | X"$ac_dest" : 'X\(//\)$' \| \ | |
14454 | X"$ac_dest" : 'X\(/\)' \| \ | |
14455 | . : '\(.\)' 2>/dev/null || | |
14456 | echo X"$ac_dest" | | |
14457 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
14458 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
14459 | /^X\(\/\/\)$/{ s//\1/; q; } | |
14460 | /^X\(\/\).*/{ s//\1/; q; } | |
14461 | s/.*/./; q'` | |
14462 | ac_builddir=. | |
f5818d2f | 14463 | |
daa2886c AJ |
14464 | if test "$ac_dir" != .; then |
14465 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
14466 | # A "../" for each directory in $ac_dir_suffix. | |
14467 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
14468 | else | |
14469 | ac_dir_suffix= ac_top_builddir= | |
14470 | fi | |
14471 | ||
14472 | case $srcdir in | |
14473 | .) # No --srcdir option. We are building in place. | |
14474 | ac_srcdir=. | |
14475 | if test -z "$ac_top_builddir"; then | |
14476 | ac_top_srcdir=. | |
14477 | else | |
14478 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
14479 | fi ;; | |
14480 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
14481 | ac_srcdir=$srcdir$ac_dir_suffix; | |
14482 | ac_top_srcdir=$srcdir ;; | |
14483 | *) # Relative path. | |
14484 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
14485 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
14486 | esac | |
14487 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | |
14488 | # absolute. | |
14489 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
14490 | ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` | |
14491 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | |
14492 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
14493 | ||
14494 | ||
14495 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
14496 | echo "$as_me: executing $ac_dest commands" >&6;} | |
f5818d2f | 14497 | case $ac_dest in |
9bb05fc4 AJ |
14498 | controls ) test -d "controls" || ({ echo "$as_me:$LINENO: creating controls" >&5 |
14499 | echo "$as_me: creating controls" >&6;} && mkdir "controls") ;; | |
daa2886c | 14500 | dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/d3ddevice" >&5 |
f5818d2f | 14501 | echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;; |
daa2886c | 14502 | dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dclipper" >&5 |
f5818d2f | 14503 | echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;; |
daa2886c | 14504 | dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/ddraw" >&5 |
f5818d2f | 14505 | echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;; |
daa2886c | 14506 | dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/direct3d" >&5 |
f5818d2f | 14507 | echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;; |
daa2886c | 14508 | dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dpalette" >&5 |
f5818d2f | 14509 | echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;; |
daa2886c | 14510 | dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dsurface" >&5 |
f5818d2f | 14511 | echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;; |
daa2886c | 14512 | dlls/dinput/joystick ) test -d "dlls/dinput/joystick" || ({ echo "$as_me:$LINENO: creating dlls/dinput/joystick" >&5 |
f5818d2f | 14513 | echo "$as_me: creating dlls/dinput/joystick" >&6;} && mkdir "dlls/dinput/joystick") ;; |
daa2886c | 14514 | dlls/dinput/keyboard ) test -d "dlls/dinput/keyboard" || ({ echo "$as_me:$LINENO: creating dlls/dinput/keyboard" >&5 |
f5818d2f | 14515 | echo "$as_me: creating dlls/dinput/keyboard" >&6;} && mkdir "dlls/dinput/keyboard") ;; |
daa2886c | 14516 | dlls/dinput/mouse ) test -d "dlls/dinput/mouse" || ({ echo "$as_me:$LINENO: creating dlls/dinput/mouse" >&5 |
f5818d2f | 14517 | echo "$as_me: creating dlls/dinput/mouse" >&6;} && mkdir "dlls/dinput/mouse") ;; |
daa2886c | 14518 | dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5 |
89118568 | 14519 | echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;; |
daa2886c | 14520 | dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5 |
89118568 | 14521 | echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;; |
daa2886c | 14522 | dlls/gdi/win16drv ) test -d "dlls/gdi/win16drv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/win16drv" >&5 |
89118568 | 14523 | echo "$as_me: creating dlls/gdi/win16drv" >&6;} && mkdir "dlls/gdi/win16drv") ;; |
daa2886c | 14524 | dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5 |
f5818d2f | 14525 | echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;; |
daa2886c | 14526 | dlls/kernel/tests ) test -d "dlls/kernel/tests" || ({ echo "$as_me:$LINENO: creating dlls/kernel/tests" >&5 |
c72f0b21 | 14527 | echo "$as_me: creating dlls/kernel/tests" >&6;} && mkdir "dlls/kernel/tests") ;; |
daa2886c | 14528 | dlls/oleaut32/tests ) test -d "dlls/oleaut32/tests" || ({ echo "$as_me:$LINENO: creating dlls/oleaut32/tests" >&5 |
e8d97701 | 14529 | echo "$as_me: creating dlls/oleaut32/tests" >&6;} && mkdir "dlls/oleaut32/tests") ;; |
c74a791a JS |
14530 | dlls/shlwapi/tests ) test -d "dlls/shlwapi/tests" || ({ echo "$as_me:$LINENO: creating dlls/shlwapi/tests" >&5 |
14531 | echo "$as_me: creating dlls/shlwapi/tests" >&6;} && mkdir "dlls/shlwapi/tests") ;; | |
daa2886c | 14532 | dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:$LINENO: creating dlls/user/dde" >&5 |
f5818d2f | 14533 | echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;; |
daa2886c | 14534 | dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5 |
f5818d2f | 14535 | echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;; |
daa2886c | 14536 | dlls/user/tests ) test -d "dlls/user/tests" || ({ echo "$as_me:$LINENO: creating dlls/user/tests" >&5 |
c72f0b21 | 14537 | echo "$as_me: creating dlls/user/tests" >&6;} && mkdir "dlls/user/tests") ;; |
daa2886c | 14538 | dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5 |
f5818d2f | 14539 | echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;; |
9a68b7be AJ |
14540 | dlls/winsock/tests ) test -d "dlls/winsock/tests" || ({ echo "$as_me:$LINENO: creating dlls/winsock/tests" >&5 |
14541 | echo "$as_me: creating dlls/winsock/tests" >&6;} && mkdir "dlls/winsock/tests") ;; | |
9bb05fc4 AJ |
14542 | files ) test -d "files" || ({ echo "$as_me:$LINENO: creating files" >&5 |
14543 | echo "$as_me: creating files" >&6;} && mkdir "files") ;; | |
14544 | graphics ) test -d "graphics" || ({ echo "$as_me:$LINENO: creating graphics" >&5 | |
14545 | echo "$as_me: creating graphics" >&6;} && mkdir "graphics") ;; | |
14546 | graphics/x11drv ) test -d "graphics/x11drv" || ({ echo "$as_me:$LINENO: creating graphics/x11drv" >&5 | |
14547 | echo "$as_me: creating graphics/x11drv" >&6;} && mkdir "graphics/x11drv") ;; | |
14548 | if1632 ) test -d "if1632" || ({ echo "$as_me:$LINENO: creating if1632" >&5 | |
14549 | echo "$as_me: creating if1632" >&6;} && mkdir "if1632") ;; | |
daa2886c | 14550 | include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5 |
f5818d2f | 14551 | echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;; |
9bb05fc4 AJ |
14552 | loader ) test -d "loader" || ({ echo "$as_me:$LINENO: creating loader" >&5 |
14553 | echo "$as_me: creating loader" >&6;} && mkdir "loader") ;; | |
14554 | loader/ne ) test -d "loader/ne" || ({ echo "$as_me:$LINENO: creating loader/ne" >&5 | |
14555 | echo "$as_me: creating loader/ne" >&6;} && mkdir "loader/ne") ;; | |
14556 | memory ) test -d "memory" || ({ echo "$as_me:$LINENO: creating memory" >&5 | |
14557 | echo "$as_me: creating memory" >&6;} && mkdir "memory") ;; | |
14558 | misc ) test -d "misc" || ({ echo "$as_me:$LINENO: creating misc" >&5 | |
14559 | echo "$as_me: creating misc" >&6;} && mkdir "misc") ;; | |
14560 | msdos ) test -d "msdos" || ({ echo "$as_me:$LINENO: creating msdos" >&5 | |
14561 | echo "$as_me: creating msdos" >&6;} && mkdir "msdos") ;; | |
14562 | objects ) test -d "objects" || ({ echo "$as_me:$LINENO: creating objects" >&5 | |
14563 | echo "$as_me: creating objects" >&6;} && mkdir "objects") ;; | |
daa2886c | 14564 | programs/regapi/tests ) test -d "programs/regapi/tests" || ({ echo "$as_me:$LINENO: creating programs/regapi/tests" >&5 |
c72f0b21 | 14565 | echo "$as_me: creating programs/regapi/tests" >&6;} && mkdir "programs/regapi/tests") ;; |
daa2886c | 14566 | programs/winetest/tests ) test -d "programs/winetest/tests" || ({ echo "$as_me:$LINENO: creating programs/winetest/tests" >&5 |
c72f0b21 | 14567 | echo "$as_me: creating programs/winetest/tests" >&6;} && mkdir "programs/winetest/tests") ;; |
9bb05fc4 AJ |
14568 | relay32 ) test -d "relay32" || ({ echo "$as_me:$LINENO: creating relay32" >&5 |
14569 | echo "$as_me: creating relay32" >&6;} && mkdir "relay32") ;; | |
14570 | scheduler ) test -d "scheduler" || ({ echo "$as_me:$LINENO: creating scheduler" >&5 | |
14571 | echo "$as_me: creating scheduler" >&6;} && mkdir "scheduler") ;; | |
14572 | win32 ) test -d "win32" || ({ echo "$as_me:$LINENO: creating win32" >&5 | |
14573 | echo "$as_me: creating win32" >&6;} && mkdir "win32") ;; | |
14574 | windows ) test -d "windows" || ({ echo "$as_me:$LINENO: creating windows" >&5 | |
14575 | echo "$as_me: creating windows" >&6;} && mkdir "windows") ;; | |
f5818d2f AJ |
14576 | esac |
14577 | done | |
daa2886c | 14578 | _ACEOF |
e2991ea7 | 14579 | |
daa2886c | 14580 | cat >>$CONFIG_STATUS <<\_ACEOF |
87a2f8df | 14581 | |
f5818d2f | 14582 | { (exit 0); exit 0; } |
daa2886c | 14583 | _ACEOF |
e2991ea7 | 14584 | chmod +x $CONFIG_STATUS |
f5818d2f AJ |
14585 | ac_clean_files=$ac_clean_files_save |
14586 | ||
daa2886c | 14587 | |
f5818d2f AJ |
14588 | # configure is writing to config.log, and then calls config.status. |
14589 | # config.status does its own redirection, appending to config.log. | |
14590 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
14591 | # by configure, so config.status won't be able to write to it; its | |
14592 | # output is simply discarded. So we exec the FD to /dev/null, | |
14593 | # effectively closing config.log, so it can be properly (re)opened and | |
14594 | # appended to by config.status. When coming back to configure, we | |
14595 | # need to make the FD available again. | |
14596 | if test "$no_create" != yes; then | |
14597 | ac_cs_success=: | |
14598 | exec 5>/dev/null | |
14599 | $SHELL $CONFIG_STATUS || ac_cs_success=false | |
14600 | exec 5>>config.log | |
14601 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
14602 | # would make configure fail if this is the last instruction. | |
14603 | $ac_cs_success || { (exit 1); exit 1; } | |
14604 | fi | |
e2991ea7 | 14605 | |
daa2886c | 14606 | |
8b4431f1 OK |
14607 | if test "$have_x" = "no" |
14608 | then | |
14609 | echo | |
14610 | echo "*** Warning: X development files not found. Wine will be built without" | |
14611 | echo "*** X support, which currently does not work, and would probably not be" | |
14612 | echo "*** what you want anyway. You will need to install devel packages of" | |
18e4b5e2 | 14613 | echo "*** Xlib/Xfree86 at the very least." |
8b4431f1 OK |
14614 | fi |
14615 | ||
638f169b AJ |
14616 | if test "$ac_cv_lib_ncurses_resizeterm" = "no" -a "$ac_cv_lib_ncurses_waddch" = "yes" |
14617 | then | |
14618 | echo | |
14619 | echo "*** Warning: resizeterm not found in ncurses. Wine will be built without" | |
14620 | echo "*** terminal resize support. Consider upgrading ncurses." | |
638f169b AJ |
14621 | fi |
14622 | ||
f5818d2f | 14623 | if test "$wine_cv_libc_reentrant" = "no" |
d30dfd24 AJ |
14624 | then |
14625 | echo | |
f5818d2f AJ |
14626 | echo "*** Warning: non-reentrant libc detected. Wine will be built without" |
14627 | echo "*** threading support. Consider upgrading libc to a more recent" | |
d30dfd24 | 14628 | echo "*** reentrant version of libc." |
d30dfd24 AJ |
14629 | fi |
14630 | ||
867fb9d7 AJ |
14631 | if test "$have_x" = "yes" -a "$wine_cv_x_reentrant" != "yes" |
14632 | then | |
14633 | echo | |
14634 | echo "*** Warning: non-reentrant X11 library detected. Multi-threaded" | |
14635 | echo "*** applications won't work properly. You should upgrade your X11 library." | |
14636 | fi | |
14637 | ||
bedf40b5 | 14638 | if test "$wine_cv_opengl_version_OK" = "no" |
5c085704 LU |
14639 | then |
14640 | echo | |
14641 | echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D" | |
5eee0bff LU |
14642 | echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)." |
14643 | fi | |
14644 | ||
f5818d2f | 14645 | if test "$wine_cv_opengl_version_threadsafe" = "yes" -a "x$enable_opengl" = "x" |
5eee0bff LU |
14646 | then |
14647 | echo | |
14648 | echo "*** Warning: the OpenGL version you have installed relies on libpthread for" | |
fbc15b17 | 14649 | echo "*** thread-safety. To prevent crashes, OpenGL support has been removed." |
18a9d741 | 14650 | echo "*** A fix for glibc 2.1.3 that seems to work is included in this version of Wine," |
fbc15b17 LU |
14651 | echo "*** start configure with '--enable-opengl' to force OpenGL support." |
14652 | fi | |
14653 | ||
f5818d2f | 14654 | if test "$wine_cv_opengl_version_threadsafe" = "yes" -a "x$enable_opengl" = "xyes" |
fbc15b17 LU |
14655 | then |
14656 | echo | |
d6c0f9f7 | 14657 | echo "*** Warning: you explicitly linked in a thread-safe OpenGL version. If you" |
fbc15b17 LU |
14658 | echo "*** experience unusual crashes on DirectDraw games, try first to disable OpenGL" |
14659 | echo "*** support before reporting bugs." | |
5c085704 LU |
14660 | fi |
14661 | ||
3ee02bab MM |
14662 | if test "$wine_cv_warn_cups_h" = "yes" |
14663 | then | |
14664 | echo | |
14665 | echo "*** Note: You have cups runtime libraries, but no development" | |
14666 | echo "*** libraries. Install the cups-devel package or whichever package" | |
f5818d2f | 14667 | echo "*** contains cups.h to enable CUPS support in Wine." |
3ee02bab | 14668 | fi |
fbc15b17 | 14669 | |
563598d4 IP |
14670 | if test "$wine_cv_msg_freetype" = "yes" |
14671 | then | |
14672 | echo | |
14673 | echo "*** Note: Your system appears to have the FreeType 2 runtime libraries" | |
f5818d2f AJ |
14674 | echo "*** installed, but 'freetype-config' is not in your PATH. Install the" |
14675 | echo "*** freetype-devel package (or its equivalent on your distribution) to" | |
14676 | echo "*** enable Wine to use TrueType fonts." | |
563598d4 IP |
14677 | fi |
14678 | ||
e2991ea7 | 14679 | echo |
1511bae7 | 14680 | echo "Configure finished. Do 'make depend && make' to compile Wine." |
e2991ea7 AJ |
14681 | echo |
14682 |