Commit | Line | Data |
---|---|---|
ba4481b5 | 1 | #! /bin/sh |
ba4481b5 | 2 | # Guess values for system-dependent variables and create Makefiles. |
f053c89f | 3 | # Generated by GNU Autoconf 2.61. |
ba4481b5 | 4 | # |
ca81d7a0 | 5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
040c474e | 6 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
ba4481b5 DL |
7 | # This configure script is free software; the Free Software Foundation |
8 | # gives unlimited permission to copy, distribute and modify it. | |
c0d27fcc MR |
9 | ## --------------------- ## |
10 | ## M4sh Initialization. ## | |
11 | ## --------------------- ## | |
503d2be0 | 12 | |
f053c89f CY |
13 | # Be more Bourne compatible |
14 | DUALCASE=1; export DUALCASE # for MKS sh | |
503d2be0 AS |
15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
16 | emulate sh | |
17 | NULLCMD=: | |
6bae0ccf DL |
18 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
19 | # is contrary to our usage. Disable this feature. | |
20 | alias -g '${1+"$@"}'='"$@"' | |
ca81d7a0 JD |
21 | setopt NO_GLOB_SUBST |
22 | else | |
f053c89f CY |
23 | case `(set -o) 2>/dev/null` in |
24 | *posix*) set -o posix ;; | |
25 | esac | |
26 | ||
503d2be0 | 27 | fi |
f053c89f CY |
28 | |
29 | ||
503d2be0 | 30 | |
ca81d7a0 JD |
31 | |
32 | # PATH needs CR | |
33 | # Avoid depending upon Character Ranges. | |
34 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
35 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
36 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
37 | as_cr_digits='0123456789' | |
38 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
39 | ||
40 | # The user is always right. | |
41 | if test "${PATH_SEPARATOR+set}" != set; then | |
42 | echo "#! /bin/sh" >conf$$.sh | |
43 | echo "exit 0" >>conf$$.sh | |
44 | chmod +x conf$$.sh | |
45 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
46 | PATH_SEPARATOR=';' | |
47 | else | |
48 | PATH_SEPARATOR=: | |
49 | fi | |
50 | rm -f conf$$.sh | |
51 | fi | |
52 | ||
c0d27fcc | 53 | # Support unset when possible. |
edfaf76d | 54 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
c0d27fcc MR |
55 | as_unset=unset |
56 | else | |
57 | as_unset=false | |
58 | fi | |
59 | ||
6bae0ccf | 60 | |
ca81d7a0 JD |
61 | # IFS |
62 | # We need space, tab and new line, in precisely that order. Quoting is | |
63 | # there to prevent editors from complaining about space-tab. | |
64 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
65 | # splitting by setting IFS to empty value.) | |
66 | as_nl=' | |
67 | ' | |
68 | IFS=" "" $as_nl" | |
69 | ||
70 | # Find who we are. Look in the path if we contain no directory separator. | |
71 | case $0 in | |
72 | *[\\/]* ) as_myself=$0 ;; | |
73 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
74 | for as_dir in $PATH | |
75 | do | |
76 | IFS=$as_save_IFS | |
77 | test -z "$as_dir" && as_dir=. | |
78 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
79 | done | |
80 | IFS=$as_save_IFS | |
81 | ||
82 | ;; | |
83 | esac | |
84 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
85 | # in which case we are not to be found in the path. | |
86 | if test "x$as_myself" = x; then | |
87 | as_myself=$0 | |
88 | fi | |
89 | if test ! -f "$as_myself"; then | |
90 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
91 | { (exit 1); exit 1; } | |
92 | fi | |
93 | ||
6bae0ccf | 94 | # Work around bugs in pre-3.0 UWIN ksh. |
ca81d7a0 JD |
95 | for as_var in ENV MAIL MAILPATH |
96 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
97 | done | |
6bae0ccf DL |
98 | PS1='$ ' |
99 | PS2='> ' | |
100 | PS4='+ ' | |
101 | ||
102 | # NLS nuisances. | |
19650fd6 AS |
103 | for as_var in \ |
104 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
105 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
106 | LC_TELEPHONE LC_TIME | |
6bae0ccf | 107 | do |
edfaf76d | 108 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
6bae0ccf DL |
109 | eval $as_var=C; export $as_var |
110 | else | |
ca81d7a0 | 111 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
6bae0ccf DL |
112 | fi |
113 | done | |
114 | ||
115 | # Required to use basename. | |
ca81d7a0 JD |
116 | if expr a : '\(a\)' >/dev/null 2>&1 && |
117 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
6bae0ccf DL |
118 | as_expr=expr |
119 | else | |
120 | as_expr=false | |
121 | fi | |
122 | ||
ca81d7a0 | 123 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
6bae0ccf DL |
124 | as_basename=basename |
125 | else | |
126 | as_basename=false | |
127 | fi | |
c0d27fcc MR |
128 | |
129 | ||
503d2be0 | 130 | # Name of the executable. |
ca81d7a0 | 131 | as_me=`$as_basename -- "$0" || |
c0d27fcc MR |
132 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
133 | X"$0" : 'X\(//\)$' \| \ | |
ca81d7a0 | 134 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
c0d27fcc | 135 | echo X/"$0" | |
ca81d7a0 JD |
136 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
137 | s//\1/ | |
138 | q | |
139 | } | |
140 | /^X\/\(\/\/\)$/{ | |
141 | s//\1/ | |
142 | q | |
143 | } | |
144 | /^X\/\(\/\).*/{ | |
145 | s//\1/ | |
146 | q | |
147 | } | |
148 | s/.*/./; q'` | |
c0d27fcc | 149 | |
ca81d7a0 JD |
150 | # CDPATH. |
151 | $as_unset CDPATH | |
8eeae1c9 | 152 | |
8eeae1c9 | 153 | |
ca81d7a0 JD |
154 | if test "x$CONFIG_SHELL" = x; then |
155 | if (eval ":") 2>/dev/null; then | |
156 | as_have_required=yes | |
157 | else | |
158 | as_have_required=no | |
8eeae1c9 JD |
159 | fi |
160 | ||
ca81d7a0 JD |
161 | if test $as_have_required = yes && (eval ": |
162 | (as_func_return () { | |
163 | (exit \$1) | |
164 | } | |
165 | as_func_success () { | |
166 | as_func_return 0 | |
167 | } | |
168 | as_func_failure () { | |
169 | as_func_return 1 | |
170 | } | |
171 | as_func_ret_success () { | |
172 | return 0 | |
173 | } | |
174 | as_func_ret_failure () { | |
175 | return 1 | |
176 | } | |
8eeae1c9 | 177 | |
ca81d7a0 JD |
178 | exitcode=0 |
179 | if as_func_success; then | |
180 | : | |
181 | else | |
182 | exitcode=1 | |
183 | echo as_func_success failed. | |
184 | fi | |
8eeae1c9 | 185 | |
ca81d7a0 JD |
186 | if as_func_failure; then |
187 | exitcode=1 | |
188 | echo as_func_failure succeeded. | |
189 | fi | |
190 | ||
191 | if as_func_ret_success; then | |
192 | : | |
193 | else | |
194 | exitcode=1 | |
195 | echo as_func_ret_success failed. | |
196 | fi | |
197 | ||
198 | if as_func_ret_failure; then | |
199 | exitcode=1 | |
200 | echo as_func_ret_failure succeeded. | |
201 | fi | |
202 | ||
203 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
204 | : | |
205 | else | |
206 | exitcode=1 | |
207 | echo positional parameters were not saved. | |
208 | fi | |
209 | ||
210 | test \$exitcode = 0) || { (exit 1); exit 1; } | |
211 | ||
212 | ( | |
213 | as_lineno_1=\$LINENO | |
214 | as_lineno_2=\$LINENO | |
215 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && | |
216 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } | |
217 | ") 2> /dev/null; then | |
218 | : | |
219 | else | |
220 | as_candidate_shells= | |
c0d27fcc | 221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
f053c89f | 222 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
c0d27fcc MR |
223 | do |
224 | IFS=$as_save_IFS | |
225 | test -z "$as_dir" && as_dir=. | |
ca81d7a0 | 226 | case $as_dir in |
c0d27fcc | 227 | /*) |
ca81d7a0 JD |
228 | for as_base in sh bash ksh sh5; do |
229 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" | |
230 | done;; | |
231 | esac | |
232 | done | |
233 | IFS=$as_save_IFS | |
234 | ||
235 | ||
236 | for as_shell in $as_candidate_shells $SHELL; do | |
237 | # Try only shells that exist, to save several forks. | |
238 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
239 | { ("$as_shell") 2> /dev/null <<\_ASEOF | |
ca81d7a0 JD |
240 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
241 | emulate sh | |
242 | NULLCMD=: | |
243 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
244 | # is contrary to our usage. Disable this feature. | |
245 | alias -g '${1+"$@"}'='"$@"' | |
246 | setopt NO_GLOB_SUBST | |
247 | else | |
f053c89f CY |
248 | case `(set -o) 2>/dev/null` in |
249 | *posix*) set -o posix ;; | |
250 | esac | |
251 | ||
ca81d7a0 | 252 | fi |
f053c89f | 253 | |
ca81d7a0 JD |
254 | |
255 | : | |
256 | _ASEOF | |
257 | }; then | |
258 | CONFIG_SHELL=$as_shell | |
259 | as_have_required=yes | |
260 | if { "$as_shell" 2> /dev/null <<\_ASEOF | |
ca81d7a0 JD |
261 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
262 | emulate sh | |
263 | NULLCMD=: | |
264 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
265 | # is contrary to our usage. Disable this feature. | |
266 | alias -g '${1+"$@"}'='"$@"' | |
267 | setopt NO_GLOB_SUBST | |
268 | else | |
f053c89f CY |
269 | case `(set -o) 2>/dev/null` in |
270 | *posix*) set -o posix ;; | |
271 | esac | |
272 | ||
ca81d7a0 | 273 | fi |
f053c89f | 274 | |
ca81d7a0 JD |
275 | |
276 | : | |
277 | (as_func_return () { | |
278 | (exit $1) | |
279 | } | |
280 | as_func_success () { | |
281 | as_func_return 0 | |
282 | } | |
283 | as_func_failure () { | |
284 | as_func_return 1 | |
285 | } | |
286 | as_func_ret_success () { | |
287 | return 0 | |
288 | } | |
289 | as_func_ret_failure () { | |
290 | return 1 | |
291 | } | |
292 | ||
293 | exitcode=0 | |
294 | if as_func_success; then | |
295 | : | |
296 | else | |
297 | exitcode=1 | |
298 | echo as_func_success failed. | |
299 | fi | |
300 | ||
301 | if as_func_failure; then | |
302 | exitcode=1 | |
303 | echo as_func_failure succeeded. | |
304 | fi | |
305 | ||
306 | if as_func_ret_success; then | |
307 | : | |
308 | else | |
309 | exitcode=1 | |
310 | echo as_func_ret_success failed. | |
311 | fi | |
312 | ||
313 | if as_func_ret_failure; then | |
314 | exitcode=1 | |
315 | echo as_func_ret_failure succeeded. | |
316 | fi | |
317 | ||
318 | if ( set x; as_func_ret_success y && test x = "$1" ); then | |
319 | : | |
320 | else | |
321 | exitcode=1 | |
322 | echo positional parameters were not saved. | |
323 | fi | |
324 | ||
325 | test $exitcode = 0) || { (exit 1); exit 1; } | |
326 | ||
327 | ( | |
8eeae1c9 JD |
328 | as_lineno_1=$LINENO |
329 | as_lineno_2=$LINENO | |
330 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
ca81d7a0 JD |
331 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
332 | ||
333 | _ASEOF | |
334 | }; then | |
335 | break | |
336 | fi | |
337 | ||
338 | fi | |
339 | ||
340 | done | |
341 | ||
342 | if test "x$CONFIG_SHELL" != x; then | |
343 | for as_var in BASH_ENV ENV | |
344 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
345 | done | |
346 | export CONFIG_SHELL | |
347 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
348 | fi | |
349 | ||
350 | ||
351 | if test $as_have_required = no; then | |
352 | echo This script requires a shell more modern than all the | |
353 | echo shells that I found on your system. Please install a | |
354 | echo modern shell, or manually run the script under such a | |
355 | echo shell if you do have one. | |
356 | { (exit 1); exit 1; } | |
357 | fi | |
358 | ||
359 | ||
360 | fi | |
361 | ||
362 | fi | |
363 | ||
364 | ||
365 | ||
366 | (eval "as_func_return () { | |
367 | (exit \$1) | |
368 | } | |
369 | as_func_success () { | |
370 | as_func_return 0 | |
371 | } | |
372 | as_func_failure () { | |
373 | as_func_return 1 | |
374 | } | |
375 | as_func_ret_success () { | |
376 | return 0 | |
377 | } | |
378 | as_func_ret_failure () { | |
379 | return 1 | |
380 | } | |
381 | ||
382 | exitcode=0 | |
383 | if as_func_success; then | |
384 | : | |
385 | else | |
386 | exitcode=1 | |
387 | echo as_func_success failed. | |
388 | fi | |
389 | ||
390 | if as_func_failure; then | |
391 | exitcode=1 | |
392 | echo as_func_failure succeeded. | |
393 | fi | |
394 | ||
395 | if as_func_ret_success; then | |
396 | : | |
397 | else | |
398 | exitcode=1 | |
399 | echo as_func_ret_success failed. | |
400 | fi | |
401 | ||
402 | if as_func_ret_failure; then | |
403 | exitcode=1 | |
404 | echo as_func_ret_failure succeeded. | |
405 | fi | |
406 | ||
407 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
408 | : | |
409 | else | |
410 | exitcode=1 | |
411 | echo positional parameters were not saved. | |
412 | fi | |
413 | ||
414 | test \$exitcode = 0") || { | |
86e73516 JD |
415 | echo Please tell bug-autoconf@gnu.org about your system, |
416 | echo including any error possibly output before this message. | |
417 | echo This can help us improve future autoconf versions. | |
418 | echo Configuration will now proceed without shell functions. | |
ca81d7a0 JD |
419 | } |
420 | ||
421 | ||
422 | ||
423 | as_lineno_1=$LINENO | |
424 | as_lineno_2=$LINENO | |
425 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
426 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
c0d27fcc MR |
427 | |
428 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
429 | # uniformly replaced by the line number. The first 'sed' inserts a | |
ca81d7a0 JD |
430 | # line-number line after each line using $LINENO; the second 'sed' |
431 | # does the real work. The second script uses 'N' to pair each | |
432 | # line-number line with the line containing $LINENO, and appends | |
433 | # trailing '-' during substitution so that $LINENO is not a special | |
434 | # case at line end. | |
c0d27fcc | 435 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
ca81d7a0 JD |
436 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
437 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
438 | sed -n ' | |
439 | p | |
440 | /[$]LINENO/= | |
441 | ' <$as_myself | | |
c0d27fcc | 442 | sed ' |
ca81d7a0 JD |
443 | s/[$]LINENO.*/&-/ |
444 | t lineno | |
445 | b | |
446 | :lineno | |
c0d27fcc | 447 | N |
ca81d7a0 JD |
448 | :loop |
449 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
c0d27fcc | 450 | t loop |
ca81d7a0 | 451 | s/-\n.*// |
c0d27fcc | 452 | ' >$as_me.lineno && |
ca81d7a0 | 453 | chmod +x "$as_me.lineno" || |
c0d27fcc MR |
454 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
455 | { (exit 1); exit 1; }; } | |
456 | ||
457 | # Don't try to exec as it changes $[0], causing all sort of problems | |
458 | # (the dirname of $[0] is not the place where we might find the | |
ca81d7a0 JD |
459 | # original and so on. Autoconf is especially sensitive to this). |
460 | . "./$as_me.lineno" | |
c0d27fcc MR |
461 | # Exit status is that of the last command. |
462 | exit | |
463 | } | |
464 | ||
465 | ||
ca81d7a0 JD |
466 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
467 | as_dirname=dirname | |
468 | else | |
469 | as_dirname=false | |
470 | fi | |
471 | ||
472 | ECHO_C= ECHO_N= ECHO_T= | |
473 | case `echo -n x` in | |
474 | -n*) | |
475 | case `echo 'x\c'` in | |
476 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
477 | *) ECHO_C='\c';; | |
478 | esac;; | |
479 | *) | |
480 | ECHO_N='-n';; | |
c0d27fcc | 481 | esac |
503d2be0 | 482 | |
ca81d7a0 JD |
483 | if expr a : '\(a\)' >/dev/null 2>&1 && |
484 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
503d2be0 AS |
485 | as_expr=expr |
486 | else | |
487 | as_expr=false | |
488 | fi | |
489 | ||
490 | rm -f conf$$ conf$$.exe conf$$.file | |
ca81d7a0 JD |
491 | if test -d conf$$.dir; then |
492 | rm -f conf$$.dir/conf$$.file | |
493 | else | |
494 | rm -f conf$$.dir | |
495 | mkdir conf$$.dir | |
496 | fi | |
503d2be0 AS |
497 | echo >conf$$.file |
498 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
ca81d7a0 JD |
499 | as_ln_s='ln -s' |
500 | # ... but there are two gotchas: | |
501 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
502 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
503 | # In both cases, we have to default to `cp -p'. | |
504 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
503d2be0 | 505 | as_ln_s='cp -p' |
503d2be0 AS |
506 | elif ln conf$$.file conf$$ 2>/dev/null; then |
507 | as_ln_s=ln | |
508 | else | |
509 | as_ln_s='cp -p' | |
510 | fi | |
ca81d7a0 JD |
511 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
512 | rmdir conf$$.dir 2>/dev/null | |
503d2be0 | 513 | |
6bae0ccf DL |
514 | if mkdir -p . 2>/dev/null; then |
515 | as_mkdir_p=: | |
516 | else | |
edfaf76d | 517 | test -d ./-p && rmdir ./-p |
6bae0ccf DL |
518 | as_mkdir_p=false |
519 | fi | |
520 | ||
f053c89f CY |
521 | if test -x / >/dev/null 2>&1; then |
522 | as_test_x='test -x' | |
ca81d7a0 | 523 | else |
f053c89f CY |
524 | if ls -dL / >/dev/null 2>&1; then |
525 | as_ls_L_option=L | |
526 | else | |
527 | as_ls_L_option= | |
528 | fi | |
529 | as_test_x=' | |
530 | eval sh -c '\'' | |
531 | if test -d "$1"; then | |
532 | test -d "$1/."; | |
533 | else | |
534 | case $1 in | |
535 | -*)set "./$1";; | |
536 | esac; | |
537 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
538 | ???[sx]*):;;*)false;;esac;fi | |
539 | '\'' sh | |
540 | ' | |
ca81d7a0 | 541 | fi |
f053c89f | 542 | as_executable_p=$as_test_x |
503d2be0 | 543 | |
c0d27fcc | 544 | # Sed expression to map a string onto a valid CPP name. |
edfaf76d | 545 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
c0d27fcc MR |
546 | |
547 | # Sed expression to map a string onto a valid variable name. | |
edfaf76d | 548 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
503d2be0 | 549 | |
503d2be0 | 550 | |
c0d27fcc | 551 | |
ca81d7a0 | 552 | exec 7<&0 </dev/null 6>&1 |
503d2be0 AS |
553 | |
554 | # Name of the host. | |
555 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
556 | # so uname gets run too. | |
557 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
558 | ||
503d2be0 AS |
559 | # |
560 | # Initializations. | |
561 | # | |
ba4481b5 | 562 | ac_default_prefix=/usr/local |
ca81d7a0 | 563 | ac_clean_files= |
6bae0ccf | 564 | ac_config_libobj_dir=. |
ca81d7a0 | 565 | LIBOBJS= |
503d2be0 AS |
566 | cross_compiling=no |
567 | subdirs= | |
c0d27fcc MR |
568 | MFLAGS= |
569 | MAKEFLAGS= | |
503d2be0 AS |
570 | SHELL=${CONFIG_SHELL-/bin/sh} |
571 | ||
c0d27fcc MR |
572 | # Identity of this package. |
573 | PACKAGE_NAME= | |
574 | PACKAGE_TARNAME= | |
575 | PACKAGE_VERSION= | |
576 | PACKAGE_STRING= | |
577 | PACKAGE_BUGREPORT= | |
578 | ||
503d2be0 | 579 | ac_unique_file="src/lisp.h" |
6bae0ccf | 580 | ac_config_libobj_dir=src |
503d2be0 AS |
581 | # Factoring default headers for most tests. |
582 | ac_includes_default="\ | |
583 | #include <stdio.h> | |
f053c89f | 584 | #ifdef HAVE_SYS_TYPES_H |
503d2be0 AS |
585 | # include <sys/types.h> |
586 | #endif | |
f053c89f | 587 | #ifdef HAVE_SYS_STAT_H |
503d2be0 AS |
588 | # include <sys/stat.h> |
589 | #endif | |
f053c89f | 590 | #ifdef STDC_HEADERS |
503d2be0 AS |
591 | # include <stdlib.h> |
592 | # include <stddef.h> | |
593 | #else | |
f053c89f | 594 | # ifdef HAVE_STDLIB_H |
503d2be0 AS |
595 | # include <stdlib.h> |
596 | # endif | |
597 | #endif | |
f053c89f CY |
598 | #ifdef HAVE_STRING_H |
599 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
503d2be0 AS |
600 | # include <memory.h> |
601 | # endif | |
602 | # include <string.h> | |
603 | #endif | |
f053c89f | 604 | #ifdef HAVE_STRINGS_H |
503d2be0 AS |
605 | # include <strings.h> |
606 | #endif | |
f053c89f | 607 | #ifdef HAVE_INTTYPES_H |
503d2be0 | 608 | # include <inttypes.h> |
ca81d7a0 | 609 | #endif |
f053c89f | 610 | #ifdef HAVE_STDINT_H |
ca81d7a0 | 611 | # include <stdint.h> |
503d2be0 | 612 | #endif |
f053c89f | 613 | #ifdef HAVE_UNISTD_H |
503d2be0 AS |
614 | # include <unistd.h> |
615 | #endif" | |
ba4481b5 | 616 | |
f053c89f CY |
617 | ac_header_list= |
618 | ac_func_list= | |
ca81d7a0 JD |
619 | ac_subst_vars='SHELL |
620 | PATH_SEPARATOR | |
621 | PACKAGE_NAME | |
622 | PACKAGE_TARNAME | |
623 | PACKAGE_VERSION | |
624 | PACKAGE_STRING | |
625 | PACKAGE_BUGREPORT | |
626 | exec_prefix | |
627 | prefix | |
628 | program_transform_name | |
629 | bindir | |
630 | sbindir | |
631 | libexecdir | |
632 | datarootdir | |
633 | datadir | |
634 | sysconfdir | |
635 | sharedstatedir | |
636 | localstatedir | |
637 | includedir | |
638 | oldincludedir | |
639 | docdir | |
640 | infodir | |
641 | htmldir | |
642 | dvidir | |
643 | pdfdir | |
644 | psdir | |
645 | libdir | |
646 | localedir | |
647 | mandir | |
648 | DEFS | |
649 | ECHO_C | |
650 | ECHO_N | |
651 | ECHO_T | |
652 | LIBS | |
653 | build_alias | |
654 | host_alias | |
655 | target_alias | |
656 | MAINT | |
657 | build | |
658 | build_cpu | |
659 | build_vendor | |
660 | build_os | |
661 | host | |
662 | host_cpu | |
663 | host_vendor | |
664 | host_os | |
665 | CC | |
666 | CFLAGS | |
667 | LDFLAGS | |
668 | CPPFLAGS | |
669 | ac_ct_CC | |
670 | EXEEXT | |
671 | OBJEXT | |
672 | CPP | |
673 | GREP | |
674 | EGREP | |
675 | LN_S | |
676 | INSTALL_PROGRAM | |
677 | INSTALL_SCRIPT | |
678 | INSTALL_DATA | |
679 | RANLIB | |
680 | INSTALL_INFO | |
681 | GZIP_PROG | |
682 | LIBSOUND | |
683 | PKG_CONFIG | |
684 | ALSA_CFLAGS | |
685 | ALSA_LIBS | |
ca81d7a0 JD |
686 | CFLAGS_SOUND |
687 | SET_MAKE | |
688 | XMKMF | |
cfe440b8 | 689 | HAVE_XSERVER |
ca81d7a0 JD |
690 | GTK_CFLAGS |
691 | GTK_LIBS | |
9d89ffd0 JD |
692 | XFT_CFLAGS |
693 | XFT_LIBS | |
ca81d7a0 JD |
694 | ALLOCA |
695 | liblockfile | |
696 | LIBOBJS | |
697 | NEED_SETGID | |
698 | KMEM_GROUP | |
699 | GETLOADAVG_LIBS | |
700 | GETOPT_H | |
701 | GETOPTOBJS | |
702 | version | |
703 | configuration | |
704 | canonical | |
705 | srcdir | |
706 | lispdir | |
707 | locallisppath | |
708 | lisppath | |
709 | x_default_search_path | |
710 | etcdir | |
711 | archlibdir | |
712 | bitmapdir | |
713 | gamedir | |
714 | gameuser | |
715 | c_switch_system | |
716 | c_switch_machine | |
717 | LD_SWITCH_X_SITE | |
718 | LD_SWITCH_X_SITE_AUX | |
719 | C_SWITCH_X_SITE | |
720 | X_TOOLKIT_TYPE | |
721 | machfile | |
722 | opsysfile | |
723 | carbon_appdir | |
724 | LTLIBOBJS' | |
6bae0ccf | 725 | ac_subst_files='' |
ca81d7a0 JD |
726 | ac_precious_vars='build_alias |
727 | host_alias | |
728 | target_alias | |
729 | CC | |
730 | CFLAGS | |
731 | LDFLAGS | |
f053c89f | 732 | LIBS |
ca81d7a0 JD |
733 | CPPFLAGS |
734 | CPP | |
735 | XMKMF' | |
736 | ||
c0d27fcc | 737 | |
ba4481b5 | 738 | # Initialize some variables set by options. |
503d2be0 AS |
739 | ac_init_help= |
740 | ac_init_version=false | |
ba4481b5 DL |
741 | # The variables have the same names as the options, with |
742 | # dashes changed to underlines. | |
503d2be0 | 743 | cache_file=/dev/null |
ba4481b5 | 744 | exec_prefix=NONE |
ba4481b5 | 745 | no_create= |
ba4481b5 DL |
746 | no_recursion= |
747 | prefix=NONE | |
748 | program_prefix=NONE | |
749 | program_suffix=NONE | |
750 | program_transform_name=s,x,x, | |
751 | silent= | |
752 | site= | |
753 | srcdir= | |
ba4481b5 DL |
754 | verbose= |
755 | x_includes=NONE | |
756 | x_libraries=NONE | |
503d2be0 AS |
757 | |
758 | # Installation directory options. | |
759 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
760 | # and all the variables that are supposed to be based on exec_prefix | |
761 | # by default will actually change. | |
762 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
ca81d7a0 | 763 | # (The list follows the same order as the GNU Coding Standards.) |
ba4481b5 DL |
764 | bindir='${exec_prefix}/bin' |
765 | sbindir='${exec_prefix}/sbin' | |
766 | libexecdir='${exec_prefix}/libexec' | |
ca81d7a0 JD |
767 | datarootdir='${prefix}/share' |
768 | datadir='${datarootdir}' | |
ba4481b5 DL |
769 | sysconfdir='${prefix}/etc' |
770 | sharedstatedir='${prefix}/com' | |
771 | localstatedir='${prefix}/var' | |
ba4481b5 DL |
772 | includedir='${prefix}/include' |
773 | oldincludedir='/usr/include' | |
ca81d7a0 JD |
774 | docdir='${datarootdir}/doc/${PACKAGE}' |
775 | infodir='${datarootdir}/info' | |
776 | htmldir='${docdir}' | |
777 | dvidir='${docdir}' | |
778 | pdfdir='${docdir}' | |
779 | psdir='${docdir}' | |
780 | libdir='${exec_prefix}/lib' | |
781 | localedir='${datarootdir}/locale' | |
782 | mandir='${datarootdir}/man' | |
ba4481b5 | 783 | |
ba4481b5 | 784 | ac_prev= |
ca81d7a0 | 785 | ac_dashdash= |
ba4481b5 DL |
786 | for ac_option |
787 | do | |
ba4481b5 DL |
788 | # If the previous option needs an argument, assign it. |
789 | if test -n "$ac_prev"; then | |
ca81d7a0 | 790 | eval $ac_prev=\$ac_option |
ba4481b5 DL |
791 | ac_prev= |
792 | continue | |
793 | fi | |
794 | ||
ca81d7a0 JD |
795 | case $ac_option in |
796 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
797 | *) ac_optarg=yes ;; | |
798 | esac | |
ba4481b5 DL |
799 | |
800 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
801 | ||
ca81d7a0 JD |
802 | case $ac_dashdash$ac_option in |
803 | --) | |
804 | ac_dashdash=yes ;; | |
ba4481b5 DL |
805 | |
806 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
807 | ac_prev=bindir ;; | |
808 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
503d2be0 | 809 | bindir=$ac_optarg ;; |
ba4481b5 DL |
810 | |
811 | -build | --build | --buil | --bui | --bu) | |
503d2be0 | 812 | ac_prev=build_alias ;; |
ba4481b5 | 813 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
503d2be0 | 814 | build_alias=$ac_optarg ;; |
ba4481b5 DL |
815 | |
816 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
817 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
818 | ac_prev=cache_file ;; | |
819 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
820 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
503d2be0 AS |
821 | cache_file=$ac_optarg ;; |
822 | ||
823 | --config-cache | -C) | |
824 | cache_file=config.cache ;; | |
ba4481b5 | 825 | |
ca81d7a0 | 826 | -datadir | --datadir | --datadi | --datad) |
ba4481b5 | 827 | ac_prev=datadir ;; |
ca81d7a0 | 828 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
503d2be0 | 829 | datadir=$ac_optarg ;; |
ba4481b5 | 830 | |
ca81d7a0 JD |
831 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
832 | | --dataroo | --dataro | --datar) | |
833 | ac_prev=datarootdir ;; | |
834 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
835 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
836 | datarootdir=$ac_optarg ;; | |
837 | ||
ba4481b5 | 838 | -disable-* | --disable-*) |
503d2be0 | 839 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
ba4481b5 | 840 | # Reject names that are not valid shell variable names. |
f053c89f | 841 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
503d2be0 AS |
842 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
843 | { (exit 1); exit 1; }; } | |
f053c89f | 844 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
ca81d7a0 JD |
845 | eval enable_$ac_feature=no ;; |
846 | ||
847 | -docdir | --docdir | --docdi | --doc | --do) | |
848 | ac_prev=docdir ;; | |
849 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
850 | docdir=$ac_optarg ;; | |
851 | ||
852 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
853 | ac_prev=dvidir ;; | |
854 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
855 | dvidir=$ac_optarg ;; | |
ba4481b5 DL |
856 | |
857 | -enable-* | --enable-*) | |
503d2be0 | 858 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
ba4481b5 | 859 | # Reject names that are not valid shell variable names. |
f053c89f | 860 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
503d2be0 AS |
861 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
862 | { (exit 1); exit 1; }; } | |
f053c89f | 863 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
ca81d7a0 | 864 | eval enable_$ac_feature=\$ac_optarg ;; |
ba4481b5 DL |
865 | |
866 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
867 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
868 | | --exec | --exe | --ex) | |
869 | ac_prev=exec_prefix ;; | |
870 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
871 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
872 | | --exec=* | --exe=* | --ex=*) | |
503d2be0 | 873 | exec_prefix=$ac_optarg ;; |
ba4481b5 DL |
874 | |
875 | -gas | --gas | --ga | --g) | |
876 | # Obsolete; use --with-gas. | |
877 | with_gas=yes ;; | |
878 | ||
503d2be0 AS |
879 | -help | --help | --hel | --he | -h) |
880 | ac_init_help=long ;; | |
881 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
882 | ac_init_help=recursive ;; | |
883 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
884 | ac_init_help=short ;; | |
ba4481b5 DL |
885 | |
886 | -host | --host | --hos | --ho) | |
503d2be0 | 887 | ac_prev=host_alias ;; |
ba4481b5 | 888 | -host=* | --host=* | --hos=* | --ho=*) |
503d2be0 | 889 | host_alias=$ac_optarg ;; |
ba4481b5 | 890 | |
ca81d7a0 JD |
891 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
892 | ac_prev=htmldir ;; | |
893 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
894 | | --ht=*) | |
895 | htmldir=$ac_optarg ;; | |
896 | ||
ba4481b5 DL |
897 | -includedir | --includedir | --includedi | --included | --include \ |
898 | | --includ | --inclu | --incl | --inc) | |
899 | ac_prev=includedir ;; | |
900 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
901 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
503d2be0 | 902 | includedir=$ac_optarg ;; |
ba4481b5 DL |
903 | |
904 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
905 | ac_prev=infodir ;; | |
906 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
503d2be0 | 907 | infodir=$ac_optarg ;; |
ba4481b5 DL |
908 | |
909 | -libdir | --libdir | --libdi | --libd) | |
910 | ac_prev=libdir ;; | |
911 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
503d2be0 | 912 | libdir=$ac_optarg ;; |
ba4481b5 DL |
913 | |
914 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
915 | | --libexe | --libex | --libe) | |
916 | ac_prev=libexecdir ;; | |
917 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
918 | | --libexe=* | --libex=* | --libe=*) | |
503d2be0 | 919 | libexecdir=$ac_optarg ;; |
ba4481b5 | 920 | |
ca81d7a0 JD |
921 | -localedir | --localedir | --localedi | --localed | --locale) |
922 | ac_prev=localedir ;; | |
923 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
924 | localedir=$ac_optarg ;; | |
925 | ||
ba4481b5 | 926 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
ca81d7a0 | 927 | | --localstate | --localstat | --localsta | --localst | --locals) |
ba4481b5 DL |
928 | ac_prev=localstatedir ;; |
929 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
ca81d7a0 | 930 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
503d2be0 | 931 | localstatedir=$ac_optarg ;; |
ba4481b5 DL |
932 | |
933 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
934 | ac_prev=mandir ;; | |
935 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
503d2be0 | 936 | mandir=$ac_optarg ;; |
ba4481b5 DL |
937 | |
938 | -nfp | --nfp | --nf) | |
939 | # Obsolete; use --without-fp. | |
940 | with_fp=no ;; | |
941 | ||
942 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
c0d27fcc | 943 | | --no-cr | --no-c | -n) |
ba4481b5 DL |
944 | no_create=yes ;; |
945 | ||
946 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
947 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
948 | no_recursion=yes ;; | |
949 | ||
950 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
951 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
952 | | --oldin | --oldi | --old | --ol | --o) | |
953 | ac_prev=oldincludedir ;; | |
954 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
955 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
956 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
503d2be0 | 957 | oldincludedir=$ac_optarg ;; |
ba4481b5 DL |
958 | |
959 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
960 | ac_prev=prefix ;; | |
961 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
503d2be0 | 962 | prefix=$ac_optarg ;; |
ba4481b5 DL |
963 | |
964 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
965 | | --program-pre | --program-pr | --program-p) | |
966 | ac_prev=program_prefix ;; | |
967 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
968 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
503d2be0 | 969 | program_prefix=$ac_optarg ;; |
ba4481b5 DL |
970 | |
971 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
972 | | --program-suf | --program-su | --program-s) | |
973 | ac_prev=program_suffix ;; | |
974 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
975 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
503d2be0 | 976 | program_suffix=$ac_optarg ;; |
ba4481b5 DL |
977 | |
978 | -program-transform-name | --program-transform-name \ | |
979 | | --program-transform-nam | --program-transform-na \ | |
980 | | --program-transform-n | --program-transform- \ | |
981 | | --program-transform | --program-transfor \ | |
982 | | --program-transfo | --program-transf \ | |
983 | | --program-trans | --program-tran \ | |
984 | | --progr-tra | --program-tr | --program-t) | |
985 | ac_prev=program_transform_name ;; | |
986 | -program-transform-name=* | --program-transform-name=* \ | |
987 | | --program-transform-nam=* | --program-transform-na=* \ | |
988 | | --program-transform-n=* | --program-transform-=* \ | |
989 | | --program-transform=* | --program-transfor=* \ | |
990 | | --program-transfo=* | --program-transf=* \ | |
991 | | --program-trans=* | --program-tran=* \ | |
992 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
503d2be0 | 993 | program_transform_name=$ac_optarg ;; |
ba4481b5 | 994 | |
ca81d7a0 JD |
995 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
996 | ac_prev=pdfdir ;; | |
997 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
998 | pdfdir=$ac_optarg ;; | |
999 | ||
1000 | -psdir | --psdir | --psdi | --psd | --ps) | |
1001 | ac_prev=psdir ;; | |
1002 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1003 | psdir=$ac_optarg ;; | |
1004 | ||
ba4481b5 DL |
1005 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1006 | | -silent | --silent | --silen | --sile | --sil) | |
1007 | silent=yes ;; | |
1008 | ||
1009 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1010 | ac_prev=sbindir ;; | |
1011 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1012 | | --sbi=* | --sb=*) | |
503d2be0 | 1013 | sbindir=$ac_optarg ;; |
ba4481b5 DL |
1014 | |
1015 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1016 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1017 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1018 | | --sha | --sh) | |
1019 | ac_prev=sharedstatedir ;; | |
1020 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1021 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1022 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1023 | | --sha=* | --sh=*) | |
503d2be0 | 1024 | sharedstatedir=$ac_optarg ;; |
ba4481b5 DL |
1025 | |
1026 | -site | --site | --sit) | |
1027 | ac_prev=site ;; | |
1028 | -site=* | --site=* | --sit=*) | |
503d2be0 | 1029 | site=$ac_optarg ;; |
ba4481b5 DL |
1030 | |
1031 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1032 | ac_prev=srcdir ;; | |
1033 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
503d2be0 | 1034 | srcdir=$ac_optarg ;; |
ba4481b5 DL |
1035 | |
1036 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1037 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1038 | ac_prev=sysconfdir ;; | |
1039 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1040 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
503d2be0 | 1041 | sysconfdir=$ac_optarg ;; |
ba4481b5 DL |
1042 | |
1043 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
503d2be0 | 1044 | ac_prev=target_alias ;; |
ba4481b5 | 1045 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
503d2be0 | 1046 | target_alias=$ac_optarg ;; |
ba4481b5 DL |
1047 | |
1048 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1049 | verbose=yes ;; | |
1050 | ||
503d2be0 AS |
1051 | -version | --version | --versio | --versi | --vers | -V) |
1052 | ac_init_version=: ;; | |
ba4481b5 DL |
1053 | |
1054 | -with-* | --with-*) | |
503d2be0 | 1055 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
ba4481b5 | 1056 | # Reject names that are not valid shell variable names. |
f053c89f | 1057 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
503d2be0 AS |
1058 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
1059 | { (exit 1); exit 1; }; } | |
f053c89f | 1060 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
ca81d7a0 | 1061 | eval with_$ac_package=\$ac_optarg ;; |
ba4481b5 DL |
1062 | |
1063 | -without-* | --without-*) | |
503d2be0 | 1064 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
ba4481b5 | 1065 | # Reject names that are not valid shell variable names. |
f053c89f | 1066 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
503d2be0 AS |
1067 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
1068 | { (exit 1); exit 1; }; } | |
f053c89f | 1069 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
ca81d7a0 | 1070 | eval with_$ac_package=no ;; |
ba4481b5 DL |
1071 | |
1072 | --x) | |
1073 | # Obsolete; use --with-x. | |
1074 | with_x=yes ;; | |
1075 | ||
1076 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1077 | | --x-incl | --x-inc | --x-in | --x-i) | |
1078 | ac_prev=x_includes ;; | |
1079 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1080 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
503d2be0 | 1081 | x_includes=$ac_optarg ;; |
ba4481b5 DL |
1082 | |
1083 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1084 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1085 | ac_prev=x_libraries ;; | |
1086 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1087 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
503d2be0 | 1088 | x_libraries=$ac_optarg ;; |
ba4481b5 | 1089 | |
503d2be0 AS |
1090 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
1091 | Try \`$0 --help' for more information." >&2 | |
1092 | { (exit 1); exit 1; }; } | |
ba4481b5 DL |
1093 | ;; |
1094 | ||
503d2be0 AS |
1095 | *=*) |
1096 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1097 | # Reject names that are not valid shell variable names. | |
1098 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
1099 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
1100 | { (exit 1); exit 1; }; } | |
ca81d7a0 | 1101 | eval $ac_envvar=\$ac_optarg |
503d2be0 AS |
1102 | export $ac_envvar ;; |
1103 | ||
ba4481b5 | 1104 | *) |
503d2be0 AS |
1105 | # FIXME: should be removed in autoconf 3.0. |
1106 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1107 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1108 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1109 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
ba4481b5 DL |
1110 | ;; |
1111 | ||
1112 | esac | |
1113 | done | |
1114 | ||
1115 | if test -n "$ac_prev"; then | |
503d2be0 AS |
1116 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
1117 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
1118 | { (exit 1); exit 1; }; } | |
ba4481b5 | 1119 | fi |
ba4481b5 | 1120 | |
ca81d7a0 JD |
1121 | # Be sure to have absolute directory names. |
1122 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1123 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1124 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1125 | libdir localedir mandir | |
4b411bfe | 1126 | do |
ca81d7a0 | 1127 | eval ac_val=\$$ac_var |
4b411bfe | 1128 | case $ac_val in |
ca81d7a0 JD |
1129 | [\\/$]* | ?:[\\/]* ) continue;; |
1130 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
ba4481b5 | 1131 | esac |
ca81d7a0 JD |
1132 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
1133 | { (exit 1); exit 1; }; } | |
ba4481b5 DL |
1134 | done |
1135 | ||
503d2be0 AS |
1136 | # There might be people who depend on the old broken behavior: `$host' |
1137 | # used to hold the argument of --host etc. | |
c0d27fcc | 1138 | # FIXME: To remove some day. |
503d2be0 AS |
1139 | build=$build_alias |
1140 | host=$host_alias | |
1141 | target=$target_alias | |
1142 | ||
c0d27fcc | 1143 | # FIXME: To remove some day. |
503d2be0 AS |
1144 | if test "x$host_alias" != x; then |
1145 | if test "x$build_alias" = x; then | |
1146 | cross_compiling=maybe | |
1147 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
1148 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
1149 | elif test "x$build_alias" != "x$host_alias"; then | |
1150 | cross_compiling=yes | |
1151 | fi | |
1152 | fi | |
ba4481b5 | 1153 | |
503d2be0 AS |
1154 | ac_tool_prefix= |
1155 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
ba4481b5 | 1156 | |
503d2be0 | 1157 | test "$silent" = yes && exec 6>/dev/null |
ba4481b5 | 1158 | |
c0d27fcc | 1159 | |
ca81d7a0 JD |
1160 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1161 | ac_ls_di=`ls -di .` && | |
1162 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1163 | { echo "$as_me: error: Working directory cannot be determined" >&2 | |
1164 | { (exit 1); exit 1; }; } | |
1165 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1166 | { echo "$as_me: error: pwd does not report name of working directory" >&2 | |
1167 | { (exit 1); exit 1; }; } | |
1168 | ||
1169 | ||
ba4481b5 DL |
1170 | # Find the source files, if location was not specified. |
1171 | if test -z "$srcdir"; then | |
1172 | ac_srcdir_defaulted=yes | |
ca81d7a0 JD |
1173 | # Try the directory containing this script, then the parent directory. |
1174 | ac_confdir=`$as_dirname -- "$0" || | |
c0d27fcc | 1175 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
edfaf76d LK |
1176 | X"$0" : 'X\(//\)[^/]' \| \ |
1177 | X"$0" : 'X\(//\)$' \| \ | |
ca81d7a0 | 1178 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
c0d27fcc | 1179 | echo X"$0" | |
ca81d7a0 JD |
1180 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1181 | s//\1/ | |
1182 | q | |
1183 | } | |
1184 | /^X\(\/\/\)[^/].*/{ | |
1185 | s//\1/ | |
1186 | q | |
1187 | } | |
1188 | /^X\(\/\/\)$/{ | |
1189 | s//\1/ | |
1190 | q | |
1191 | } | |
1192 | /^X\(\/\).*/{ | |
1193 | s//\1/ | |
1194 | q | |
1195 | } | |
1196 | s/.*/./; q'` | |
ba4481b5 | 1197 | srcdir=$ac_confdir |
ca81d7a0 | 1198 | if test ! -r "$srcdir/$ac_unique_file"; then |
ba4481b5 DL |
1199 | srcdir=.. |
1200 | fi | |
1201 | else | |
1202 | ac_srcdir_defaulted=no | |
1203 | fi | |
ca81d7a0 JD |
1204 | if test ! -r "$srcdir/$ac_unique_file"; then |
1205 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1206 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
503d2be0 | 1207 | { (exit 1); exit 1; }; } |
ba4481b5 | 1208 | fi |
ca81d7a0 JD |
1209 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1210 | ac_abs_confdir=`( | |
1211 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 | |
6bae0ccf | 1212 | { (exit 1); exit 1; }; } |
ca81d7a0 JD |
1213 | pwd)` |
1214 | # When building in place, set srcdir=. | |
1215 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1216 | srcdir=. | |
1217 | fi | |
1218 | # Remove unnecessary trailing slashes from srcdir. | |
1219 | # Double slashes in file names in object file debugging info | |
1220 | # mess up M-x gdb in Emacs. | |
1221 | case $srcdir in | |
1222 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1223 | esac | |
1224 | for ac_var in $ac_precious_vars; do | |
1225 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1226 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1227 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1228 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1229 | done | |
503d2be0 AS |
1230 | |
1231 | # | |
1232 | # Report the --help message. | |
1233 | # | |
1234 | if test "$ac_init_help" = "long"; then | |
1235 | # Omit some internal or obsolete options to make the list less imposing. | |
1236 | # This message is too long to be a string in the A/UX 3.1 sh. | |
c0d27fcc | 1237 | cat <<_ACEOF |
503d2be0 AS |
1238 | \`configure' configures this package to adapt to many kinds of systems. |
1239 | ||
1240 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1241 | ||
1242 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1243 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1244 | ||
1245 | Defaults for the options are specified in brackets. | |
1246 | ||
1247 | Configuration: | |
1248 | -h, --help display this help and exit | |
1249 | --help=short display options specific to this package | |
1250 | --help=recursive display the short help of all the included packages | |
1251 | -V, --version display version information and exit | |
1252 | -q, --quiet, --silent do not print \`checking...' messages | |
1253 | --cache-file=FILE cache test results in FILE [disabled] | |
1254 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1255 | -n, --no-create do not create output files | |
1256 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1257 | ||
503d2be0 AS |
1258 | Installation directories: |
1259 | --prefix=PREFIX install architecture-independent files in PREFIX | |
edfaf76d | 1260 | [$ac_default_prefix] |
503d2be0 | 1261 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
edfaf76d | 1262 | [PREFIX] |
503d2be0 AS |
1263 | |
1264 | By default, \`make install' will install all the files in | |
1265 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1266 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1267 | for instance \`--prefix=\$HOME'. | |
1268 | ||
1269 | For better control, use the options below. | |
1270 | ||
1271 | Fine tuning of the installation directories: | |
1272 | --bindir=DIR user executables [EPREFIX/bin] | |
1273 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1274 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
503d2be0 AS |
1275 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
1276 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1277 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1278 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1279 | --includedir=DIR C header files [PREFIX/include] | |
1280 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
ca81d7a0 JD |
1281 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
1282 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1283 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1284 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1285 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1286 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1287 | --htmldir=DIR html documentation [DOCDIR] | |
1288 | --dvidir=DIR dvi documentation [DOCDIR] | |
1289 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1290 | --psdir=DIR ps documentation [DOCDIR] | |
c0d27fcc | 1291 | _ACEOF |
503d2be0 | 1292 | |
c0d27fcc | 1293 | cat <<\_ACEOF |
503d2be0 | 1294 | |
ba5da88a PJ |
1295 | Program names: |
1296 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1297 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1298 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1299 | ||
503d2be0 AS |
1300 | X features: |
1301 | --x-includes=DIR X include files are in DIR | |
1302 | --x-libraries=DIR X library files are in DIR | |
1303 | ||
1304 | System types: | |
1305 | --build=BUILD configure for building on BUILD [guessed] | |
c0d27fcc MR |
1306 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
1307 | _ACEOF | |
503d2be0 AS |
1308 | fi |
1309 | ||
1310 | if test -n "$ac_init_help"; then | |
1311 | ||
c0d27fcc | 1312 | cat <<\_ACEOF |
503d2be0 AS |
1313 | |
1314 | Optional Features: | |
1315 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1316 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
6a3a24fa JD |
1317 | --enable-carbon-app[=DIR] [DIR=/Application] |
1318 | specify install directory for Emacs.app on Mac OS X | |
d0098f13 | 1319 | --enable-asserts compile code with asserts enabled |
19650fd6 AS |
1320 | --enable-maintainer-mode enable make rules and dependencies not useful |
1321 | (and sometimes confusing) to the casual installer | |
9adfabc2 LK |
1322 | --enable-locallisppath=PATH |
1323 | directories Emacs should search for lisp files | |
1324 | specific to this site | |
503d2be0 AS |
1325 | --disable-largefile omit support for large files |
1326 | ||
1327 | Optional Packages: | |
1328 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1329 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1330 | --without-gcc don't use GCC to compile Emacs if GCC is found | |
1331 | --without-pop don't support POP mail retrieval with movemail | |
1332 | --with-kerberos support Kerberos-authenticated POP | |
1333 | --with-kerberos5 support Kerberos version 5 authenticated POP | |
1334 | --with-hesiod support Hesiod to get the POP server host | |
2c9dccc9 | 1335 | --without-sound don't compile with sound support |
488dd4c4 JD |
1336 | --with-x-toolkit=KIT use an X toolkit |
1337 | (KIT = yes/lucid/athena/motif/gtk/no) | |
503d2be0 AS |
1338 | --with-xpm use -lXpm for displaying XPM images |
1339 | --with-jpeg use -ljpeg for displaying JPEG images | |
1340 | --with-tiff use -ltiff for displaying TIFF images | |
63175cd2 | 1341 | --with-gif use -lgif (or -lungif) for displaying GIF images |
503d2be0 | 1342 | --with-png use -lpng for displaying PNG images |
79011b82 | 1343 | --with-gpm use -lgpm for mouse support on a GNU/Linux console |
488dd4c4 JD |
1344 | --with-gtk use GTK (same as --with-x-toolkit=gtk) |
1345 | --with-pkg-config-prog Path to pkg-config to use for finding GTK | |
503d2be0 | 1346 | --without-toolkit-scroll-bars |
cc227489 MB |
1347 | don't use Motif or Xaw3d scroll bars |
1348 | --without-xim don't use X11 XIM | |
e0f712ba | 1349 | --without-carbon don't use Carbon GUI on Mac OS X |
503d2be0 AS |
1350 | --with-x use the X Window System |
1351 | ||
1352 | Some influential environment variables: | |
1353 | CC C compiler command | |
1354 | CFLAGS C compiler flags | |
1355 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1356 | nonstandard directory <lib dir> | |
f053c89f | 1357 | LIBS libraries to pass to the linker, e.g. -l<library> |
ca81d7a0 JD |
1358 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1359 | you have headers in a nonstandard directory <include dir> | |
503d2be0 | 1360 | CPP C preprocessor |
ca81d7a0 | 1361 | XMKMF Path to xmkmf, Makefile generator for X Window System |
503d2be0 AS |
1362 | |
1363 | Use these variables to override the choices made by `configure' or to help | |
1364 | it to find libraries and programs with nonstandard names/locations. | |
1365 | ||
c0d27fcc | 1366 | _ACEOF |
ca81d7a0 | 1367 | ac_status=$? |
503d2be0 AS |
1368 | fi |
1369 | ||
1370 | if test "$ac_init_help" = "recursive"; then | |
1371 | # If there are subdirs, report their specific --help. | |
c0d27fcc | 1372 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
ca81d7a0 | 1373 | test -d "$ac_dir" || continue |
c0d27fcc MR |
1374 | ac_builddir=. |
1375 | ||
ca81d7a0 JD |
1376 | case "$ac_dir" in |
1377 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1378 | *) | |
c0d27fcc | 1379 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
ca81d7a0 JD |
1380 | # A ".." for each directory in $ac_dir_suffix. |
1381 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | |
1382 | case $ac_top_builddir_sub in | |
1383 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1384 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1385 | esac ;; | |
1386 | esac | |
1387 | ac_abs_top_builddir=$ac_pwd | |
1388 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1389 | # for backward compatibility: | |
1390 | ac_top_builddir=$ac_top_build_prefix | |
503d2be0 | 1391 | |
c0d27fcc | 1392 | case $srcdir in |
ca81d7a0 | 1393 | .) # We are building in place. |
c0d27fcc | 1394 | ac_srcdir=. |
ca81d7a0 JD |
1395 | ac_top_srcdir=$ac_top_builddir_sub |
1396 | ac_abs_top_srcdir=$ac_pwd ;; | |
1397 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
c0d27fcc | 1398 | ac_srcdir=$srcdir$ac_dir_suffix; |
ca81d7a0 JD |
1399 | ac_top_srcdir=$srcdir |
1400 | ac_abs_top_srcdir=$srcdir ;; | |
1401 | *) # Relative name. | |
1402 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1403 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1404 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
edfaf76d | 1405 | esac |
ca81d7a0 JD |
1406 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1407 | ||
1408 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1409 | # Check for guested configure. | |
1410 | if test -f "$ac_srcdir/configure.gnu"; then | |
1411 | echo && | |
1412 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1413 | elif test -f "$ac_srcdir/configure"; then | |
1414 | echo && | |
1415 | $SHELL "$ac_srcdir/configure" --help=recursive | |
503d2be0 | 1416 | else |
c0d27fcc | 1417 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
ca81d7a0 JD |
1418 | fi || ac_status=$? |
1419 | cd "$ac_pwd" || { ac_status=$?; break; } | |
503d2be0 AS |
1420 | done |
1421 | fi | |
1422 | ||
ca81d7a0 | 1423 | test -n "$ac_init_help" && exit $ac_status |
503d2be0 | 1424 | if $ac_init_version; then |
c0d27fcc | 1425 | cat <<\_ACEOF |
ca81d7a0 | 1426 | configure |
f053c89f | 1427 | generated by GNU Autoconf 2.61 |
503d2be0 | 1428 | |
ca81d7a0 | 1429 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
040c474e | 1430 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
503d2be0 AS |
1431 | This configure script is free software; the Free Software Foundation |
1432 | gives unlimited permission to copy, distribute and modify it. | |
c0d27fcc | 1433 | _ACEOF |
ca81d7a0 | 1434 | exit |
503d2be0 | 1435 | fi |
ca81d7a0 | 1436 | cat >config.log <<_ACEOF |
503d2be0 AS |
1437 | This file contains any messages produced by compilers while |
1438 | running configure, to aid debugging if configure makes a mistake. | |
1439 | ||
1440 | It was created by $as_me, which was | |
f053c89f | 1441 | generated by GNU Autoconf 2.61. Invocation command line was |
503d2be0 AS |
1442 | |
1443 | $ $0 $@ | |
1444 | ||
c0d27fcc | 1445 | _ACEOF |
ca81d7a0 | 1446 | exec 5>>config.log |
503d2be0 AS |
1447 | { |
1448 | cat <<_ASUNAME | |
c0d27fcc MR |
1449 | ## --------- ## |
1450 | ## Platform. ## | |
1451 | ## --------- ## | |
503d2be0 AS |
1452 | |
1453 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1454 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1455 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1456 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1457 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1458 | ||
1459 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1460 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1461 | ||
1462 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1463 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1464 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
ca81d7a0 | 1465 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
503d2be0 AS |
1466 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1467 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1468 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1469 | ||
925c2f3f | 1470 | _ASUNAME |
c0d27fcc MR |
1471 | |
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 | echo "PATH: $as_dir" | |
1478 | done | |
ca81d7a0 | 1479 | IFS=$as_save_IFS |
c0d27fcc | 1480 | |
503d2be0 AS |
1481 | } >&5 |
1482 | ||
c0d27fcc MR |
1483 | cat >&5 <<_ACEOF |
1484 | ||
1485 | ||
1486 | ## ----------- ## | |
1487 | ## Core tests. ## | |
1488 | ## ----------- ## | |
1489 | ||
1490 | _ACEOF | |
503d2be0 | 1491 | |
503d2be0 AS |
1492 | |
1493 | # Keep a trace of the command line. | |
1494 | # Strip out --no-create and --no-recursion so they do not pile up. | |
19650fd6 | 1495 | # Strip out --silent because we don't want to record it for future runs. |
503d2be0 | 1496 | # Also quote any args containing shell meta-characters. |
19650fd6 | 1497 | # Make two passes to allow for proper duplicate-argument suppression. |
503d2be0 | 1498 | ac_configure_args= |
19650fd6 AS |
1499 | ac_configure_args0= |
1500 | ac_configure_args1= | |
19650fd6 AS |
1501 | ac_must_keep_next=false |
1502 | for ac_pass in 1 2 | |
503d2be0 | 1503 | do |
19650fd6 AS |
1504 | for ac_arg |
1505 | do | |
1506 | case $ac_arg in | |
1507 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1508 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1509 | | -silent | --silent | --silen | --sile | --sil) | |
1510 | continue ;; | |
ca81d7a0 | 1511 | *\'*) |
19650fd6 AS |
1512 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1513 | esac | |
1514 | case $ac_pass in | |
1515 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1516 | 2) | |
1517 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1518 | if test $ac_must_keep_next = true; then | |
edfaf76d | 1519 | ac_must_keep_next=false # Got value, back to normal. |
19650fd6 | 1520 | else |
edfaf76d LK |
1521 | case $ac_arg in |
1522 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1523 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1524 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1525 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1526 | case "$ac_configure_args0 " in | |
1527 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1528 | esac | |
1529 | ;; | |
1530 | -* ) ac_must_keep_next=true ;; | |
1531 | esac | |
19650fd6 | 1532 | fi |
ca81d7a0 | 1533 | ac_configure_args="$ac_configure_args '$ac_arg'" |
19650fd6 AS |
1534 | ;; |
1535 | esac | |
1536 | done | |
503d2be0 | 1537 | done |
19650fd6 AS |
1538 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
1539 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
503d2be0 AS |
1540 | |
1541 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1542 | # config.log. We remove comments because anyway the quotes in there | |
1543 | # would cause problems or look ugly. | |
ca81d7a0 JD |
1544 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1545 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
503d2be0 AS |
1546 | trap 'exit_status=$? |
1547 | # Save into config.log some information that might help in debugging. | |
c0d27fcc MR |
1548 | { |
1549 | echo | |
6bae0ccf | 1550 | |
c0d27fcc MR |
1551 | cat <<\_ASBOX |
1552 | ## ---------------- ## | |
1553 | ## Cache variables. ## | |
1554 | ## ---------------- ## | |
1555 | _ASBOX | |
1556 | echo | |
1557 | # The following way of writing the cache mishandles newlines in values, | |
ca81d7a0 JD |
1558 | ( |
1559 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1560 | eval ac_val=\$$ac_var | |
1561 | case $ac_val in #( | |
1562 | *${as_nl}*) | |
1563 | case $ac_var in #( | |
1564 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | |
1565 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
1566 | esac | |
1567 | case $ac_var in #( | |
1568 | _ | IFS | as_nl) ;; #( | |
1569 | *) $as_unset $ac_var ;; | |
1570 | esac ;; | |
1571 | esac | |
1572 | done | |
503d2be0 | 1573 | (set) 2>&1 | |
ca81d7a0 JD |
1574 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1575 | *${as_nl}ac_space=\ *) | |
503d2be0 | 1576 | sed -n \ |
ca81d7a0 JD |
1577 | "s/'\''/'\''\\\\'\'''\''/g; |
1578 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1579 | ;; #( | |
503d2be0 | 1580 | *) |
ca81d7a0 | 1581 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
503d2be0 | 1582 | ;; |
ca81d7a0 JD |
1583 | esac | |
1584 | sort | |
1585 | ) | |
c0d27fcc | 1586 | echo |
6bae0ccf DL |
1587 | |
1588 | cat <<\_ASBOX | |
1589 | ## ----------------- ## | |
1590 | ## Output variables. ## | |
1591 | ## ----------------- ## | |
1592 | _ASBOX | |
1593 | echo | |
1594 | for ac_var in $ac_subst_vars | |
1595 | do | |
ca81d7a0 JD |
1596 | eval ac_val=\$$ac_var |
1597 | case $ac_val in | |
1598 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1599 | esac | |
1600 | echo "$ac_var='\''$ac_val'\''" | |
6bae0ccf DL |
1601 | done | sort |
1602 | echo | |
1603 | ||
1604 | if test -n "$ac_subst_files"; then | |
1605 | cat <<\_ASBOX | |
ca81d7a0 JD |
1606 | ## ------------------- ## |
1607 | ## File substitutions. ## | |
1608 | ## ------------------- ## | |
6bae0ccf DL |
1609 | _ASBOX |
1610 | echo | |
1611 | for ac_var in $ac_subst_files | |
1612 | do | |
ca81d7a0 JD |
1613 | eval ac_val=\$$ac_var |
1614 | case $ac_val in | |
1615 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1616 | esac | |
1617 | echo "$ac_var='\''$ac_val'\''" | |
6bae0ccf DL |
1618 | done | sort |
1619 | echo | |
1620 | fi | |
1621 | ||
c0d27fcc MR |
1622 | if test -s confdefs.h; then |
1623 | cat <<\_ASBOX | |
1624 | ## ----------- ## | |
1625 | ## confdefs.h. ## | |
1626 | ## ----------- ## | |
1627 | _ASBOX | |
1628 | echo | |
ca81d7a0 | 1629 | cat confdefs.h |
c0d27fcc MR |
1630 | echo |
1631 | fi | |
1632 | test "$ac_signal" != 0 && | |
1633 | echo "$as_me: caught signal $ac_signal" | |
1634 | echo "$as_me: exit $exit_status" | |
1635 | } >&5 | |
ca81d7a0 JD |
1636 | rm -f core *.core core.conftest.* && |
1637 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
503d2be0 | 1638 | exit $exit_status |
ca81d7a0 | 1639 | ' 0 |
503d2be0 AS |
1640 | for ac_signal in 1 2 13 15; do |
1641 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1642 | done | |
1643 | ac_signal=0 | |
1644 | ||
1645 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
ca81d7a0 | 1646 | rm -f -r conftest* confdefs.h |
ba4481b5 | 1647 | |
c0d27fcc MR |
1648 | # Predefined preprocessor variables. |
1649 | ||
1650 | cat >>confdefs.h <<_ACEOF | |
1651 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1652 | _ACEOF | |
1653 | ||
1654 | ||
1655 | cat >>confdefs.h <<_ACEOF | |
1656 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1657 | _ACEOF | |
1658 | ||
1659 | ||
1660 | cat >>confdefs.h <<_ACEOF | |
1661 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1662 | _ACEOF | |
1663 | ||
1664 | ||
1665 | cat >>confdefs.h <<_ACEOF | |
1666 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1667 | _ACEOF | |
1668 | ||
1669 | ||
1670 | cat >>confdefs.h <<_ACEOF | |
1671 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1672 | _ACEOF | |
1673 | ||
1674 | ||
503d2be0 | 1675 | # Let the site file select an alternate cache file if it wants to. |
ba4481b5 | 1676 | # Prefer explicitly selected file to automatically selected ones. |
ca81d7a0 JD |
1677 | if test -n "$CONFIG_SITE"; then |
1678 | set x "$CONFIG_SITE" | |
1679 | elif test "x$prefix" != xNONE; then | |
1680 | set x "$prefix/share/config.site" "$prefix/etc/config.site" | |
1681 | else | |
1682 | set x "$ac_default_prefix/share/config.site" \ | |
1683 | "$ac_default_prefix/etc/config.site" | |
ba4481b5 | 1684 | fi |
ca81d7a0 JD |
1685 | shift |
1686 | for ac_site_file | |
1687 | do | |
ba4481b5 | 1688 | if test -r "$ac_site_file"; then |
c0d27fcc | 1689 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
503d2be0 | 1690 | echo "$as_me: loading site script $ac_site_file" >&6;} |
c0d27fcc | 1691 | sed 's/^/| /' "$ac_site_file" >&5 |
ba4481b5 DL |
1692 | . "$ac_site_file" |
1693 | fi | |
1694 | done | |
1695 | ||
1696 | if test -r "$cache_file"; then | |
503d2be0 AS |
1697 | # Some versions of bash will fail to source /dev/null (special |
1698 | # files actually), so we avoid doing that. | |
1699 | if test -f "$cache_file"; then | |
c0d27fcc | 1700 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
503d2be0 AS |
1701 | echo "$as_me: loading cache $cache_file" >&6;} |
1702 | case $cache_file in | |
ca81d7a0 JD |
1703 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1704 | *) . "./$cache_file";; | |
503d2be0 AS |
1705 | esac |
1706 | fi | |
ba4481b5 | 1707 | else |
c0d27fcc | 1708 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
503d2be0 AS |
1709 | echo "$as_me: creating cache $cache_file" >&6;} |
1710 | >$cache_file | |
1711 | fi | |
1712 | ||
f053c89f CY |
1713 | ac_header_list="$ac_header_list sys/time.h" |
1714 | ac_header_list="$ac_header_list unistd.h" | |
1715 | ac_func_list="$ac_func_list alarm" | |
503d2be0 AS |
1716 | # Check that the precious variables saved in the cache have kept the same |
1717 | # value. | |
1718 | ac_cache_corrupted=false | |
ca81d7a0 | 1719 | for ac_var in $ac_precious_vars; do |
503d2be0 AS |
1720 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1721 | eval ac_new_set=\$ac_env_${ac_var}_set | |
ca81d7a0 JD |
1722 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1723 | eval ac_new_val=\$ac_env_${ac_var}_value | |
503d2be0 AS |
1724 | case $ac_old_set,$ac_new_set in |
1725 | set,) | |
c0d27fcc | 1726 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
503d2be0 AS |
1727 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
1728 | ac_cache_corrupted=: ;; | |
1729 | ,set) | |
c0d27fcc | 1730 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
503d2be0 AS |
1731 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
1732 | ac_cache_corrupted=: ;; | |
1733 | ,);; | |
1734 | *) | |
1735 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
edfaf76d | 1736 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
503d2be0 | 1737 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
edfaf76d | 1738 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
503d2be0 | 1739 | echo "$as_me: former value: $ac_old_val" >&2;} |
edfaf76d | 1740 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
503d2be0 | 1741 | echo "$as_me: current value: $ac_new_val" >&2;} |
edfaf76d | 1742 | ac_cache_corrupted=: |
503d2be0 AS |
1743 | fi;; |
1744 | esac | |
c0d27fcc | 1745 | # Pass precious variables to config.status. |
503d2be0 AS |
1746 | if test "$ac_new_set" = set; then |
1747 | case $ac_new_val in | |
ca81d7a0 | 1748 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
c0d27fcc MR |
1749 | *) ac_arg=$ac_var=$ac_new_val ;; |
1750 | esac | |
1751 | case " $ac_configure_args " in | |
1752 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1753 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
503d2be0 AS |
1754 | esac |
1755 | fi | |
1756 | done | |
1757 | if $ac_cache_corrupted; then | |
c0d27fcc | 1758 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
503d2be0 | 1759 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
c0d27fcc | 1760 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
503d2be0 AS |
1761 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
1762 | { (exit 1); exit 1; }; } | |
ba4481b5 DL |
1763 | fi |
1764 | ||
c0d27fcc MR |
1765 | |
1766 | ||
1767 | ||
1768 | ||
1769 | ||
1770 | ||
1771 | ||
1772 | ||
1773 | ||
1774 | ||
1775 | ||
1776 | ||
1777 | ||
1778 | ||
1779 | ||
ba4481b5 | 1780 | |
ca81d7a0 JD |
1781 | ac_ext=c |
1782 | ac_cpp='$CPP $CPPFLAGS' | |
1783 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1784 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1785 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6bae0ccf | 1786 | |
4b411bfe | 1787 | |
ca81d7a0 | 1788 | ac_config_headers="$ac_config_headers src/config.h:src/config.in" |
ba4481b5 | 1789 | |
c0d27fcc | 1790 | |
ba5da88a | 1791 | test "$program_prefix" != NONE && |
ca81d7a0 | 1792 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
ba5da88a PJ |
1793 | # Use a double $ so make ignores it. |
1794 | test "$program_suffix" != NONE && | |
ca81d7a0 | 1795 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
ba5da88a PJ |
1796 | # Double any \ or $. echo might interpret backslashes. |
1797 | # By default was `s,x,x', remove it if useless. | |
1798 | cat <<\_ACEOF >conftest.sed | |
1799 | s/[\\$]/&&/g;s/;s,x,x,$// | |
1800 | _ACEOF | |
1801 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
ca81d7a0 | 1802 | rm -f conftest.sed |
ba5da88a | 1803 | |
c0d27fcc | 1804 | |
ba4481b5 DL |
1805 | lispdir='${datadir}/emacs/${version}/lisp' |
1806 | locallisppath='${datadir}/emacs/${version}/site-lisp:'\ | |
e9291f09 EZ |
1807 | '${datadir}/emacs/site-lisp' |
1808 | lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim' | |
ba4481b5 DL |
1809 | etcdir='${datadir}/emacs/${version}/etc' |
1810 | archlibdir='${libexecdir}/emacs/${version}/${configuration}' | |
1811 | docdir='${datadir}/emacs/${version}/etc' | |
24b01ec4 | 1812 | gamedir='${localstatedir}/games/emacs' |
98418dba CW |
1813 | |
1814 | gameuser=games | |
1815 | ||
c0d27fcc | 1816 | |
ca81d7a0 | 1817 | # Check whether --with-gcc was given. |
ba4481b5 | 1818 | if test "${with_gcc+set}" = set; then |
ca81d7a0 JD |
1819 | withval=$with_gcc; |
1820 | fi | |
503d2be0 | 1821 | |
ba4481b5 | 1822 | |
ca81d7a0 | 1823 | # Check whether --with-pop was given. |
ba4481b5 | 1824 | if test "${with_pop+set}" = set; then |
ca81d7a0 | 1825 | withval=$with_pop; if test "$withval" = yes; then |
c0d27fcc | 1826 | cat >>confdefs.h <<\_ACEOF |
ba4481b5 | 1827 | #define MAIL_USE_POP 1 |
c0d27fcc | 1828 | _ACEOF |
ba4481b5 | 1829 | |
243cf185 DL |
1830 | else : |
1831 | fi | |
3d9fec71 | 1832 | else |
c0d27fcc | 1833 | cat >>confdefs.h <<\_ACEOF |
3d9fec71 | 1834 | #define MAIL_USE_POP 1 |
c0d27fcc | 1835 | _ACEOF |
3d9fec71 | 1836 | |
ca81d7a0 JD |
1837 | fi |
1838 | ||
ba4481b5 | 1839 | |
c0d27fcc | 1840 | |
ca81d7a0 | 1841 | # Check whether --with-kerberos was given. |
a21616bd | 1842 | if test "${with_kerberos+set}" = set; then |
54e6585f CY |
1843 | withval=$with_kerberos; if test "$withval" = yes; then |
1844 | cat >>confdefs.h <<\_ACEOF | |
a21616bd | 1845 | #define KERBEROS 1 |
c0d27fcc | 1846 | _ACEOF |
a21616bd | 1847 | |
ca81d7a0 | 1848 | fi |
54e6585f | 1849 | fi |
ca81d7a0 | 1850 | |
a21616bd | 1851 | |
c0d27fcc | 1852 | |
ca81d7a0 | 1853 | # Check whether --with-kerberos5 was given. |
a21616bd | 1854 | if test "${with_kerberos5+set}" = set; then |
ca81d7a0 | 1855 | withval=$with_kerberos5; if test "${with_kerberos5+set}" = set; then |
a21616bd KR |
1856 | if test "${with_kerberos+set}" != set; then |
1857 | with_kerberos=yes | |
c0d27fcc | 1858 | cat >>confdefs.h <<\_ACEOF |
a21616bd | 1859 | #define KERBEROS 1 |
c0d27fcc | 1860 | _ACEOF |
a21616bd KR |
1861 | |
1862 | fi | |
b936fae4 | 1863 | |
c0d27fcc | 1864 | cat >>confdefs.h <<\_ACEOF |
a21616bd | 1865 | #define KERBEROS5 1 |
c0d27fcc | 1866 | _ACEOF |
a21616bd | 1867 | |
ca81d7a0 | 1868 | fi |
54e6585f | 1869 | fi |
b936fae4 | 1870 | |
4b411bfe | 1871 | |
ca81d7a0 JD |
1872 | # Check whether --with-hesiod was given. |
1873 | if test "${with_hesiod+set}" = set; then | |
54e6585f CY |
1874 | withval=$with_hesiod; if test "$withval" = yes; then |
1875 | ||
c0d27fcc | 1876 | cat >>confdefs.h <<\_ACEOF |
ba4481b5 | 1877 | #define HESIOD 1 |
c0d27fcc | 1878 | _ACEOF |
ba4481b5 | 1879 | |
ca81d7a0 | 1880 | fi |
54e6585f | 1881 | fi |
ca81d7a0 | 1882 | |
ba4481b5 | 1883 | |
c0d27fcc | 1884 | |
ca81d7a0 | 1885 | # Check whether --with-sound was given. |
2c9dccc9 | 1886 | if test "${with_sound+set}" = set; then |
ca81d7a0 JD |
1887 | withval=$with_sound; |
1888 | fi | |
2c9dccc9 | 1889 | |
2c9dccc9 | 1890 | |
c0d27fcc | 1891 | |
ca81d7a0 | 1892 | # Check whether --with-x-toolkit was given. |
ba4481b5 | 1893 | if test "${with_x_toolkit+set}" = set; then |
ca81d7a0 | 1894 | withval=$with_x_toolkit; case "${withval}" in |
089a966d | 1895 | y | ye | yes ) val=gtk ;; |
ba4481b5 DL |
1896 | n | no ) val=no ;; |
1897 | l | lu | luc | luci | lucid ) val=lucid ;; | |
1898 | a | at | ath | athe | athen | athena ) val=athena ;; | |
1899 | m | mo | mot | moti | motif ) val=motif ;; | |
488dd4c4 | 1900 | g | gt | gtk ) val=gtk ;; |
ba4481b5 | 1901 | * ) |
29d69661 | 1902 | { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid; |
488dd4c4 | 1903 | this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'. |
29d69661 JD |
1904 | \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5 |
1905 | echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid; | |
488dd4c4 | 1906 | this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'. |
29d69661 | 1907 | \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;} |
503d2be0 | 1908 | { (exit 1); exit 1; }; } |
ba4481b5 DL |
1909 | ;; |
1910 | esac | |
1911 | with_x_toolkit=$val | |
1912 | ||
ca81d7a0 | 1913 | fi |
8eeae1c9 | 1914 | |
ca81d7a0 JD |
1915 | |
1916 | # Check whether --with-xpm was given. | |
ba4481b5 | 1917 | if test "${with_xpm+set}" = set; then |
ca81d7a0 JD |
1918 | withval=$with_xpm; |
1919 | fi | |
503d2be0 | 1920 | |
ba4481b5 | 1921 | |
ca81d7a0 | 1922 | # Check whether --with-jpeg was given. |
ba4481b5 | 1923 | if test "${with_jpeg+set}" = set; then |
ca81d7a0 JD |
1924 | withval=$with_jpeg; |
1925 | fi | |
503d2be0 | 1926 | |
ba4481b5 | 1927 | |
ca81d7a0 | 1928 | # Check whether --with-tiff was given. |
ba4481b5 | 1929 | if test "${with_tiff+set}" = set; then |
ca81d7a0 JD |
1930 | withval=$with_tiff; |
1931 | fi | |
503d2be0 | 1932 | |
ba4481b5 | 1933 | |
ca81d7a0 | 1934 | # Check whether --with-gif was given. |
ba4481b5 | 1935 | if test "${with_gif+set}" = set; then |
ca81d7a0 JD |
1936 | withval=$with_gif; |
1937 | fi | |
503d2be0 | 1938 | |
ba4481b5 | 1939 | |
ca81d7a0 | 1940 | # Check whether --with-png was given. |
ba4481b5 | 1941 | if test "${with_png+set}" = set; then |
ca81d7a0 JD |
1942 | withval=$with_png; |
1943 | fi | |
503d2be0 | 1944 | |
ba4481b5 | 1945 | |
79011b82 NR |
1946 | # Check whether --with-gpm was given. |
1947 | if test "${with_gpm+set}" = set; then | |
1948 | withval=$with_gpm; | |
1949 | fi | |
1950 | ||
1951 | ||
ca81d7a0 | 1952 | # Check whether --with-gtk was given. |
488dd4c4 | 1953 | if test "${with_gtk+set}" = set; then |
ca81d7a0 JD |
1954 | withval=$with_gtk; |
1955 | fi | |
488dd4c4 | 1956 | |
488dd4c4 | 1957 | |
ca81d7a0 | 1958 | # Check whether --with-pkg-config-prog was given. |
488dd4c4 | 1959 | if test "${with_pkg_config_prog+set}" = set; then |
ca81d7a0 JD |
1960 | withval=$with_pkg_config_prog; |
1961 | fi | |
488dd4c4 | 1962 | |
488dd4c4 | 1963 | |
ca81d7a0 | 1964 | # Check whether --with-toolkit-scroll-bars was given. |
ba4481b5 | 1965 | if test "${with_toolkit_scroll_bars+set}" = set; then |
ca81d7a0 JD |
1966 | withval=$with_toolkit_scroll_bars; |
1967 | fi | |
503d2be0 | 1968 | |
ba4481b5 | 1969 | |
ca81d7a0 | 1970 | # Check whether --with-xim was given. |
1d36487c | 1971 | if test "${with_xim+set}" = set; then |
ca81d7a0 JD |
1972 | withval=$with_xim; |
1973 | fi | |
1d36487c | 1974 | |
ba4481b5 | 1975 | |
ca81d7a0 | 1976 | # Check whether --with-carbon was given. |
e0f712ba | 1977 | if test "${with_carbon+set}" = set; then |
ca81d7a0 JD |
1978 | withval=$with_carbon; |
1979 | fi | |
e0f712ba | 1980 | |
ca81d7a0 | 1981 | # Check whether --enable-carbon-app was given. |
6a3a24fa | 1982 | if test "${enable_carbon_app+set}" = set; then |
ca81d7a0 JD |
1983 | enableval=$enable_carbon_app; carbon_appdir_x=${enableval} |
1984 | fi | |
1985 | ||
e0f712ba | 1986 | |
ca81d7a0 | 1987 | # Check whether --enable-asserts was given. |
d0098f13 | 1988 | if test "${enable_asserts+set}" = set; then |
ca81d7a0 | 1989 | enableval=$enable_asserts; USE_XASSERTS=$enableval |
d0098f13 JD |
1990 | else |
1991 | USE_XASSERTS=no | |
ca81d7a0 | 1992 | fi |
8eeae1c9 | 1993 | |
ca81d7a0 JD |
1994 | |
1995 | # Check whether --enable-maintainer-mode was given. | |
19650fd6 | 1996 | if test "${enable_maintainer_mode+set}" = set; then |
ca81d7a0 | 1997 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
19650fd6 AS |
1998 | else |
1999 | USE_MAINTAINER_MODE=no | |
ca81d7a0 JD |
2000 | fi |
2001 | ||
19650fd6 AS |
2002 | if test $USE_MAINTAINER_MODE = yes; then |
2003 | MAINT= | |
2004 | else | |
2005 | MAINT=# | |
2006 | fi | |
2007 | ||
2008 | ||
ca81d7a0 | 2009 | # Check whether --enable-locallisppath was given. |
9adfabc2 | 2010 | if test "${enable_locallisppath+set}" = set; then |
ca81d7a0 | 2011 | enableval=$enable_locallisppath; if test "${enableval}" = "no"; then |
9adfabc2 LK |
2012 | locallisppath= |
2013 | elif test "${enableval}" != "yes"; then | |
2014 | locallisppath=${enableval} | |
2015 | fi | |
ca81d7a0 JD |
2016 | fi |
2017 | ||
9adfabc2 | 2018 | |
ba4481b5 | 2019 | #### Make srcdir absolute, if it isn't already. It's important to |
17494071 | 2020 | #### avoid running the path through pwd unnecessarily, since pwd can |
ba4481b5 DL |
2021 | #### give you automounter prefixes, which can go away. We do all this |
2022 | #### so Emacs can find its files when run uninstalled. | |
17494071 GM |
2023 | ## Make sure CDPATH doesn't affect cd (in case PWD is relative). |
2024 | unset CDPATH | |
ba4481b5 DL |
2025 | case "${srcdir}" in |
2026 | /* ) ;; | |
2027 | . ) | |
2028 | ## We may be able to use the $PWD environment variable to make this | |
2029 | ## absolute. But sometimes PWD is inaccurate. | |
df645f7c AS |
2030 | ## Note: we used to use ${PWD} at the end instead of `pwd`, |
2031 | ## but that tested only for a well-formed and valid PWD, | |
2032 | ## it did not object when PWD was well-formed and valid but just wrong. | |
2033 | if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ; | |
ba4481b5 DL |
2034 | then |
2035 | srcdir="$PWD" | |
2036 | else | |
2037 | srcdir="`(cd ${srcdir}; pwd)`" | |
2038 | fi | |
2039 | ;; | |
2040 | * ) srcdir="`(cd ${srcdir}; pwd)`" ;; | |
2041 | esac | |
2042 | ||
2043 | #### Check if the source directory already has a configured system in it. | |
2044 | if test `pwd` != `(cd ${srcdir} && pwd)` \ | |
2045 | && test -f "${srcdir}/src/config.h" ; then | |
c0d27fcc | 2046 | { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used |
503d2be0 AS |
2047 | as a build directory right now; it has been configured in its own |
2048 | right. To configure in another directory as well, you MUST | |
2049 | use GNU make. If you do not have GNU make, then you must | |
2050 | now do \`make distclean' in ${srcdir}, | |
2051 | and then run $0 again." >&5 | |
2052 | echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used | |
ba4481b5 DL |
2053 | as a build directory right now; it has been configured in its own |
2054 | right. To configure in another directory as well, you MUST | |
2055 | use GNU make. If you do not have GNU make, then you must | |
2056 | now do \`make distclean' in ${srcdir}, | |
503d2be0 | 2057 | and then run $0 again." >&2;} |
ba4481b5 DL |
2058 | fi |
2059 | ||
2060 | #### Given the configuration name, set machfile and opsysfile to the | |
2061 | #### names of the m/*.h and s/*.h files we should use. | |
2062 | ||
2063 | ### Canonicalize the configuration name. | |
2064 | ||
2065 | ac_aux_dir= | |
ca81d7a0 JD |
2066 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
2067 | if test -f "$ac_dir/install-sh"; then | |
ba4481b5 DL |
2068 | ac_aux_dir=$ac_dir |
2069 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2070 | break | |
ca81d7a0 | 2071 | elif test -f "$ac_dir/install.sh"; then |
ba4481b5 DL |
2072 | ac_aux_dir=$ac_dir |
2073 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2074 | break | |
ca81d7a0 | 2075 | elif test -f "$ac_dir/shtool"; then |
503d2be0 AS |
2076 | ac_aux_dir=$ac_dir |
2077 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2078 | break | |
ba4481b5 DL |
2079 | fi |
2080 | done | |
2081 | if test -z "$ac_aux_dir"; then | |
ca81d7a0 JD |
2082 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
2083 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} | |
503d2be0 | 2084 | { (exit 1); exit 1; }; } |
ba4481b5 | 2085 | fi |
ca81d7a0 JD |
2086 | |
2087 | # These three variables are undocumented and unsupported, | |
2088 | # and are intended to be withdrawn in a future Autoconf release. | |
2089 | # They can cause serious problems if a builder's source tree is in a directory | |
2090 | # whose full name contains unusual characters. | |
2091 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2092 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2093 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2094 | ||
ba4481b5 DL |
2095 | |
2096 | # Make sure we can run config.sub. | |
ca81d7a0 JD |
2097 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
2098 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 | |
2099 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | |
503d2be0 AS |
2100 | { (exit 1); exit 1; }; } |
2101 | ||
ca81d7a0 JD |
2102 | { echo "$as_me:$LINENO: checking build system type" >&5 |
2103 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } | |
503d2be0 AS |
2104 | if test "${ac_cv_build+set}" = set; then |
2105 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2106 | else | |
ca81d7a0 JD |
2107 | ac_build_alias=$build_alias |
2108 | test "x$ac_build_alias" = x && | |
2109 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2110 | test "x$ac_build_alias" = x && | |
c0d27fcc | 2111 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
503d2be0 AS |
2112 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
2113 | { (exit 1); exit 1; }; } | |
ca81d7a0 JD |
2114 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
2115 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 | |
2116 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | |
503d2be0 AS |
2117 | { (exit 1); exit 1; }; } |
2118 | ||
2119 | fi | |
ca81d7a0 JD |
2120 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
2121 | echo "${ECHO_T}$ac_cv_build" >&6; } | |
2122 | case $ac_cv_build in | |
2123 | *-*-*) ;; | |
2124 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 | |
2125 | echo "$as_me: error: invalid value of canonical build" >&2;} | |
2126 | { (exit 1); exit 1; }; };; | |
2127 | esac | |
503d2be0 | 2128 | build=$ac_cv_build |
ca81d7a0 JD |
2129 | ac_save_IFS=$IFS; IFS='-' |
2130 | set x $ac_cv_build | |
2131 | shift | |
2132 | build_cpu=$1 | |
2133 | build_vendor=$2 | |
2134 | shift; shift | |
2135 | # Remember, the first character of IFS is used to create $*, | |
2136 | # except with old shells: | |
2137 | build_os=$* | |
2138 | IFS=$ac_save_IFS | |
2139 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
2140 | ||
2141 | ||
2142 | { echo "$as_me:$LINENO: checking host system type" >&5 | |
2143 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } | |
503d2be0 AS |
2144 | if test "${ac_cv_host+set}" = set; then |
2145 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2146 | else | |
ca81d7a0 JD |
2147 | if test "x$host_alias" = x; then |
2148 | ac_cv_host=$ac_cv_build | |
2149 | else | |
2150 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2151 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 | |
2152 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | |
503d2be0 | 2153 | { (exit 1); exit 1; }; } |
ca81d7a0 | 2154 | fi |
503d2be0 AS |
2155 | |
2156 | fi | |
ca81d7a0 JD |
2157 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
2158 | echo "${ECHO_T}$ac_cv_host" >&6; } | |
2159 | case $ac_cv_host in | |
2160 | *-*-*) ;; | |
2161 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 | |
2162 | echo "$as_me: error: invalid value of canonical host" >&2;} | |
2163 | { (exit 1); exit 1; }; };; | |
2164 | esac | |
503d2be0 | 2165 | host=$ac_cv_host |
ca81d7a0 JD |
2166 | ac_save_IFS=$IFS; IFS='-' |
2167 | set x $ac_cv_host | |
2168 | shift | |
2169 | host_cpu=$1 | |
2170 | host_vendor=$2 | |
2171 | shift; shift | |
2172 | # Remember, the first character of IFS is used to create $*, | |
2173 | # except with old shells: | |
2174 | host_os=$* | |
2175 | IFS=$ac_save_IFS | |
2176 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
ba4481b5 | 2177 | |
c0d27fcc | 2178 | |
ba4481b5 | 2179 | canonical=$host |
1770dcdc | 2180 | configuration=${host_alias-${build_alias-$host}} |
ba4481b5 | 2181 | |
c0d27fcc | 2182 | |
22044edf | 2183 | |
ba4481b5 DL |
2184 | ### If you add support for a new configuration, add code to this |
2185 | ### switch statement to recognize your configuration name and select | |
2186 | ### the appropriate operating system and machine description files. | |
2187 | ||
2188 | ### You would hope that you could choose an m/*.h file pretty much | |
2189 | ### based on the machine portion of the configuration name, and an s- | |
2190 | ### file based on the operating system portion. However, it turns out | |
2191 | ### that each m/*.h file is pretty manufacturer-specific - for | |
2192 | ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are | |
2193 | ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS | |
2194 | ### machines. So we basically have to have a special case for each | |
2195 | ### configuration name. | |
2196 | ### | |
2197 | ### As far as handling version numbers on operating systems is | |
2198 | ### concerned, make sure things will fail in a fixable way. If | |
2199 | ### /etc/MACHINES doesn't say anything about version numbers, be | |
2200 | ### prepared to handle anything reasonably. If version numbers | |
2201 | ### matter, be sure /etc/MACHINES says something about it. | |
2202 | ### | |
2203 | ### Eric Raymond says we should accept strings like "sysvr4" to mean | |
2204 | ### "System V Release 4"; he writes, "The old convention encouraged | |
2205 | ### confusion between `system' and `release' levels'." | |
2206 | ||
2207 | machine='' opsys='' unported=no | |
2208 | case "${canonical}" in | |
2209 | ||
1096bcc0 GM |
2210 | ## FreeBSD ports |
2211 | *-*-freebsd* ) | |
2212 | opsys=freebsd | |
2213 | case "${canonical}" in | |
2214 | alpha*-*-freebsd*) machine=alpha ;; | |
ec8fcb10 YM |
2215 | ia64-*-freebsd*) machine=ia64 ;; |
2216 | sparc64-*-freebsd*) machine=sparc ;; | |
2217 | powerpc-*-freebsd*) machine=macppc ;; | |
1096bcc0 | 2218 | i[3456]86-*-freebsd*) machine=intel386 ;; |
01abe918 | 2219 | amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;; |
1096bcc0 GM |
2220 | esac |
2221 | ;; | |
2222 | ||
ba4481b5 DL |
2223 | ## NetBSD ports |
2224 | *-*-netbsd* ) | |
2225 | opsys=netbsd | |
dd038e26 | 2226 | if test -f /usr/lib/crti.o; then |
f57bd967 DL |
2227 | |
2228 | cat >>confdefs.h <<\_ACEOF | |
2229 | #define HAVE_CRTIN | |
dd038e26 AS |
2230 | _ACEOF |
2231 | ||
2232 | fi | |
2233 | ||
ba4481b5 DL |
2234 | case "${canonical}" in |
2235 | alpha*-*-netbsd*) machine=alpha ;; | |
2236 | i[3456]86-*-netbsd*) machine=intel386 ;; | |
2237 | m68k-*-netbsd*) | |
2238 | # This is somewhat bogus. | |
2239 | machine=hp9000s300 ;; | |
ba4481b5 | 2240 | mips-*-netbsd*) machine=pmax ;; |
2df636f4 | 2241 | mipsel-*-netbsd*) machine=pmax ;; |
97836269 | 2242 | mipseb-*-netbsd*) machine=pmax ;; |
ba4481b5 | 2243 | ns32k-*-netbsd*) machine=ns32000 ;; |
3a64eef5 | 2244 | powerpc-*-netbsd*) machine=macppc ;; |
71c9ec51 | 2245 | sparc*-*-netbsd*) machine=sparc ;; |
ba4481b5 | 2246 | vax-*-netbsd*) machine=vax ;; |
2df636f4 | 2247 | arm-*-netbsd*) machine=arm ;; |
d54ee7b4 | 2248 | x86_64-*-netbsd*) machine=amdx86-64 ;; |
13aadc96 | 2249 | hppa-*-netbsd*) machine=hp800 ;; |
d54ee7b4 | 2250 | shle-*-netbsd*) machine=sh3el ;; |
ba4481b5 DL |
2251 | esac |
2252 | ;; | |
2253 | ||
2254 | ## OpenBSD ports | |
2255 | *-*-openbsd* ) | |
2256 | opsys=openbsd | |
2257 | case "${canonical}" in | |
2258 | alpha*-*-openbsd*) machine=alpha ;; | |
85410b02 CY |
2259 | arm-*-openbsd*) machine=arm ;; |
2260 | hppa-*-openbsd*) machine=hp9000s300 ;; | |
2261 | i386-*-openbsd*) machine=intel386 ;; | |
2262 | m68k-*-openbsd*) machine=hp9000s300 ;; | |
2263 | m88k-*-openbsd*) machine=aviion ;; | |
2264 | mips64-*-openbsd*) machine=mips64 ;; | |
2265 | powerpc-*-openbsd*) machine=macppc ;; | |
2266 | sh-*-openbsd*) machine=sh3el ;; | |
2267 | sparc*-*-openbsd*) machine=sparc ;; | |
2268 | vax-*-openbsd*) machine=vax ;; | |
2269 | x86_64-*-openbsd*) machine=amdx86-64 ;; | |
ba4481b5 DL |
2270 | esac |
2271 | ;; | |
2272 | ||
10a3b1a1 EZ |
2273 | ## LynxOS ports |
2274 | *-*-lynxos* ) | |
2275 | opsys=lynxos | |
2276 | case "${canonical}" in | |
2277 | i[3456]86-*-lynxos*) machine=intel386 ;; | |
2278 | powerpc-*-lynxos*) machine=powerpc ;; | |
2279 | esac | |
2280 | ;; | |
2281 | ||
ba4481b5 DL |
2282 | ## Acorn RISCiX: |
2283 | arm-acorn-riscix1.1* ) | |
2284 | machine=acorn opsys=riscix1-1 | |
2285 | ;; | |
2286 | arm-acorn-riscix1.2* | arm-acorn-riscix ) | |
2287 | ## This name is riscix12 instead of riscix1.2 | |
2288 | ## to avoid a file name conflict on MSDOS. | |
2289 | machine=acorn opsys=riscix12 | |
2290 | ;; | |
2291 | ||
2292 | ## BSDI ports | |
2293 | *-*-bsdi* ) | |
2294 | opsys=bsdi | |
2295 | case "${canonical}" in | |
2296 | i[345]86-*-bsdi*) machine=intel386 ;; | |
2297 | sparc-*-bsdi*) machine=sparc ;; | |
3aeecf97 | 2298 | powerpc-*-bsdi*) machine=macppc ;; |
ba4481b5 DL |
2299 | esac |
2300 | case "${canonical}" in | |
2301 | *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;; | |
2302 | *-*-bsdi2.0* ) opsys=bsdos2 ;; | |
2303 | *-*-bsdi2* ) opsys=bsdos2-1 ;; | |
2304 | *-*-bsdi3* ) opsys=bsdos3 ;; | |
1d06fc82 | 2305 | *-*-bsdi[45]* ) opsys=bsdos4 ;; |
ba4481b5 DL |
2306 | esac |
2307 | ;; | |
2308 | ||
2309 | ## Alliant machines | |
2310 | ## Strictly speaking, we need the version of the alliant operating | |
2311 | ## system to choose the right machine file, but currently the | |
2312 | ## configuration name doesn't tell us enough to choose the right | |
2313 | ## one; we need to give alliants their own operating system name to | |
2314 | ## do this right. When someone cares, they can help us. | |
2315 | fx80-alliant-* ) | |
2316 | machine=alliant4 opsys=bsd4-2 | |
2317 | ;; | |
2318 | i860-alliant-* ) | |
2319 | machine=alliant-2800 opsys=bsd4-3 | |
2320 | ;; | |
2321 | ||
2322 | ## Alpha (DEC) machines. | |
2323 | alpha*-dec-osf* ) | |
2324 | machine=alpha opsys=osf1 | |
2325 | # This is needed to find X11R6.1 libraries for certain tests. | |
2326 | NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib | |
2327 | GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib | |
34979055 DL |
2328 | # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile |
2329 | # due to non-traditional preprocessing with the current compiler | |
2330 | # defaults. OSF 4 can also have that compiler version, and there | |
2331 | # seems always to have been a usable /usr/bin/cpp. | |
2332 | NON_GNU_CPP=/usr/bin/cpp | |
ca512671 | 2333 | case "${canonical}" in |
a55b799a | 2334 | alpha*-dec-osf[5-9]*) |
bb17930d | 2335 | opsys=osf5-0 ;; |
ca512671 | 2336 | esac |
ba4481b5 DL |
2337 | ;; |
2338 | ||
2339 | alpha*-*-linux-gnu* ) | |
2340 | machine=alpha opsys=gnu-linux | |
2341 | ;; | |
2342 | ||
c4bb2108 DL |
2343 | arm*-*-linux-gnu* ) |
2344 | machine=arm opsys=gnu-linux | |
2345 | ;; | |
2346 | ||
ba4481b5 DL |
2347 | ## Altos 3068 |
2348 | m68*-altos-sysv* ) | |
2349 | machine=altos opsys=usg5-2 | |
2350 | ;; | |
2351 | ||
2352 | ## Amdahl UTS | |
2353 | 580-amdahl-sysv* ) | |
2354 | machine=amdahl opsys=usg5-2-2 | |
2355 | ;; | |
2356 | ||
2357 | ## Apollo, Domain/OS | |
2358 | m68*-apollo-* ) | |
2359 | machine=apollo opsys=bsd4-3 | |
2360 | ;; | |
2361 | ||
040c474e CY |
2362 | ## Apple Darwin / Mac OS X |
2363 | *-apple-darwin* ) | |
2364 | case "${canonical}" in | |
2365 | i[3456]86-* ) machine=intel386 ;; | |
2366 | powerpc-* ) machine=powermac ;; | |
2367 | * ) unported=yes ;; | |
2368 | esac | |
2369 | opsys=darwin | |
2370 | # Define CPP as follows to make autoconf work correctly. | |
2371 | CPP="${CC-cc} -E -no-cpp-precomp" | |
2372 | # Use fink packages if available. | |
2373 | if test -d /sw/include && test -d /sw/lib; then | |
2374 | GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib" | |
2375 | CPP="${CPP} ${GCC_TEST_OPTIONS}" | |
2376 | NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS} | |
2377 | fi | |
2378 | ;; | |
2379 | ||
ba4481b5 DL |
2380 | ## AT&T 3b2, 3b5, 3b15, 3b20 |
2381 | we32k-att-sysv* ) | |
2382 | machine=att3b opsys=usg5-2-2 | |
2383 | ;; | |
2384 | ||
2385 | ## AT&T 3b1 - The Mighty Unix PC! | |
2386 | m68*-att-sysv* ) | |
2387 | machine=7300 opsys=usg5-2-2 | |
2388 | ;; | |
2389 | ||
2390 | ## Bull dpx20 | |
2391 | rs6000-bull-bosx* ) | |
2392 | machine=ibmrs6000 opsys=aix3-2 | |
2393 | ;; | |
2394 | ||
2395 | ## Bull dpx2 | |
2396 | m68*-bull-sysv3* ) | |
2397 | machine=dpx2 opsys=usg5-3 | |
2398 | ;; | |
2399 | ||
2400 | ## Bull sps7 | |
2401 | m68*-bull-sysv2* ) | |
2402 | machine=sps7 opsys=usg5-2 | |
2403 | ;; | |
2404 | ||
2405 | ## CCI 5/32, 6/32 -- see "Tahoe". | |
2406 | ||
2407 | ## Celerity | |
2408 | ## I don't know what configuration name to use for this; config.sub | |
2409 | ## doesn't seem to know anything about it. Hey, Celerity users, get | |
2410 | ## in touch with us! | |
2411 | celerity-celerity-bsd* ) | |
2412 | machine=celerity opsys=bsd4-2 | |
2413 | ;; | |
2414 | ||
2415 | ## Clipper | |
2416 | ## What operating systems does this chip run that Emacs has been | |
2417 | ## tested on? | |
2418 | clipper-* ) | |
2419 | machine=clipper | |
2420 | ## We'll use the catch-all code at the bottom to guess the | |
2421 | ## operating system. | |
2422 | ;; | |
2423 | ||
df645f7c AS |
2424 | ## Compaq Nonstop |
2425 | mips-compaq-nonstopux* ) | |
2426 | machine=nonstopux opsys=nonstopux | |
2427 | ;; | |
2428 | ||
ba4481b5 DL |
2429 | ## Convex |
2430 | *-convex-bsd* | *-convex-convexos* ) | |
2431 | machine=convex opsys=bsd4-3 | |
2432 | ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov | |
2433 | NON_GNU_CPP="cc -E -P" | |
2434 | ;; | |
2435 | ||
2436 | ## Cubix QBx/386 | |
2437 | i[3456]86-cubix-sysv* ) | |
2438 | machine=intel386 opsys=usg5-3 | |
2439 | ;; | |
2440 | ||
2441 | ## Cydra 5 | |
2442 | cydra*-cydrome-sysv* ) | |
2443 | machine=cydra5 opsys=usg5-3 | |
2444 | ;; | |
2445 | ||
2446 | ## Data General AViiON Machines | |
2447 | ## DG changed naming conventions with the release of 5.4.4.10, they | |
2448 | ## dropped the initial 5.4 but left the intervening R. Because of the | |
2449 | ## R this shouldn't conflict with older versions of the OS (which I | |
2450 | ## think were named like dgux4.*). In addition, DG new AViiONs series | |
2451 | ## uses either Motorola M88k or Intel Pentium CPUs. | |
2452 | m88k-dg-dguxR4.* | m88k-dg-dgux4* ) | |
2453 | machine=aviion opsys=dgux4 | |
2454 | ;; | |
2455 | m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) | |
2456 | ## This name is dgux5-4-3 instead of dgux5-4r3 | |
2457 | ## to avoid a file name conflict on MSDOS. | |
2458 | machine=aviion opsys=dgux5-4-3 | |
2459 | ;; | |
2460 | m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) | |
2461 | machine=aviion opsys=dgux5-4r2 | |
2462 | ;; | |
2463 | m88k-dg-dgux* ) | |
2464 | machine=aviion opsys=dgux | |
2465 | ;; | |
2466 | ||
2467 | ## Data General AViiON Intel (x86) Machines | |
2468 | ## Exists from 5.4.3 (current i586-dg-dguxR4.11) | |
2469 | ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il | |
2470 | i[345]86-dg-dguxR4* ) | |
2471 | machine=aviion-intel opsys=dgux4 | |
2472 | ;; | |
2473 | ||
2474 | ## DECstations | |
2475 | mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* ) | |
2476 | machine=pmax opsys=bsd4-2 | |
2477 | ;; | |
2478 | mips-dec-ultrix4.[12]* | mips-dec-bsd* ) | |
2479 | machine=pmax opsys=bsd4-3 | |
2480 | ;; | |
2481 | mips-dec-ultrix* ) | |
2482 | machine=pmax opsys=ultrix4-3 | |
2483 | ;; | |
2484 | mips-dec-osf* ) | |
2485 | machine=pmax opsys=osf1 | |
2486 | ;; | |
2487 | mips-dec-mach_bsd4.3* ) | |
2488 | machine=pmax opsys=mach-bsd4-3 | |
2489 | ;; | |
2490 | ||
cd890796 JD |
2491 | ## Motorola Delta machines |
2492 | m68k-motorola-sysv* | m68000-motorola-sysv* ) | |
2493 | machine=delta opsys=usg5-3 | |
2494 | if test -z "`type gnucc | grep 'not found'`" | |
2495 | then | |
2496 | if test -s /etc/167config | |
2497 | then CC="gnucc -m68040" | |
2498 | else CC="gnucc -m68881" | |
2499 | fi | |
2500 | else | |
2501 | if test -z "`type gcc | grep 'not found'`" | |
2502 | then CC=gcc | |
2503 | else CC=cc | |
2504 | fi | |
2505 | fi | |
2506 | ;; | |
ba4481b5 DL |
2507 | m88k-motorola-sysv4* ) |
2508 | # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110 | |
2509 | # needs POSIX_SIGNALS and therefore needs usg5-4-2. | |
2510 | # I hope there are not other 4.0 versions for this machine | |
2511 | # which really need usg5-4 instead. | |
2512 | machine=delta88k opsys=usg5-4-2 | |
2513 | ;; | |
2514 | m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) | |
2515 | machine=delta88k opsys=usg5-3 | |
2516 | ;; | |
2517 | ||
2518 | ## Dual machines | |
2519 | m68*-dual-sysv* ) | |
2520 | machine=dual opsys=usg5-2 | |
2521 | ;; | |
2522 | m68*-dual-uniplus* ) | |
2523 | machine=dual opsys=unipl5-2 | |
2524 | ;; | |
2525 | ||
2526 | ## Elxsi 6400 | |
2527 | elxsi-elxsi-sysv* ) | |
2528 | machine=elxsi opsys=usg5-2 | |
2529 | ;; | |
2530 | ||
2531 | ## Encore machines | |
2532 | ns16k-encore-bsd* ) | |
2533 | machine=ns16000 opsys=umax | |
2534 | ;; | |
2535 | ||
65171e3a DL |
2536 | ## The GEC 63 - apparently, this port isn't really finished yet. |
2537 | # I'm sure we finished off the last of the machines, though. -- fx | |
ba4481b5 DL |
2538 | |
2539 | ## Gould Power Node and NP1 | |
2540 | pn-gould-bsd4.2* ) | |
2541 | machine=gould opsys=bsd4-2 | |
2542 | ;; | |
2543 | pn-gould-bsd4.3* ) | |
2544 | machine=gould opsys=bsd4-3 | |
2545 | ;; | |
2546 | np1-gould-bsd* ) | |
2547 | machine=gould-np1 opsys=bsd4-3 | |
2548 | ;; | |
2549 | ||
2550 | ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000 | |
2551 | ## as far as Emacs is concerned). | |
2552 | m88k-harris-cxux* ) | |
2553 | # Build needs to be different on 7.0 and later releases | |
2554 | case "`uname -r`" in | |
2555 | [56].[0-9] ) machine=nh4000 opsys=cxux ;; | |
2556 | [7].[0-9] ) machine=nh4000 opsys=cxux7 ;; | |
2557 | esac | |
2558 | NON_GNU_CPP="/lib/cpp" | |
2559 | ;; | |
2560 | ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000) | |
2561 | m68k-harris-cxux* ) | |
2562 | machine=nh3000 opsys=cxux | |
2563 | ;; | |
2564 | ## Harris power pc NightHawk running Power UNIX (Series 6000) | |
2565 | powerpc-harris-powerunix ) | |
2566 | machine=nh6000 opsys=powerunix | |
2567 | NON_GNU_CPP="cc -Xo -E -P" | |
2568 | ;; | |
6fbb6db1 GM |
2569 | ## SR2001/SR2201 running HI-UX/MPP |
2570 | hppa1.1-hitachi-hiuxmpp* ) | |
2571 | machine=sr2k opsys=hiuxmpp | |
2572 | ;; | |
2573 | hppa1.1-hitachi-hiuxwe2* ) | |
2574 | machine=sr2k opsys=hiuxwe2 | |
2575 | ;; | |
ba4481b5 DL |
2576 | ## Honeywell XPS100 |
2577 | xps*-honeywell-sysv* ) | |
2578 | machine=xps100 opsys=usg5-2 | |
2579 | ;; | |
2580 | ||
2581 | ## HP 9000 series 200 or 300 | |
2582 | m68*-hp-bsd* ) | |
2583 | machine=hp9000s300 opsys=bsd4-3 | |
2584 | ;; | |
2585 | ## HP/UX 7, 8, 9, and 10 are supported on these machines. | |
2586 | m68*-hp-hpux* ) | |
2587 | case "`uname -r`" in | |
2588 | ## Someone's system reports A.B8.05 for this. | |
2589 | ## I wonder what other possibilities there are. | |
2590 | *.B8.* ) machine=hp9000s300 opsys=hpux8 ;; | |
2591 | *.08.* ) machine=hp9000s300 opsys=hpux8 ;; | |
2592 | *.09.* ) machine=hp9000s300 opsys=hpux9 ;; | |
2593 | *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;; | |
2594 | *) machine=hp9000s300 opsys=hpux ;; | |
2595 | esac | |
2596 | ;; | |
2597 | ||
6fbb6db1 GM |
2598 | ## HP 9000 series 700 and 800, running HP/UX |
2599 | hppa*-hp-hpux7* ) | |
2600 | machine=hp800 opsys=hpux | |
2601 | ;; | |
2602 | hppa*-hp-hpux8* ) | |
2603 | machine=hp800 opsys=hpux8 | |
2604 | ;; | |
2605 | hppa*-hp-hpux9shr* ) | |
2606 | machine=hp800 opsys=hpux9shr | |
2607 | ;; | |
2608 | hppa*-hp-hpux9* ) | |
2609 | machine=hp800 opsys=hpux9 | |
2610 | ;; | |
2611 | hppa*-hp-hpux10.2* ) | |
2612 | machine=hp800 opsys=hpux10-20 | |
2613 | ;; | |
2614 | hppa*-hp-hpux10* ) | |
2615 | machine=hp800 opsys=hpux10 | |
2616 | ;; | |
2617 | hppa*-hp-hpux1[1-9]* ) | |
2618 | machine=hp800 opsys=hpux11 | |
2619 | CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS" | |
2620 | ;; | |
2621 | ||
13aadc96 CY |
2622 | hppa*-*-linux-gnu* ) |
2623 | machine=hp800 opsys=gnu-linux | |
2624 | ;; | |
2625 | ||
6fbb6db1 GM |
2626 | ## HP 9000 series 700 and 800, running HP/UX |
2627 | hppa*-hp-hpux* ) | |
2628 | ## Cross-compilation? Nah! | |
2629 | case "`uname -r`" in | |
2630 | ## Someone's system reports A.B8.05 for this. | |
2631 | ## I wonder what other possibilities there are. | |
2632 | *.B8.* ) machine=hp800 opsys=hpux8 ;; | |
2633 | *.08.* ) machine=hp800 opsys=hpux8 ;; | |
2634 | *.09.* ) machine=hp800 opsys=hpux9 ;; | |
2635 | *) machine=hp800 opsys=hpux10 ;; | |
2636 | esac | |
2637 | ;; | |
13aadc96 CY |
2638 | hppa*-*-nextstep* ) |
2639 | machine=hp800 opsys=nextstep | |
2640 | ;; | |
2641 | ||
ba4481b5 DL |
2642 | ## Orion machines |
2643 | orion-orion-bsd* ) | |
2644 | machine=orion opsys=bsd4-2 | |
2645 | ;; | |
2646 | clipper-orion-bsd* ) | |
2647 | machine=orion105 opsys=bsd4-2 | |
2648 | ;; | |
2649 | ||
2650 | ## IBM machines | |
2651 | i[3456]86-ibm-aix1.1* ) | |
2652 | machine=ibmps2-aix opsys=usg5-2-2 | |
2653 | ;; | |
2654 | i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* ) | |
2655 | machine=ibmps2-aix opsys=usg5-3 | |
2656 | ;; | |
2657 | i370-ibm-aix*) | |
2658 | machine=ibm370aix opsys=usg5-3 | |
2659 | ;; | |
55597d70 | 2660 | s390-*-linux-gnu* ) |
138f0859 GM |
2661 | machine=ibms390 opsys=gnu-linux |
2662 | ;; | |
bcdb1378 EZ |
2663 | s390x-*-linux-gnu* ) |
2664 | machine=ibms390x opsys=gnu-linux | |
2665 | ;; | |
ba4481b5 DL |
2666 | rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* ) |
2667 | machine=ibmrs6000 opsys=aix3-1 | |
2668 | ;; | |
2669 | rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 ) | |
2670 | machine=ibmrs6000 opsys=aix3-2-5 | |
2671 | ;; | |
2672 | rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* ) | |
2673 | machine=ibmrs6000 opsys=aix4-1 | |
2674 | ;; | |
2675 | rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* ) | |
2676 | machine=ibmrs6000 opsys=aix4-2 | |
2677 | ;; | |
67bf991b CY |
2678 | rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* ) |
2679 | machine=ibmrs6000 opsys=aix4-2 | |
2680 | ;; | |
55597d70 | 2681 | rs6000-ibm-aix5* | powerpc-ibm-aix5* ) |
d6b82250 EZ |
2682 | machine=ibmrs6000 opsys=aix4-2 |
2683 | ;; | |
ba4481b5 DL |
2684 | rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* ) |
2685 | machine=ibmrs6000 opsys=aix4 | |
2686 | ;; | |
2687 | rs6000-ibm-aix4* | powerpc-ibm-aix4* ) | |
2688 | machine=ibmrs6000 opsys=aix4-1 | |
2689 | ;; | |
2690 | rs6000-ibm-aix* | powerpc-ibm-aix* ) | |
2691 | machine=ibmrs6000 opsys=aix3-2 | |
2692 | ;; | |
2693 | romp-ibm-bsd4.3* ) | |
2694 | machine=ibmrt opsys=bsd4-3 | |
2695 | ;; | |
2696 | romp-ibm-bsd4.2* ) | |
2697 | machine=ibmrt opsys=bsd4-2 | |
2698 | ;; | |
2699 | romp-ibm-aos4.3* ) | |
2700 | machine=ibmrt opsys=bsd4-3 | |
2701 | ;; | |
2702 | romp-ibm-aos4.2* ) | |
2703 | machine=ibmrt opsys=bsd4-2 | |
2704 | ;; | |
2705 | romp-ibm-aos* ) | |
2706 | machine=ibmrt opsys=bsd4-3 | |
2707 | ;; | |
2708 | romp-ibm-bsd* ) | |
2709 | machine=ibmrt opsys=bsd4-3 | |
2710 | ;; | |
2711 | romp-ibm-aix* ) | |
2712 | machine=ibmrt-aix opsys=usg5-2-2 | |
2713 | ;; | |
2714 | ||
2715 | ## Integrated Solutions `Optimum V' | |
2716 | m68*-isi-bsd4.2* ) | |
2717 | machine=isi-ov opsys=bsd4-2 | |
2718 | ;; | |
2719 | m68*-isi-bsd4.3* ) | |
2720 | machine=isi-ov opsys=bsd4-3 | |
2721 | ;; | |
2722 | ||
2723 | ## Intel 386 machines where we do care about the manufacturer | |
2724 | i[3456]86-intsys-sysv* ) | |
2725 | machine=is386 opsys=usg5-2-2 | |
2726 | ;; | |
2727 | ||
2728 | ## Prime EXL | |
2729 | i[3456]86-prime-sysv* ) | |
2730 | machine=i386 opsys=usg5-3 | |
2731 | ;; | |
2732 | ||
2733 | ## Sequent Symmetry running Dynix | |
2734 | i[3456]86-sequent-bsd* ) | |
2735 | machine=symmetry opsys=bsd4-3 | |
2736 | ;; | |
2737 | ||
2738 | ## Sequent Symmetry running ptx 4, which is a modified SVR4. | |
2739 | i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* ) | |
2740 | machine=sequent-ptx opsys=ptx4 | |
2741 | NON_GNU_CPP=/lib/cpp | |
2742 | ;; | |
2743 | ||
2744 | ## Sequent Symmetry running DYNIX/ptx | |
2745 | ## Use the old cpp rather than the newer ANSI one. | |
2746 | i[3456]86-sequent-ptx* ) | |
2747 | machine=sequent-ptx opsys=ptx | |
2748 | NON_GNU_CPP="/lib/cpp" | |
2749 | ;; | |
2750 | ||
2751 | ## ncr machine running svr4.3. | |
2752 | i[3456]86-ncr-sysv4.3 ) | |
2753 | machine=ncr386 opsys=usg5-4-3 | |
2754 | ;; | |
2755 | ||
2756 | ## Unspecified sysv on an ncr machine defaults to svr4.2. | |
2757 | ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.) | |
2758 | i[3456]86-ncr-sysv* ) | |
2759 | machine=ncr386 opsys=usg5-4-2 | |
2760 | ;; | |
2761 | ||
2762 | ## Intel Paragon OSF/1 | |
2763 | i860-intel-osf1* ) | |
2764 | machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp | |
2765 | ;; | |
2766 | ||
2767 | ## Intel 860 | |
2768 | i860-*-sysv4* ) | |
2769 | machine=i860 opsys=usg5-4 | |
2770 | NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc. | |
2771 | NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion. | |
2772 | ;; | |
2773 | ||
c76e04a8 GM |
2774 | ## Macintosh PowerPC |
2775 | powerpc*-*-linux-gnu* ) | |
2776 | machine=macppc opsys=gnu-linux | |
2777 | ;; | |
2778 | ||
ba4481b5 DL |
2779 | ## Masscomp machines |
2780 | m68*-masscomp-rtu* ) | |
2781 | machine=masscomp opsys=rtu | |
2782 | ;; | |
2783 | ||
2784 | ## Megatest machines | |
2785 | m68*-megatest-bsd* ) | |
2786 | machine=mega68 opsys=bsd4-2 | |
2787 | ;; | |
2788 | ||
2789 | ## Workstations sold by MIPS | |
2790 | ## This is not necessarily all workstations using the MIPS processor - | |
2791 | ## Irises are produced by SGI, and DECstations by DEC. | |
2792 | ||
2793 | ## etc/MACHINES lists mips.h and mips4.h as possible machine files, | |
2794 | ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance | |
2795 | ## it gives for choosing between the alternatives seems to be "Use | |
2796 | ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with | |
2797 | ## the BSD world." I'll assume that these are instructions for | |
2798 | ## handling two odd situations, and that every other situation | |
2799 | ## should use mips.h and usg5-2-2, they being listed first. | |
2800 | mips-mips-usg* ) | |
2801 | machine=mips4 | |
2802 | ## Fall through to the general code at the bottom to decide on the OS. | |
2803 | ;; | |
2804 | mips-mips-riscos4* ) | |
2805 | machine=mips4 opsys=bsd4-3 | |
2806 | NON_GNU_CC="cc -systype bsd43" | |
2807 | NON_GNU_CPP="cc -systype bsd43 -E" | |
2808 | ;; | |
2809 | mips-mips-riscos5* ) | |
2810 | machine=mips4 opsys=riscos5 | |
2811 | NON_GNU_CC="cc -systype bsd43" | |
2812 | NON_GNU_CPP="cc -systype bsd43 -E" | |
2813 | ;; | |
2814 | mips-mips-bsd* ) | |
2815 | machine=mips opsys=bsd4-3 | |
2816 | ;; | |
2817 | mips-mips-* ) | |
2818 | machine=mips opsys=usg5-2-2 | |
2819 | ;; | |
2820 | ||
2821 | ## NeXT | |
2822 | m68*-next-* | m68k-*-nextstep* ) | |
2823 | machine=m68k opsys=nextstep | |
2824 | ;; | |
2825 | ||
2826 | ## The complete machine from National Semiconductor | |
2827 | ns32k-ns-genix* ) | |
2828 | machine=ns32000 opsys=usg5-2 | |
2829 | ;; | |
2830 | ||
2831 | ## NCR machines | |
2832 | m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) | |
2833 | machine=tower32 opsys=usg5-2-2 | |
2834 | ;; | |
2835 | m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) | |
2836 | machine=tower32v3 opsys=usg5-3 | |
2837 | ;; | |
2838 | ||
2839 | ## NEC EWS4800 | |
2840 | mips-nec-sysv4*) | |
2841 | machine=ews4800 opsys=ux4800 | |
2842 | ;; | |
2843 | ||
2844 | ## Nixdorf Targon 31 | |
2845 | m68*-nixdorf-sysv* ) | |
2846 | machine=targon31 opsys=usg5-2-2 | |
2847 | ;; | |
2848 | ||
2849 | ## Nu (TI or LMI) | |
2850 | m68*-nu-sysv* ) | |
2851 | machine=nu opsys=usg5-2 | |
2852 | ;; | |
2853 | ||
2854 | ## Plexus | |
2855 | m68*-plexus-sysv* ) | |
2856 | machine=plexus opsys=usg5-2 | |
2857 | ;; | |
2858 | ||
ba4481b5 DL |
2859 | ## Pyramid machines |
2860 | ## I don't really have any idea what sort of processor the Pyramid has, | |
2861 | ## so I'm assuming it is its own architecture. | |
2862 | pyramid-pyramid-bsd* ) | |
2863 | machine=pyramid opsys=bsd4-2 | |
2864 | ;; | |
2865 | ||
2866 | ## Sequent Balance | |
2867 | ns32k-sequent-bsd4.2* ) | |
2868 | machine=sequent opsys=bsd4-2 | |
2869 | ;; | |
2870 | ns32k-sequent-bsd4.3* ) | |
2871 | machine=sequent opsys=bsd4-3 | |
2872 | ;; | |
2873 | ||
2874 | ## Siemens Nixdorf | |
2875 | mips-siemens-sysv* | mips-sni-sysv*) | |
2876 | machine=mips-siemens opsys=usg5-4 | |
2877 | NON_GNU_CC=/usr/ccs/bin/cc | |
2878 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
2879 | ;; | |
2880 | ||
2881 | ## Silicon Graphics machines | |
2882 | ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030) | |
2883 | m68*-sgi-iris3.5* ) | |
2884 | machine=irist opsys=iris3-5 | |
2885 | ;; | |
2886 | m68*-sgi-iris3.6* | m68*-sgi-iris*) | |
2887 | machine=irist opsys=iris3-6 | |
2888 | ;; | |
2889 | ## Iris 4D | |
2890 | mips-sgi-irix3* ) | |
2891 | machine=iris4d opsys=irix3-3 | |
2892 | ;; | |
2893 | mips-sgi-irix4* ) | |
2894 | machine=iris4d opsys=irix4-0 | |
2895 | ;; | |
2896 | mips-sgi-irix6.5 ) | |
2897 | machine=iris4d opsys=irix6-5 | |
946173ad DL |
2898 | # Without defining _LANGUAGE_C, things get masked out in the headers |
2899 | # so that, for instance, grepping for `free' in stdlib.h fails and | |
2900 | # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m). | |
2901 | NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C" | |
d42122a3 | 2902 | NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C" |
ba4481b5 DL |
2903 | ;; |
2904 | mips-sgi-irix6* ) | |
2905 | machine=iris4d opsys=irix6-0 | |
c4bb2108 | 2906 | # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5, |
946173ad DL |
2907 | # but presumably it does no harm. |
2908 | NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C" | |
d42122a3 | 2909 | # -32 probably isn't necessary in later v.6s -- anyone know which? |
ba4481b5 DL |
2910 | NON_GCC_TEST_OPTIONS=-32 |
2911 | ;; | |
2912 | mips-sgi-irix5.[01]* ) | |
2913 | machine=iris4d opsys=irix5-0 | |
2914 | ;; | |
2915 | mips-sgi-irix5* | mips-sgi-irix* ) | |
2916 | machine=iris4d opsys=irix5-2 | |
2917 | ;; | |
2918 | ||
2919 | ## SONY machines | |
2920 | m68*-sony-bsd4.2* ) | |
2921 | machine=news opsys=bsd4-2 | |
2922 | ;; | |
2923 | m68*-sony-bsd4.3* ) | |
2924 | machine=news opsys=bsd4-3 | |
2925 | ;; | |
2926 | m68*-sony-newsos3* | m68*-sony-news3*) | |
2927 | machine=news opsys=bsd4-3 | |
2928 | ;; | |
2929 | mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*) | |
2930 | machine=news-risc opsys=bsd4-3 | |
2931 | ;; | |
2932 | mips-sony-newsos6* ) | |
2933 | machine=news-r6 opsys=newsos6 | |
2934 | ;; | |
2935 | mips-sony-news* ) | |
2936 | machine=news-risc opsys=newsos5 | |
2937 | ;; | |
2938 | ||
2939 | ## Stride | |
2940 | m68*-stride-sysv* ) | |
2941 | machine=stride opsys=usg5-2 | |
2942 | ;; | |
2943 | ||
2944 | ## Suns | |
2945 | sparc-*-linux-gnu* | sparc64-*-linux-gnu* ) | |
2946 | machine=sparc opsys=gnu-linux | |
2947 | ;; | |
2948 | ||
d054101f | 2949 | *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \ |
ba4481b5 DL |
2950 | | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \ |
2951 | | rs6000-*-solaris2*) | |
2952 | case "${canonical}" in | |
2953 | m68*-sunos1* ) machine=sun1 ;; | |
2954 | m68*-sunos2* ) machine=sun2 ;; | |
2955 | m68* ) machine=sun3 ;; | |
2956 | i[3456]86-sun-sunos[34]* ) machine=sun386 ;; | |
2957 | i[3456]86-*-* ) machine=intel386 ;; | |
af46e133 | 2958 | amd64-*-*|x86_64-*-*) machine=amdx86-64 ;; |
ba4481b5 DL |
2959 | powerpcle* ) machine=powerpcle ;; |
2960 | powerpc* | rs6000* ) machine=ibmrs6000 ;; | |
2961 | sparc* ) machine=sparc ;; | |
2962 | * ) unported=yes ;; | |
2963 | esac | |
2964 | case "${canonical}" in | |
2965 | ## The Sun386 didn't get past 4.0. | |
2966 | i[3456]86-*-sunos4 ) opsys=sunos4-0 ;; | |
2967 | *-sunos4.0* ) opsys=sunos4-0 ;; | |
2968 | *-sunos4.1.[3-9]*noshare ) | |
2969 | ## This name is sunos413 instead of sunos4-1-3 | |
2970 | ## to avoid a file name conflict on MSDOS. | |
2971 | opsys=sunos413 | |
2972 | NON_GNU_CPP=/usr/lib/cpp | |
2973 | NON_GCC_TEST_OPTIONS=-Bstatic | |
2974 | GCC_TEST_OPTIONS=-static | |
2975 | ;; | |
2976 | *-sunos4.1.[3-9]* | *-sunos4shr*) | |
2977 | opsys=sunos4shr | |
2978 | NON_GNU_CPP=/usr/lib/cpp | |
2979 | ;; | |
2980 | *-sunos4* | *-sunos ) | |
2981 | opsys=sunos4-1 | |
2982 | NON_GCC_TEST_OPTIONS=-Bstatic | |
2983 | GCC_TEST_OPTIONS=-static | |
2984 | ;; | |
2985 | *-sunos5.3* | *-solaris2.3* ) | |
2986 | opsys=sol2-3 | |
2987 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
2988 | ;; | |
2989 | *-sunos5.4* | *-solaris2.4* ) | |
2990 | opsys=sol2-4 | |
2991 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
2992 | RANLIB="ar -ts" | |
2993 | ;; | |
2994 | *-sunos5.5* | *-solaris2.5* ) | |
2995 | opsys=sol2-5 | |
2996 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
2997 | RANLIB="ar -ts" | |
2998 | ;; | |
8e967cf7 MR |
2999 | *-sunos5.6* | *-solaris2.6* ) |
3000 | opsys=sol2-6 | |
3001 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
3002 | RANLIB="ar -ts" | |
3003 | ;; | |
ba4481b5 | 3004 | *-sunos5* | *-solaris* ) |
9e71690e | 3005 | opsys=sol2-6 |
089a966d GM |
3006 | emacs_check_sunpro_c=yes |
3007 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
ba4481b5 DL |
3008 | ;; |
3009 | * ) opsys=bsd4-2 ;; | |
3010 | esac | |
3011 | ## Watch out for a compiler that we know will not work. | |
3012 | case "${canonical}" in | |
3013 | *-solaris* | *-sunos5* ) | |
3014 | if [ "x$CC" = x/usr/ucb/cc ]; then | |
3015 | ## /usr/ucb/cc doesn't work; | |
3016 | ## we should find some other compiler that does work. | |
3017 | unset CC | |
3018 | fi | |
3019 | ;; | |
3020 | *) ;; | |
3021 | esac | |
3022 | ;; | |
3023 | sparc-*-nextstep* ) | |
3024 | machine=sparc opsys=nextstep | |
3025 | ;; | |
3026 | ||
3027 | ## Tadpole 68k | |
3028 | m68*-tadpole-sysv* ) | |
3029 | machine=tad68k opsys=usg5-3 | |
3030 | ;; | |
3031 | ||
3032 | ## Tahoe machines | |
3033 | tahoe-tahoe-bsd4.2* ) | |
3034 | machine=tahoe opsys=bsd4-2 | |
3035 | ;; | |
3036 | tahoe-tahoe-bsd4.3* ) | |
3037 | machine=tahoe opsys=bsd4-3 | |
3038 | ;; | |
3039 | ||
3040 | ## Tandem Integrity S2 | |
3041 | mips-tandem-sysv* ) | |
3042 | machine=tandem-s2 opsys=usg5-3 | |
3043 | ;; | |
3044 | ||
3045 | ## Tektronix XD88 | |
3046 | m88k-tektronix-sysv3* ) | |
3047 | machine=tekxd88 opsys=usg5-3 | |
3048 | ;; | |
3049 | ||
3050 | ## Tektronix 16000 box (6130?) | |
3051 | ns16k-tektronix-bsd* ) | |
3052 | machine=ns16000 opsys=bsd4-2 | |
3053 | ;; | |
3054 | ## Tektronix 4300 | |
3055 | ## src/m/tek4300.h hints that this is a m68k machine. | |
3056 | m68*-tektronix-bsd* ) | |
3057 | machine=tek4300 opsys=bsd4-3 | |
3058 | ;; | |
3059 | ||
3060 | ## Titan P2 or P3 | |
3061 | ## We seem to have lost the machine-description file titan.h! | |
3062 | titan-titan-sysv* ) | |
3063 | machine=titan opsys=usg5-3 | |
3064 | ;; | |
3065 | ||
3066 | ## Ustation E30 (SS5E) | |
3067 | m68*-unisys-uniplus* ) | |
3068 | machine=ustation opsystem=unipl5-2 | |
3069 | ;; | |
3070 | ||
3071 | ## Vaxen. | |
3072 | vax-dec-* ) | |
3073 | machine=vax | |
3074 | case "${canonical}" in | |
3075 | *-bsd4.1* ) opsys=bsd4-1 ;; | |
3076 | *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;; | |
3077 | *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;; | |
3078 | *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;; | |
3079 | *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;; | |
3080 | *-vms* ) opsys=vms ;; | |
3081 | * ) unported=yes | |
3082 | esac | |
3083 | ;; | |
3084 | ||
3085 | ## Whitechapel MG1 | |
3086 | ns16k-whitechapel-* ) | |
3087 | machine=mg1 | |
3088 | ## We don't know what sort of OS runs on these; we'll let the | |
3089 | ## operating system guessing code below try. | |
3090 | ;; | |
3091 | ||
3092 | ## Wicat | |
3093 | m68*-wicat-sysv* ) | |
3094 | machine=wicat opsys=usg5-2 | |
3095 | ;; | |
3096 | ||
f4988be7 GM |
3097 | ## IA-64 |
3098 | ia64*-*-linux* ) | |
3099 | machine=ia64 opsys=gnu-linux | |
3100 | ;; | |
3101 | ||
ba4481b5 DL |
3102 | ## Intel 386 machines where we don't care about the manufacturer |
3103 | i[3456]86-*-* ) | |
3104 | machine=intel386 | |
3105 | case "${canonical}" in | |
c60ee5e7 | 3106 | *-cygwin ) opsys=cygwin ;; |
eae54018 | 3107 | *-darwin* ) opsys=darwin |
23fd4483 ST |
3108 | CPP="${CC-cc} -E -no-cpp-precomp" |
3109 | ;; | |
ba4481b5 DL |
3110 | *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;; |
3111 | *-isc2.2* ) opsys=isc2-2 ;; | |
3112 | *-isc4.0* ) opsys=isc4-0 ;; | |
3113 | *-isc4.* ) opsys=isc4-1 | |
3114 | GCC_TEST_OPTIONS=-posix | |
3115 | NON_GCC_TEST_OPTIONS=-Xp | |
3116 | ;; | |
3117 | *-isc* ) opsys=isc3-0 ;; | |
3118 | *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;; | |
3119 | *-esix* ) opsys=esix ;; | |
3120 | *-xenix* ) opsys=xenix ;; | |
3121 | *-linux-gnu* ) opsys=gnu-linux ;; | |
3122 | *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;; | |
503d2be0 | 3123 | *-sco3.2v5* ) opsys=sco5 |
ba4481b5 DL |
3124 | NON_GNU_CPP=/lib/cpp |
3125 | # Prevent -belf from being passed to $CPP. | |
3126 | # /lib/cpp does not accept it. | |
3127 | OVERRIDE_CPPFLAGS=" " | |
3128 | ;; | |
3129 | *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;; | |
55597d70 DL |
3130 | *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;; |
3131 | *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;; | |
ba4481b5 | 3132 | *-386bsd* ) opsys=386bsd ;; |
ba4481b5 DL |
3133 | *-nextstep* ) opsys=nextstep ;; |
3134 | ## Otherwise, we'll fall through to the generic opsys code at the bottom. | |
3135 | esac | |
3136 | ;; | |
3137 | ||
3138 | ## m68k Linux-based GNU system | |
3139 | m68k-*-linux-gnu* ) | |
3140 | machine=m68k opsys=gnu-linux | |
3141 | ;; | |
3142 | ||
3143 | ## Mips Linux-based GNU system | |
cd958eb3 | 3144 | mips-*-linux-gnu* | mipsel-*-linux-gnu* ) |
ba4481b5 DL |
3145 | machine=mips opsys=gnu-linux |
3146 | ;; | |
3147 | ||
3148 | ## UXP/DS | |
3149 | sparc-fujitsu-sysv4* ) | |
3150 | machine=sparc opsys=uxpds | |
3151 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
3152 | RANLIB="ar -ts" | |
3153 | ;; | |
3154 | ||
3155 | ## UXP/V | |
3156 | f301-fujitsu-uxpv4.1) | |
3157 | machine=f301 opsys=uxpv | |
3158 | ;; | |
3159 | ||
598a2813 AS |
3160 | ## AMD x86-64 Linux-based GNU system |
3161 | x86_64-*-linux-gnu* ) | |
24b01ec4 | 3162 | machine=amdx86-64 opsys=gnu-linux |
598a2813 AS |
3163 | ;; |
3164 | ||
94218e27 DN |
3165 | ## Tensilica Xtensa Linux-based GNU system |
3166 | xtensa-*-linux-gnu* ) | |
3167 | machine=xtensa opsys=gnu-linux | |
3168 | ;; | |
3169 | ||
ba4481b5 DL |
3170 | * ) |
3171 | unported=yes | |
3172 | ;; | |
3173 | esac | |
3174 | ||
3175 | ### If the code above didn't choose an operating system, just choose | |
3176 | ### an operating system based on the configuration name. You really | |
3177 | ### only want to use this when you have no idea what the right | |
3178 | ### operating system is; if you know what operating systems a machine | |
3179 | ### runs, it's cleaner to make it explicit in the case statement | |
3180 | ### above. | |
3181 | if test x"${opsys}" = x; then | |
3182 | case "${canonical}" in | |
3183 | *-gnu* ) opsys=gnu ;; | |
3184 | *-bsd4.[01] ) opsys=bsd4-1 ;; | |
3185 | *-bsd4.2 ) opsys=bsd4-2 ;; | |
3186 | *-bsd4.3 ) opsys=bsd4-3 ;; | |
3187 | *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;; | |
3188 | *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;; | |
3189 | *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;; | |
3190 | *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;; | |
3191 | *-sysv4.2uw* ) opsys=unixware ;; | |
55597d70 DL |
3192 | *-sysv5uw* ) opsys=unixware ;; |
3193 | *-sysv5OpenUNIX* ) opsys=unixware ;; | |
ba4481b5 DL |
3194 | *-sysv4.1* | *-sysvr4.1* ) |
3195 | NON_GNU_CPP=/usr/lib/cpp | |
3196 | opsys=usg5-4 ;; | |
3197 | *-sysv4.[2-9]* | *-sysvr4.[2-9]* ) | |
3198 | if [ x$NON_GNU_CPP = x ]; then | |
3199 | if [ -f /usr/ccs/lib/cpp ]; then | |
3200 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
3201 | else | |
3202 | NON_GNU_CPP=/lib/cpp | |
3203 | fi | |
3204 | fi | |
3205 | opsys=usg5-4-2 ;; | |
3206 | *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;; | |
3207 | * ) | |
3208 | unported=yes | |
3209 | ;; | |
3210 | esac | |
3211 | fi | |
3212 | ||
c0d27fcc | 3213 | |
22044edf | 3214 | |
ba4481b5 | 3215 | if test $unported = yes; then |
c0d27fcc | 3216 | { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems. |
503d2be0 AS |
3217 | Check \`etc/MACHINES' for recognized configuration names." >&5 |
3218 | echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems. | |
3219 | Check \`etc/MACHINES' for recognized configuration names." >&2;} | |
3220 | { (exit 1); exit 1; }; } | |
ba4481b5 DL |
3221 | fi |
3222 | ||
3223 | machfile="m/${machine}.h" | |
3224 | opsysfile="s/${opsys}.h" | |
3225 | ||
c0d27fcc | 3226 | |
ba4481b5 DL |
3227 | #### Choose a compiler. |
3228 | test -n "$CC" && cc_specified=yes | |
3229 | ||
3230 | # Save the value of CFLAGS that the user specified. | |
3231 | SPECIFIED_CFLAGS="$CFLAGS" | |
3232 | ||
3233 | case ${with_gcc} in | |
3234 | "yes" ) CC="gcc" GCC=yes ;; | |
3235 | "no" ) : ${CC=cc} ;; | |
503d2be0 AS |
3236 | * ) |
3237 | esac | |
3238 | ac_ext=c | |
3239 | ac_cpp='$CPP $CPPFLAGS' | |
3240 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3241 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3242 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3243 | if test -n "$ac_tool_prefix"; then | |
3244 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3245 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
ca81d7a0 JD |
3246 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3247 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
503d2be0 AS |
3248 | if test "${ac_cv_prog_CC+set}" = set; then |
3249 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 DL |
3250 | else |
3251 | if test -n "$CC"; then | |
3252 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3253 | else | |
c0d27fcc MR |
3254 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3255 | for as_dir in $PATH | |
3256 | do | |
3257 | IFS=$as_save_IFS | |
3258 | test -z "$as_dir" && as_dir=. | |
3259 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f053c89f | 3260 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
c0d27fcc MR |
3261 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
3262 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3263 | break 2 | |
3264 | fi | |
3265 | done | |
503d2be0 | 3266 | done |
ca81d7a0 | 3267 | IFS=$as_save_IFS |
503d2be0 | 3268 | |
ba4481b5 DL |
3269 | fi |
3270 | fi | |
503d2be0 | 3271 | CC=$ac_cv_prog_CC |
ba4481b5 | 3272 | if test -n "$CC"; then |
ca81d7a0 JD |
3273 | { echo "$as_me:$LINENO: result: $CC" >&5 |
3274 | echo "${ECHO_T}$CC" >&6; } | |
503d2be0 | 3275 | else |
ca81d7a0 JD |
3276 | { echo "$as_me:$LINENO: result: no" >&5 |
3277 | echo "${ECHO_T}no" >&6; } | |
503d2be0 AS |
3278 | fi |
3279 | ||
ca81d7a0 | 3280 | |
503d2be0 AS |
3281 | fi |
3282 | if test -z "$ac_cv_prog_CC"; then | |
3283 | ac_ct_CC=$CC | |
3284 | # Extract the first word of "gcc", so it can be a program name with args. | |
3285 | set dummy gcc; ac_word=$2 | |
ca81d7a0 JD |
3286 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3287 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
503d2be0 AS |
3288 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
3289 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3290 | else | |
3291 | if test -n "$ac_ct_CC"; then | |
3292 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3293 | else | |
c0d27fcc MR |
3294 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3295 | for as_dir in $PATH | |
3296 | do | |
3297 | IFS=$as_save_IFS | |
3298 | test -z "$as_dir" && as_dir=. | |
3299 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f053c89f | 3300 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
c0d27fcc MR |
3301 | ac_cv_prog_ac_ct_CC="gcc" |
3302 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3303 | break 2 | |
3304 | fi | |
3305 | done | |
503d2be0 | 3306 | done |
ca81d7a0 | 3307 | IFS=$as_save_IFS |
503d2be0 AS |
3308 | |
3309 | fi | |
3310 | fi | |
3311 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3312 | if test -n "$ac_ct_CC"; then | |
ca81d7a0 JD |
3313 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
3314 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
ba4481b5 | 3315 | else |
ca81d7a0 JD |
3316 | { echo "$as_me:$LINENO: result: no" >&5 |
3317 | echo "${ECHO_T}no" >&6; } | |
503d2be0 AS |
3318 | fi |
3319 | ||
ca81d7a0 JD |
3320 | if test "x$ac_ct_CC" = x; then |
3321 | CC="" | |
3322 | else | |
3323 | case $cross_compiling:$ac_tool_warned in | |
3324 | yes:) | |
3325 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
3326 | whose name does not start with the host triplet. If you think this | |
3327 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
3328 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
3329 | whose name does not start with the host triplet. If you think this | |
3330 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
3331 | ac_tool_warned=yes ;; | |
3332 | esac | |
3333 | CC=$ac_ct_CC | |
3334 | fi | |
503d2be0 AS |
3335 | else |
3336 | CC="$ac_cv_prog_CC" | |
ba4481b5 DL |
3337 | fi |
3338 | ||
3339 | if test -z "$CC"; then | |
ca81d7a0 JD |
3340 | if test -n "$ac_tool_prefix"; then |
3341 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
503d2be0 | 3342 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
ca81d7a0 JD |
3343 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3344 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
503d2be0 AS |
3345 | if test "${ac_cv_prog_CC+set}" = set; then |
3346 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 DL |
3347 | else |
3348 | if test -n "$CC"; then | |
3349 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3350 | else | |
c0d27fcc MR |
3351 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3352 | for as_dir in $PATH | |
3353 | do | |
3354 | IFS=$as_save_IFS | |
3355 | test -z "$as_dir" && as_dir=. | |
3356 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f053c89f | 3357 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
c0d27fcc MR |
3358 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
3359 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3360 | break 2 | |
3361 | fi | |
3362 | done | |
503d2be0 | 3363 | done |
ca81d7a0 | 3364 | IFS=$as_save_IFS |
503d2be0 AS |
3365 | |
3366 | fi | |
3367 | fi | |
3368 | CC=$ac_cv_prog_CC | |
3369 | if test -n "$CC"; then | |
ca81d7a0 JD |
3370 | { echo "$as_me:$LINENO: result: $CC" >&5 |
3371 | echo "${ECHO_T}$CC" >&6; } | |
4b411bfe | 3372 | else |
ca81d7a0 JD |
3373 | { echo "$as_me:$LINENO: result: no" >&5 |
3374 | echo "${ECHO_T}no" >&6; } | |
4b411bfe CY |
3375 | fi |
3376 | ||
4b411bfe | 3377 | |
ca81d7a0 | 3378 | fi |
503d2be0 AS |
3379 | fi |
3380 | if test -z "$CC"; then | |
3381 | # Extract the first word of "cc", so it can be a program name with args. | |
3382 | set dummy cc; ac_word=$2 | |
ca81d7a0 JD |
3383 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3384 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
503d2be0 AS |
3385 | if test "${ac_cv_prog_CC+set}" = set; then |
3386 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3387 | else | |
3388 | if test -n "$CC"; then | |
3389 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3390 | else | |
3391 | ac_prog_rejected=no | |
c0d27fcc MR |
3392 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3393 | for as_dir in $PATH | |
3394 | do | |
3395 | IFS=$as_save_IFS | |
3396 | test -z "$as_dir" && as_dir=. | |
3397 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f053c89f | 3398 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
c0d27fcc MR |
3399 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3400 | ac_prog_rejected=yes | |
3401 | continue | |
3402 | fi | |
3403 | ac_cv_prog_CC="cc" | |
3404 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3405 | break 2 | |
3406 | fi | |
3407 | done | |
503d2be0 | 3408 | done |
ca81d7a0 | 3409 | IFS=$as_save_IFS |
503d2be0 | 3410 | |
ba4481b5 DL |
3411 | if test $ac_prog_rejected = yes; then |
3412 | # We found a bogon in the path, so make sure we never use it. | |
3413 | set dummy $ac_cv_prog_CC | |
3414 | shift | |
503d2be0 | 3415 | if test $# != 0; then |
ba4481b5 DL |
3416 | # We chose a different compiler from the bogus one. |
3417 | # However, it has the same basename, so the bogon will be chosen | |
3418 | # first if we set CC to just the basename; use the full file name. | |
3419 | shift | |
6bae0ccf | 3420 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
ba4481b5 DL |
3421 | fi |
3422 | fi | |
3423 | fi | |
3424 | fi | |
503d2be0 | 3425 | CC=$ac_cv_prog_CC |
ba4481b5 | 3426 | if test -n "$CC"; then |
ca81d7a0 JD |
3427 | { echo "$as_me:$LINENO: result: $CC" >&5 |
3428 | echo "${ECHO_T}$CC" >&6; } | |
ba4481b5 | 3429 | else |
ca81d7a0 JD |
3430 | { echo "$as_me:$LINENO: result: no" >&5 |
3431 | echo "${ECHO_T}no" >&6; } | |
ba4481b5 DL |
3432 | fi |
3433 | ||
ca81d7a0 | 3434 | |
503d2be0 AS |
3435 | fi |
3436 | if test -z "$CC"; then | |
3437 | if test -n "$ac_tool_prefix"; then | |
ca81d7a0 | 3438 | for ac_prog in cl.exe |
503d2be0 AS |
3439 | do |
3440 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3441 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
ca81d7a0 JD |
3442 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3443 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
503d2be0 AS |
3444 | if test "${ac_cv_prog_CC+set}" = set; then |
3445 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c4bb2108 DL |
3446 | else |
3447 | if test -n "$CC"; then | |
3448 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3449 | else | |
c0d27fcc MR |
3450 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3451 | for as_dir in $PATH | |
3452 | do | |
3453 | IFS=$as_save_IFS | |
3454 | test -z "$as_dir" && as_dir=. | |
3455 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f053c89f | 3456 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
c0d27fcc MR |
3457 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
3458 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3459 | break 2 | |
3460 | fi | |
3461 | done | |
503d2be0 | 3462 | done |
ca81d7a0 | 3463 | IFS=$as_save_IFS |
503d2be0 | 3464 | |
c4bb2108 DL |
3465 | fi |
3466 | fi | |
503d2be0 | 3467 | CC=$ac_cv_prog_CC |
c4bb2108 | 3468 | if test -n "$CC"; then |
ca81d7a0 JD |
3469 | { echo "$as_me:$LINENO: result: $CC" >&5 |
3470 | echo "${ECHO_T}$CC" >&6; } | |
c4bb2108 | 3471 | else |
ca81d7a0 JD |
3472 | { echo "$as_me:$LINENO: result: no" >&5 |
3473 | echo "${ECHO_T}no" >&6; } | |
503d2be0 AS |
3474 | fi |
3475 | ||
ca81d7a0 | 3476 | |
503d2be0 AS |
3477 | test -n "$CC" && break |
3478 | done | |
3479 | fi | |
3480 | if test -z "$CC"; then | |
3481 | ac_ct_CC=$CC | |
ca81d7a0 | 3482 | for ac_prog in cl.exe |
503d2be0 AS |
3483 | do |
3484 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3485 | set dummy $ac_prog; ac_word=$2 | |
ca81d7a0 JD |
3486 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3487 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
503d2be0 AS |
3488 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
3489 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3490 | else | |
3491 | if test -n "$ac_ct_CC"; then | |
3492 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3493 | else | |
c0d27fcc MR |
3494 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3495 | for as_dir in $PATH | |
3496 | do | |
3497 | IFS=$as_save_IFS | |
3498 | test -z "$as_dir" && as_dir=. | |
3499 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f053c89f | 3500 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
c0d27fcc MR |
3501 | ac_cv_prog_ac_ct_CC="$ac_prog" |
3502 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3503 | break 2 | |
3504 | fi | |
3505 | done | |
503d2be0 | 3506 | done |
ca81d7a0 | 3507 | IFS=$as_save_IFS |
503d2be0 | 3508 | |
c4bb2108 | 3509 | fi |
503d2be0 AS |
3510 | fi |
3511 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3512 | if test -n "$ac_ct_CC"; then | |
ca81d7a0 JD |
3513 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
3514 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
503d2be0 | 3515 | else |
ca81d7a0 JD |
3516 | { echo "$as_me:$LINENO: result: no" >&5 |
3517 | echo "${ECHO_T}no" >&6; } | |
ba4481b5 DL |
3518 | fi |
3519 | ||
ca81d7a0 | 3520 | |
503d2be0 AS |
3521 | test -n "$ac_ct_CC" && break |
3522 | done | |
ba4481b5 | 3523 | |
ca81d7a0 JD |
3524 | if test "x$ac_ct_CC" = x; then |
3525 | CC="" | |
3526 | else | |
3527 | case $cross_compiling:$ac_tool_warned in | |
3528 | yes:) | |
3529 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
3530 | whose name does not start with the host triplet. If you think this | |
3531 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
3532 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
3533 | whose name does not start with the host triplet. If you think this | |
3534 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
3535 | ac_tool_warned=yes ;; | |
3536 | esac | |
3537 | CC=$ac_ct_CC | |
3538 | fi | |
503d2be0 AS |
3539 | fi |
3540 | ||
3541 | fi | |
ba4481b5 | 3542 | |
c0d27fcc | 3543 | |
19650fd6 AS |
3544 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
3545 | See \`config.log' for more details." >&5 | |
3546 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
3547 | See \`config.log' for more details." >&2;} | |
503d2be0 | 3548 | { (exit 1); exit 1; }; } |
c4bb2108 | 3549 | |
503d2be0 | 3550 | # Provide some information about the compiler. |
ca81d7a0 | 3551 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
503d2be0 | 3552 | ac_compiler=`set X $ac_compile; echo $2` |
ca81d7a0 JD |
3553 | { (ac_try="$ac_compiler --version >&5" |
3554 | case "(($ac_try" in | |
3555 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3556 | *) ac_try_echo=$ac_try;; | |
3557 | esac | |
3558 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3559 | (eval "$ac_compiler --version >&5") 2>&5 | |
503d2be0 | 3560 | ac_status=$? |
c0d27fcc | 3561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 3562 | (exit $ac_status); } |
ca81d7a0 JD |
3563 | { (ac_try="$ac_compiler -v >&5" |
3564 | case "(($ac_try" in | |
3565 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3566 | *) ac_try_echo=$ac_try;; | |
3567 | esac | |
3568 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3569 | (eval "$ac_compiler -v >&5") 2>&5 | |
503d2be0 | 3570 | ac_status=$? |
c0d27fcc | 3571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 3572 | (exit $ac_status); } |
ca81d7a0 JD |
3573 | { (ac_try="$ac_compiler -V >&5" |
3574 | case "(($ac_try" in | |
3575 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3576 | *) ac_try_echo=$ac_try;; | |
3577 | esac | |
3578 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3579 | (eval "$ac_compiler -V >&5") 2>&5 | |
503d2be0 | 3580 | ac_status=$? |
c0d27fcc | 3581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3582 | (exit $ac_status); } |
3583 | ||
3584 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
3585 | /* confdefs.h. */ |
3586 | _ACEOF | |
3587 | cat confdefs.h >>conftest.$ac_ext | |
3588 | cat >>conftest.$ac_ext <<_ACEOF | |
3589 | /* end confdefs.h. */ | |
c4bb2108 | 3590 | |
503d2be0 AS |
3591 | int |
3592 | main () | |
3593 | { | |
3594 | ||
3595 | ; | |
3596 | return 0; | |
3597 | } | |
3598 | _ACEOF | |
3599 | ac_clean_files_save=$ac_clean_files | |
19650fd6 | 3600 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
503d2be0 AS |
3601 | # Try to create an executable without -o first, disregard a.out. |
3602 | # It will help us diagnose broken compilers, and finding out an intuition | |
3603 | # of exeext. | |
ca81d7a0 JD |
3604 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
3605 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } | |
503d2be0 | 3606 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
ca81d7a0 JD |
3607 | # |
3608 | # List of possible output files, starting from the most likely. | |
3609 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) | |
3610 | # only as a last resort. b.out is created by i960 compilers. | |
3611 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' | |
3612 | # | |
3613 | # The IRIX 6 linker writes into existing files which may not be | |
3614 | # executable, retaining their permissions. Remove them first so a | |
3615 | # subsequent execution test works. | |
3616 | ac_rmfiles= | |
3617 | for ac_file in $ac_files | |
3618 | do | |
3619 | case $ac_file in | |
3620 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | |
3621 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3622 | esac | |
3623 | done | |
3624 | rm -f $ac_rmfiles | |
3625 | ||
3626 | if { (ac_try="$ac_link_default" | |
3627 | case "(($ac_try" in | |
3628 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3629 | *) ac_try_echo=$ac_try;; | |
3630 | esac | |
3631 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3632 | (eval "$ac_link_default") 2>&5 | |
503d2be0 | 3633 | ac_status=$? |
c0d27fcc | 3634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 3635 | (exit $ac_status); }; then |
ca81d7a0 JD |
3636 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
3637 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3638 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3639 | # so that the user can short-circuit this test for compilers unknown to | |
3640 | # Autoconf. | |
f053c89f | 3641 | for ac_file in $ac_files '' |
19650fd6 | 3642 | do |
6bae0ccf | 3643 | test -f "$ac_file" || continue |
503d2be0 | 3644 | case $ac_file in |
ca81d7a0 | 3645 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
edfaf76d | 3646 | ;; |
19650fd6 | 3647 | [ab].out ) |
edfaf76d LK |
3648 | # We found the default executable, but exeext='' is most |
3649 | # certainly right. | |
3650 | break;; | |
19650fd6 | 3651 | *.* ) |
ca81d7a0 JD |
3652 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
3653 | then :; else | |
3654 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3655 | fi | |
3656 | # We set ac_cv_exeext here because the later test for it is not | |
3657 | # safe: cross compilers may not add the suffix if given an `-o' | |
3658 | # argument, so we may need to know it at that point already. | |
3659 | # Even if this section looks crufty: it has the advantage of | |
3660 | # actually working. | |
edfaf76d | 3661 | break;; |
19650fd6 | 3662 | * ) |
edfaf76d | 3663 | break;; |
503d2be0 AS |
3664 | esac |
3665 | done | |
ca81d7a0 JD |
3666 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
3667 | ||
503d2be0 | 3668 | else |
f053c89f CY |
3669 | ac_file='' |
3670 | fi | |
3671 | ||
3672 | { echo "$as_me:$LINENO: result: $ac_file" >&5 | |
3673 | echo "${ECHO_T}$ac_file" >&6; } | |
3674 | if test -z "$ac_file"; then | |
503d2be0 | 3675 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
3676 | sed 's/^/| /' conftest.$ac_ext >&5 |
3677 | ||
6bae0ccf | 3678 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
19650fd6 | 3679 | See \`config.log' for more details." >&5 |
6bae0ccf | 3680 | echo "$as_me: error: C compiler cannot create executables |
19650fd6 | 3681 | See \`config.log' for more details." >&2;} |
503d2be0 AS |
3682 | { (exit 77); exit 77; }; } |
3683 | fi | |
3684 | ||
3685 | ac_exeext=$ac_cv_exeext | |
503d2be0 | 3686 | |
ca81d7a0 | 3687 | # Check that the compiler produces executables we can run. If not, either |
503d2be0 | 3688 | # the compiler is broken, or we cross compile. |
ca81d7a0 JD |
3689 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
3690 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } | |
503d2be0 AS |
3691 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
3692 | # If not cross compiling, check that we can run a simple program. | |
3693 | if test "$cross_compiling" != yes; then | |
3694 | if { ac_try='./$ac_file' | |
ca81d7a0 JD |
3695 | { (case "(($ac_try" in |
3696 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3697 | *) ac_try_echo=$ac_try;; | |
3698 | esac | |
3699 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3700 | (eval "$ac_try") 2>&5 | |
503d2be0 | 3701 | ac_status=$? |
c0d27fcc | 3702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3703 | (exit $ac_status); }; }; then |
3704 | cross_compiling=no | |
ba4481b5 | 3705 | else |
503d2be0 AS |
3706 | if test "$cross_compiling" = maybe; then |
3707 | cross_compiling=yes | |
3708 | else | |
c0d27fcc | 3709 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
19650fd6 AS |
3710 | If you meant to cross compile, use \`--host'. |
3711 | See \`config.log' for more details." >&5 | |
503d2be0 | 3712 | echo "$as_me: error: cannot run C compiled programs. |
19650fd6 AS |
3713 | If you meant to cross compile, use \`--host'. |
3714 | See \`config.log' for more details." >&2;} | |
503d2be0 AS |
3715 | { (exit 1); exit 1; }; } |
3716 | fi | |
ba4481b5 | 3717 | fi |
503d2be0 | 3718 | fi |
ca81d7a0 JD |
3719 | { echo "$as_me:$LINENO: result: yes" >&5 |
3720 | echo "${ECHO_T}yes" >&6; } | |
503d2be0 | 3721 | |
19650fd6 | 3722 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
503d2be0 | 3723 | ac_clean_files=$ac_clean_files_save |
ca81d7a0 | 3724 | # Check that the compiler produces executables we can run. If not, either |
503d2be0 | 3725 | # the compiler is broken, or we cross compile. |
ca81d7a0 JD |
3726 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
3727 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } | |
3728 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
3729 | echo "${ECHO_T}$cross_compiling" >&6; } | |
3730 | ||
3731 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
3732 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } | |
3733 | if { (ac_try="$ac_link" | |
3734 | case "(($ac_try" in | |
3735 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3736 | *) ac_try_echo=$ac_try;; | |
3737 | esac | |
3738 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3739 | (eval "$ac_link") 2>&5 | |
503d2be0 | 3740 | ac_status=$? |
c0d27fcc | 3741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3742 | (exit $ac_status); }; then |
3743 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3744 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3745 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3746 | # `rm'. | |
6bae0ccf DL |
3747 | for ac_file in conftest.exe conftest conftest.*; do |
3748 | test -f "$ac_file" || continue | |
503d2be0 | 3749 | case $ac_file in |
ca81d7a0 | 3750 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
503d2be0 | 3751 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
edfaf76d | 3752 | break;; |
503d2be0 AS |
3753 | * ) break;; |
3754 | esac | |
3755 | done | |
ba4481b5 | 3756 | else |
19650fd6 AS |
3757 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
3758 | See \`config.log' for more details." >&5 | |
3759 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
3760 | See \`config.log' for more details." >&2;} | |
503d2be0 | 3761 | { (exit 1); exit 1; }; } |
ba4481b5 | 3762 | fi |
ba4481b5 | 3763 | |
503d2be0 | 3764 | rm -f conftest$ac_cv_exeext |
ca81d7a0 JD |
3765 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
3766 | echo "${ECHO_T}$ac_cv_exeext" >&6; } | |
ba4481b5 | 3767 | |
503d2be0 AS |
3768 | rm -f conftest.$ac_ext |
3769 | EXEEXT=$ac_cv_exeext | |
3770 | ac_exeext=$EXEEXT | |
ca81d7a0 JD |
3771 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
3772 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } | |
503d2be0 AS |
3773 | if test "${ac_cv_objext+set}" = set; then |
3774 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 3775 | else |
503d2be0 | 3776 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
3777 | /* confdefs.h. */ |
3778 | _ACEOF | |
3779 | cat confdefs.h >>conftest.$ac_ext | |
3780 | cat >>conftest.$ac_ext <<_ACEOF | |
3781 | /* end confdefs.h. */ | |
ba4481b5 | 3782 | |
503d2be0 AS |
3783 | int |
3784 | main () | |
3785 | { | |
ba4481b5 | 3786 | |
503d2be0 AS |
3787 | ; |
3788 | return 0; | |
3789 | } | |
3790 | _ACEOF | |
3791 | rm -f conftest.o conftest.obj | |
ca81d7a0 JD |
3792 | if { (ac_try="$ac_compile" |
3793 | case "(($ac_try" in | |
3794 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3795 | *) ac_try_echo=$ac_try;; | |
3796 | esac | |
3797 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3798 | (eval "$ac_compile") 2>&5 | |
503d2be0 | 3799 | ac_status=$? |
c0d27fcc | 3800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 3801 | (exit $ac_status); }; then |
ca81d7a0 JD |
3802 | for ac_file in conftest.o conftest.obj conftest.*; do |
3803 | test -f "$ac_file" || continue; | |
503d2be0 | 3804 | case $ac_file in |
ca81d7a0 | 3805 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
503d2be0 AS |
3806 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3807 | break;; | |
3808 | esac | |
3809 | done | |
c4bb2108 | 3810 | else |
503d2be0 | 3811 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
3812 | sed 's/^/| /' conftest.$ac_ext >&5 |
3813 | ||
3814 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
3815 | See \`config.log' for more details." >&5 | |
3816 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
3817 | See \`config.log' for more details." >&2;} | |
503d2be0 | 3818 | { (exit 1); exit 1; }; } |
c4bb2108 DL |
3819 | fi |
3820 | ||
503d2be0 AS |
3821 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3822 | fi | |
ca81d7a0 JD |
3823 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
3824 | echo "${ECHO_T}$ac_cv_objext" >&6; } | |
503d2be0 AS |
3825 | OBJEXT=$ac_cv_objext |
3826 | ac_objext=$OBJEXT | |
ca81d7a0 JD |
3827 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
3828 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } | |
503d2be0 AS |
3829 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
3830 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 3831 | else |
503d2be0 | 3832 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
3833 | /* confdefs.h. */ |
3834 | _ACEOF | |
3835 | cat confdefs.h >>conftest.$ac_ext | |
3836 | cat >>conftest.$ac_ext <<_ACEOF | |
3837 | /* end confdefs.h. */ | |
503d2be0 AS |
3838 | |
3839 | int | |
3840 | main () | |
3841 | { | |
3842 | #ifndef __GNUC__ | |
3843 | choke me | |
3844 | #endif | |
3845 | ||
3846 | ; | |
3847 | return 0; | |
3848 | } | |
3849 | _ACEOF | |
3850 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
3851 | if { (ac_try="$ac_compile" |
3852 | case "(($ac_try" in | |
3853 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3854 | *) ac_try_echo=$ac_try;; | |
3855 | esac | |
3856 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3857 | (eval "$ac_compile") 2>conftest.er1 | |
503d2be0 | 3858 | ac_status=$? |
edfaf76d LK |
3859 | grep -v '^ *+' conftest.er1 >conftest.err |
3860 | rm -f conftest.er1 | |
3861 | cat conftest.err >&5 | |
c0d27fcc | 3862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
3863 | (exit $ac_status); } && { |
3864 | test -z "$ac_c_werror_flag" || | |
3865 | test ! -s conftest.err | |
3866 | } && test -s conftest.$ac_objext; then | |
503d2be0 AS |
3867 | ac_compiler_gnu=yes |
3868 | else | |
3869 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
3870 | sed 's/^/| /' conftest.$ac_ext >&5 |
3871 | ||
ca81d7a0 | 3872 | ac_compiler_gnu=no |
503d2be0 | 3873 | fi |
ca81d7a0 JD |
3874 | |
3875 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
503d2be0 AS |
3876 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3877 | ||
3878 | fi | |
ca81d7a0 JD |
3879 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
3880 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } | |
503d2be0 AS |
3881 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
3882 | ac_test_CFLAGS=${CFLAGS+set} | |
3883 | ac_save_CFLAGS=$CFLAGS | |
ca81d7a0 JD |
3884 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
3885 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } | |
503d2be0 AS |
3886 | if test "${ac_cv_prog_cc_g+set}" = set; then |
3887 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3888 | else | |
ca81d7a0 JD |
3889 | ac_save_c_werror_flag=$ac_c_werror_flag |
3890 | ac_c_werror_flag=yes | |
3891 | ac_cv_prog_cc_g=no | |
3892 | CFLAGS="-g" | |
3893 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
3894 | /* confdefs.h. */ |
3895 | _ACEOF | |
3896 | cat confdefs.h >>conftest.$ac_ext | |
3897 | cat >>conftest.$ac_ext <<_ACEOF | |
3898 | /* end confdefs.h. */ | |
503d2be0 AS |
3899 | |
3900 | int | |
3901 | main () | |
3902 | { | |
3903 | ||
3904 | ; | |
3905 | return 0; | |
3906 | } | |
3907 | _ACEOF | |
3908 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
3909 | if { (ac_try="$ac_compile" |
3910 | case "(($ac_try" in | |
3911 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3912 | *) ac_try_echo=$ac_try;; | |
3913 | esac | |
3914 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3915 | (eval "$ac_compile") 2>conftest.er1 | |
503d2be0 | 3916 | ac_status=$? |
edfaf76d LK |
3917 | grep -v '^ *+' conftest.er1 >conftest.err |
3918 | rm -f conftest.er1 | |
3919 | cat conftest.err >&5 | |
c0d27fcc | 3920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
3921 | (exit $ac_status); } && { |
3922 | test -z "$ac_c_werror_flag" || | |
3923 | test ! -s conftest.err | |
3924 | } && test -s conftest.$ac_objext; then | |
ba4481b5 DL |
3925 | ac_cv_prog_cc_g=yes |
3926 | else | |
503d2be0 | 3927 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
3928 | sed 's/^/| /' conftest.$ac_ext >&5 |
3929 | ||
ca81d7a0 JD |
3930 | CFLAGS="" |
3931 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
3932 | /* confdefs.h. */ |
3933 | _ACEOF | |
3934 | cat confdefs.h >>conftest.$ac_ext | |
3935 | cat >>conftest.$ac_ext <<_ACEOF | |
3936 | /* end confdefs.h. */ | |
edfaf76d | 3937 | |
6bae0ccf DL |
3938 | int |
3939 | main () | |
3940 | { | |
ca81d7a0 | 3941 | |
6bae0ccf DL |
3942 | ; |
3943 | return 0; | |
3944 | } | |
3945 | _ACEOF | |
ca81d7a0 JD |
3946 | rm -f conftest.$ac_objext |
3947 | if { (ac_try="$ac_compile" | |
3948 | case "(($ac_try" in | |
3949 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3950 | *) ac_try_echo=$ac_try;; | |
3951 | esac | |
3952 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3953 | (eval "$ac_compile") 2>conftest.er1 | |
6bae0ccf | 3954 | ac_status=$? |
edfaf76d LK |
3955 | grep -v '^ *+' conftest.er1 >conftest.err |
3956 | rm -f conftest.er1 | |
3957 | cat conftest.err >&5 | |
6bae0ccf | 3958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
3959 | (exit $ac_status); } && { |
3960 | test -z "$ac_c_werror_flag" || | |
3961 | test ! -s conftest.err | |
3962 | } && test -s conftest.$ac_objext; then | |
ca81d7a0 | 3963 | : |
6bae0ccf DL |
3964 | else |
3965 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
3966 | sed 's/^/| /' conftest.$ac_ext >&5 |
3967 | ||
ca81d7a0 JD |
3968 | ac_c_werror_flag=$ac_save_c_werror_flag |
3969 | CFLAGS="-g" | |
3970 | cat >conftest.$ac_ext <<_ACEOF | |
4b411bfe | 3971 | /* confdefs.h. */ |
19650fd6 AS |
3972 | _ACEOF |
3973 | cat confdefs.h >>conftest.$ac_ext | |
3974 | cat >>conftest.$ac_ext <<_ACEOF | |
3975 | /* end confdefs.h. */ | |
ca81d7a0 | 3976 | |
503d2be0 AS |
3977 | int |
3978 | main () | |
3979 | { | |
ca81d7a0 | 3980 | |
503d2be0 AS |
3981 | ; |
3982 | return 0; | |
3983 | } | |
3984 | _ACEOF | |
3985 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
3986 | if { (ac_try="$ac_compile" |
3987 | case "(($ac_try" in | |
3988 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3989 | *) ac_try_echo=$ac_try;; | |
3990 | esac | |
3991 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3992 | (eval "$ac_compile") 2>conftest.er1 | |
503d2be0 | 3993 | ac_status=$? |
edfaf76d LK |
3994 | grep -v '^ *+' conftest.er1 >conftest.err |
3995 | rm -f conftest.er1 | |
3996 | cat conftest.err >&5 | |
c0d27fcc | 3997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
3998 | (exit $ac_status); } && { |
3999 | test -z "$ac_c_werror_flag" || | |
4000 | test ! -s conftest.err | |
4001 | } && test -s conftest.$ac_objext; then | |
ca81d7a0 | 4002 | ac_cv_prog_cc_g=yes |
503d2be0 AS |
4003 | else |
4004 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
4005 | sed 's/^/| /' conftest.$ac_ext >&5 |
4006 | ||
ca81d7a0 | 4007 | |
8eeae1c9 | 4008 | fi |
ca81d7a0 JD |
4009 | |
4010 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4011 | fi | |
4012 | ||
4013 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4014 | fi | |
4015 | ||
4016 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4017 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4018 | fi | |
4019 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
4020 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } | |
4021 | if test "$ac_test_CFLAGS" = set; then | |
4022 | CFLAGS=$ac_save_CFLAGS | |
4023 | elif test $ac_cv_prog_cc_g = yes; then | |
4024 | if test "$GCC" = yes; then | |
4025 | CFLAGS="-g -O2" | |
4026 | else | |
4027 | CFLAGS="-g" | |
4028 | fi | |
4029 | else | |
4030 | if test "$GCC" = yes; then | |
4031 | CFLAGS="-O2" | |
4032 | else | |
4033 | CFLAGS= | |
4034 | fi | |
4035 | fi | |
4036 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 | |
4037 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } | |
4038 | if test "${ac_cv_prog_cc_c89+set}" = set; then | |
4039 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4040 | else | |
4041 | ac_cv_prog_cc_c89=no | |
4042 | ac_save_CC=$CC | |
4043 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
4044 | /* confdefs.h. */ |
4045 | _ACEOF | |
4046 | cat confdefs.h >>conftest.$ac_ext | |
4047 | cat >>conftest.$ac_ext <<_ACEOF | |
4048 | /* end confdefs.h. */ | |
ca81d7a0 JD |
4049 | #include <stdarg.h> |
4050 | #include <stdio.h> | |
4051 | #include <sys/types.h> | |
4052 | #include <sys/stat.h> | |
4053 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4054 | struct buf { int x; }; | |
4055 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4056 | static char *e (p, i) | |
4057 | char **p; | |
4058 | int i; | |
4059 | { | |
4060 | return p[i]; | |
4061 | } | |
4062 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4063 | { | |
4064 | char *s; | |
4065 | va_list v; | |
4066 | va_start (v,p); | |
4067 | s = g (p, va_arg (v,int)); | |
4068 | va_end (v); | |
4069 | return s; | |
4070 | } | |
4071 | ||
4072 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4073 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4074 | These don't provoke an error unfortunately, instead are silently treated | |
4075 | as 'x'. The following induces an error, until -std is added to get | |
4076 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
4077 | array size at least. It's necessary to write '\x00'==0 to get something | |
4078 | that's true only with -std. */ | |
4079 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
4080 | ||
4081 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
4082 | inside strings and character constants. */ | |
4083 | #define FOO(x) 'x' | |
4084 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4085 | ||
4086 | int test (int i, double x); | |
4087 | struct s1 {int (*f) (int a);}; | |
4088 | struct s2 {int (*f) (double a);}; | |
4089 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4090 | int argc; | |
4091 | char **argv; | |
503d2be0 AS |
4092 | int |
4093 | main () | |
4094 | { | |
ca81d7a0 | 4095 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
503d2be0 AS |
4096 | ; |
4097 | return 0; | |
4098 | } | |
4099 | _ACEOF | |
ca81d7a0 JD |
4100 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4101 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
4102 | do | |
4103 | CC="$ac_save_CC $ac_arg" | |
4104 | rm -f conftest.$ac_objext | |
4105 | if { (ac_try="$ac_compile" | |
4106 | case "(($ac_try" in | |
4107 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4108 | *) ac_try_echo=$ac_try;; | |
4109 | esac | |
4110 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4111 | (eval "$ac_compile") 2>conftest.er1 | |
503d2be0 | 4112 | ac_status=$? |
edfaf76d LK |
4113 | grep -v '^ *+' conftest.er1 >conftest.err |
4114 | rm -f conftest.er1 | |
4115 | cat conftest.err >&5 | |
c0d27fcc | 4116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
4117 | (exit $ac_status); } && { |
4118 | test -z "$ac_c_werror_flag" || | |
4119 | test ! -s conftest.err | |
4120 | } && test -s conftest.$ac_objext; then | |
ca81d7a0 | 4121 | ac_cv_prog_cc_c89=$ac_arg |
503d2be0 AS |
4122 | else |
4123 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
4124 | sed 's/^/| /' conftest.$ac_ext >&5 |
4125 | ||
ca81d7a0 | 4126 | |
503d2be0 | 4127 | fi |
ca81d7a0 JD |
4128 | |
4129 | rm -f core conftest.err conftest.$ac_objext | |
4130 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
503d2be0 | 4131 | done |
ca81d7a0 JD |
4132 | rm -f conftest.$ac_ext |
4133 | CC=$ac_save_CC | |
4134 | ||
503d2be0 | 4135 | fi |
ca81d7a0 JD |
4136 | # AC_CACHE_VAL |
4137 | case "x$ac_cv_prog_cc_c89" in | |
4138 | x) | |
4139 | { echo "$as_me:$LINENO: result: none needed" >&5 | |
4140 | echo "${ECHO_T}none needed" >&6; } ;; | |
4141 | xno) | |
4142 | { echo "$as_me:$LINENO: result: unsupported" >&5 | |
4143 | echo "${ECHO_T}unsupported" >&6; } ;; | |
4144 | *) | |
4145 | CC="$CC $ac_cv_prog_cc_c89" | |
4146 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 | |
4147 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; | |
4148 | esac | |
ba4481b5 | 4149 | |
19650fd6 | 4150 | |
503d2be0 AS |
4151 | ac_ext=c |
4152 | ac_cpp='$CPP $CPPFLAGS' | |
4153 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4154 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4155 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ba4481b5 | 4156 | |
c0d27fcc | 4157 | |
ba4481b5 DL |
4158 | # On Suns, sometimes $CPP names a directory. |
4159 | if test -n "$CPP" && test -d "$CPP"; then | |
4160 | CPP= | |
4161 | fi | |
4162 | ||
089a966d GM |
4163 | ## If not using gcc, and on Solaris, and no CPP specified, see if |
4164 | ## using a Sun compiler, which needs -Xs to prevent whitespace. | |
4165 | if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \ | |
4166 | test x"$CPP" = x; then | |
4167 | { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5 | |
4168 | echo $ECHO_N "checking whether we are using a Sun C compiler... $ECHO_C" >&6; } | |
4169 | ||
4170 | if test "${emacs_cv_sunpro_c+set}" = set; then | |
4171 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4172 | else | |
4173 | cat >conftest.$ac_ext <<_ACEOF | |
4174 | /* confdefs.h. */ | |
4175 | _ACEOF | |
4176 | cat confdefs.h >>conftest.$ac_ext | |
4177 | cat >>conftest.$ac_ext <<_ACEOF | |
4178 | /* end confdefs.h. */ | |
4179 | ||
4180 | int | |
4181 | main () | |
4182 | { | |
4183 | #ifndef __SUNPRO_C | |
4184 | fail; | |
4185 | #endif | |
4186 | ||
4187 | ; | |
4188 | return 0; | |
4189 | } | |
4190 | _ACEOF | |
4191 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4192 | if { (ac_try="$ac_link" | |
4193 | case "(($ac_try" in | |
4194 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4195 | *) ac_try_echo=$ac_try;; | |
4196 | esac | |
4197 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4198 | (eval "$ac_link") 2>conftest.er1 | |
4199 | ac_status=$? | |
4200 | grep -v '^ *+' conftest.er1 >conftest.err | |
4201 | rm -f conftest.er1 | |
4202 | cat conftest.err >&5 | |
4203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4204 | (exit $ac_status); } && { | |
4205 | test -z "$ac_c_werror_flag" || | |
4206 | test ! -s conftest.err | |
4207 | } && test -s conftest$ac_exeext && | |
4208 | $as_test_x conftest$ac_exeext; then | |
4209 | emacs_cv_sunpro_c=yes | |
4210 | else | |
4211 | echo "$as_me: failed program was:" >&5 | |
4212 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4213 | ||
4214 | emacs_cv_sunpro_c=no | |
4215 | fi | |
4216 | ||
4217 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
4218 | conftest$ac_exeext conftest.$ac_ext | |
4219 | fi | |
4220 | ||
4221 | { echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5 | |
4222 | echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; } | |
4223 | ||
4224 | if test x"$emacs_cv_sunpro_c" = xyes; then | |
4225 | NON_GNU_CPP="$CC -E -Xs" | |
4226 | fi | |
4227 | fi | |
4228 | ||
ba4481b5 DL |
4229 | #### Some systems specify a CPP to use unless we are using GCC. |
4230 | #### Now that we know whether we are using GCC, we can decide whether | |
4231 | #### to use that one. | |
4232 | if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x | |
4233 | then | |
4234 | CPP="$NON_GNU_CPP" | |
4235 | fi | |
4236 | ||
4237 | #### Some systems specify a CC to use unless we are using GCC. | |
4238 | #### Now that we know whether we are using GCC, we can decide whether | |
4239 | #### to use that one. | |
4240 | if test "x$NON_GNU_CC" != x && test x$GCC != xyes && | |
4241 | test x$cc_specified != xyes | |
4242 | then | |
4243 | CC="$NON_GNU_CC" | |
4244 | fi | |
4245 | ||
4246 | if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x | |
4247 | then | |
4248 | CC="$CC $GCC_TEST_OPTIONS" | |
4249 | fi | |
4250 | ||
4251 | if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x | |
4252 | then | |
4253 | CC="$CC $NON_GCC_TEST_OPTIONS" | |
4254 | fi | |
4255 | ||
e143ad11 AS |
4256 | ac_ext=c |
4257 | ac_cpp='$CPP $CPPFLAGS' | |
4258 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4259 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4260 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ca81d7a0 JD |
4261 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
4262 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } | |
e143ad11 AS |
4263 | # On Suns, sometimes $CPP names a directory. |
4264 | if test -n "$CPP" && test -d "$CPP"; then | |
4265 | CPP= | |
4266 | fi | |
4267 | if test -z "$CPP"; then | |
4268 | if test "${ac_cv_prog_CPP+set}" = set; then | |
4269 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4270 | else | |
4271 | # Double quotes because CPP needs to be expanded | |
4272 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4273 | do | |
4274 | ac_preproc_ok=false | |
4275 | for ac_c_preproc_warn_flag in '' yes | |
4276 | do | |
4277 | # Use a header file that comes with gcc, so configuring glibc | |
4278 | # with a fresh cross-compiler works. | |
4279 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4280 | # <limits.h> exists even on freestanding compilers. | |
4281 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4282 | # not just through cpp. "Syntax error" is here to catch this case. | |
4283 | cat >conftest.$ac_ext <<_ACEOF | |
4284 | /* confdefs.h. */ | |
4285 | _ACEOF | |
4286 | cat confdefs.h >>conftest.$ac_ext | |
4287 | cat >>conftest.$ac_ext <<_ACEOF | |
4288 | /* end confdefs.h. */ | |
4289 | #ifdef __STDC__ | |
4290 | # include <limits.h> | |
4291 | #else | |
4292 | # include <assert.h> | |
4293 | #endif | |
4294 | Syntax error | |
4295 | _ACEOF | |
ca81d7a0 JD |
4296 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4297 | case "(($ac_try" in | |
4298 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4299 | *) ac_try_echo=$ac_try;; | |
4300 | esac | |
4301 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4302 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
e143ad11 AS |
4303 | ac_status=$? |
4304 | grep -v '^ *+' conftest.er1 >conftest.err | |
4305 | rm -f conftest.er1 | |
4306 | cat conftest.err >&5 | |
4307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f053c89f CY |
4308 | (exit $ac_status); } >/dev/null && { |
4309 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4310 | test ! -s conftest.err | |
4311 | }; then | |
e143ad11 AS |
4312 | : |
4313 | else | |
4314 | echo "$as_me: failed program was:" >&5 | |
4315 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4316 | ||
4317 | # Broken: fails on valid input. | |
4318 | continue | |
4319 | fi | |
ca81d7a0 | 4320 | |
e143ad11 AS |
4321 | rm -f conftest.err conftest.$ac_ext |
4322 | ||
ca81d7a0 | 4323 | # OK, works on sane cases. Now check whether nonexistent headers |
e143ad11 AS |
4324 | # can be detected and how. |
4325 | cat >conftest.$ac_ext <<_ACEOF | |
4326 | /* confdefs.h. */ | |
4327 | _ACEOF | |
4328 | cat confdefs.h >>conftest.$ac_ext | |
4329 | cat >>conftest.$ac_ext <<_ACEOF | |
4330 | /* end confdefs.h. */ | |
4331 | #include <ac_nonexistent.h> | |
4332 | _ACEOF | |
ca81d7a0 JD |
4333 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4334 | case "(($ac_try" in | |
4335 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4336 | *) ac_try_echo=$ac_try;; | |
4337 | esac | |
4338 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4339 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
e143ad11 AS |
4340 | ac_status=$? |
4341 | grep -v '^ *+' conftest.er1 >conftest.err | |
4342 | rm -f conftest.er1 | |
4343 | cat conftest.err >&5 | |
4344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f053c89f CY |
4345 | (exit $ac_status); } >/dev/null && { |
4346 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4347 | test ! -s conftest.err | |
4348 | }; then | |
e143ad11 AS |
4349 | # Broken: success on invalid input. |
4350 | continue | |
4351 | else | |
4352 | echo "$as_me: failed program was:" >&5 | |
4353 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4354 | ||
4355 | # Passes both tests. | |
4356 | ac_preproc_ok=: | |
4357 | break | |
4358 | fi | |
ca81d7a0 | 4359 | |
e143ad11 AS |
4360 | rm -f conftest.err conftest.$ac_ext |
4361 | ||
4362 | done | |
4363 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4364 | rm -f conftest.err conftest.$ac_ext | |
4365 | if $ac_preproc_ok; then | |
4366 | break | |
4367 | fi | |
4368 | ||
4369 | done | |
4370 | ac_cv_prog_CPP=$CPP | |
4371 | ||
4372 | fi | |
4373 | CPP=$ac_cv_prog_CPP | |
4374 | else | |
4375 | ac_cv_prog_CPP=$CPP | |
4376 | fi | |
ca81d7a0 JD |
4377 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
4378 | echo "${ECHO_T}$CPP" >&6; } | |
e143ad11 AS |
4379 | ac_preproc_ok=false |
4380 | for ac_c_preproc_warn_flag in '' yes | |
4381 | do | |
4382 | # Use a header file that comes with gcc, so configuring glibc | |
4383 | # with a fresh cross-compiler works. | |
4384 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4385 | # <limits.h> exists even on freestanding compilers. | |
4386 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4387 | # not just through cpp. "Syntax error" is here to catch this case. | |
4388 | cat >conftest.$ac_ext <<_ACEOF | |
4389 | /* confdefs.h. */ | |
4390 | _ACEOF | |
4391 | cat confdefs.h >>conftest.$ac_ext | |
4392 | cat >>conftest.$ac_ext <<_ACEOF | |
4393 | /* end confdefs.h. */ | |
4394 | #ifdef __STDC__ | |
4395 | # include <limits.h> | |
4396 | #else | |
4397 | # include <assert.h> | |
4398 | #endif | |
4399 | Syntax error | |
4400 | _ACEOF | |
ca81d7a0 JD |
4401 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4402 | case "(($ac_try" in | |
4403 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4404 | *) ac_try_echo=$ac_try;; | |
4405 | esac | |
4406 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4407 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
e143ad11 AS |
4408 | ac_status=$? |
4409 | grep -v '^ *+' conftest.er1 >conftest.err | |
4410 | rm -f conftest.er1 | |
4411 | cat conftest.err >&5 | |
4412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f053c89f CY |
4413 | (exit $ac_status); } >/dev/null && { |
4414 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4415 | test ! -s conftest.err | |
4416 | }; then | |
e143ad11 AS |
4417 | : |
4418 | else | |
4419 | echo "$as_me: failed program was:" >&5 | |
4420 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4421 | ||
4422 | # Broken: fails on valid input. | |
4423 | continue | |
4424 | fi | |
ca81d7a0 | 4425 | |
e143ad11 AS |
4426 | rm -f conftest.err conftest.$ac_ext |
4427 | ||
ca81d7a0 | 4428 | # OK, works on sane cases. Now check whether nonexistent headers |
e143ad11 AS |
4429 | # can be detected and how. |
4430 | cat >conftest.$ac_ext <<_ACEOF | |
4431 | /* confdefs.h. */ | |
4432 | _ACEOF | |
4433 | cat confdefs.h >>conftest.$ac_ext | |
4434 | cat >>conftest.$ac_ext <<_ACEOF | |
4435 | /* end confdefs.h. */ | |
4436 | #include <ac_nonexistent.h> | |
4437 | _ACEOF | |
ca81d7a0 JD |
4438 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4439 | case "(($ac_try" in | |
4440 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4441 | *) ac_try_echo=$ac_try;; | |
4442 | esac | |
4443 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4444 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
e143ad11 AS |
4445 | ac_status=$? |
4446 | grep -v '^ *+' conftest.er1 >conftest.err | |
4447 | rm -f conftest.er1 | |
4448 | cat conftest.err >&5 | |
4449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f053c89f CY |
4450 | (exit $ac_status); } >/dev/null && { |
4451 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4452 | test ! -s conftest.err | |
4453 | }; then | |
e143ad11 AS |
4454 | # Broken: success on invalid input. |
4455 | continue | |
4456 | else | |
4457 | echo "$as_me: failed program was:" >&5 | |
4458 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4459 | ||
4460 | # Passes both tests. | |
4461 | ac_preproc_ok=: | |
4462 | break | |
4463 | fi | |
ca81d7a0 | 4464 | |
e143ad11 AS |
4465 | rm -f conftest.err conftest.$ac_ext |
4466 | ||
4467 | done | |
4468 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4469 | rm -f conftest.err conftest.$ac_ext | |
4470 | if $ac_preproc_ok; then | |
4471 | : | |
4472 | else | |
4473 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
4474 | See \`config.log' for more details." >&5 | |
4475 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
4476 | See \`config.log' for more details." >&2;} | |
4477 | { (exit 1); exit 1; }; } | |
4478 | fi | |
4479 | ||
4480 | ac_ext=c | |
4481 | ac_cpp='$CPP $CPPFLAGS' | |
4482 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4483 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4484 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4485 | ||
4486 | ||
ca81d7a0 JD |
4487 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
4488 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } | |
4489 | if test "${ac_cv_path_GREP+set}" = set; then | |
4490 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4491 | else | |
4492 | # Extract the first word of "grep ggrep" to use in msg output | |
4493 | if test -z "$GREP"; then | |
4494 | set dummy grep ggrep; ac_prog_name=$2 | |
4495 | if test "${ac_cv_path_GREP+set}" = set; then | |
4496 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4497 | else | |
4498 | ac_path_GREP_found=false | |
4499 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4500 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4501 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4502 | do | |
4503 | IFS=$as_save_IFS | |
4504 | test -z "$as_dir" && as_dir=. | |
4505 | for ac_prog in grep ggrep; do | |
4506 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4507 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
f053c89f | 4508 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
ca81d7a0 JD |
4509 | # Check for GNU ac_path_GREP and select it if it is found. |
4510 | # Check for GNU $ac_path_GREP | |
4511 | case `"$ac_path_GREP" --version 2>&1` in | |
4512 | *GNU*) | |
4513 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4514 | *) | |
4515 | ac_count=0 | |
4516 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | |
4517 | while : | |
4518 | do | |
4519 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4520 | mv "conftest.tmp" "conftest.in" | |
4521 | cp "conftest.in" "conftest.nl" | |
4522 | echo 'GREP' >> "conftest.nl" | |
4523 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4524 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4525 | ac_count=`expr $ac_count + 1` | |
4526 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
4527 | # Best one so far, save it but keep looking for a better one | |
4528 | ac_cv_path_GREP="$ac_path_GREP" | |
4529 | ac_path_GREP_max=$ac_count | |
4530 | fi | |
4531 | # 10*(2^10) chars as input seems more than enough | |
4532 | test $ac_count -gt 10 && break | |
4533 | done | |
4534 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4535 | esac | |
4536 | ||
4537 | ||
4538 | $ac_path_GREP_found && break 3 | |
4539 | done | |
4540 | done | |
4541 | ||
4542 | done | |
4543 | IFS=$as_save_IFS | |
4544 | ||
4545 | ||
4546 | fi | |
4547 | ||
4548 | GREP="$ac_cv_path_GREP" | |
4549 | if test -z "$GREP"; then | |
4550 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
4551 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
4552 | { (exit 1); exit 1; }; } | |
4553 | fi | |
4554 | ||
4555 | else | |
4556 | ac_cv_path_GREP=$GREP | |
4557 | fi | |
4558 | ||
4559 | ||
4560 | fi | |
4561 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 | |
4562 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } | |
4563 | GREP="$ac_cv_path_GREP" | |
4564 | ||
4565 | ||
4566 | { echo "$as_me:$LINENO: checking for egrep" >&5 | |
4567 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } | |
4568 | if test "${ac_cv_path_EGREP+set}" = set; then | |
8eeae1c9 JD |
4569 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4570 | else | |
ca81d7a0 JD |
4571 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
4572 | then ac_cv_path_EGREP="$GREP -E" | |
4573 | else | |
4574 | # Extract the first word of "egrep" to use in msg output | |
4575 | if test -z "$EGREP"; then | |
4576 | set dummy egrep; ac_prog_name=$2 | |
4577 | if test "${ac_cv_path_EGREP+set}" = set; then | |
4578 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4579 | else | |
4580 | ac_path_EGREP_found=false | |
4581 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4582 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4583 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4584 | do | |
4585 | IFS=$as_save_IFS | |
4586 | test -z "$as_dir" && as_dir=. | |
4587 | for ac_prog in egrep; do | |
4588 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4589 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
f053c89f | 4590 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
ca81d7a0 JD |
4591 | # Check for GNU ac_path_EGREP and select it if it is found. |
4592 | # Check for GNU $ac_path_EGREP | |
4593 | case `"$ac_path_EGREP" --version 2>&1` in | |
4594 | *GNU*) | |
4595 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4596 | *) | |
4597 | ac_count=0 | |
4598 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | |
4599 | while : | |
4600 | do | |
4601 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4602 | mv "conftest.tmp" "conftest.in" | |
4603 | cp "conftest.in" "conftest.nl" | |
4604 | echo 'EGREP' >> "conftest.nl" | |
4605 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4606 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4607 | ac_count=`expr $ac_count + 1` | |
4608 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4609 | # Best one so far, save it but keep looking for a better one | |
4610 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4611 | ac_path_EGREP_max=$ac_count | |
e143ad11 | 4612 | fi |
ca81d7a0 JD |
4613 | # 10*(2^10) chars as input seems more than enough |
4614 | test $ac_count -gt 10 && break | |
4615 | done | |
4616 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4617 | esac | |
4618 | ||
4619 | ||
4620 | $ac_path_EGREP_found && break 3 | |
4621 | done | |
4622 | done | |
4623 | ||
4624 | done | |
4625 | IFS=$as_save_IFS | |
4626 | ||
4627 | ||
4628 | fi | |
4629 | ||
4630 | EGREP="$ac_cv_path_EGREP" | |
4631 | if test -z "$EGREP"; then | |
4632 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
4633 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
4634 | { (exit 1); exit 1; }; } | |
4635 | fi | |
4636 | ||
4637 | else | |
4638 | ac_cv_path_EGREP=$EGREP | |
4639 | fi | |
4640 | ||
4641 | ||
4642 | fi | |
8eeae1c9 | 4643 | fi |
ca81d7a0 JD |
4644 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
4645 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } | |
4646 | EGREP="$ac_cv_path_EGREP" | |
e143ad11 AS |
4647 | |
4648 | ||
4649 | ||
ca81d7a0 JD |
4650 | { echo "$as_me:$LINENO: checking for AIX" >&5 |
4651 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6; } | |
e143ad11 AS |
4652 | cat >conftest.$ac_ext <<_ACEOF |
4653 | /* confdefs.h. */ | |
4654 | _ACEOF | |
4655 | cat confdefs.h >>conftest.$ac_ext | |
4656 | cat >>conftest.$ac_ext <<_ACEOF | |
4657 | /* end confdefs.h. */ | |
4658 | #ifdef _AIX | |
4659 | yes | |
4660 | #endif | |
4661 | ||
4662 | _ACEOF | |
4663 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4664 | $EGREP "yes" >/dev/null 2>&1; then | |
ca81d7a0 JD |
4665 | { echo "$as_me:$LINENO: result: yes" >&5 |
4666 | echo "${ECHO_T}yes" >&6; } | |
e143ad11 AS |
4667 | cat >>confdefs.h <<\_ACEOF |
4668 | #define _ALL_SOURCE 1 | |
4669 | _ACEOF | |
4670 | ||
4671 | else | |
ca81d7a0 JD |
4672 | { echo "$as_me:$LINENO: result: no" >&5 |
4673 | echo "${ECHO_T}no" >&6; } | |
e143ad11 AS |
4674 | fi |
4675 | rm -f conftest* | |
4676 | ||
4677 | ||
4678 | ||
4679 | cat >>confdefs.h <<\_ACEOF | |
4680 | #define _GNU_SOURCE 1 | |
4681 | _ACEOF | |
4682 | ||
4683 | ||
4684 | ||
01abe918 | 4685 | ### Use -Wno-pointer-sign if the compiler supports it |
ca81d7a0 JD |
4686 | { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5 |
4687 | echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; } | |
01abe918 CY |
4688 | SAVE_CFLAGS="$CFLAGS" |
4689 | CFLAGS="$CFLAGS -Wno-pointer-sign" | |
01abe918 CY |
4690 | cat >conftest.$ac_ext <<_ACEOF |
4691 | /* confdefs.h. */ | |
4692 | _ACEOF | |
4693 | cat confdefs.h >>conftest.$ac_ext | |
4694 | cat >>conftest.$ac_ext <<_ACEOF | |
4695 | /* end confdefs.h. */ | |
4696 | ||
4697 | int | |
4698 | main () | |
4699 | { | |
4700 | ||
4701 | ; | |
4702 | return 0; | |
4703 | } | |
4704 | _ACEOF | |
4705 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
4706 | if { (ac_try="$ac_compile" |
4707 | case "(($ac_try" in | |
4708 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4709 | *) ac_try_echo=$ac_try;; | |
4710 | esac | |
4711 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4712 | (eval "$ac_compile") 2>conftest.er1 | |
01abe918 CY |
4713 | ac_status=$? |
4714 | grep -v '^ *+' conftest.er1 >conftest.err | |
4715 | rm -f conftest.er1 | |
4716 | cat conftest.err >&5 | |
4717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f053c89f CY |
4718 | (exit $ac_status); } && { |
4719 | test -z "$ac_c_werror_flag" || | |
4720 | test ! -s conftest.err | |
4721 | } && test -s conftest.$ac_objext; then | |
01abe918 CY |
4722 | has_option=yes |
4723 | else | |
4724 | echo "$as_me: failed program was:" >&5 | |
4725 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4726 | ||
ca81d7a0 | 4727 | has_option=no |
01abe918 | 4728 | fi |
ca81d7a0 JD |
4729 | |
4730 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
01abe918 CY |
4731 | if test $has_option = yes; then |
4732 | C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH" | |
4733 | fi | |
ca81d7a0 JD |
4734 | { echo "$as_me:$LINENO: result: $has_option" >&5 |
4735 | echo "${ECHO_T}$has_option" >&6; } | |
01abe918 CY |
4736 | CFLAGS="$SAVE_CFLAGS" |
4737 | unset has_option | |
4738 | unset SAVE_CFLAGS | |
4739 | ||
6a3a24fa | 4740 | #### Some other nice autoconf tests. |
ba4481b5 | 4741 | |
ca81d7a0 JD |
4742 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
4743 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } | |
503d2be0 AS |
4744 | LN_S=$as_ln_s |
4745 | if test "$LN_S" = "ln -s"; then | |
ca81d7a0 JD |
4746 | { echo "$as_me:$LINENO: result: yes" >&5 |
4747 | echo "${ECHO_T}yes" >&6; } | |
ba4481b5 | 4748 | else |
ca81d7a0 JD |
4749 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
4750 | echo "${ECHO_T}no, using $LN_S" >&6; } | |
ba4481b5 DL |
4751 | fi |
4752 | ||
503d2be0 AS |
4753 | ac_ext=c |
4754 | ac_cpp='$CPP $CPPFLAGS' | |
4755 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4756 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4757 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ca81d7a0 JD |
4758 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
4759 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } | |
ba4481b5 DL |
4760 | # On Suns, sometimes $CPP names a directory. |
4761 | if test -n "$CPP" && test -d "$CPP"; then | |
4762 | CPP= | |
4763 | fi | |
4764 | if test -z "$CPP"; then | |
503d2be0 AS |
4765 | if test "${ac_cv_prog_CPP+set}" = set; then |
4766 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4767 | else | |
4768 | # Double quotes because CPP needs to be expanded | |
4769 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4770 | do | |
4771 | ac_preproc_ok=false | |
4772 | for ac_c_preproc_warn_flag in '' yes | |
4773 | do | |
4774 | # Use a header file that comes with gcc, so configuring glibc | |
4775 | # with a fresh cross-compiler works. | |
19650fd6 AS |
4776 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
4777 | # <limits.h> exists even on freestanding compilers. | |
ba4481b5 | 4778 | # On the NeXT, cc -E runs the code through the compiler's parser, |
503d2be0 AS |
4779 | # not just through cpp. "Syntax error" is here to catch this case. |
4780 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
4781 | /* confdefs.h. */ |
4782 | _ACEOF | |
4783 | cat confdefs.h >>conftest.$ac_ext | |
4784 | cat >>conftest.$ac_ext <<_ACEOF | |
4785 | /* end confdefs.h. */ | |
4786 | #ifdef __STDC__ | |
4787 | # include <limits.h> | |
4788 | #else | |
4789 | # include <assert.h> | |
4790 | #endif | |
edfaf76d | 4791 | Syntax error |
503d2be0 | 4792 | _ACEOF |
ca81d7a0 JD |
4793 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4794 | case "(($ac_try" in | |
4795 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4796 | *) ac_try_echo=$ac_try;; | |
4797 | esac | |
4798 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4799 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 4800 | ac_status=$? |
6bae0ccf | 4801 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
4802 | rm -f conftest.er1 |
4803 | cat conftest.err >&5 | |
c0d27fcc | 4804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
4805 | (exit $ac_status); } >/dev/null && { |
4806 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4807 | test ! -s conftest.err | |
4808 | }; then | |
ba4481b5 DL |
4809 | : |
4810 | else | |
503d2be0 | 4811 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
4812 | sed 's/^/| /' conftest.$ac_ext >&5 |
4813 | ||
503d2be0 AS |
4814 | # Broken: fails on valid input. |
4815 | continue | |
4816 | fi | |
ca81d7a0 | 4817 | |
503d2be0 AS |
4818 | rm -f conftest.err conftest.$ac_ext |
4819 | ||
ca81d7a0 | 4820 | # OK, works on sane cases. Now check whether nonexistent headers |
503d2be0 AS |
4821 | # can be detected and how. |
4822 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
4823 | /* confdefs.h. */ |
4824 | _ACEOF | |
4825 | cat confdefs.h >>conftest.$ac_ext | |
4826 | cat >>conftest.$ac_ext <<_ACEOF | |
4827 | /* end confdefs.h. */ | |
503d2be0 AS |
4828 | #include <ac_nonexistent.h> |
4829 | _ACEOF | |
ca81d7a0 JD |
4830 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4831 | case "(($ac_try" in | |
4832 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4833 | *) ac_try_echo=$ac_try;; | |
4834 | esac | |
4835 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4836 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 4837 | ac_status=$? |
6bae0ccf | 4838 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
4839 | rm -f conftest.er1 |
4840 | cat conftest.err >&5 | |
c0d27fcc | 4841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
4842 | (exit $ac_status); } >/dev/null && { |
4843 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4844 | test ! -s conftest.err | |
4845 | }; then | |
503d2be0 AS |
4846 | # Broken: success on invalid input. |
4847 | continue | |
c4bb2108 | 4848 | else |
503d2be0 | 4849 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
4850 | sed 's/^/| /' conftest.$ac_ext >&5 |
4851 | ||
503d2be0 AS |
4852 | # Passes both tests. |
4853 | ac_preproc_ok=: | |
4854 | break | |
4855 | fi | |
ca81d7a0 | 4856 | |
503d2be0 AS |
4857 | rm -f conftest.err conftest.$ac_ext |
4858 | ||
4859 | done | |
4860 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4861 | rm -f conftest.err conftest.$ac_ext | |
4862 | if $ac_preproc_ok; then | |
4863 | break | |
4864 | fi | |
4865 | ||
4866 | done | |
4867 | ac_cv_prog_CPP=$CPP | |
4868 | ||
4869 | fi | |
4870 | CPP=$ac_cv_prog_CPP | |
4871 | else | |
4872 | ac_cv_prog_CPP=$CPP | |
4873 | fi | |
ca81d7a0 JD |
4874 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
4875 | echo "${ECHO_T}$CPP" >&6; } | |
503d2be0 AS |
4876 | ac_preproc_ok=false |
4877 | for ac_c_preproc_warn_flag in '' yes | |
4878 | do | |
4879 | # Use a header file that comes with gcc, so configuring glibc | |
4880 | # with a fresh cross-compiler works. | |
19650fd6 AS |
4881 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
4882 | # <limits.h> exists even on freestanding compilers. | |
503d2be0 AS |
4883 | # On the NeXT, cc -E runs the code through the compiler's parser, |
4884 | # not just through cpp. "Syntax error" is here to catch this case. | |
4885 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
4886 | /* confdefs.h. */ |
4887 | _ACEOF | |
4888 | cat confdefs.h >>conftest.$ac_ext | |
4889 | cat >>conftest.$ac_ext <<_ACEOF | |
4890 | /* end confdefs.h. */ | |
4891 | #ifdef __STDC__ | |
4892 | # include <limits.h> | |
4893 | #else | |
4894 | # include <assert.h> | |
4895 | #endif | |
edfaf76d | 4896 | Syntax error |
503d2be0 | 4897 | _ACEOF |
ca81d7a0 JD |
4898 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4899 | case "(($ac_try" in | |
4900 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4901 | *) ac_try_echo=$ac_try;; | |
4902 | esac | |
4903 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4904 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 4905 | ac_status=$? |
6bae0ccf | 4906 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
4907 | rm -f conftest.er1 |
4908 | cat conftest.err >&5 | |
c0d27fcc | 4909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
4910 | (exit $ac_status); } >/dev/null && { |
4911 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4912 | test ! -s conftest.err | |
4913 | }; then | |
ba4481b5 DL |
4914 | : |
4915 | else | |
503d2be0 | 4916 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
4917 | sed 's/^/| /' conftest.$ac_ext >&5 |
4918 | ||
503d2be0 AS |
4919 | # Broken: fails on valid input. |
4920 | continue | |
4921 | fi | |
ca81d7a0 | 4922 | |
503d2be0 AS |
4923 | rm -f conftest.err conftest.$ac_ext |
4924 | ||
ca81d7a0 | 4925 | # OK, works on sane cases. Now check whether nonexistent headers |
503d2be0 AS |
4926 | # can be detected and how. |
4927 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
4928 | /* confdefs.h. */ |
4929 | _ACEOF | |
4930 | cat confdefs.h >>conftest.$ac_ext | |
4931 | cat >>conftest.$ac_ext <<_ACEOF | |
4932 | /* end confdefs.h. */ | |
503d2be0 AS |
4933 | #include <ac_nonexistent.h> |
4934 | _ACEOF | |
ca81d7a0 JD |
4935 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4936 | case "(($ac_try" in | |
4937 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4938 | *) ac_try_echo=$ac_try;; | |
4939 | esac | |
4940 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4941 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 4942 | ac_status=$? |
6bae0ccf | 4943 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
4944 | rm -f conftest.er1 |
4945 | cat conftest.err >&5 | |
c0d27fcc | 4946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
4947 | (exit $ac_status); } >/dev/null && { |
4948 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4949 | test ! -s conftest.err | |
4950 | }; then | |
503d2be0 AS |
4951 | # Broken: success on invalid input. |
4952 | continue | |
4953 | else | |
4954 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
4955 | sed 's/^/| /' conftest.$ac_ext >&5 |
4956 | ||
503d2be0 AS |
4957 | # Passes both tests. |
4958 | ac_preproc_ok=: | |
4959 | break | |
ba4481b5 | 4960 | fi |
ca81d7a0 | 4961 | |
503d2be0 AS |
4962 | rm -f conftest.err conftest.$ac_ext |
4963 | ||
4964 | done | |
4965 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4966 | rm -f conftest.err conftest.$ac_ext | |
4967 | if $ac_preproc_ok; then | |
4968 | : | |
ba4481b5 | 4969 | else |
19650fd6 AS |
4970 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
4971 | See \`config.log' for more details." >&5 | |
4972 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
4973 | See \`config.log' for more details." >&2;} | |
503d2be0 | 4974 | { (exit 1); exit 1; }; } |
ba4481b5 | 4975 | fi |
503d2be0 AS |
4976 | |
4977 | ac_ext=c | |
4978 | ac_cpp='$CPP $CPPFLAGS' | |
4979 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4980 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4981 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ba4481b5 DL |
4982 | |
4983 | # Find a good install program. We prefer a C program (faster), | |
4984 | # so one script is as good as another. But avoid the broken or | |
4985 | # incompatible versions: | |
4986 | # SysV /etc/install, /usr/sbin/install | |
4987 | # SunOS /usr/etc/install | |
4988 | # IRIX /sbin/install | |
4989 | # AIX /bin/install | |
503d2be0 | 4990 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
c4bb2108 | 4991 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
ba4481b5 DL |
4992 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
4993 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
edfaf76d | 4994 | # OS/2's system install, which has a completely different semantic |
ba4481b5 | 4995 | # ./install, which can be erroneously created by make from ./install.sh. |
ca81d7a0 JD |
4996 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
4997 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } | |
ba4481b5 | 4998 | if test -z "$INSTALL"; then |
503d2be0 AS |
4999 | if test "${ac_cv_path_install+set}" = set; then |
5000 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 5001 | else |
c0d27fcc MR |
5002 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5003 | for as_dir in $PATH | |
5004 | do | |
5005 | IFS=$as_save_IFS | |
5006 | test -z "$as_dir" && as_dir=. | |
5007 | # Account for people who put trailing slashes in PATH elements. | |
5008 | case $as_dir/ in | |
5009 | ./ | .// | /cC/* | \ | |
5010 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
edfaf76d | 5011 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
c0d27fcc MR |
5012 | /usr/ucb/* ) ;; |
5013 | *) | |
5014 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
5015 | # Don't use installbsd from OSF since it installs stuff as root | |
5016 | # by default. | |
5017 | for ac_prog in ginstall scoinst install; do | |
5018 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f053c89f | 5019 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
edfaf76d LK |
5020 | if test $ac_prog = install && |
5021 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
5022 | # AIX install. It has an incompatible calling convention. | |
5023 | : | |
5024 | elif test $ac_prog = install && | |
5025 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
5026 | # program-specific install script used by HP pwplus--don't use. | |
5027 | : | |
5028 | else | |
5029 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
5030 | break 3 | |
5031 | fi | |
5032 | fi | |
ba4481b5 | 5033 | done |
c0d27fcc MR |
5034 | done |
5035 | ;; | |
5036 | esac | |
5037 | done | |
ca81d7a0 | 5038 | IFS=$as_save_IFS |
c0d27fcc | 5039 | |
ba4481b5 DL |
5040 | |
5041 | fi | |
5042 | if test "${ac_cv_path_install+set}" = set; then | |
503d2be0 | 5043 | INSTALL=$ac_cv_path_install |
ba4481b5 | 5044 | else |
ca81d7a0 JD |
5045 | # As a last resort, use the slow shell script. Don't cache a |
5046 | # value for INSTALL within a source directory, because that will | |
ba4481b5 | 5047 | # break other packages using the cache if that directory is |
ca81d7a0 | 5048 | # removed, or if the value is a relative name. |
503d2be0 | 5049 | INSTALL=$ac_install_sh |
ba4481b5 DL |
5050 | fi |
5051 | fi | |
ca81d7a0 JD |
5052 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
5053 | echo "${ECHO_T}$INSTALL" >&6; } | |
ba4481b5 DL |
5054 | |
5055 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
5056 | # It thinks the first close brace ends the variable substitution. | |
5057 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
5058 | ||
503d2be0 | 5059 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
c4bb2108 | 5060 | |
ba4481b5 DL |
5061 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
5062 | ||
c0d27fcc MR |
5063 | if test "x$RANLIB" = x; then |
5064 | if test -n "$ac_tool_prefix"; then | |
5065 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5066 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
ca81d7a0 JD |
5067 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5068 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
c0d27fcc | 5069 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
503d2be0 | 5070 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7397acc4 DL |
5071 | else |
5072 | if test -n "$RANLIB"; then | |
5073 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
5074 | else | |
c0d27fcc MR |
5075 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5076 | for as_dir in $PATH | |
5077 | do | |
5078 | IFS=$as_save_IFS | |
5079 | test -z "$as_dir" && as_dir=. | |
5080 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f053c89f | 5081 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
c0d27fcc MR |
5082 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
5083 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5084 | break 2 | |
5085 | fi | |
5086 | done | |
503d2be0 | 5087 | done |
ca81d7a0 | 5088 | IFS=$as_save_IFS |
503d2be0 | 5089 | |
7397acc4 DL |
5090 | fi |
5091 | fi | |
503d2be0 | 5092 | RANLIB=$ac_cv_prog_RANLIB |
7397acc4 | 5093 | if test -n "$RANLIB"; then |
ca81d7a0 JD |
5094 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
5095 | echo "${ECHO_T}$RANLIB" >&6; } | |
503d2be0 | 5096 | else |
ca81d7a0 JD |
5097 | { echo "$as_me:$LINENO: result: no" >&5 |
5098 | echo "${ECHO_T}no" >&6; } | |
503d2be0 AS |
5099 | fi |
5100 | ||
ca81d7a0 | 5101 | |
503d2be0 AS |
5102 | fi |
5103 | if test -z "$ac_cv_prog_RANLIB"; then | |
5104 | ac_ct_RANLIB=$RANLIB | |
5105 | # Extract the first word of "ranlib", so it can be a program name with args. | |
5106 | set dummy ranlib; ac_word=$2 | |
ca81d7a0 JD |
5107 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5108 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
503d2be0 AS |
5109 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
5110 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5111 | else | |
5112 | if test -n "$ac_ct_RANLIB"; then | |
5113 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
5114 | else | |
c0d27fcc MR |
5115 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5116 | for as_dir in $PATH | |
5117 | do | |
5118 | IFS=$as_save_IFS | |
5119 | test -z "$as_dir" && as_dir=. | |
5120 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f053c89f | 5121 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
c0d27fcc MR |
5122 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
5123 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5124 | break 2 | |
5125 | fi | |
5126 | done | |
503d2be0 | 5127 | done |
ca81d7a0 | 5128 | IFS=$as_save_IFS |
503d2be0 | 5129 | |
503d2be0 AS |
5130 | fi |
5131 | fi | |
5132 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
5133 | if test -n "$ac_ct_RANLIB"; then | |
ca81d7a0 JD |
5134 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
5135 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } | |
503d2be0 | 5136 | else |
ca81d7a0 JD |
5137 | { echo "$as_me:$LINENO: result: no" >&5 |
5138 | echo "${ECHO_T}no" >&6; } | |
503d2be0 AS |
5139 | fi |
5140 | ||
ca81d7a0 JD |
5141 | if test "x$ac_ct_RANLIB" = x; then |
5142 | RANLIB=":" | |
5143 | else | |
5144 | case $cross_compiling:$ac_tool_warned in | |
5145 | yes:) | |
5146 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
5147 | whose name does not start with the host triplet. If you think this | |
5148 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
5149 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
5150 | whose name does not start with the host triplet. If you think this | |
5151 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
5152 | ac_tool_warned=yes ;; | |
5153 | esac | |
5154 | RANLIB=$ac_ct_RANLIB | |
5155 | fi | |
7397acc4 | 5156 | else |
503d2be0 | 5157 | RANLIB="$ac_cv_prog_RANLIB" |
7397acc4 DL |
5158 | fi |
5159 | ||
5160 | fi | |
9e71690e DK |
5161 | # Extract the first word of "install-info", so it can be a program name with args. |
5162 | set dummy install-info; ac_word=$2 | |
ca81d7a0 JD |
5163 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5164 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
9e71690e DK |
5165 | if test "${ac_cv_path_INSTALL_INFO+set}" = set; then |
5166 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5167 | else | |
5168 | case $INSTALL_INFO in | |
5169 | [\\/]* | ?:[\\/]*) | |
5170 | ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. | |
5171 | ;; | |
5172 | *) | |
5173 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5174 | for as_dir in $PATH | |
5175 | do | |
5176 | IFS=$as_save_IFS | |
5177 | test -z "$as_dir" && as_dir=. | |
5178 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f053c89f | 5179 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
9e71690e DK |
5180 | ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" |
5181 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5182 | break 2 | |
5183 | fi | |
5184 | done | |
5185 | done | |
ca81d7a0 | 5186 | IFS=$as_save_IFS |
9e71690e DK |
5187 | |
5188 | ;; | |
5189 | esac | |
5190 | fi | |
5191 | INSTALL_INFO=$ac_cv_path_INSTALL_INFO | |
9e71690e | 5192 | if test -n "$INSTALL_INFO"; then |
ca81d7a0 JD |
5193 | { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5 |
5194 | echo "${ECHO_T}$INSTALL_INFO" >&6; } | |
9e71690e | 5195 | else |
ca81d7a0 JD |
5196 | { echo "$as_me:$LINENO: result: no" >&5 |
5197 | echo "${ECHO_T}no" >&6; } | |
9e71690e DK |
5198 | fi |
5199 | ||
ca81d7a0 | 5200 | |
9e71690e DK |
5201 | # Extract the first word of "install-info", so it can be a program name with args. |
5202 | set dummy install-info; ac_word=$2 | |
ca81d7a0 JD |
5203 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5204 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
9e71690e DK |
5205 | if test "${ac_cv_path_INSTALL_INFO+set}" = set; then |
5206 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5207 | else | |
5208 | case $INSTALL_INFO in | |
5209 | [\\/]* | ?:[\\/]*) | |
5210 | ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. | |
5211 | ;; | |
5212 | *) | |
5213 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5214 | for as_dir in /usr/sbin | |
5215 | do | |
5216 | IFS=$as_save_IFS | |
5217 | test -z "$as_dir" && as_dir=. | |
5218 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f053c89f | 5219 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
9e71690e DK |
5220 | ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" |
5221 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5222 | break 2 | |
5223 | fi | |
5224 | done | |
5225 | done | |
ca81d7a0 | 5226 | IFS=$as_save_IFS |
9e71690e DK |
5227 | |
5228 | ;; | |
5229 | esac | |
5230 | fi | |
5231 | INSTALL_INFO=$ac_cv_path_INSTALL_INFO | |
9e71690e | 5232 | if test -n "$INSTALL_INFO"; then |
ca81d7a0 JD |
5233 | { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5 |
5234 | echo "${ECHO_T}$INSTALL_INFO" >&6; } | |
9e71690e | 5235 | else |
ca81d7a0 JD |
5236 | { echo "$as_me:$LINENO: result: no" >&5 |
5237 | echo "${ECHO_T}no" >&6; } | |
9e71690e DK |
5238 | fi |
5239 | ||
ca81d7a0 | 5240 | |
9e71690e DK |
5241 | # Extract the first word of "install-info", so it can be a program name with args. |
5242 | set dummy install-info; ac_word=$2 | |
ca81d7a0 JD |
5243 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5244 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
9e71690e DK |
5245 | if test "${ac_cv_path_INSTALL_INFO+set}" = set; then |
5246 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5247 | else | |
5248 | case $INSTALL_INFO in | |
5249 | [\\/]* | ?:[\\/]*) | |
5250 | ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. | |
5251 | ;; | |
5252 | *) | |
5253 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5254 | for as_dir in /sbin | |
5255 | do | |
5256 | IFS=$as_save_IFS | |
5257 | test -z "$as_dir" && as_dir=. | |
5258 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f053c89f | 5259 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
9e71690e DK |
5260 | ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" |
5261 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5262 | break 2 | |
5263 | fi | |
5264 | done | |
5265 | done | |
ca81d7a0 | 5266 | IFS=$as_save_IFS |
9e71690e DK |
5267 | |
5268 | test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":" | |
5269 | ;; | |
5270 | esac | |
5271 | fi | |
5272 | INSTALL_INFO=$ac_cv_path_INSTALL_INFO | |
9e71690e | 5273 | if test -n "$INSTALL_INFO"; then |
ca81d7a0 JD |
5274 | { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5 |
5275 | echo "${ECHO_T}$INSTALL_INFO" >&6; } | |
9e71690e | 5276 | else |
ca81d7a0 JD |
5277 | { echo "$as_me:$LINENO: result: no" >&5 |
5278 | echo "${ECHO_T}no" >&6; } | |
9e71690e DK |
5279 | fi |
5280 | ||
ca81d7a0 | 5281 | |
8ae52ca6 RF |
5282 | # Extract the first word of "gzip", so it can be a program name with args. |
5283 | set dummy gzip; ac_word=$2 | |
ca81d7a0 JD |
5284 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5285 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
46e35e9f | 5286 | if test "${ac_cv_path_GZIP_PROG+set}" = set; then |
8ae52ca6 RF |
5287 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5288 | else | |
46e35e9f | 5289 | case $GZIP_PROG in |
8ae52ca6 | 5290 | [\\/]* | ?:[\\/]*) |
46e35e9f | 5291 | ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path. |
8ae52ca6 RF |
5292 | ;; |
5293 | *) | |
5294 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5295 | for as_dir in $PATH | |
5296 | do | |
5297 | IFS=$as_save_IFS | |
5298 | test -z "$as_dir" && as_dir=. | |
5299 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f053c89f | 5300 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
46e35e9f | 5301 | ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext" |
8ae52ca6 RF |
5302 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5303 | break 2 | |
5304 | fi | |
5305 | done | |
5306 | done | |
ca81d7a0 | 5307 | IFS=$as_save_IFS |
8ae52ca6 RF |
5308 | |
5309 | ;; | |
5310 | esac | |
5311 | fi | |
46e35e9f | 5312 | GZIP_PROG=$ac_cv_path_GZIP_PROG |
46e35e9f | 5313 | if test -n "$GZIP_PROG"; then |
ca81d7a0 JD |
5314 | { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5 |
5315 | echo "${ECHO_T}$GZIP_PROG" >&6; } | |
8ae52ca6 | 5316 | else |
ca81d7a0 JD |
5317 | { echo "$as_me:$LINENO: result: no" >&5 |
5318 | echo "${ECHO_T}no" >&6; } | |
8ae52ca6 RF |
5319 | fi |
5320 | ||
ba4481b5 | 5321 | |
c0d27fcc | 5322 | |
ca81d7a0 | 5323 | |
8e967cf7 MR |
5324 | if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x |
5325 | then | |
5326 | ac_link="$ac_link $GCC_LINK_TEST_OPTIONS" | |
5327 | fi | |
5328 | ||
5329 | if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x | |
5330 | then | |
5331 | ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS" | |
5332 | fi | |
5333 | ||
c0d27fcc | 5334 | |
fe239f0f | 5335 | late_LDFLAGS=$LDFLAGS |
4af002d6 | 5336 | if test "$GCC" = yes; then |
fe239f0f AS |
5337 | LDFLAGS="$LDFLAGS -Wl,-znocombreloc" |
5338 | else | |
5339 | LDFLAGS="$LDFLAGS -znocombreloc" | |
5340 | fi | |
5341 | ||
ca81d7a0 JD |
5342 | { echo "$as_me:$LINENO: checking for -znocombreloc" >&5 |
5343 | echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; } | |
fe239f0f AS |
5344 | cat >conftest.$ac_ext <<_ACEOF |
5345 | main(){return 0;} | |
5346 | _ACEOF | |
5347 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
5348 | if { (ac_try="$ac_link" |
5349 | case "(($ac_try" in | |
5350 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5351 | *) ac_try_echo=$ac_try;; | |
5352 | esac | |
5353 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5354 | (eval "$ac_link") 2>conftest.er1 | |
fe239f0f | 5355 | ac_status=$? |
edfaf76d LK |
5356 | grep -v '^ *+' conftest.er1 >conftest.err |
5357 | rm -f conftest.er1 | |
5358 | cat conftest.err >&5 | |
fe239f0f | 5359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
5360 | (exit $ac_status); } && { |
5361 | test -z "$ac_c_werror_flag" || | |
5362 | test ! -s conftest.err | |
5363 | } && test -s conftest$ac_exeext && | |
5364 | $as_test_x conftest$ac_exeext; then | |
ca81d7a0 JD |
5365 | { echo "$as_me:$LINENO: result: yes" >&5 |
5366 | echo "${ECHO_T}yes" >&6; } | |
fe239f0f AS |
5367 | else |
5368 | echo "$as_me: failed program was:" >&5 | |
5369 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5370 | ||
ca81d7a0 JD |
5371 | LDFLAGS=$late_LDFLAGS |
5372 | { echo "$as_me:$LINENO: result: no" >&5 | |
5373 | echo "${ECHO_T}no" >&6; } | |
fe239f0f | 5374 | fi |
ca81d7a0 | 5375 | |
f053c89f | 5376 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 5377 | conftest$ac_exeext conftest.$ac_ext |
fe239f0f | 5378 | |
3b33a005 DL |
5379 | #### Extract some information from the operating system and machine files. |
5380 | ||
c0d27fcc | 5381 | { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out |
3b33a005 | 5382 | - which libraries the lib-src programs will want, and |
503d2be0 AS |
5383 | - whether the GNU malloc routines are usable..." >&5 |
5384 | echo "$as_me: checking the machine- and system-dependent files to find out | |
3b33a005 | 5385 | - which libraries the lib-src programs will want, and |
503d2be0 | 5386 | - whether the GNU malloc routines are usable..." >&6;} |
3b33a005 DL |
5387 | |
5388 | ### First figure out CFLAGS (which we use for running the compiler here) | |
5389 | ### and REAL_CFLAGS (which we use for real compilation). | |
5390 | ### The two are the same except on a few systems, where they are made | |
5391 | ### different to work around various lossages. For example, | |
5392 | ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g | |
5393 | ### as implying static linking. | |
5394 | ||
5395 | ### If the CFLAGS env var is specified, we use that value | |
5396 | ### instead of the default. | |
5397 | ||
5398 | ### It's not important that this name contain the PID; you can't run | |
5399 | ### two configures in the same directory and have anything work | |
5400 | ### anyway. | |
5401 | tempcname="conftest.c" | |
5402 | ||
5403 | echo ' | |
5404 | #include "'${srcdir}'/src/'${opsysfile}'" | |
5405 | #include "'${srcdir}'/src/'${machfile}'" | |
5406 | #ifndef LIBS_MACHINE | |
5407 | #define LIBS_MACHINE | |
5408 | #endif | |
5409 | #ifndef LIBS_SYSTEM | |
5410 | #define LIBS_SYSTEM | |
5411 | #endif | |
5412 | #ifndef C_SWITCH_SYSTEM | |
5413 | #define C_SWITCH_SYSTEM | |
5414 | #endif | |
5415 | #ifndef C_SWITCH_MACHINE | |
5416 | #define C_SWITCH_MACHINE | |
5417 | #endif | |
5418 | configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM | |
5419 | configure___ c_switch_system=C_SWITCH_SYSTEM | |
5420 | configure___ c_switch_machine=C_SWITCH_MACHINE | |
5421 | ||
5422 | #ifndef LIB_X11_LIB | |
5423 | #define LIB_X11_LIB -lX11 | |
5424 | #endif | |
5425 | ||
5426 | #ifndef LIBX11_MACHINE | |
5427 | #define LIBX11_MACHINE | |
5428 | #endif | |
5429 | ||
5430 | #ifndef LIBX11_SYSTEM | |
5431 | #define LIBX11_SYSTEM | |
5432 | #endif | |
5433 | configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM | |
5434 | ||
5435 | #ifdef UNEXEC | |
5436 | configure___ unexec=UNEXEC | |
5437 | #else | |
5438 | configure___ unexec=unexec.o | |
5439 | #endif | |
5440 | ||
5441 | #ifdef SYSTEM_MALLOC | |
5442 | configure___ system_malloc=yes | |
5443 | #else | |
5444 | configure___ system_malloc=no | |
5445 | #endif | |
5446 | ||
ef9e4345 GM |
5447 | #ifdef USE_MMAP_FOR_BUFFERS |
5448 | configure___ use_mmap_for_buffers=yes | |
73b77ee5 | 5449 | #else |
ef9e4345 | 5450 | configure___ use_mmap_for_buffers=no |
73b77ee5 GM |
5451 | #endif |
5452 | ||
3b33a005 DL |
5453 | #ifndef C_DEBUG_SWITCH |
5454 | #define C_DEBUG_SWITCH -g | |
5455 | #endif | |
5456 | ||
5457 | #ifndef C_OPTIMIZE_SWITCH | |
5458 | #ifdef __GNUC__ | |
5459 | #define C_OPTIMIZE_SWITCH -O2 | |
5460 | #else | |
5461 | #define C_OPTIMIZE_SWITCH -O | |
5462 | #endif | |
5463 | #endif | |
5464 | ||
01abe918 CY |
5465 | #ifndef C_WARNINGS_SWITCH |
5466 | #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH} | |
5467 | #endif | |
5468 | ||
3b33a005 DL |
5469 | #ifndef LD_SWITCH_MACHINE |
5470 | #define LD_SWITCH_MACHINE | |
5471 | #endif | |
5472 | ||
5473 | #ifndef LD_SWITCH_SYSTEM | |
5474 | #define LD_SWITCH_SYSTEM | |
5475 | #endif | |
5476 | ||
5477 | #ifndef LD_SWITCH_X_SITE_AUX | |
5478 | #define LD_SWITCH_X_SITE_AUX | |
503d2be0 | 5479 | #endif |
3b33a005 DL |
5480 | |
5481 | configure___ ld_switch_system=LD_SWITCH_SYSTEM | |
5482 | configure___ ld_switch_machine=LD_SWITCH_MACHINE | |
5483 | ||
5484 | #ifdef THIS_IS_CONFIGURE | |
5485 | ||
5486 | /* Get the CFLAGS for tests in configure. */ | |
5487 | #ifdef __GNUC__ | |
5488 | configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}' | |
5489 | #else | |
5490 | configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}' | |
5491 | #endif | |
5492 | ||
5493 | #else /* not THIS_IS_CONFIGURE */ | |
5494 | ||
5495 | /* Get the CFLAGS for real compilation. */ | |
5496 | #ifdef __GNUC__ | |
01abe918 | 5497 | configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}' |
3b33a005 DL |
5498 | #else |
5499 | configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}' | |
5500 | #endif | |
5501 | ||
5502 | #endif /* not THIS_IS_CONFIGURE */ | |
5503 | ' > ${tempcname} | |
5504 | ||
5505 | # The value of CPP is a quoted variable reference, so we need to do this | |
5506 | # to get its actual value... | |
5507 | CPP=`eval "echo $CPP"` | |
5508 | eval `${CPP} -Isrc ${tempcname} \ | |
5509 | | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'` | |
5510 | if test "x$SPECIFIED_CFLAGS" = x; then | |
5511 | eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \ | |
5512 | | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'` | |
5513 | else | |
5514 | REAL_CFLAGS="$CFLAGS" | |
5515 | fi | |
5516 | rm ${tempcname} | |
5517 | ||
5518 | ac_link="$ac_link $ld_switch_machine $ld_switch_system" | |
5519 | ||
5520 | ### Make sure subsequent tests use flags consistent with the build flags. | |
5521 | ||
5522 | if test x"${OVERRIDE_CPPFLAGS}" != x; then | |
5523 | CPPFLAGS="${OVERRIDE_CPPFLAGS}" | |
5524 | else | |
5525 | CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS" | |
5526 | fi | |
5527 | ||
6bae0ccf DL |
5528 | |
5529 | ||
ca81d7a0 | 5530 | # Check whether --enable-largefile was given. |
f4988be7 | 5531 | if test "${enable_largefile+set}" = set; then |
ca81d7a0 JD |
5532 | enableval=$enable_largefile; |
5533 | fi | |
f4988be7 | 5534 | |
503d2be0 | 5535 | if test "$enable_largefile" != no; then |
f4988be7 | 5536 | |
ca81d7a0 JD |
5537 | { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 |
5538 | echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; } | |
503d2be0 AS |
5539 | if test "${ac_cv_sys_largefile_CC+set}" = set; then |
5540 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 5541 | else |
f4988be7 | 5542 | ac_cv_sys_largefile_CC=no |
503d2be0 AS |
5543 | if test "$GCC" != yes; then |
5544 | ac_save_CC=$CC | |
5545 | while :; do | |
ca81d7a0 JD |
5546 | # IRIX 6.2 and later do not support large files by default, |
5547 | # so use the C compiler's -n32 option if that helps. | |
edfaf76d | 5548 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
5549 | /* confdefs.h. */ |
5550 | _ACEOF | |
5551 | cat confdefs.h >>conftest.$ac_ext | |
5552 | cat >>conftest.$ac_ext <<_ACEOF | |
5553 | /* end confdefs.h. */ | |
f4988be7 | 5554 | #include <sys/types.h> |
503d2be0 AS |
5555 | /* Check that off_t can represent 2**63 - 1 correctly. |
5556 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
5557 | since some C++ compilers masquerading as C compilers | |
5558 | incorrectly reject 9223372036854775807. */ | |
5559 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
5560 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
5561 | && LARGE_OFF_T % 2147483647 == 1) | |
5562 | ? 1 : -1]; | |
5563 | int | |
5564 | main () | |
5565 | { | |
f4988be7 | 5566 | |
503d2be0 AS |
5567 | ; |
5568 | return 0; | |
5569 | } | |
5570 | _ACEOF | |
ca81d7a0 JD |
5571 | rm -f conftest.$ac_objext |
5572 | if { (ac_try="$ac_compile" | |
5573 | case "(($ac_try" in | |
5574 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5575 | *) ac_try_echo=$ac_try;; | |
5576 | esac | |
5577 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5578 | (eval "$ac_compile") 2>conftest.er1 | |
503d2be0 | 5579 | ac_status=$? |
edfaf76d LK |
5580 | grep -v '^ *+' conftest.er1 >conftest.err |
5581 | rm -f conftest.er1 | |
5582 | cat conftest.err >&5 | |
c0d27fcc | 5583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
5584 | (exit $ac_status); } && { |
5585 | test -z "$ac_c_werror_flag" || | |
5586 | test ! -s conftest.err | |
5587 | } && test -s conftest.$ac_objext; then | |
503d2be0 | 5588 | break |
b192d653 | 5589 | else |
503d2be0 | 5590 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
5591 | sed 's/^/| /' conftest.$ac_ext >&5 |
5592 | ||
ca81d7a0 | 5593 | |
503d2be0 | 5594 | fi |
ca81d7a0 JD |
5595 | |
5596 | rm -f core conftest.err conftest.$ac_objext | |
5597 | CC="$CC -n32" | |
5598 | rm -f conftest.$ac_objext | |
5599 | if { (ac_try="$ac_compile" | |
5600 | case "(($ac_try" in | |
5601 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5602 | *) ac_try_echo=$ac_try;; | |
5603 | esac | |
5604 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5605 | (eval "$ac_compile") 2>conftest.er1 | |
503d2be0 | 5606 | ac_status=$? |
edfaf76d LK |
5607 | grep -v '^ *+' conftest.er1 >conftest.err |
5608 | rm -f conftest.er1 | |
5609 | cat conftest.err >&5 | |
c0d27fcc | 5610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
5611 | (exit $ac_status); } && { |
5612 | test -z "$ac_c_werror_flag" || | |
5613 | test ! -s conftest.err | |
5614 | } && test -s conftest.$ac_objext; then | |
503d2be0 AS |
5615 | ac_cv_sys_largefile_CC=' -n32'; break |
5616 | else | |
5617 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
5618 | sed 's/^/| /' conftest.$ac_ext >&5 |
5619 | ||
ca81d7a0 | 5620 | |
503d2be0 | 5621 | fi |
ca81d7a0 JD |
5622 | |
5623 | rm -f core conftest.err conftest.$ac_objext | |
edfaf76d | 5624 | break |
503d2be0 AS |
5625 | done |
5626 | CC=$ac_save_CC | |
5627 | rm -f conftest.$ac_ext | |
5628 | fi | |
b192d653 | 5629 | fi |
ca81d7a0 JD |
5630 | { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 |
5631 | echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; } | |
503d2be0 AS |
5632 | if test "$ac_cv_sys_largefile_CC" != no; then |
5633 | CC=$CC$ac_cv_sys_largefile_CC | |
5634 | fi | |
b192d653 | 5635 | |
ca81d7a0 JD |
5636 | { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
5637 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; } | |
503d2be0 AS |
5638 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then |
5639 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 5640 | else |
503d2be0 | 5641 | while :; do |
503d2be0 | 5642 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
5643 | /* confdefs.h. */ |
5644 | _ACEOF | |
5645 | cat confdefs.h >>conftest.$ac_ext | |
5646 | cat >>conftest.$ac_ext <<_ACEOF | |
5647 | /* end confdefs.h. */ | |
f4988be7 | 5648 | #include <sys/types.h> |
503d2be0 AS |
5649 | /* Check that off_t can represent 2**63 - 1 correctly. |
5650 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
5651 | since some C++ compilers masquerading as C compilers | |
5652 | incorrectly reject 9223372036854775807. */ | |
5653 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
5654 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
5655 | && LARGE_OFF_T % 2147483647 == 1) | |
5656 | ? 1 : -1]; | |
5657 | int | |
5658 | main () | |
5659 | { | |
f4988be7 | 5660 | |
503d2be0 AS |
5661 | ; |
5662 | return 0; | |
5663 | } | |
5664 | _ACEOF | |
5665 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
5666 | if { (ac_try="$ac_compile" |
5667 | case "(($ac_try" in | |
5668 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5669 | *) ac_try_echo=$ac_try;; | |
5670 | esac | |
5671 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5672 | (eval "$ac_compile") 2>conftest.er1 | |
503d2be0 | 5673 | ac_status=$? |
edfaf76d LK |
5674 | grep -v '^ *+' conftest.er1 >conftest.err |
5675 | rm -f conftest.er1 | |
5676 | cat conftest.err >&5 | |
c0d27fcc | 5677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
5678 | (exit $ac_status); } && { |
5679 | test -z "$ac_c_werror_flag" || | |
5680 | test ! -s conftest.err | |
5681 | } && test -s conftest.$ac_objext; then | |
5682 | ac_cv_sys_file_offset_bits=no; break | |
f4988be7 | 5683 | else |
503d2be0 | 5684 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
5685 | sed 's/^/| /' conftest.$ac_ext >&5 |
5686 | ||
ca81d7a0 | 5687 | |
503d2be0 | 5688 | fi |
ca81d7a0 JD |
5689 | |
5690 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
503d2be0 | 5691 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
5692 | /* confdefs.h. */ |
5693 | _ACEOF | |
5694 | cat confdefs.h >>conftest.$ac_ext | |
5695 | cat >>conftest.$ac_ext <<_ACEOF | |
5696 | /* end confdefs.h. */ | |
f4988be7 GM |
5697 | #define _FILE_OFFSET_BITS 64 |
5698 | #include <sys/types.h> | |
503d2be0 AS |
5699 | /* Check that off_t can represent 2**63 - 1 correctly. |
5700 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
5701 | since some C++ compilers masquerading as C compilers | |
5702 | incorrectly reject 9223372036854775807. */ | |
5703 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
5704 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
5705 | && LARGE_OFF_T % 2147483647 == 1) | |
5706 | ? 1 : -1]; | |
5707 | int | |
5708 | main () | |
5709 | { | |
5710 | ||
5711 | ; | |
5712 | return 0; | |
5713 | } | |
5714 | _ACEOF | |
5715 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
5716 | if { (ac_try="$ac_compile" |
5717 | case "(($ac_try" in | |
5718 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5719 | *) ac_try_echo=$ac_try;; | |
5720 | esac | |
5721 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5722 | (eval "$ac_compile") 2>conftest.er1 | |
503d2be0 | 5723 | ac_status=$? |
edfaf76d LK |
5724 | grep -v '^ *+' conftest.er1 >conftest.err |
5725 | rm -f conftest.er1 | |
5726 | cat conftest.err >&5 | |
c0d27fcc | 5727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
5728 | (exit $ac_status); } && { |
5729 | test -z "$ac_c_werror_flag" || | |
5730 | test ! -s conftest.err | |
5731 | } && test -s conftest.$ac_objext; then | |
503d2be0 AS |
5732 | ac_cv_sys_file_offset_bits=64; break |
5733 | else | |
5734 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
5735 | sed 's/^/| /' conftest.$ac_ext >&5 |
5736 | ||
ca81d7a0 | 5737 | |
503d2be0 | 5738 | fi |
ca81d7a0 JD |
5739 | |
5740 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f053c89f | 5741 | ac_cv_sys_file_offset_bits=unknown |
503d2be0 AS |
5742 | break |
5743 | done | |
ba4481b5 | 5744 | fi |
ca81d7a0 JD |
5745 | { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 |
5746 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; } | |
f053c89f CY |
5747 | case $ac_cv_sys_file_offset_bits in #( |
5748 | no | unknown) ;; | |
5749 | *) | |
c0d27fcc | 5750 | cat >>confdefs.h <<_ACEOF |
f4988be7 | 5751 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
c0d27fcc | 5752 | _ACEOF |
f053c89f CY |
5753 | ;; |
5754 | esac | |
503d2be0 | 5755 | rm -f conftest* |
f053c89f CY |
5756 | if test $ac_cv_sys_file_offset_bits = unknown; then |
5757 | { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | |
ca81d7a0 | 5758 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; } |
503d2be0 AS |
5759 | if test "${ac_cv_sys_large_files+set}" = set; then |
5760 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 5761 | else |
503d2be0 | 5762 | while :; do |
503d2be0 | 5763 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
5764 | /* confdefs.h. */ |
5765 | _ACEOF | |
5766 | cat confdefs.h >>conftest.$ac_ext | |
5767 | cat >>conftest.$ac_ext <<_ACEOF | |
5768 | /* end confdefs.h. */ | |
503d2be0 AS |
5769 | #include <sys/types.h> |
5770 | /* Check that off_t can represent 2**63 - 1 correctly. | |
5771 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
5772 | since some C++ compilers masquerading as C compilers | |
5773 | incorrectly reject 9223372036854775807. */ | |
5774 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
5775 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
5776 | && LARGE_OFF_T % 2147483647 == 1) | |
5777 | ? 1 : -1]; | |
5778 | int | |
5779 | main () | |
5780 | { | |
ba4481b5 | 5781 | |
503d2be0 AS |
5782 | ; |
5783 | return 0; | |
5784 | } | |
5785 | _ACEOF | |
5786 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
5787 | if { (ac_try="$ac_compile" |
5788 | case "(($ac_try" in | |
5789 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5790 | *) ac_try_echo=$ac_try;; | |
5791 | esac | |
5792 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5793 | (eval "$ac_compile") 2>conftest.er1 | |
503d2be0 | 5794 | ac_status=$? |
edfaf76d LK |
5795 | grep -v '^ *+' conftest.er1 >conftest.err |
5796 | rm -f conftest.er1 | |
5797 | cat conftest.err >&5 | |
c0d27fcc | 5798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
5799 | (exit $ac_status); } && { |
5800 | test -z "$ac_c_werror_flag" || | |
5801 | test ! -s conftest.err | |
5802 | } && test -s conftest.$ac_objext; then | |
5803 | ac_cv_sys_large_files=no; break | |
ba4481b5 | 5804 | else |
503d2be0 | 5805 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
5806 | sed 's/^/| /' conftest.$ac_ext >&5 |
5807 | ||
ca81d7a0 | 5808 | |
503d2be0 | 5809 | fi |
ca81d7a0 JD |
5810 | |
5811 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
503d2be0 | 5812 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
5813 | /* confdefs.h. */ |
5814 | _ACEOF | |
5815 | cat confdefs.h >>conftest.$ac_ext | |
5816 | cat >>conftest.$ac_ext <<_ACEOF | |
5817 | /* end confdefs.h. */ | |
f4988be7 | 5818 | #define _LARGE_FILES 1 |
503d2be0 AS |
5819 | #include <sys/types.h> |
5820 | /* Check that off_t can represent 2**63 - 1 correctly. | |
5821 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
5822 | since some C++ compilers masquerading as C compilers | |
5823 | incorrectly reject 9223372036854775807. */ | |
5824 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
5825 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
5826 | && LARGE_OFF_T % 2147483647 == 1) | |
5827 | ? 1 : -1]; | |
5828 | int | |
5829 | main () | |
5830 | { | |
f4988be7 | 5831 | |
503d2be0 AS |
5832 | ; |
5833 | return 0; | |
5834 | } | |
5835 | _ACEOF | |
5836 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
5837 | if { (ac_try="$ac_compile" |
5838 | case "(($ac_try" in | |
5839 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5840 | *) ac_try_echo=$ac_try;; | |
5841 | esac | |
5842 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5843 | (eval "$ac_compile") 2>conftest.er1 | |
503d2be0 | 5844 | ac_status=$? |
edfaf76d LK |
5845 | grep -v '^ *+' conftest.er1 >conftest.err |
5846 | rm -f conftest.er1 | |
5847 | cat conftest.err >&5 | |
c0d27fcc | 5848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
5849 | (exit $ac_status); } && { |
5850 | test -z "$ac_c_werror_flag" || | |
5851 | test ! -s conftest.err | |
5852 | } && test -s conftest.$ac_objext; then | |
503d2be0 AS |
5853 | ac_cv_sys_large_files=1; break |
5854 | else | |
5855 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
5856 | sed 's/^/| /' conftest.$ac_ext >&5 |
5857 | ||
ca81d7a0 | 5858 | |
503d2be0 | 5859 | fi |
ca81d7a0 JD |
5860 | |
5861 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f053c89f | 5862 | ac_cv_sys_large_files=unknown |
503d2be0 AS |
5863 | break |
5864 | done | |
ba4481b5 | 5865 | fi |
ca81d7a0 JD |
5866 | { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 |
5867 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6; } | |
f053c89f CY |
5868 | case $ac_cv_sys_large_files in #( |
5869 | no | unknown) ;; | |
5870 | *) | |
c0d27fcc | 5871 | cat >>confdefs.h <<_ACEOF |
f4988be7 | 5872 | #define _LARGE_FILES $ac_cv_sys_large_files |
c0d27fcc | 5873 | _ACEOF |
f053c89f CY |
5874 | ;; |
5875 | esac | |
503d2be0 | 5876 | rm -f conftest* |
f053c89f | 5877 | fi |
503d2be0 | 5878 | fi |
ba4481b5 | 5879 | |
c0d27fcc | 5880 | |
439f58ee | 5881 | |
bc5d9888 CY |
5882 | ### The standard library on x86-64 GNU/Linux distributions can |
5883 | ### be located in either /usr/lib64 or /usr/lib. | |
5884 | case "${canonical}" in | |
5885 | x86_64-*-linux-gnu* ) | |
5886 | if test -d /usr/lib64; then | |
5887 | ||
5888 | cat >>confdefs.h <<\_ACEOF | |
5889 | #define HAVE_X86_64_LIB64_DIR 1 | |
5890 | _ACEOF | |
5891 | ||
5892 | fi | |
5893 | esac | |
5894 | ||
439f58ee JD |
5895 | |
5896 | ||
5897 | ||
2c9dccc9 PJ |
5898 | if test "${with_sound}" != "no"; then |
5899 | # Sound support for GNU/Linux and the free BSDs. | |
ca81d7a0 JD |
5900 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
5901 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } | |
c0d27fcc MR |
5902 | if test "${ac_cv_header_stdc+set}" = set; then |
5903 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5904 | else | |
5905 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
5906 | /* confdefs.h. */ |
5907 | _ACEOF | |
5908 | cat confdefs.h >>conftest.$ac_ext | |
5909 | cat >>conftest.$ac_ext <<_ACEOF | |
5910 | /* end confdefs.h. */ | |
c0d27fcc MR |
5911 | #include <stdlib.h> |
5912 | #include <stdarg.h> | |
5913 | #include <string.h> | |
5914 | #include <float.h> | |
98418dba | 5915 | |
19650fd6 AS |
5916 | int |
5917 | main () | |
5918 | { | |
5919 | ||
5920 | ; | |
5921 | return 0; | |
5922 | } | |
c0d27fcc | 5923 | _ACEOF |
19650fd6 | 5924 | rm -f conftest.$ac_objext |
ca81d7a0 JD |
5925 | if { (ac_try="$ac_compile" |
5926 | case "(($ac_try" in | |
5927 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5928 | *) ac_try_echo=$ac_try;; | |
5929 | esac | |
5930 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5931 | (eval "$ac_compile") 2>conftest.er1 | |
cd958eb3 | 5932 | ac_status=$? |
edfaf76d LK |
5933 | grep -v '^ *+' conftest.er1 >conftest.err |
5934 | rm -f conftest.er1 | |
5935 | cat conftest.err >&5 | |
cd958eb3 | 5936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
5937 | (exit $ac_status); } && { |
5938 | test -z "$ac_c_werror_flag" || | |
5939 | test ! -s conftest.err | |
5940 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
5941 | ac_cv_header_stdc=yes |
5942 | else | |
5943 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
5944 | sed 's/^/| /' conftest.$ac_ext >&5 |
5945 | ||
ca81d7a0 | 5946 | ac_cv_header_stdc=no |
c0d27fcc | 5947 | fi |
ca81d7a0 JD |
5948 | |
5949 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
c0d27fcc MR |
5950 | |
5951 | if test $ac_cv_header_stdc = yes; then | |
5952 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5953 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
5954 | /* confdefs.h. */ |
5955 | _ACEOF | |
5956 | cat confdefs.h >>conftest.$ac_ext | |
5957 | cat >>conftest.$ac_ext <<_ACEOF | |
5958 | /* end confdefs.h. */ | |
c0d27fcc MR |
5959 | #include <string.h> |
5960 | ||
5961 | _ACEOF | |
5962 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6bae0ccf | 5963 | $EGREP "memchr" >/dev/null 2>&1; then |
c0d27fcc MR |
5964 | : |
5965 | else | |
5966 | ac_cv_header_stdc=no | |
5967 | fi | |
5968 | rm -f conftest* | |
5969 | ||
5970 | fi | |
5971 | ||
5972 | if test $ac_cv_header_stdc = yes; then | |
5973 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5974 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
5975 | /* confdefs.h. */ |
5976 | _ACEOF | |
5977 | cat confdefs.h >>conftest.$ac_ext | |
5978 | cat >>conftest.$ac_ext <<_ACEOF | |
5979 | /* end confdefs.h. */ | |
c0d27fcc MR |
5980 | #include <stdlib.h> |
5981 | ||
5982 | _ACEOF | |
5983 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6bae0ccf | 5984 | $EGREP "free" >/dev/null 2>&1; then |
c0d27fcc MR |
5985 | : |
5986 | else | |
5987 | ac_cv_header_stdc=no | |
5988 | fi | |
5989 | rm -f conftest* | |
5990 | ||
5991 | fi | |
5992 | ||
5993 | if test $ac_cv_header_stdc = yes; then | |
5994 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5995 | if test "$cross_compiling" = yes; then | |
5996 | : | |
5997 | else | |
5998 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
5999 | /* confdefs.h. */ |
6000 | _ACEOF | |
6001 | cat confdefs.h >>conftest.$ac_ext | |
6002 | cat >>conftest.$ac_ext <<_ACEOF | |
6003 | /* end confdefs.h. */ | |
c0d27fcc | 6004 | #include <ctype.h> |
ca81d7a0 | 6005 | #include <stdlib.h> |
c0d27fcc MR |
6006 | #if ((' ' & 0x0FF) == 0x020) |
6007 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
6008 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
6009 | #else | |
19650fd6 | 6010 | # define ISLOWER(c) \ |
edfaf76d LK |
6011 | (('a' <= (c) && (c) <= 'i') \ |
6012 | || ('j' <= (c) && (c) <= 'r') \ | |
6013 | || ('s' <= (c) && (c) <= 'z')) | |
c0d27fcc MR |
6014 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
6015 | #endif | |
6016 | ||
6017 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
6018 | int | |
6019 | main () | |
6020 | { | |
6021 | int i; | |
6022 | for (i = 0; i < 256; i++) | |
6023 | if (XOR (islower (i), ISLOWER (i)) | |
edfaf76d | 6024 | || toupper (i) != TOUPPER (i)) |
ca81d7a0 JD |
6025 | return 2; |
6026 | return 0; | |
c0d27fcc MR |
6027 | } |
6028 | _ACEOF | |
6029 | rm -f conftest$ac_exeext | |
ca81d7a0 JD |
6030 | if { (ac_try="$ac_link" |
6031 | case "(($ac_try" in | |
6032 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6033 | *) ac_try_echo=$ac_try;; | |
6034 | esac | |
6035 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6036 | (eval "$ac_link") 2>&5 | |
c0d27fcc MR |
6037 | ac_status=$? |
6038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6039 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
ca81d7a0 JD |
6040 | { (case "(($ac_try" in |
6041 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6042 | *) ac_try_echo=$ac_try;; | |
6043 | esac | |
6044 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6045 | (eval "$ac_try") 2>&5 | |
c0d27fcc MR |
6046 | ac_status=$? |
6047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6048 | (exit $ac_status); }; }; then | |
6049 | : | |
6050 | else | |
6051 | echo "$as_me: program exited with status $ac_status" >&5 | |
6052 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
6053 | sed 's/^/| /' conftest.$ac_ext >&5 |
6054 | ||
c0d27fcc MR |
6055 | ( exit $ac_status ) |
6056 | ac_cv_header_stdc=no | |
6057 | fi | |
ca81d7a0 | 6058 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
c0d27fcc | 6059 | fi |
ca81d7a0 JD |
6060 | |
6061 | ||
c0d27fcc MR |
6062 | fi |
6063 | fi | |
ca81d7a0 JD |
6064 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
6065 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } | |
c0d27fcc MR |
6066 | if test $ac_cv_header_stdc = yes; then |
6067 | ||
6068 | cat >>confdefs.h <<\_ACEOF | |
6069 | #define STDC_HEADERS 1 | |
6070 | _ACEOF | |
6071 | ||
6072 | fi | |
6073 | ||
6074 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
6075 | ||
6076 | ||
6077 | ||
6078 | ||
6079 | ||
6080 | ||
6081 | ||
6082 | ||
6083 | ||
6084 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
edfaf76d | 6085 | inttypes.h stdint.h unistd.h |
98418dba CW |
6086 | do |
6087 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
ca81d7a0 JD |
6088 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6089 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
6090 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 6091 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
f4988be7 | 6092 | else |
925c2f3f | 6093 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
6094 | /* confdefs.h. */ |
6095 | _ACEOF | |
6096 | cat confdefs.h >>conftest.$ac_ext | |
6097 | cat >>conftest.$ac_ext <<_ACEOF | |
6098 | /* end confdefs.h. */ | |
c0d27fcc MR |
6099 | $ac_includes_default |
6100 | ||
6101 | #include <$ac_header> | |
6102 | _ACEOF | |
6103 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
6104 | if { (ac_try="$ac_compile" |
6105 | case "(($ac_try" in | |
6106 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6107 | *) ac_try_echo=$ac_try;; | |
6108 | esac | |
6109 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6110 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 6111 | ac_status=$? |
edfaf76d LK |
6112 | grep -v '^ *+' conftest.er1 >conftest.err |
6113 | rm -f conftest.er1 | |
6114 | cat conftest.err >&5 | |
c0d27fcc | 6115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
6116 | (exit $ac_status); } && { |
6117 | test -z "$ac_c_werror_flag" || | |
6118 | test ! -s conftest.err | |
6119 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
6120 | eval "$as_ac_Header=yes" |
6121 | else | |
6122 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
6123 | sed 's/^/| /' conftest.$ac_ext >&5 |
6124 | ||
ca81d7a0 | 6125 | eval "$as_ac_Header=no" |
c0d27fcc | 6126 | fi |
ca81d7a0 JD |
6127 | |
6128 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
c0d27fcc | 6129 | fi |
ca81d7a0 JD |
6130 | ac_res=`eval echo '${'$as_ac_Header'}'` |
6131 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6132 | echo "${ECHO_T}$ac_res" >&6; } | |
c0d27fcc MR |
6133 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
6134 | cat >>confdefs.h <<_ACEOF | |
6135 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6136 | _ACEOF | |
6137 | ||
6138 | fi | |
6139 | ||
6140 | done | |
6141 | ||
6142 | ||
6143 | ||
6144 | ||
6145 | ||
6146 | for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h | |
6147 | do | |
6148 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
ca81d7a0 JD |
6149 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
6150 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6151 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
6152 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
c0d27fcc MR |
6153 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6154 | fi | |
ca81d7a0 JD |
6155 | ac_res=`eval echo '${'$as_ac_Header'}'` |
6156 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6157 | echo "${ECHO_T}$ac_res" >&6; } | |
c0d27fcc MR |
6158 | else |
6159 | # Is the header compilable? | |
ca81d7a0 JD |
6160 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
6161 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
c0d27fcc | 6162 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
6163 | /* confdefs.h. */ |
6164 | _ACEOF | |
6165 | cat confdefs.h >>conftest.$ac_ext | |
6166 | cat >>conftest.$ac_ext <<_ACEOF | |
6167 | /* end confdefs.h. */ | |
c0d27fcc | 6168 | $ac_includes_default |
98418dba | 6169 | #include <$ac_header> |
503d2be0 | 6170 | _ACEOF |
c0d27fcc | 6171 | rm -f conftest.$ac_objext |
ca81d7a0 JD |
6172 | if { (ac_try="$ac_compile" |
6173 | case "(($ac_try" in | |
6174 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6175 | *) ac_try_echo=$ac_try;; | |
6176 | esac | |
6177 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6178 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 6179 | ac_status=$? |
edfaf76d LK |
6180 | grep -v '^ *+' conftest.er1 >conftest.err |
6181 | rm -f conftest.er1 | |
6182 | cat conftest.err >&5 | |
c0d27fcc | 6183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
6184 | (exit $ac_status); } && { |
6185 | test -z "$ac_c_werror_flag" || | |
6186 | test ! -s conftest.err | |
6187 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
6188 | ac_header_compiler=yes |
6189 | else | |
6190 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
6191 | sed 's/^/| /' conftest.$ac_ext >&5 |
6192 | ||
ca81d7a0 | 6193 | ac_header_compiler=no |
c0d27fcc | 6194 | fi |
ca81d7a0 JD |
6195 | |
6196 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6197 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6198 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
6199 | |
6200 | # Is the header present? | |
ca81d7a0 JD |
6201 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
6202 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
c0d27fcc | 6203 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
6204 | /* confdefs.h. */ |
6205 | _ACEOF | |
6206 | cat confdefs.h >>conftest.$ac_ext | |
6207 | cat >>conftest.$ac_ext <<_ACEOF | |
6208 | /* end confdefs.h. */ | |
c0d27fcc MR |
6209 | #include <$ac_header> |
6210 | _ACEOF | |
ca81d7a0 JD |
6211 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
6212 | case "(($ac_try" in | |
6213 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6214 | *) ac_try_echo=$ac_try;; | |
6215 | esac | |
6216 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6217 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 6218 | ac_status=$? |
6bae0ccf | 6219 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
6220 | rm -f conftest.er1 |
6221 | cat conftest.err >&5 | |
c0d27fcc | 6222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
6223 | (exit $ac_status); } >/dev/null && { |
6224 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
6225 | test ! -s conftest.err | |
6226 | }; then | |
c0d27fcc | 6227 | ac_header_preproc=yes |
f4988be7 | 6228 | else |
503d2be0 | 6229 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
6230 | sed 's/^/| /' conftest.$ac_ext >&5 |
6231 | ||
c0d27fcc | 6232 | ac_header_preproc=no |
f4988be7 | 6233 | fi |
ca81d7a0 | 6234 | |
98418dba | 6235 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
6236 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
6237 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
6238 | |
6239 | # So? What about this header? | |
edfaf76d LK |
6240 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
6241 | yes:no: ) | |
c0d27fcc MR |
6242 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
6243 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
6244 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
6245 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6246 | ac_header_preproc=yes | |
19650fd6 | 6247 | ;; |
edfaf76d | 6248 | no:yes:* ) |
c0d27fcc MR |
6249 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
6250 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
edfaf76d LK |
6251 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
6252 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6253 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6254 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6255 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6256 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 6257 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 6258 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
6259 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
6260 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 6261 | |
19650fd6 | 6262 | ;; |
c0d27fcc | 6263 | esac |
ca81d7a0 JD |
6264 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6265 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
6266 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
c0d27fcc MR |
6267 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6268 | else | |
edfaf76d | 6269 | eval "$as_ac_Header=\$ac_header_preproc" |
f4988be7 | 6270 | fi |
ca81d7a0 JD |
6271 | ac_res=`eval echo '${'$as_ac_Header'}'` |
6272 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6273 | echo "${ECHO_T}$ac_res" >&6; } | |
c0d27fcc MR |
6274 | |
6275 | fi | |
98418dba | 6276 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 6277 | cat >>confdefs.h <<_ACEOF |
98418dba | 6278 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 6279 | _ACEOF |
f4988be7 GM |
6280 | |
6281 | fi | |
c0d27fcc | 6282 | |
98418dba CW |
6283 | done |
6284 | ||
6285 | # Emulation library used on NetBSD. | |
ca81d7a0 JD |
6286 | { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5 |
6287 | echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; } | |
98418dba | 6288 | if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then |
503d2be0 | 6289 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
f4988be7 | 6290 | else |
98418dba CW |
6291 | ac_check_lib_save_LIBS=$LIBS |
6292 | LIBS="-lossaudio $LIBS" | |
6293 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
6294 | /* confdefs.h. */ |
6295 | _ACEOF | |
6296 | cat confdefs.h >>conftest.$ac_ext | |
6297 | cat >>conftest.$ac_ext <<_ACEOF | |
6298 | /* end confdefs.h. */ | |
98418dba | 6299 | |
ca81d7a0 JD |
6300 | /* Override any GCC internal prototype to avoid an error. |
6301 | Use char because int might match the return type of a GCC | |
6302 | builtin and then its argument prototype would still apply. */ | |
98418dba CW |
6303 | #ifdef __cplusplus |
6304 | extern "C" | |
f4988be7 | 6305 | #endif |
98418dba | 6306 | char _oss_ioctl (); |
503d2be0 AS |
6307 | int |
6308 | main () | |
6309 | { | |
ca81d7a0 | 6310 | return _oss_ioctl (); |
503d2be0 AS |
6311 | ; |
6312 | return 0; | |
6313 | } | |
6314 | _ACEOF | |
98418dba | 6315 | rm -f conftest.$ac_objext conftest$ac_exeext |
ca81d7a0 JD |
6316 | if { (ac_try="$ac_link" |
6317 | case "(($ac_try" in | |
6318 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6319 | *) ac_try_echo=$ac_try;; | |
6320 | esac | |
6321 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6322 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 6323 | ac_status=$? |
edfaf76d LK |
6324 | grep -v '^ *+' conftest.er1 >conftest.err |
6325 | rm -f conftest.er1 | |
6326 | cat conftest.err >&5 | |
c0d27fcc | 6327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
6328 | (exit $ac_status); } && { |
6329 | test -z "$ac_c_werror_flag" || | |
6330 | test ! -s conftest.err | |
6331 | } && test -s conftest$ac_exeext && | |
6332 | $as_test_x conftest$ac_exeext; then | |
98418dba | 6333 | ac_cv_lib_ossaudio__oss_ioctl=yes |
f4988be7 | 6334 | else |
503d2be0 | 6335 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
6336 | sed 's/^/| /' conftest.$ac_ext >&5 |
6337 | ||
ca81d7a0 | 6338 | ac_cv_lib_ossaudio__oss_ioctl=no |
f4988be7 | 6339 | fi |
ca81d7a0 | 6340 | |
f053c89f | 6341 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 6342 | conftest$ac_exeext conftest.$ac_ext |
98418dba | 6343 | LIBS=$ac_check_lib_save_LIBS |
f4988be7 | 6344 | fi |
ca81d7a0 JD |
6345 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5 |
6346 | echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; } | |
98418dba CW |
6347 | if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then |
6348 | LIBSOUND=-lossaudio | |
6349 | else | |
6350 | LIBSOUND= | |
6351 | fi | |
6352 | ||
c0d27fcc | 6353 | |
439f58ee JD |
6354 | |
6355 | ALSA_REQUIRED=1.0.0 | |
6356 | ALSA_MODULES="alsa >= $ALSA_REQUIRED" | |
6357 | if test "X${with_pkg_config_prog}" != X; then | |
6358 | PKG_CONFIG="${with_pkg_config_prog}" | |
6359 | fi | |
6360 | ||
6361 | succeeded=no | |
6362 | ||
6363 | if test -z "$PKG_CONFIG"; then | |
6364 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
6365 | set dummy pkg-config; ac_word=$2 | |
ca81d7a0 JD |
6366 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6367 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
439f58ee JD |
6368 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
6369 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6370 | else | |
6371 | case $PKG_CONFIG in | |
6372 | [\\/]* | ?:[\\/]*) | |
6373 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
6374 | ;; | |
6375 | *) | |
6376 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6377 | for as_dir in $PATH | |
6378 | do | |
6379 | IFS=$as_save_IFS | |
6380 | test -z "$as_dir" && as_dir=. | |
6381 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f053c89f | 6382 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
439f58ee JD |
6383 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
6384 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6385 | break 2 | |
6386 | fi | |
6387 | done | |
6388 | done | |
ca81d7a0 | 6389 | IFS=$as_save_IFS |
439f58ee JD |
6390 | |
6391 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
6392 | ;; | |
6393 | esac | |
6394 | fi | |
6395 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
439f58ee | 6396 | if test -n "$PKG_CONFIG"; then |
ca81d7a0 JD |
6397 | { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
6398 | echo "${ECHO_T}$PKG_CONFIG" >&6; } | |
439f58ee | 6399 | else |
ca81d7a0 JD |
6400 | { echo "$as_me:$LINENO: result: no" >&5 |
6401 | echo "${ECHO_T}no" >&6; } | |
439f58ee JD |
6402 | fi |
6403 | ||
ca81d7a0 | 6404 | |
439f58ee JD |
6405 | fi |
6406 | ||
6407 | if test "$PKG_CONFIG" = "no" ; then | |
6408 | HAVE_ALSA=no | |
6409 | else | |
6410 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
6411 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
ca81d7a0 JD |
6412 | { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5 |
6413 | echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; } | |
439f58ee | 6414 | |
67db6aa2 | 6415 | if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then |
ca81d7a0 JD |
6416 | { echo "$as_me:$LINENO: result: yes" >&5 |
6417 | echo "${ECHO_T}yes" >&6; } | |
439f58ee JD |
6418 | succeeded=yes |
6419 | ||
ca81d7a0 JD |
6420 | { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5 |
6421 | echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; } | |
94315858 | 6422 | ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'` |
ca81d7a0 JD |
6423 | { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5 |
6424 | echo "${ECHO_T}$ALSA_CFLAGS" >&6; } | |
439f58ee | 6425 | |
ca81d7a0 JD |
6426 | { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5 |
6427 | echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; } | |
94315858 | 6428 | ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'` |
ca81d7a0 JD |
6429 | { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5 |
6430 | echo "${ECHO_T}$ALSA_LIBS" >&6; } | |
439f58ee | 6431 | else |
ca81d7a0 JD |
6432 | { echo "$as_me:$LINENO: result: no" >&5 |
6433 | echo "${ECHO_T}no" >&6; } | |
439f58ee JD |
6434 | ALSA_CFLAGS="" |
6435 | ALSA_LIBS="" | |
6436 | ## If we have a custom action on failure, don't print errors, but | |
6437 | ## do set a variable so people can do so. | |
6438 | ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"` | |
6439 | ||
6440 | fi | |
6441 | ||
6442 | ||
6443 | ||
6444 | else | |
6445 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
6446 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
6447 | fi | |
6448 | fi | |
6449 | ||
6450 | if test $succeeded = yes; then | |
6451 | HAVE_ALSA=yes | |
6452 | else | |
6453 | HAVE_ALSA=no | |
6454 | fi | |
6455 | ||
6456 | if test $HAVE_ALSA = yes; then | |
ca81d7a0 JD |
6457 | SAVE_CFLAGS="$CFLAGS" |
6458 | SAVE_LDFLAGS="$LDFLAGS" | |
6459 | CFLAGS="$ALSA_CFLAGS $CFLAGS" | |
6460 | LDFLAGS="$ALSA_LIBS $LDFLAGS" | |
6461 | cat >conftest.$ac_ext <<_ACEOF | |
6462 | /* confdefs.h. */ | |
6463 | _ACEOF | |
6464 | cat confdefs.h >>conftest.$ac_ext | |
6465 | cat >>conftest.$ac_ext <<_ACEOF | |
6466 | /* end confdefs.h. */ | |
6467 | #include <asoundlib.h> | |
6468 | int | |
6469 | main () | |
6470 | { | |
6471 | snd_lib_error_set_handler (0); | |
6472 | ; | |
6473 | return 0; | |
6474 | } | |
6475 | _ACEOF | |
6476 | rm -f conftest.$ac_objext | |
6477 | if { (ac_try="$ac_compile" | |
6478 | case "(($ac_try" in | |
6479 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6480 | *) ac_try_echo=$ac_try;; | |
6481 | esac | |
6482 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6483 | (eval "$ac_compile") 2>conftest.er1 | |
6484 | ac_status=$? | |
6485 | grep -v '^ *+' conftest.er1 >conftest.err | |
6486 | rm -f conftest.er1 | |
6487 | cat conftest.err >&5 | |
6488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f053c89f CY |
6489 | (exit $ac_status); } && { |
6490 | test -z "$ac_c_werror_flag" || | |
6491 | test ! -s conftest.err | |
6492 | } && test -s conftest.$ac_objext; then | |
ca81d7a0 JD |
6493 | emacs_alsa_normal=yes |
6494 | else | |
6495 | echo "$as_me: failed program was:" >&5 | |
6496 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6497 | ||
6498 | emacs_alsa_normal=no | |
6499 | fi | |
6500 | ||
6501 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6502 | if test "$emacs_alsa_normal" != yes; then | |
6503 | cat >conftest.$ac_ext <<_ACEOF | |
6504 | /* confdefs.h. */ | |
6505 | _ACEOF | |
6506 | cat confdefs.h >>conftest.$ac_ext | |
6507 | cat >>conftest.$ac_ext <<_ACEOF | |
6508 | /* end confdefs.h. */ | |
6509 | #include <alsa/asoundlib.h> | |
6510 | int | |
6511 | main () | |
6512 | { | |
6513 | snd_lib_error_set_handler (0); | |
6514 | ; | |
6515 | return 0; | |
6516 | } | |
6517 | _ACEOF | |
6518 | rm -f conftest.$ac_objext | |
6519 | if { (ac_try="$ac_compile" | |
6520 | case "(($ac_try" in | |
6521 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6522 | *) ac_try_echo=$ac_try;; | |
6523 | esac | |
6524 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6525 | (eval "$ac_compile") 2>conftest.er1 | |
6526 | ac_status=$? | |
6527 | grep -v '^ *+' conftest.er1 >conftest.err | |
6528 | rm -f conftest.er1 | |
6529 | cat conftest.err >&5 | |
6530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f053c89f CY |
6531 | (exit $ac_status); } && { |
6532 | test -z "$ac_c_werror_flag" || | |
6533 | test ! -s conftest.err | |
6534 | } && test -s conftest.$ac_objext; then | |
ca81d7a0 JD |
6535 | emacs_alsa_subdir=yes |
6536 | else | |
6537 | echo "$as_me: failed program was:" >&5 | |
6538 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6539 | ||
6540 | emacs_alsa_subdir=no | |
6541 | fi | |
6542 | ||
6543 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6544 | if test "$emacs_alsa_subdir" != yes; then | |
6545 | { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5 | |
6546 | echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;} | |
6547 | { (exit 1); exit 1; }; } | |
6548 | fi | |
6549 | ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE" | |
6550 | fi | |
6551 | ||
6552 | CFLAGS="$SAVE_CFLAGS" | |
6553 | LDFLAGS="$SAVE_LDFLAGS" | |
439f58ee JD |
6554 | LIBSOUND="$LIBSOUND $ALSA_LIBS" |
6555 | CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS" | |
6556 | ||
6557 | cat >>confdefs.h <<\_ACEOF | |
6558 | #define HAVE_ALSA 1 | |
6559 | _ACEOF | |
6560 | ||
6561 | fi | |
6562 | ||
f4988be7 | 6563 | fi |
c0d27fcc MR |
6564 | |
6565 | ||
6566 | ||
6567 | ||
6568 | ||
6569 | ||
6570 | ||
6571 | ||
6572 | ||
6573 | ||
6574 | ||
6575 | ||
6576 | ||
6577 | ||
6578 | ||
6579 | ||
6580 | ||
6581 | ||
22044edf DL |
6582 | |
6583 | ||
973a76b1 | 6584 | |
cffcede7 | 6585 | |
551ffc27 | 6586 | |
226e2359 | 6587 | |
c0d27fcc | 6588 | |
f4988be7 | 6589 | |
98418dba CW |
6590 | for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \ |
6591 | linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \ | |
25ca0bca | 6592 | termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \ |
551ffc27 | 6593 | sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \ |
79011b82 | 6594 | sys/utsname.h pwd.h |
98418dba CW |
6595 | do |
6596 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
ca81d7a0 JD |
6597 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
6598 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6599 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
6600 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 6601 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc | 6602 | fi |
ca81d7a0 JD |
6603 | ac_res=`eval echo '${'$as_ac_Header'}'` |
6604 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6605 | echo "${ECHO_T}$ac_res" >&6; } | |
f4988be7 | 6606 | else |
c0d27fcc | 6607 | # Is the header compilable? |
ca81d7a0 JD |
6608 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
6609 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
c0d27fcc | 6610 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
6611 | /* confdefs.h. */ |
6612 | _ACEOF | |
6613 | cat confdefs.h >>conftest.$ac_ext | |
6614 | cat >>conftest.$ac_ext <<_ACEOF | |
6615 | /* end confdefs.h. */ | |
c0d27fcc MR |
6616 | $ac_includes_default |
6617 | #include <$ac_header> | |
6618 | _ACEOF | |
6619 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
6620 | if { (ac_try="$ac_compile" |
6621 | case "(($ac_try" in | |
6622 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6623 | *) ac_try_echo=$ac_try;; | |
6624 | esac | |
6625 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6626 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 6627 | ac_status=$? |
edfaf76d LK |
6628 | grep -v '^ *+' conftest.er1 >conftest.err |
6629 | rm -f conftest.er1 | |
6630 | cat conftest.err >&5 | |
c0d27fcc | 6631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
6632 | (exit $ac_status); } && { |
6633 | test -z "$ac_c_werror_flag" || | |
6634 | test ! -s conftest.err | |
6635 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
6636 | ac_header_compiler=yes |
6637 | else | |
6638 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
6639 | sed 's/^/| /' conftest.$ac_ext >&5 |
6640 | ||
ca81d7a0 | 6641 | ac_header_compiler=no |
c0d27fcc | 6642 | fi |
ca81d7a0 JD |
6643 | |
6644 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6645 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6646 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
6647 | |
6648 | # Is the header present? | |
ca81d7a0 JD |
6649 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
6650 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
c0d27fcc | 6651 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
6652 | /* confdefs.h. */ |
6653 | _ACEOF | |
6654 | cat confdefs.h >>conftest.$ac_ext | |
6655 | cat >>conftest.$ac_ext <<_ACEOF | |
6656 | /* end confdefs.h. */ | |
98418dba | 6657 | #include <$ac_header> |
503d2be0 | 6658 | _ACEOF |
ca81d7a0 JD |
6659 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
6660 | case "(($ac_try" in | |
6661 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6662 | *) ac_try_echo=$ac_try;; | |
6663 | esac | |
6664 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6665 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 6666 | ac_status=$? |
6bae0ccf | 6667 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
6668 | rm -f conftest.er1 |
6669 | cat conftest.err >&5 | |
c0d27fcc | 6670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
6671 | (exit $ac_status); } >/dev/null && { |
6672 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
6673 | test ! -s conftest.err | |
6674 | }; then | |
c0d27fcc | 6675 | ac_header_preproc=yes |
34ec9ebe | 6676 | else |
503d2be0 | 6677 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
6678 | sed 's/^/| /' conftest.$ac_ext >&5 |
6679 | ||
c0d27fcc | 6680 | ac_header_preproc=no |
34ec9ebe | 6681 | fi |
ca81d7a0 | 6682 | |
98418dba | 6683 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
6684 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
6685 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
6686 | |
6687 | # So? What about this header? | |
edfaf76d LK |
6688 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
6689 | yes:no: ) | |
c0d27fcc MR |
6690 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
6691 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
6692 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
6693 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6694 | ac_header_preproc=yes | |
19650fd6 | 6695 | ;; |
edfaf76d | 6696 | no:yes:* ) |
c0d27fcc MR |
6697 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
6698 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
edfaf76d LK |
6699 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
6700 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6701 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6702 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6703 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6704 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 6705 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 6706 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
6707 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
6708 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 6709 | |
19650fd6 | 6710 | ;; |
c0d27fcc | 6711 | esac |
ca81d7a0 JD |
6712 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6713 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
6714 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
c0d27fcc MR |
6715 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6716 | else | |
edfaf76d | 6717 | eval "$as_ac_Header=\$ac_header_preproc" |
34ec9ebe | 6718 | fi |
ca81d7a0 JD |
6719 | ac_res=`eval echo '${'$as_ac_Header'}'` |
6720 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6721 | echo "${ECHO_T}$ac_res" >&6; } | |
c0d27fcc MR |
6722 | |
6723 | fi | |
98418dba | 6724 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 6725 | cat >>confdefs.h <<_ACEOF |
98418dba | 6726 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 6727 | _ACEOF |
34ec9ebe | 6728 | |
98418dba | 6729 | fi |
c0d27fcc | 6730 | |
98418dba CW |
6731 | done |
6732 | ||
22044edf | 6733 | |
ca81d7a0 JD |
6734 | { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5 |
6735 | echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; } | |
f17e308a JD |
6736 | cat >conftest.$ac_ext <<_ACEOF |
6737 | /* confdefs.h. */ | |
6738 | _ACEOF | |
6739 | cat confdefs.h >>conftest.$ac_ext | |
6740 | cat >>conftest.$ac_ext <<_ACEOF | |
6741 | /* end confdefs.h. */ | |
6742 | #include <sys/personality.h> | |
6743 | int | |
6744 | main () | |
6745 | { | |
6746 | personality (PER_LINUX32) | |
6747 | ; | |
6748 | return 0; | |
6749 | } | |
6750 | _ACEOF | |
6751 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
6752 | if { (ac_try="$ac_compile" |
6753 | case "(($ac_try" in | |
6754 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6755 | *) ac_try_echo=$ac_try;; | |
6756 | esac | |
6757 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6758 | (eval "$ac_compile") 2>conftest.er1 | |
f17e308a | 6759 | ac_status=$? |
edfaf76d LK |
6760 | grep -v '^ *+' conftest.er1 >conftest.err |
6761 | rm -f conftest.er1 | |
6762 | cat conftest.err >&5 | |
f17e308a | 6763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
6764 | (exit $ac_status); } && { |
6765 | test -z "$ac_c_werror_flag" || | |
6766 | test ! -s conftest.err | |
6767 | } && test -s conftest.$ac_objext; then | |
f17e308a JD |
6768 | emacs_cv_personality_linux32=yes |
6769 | else | |
6770 | echo "$as_me: failed program was:" >&5 | |
6771 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6772 | ||
ca81d7a0 | 6773 | emacs_cv_personality_linux32=no |
f17e308a | 6774 | fi |
ca81d7a0 JD |
6775 | |
6776 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6777 | { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5 | |
6778 | echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; } | |
f17e308a JD |
6779 | |
6780 | if test $emacs_cv_personality_linux32 = yes; then | |
6781 | ||
6782 | cat >>confdefs.h <<\_ACEOF | |
6783 | #define HAVE_PERSONALITY_LINUX32 1 | |
6784 | _ACEOF | |
6785 | ||
6786 | fi | |
6787 | ||
6788 | ||
22044edf DL |
6789 | for ac_header in term.h |
6790 | do | |
6791 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
ca81d7a0 JD |
6792 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6793 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
6794 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
22044edf DL |
6795 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6796 | else | |
6797 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
6798 | /* confdefs.h. */ |
6799 | _ACEOF | |
6800 | cat confdefs.h >>conftest.$ac_ext | |
6801 | cat >>conftest.$ac_ext <<_ACEOF | |
6802 | /* end confdefs.h. */ | |
22044edf DL |
6803 | #include <$ac_header> |
6804 | _ACEOF | |
ca81d7a0 JD |
6805 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
6806 | case "(($ac_try" in | |
6807 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6808 | *) ac_try_echo=$ac_try;; | |
6809 | esac | |
6810 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6811 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
22044edf DL |
6812 | ac_status=$? |
6813 | grep -v '^ *+' conftest.er1 >conftest.err | |
6814 | rm -f conftest.er1 | |
6815 | cat conftest.err >&5 | |
6816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f053c89f CY |
6817 | (exit $ac_status); } >/dev/null && { |
6818 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
6819 | test ! -s conftest.err | |
6820 | }; then | |
22044edf DL |
6821 | eval "$as_ac_Header=yes" |
6822 | else | |
6823 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
6824 | sed 's/^/| /' conftest.$ac_ext >&5 |
6825 | ||
22044edf DL |
6826 | eval "$as_ac_Header=no" |
6827 | fi | |
ca81d7a0 | 6828 | |
22044edf DL |
6829 | rm -f conftest.err conftest.$ac_ext |
6830 | fi | |
ca81d7a0 JD |
6831 | ac_res=`eval echo '${'$as_ac_Header'}'` |
6832 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6833 | echo "${ECHO_T}$ac_res" >&6; } | |
22044edf DL |
6834 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
6835 | cat >>confdefs.h <<_ACEOF | |
6836 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6837 | _ACEOF | |
6838 | ||
6839 | fi | |
6840 | ||
6841 | done | |
6842 | ||
ca81d7a0 JD |
6843 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
6844 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } | |
98418dba | 6845 | if test "${ac_cv_header_stdc+set}" = set; then |
503d2be0 | 6846 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 6847 | else |
503d2be0 | 6848 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
6849 | /* confdefs.h. */ |
6850 | _ACEOF | |
6851 | cat confdefs.h >>conftest.$ac_ext | |
6852 | cat >>conftest.$ac_ext <<_ACEOF | |
6853 | /* end confdefs.h. */ | |
98418dba CW |
6854 | #include <stdlib.h> |
6855 | #include <stdarg.h> | |
6856 | #include <string.h> | |
6857 | #include <float.h> | |
6858 | ||
19650fd6 AS |
6859 | int |
6860 | main () | |
6861 | { | |
6862 | ||
6863 | ; | |
6864 | return 0; | |
6865 | } | |
98418dba | 6866 | _ACEOF |
19650fd6 | 6867 | rm -f conftest.$ac_objext |
ca81d7a0 JD |
6868 | if { (ac_try="$ac_compile" |
6869 | case "(($ac_try" in | |
6870 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6871 | *) ac_try_echo=$ac_try;; | |
6872 | esac | |
6873 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6874 | (eval "$ac_compile") 2>conftest.er1 | |
cd958eb3 | 6875 | ac_status=$? |
edfaf76d LK |
6876 | grep -v '^ *+' conftest.er1 >conftest.err |
6877 | rm -f conftest.er1 | |
6878 | cat conftest.err >&5 | |
cd958eb3 | 6879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
6880 | (exit $ac_status); } && { |
6881 | test -z "$ac_c_werror_flag" || | |
6882 | test ! -s conftest.err | |
6883 | } && test -s conftest.$ac_objext; then | |
98418dba | 6884 | ac_cv_header_stdc=yes |
ba4481b5 | 6885 | else |
503d2be0 | 6886 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
6887 | sed 's/^/| /' conftest.$ac_ext >&5 |
6888 | ||
ca81d7a0 | 6889 | ac_cv_header_stdc=no |
ba4481b5 | 6890 | fi |
ca81d7a0 JD |
6891 | |
6892 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
98418dba CW |
6893 | |
6894 | if test $ac_cv_header_stdc = yes; then | |
6895 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
6896 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
6897 | /* confdefs.h. */ |
6898 | _ACEOF | |
6899 | cat confdefs.h >>conftest.$ac_ext | |
6900 | cat >>conftest.$ac_ext <<_ACEOF | |
6901 | /* end confdefs.h. */ | |
98418dba CW |
6902 | #include <string.h> |
6903 | ||
6904 | _ACEOF | |
6905 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6bae0ccf | 6906 | $EGREP "memchr" >/dev/null 2>&1; then |
98418dba CW |
6907 | : |
6908 | else | |
6909 | ac_cv_header_stdc=no | |
ba4481b5 | 6910 | fi |
98418dba | 6911 | rm -f conftest* |
ba4481b5 DL |
6912 | |
6913 | fi | |
6914 | ||
98418dba CW |
6915 | if test $ac_cv_header_stdc = yes; then |
6916 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
6917 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
6918 | /* confdefs.h. */ |
6919 | _ACEOF | |
6920 | cat confdefs.h >>conftest.$ac_ext | |
6921 | cat >>conftest.$ac_ext <<_ACEOF | |
6922 | /* end confdefs.h. */ | |
98418dba CW |
6923 | #include <stdlib.h> |
6924 | ||
6925 | _ACEOF | |
6926 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6bae0ccf | 6927 | $EGREP "free" >/dev/null 2>&1; then |
98418dba CW |
6928 | : |
6929 | else | |
6930 | ac_cv_header_stdc=no | |
6931 | fi | |
6932 | rm -f conftest* | |
6933 | ||
6934 | fi | |
6935 | ||
6936 | if test $ac_cv_header_stdc = yes; then | |
6937 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
6938 | if test "$cross_compiling" = yes; then | |
6939 | : | |
d42122a3 | 6940 | else |
503d2be0 | 6941 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
6942 | /* confdefs.h. */ |
6943 | _ACEOF | |
6944 | cat confdefs.h >>conftest.$ac_ext | |
6945 | cat >>conftest.$ac_ext <<_ACEOF | |
6946 | /* end confdefs.h. */ | |
98418dba | 6947 | #include <ctype.h> |
ca81d7a0 | 6948 | #include <stdlib.h> |
98418dba CW |
6949 | #if ((' ' & 0x0FF) == 0x020) |
6950 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
6951 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
6952 | #else | |
19650fd6 | 6953 | # define ISLOWER(c) \ |
edfaf76d LK |
6954 | (('a' <= (c) && (c) <= 'i') \ |
6955 | || ('j' <= (c) && (c) <= 'r') \ | |
6956 | || ('s' <= (c) && (c) <= 'z')) | |
98418dba CW |
6957 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
6958 | #endif | |
6959 | ||
6960 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
503d2be0 AS |
6961 | int |
6962 | main () | |
6963 | { | |
98418dba CW |
6964 | int i; |
6965 | for (i = 0; i < 256; i++) | |
6966 | if (XOR (islower (i), ISLOWER (i)) | |
edfaf76d | 6967 | || toupper (i) != TOUPPER (i)) |
ca81d7a0 JD |
6968 | return 2; |
6969 | return 0; | |
503d2be0 AS |
6970 | } |
6971 | _ACEOF | |
98418dba | 6972 | rm -f conftest$ac_exeext |
ca81d7a0 JD |
6973 | if { (ac_try="$ac_link" |
6974 | case "(($ac_try" in | |
6975 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6976 | *) ac_try_echo=$ac_try;; | |
6977 | esac | |
6978 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6979 | (eval "$ac_link") 2>&5 | |
503d2be0 | 6980 | ac_status=$? |
c0d27fcc | 6981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 6982 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
ca81d7a0 JD |
6983 | { (case "(($ac_try" in |
6984 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6985 | *) ac_try_echo=$ac_try;; | |
6986 | esac | |
6987 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6988 | (eval "$ac_try") 2>&5 | |
503d2be0 | 6989 | ac_status=$? |
c0d27fcc | 6990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 6991 | (exit $ac_status); }; }; then |
98418dba | 6992 | : |
d42122a3 | 6993 | else |
98418dba CW |
6994 | echo "$as_me: program exited with status $ac_status" >&5 |
6995 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
6996 | sed 's/^/| /' conftest.$ac_ext >&5 |
6997 | ||
c0d27fcc | 6998 | ( exit $ac_status ) |
98418dba | 6999 | ac_cv_header_stdc=no |
d42122a3 | 7000 | fi |
ca81d7a0 | 7001 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
d42122a3 | 7002 | fi |
ca81d7a0 JD |
7003 | |
7004 | ||
98418dba CW |
7005 | fi |
7006 | fi | |
ca81d7a0 JD |
7007 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
7008 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } | |
98418dba CW |
7009 | if test $ac_cv_header_stdc = yes; then |
7010 | ||
c0d27fcc | 7011 | cat >>confdefs.h <<\_ACEOF |
98418dba | 7012 | #define STDC_HEADERS 1 |
c0d27fcc | 7013 | _ACEOF |
d42122a3 DL |
7014 | |
7015 | fi | |
7016 | ||
ca81d7a0 JD |
7017 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
7018 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } | |
98418dba | 7019 | if test "${ac_cv_header_time+set}" = set; then |
503d2be0 | 7020 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 7021 | else |
503d2be0 | 7022 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
7023 | /* confdefs.h. */ |
7024 | _ACEOF | |
7025 | cat confdefs.h >>conftest.$ac_ext | |
7026 | cat >>conftest.$ac_ext <<_ACEOF | |
7027 | /* end confdefs.h. */ | |
ba4481b5 | 7028 | #include <sys/types.h> |
98418dba | 7029 | #include <sys/time.h> |
ba4481b5 | 7030 | #include <time.h> |
503d2be0 AS |
7031 | |
7032 | int | |
7033 | main () | |
7034 | { | |
98418dba CW |
7035 | if ((struct tm *) 0) |
7036 | return 0; | |
503d2be0 AS |
7037 | ; |
7038 | return 0; | |
7039 | } | |
7040 | _ACEOF | |
7041 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
7042 | if { (ac_try="$ac_compile" |
7043 | case "(($ac_try" in | |
7044 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7045 | *) ac_try_echo=$ac_try;; | |
7046 | esac | |
7047 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7048 | (eval "$ac_compile") 2>conftest.er1 | |
503d2be0 | 7049 | ac_status=$? |
edfaf76d LK |
7050 | grep -v '^ *+' conftest.er1 >conftest.err |
7051 | rm -f conftest.er1 | |
7052 | cat conftest.err >&5 | |
c0d27fcc | 7053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
7054 | (exit $ac_status); } && { |
7055 | test -z "$ac_c_werror_flag" || | |
7056 | test ! -s conftest.err | |
7057 | } && test -s conftest.$ac_objext; then | |
98418dba | 7058 | ac_cv_header_time=yes |
ba4481b5 | 7059 | else |
503d2be0 | 7060 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
7061 | sed 's/^/| /' conftest.$ac_ext >&5 |
7062 | ||
ca81d7a0 | 7063 | ac_cv_header_time=no |
ba4481b5 | 7064 | fi |
ca81d7a0 JD |
7065 | |
7066 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ba4481b5 | 7067 | fi |
ca81d7a0 JD |
7068 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
7069 | echo "${ECHO_T}$ac_cv_header_time" >&6; } | |
98418dba | 7070 | if test $ac_cv_header_time = yes; then |
503d2be0 | 7071 | |
c0d27fcc | 7072 | cat >>confdefs.h <<\_ACEOF |
98418dba | 7073 | #define TIME_WITH_SYS_TIME 1 |
c0d27fcc | 7074 | _ACEOF |
ba4481b5 DL |
7075 | |
7076 | fi | |
7077 | ||
ca81d7a0 JD |
7078 | { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5 |
7079 | echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; } | |
cd958eb3 | 7080 | if test "${ac_cv_have_decl_sys_siglist+set}" = set; then |
503d2be0 | 7081 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 7082 | else |
503d2be0 | 7083 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
7084 | /* confdefs.h. */ |
7085 | _ACEOF | |
7086 | cat confdefs.h >>conftest.$ac_ext | |
7087 | cat >>conftest.$ac_ext <<_ACEOF | |
7088 | /* end confdefs.h. */ | |
cd958eb3 MB |
7089 | $ac_includes_default |
7090 | int | |
7091 | main () | |
7092 | { | |
7093 | #ifndef sys_siglist | |
f053c89f | 7094 | (void) sys_siglist; |
98418dba | 7095 | #endif |
503d2be0 | 7096 | |
cd958eb3 MB |
7097 | ; |
7098 | return 0; | |
7099 | } | |
7100 | _ACEOF | |
7101 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
7102 | if { (ac_try="$ac_compile" |
7103 | case "(($ac_try" in | |
7104 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7105 | *) ac_try_echo=$ac_try;; | |
7106 | esac | |
7107 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7108 | (eval "$ac_compile") 2>conftest.er1 | |
cd958eb3 | 7109 | ac_status=$? |
edfaf76d LK |
7110 | grep -v '^ *+' conftest.er1 >conftest.err |
7111 | rm -f conftest.er1 | |
7112 | cat conftest.err >&5 | |
cd958eb3 | 7113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
7114 | (exit $ac_status); } && { |
7115 | test -z "$ac_c_werror_flag" || | |
7116 | test ! -s conftest.err | |
7117 | } && test -s conftest.$ac_objext; then | |
cd958eb3 MB |
7118 | ac_cv_have_decl_sys_siglist=yes |
7119 | else | |
7120 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
7121 | sed 's/^/| /' conftest.$ac_ext >&5 |
7122 | ||
ca81d7a0 | 7123 | ac_cv_have_decl_sys_siglist=no |
cd958eb3 | 7124 | fi |
ca81d7a0 JD |
7125 | |
7126 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
cd958eb3 | 7127 | fi |
ca81d7a0 JD |
7128 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5 |
7129 | echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; } | |
cd958eb3 MB |
7130 | if test $ac_cv_have_decl_sys_siglist = yes; then |
7131 | ||
7132 | cat >>confdefs.h <<_ACEOF | |
7133 | #define HAVE_DECL_SYS_SIGLIST 1 | |
7134 | _ACEOF | |
7135 | ||
7136 | ||
7137 | else | |
7138 | cat >>confdefs.h <<_ACEOF | |
7139 | #define HAVE_DECL_SYS_SIGLIST 0 | |
7140 | _ACEOF | |
7141 | ||
7142 | ||
7143 | fi | |
7144 | ||
7145 | ||
7146 | if test $ac_cv_have_decl_sys_siglist != yes; then | |
7147 | # For Tru64, at least: | |
ca81d7a0 JD |
7148 | { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5 |
7149 | echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; } | |
cd958eb3 MB |
7150 | if test "${ac_cv_have_decl___sys_siglist+set}" = set; then |
7151 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7152 | else | |
7153 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
7154 | /* confdefs.h. */ |
7155 | _ACEOF | |
7156 | cat confdefs.h >>conftest.$ac_ext | |
7157 | cat >>conftest.$ac_ext <<_ACEOF | |
7158 | /* end confdefs.h. */ | |
cd958eb3 | 7159 | $ac_includes_default |
503d2be0 AS |
7160 | int |
7161 | main () | |
7162 | { | |
cd958eb3 | 7163 | #ifndef __sys_siglist |
f053c89f | 7164 | (void) __sys_siglist; |
cd958eb3 MB |
7165 | #endif |
7166 | ||
503d2be0 AS |
7167 | ; |
7168 | return 0; | |
7169 | } | |
7170 | _ACEOF | |
7171 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
7172 | if { (ac_try="$ac_compile" |
7173 | case "(($ac_try" in | |
7174 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7175 | *) ac_try_echo=$ac_try;; | |
7176 | esac | |
7177 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7178 | (eval "$ac_compile") 2>conftest.er1 | |
503d2be0 | 7179 | ac_status=$? |
edfaf76d LK |
7180 | grep -v '^ *+' conftest.er1 >conftest.err |
7181 | rm -f conftest.er1 | |
7182 | cat conftest.err >&5 | |
c0d27fcc | 7183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
7184 | (exit $ac_status); } && { |
7185 | test -z "$ac_c_werror_flag" || | |
7186 | test ! -s conftest.err | |
7187 | } && test -s conftest.$ac_objext; then | |
cd958eb3 | 7188 | ac_cv_have_decl___sys_siglist=yes |
ba4481b5 | 7189 | else |
503d2be0 | 7190 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
7191 | sed 's/^/| /' conftest.$ac_ext >&5 |
7192 | ||
ca81d7a0 | 7193 | ac_cv_have_decl___sys_siglist=no |
ba4481b5 | 7194 | fi |
ca81d7a0 JD |
7195 | |
7196 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
503d2be0 | 7197 | fi |
ca81d7a0 JD |
7198 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5 |
7199 | echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; } | |
cd958eb3 | 7200 | if test $ac_cv_have_decl___sys_siglist = yes; then |
503d2be0 | 7201 | |
cd958eb3 MB |
7202 | cat >>confdefs.h <<_ACEOF |
7203 | #define HAVE_DECL___SYS_SIGLIST 1 | |
7204 | _ACEOF | |
7205 | ||
7206 | ||
7207 | else | |
7208 | cat >>confdefs.h <<_ACEOF | |
7209 | #define HAVE_DECL___SYS_SIGLIST 0 | |
c0d27fcc | 7210 | _ACEOF |
503d2be0 | 7211 | |
cd958eb3 | 7212 | |
ba4481b5 DL |
7213 | fi |
7214 | ||
cd958eb3 MB |
7215 | |
7216 | if test $ac_cv_have_decl___sys_siglist = yes; then | |
7217 | ||
7218 | cat >>confdefs.h <<\_ACEOF | |
7219 | #define sys_siglist __sys_siglist | |
7220 | _ACEOF | |
7221 | ||
7222 | fi | |
7223 | fi | |
ca81d7a0 JD |
7224 | { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
7225 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } | |
98418dba | 7226 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
503d2be0 | 7227 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 7228 | else |
503d2be0 | 7229 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
7230 | /* confdefs.h. */ |
7231 | _ACEOF | |
7232 | cat confdefs.h >>conftest.$ac_ext | |
7233 | cat >>conftest.$ac_ext <<_ACEOF | |
7234 | /* end confdefs.h. */ | |
98418dba CW |
7235 | #include <sys/types.h> |
7236 | #include <sys/wait.h> | |
7237 | #ifndef WEXITSTATUS | |
ca81d7a0 | 7238 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
98418dba CW |
7239 | #endif |
7240 | #ifndef WIFEXITED | |
7241 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
ba4481b5 | 7242 | #endif |
503d2be0 AS |
7243 | |
7244 | int | |
7245 | main () | |
7246 | { | |
98418dba CW |
7247 | int s; |
7248 | wait (&s); | |
7249 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
503d2be0 AS |
7250 | ; |
7251 | return 0; | |
7252 | } | |
7253 | _ACEOF | |
98418dba | 7254 | rm -f conftest.$ac_objext |
ca81d7a0 JD |
7255 | if { (ac_try="$ac_compile" |
7256 | case "(($ac_try" in | |
7257 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7258 | *) ac_try_echo=$ac_try;; | |
7259 | esac | |
7260 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7261 | (eval "$ac_compile") 2>conftest.er1 | |
503d2be0 | 7262 | ac_status=$? |
edfaf76d LK |
7263 | grep -v '^ *+' conftest.er1 >conftest.err |
7264 | rm -f conftest.er1 | |
7265 | cat conftest.err >&5 | |
c0d27fcc | 7266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
7267 | (exit $ac_status); } && { |
7268 | test -z "$ac_c_werror_flag" || | |
7269 | test ! -s conftest.err | |
7270 | } && test -s conftest.$ac_objext; then | |
98418dba | 7271 | ac_cv_header_sys_wait_h=yes |
ba4481b5 | 7272 | else |
503d2be0 | 7273 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
7274 | sed 's/^/| /' conftest.$ac_ext >&5 |
7275 | ||
ca81d7a0 | 7276 | ac_cv_header_sys_wait_h=no |
ba4481b5 | 7277 | fi |
ca81d7a0 JD |
7278 | |
7279 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ba4481b5 | 7280 | fi |
ca81d7a0 JD |
7281 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
7282 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } | |
98418dba | 7283 | if test $ac_cv_header_sys_wait_h = yes; then |
503d2be0 | 7284 | |
c0d27fcc | 7285 | cat >>confdefs.h <<\_ACEOF |
98418dba | 7286 | #define HAVE_SYS_WAIT_H 1 |
c0d27fcc | 7287 | _ACEOF |
ba4481b5 | 7288 | |
ba4481b5 DL |
7289 | fi |
7290 | ||
c0d27fcc | 7291 | |
ca81d7a0 JD |
7292 | { echo "$as_me:$LINENO: checking for struct utimbuf" >&5 |
7293 | echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; } | |
98418dba | 7294 | if test "${emacs_cv_struct_utimbuf+set}" = set; then |
503d2be0 | 7295 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1113b624 | 7296 | else |
503d2be0 | 7297 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
7298 | /* confdefs.h. */ |
7299 | _ACEOF | |
7300 | cat confdefs.h >>conftest.$ac_ext | |
7301 | cat >>conftest.$ac_ext <<_ACEOF | |
7302 | /* end confdefs.h. */ | |
98418dba CW |
7303 | #ifdef TIME_WITH_SYS_TIME |
7304 | #include <sys/time.h> | |
7305 | #include <time.h> | |
7306 | #else | |
7307 | #ifdef HAVE_SYS_TIME_H | |
7308 | #include <sys/time.h> | |
7309 | #else | |
1113b624 | 7310 | #include <time.h> |
98418dba CW |
7311 | #endif |
7312 | #endif | |
7313 | #ifdef HAVE_UTIME_H | |
7314 | #include <utime.h> | |
7315 | #endif | |
503d2be0 AS |
7316 | int |
7317 | main () | |
7318 | { | |
98418dba | 7319 | static struct utimbuf x; x.actime = x.modtime; |
503d2be0 AS |
7320 | ; |
7321 | return 0; | |
7322 | } | |
7323 | _ACEOF | |
98418dba | 7324 | rm -f conftest.$ac_objext |
ca81d7a0 JD |
7325 | if { (ac_try="$ac_compile" |
7326 | case "(($ac_try" in | |
7327 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7328 | *) ac_try_echo=$ac_try;; | |
7329 | esac | |
7330 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7331 | (eval "$ac_compile") 2>conftest.er1 | |
503d2be0 | 7332 | ac_status=$? |
edfaf76d LK |
7333 | grep -v '^ *+' conftest.er1 >conftest.err |
7334 | rm -f conftest.er1 | |
7335 | cat conftest.err >&5 | |
c0d27fcc | 7336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
7337 | (exit $ac_status); } && { |
7338 | test -z "$ac_c_werror_flag" || | |
7339 | test ! -s conftest.err | |
7340 | } && test -s conftest.$ac_objext; then | |
98418dba | 7341 | emacs_cv_struct_utimbuf=yes |
1113b624 | 7342 | else |
503d2be0 | 7343 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
7344 | sed 's/^/| /' conftest.$ac_ext >&5 |
7345 | ||
ca81d7a0 | 7346 | emacs_cv_struct_utimbuf=no |
1113b624 | 7347 | fi |
ca81d7a0 JD |
7348 | |
7349 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1113b624 | 7350 | fi |
ca81d7a0 JD |
7351 | { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5 |
7352 | echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; } | |
98418dba | 7353 | if test $emacs_cv_struct_utimbuf = yes; then |
b936fae4 | 7354 | |
c0d27fcc | 7355 | cat >>confdefs.h <<\_ACEOF |
98418dba | 7356 | #define HAVE_STRUCT_UTIMBUF 1 |
c0d27fcc | 7357 | _ACEOF |
1113b624 PE |
7358 | |
7359 | fi | |
ba4481b5 | 7360 | |
ca81d7a0 JD |
7361 | { echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
7362 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } | |
98418dba | 7363 | if test "${ac_cv_type_signal+set}" = set; then |
503d2be0 | 7364 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7397acc4 | 7365 | else |
98418dba | 7366 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
7367 | /* confdefs.h. */ |
7368 | _ACEOF | |
7369 | cat confdefs.h >>conftest.$ac_ext | |
7370 | cat >>conftest.$ac_ext <<_ACEOF | |
7371 | /* end confdefs.h. */ | |
7397acc4 | 7372 | #include <sys/types.h> |
98418dba | 7373 | #include <signal.h> |
98418dba | 7374 | |
503d2be0 AS |
7375 | int |
7376 | main () | |
7377 | { | |
ca81d7a0 | 7378 | return *(signal (0, 0)) (0) == 1; |
503d2be0 AS |
7379 | ; |
7380 | return 0; | |
7381 | } | |
7382 | _ACEOF | |
98418dba | 7383 | rm -f conftest.$ac_objext |
ca81d7a0 JD |
7384 | if { (ac_try="$ac_compile" |
7385 | case "(($ac_try" in | |
7386 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7387 | *) ac_try_echo=$ac_try;; | |
7388 | esac | |
7389 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7390 | (eval "$ac_compile") 2>conftest.er1 | |
503d2be0 | 7391 | ac_status=$? |
edfaf76d LK |
7392 | grep -v '^ *+' conftest.er1 >conftest.err |
7393 | rm -f conftest.er1 | |
7394 | cat conftest.err >&5 | |
c0d27fcc | 7395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
7396 | (exit $ac_status); } && { |
7397 | test -z "$ac_c_werror_flag" || | |
7398 | test ! -s conftest.err | |
7399 | } && test -s conftest.$ac_objext; then | |
ca81d7a0 | 7400 | ac_cv_type_signal=int |
503d2be0 AS |
7401 | else |
7402 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
7403 | sed 's/^/| /' conftest.$ac_ext >&5 |
7404 | ||
ca81d7a0 | 7405 | ac_cv_type_signal=void |
503d2be0 | 7406 | fi |
ca81d7a0 JD |
7407 | |
7408 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7397acc4 | 7409 | fi |
ca81d7a0 JD |
7410 | { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
7411 | echo "${ECHO_T}$ac_cv_type_signal" >&6; } | |
7397acc4 | 7412 | |
c0d27fcc | 7413 | cat >>confdefs.h <<_ACEOF |
98418dba | 7414 | #define RETSIGTYPE $ac_cv_type_signal |
c0d27fcc MR |
7415 | _ACEOF |
7416 | ||
503d2be0 | 7417 | |
c0d27fcc | 7418 | |
ca81d7a0 JD |
7419 | { echo "$as_me:$LINENO: checking for speed_t" >&5 |
7420 | echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; } | |
98418dba CW |
7421 | if test "${emacs_cv_speed_t+set}" = set; then |
7422 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7397acc4 | 7423 | else |
98418dba | 7424 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
7425 | /* confdefs.h. */ |
7426 | _ACEOF | |
7427 | cat confdefs.h >>conftest.$ac_ext | |
7428 | cat >>conftest.$ac_ext <<_ACEOF | |
7429 | /* end confdefs.h. */ | |
98418dba | 7430 | #include <termios.h> |
98418dba CW |
7431 | int |
7432 | main () | |
7433 | { | |
7434 | speed_t x = 1; | |
7435 | ; | |
7436 | return 0; | |
7437 | } | |
7438 | _ACEOF | |
7439 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
7440 | if { (ac_try="$ac_compile" |
7441 | case "(($ac_try" in | |
7442 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7443 | *) ac_try_echo=$ac_try;; | |
7444 | esac | |
7445 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7446 | (eval "$ac_compile") 2>conftest.er1 | |
98418dba | 7447 | ac_status=$? |
edfaf76d LK |
7448 | grep -v '^ *+' conftest.er1 >conftest.err |
7449 | rm -f conftest.er1 | |
7450 | cat conftest.err >&5 | |
c0d27fcc | 7451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
7452 | (exit $ac_status); } && { |
7453 | test -z "$ac_c_werror_flag" || | |
7454 | test ! -s conftest.err | |
7455 | } && test -s conftest.$ac_objext; then | |
98418dba CW |
7456 | emacs_cv_speed_t=yes |
7457 | else | |
7458 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
7459 | sed 's/^/| /' conftest.$ac_ext >&5 |
7460 | ||
ca81d7a0 | 7461 | emacs_cv_speed_t=no |
98418dba | 7462 | fi |
ca81d7a0 JD |
7463 | |
7464 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
98418dba | 7465 | fi |
ca81d7a0 JD |
7466 | { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5 |
7467 | echo "${ECHO_T}$emacs_cv_speed_t" >&6; } | |
98418dba | 7468 | if test $emacs_cv_speed_t = yes; then |
b936fae4 | 7469 | |
c0d27fcc | 7470 | cat >>confdefs.h <<\_ACEOF |
98418dba | 7471 | #define HAVE_SPEED_T 1 |
c0d27fcc | 7472 | _ACEOF |
98418dba | 7473 | |
7397acc4 DL |
7474 | fi |
7475 | ||
ca81d7a0 JD |
7476 | { echo "$as_me:$LINENO: checking for struct timeval" >&5 |
7477 | echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; } | |
98418dba | 7478 | if test "${emacs_cv_struct_timeval+set}" = set; then |
503d2be0 | 7479 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7397acc4 | 7480 | else |
503d2be0 | 7481 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
7482 | /* confdefs.h. */ |
7483 | _ACEOF | |
7484 | cat confdefs.h >>conftest.$ac_ext | |
7485 | cat >>conftest.$ac_ext <<_ACEOF | |
7486 | /* end confdefs.h. */ | |
98418dba CW |
7487 | #ifdef TIME_WITH_SYS_TIME |
7488 | #include <sys/time.h> | |
7489 | #include <time.h> | |
7490 | #else | |
7491 | #ifdef HAVE_SYS_TIME_H | |
7492 | #include <sys/time.h> | |
7493 | #else | |
7494 | #include <time.h> | |
7495 | #endif | |
7496 | #endif | |
503d2be0 AS |
7497 | int |
7498 | main () | |
7499 | { | |
98418dba | 7500 | static struct timeval x; x.tv_sec = x.tv_usec; |
503d2be0 AS |
7501 | ; |
7502 | return 0; | |
7503 | } | |
7504 | _ACEOF | |
7505 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
7506 | if { (ac_try="$ac_compile" |
7507 | case "(($ac_try" in | |
7508 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7509 | *) ac_try_echo=$ac_try;; | |
7510 | esac | |
7511 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7512 | (eval "$ac_compile") 2>conftest.er1 | |
503d2be0 | 7513 | ac_status=$? |
edfaf76d LK |
7514 | grep -v '^ *+' conftest.er1 >conftest.err |
7515 | rm -f conftest.er1 | |
7516 | cat conftest.err >&5 | |
c0d27fcc | 7517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
7518 | (exit $ac_status); } && { |
7519 | test -z "$ac_c_werror_flag" || | |
7520 | test ! -s conftest.err | |
7521 | } && test -s conftest.$ac_objext; then | |
edfaf76d LK |
7522 | emacs_cv_struct_timeval=yes |
7523 | else | |
503d2be0 | 7524 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
7525 | sed 's/^/| /' conftest.$ac_ext >&5 |
7526 | ||
ca81d7a0 | 7527 | emacs_cv_struct_timeval=no |
7397acc4 | 7528 | fi |
ca81d7a0 JD |
7529 | |
7530 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7397acc4 | 7531 | fi |
ca81d7a0 JD |
7532 | { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5 |
7533 | echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; } | |
98418dba CW |
7534 | HAVE_TIMEVAL=$emacs_cv_struct_timeval |
7535 | if test $emacs_cv_struct_timeval = yes; then | |
b936fae4 | 7536 | |
c0d27fcc | 7537 | cat >>confdefs.h <<\_ACEOF |
98418dba | 7538 | #define HAVE_TIMEVAL 1 |
c0d27fcc | 7539 | _ACEOF |
7397acc4 DL |
7540 | |
7541 | fi | |
7542 | ||
ca81d7a0 JD |
7543 | { echo "$as_me:$LINENO: checking for struct exception" >&5 |
7544 | echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; } | |
98418dba | 7545 | if test "${emacs_cv_struct_exception+set}" = set; then |
503d2be0 | 7546 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 7547 | else |
503d2be0 | 7548 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
7549 | /* confdefs.h. */ |
7550 | _ACEOF | |
7551 | cat confdefs.h >>conftest.$ac_ext | |
7552 | cat >>conftest.$ac_ext <<_ACEOF | |
7553 | /* end confdefs.h. */ | |
98418dba | 7554 | #include <math.h> |
503d2be0 AS |
7555 | int |
7556 | main () | |
7557 | { | |
98418dba | 7558 | static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1; |
503d2be0 AS |
7559 | ; |
7560 | return 0; | |
ba4481b5 | 7561 | } |
503d2be0 AS |
7562 | _ACEOF |
7563 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
7564 | if { (ac_try="$ac_compile" |
7565 | case "(($ac_try" in | |
7566 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7567 | *) ac_try_echo=$ac_try;; | |
7568 | esac | |
7569 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7570 | (eval "$ac_compile") 2>conftest.er1 | |
503d2be0 | 7571 | ac_status=$? |
edfaf76d LK |
7572 | grep -v '^ *+' conftest.er1 >conftest.err |
7573 | rm -f conftest.er1 | |
7574 | cat conftest.err >&5 | |
c0d27fcc | 7575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
7576 | (exit $ac_status); } && { |
7577 | test -z "$ac_c_werror_flag" || | |
7578 | test ! -s conftest.err | |
7579 | } && test -s conftest.$ac_objext; then | |
98418dba | 7580 | emacs_cv_struct_exception=yes |
ba4481b5 | 7581 | else |
503d2be0 | 7582 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
7583 | sed 's/^/| /' conftest.$ac_ext >&5 |
7584 | ||
ca81d7a0 | 7585 | emacs_cv_struct_exception=no |
ba4481b5 | 7586 | fi |
ca81d7a0 JD |
7587 | |
7588 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ba4481b5 | 7589 | fi |
ca81d7a0 JD |
7590 | { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5 |
7591 | echo "${ECHO_T}$emacs_cv_struct_exception" >&6; } | |
98418dba CW |
7592 | HAVE_EXCEPTION=$emacs_cv_struct_exception |
7593 | if test $emacs_cv_struct_exception != yes; then | |
b936fae4 | 7594 | |
c0d27fcc | 7595 | cat >>confdefs.h <<\_ACEOF |
98418dba | 7596 | #define NO_MATHERR 1 |
c0d27fcc | 7597 | _ACEOF |
ba4481b5 DL |
7598 | |
7599 | fi | |
7600 | ||
7862d3a8 AS |
7601 | |
7602 | for ac_header in sys/socket.h | |
7603 | do | |
7604 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
ca81d7a0 JD |
7605 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
7606 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7607 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7608 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
7862d3a8 AS |
7609 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7610 | fi | |
ca81d7a0 JD |
7611 | ac_res=`eval echo '${'$as_ac_Header'}'` |
7612 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7613 | echo "${ECHO_T}$ac_res" >&6; } | |
7862d3a8 AS |
7614 | else |
7615 | # Is the header compilable? | |
ca81d7a0 JD |
7616 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7617 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
7862d3a8 AS |
7618 | cat >conftest.$ac_ext <<_ACEOF |
7619 | /* confdefs.h. */ | |
7620 | _ACEOF | |
7621 | cat confdefs.h >>conftest.$ac_ext | |
7622 | cat >>conftest.$ac_ext <<_ACEOF | |
7623 | /* end confdefs.h. */ | |
7624 | $ac_includes_default | |
7625 | #include <$ac_header> | |
7626 | _ACEOF | |
7627 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
7628 | if { (ac_try="$ac_compile" |
7629 | case "(($ac_try" in | |
7630 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7631 | *) ac_try_echo=$ac_try;; | |
7632 | esac | |
7633 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7634 | (eval "$ac_compile") 2>conftest.er1 | |
7862d3a8 | 7635 | ac_status=$? |
edfaf76d LK |
7636 | grep -v '^ *+' conftest.er1 >conftest.err |
7637 | rm -f conftest.er1 | |
7638 | cat conftest.err >&5 | |
7862d3a8 | 7639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
7640 | (exit $ac_status); } && { |
7641 | test -z "$ac_c_werror_flag" || | |
7642 | test ! -s conftest.err | |
7643 | } && test -s conftest.$ac_objext; then | |
7862d3a8 AS |
7644 | ac_header_compiler=yes |
7645 | else | |
7646 | echo "$as_me: failed program was:" >&5 | |
7647 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7648 | ||
ca81d7a0 | 7649 | ac_header_compiler=no |
7862d3a8 | 7650 | fi |
ca81d7a0 JD |
7651 | |
7652 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7653 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
7654 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
7862d3a8 AS |
7655 | |
7656 | # Is the header present? | |
ca81d7a0 JD |
7657 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7658 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
7862d3a8 AS |
7659 | cat >conftest.$ac_ext <<_ACEOF |
7660 | /* confdefs.h. */ | |
7661 | _ACEOF | |
7662 | cat confdefs.h >>conftest.$ac_ext | |
7663 | cat >>conftest.$ac_ext <<_ACEOF | |
7664 | /* end confdefs.h. */ | |
7665 | #include <$ac_header> | |
7666 | _ACEOF | |
ca81d7a0 JD |
7667 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7668 | case "(($ac_try" in | |
7669 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7670 | *) ac_try_echo=$ac_try;; | |
7671 | esac | |
7672 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7673 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
7862d3a8 AS |
7674 | ac_status=$? |
7675 | grep -v '^ *+' conftest.er1 >conftest.err | |
7676 | rm -f conftest.er1 | |
7677 | cat conftest.err >&5 | |
7678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f053c89f CY |
7679 | (exit $ac_status); } >/dev/null && { |
7680 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7681 | test ! -s conftest.err | |
7682 | }; then | |
7862d3a8 AS |
7683 | ac_header_preproc=yes |
7684 | else | |
7685 | echo "$as_me: failed program was:" >&5 | |
7686 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7687 | ||
7688 | ac_header_preproc=no | |
7689 | fi | |
ca81d7a0 | 7690 | |
7862d3a8 | 7691 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
7692 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7693 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
7862d3a8 AS |
7694 | |
7695 | # So? What about this header? | |
edfaf76d LK |
7696 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
7697 | yes:no: ) | |
7862d3a8 AS |
7698 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
7699 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
7700 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
7701 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
7702 | ac_header_preproc=yes | |
7862d3a8 | 7703 | ;; |
edfaf76d | 7704 | no:yes:* ) |
7862d3a8 AS |
7705 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
7706 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
edfaf76d LK |
7707 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
7708 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7709 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7710 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7711 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7712 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7862d3a8 AS |
7713 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
7714 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
edfaf76d LK |
7715 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
7716 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 7717 | |
7862d3a8 AS |
7718 | ;; |
7719 | esac | |
ca81d7a0 JD |
7720 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7721 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7722 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
7862d3a8 AS |
7723 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7724 | else | |
edfaf76d | 7725 | eval "$as_ac_Header=\$ac_header_preproc" |
7862d3a8 | 7726 | fi |
ca81d7a0 JD |
7727 | ac_res=`eval echo '${'$as_ac_Header'}'` |
7728 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7729 | echo "${ECHO_T}$ac_res" >&6; } | |
7862d3a8 AS |
7730 | |
7731 | fi | |
7732 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
7733 | cat >>confdefs.h <<_ACEOF | |
7734 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7735 | _ACEOF | |
7736 | ||
7737 | fi | |
7738 | ||
7739 | done | |
7740 | ||
7741 | ||
7742 | for ac_header in net/if.h | |
7743 | do | |
7744 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
ca81d7a0 JD |
7745 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7746 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7747 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
7862d3a8 AS |
7748 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7749 | else | |
7750 | cat >conftest.$ac_ext <<_ACEOF | |
7751 | /* confdefs.h. */ | |
7752 | _ACEOF | |
7753 | cat confdefs.h >>conftest.$ac_ext | |
7754 | cat >>conftest.$ac_ext <<_ACEOF | |
7755 | /* end confdefs.h. */ | |
7756 | $ac_includes_default | |
7757 | #if HAVE_SYS_SOCKET_H | |
7758 | #include <sys/socket.h> | |
7759 | #endif | |
7760 | ||
7761 | #include <$ac_header> | |
7762 | _ACEOF | |
7763 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
7764 | if { (ac_try="$ac_compile" |
7765 | case "(($ac_try" in | |
7766 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7767 | *) ac_try_echo=$ac_try;; | |
7768 | esac | |
7769 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7770 | (eval "$ac_compile") 2>conftest.er1 | |
7862d3a8 | 7771 | ac_status=$? |
edfaf76d LK |
7772 | grep -v '^ *+' conftest.er1 >conftest.err |
7773 | rm -f conftest.er1 | |
7774 | cat conftest.err >&5 | |
7862d3a8 | 7775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
7776 | (exit $ac_status); } && { |
7777 | test -z "$ac_c_werror_flag" || | |
7778 | test ! -s conftest.err | |
7779 | } && test -s conftest.$ac_objext; then | |
7862d3a8 AS |
7780 | eval "$as_ac_Header=yes" |
7781 | else | |
7782 | echo "$as_me: failed program was:" >&5 | |
7783 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7784 | ||
ca81d7a0 | 7785 | eval "$as_ac_Header=no" |
7862d3a8 | 7786 | fi |
ca81d7a0 JD |
7787 | |
7788 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7862d3a8 | 7789 | fi |
ca81d7a0 JD |
7790 | ac_res=`eval echo '${'$as_ac_Header'}'` |
7791 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7792 | echo "${ECHO_T}$ac_res" >&6; } | |
7862d3a8 AS |
7793 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
7794 | cat >>confdefs.h <<_ACEOF | |
7795 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7796 | _ACEOF | |
7797 | ||
7798 | fi | |
7799 | ||
7800 | done | |
7801 | ||
7802 | ||
ca81d7a0 JD |
7803 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
7804 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } | |
98418dba | 7805 | if test "${ac_cv_struct_tm+set}" = set; then |
503d2be0 | 7806 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7397acc4 | 7807 | else |
503d2be0 | 7808 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
7809 | /* confdefs.h. */ |
7810 | _ACEOF | |
7811 | cat confdefs.h >>conftest.$ac_ext | |
7812 | cat >>conftest.$ac_ext <<_ACEOF | |
7813 | /* end confdefs.h. */ | |
98418dba CW |
7814 | #include <sys/types.h> |
7815 | #include <time.h> | |
7397acc4 | 7816 | |
503d2be0 AS |
7817 | int |
7818 | main () | |
7819 | { | |
f053c89f CY |
7820 | struct tm tm; |
7821 | int *p = &tm.tm_sec; | |
7822 | return !p; | |
503d2be0 AS |
7823 | ; |
7824 | return 0; | |
7825 | } | |
7826 | _ACEOF | |
7827 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
7828 | if { (ac_try="$ac_compile" |
7829 | case "(($ac_try" in | |
7830 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7831 | *) ac_try_echo=$ac_try;; | |
7832 | esac | |
7833 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7834 | (eval "$ac_compile") 2>conftest.er1 | |
503d2be0 | 7835 | ac_status=$? |
edfaf76d LK |
7836 | grep -v '^ *+' conftest.er1 >conftest.err |
7837 | rm -f conftest.er1 | |
7838 | cat conftest.err >&5 | |
c0d27fcc | 7839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
7840 | (exit $ac_status); } && { |
7841 | test -z "$ac_c_werror_flag" || | |
7842 | test ! -s conftest.err | |
7843 | } && test -s conftest.$ac_objext; then | |
35996d22 AS |
7844 | ac_cv_struct_tm=time.h |
7845 | else | |
503d2be0 | 7846 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
7847 | sed 's/^/| /' conftest.$ac_ext >&5 |
7848 | ||
ca81d7a0 | 7849 | ac_cv_struct_tm=sys/time.h |
7397acc4 | 7850 | fi |
ca81d7a0 JD |
7851 | |
7852 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7397acc4 | 7853 | fi |
ca81d7a0 JD |
7854 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
7855 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; } | |
98418dba | 7856 | if test $ac_cv_struct_tm = sys/time.h; then |
7397acc4 | 7857 | |
c0d27fcc | 7858 | cat >>confdefs.h <<\_ACEOF |
98418dba | 7859 | #define TM_IN_SYS_TIME 1 |
c0d27fcc | 7860 | _ACEOF |
7397acc4 DL |
7861 | |
7862 | fi | |
ba4481b5 | 7863 | |
ca81d7a0 JD |
7864 | { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
7865 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; } | |
98418dba | 7866 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
503d2be0 | 7867 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 7868 | else |
98418dba | 7869 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
7870 | /* confdefs.h. */ |
7871 | _ACEOF | |
7872 | cat confdefs.h >>conftest.$ac_ext | |
7873 | cat >>conftest.$ac_ext <<_ACEOF | |
7874 | /* end confdefs.h. */ | |
98418dba CW |
7875 | #include <sys/types.h> |
7876 | #include <$ac_cv_struct_tm> | |
ba4481b5 | 7877 | |
c0d27fcc | 7878 | |
98418dba CW |
7879 | int |
7880 | main () | |
7881 | { | |
7882 | static struct tm ac_aggr; | |
7883 | if (ac_aggr.tm_zone) | |
7884 | return 0; | |
7885 | ; | |
7886 | return 0; | |
7887 | } | |
7888 | _ACEOF | |
7889 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
7890 | if { (ac_try="$ac_compile" |
7891 | case "(($ac_try" in | |
7892 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7893 | *) ac_try_echo=$ac_try;; | |
7894 | esac | |
7895 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7896 | (eval "$ac_compile") 2>conftest.er1 | |
98418dba | 7897 | ac_status=$? |
edfaf76d LK |
7898 | grep -v '^ *+' conftest.er1 >conftest.err |
7899 | rm -f conftest.er1 | |
7900 | cat conftest.err >&5 | |
c0d27fcc | 7901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
7902 | (exit $ac_status); } && { |
7903 | test -z "$ac_c_werror_flag" || | |
7904 | test ! -s conftest.err | |
7905 | } && test -s conftest.$ac_objext; then | |
98418dba | 7906 | ac_cv_member_struct_tm_tm_zone=yes |
ba4481b5 | 7907 | else |
98418dba | 7908 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
7909 | sed 's/^/| /' conftest.$ac_ext >&5 |
7910 | ||
ca81d7a0 | 7911 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
7912 | /* confdefs.h. */ |
7913 | _ACEOF | |
7914 | cat confdefs.h >>conftest.$ac_ext | |
7915 | cat >>conftest.$ac_ext <<_ACEOF | |
7916 | /* end confdefs.h. */ | |
6bae0ccf DL |
7917 | #include <sys/types.h> |
7918 | #include <$ac_cv_struct_tm> | |
7919 | ||
7920 | ||
7921 | int | |
7922 | main () | |
7923 | { | |
7924 | static struct tm ac_aggr; | |
7925 | if (sizeof ac_aggr.tm_zone) | |
7926 | return 0; | |
7927 | ; | |
7928 | return 0; | |
7929 | } | |
7930 | _ACEOF | |
7931 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
7932 | if { (ac_try="$ac_compile" |
7933 | case "(($ac_try" in | |
7934 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7935 | *) ac_try_echo=$ac_try;; | |
7936 | esac | |
7937 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7938 | (eval "$ac_compile") 2>conftest.er1 | |
6bae0ccf | 7939 | ac_status=$? |
edfaf76d LK |
7940 | grep -v '^ *+' conftest.er1 >conftest.err |
7941 | rm -f conftest.er1 | |
7942 | cat conftest.err >&5 | |
6bae0ccf | 7943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
7944 | (exit $ac_status); } && { |
7945 | test -z "$ac_c_werror_flag" || | |
7946 | test ! -s conftest.err | |
7947 | } && test -s conftest.$ac_objext; then | |
6bae0ccf DL |
7948 | ac_cv_member_struct_tm_tm_zone=yes |
7949 | else | |
7950 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
7951 | sed 's/^/| /' conftest.$ac_ext >&5 |
7952 | ||
ca81d7a0 | 7953 | ac_cv_member_struct_tm_tm_zone=no |
ba4481b5 | 7954 | fi |
ca81d7a0 JD |
7955 | |
7956 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ba4481b5 | 7957 | fi |
ca81d7a0 JD |
7958 | |
7959 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6bae0ccf | 7960 | fi |
ca81d7a0 JD |
7961 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
7962 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; } | |
98418dba | 7963 | if test $ac_cv_member_struct_tm_tm_zone = yes; then |
503d2be0 | 7964 | |
c0d27fcc | 7965 | cat >>confdefs.h <<_ACEOF |
98418dba | 7966 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
c0d27fcc MR |
7967 | _ACEOF |
7968 | ||
ba4481b5 | 7969 | |
98418dba | 7970 | fi |
ba4481b5 | 7971 | |
98418dba | 7972 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
ba4481b5 | 7973 | |
c0d27fcc | 7974 | cat >>confdefs.h <<\_ACEOF |
98418dba | 7975 | #define HAVE_TM_ZONE 1 |
c0d27fcc | 7976 | _ACEOF |
ba4481b5 | 7977 | |
ba4481b5 | 7978 | else |
ca81d7a0 JD |
7979 | { echo "$as_me:$LINENO: checking whether tzname is declared" >&5 |
7980 | echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; } | |
7981 | if test "${ac_cv_have_decl_tzname+set}" = set; then | |
503d2be0 | 7982 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 7983 | else |
98418dba | 7984 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
7985 | /* confdefs.h. */ |
7986 | _ACEOF | |
7987 | cat confdefs.h >>conftest.$ac_ext | |
7988 | cat >>conftest.$ac_ext <<_ACEOF | |
7989 | /* end confdefs.h. */ | |
98418dba | 7990 | #include <time.h> |
98418dba | 7991 | |
98418dba CW |
7992 | int |
7993 | main () | |
7994 | { | |
ca81d7a0 | 7995 | #ifndef tzname |
f053c89f | 7996 | (void) tzname; |
ca81d7a0 JD |
7997 | #endif |
7998 | ||
98418dba CW |
7999 | ; |
8000 | return 0; | |
8001 | } | |
8002 | _ACEOF | |
ca81d7a0 JD |
8003 | rm -f conftest.$ac_objext |
8004 | if { (ac_try="$ac_compile" | |
8005 | case "(($ac_try" in | |
8006 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8007 | *) ac_try_echo=$ac_try;; | |
8008 | esac | |
8009 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8010 | (eval "$ac_compile") 2>conftest.er1 | |
98418dba | 8011 | ac_status=$? |
edfaf76d LK |
8012 | grep -v '^ *+' conftest.er1 >conftest.err |
8013 | rm -f conftest.er1 | |
8014 | cat conftest.err >&5 | |
c0d27fcc | 8015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
8016 | (exit $ac_status); } && { |
8017 | test -z "$ac_c_werror_flag" || | |
8018 | test ! -s conftest.err | |
8019 | } && test -s conftest.$ac_objext; then | |
ca81d7a0 | 8020 | ac_cv_have_decl_tzname=yes |
98418dba CW |
8021 | else |
8022 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
8023 | sed 's/^/| /' conftest.$ac_ext >&5 |
8024 | ||
ca81d7a0 | 8025 | ac_cv_have_decl_tzname=no |
ba4481b5 | 8026 | fi |
ca81d7a0 JD |
8027 | |
8028 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
98418dba | 8029 | fi |
ca81d7a0 JD |
8030 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5 |
8031 | echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; } | |
8032 | if test $ac_cv_have_decl_tzname = yes; then | |
ba4481b5 | 8033 | |
ca81d7a0 JD |
8034 | cat >>confdefs.h <<_ACEOF |
8035 | #define HAVE_DECL_TZNAME 1 | |
c0d27fcc | 8036 | _ACEOF |
503d2be0 | 8037 | |
ca81d7a0 JD |
8038 | |
8039 | else | |
8040 | cat >>confdefs.h <<_ACEOF | |
8041 | #define HAVE_DECL_TZNAME 0 | |
8042 | _ACEOF | |
8043 | ||
8044 | ||
98418dba | 8045 | fi |
503d2be0 | 8046 | |
ca81d7a0 JD |
8047 | |
8048 | { echo "$as_me:$LINENO: checking for tzname" >&5 | |
8049 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6; } | |
8050 | if test "${ac_cv_var_tzname+set}" = set; then | |
98418dba CW |
8051 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8052 | else | |
8053 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
8054 | /* confdefs.h. */ |
8055 | _ACEOF | |
8056 | cat confdefs.h >>conftest.$ac_ext | |
8057 | cat >>conftest.$ac_ext <<_ACEOF | |
8058 | /* end confdefs.h. */ | |
98418dba | 8059 | #include <time.h> |
ca81d7a0 JD |
8060 | #if !HAVE_DECL_TZNAME |
8061 | extern char *tzname[]; | |
8062 | #endif | |
b936fae4 | 8063 | |
98418dba CW |
8064 | int |
8065 | main () | |
8066 | { | |
ca81d7a0 | 8067 | return tzname[0][0]; |
98418dba CW |
8068 | ; |
8069 | return 0; | |
8070 | } | |
8071 | _ACEOF | |
ca81d7a0 JD |
8072 | rm -f conftest.$ac_objext conftest$ac_exeext |
8073 | if { (ac_try="$ac_link" | |
8074 | case "(($ac_try" in | |
8075 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8076 | *) ac_try_echo=$ac_try;; | |
8077 | esac | |
8078 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8079 | (eval "$ac_link") 2>conftest.er1 | |
98418dba | 8080 | ac_status=$? |
edfaf76d LK |
8081 | grep -v '^ *+' conftest.er1 >conftest.err |
8082 | rm -f conftest.er1 | |
8083 | cat conftest.err >&5 | |
c0d27fcc | 8084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
8085 | (exit $ac_status); } && { |
8086 | test -z "$ac_c_werror_flag" || | |
8087 | test ! -s conftest.err | |
8088 | } && test -s conftest$ac_exeext && | |
8089 | $as_test_x conftest$ac_exeext; then | |
ca81d7a0 | 8090 | ac_cv_var_tzname=yes |
98418dba CW |
8091 | else |
8092 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
8093 | sed 's/^/| /' conftest.$ac_ext >&5 |
8094 | ||
ca81d7a0 JD |
8095 | ac_cv_var_tzname=no |
8096 | fi | |
6bae0ccf | 8097 | |
f053c89f | 8098 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
ca81d7a0 JD |
8099 | conftest$ac_exeext conftest.$ac_ext |
8100 | fi | |
8101 | { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 | |
8102 | echo "${ECHO_T}$ac_cv_var_tzname" >&6; } | |
8103 | if test $ac_cv_var_tzname = yes; then | |
8104 | ||
8105 | cat >>confdefs.h <<\_ACEOF | |
8106 | #define HAVE_TZNAME 1 | |
8107 | _ACEOF | |
8108 | ||
8109 | fi | |
8110 | fi | |
8111 | ||
8112 | { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5 | |
8113 | echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; } | |
8114 | if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then | |
8115 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8116 | else | |
8117 | cat >conftest.$ac_ext <<_ACEOF | |
8118 | /* confdefs.h. */ | |
8119 | _ACEOF | |
8120 | cat confdefs.h >>conftest.$ac_ext | |
8121 | cat >>conftest.$ac_ext <<_ACEOF | |
8122 | /* end confdefs.h. */ | |
8123 | #include <time.h> | |
8124 | ||
8125 | int | |
8126 | main () | |
8127 | { | |
8128 | static struct tm ac_aggr; | |
8129 | if (ac_aggr.tm_gmtoff) | |
8130 | return 0; | |
8131 | ; | |
8132 | return 0; | |
8133 | } | |
8134 | _ACEOF | |
8135 | rm -f conftest.$ac_objext | |
8136 | if { (ac_try="$ac_compile" | |
8137 | case "(($ac_try" in | |
8138 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8139 | *) ac_try_echo=$ac_try;; | |
8140 | esac | |
8141 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8142 | (eval "$ac_compile") 2>conftest.er1 | |
8143 | ac_status=$? | |
8144 | grep -v '^ *+' conftest.er1 >conftest.err | |
8145 | rm -f conftest.er1 | |
8146 | cat conftest.err >&5 | |
8147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f053c89f CY |
8148 | (exit $ac_status); } && { |
8149 | test -z "$ac_c_werror_flag" || | |
8150 | test ! -s conftest.err | |
8151 | } && test -s conftest.$ac_objext; then | |
ca81d7a0 JD |
8152 | ac_cv_member_struct_tm_tm_gmtoff=yes |
8153 | else | |
8154 | echo "$as_me: failed program was:" >&5 | |
8155 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8156 | ||
8157 | cat >conftest.$ac_ext <<_ACEOF | |
8158 | /* confdefs.h. */ | |
8159 | _ACEOF | |
8160 | cat confdefs.h >>conftest.$ac_ext | |
8161 | cat >>conftest.$ac_ext <<_ACEOF | |
8162 | /* end confdefs.h. */ | |
8163 | #include <time.h> | |
8164 | ||
8165 | int | |
8166 | main () | |
8167 | { | |
8168 | static struct tm ac_aggr; | |
8169 | if (sizeof ac_aggr.tm_gmtoff) | |
6bae0ccf | 8170 | return 0; |
8799b3e4 CW |
8171 | ; |
8172 | return 0; | |
8173 | } | |
8174 | _ACEOF | |
6bae0ccf | 8175 | rm -f conftest.$ac_objext |
ca81d7a0 JD |
8176 | if { (ac_try="$ac_compile" |
8177 | case "(($ac_try" in | |
8178 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8179 | *) ac_try_echo=$ac_try;; | |
8180 | esac | |
8181 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8182 | (eval "$ac_compile") 2>conftest.er1 | |
8799b3e4 | 8183 | ac_status=$? |
edfaf76d LK |
8184 | grep -v '^ *+' conftest.er1 >conftest.err |
8185 | rm -f conftest.er1 | |
8186 | cat conftest.err >&5 | |
c0d27fcc | 8187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
8188 | (exit $ac_status); } && { |
8189 | test -z "$ac_c_werror_flag" || | |
8190 | test ! -s conftest.err | |
8191 | } && test -s conftest.$ac_objext; then | |
6bae0ccf | 8192 | ac_cv_member_struct_tm_tm_gmtoff=yes |
8799b3e4 CW |
8193 | else |
8194 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
8195 | sed 's/^/| /' conftest.$ac_ext >&5 |
8196 | ||
ca81d7a0 | 8197 | ac_cv_member_struct_tm_tm_gmtoff=no |
8799b3e4 | 8198 | fi |
ca81d7a0 JD |
8199 | |
8200 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6bae0ccf | 8201 | fi |
ca81d7a0 JD |
8202 | |
8203 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8799b3e4 | 8204 | fi |
ca81d7a0 JD |
8205 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5 |
8206 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; } | |
6bae0ccf DL |
8207 | if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then |
8208 | ||
8209 | cat >>confdefs.h <<\_ACEOF | |
8210 | #define HAVE_TM_GMTOFF 1 | |
8211 | _ACEOF | |
8212 | ||
8213 | fi | |
8214 | ||
ca81d7a0 JD |
8215 | { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5 |
8216 | echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; } | |
96f3a036 DL |
8217 | if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then |
8218 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8219 | else | |
8220 | cat >conftest.$ac_ext <<_ACEOF | |
96f3a036 DL |
8221 | /* confdefs.h. */ |
8222 | _ACEOF | |
8223 | cat confdefs.h >>conftest.$ac_ext | |
8224 | cat >>conftest.$ac_ext <<_ACEOF | |
8225 | /* end confdefs.h. */ | |
7862d3a8 AS |
8226 | $ac_includes_default |
8227 | #if HAVE_SYS_SOCKET_H | |
8228 | #include <sys/socket.h> | |
8229 | #endif | |
8230 | #if HAVE_NET_IF_H | |
96f3a036 | 8231 | #include <net/if.h> |
7862d3a8 | 8232 | #endif |
96f3a036 DL |
8233 | |
8234 | int | |
8235 | main () | |
8236 | { | |
8237 | static struct ifreq ac_aggr; | |
8238 | if (ac_aggr.ifr_flags) | |
8239 | return 0; | |
8240 | ; | |
8241 | return 0; | |
8242 | } | |
8243 | _ACEOF | |
8244 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
8245 | if { (ac_try="$ac_compile" |
8246 | case "(($ac_try" in | |
8247 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8248 | *) ac_try_echo=$ac_try;; | |
8249 | esac | |
8250 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8251 | (eval "$ac_compile") 2>conftest.er1 | |
96f3a036 | 8252 | ac_status=$? |
edfaf76d LK |
8253 | grep -v '^ *+' conftest.er1 >conftest.err |
8254 | rm -f conftest.er1 | |
8255 | cat conftest.err >&5 | |
96f3a036 | 8256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
8257 | (exit $ac_status); } && { |
8258 | test -z "$ac_c_werror_flag" || | |
8259 | test ! -s conftest.err | |
8260 | } && test -s conftest.$ac_objext; then | |
96f3a036 DL |
8261 | ac_cv_member_struct_ifreq_ifr_flags=yes |
8262 | else | |
8263 | echo "$as_me: failed program was:" >&5 | |
8264 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8265 | ||
ca81d7a0 | 8266 | cat >conftest.$ac_ext <<_ACEOF |
96f3a036 DL |
8267 | /* confdefs.h. */ |
8268 | _ACEOF | |
8269 | cat confdefs.h >>conftest.$ac_ext | |
8270 | cat >>conftest.$ac_ext <<_ACEOF | |
8271 | /* end confdefs.h. */ | |
7862d3a8 AS |
8272 | $ac_includes_default |
8273 | #if HAVE_SYS_SOCKET_H | |
8274 | #include <sys/socket.h> | |
8275 | #endif | |
8276 | #if HAVE_NET_IF_H | |
96f3a036 | 8277 | #include <net/if.h> |
7862d3a8 | 8278 | #endif |
96f3a036 DL |
8279 | |
8280 | int | |
8281 | main () | |
8282 | { | |
8283 | static struct ifreq ac_aggr; | |
8284 | if (sizeof ac_aggr.ifr_flags) | |
8285 | return 0; | |
8286 | ; | |
8287 | return 0; | |
8288 | } | |
8289 | _ACEOF | |
8290 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
8291 | if { (ac_try="$ac_compile" |
8292 | case "(($ac_try" in | |
8293 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8294 | *) ac_try_echo=$ac_try;; | |
8295 | esac | |
8296 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8297 | (eval "$ac_compile") 2>conftest.er1 | |
96f3a036 | 8298 | ac_status=$? |
edfaf76d LK |
8299 | grep -v '^ *+' conftest.er1 >conftest.err |
8300 | rm -f conftest.er1 | |
8301 | cat conftest.err >&5 | |
96f3a036 | 8302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
8303 | (exit $ac_status); } && { |
8304 | test -z "$ac_c_werror_flag" || | |
8305 | test ! -s conftest.err | |
8306 | } && test -s conftest.$ac_objext; then | |
96f3a036 DL |
8307 | ac_cv_member_struct_ifreq_ifr_flags=yes |
8308 | else | |
8309 | echo "$as_me: failed program was:" >&5 | |
8310 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8311 | ||
ca81d7a0 | 8312 | ac_cv_member_struct_ifreq_ifr_flags=no |
96f3a036 | 8313 | fi |
ca81d7a0 JD |
8314 | |
8315 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
96f3a036 | 8316 | fi |
ca81d7a0 JD |
8317 | |
8318 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
96f3a036 | 8319 | fi |
ca81d7a0 JD |
8320 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5 |
8321 | echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; } | |
96f3a036 DL |
8322 | if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then |
8323 | ||
8324 | cat >>confdefs.h <<_ACEOF | |
8325 | #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1 | |
8326 | _ACEOF | |
8327 | ||
8328 | ||
8329 | fi | |
ca81d7a0 JD |
8330 | { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5 |
8331 | echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; } | |
96f3a036 DL |
8332 | if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then |
8333 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8334 | else | |
8335 | cat >conftest.$ac_ext <<_ACEOF | |
96f3a036 DL |
8336 | /* confdefs.h. */ |
8337 | _ACEOF | |
8338 | cat confdefs.h >>conftest.$ac_ext | |
8339 | cat >>conftest.$ac_ext <<_ACEOF | |
8340 | /* end confdefs.h. */ | |
7862d3a8 AS |
8341 | $ac_includes_default |
8342 | #if HAVE_SYS_SOCKET_H | |
8343 | #include <sys/socket.h> | |
8344 | #endif | |
8345 | #if HAVE_NET_IF_H | |
96f3a036 | 8346 | #include <net/if.h> |
7862d3a8 | 8347 | #endif |
96f3a036 DL |
8348 | |
8349 | int | |
8350 | main () | |
8351 | { | |
8352 | static struct ifreq ac_aggr; | |
8353 | if (ac_aggr.ifr_hwaddr) | |
8354 | return 0; | |
8355 | ; | |
8356 | return 0; | |
8357 | } | |
8358 | _ACEOF | |
8359 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
8360 | if { (ac_try="$ac_compile" |
8361 | case "(($ac_try" in | |
8362 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8363 | *) ac_try_echo=$ac_try;; | |
8364 | esac | |
8365 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8366 | (eval "$ac_compile") 2>conftest.er1 | |
96f3a036 | 8367 | ac_status=$? |
edfaf76d LK |
8368 | grep -v '^ *+' conftest.er1 >conftest.err |
8369 | rm -f conftest.er1 | |
8370 | cat conftest.err >&5 | |
96f3a036 | 8371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
8372 | (exit $ac_status); } && { |
8373 | test -z "$ac_c_werror_flag" || | |
8374 | test ! -s conftest.err | |
8375 | } && test -s conftest.$ac_objext; then | |
96f3a036 DL |
8376 | ac_cv_member_struct_ifreq_ifr_hwaddr=yes |
8377 | else | |
8378 | echo "$as_me: failed program was:" >&5 | |
8379 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8380 | ||
ca81d7a0 | 8381 | cat >conftest.$ac_ext <<_ACEOF |
96f3a036 DL |
8382 | /* confdefs.h. */ |
8383 | _ACEOF | |
8384 | cat confdefs.h >>conftest.$ac_ext | |
8385 | cat >>conftest.$ac_ext <<_ACEOF | |
8386 | /* end confdefs.h. */ | |
7862d3a8 AS |
8387 | $ac_includes_default |
8388 | #if HAVE_SYS_SOCKET_H | |
8389 | #include <sys/socket.h> | |
8390 | #endif | |
8391 | #if HAVE_NET_IF_H | |
96f3a036 | 8392 | #include <net/if.h> |
7862d3a8 | 8393 | #endif |
96f3a036 DL |
8394 | |
8395 | int | |
8396 | main () | |
8397 | { | |
8398 | static struct ifreq ac_aggr; | |
8399 | if (sizeof ac_aggr.ifr_hwaddr) | |
8400 | return 0; | |
8401 | ; | |
8402 | return 0; | |
8403 | } | |
8404 | _ACEOF | |
8405 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
8406 | if { (ac_try="$ac_compile" |
8407 | case "(($ac_try" in | |
8408 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8409 | *) ac_try_echo=$ac_try;; | |
8410 | esac | |
8411 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8412 | (eval "$ac_compile") 2>conftest.er1 | |
96f3a036 | 8413 | ac_status=$? |
edfaf76d LK |
8414 | grep -v '^ *+' conftest.er1 >conftest.err |
8415 | rm -f conftest.er1 | |
8416 | cat conftest.err >&5 | |
96f3a036 | 8417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
8418 | (exit $ac_status); } && { |
8419 | test -z "$ac_c_werror_flag" || | |
8420 | test ! -s conftest.err | |
8421 | } && test -s conftest.$ac_objext; then | |
96f3a036 DL |
8422 | ac_cv_member_struct_ifreq_ifr_hwaddr=yes |
8423 | else | |
8424 | echo "$as_me: failed program was:" >&5 | |
8425 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8426 | ||
ca81d7a0 | 8427 | ac_cv_member_struct_ifreq_ifr_hwaddr=no |
96f3a036 | 8428 | fi |
ca81d7a0 JD |
8429 | |
8430 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
96f3a036 | 8431 | fi |
ca81d7a0 JD |
8432 | |
8433 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
96f3a036 | 8434 | fi |
ca81d7a0 JD |
8435 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5 |
8436 | echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; } | |
96f3a036 DL |
8437 | if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then |
8438 | ||
8439 | cat >>confdefs.h <<_ACEOF | |
8440 | #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1 | |
8441 | _ACEOF | |
8442 | ||
8443 | ||
8444 | fi | |
ca81d7a0 JD |
8445 | { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5 |
8446 | echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; } | |
96f3a036 DL |
8447 | if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then |
8448 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8449 | else | |
8450 | cat >conftest.$ac_ext <<_ACEOF | |
96f3a036 DL |
8451 | /* confdefs.h. */ |
8452 | _ACEOF | |
8453 | cat confdefs.h >>conftest.$ac_ext | |
8454 | cat >>conftest.$ac_ext <<_ACEOF | |
8455 | /* end confdefs.h. */ | |
7862d3a8 AS |
8456 | $ac_includes_default |
8457 | #if HAVE_SYS_SOCKET_H | |
8458 | #include <sys/socket.h> | |
8459 | #endif | |
8460 | #if HAVE_NET_IF_H | |
96f3a036 | 8461 | #include <net/if.h> |
7862d3a8 | 8462 | #endif |
96f3a036 DL |
8463 | |
8464 | int | |
8465 | main () | |
8466 | { | |
8467 | static struct ifreq ac_aggr; | |
8468 | if (ac_aggr.ifr_netmask) | |
8469 | return 0; | |
8470 | ; | |
8471 | return 0; | |
8472 | } | |
8473 | _ACEOF | |
8474 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
8475 | if { (ac_try="$ac_compile" |
8476 | case "(($ac_try" in | |
8477 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8478 | *) ac_try_echo=$ac_try;; | |
8479 | esac | |
8480 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8481 | (eval "$ac_compile") 2>conftest.er1 | |
96f3a036 | 8482 | ac_status=$? |
edfaf76d LK |
8483 | grep -v '^ *+' conftest.er1 >conftest.err |
8484 | rm -f conftest.er1 | |
8485 | cat conftest.err >&5 | |
96f3a036 | 8486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
8487 | (exit $ac_status); } && { |
8488 | test -z "$ac_c_werror_flag" || | |
8489 | test ! -s conftest.err | |
8490 | } && test -s conftest.$ac_objext; then | |
96f3a036 DL |
8491 | ac_cv_member_struct_ifreq_ifr_netmask=yes |
8492 | else | |
8493 | echo "$as_me: failed program was:" >&5 | |
8494 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8495 | ||
ca81d7a0 | 8496 | cat >conftest.$ac_ext <<_ACEOF |
96f3a036 DL |
8497 | /* confdefs.h. */ |
8498 | _ACEOF | |
8499 | cat confdefs.h >>conftest.$ac_ext | |
8500 | cat >>conftest.$ac_ext <<_ACEOF | |
8501 | /* end confdefs.h. */ | |
7862d3a8 AS |
8502 | $ac_includes_default |
8503 | #if HAVE_SYS_SOCKET_H | |
8504 | #include <sys/socket.h> | |
8505 | #endif | |
8506 | #if HAVE_NET_IF_H | |
96f3a036 | 8507 | #include <net/if.h> |
7862d3a8 | 8508 | #endif |
96f3a036 DL |
8509 | |
8510 | int | |
8511 | main () | |
8512 | { | |
8513 | static struct ifreq ac_aggr; | |
8514 | if (sizeof ac_aggr.ifr_netmask) | |
8515 | return 0; | |
8516 | ; | |
8517 | return 0; | |
8518 | } | |
8519 | _ACEOF | |
8520 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
8521 | if { (ac_try="$ac_compile" |
8522 | case "(($ac_try" in | |
8523 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8524 | *) ac_try_echo=$ac_try;; | |
8525 | esac | |
8526 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8527 | (eval "$ac_compile") 2>conftest.er1 | |
96f3a036 | 8528 | ac_status=$? |
edfaf76d LK |
8529 | grep -v '^ *+' conftest.er1 >conftest.err |
8530 | rm -f conftest.er1 | |
8531 | cat conftest.err >&5 | |
96f3a036 | 8532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
8533 | (exit $ac_status); } && { |
8534 | test -z "$ac_c_werror_flag" || | |
8535 | test ! -s conftest.err | |
8536 | } && test -s conftest.$ac_objext; then | |
96f3a036 DL |
8537 | ac_cv_member_struct_ifreq_ifr_netmask=yes |
8538 | else | |
8539 | echo "$as_me: failed program was:" >&5 | |
8540 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8541 | ||
ca81d7a0 | 8542 | ac_cv_member_struct_ifreq_ifr_netmask=no |
96f3a036 | 8543 | fi |
ca81d7a0 JD |
8544 | |
8545 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
96f3a036 | 8546 | fi |
ca81d7a0 JD |
8547 | |
8548 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
96f3a036 | 8549 | fi |
ca81d7a0 JD |
8550 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5 |
8551 | echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; } | |
96f3a036 DL |
8552 | if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then |
8553 | ||
8554 | cat >>confdefs.h <<_ACEOF | |
8555 | #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1 | |
8556 | _ACEOF | |
8557 | ||
8558 | ||
8559 | fi | |
ca81d7a0 JD |
8560 | { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5 |
8561 | echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; } | |
96f3a036 DL |
8562 | if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then |
8563 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8564 | else | |
8565 | cat >conftest.$ac_ext <<_ACEOF | |
96f3a036 DL |
8566 | /* confdefs.h. */ |
8567 | _ACEOF | |
8568 | cat confdefs.h >>conftest.$ac_ext | |
8569 | cat >>conftest.$ac_ext <<_ACEOF | |
8570 | /* end confdefs.h. */ | |
7862d3a8 AS |
8571 | $ac_includes_default |
8572 | #if HAVE_SYS_SOCKET_H | |
8573 | #include <sys/socket.h> | |
8574 | #endif | |
8575 | #if HAVE_NET_IF_H | |
96f3a036 | 8576 | #include <net/if.h> |
7862d3a8 | 8577 | #endif |
96f3a036 DL |
8578 | |
8579 | int | |
8580 | main () | |
8581 | { | |
8582 | static struct ifreq ac_aggr; | |
8583 | if (ac_aggr.ifr_broadaddr) | |
8584 | return 0; | |
8585 | ; | |
8586 | return 0; | |
8587 | } | |
8588 | _ACEOF | |
8589 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
8590 | if { (ac_try="$ac_compile" |
8591 | case "(($ac_try" in | |
8592 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8593 | *) ac_try_echo=$ac_try;; | |
8594 | esac | |
8595 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8596 | (eval "$ac_compile") 2>conftest.er1 | |
96f3a036 | 8597 | ac_status=$? |
edfaf76d LK |
8598 | grep -v '^ *+' conftest.er1 >conftest.err |
8599 | rm -f conftest.er1 | |
8600 | cat conftest.err >&5 | |
96f3a036 | 8601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
8602 | (exit $ac_status); } && { |
8603 | test -z "$ac_c_werror_flag" || | |
8604 | test ! -s conftest.err | |
8605 | } && test -s conftest.$ac_objext; then | |
96f3a036 DL |
8606 | ac_cv_member_struct_ifreq_ifr_broadaddr=yes |
8607 | else | |
8608 | echo "$as_me: failed program was:" >&5 | |
8609 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8610 | ||
ca81d7a0 | 8611 | cat >conftest.$ac_ext <<_ACEOF |
96f3a036 DL |
8612 | /* confdefs.h. */ |
8613 | _ACEOF | |
8614 | cat confdefs.h >>conftest.$ac_ext | |
8615 | cat >>conftest.$ac_ext <<_ACEOF | |
8616 | /* end confdefs.h. */ | |
7862d3a8 AS |
8617 | $ac_includes_default |
8618 | #if HAVE_SYS_SOCKET_H | |
8619 | #include <sys/socket.h> | |
8620 | #endif | |
8621 | #if HAVE_NET_IF_H | |
96f3a036 | 8622 | #include <net/if.h> |
7862d3a8 | 8623 | #endif |
96f3a036 DL |
8624 | |
8625 | int | |
8626 | main () | |
8627 | { | |
8628 | static struct ifreq ac_aggr; | |
8629 | if (sizeof ac_aggr.ifr_broadaddr) | |
8630 | return 0; | |
8631 | ; | |
8632 | return 0; | |
8633 | } | |
8634 | _ACEOF | |
8635 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
8636 | if { (ac_try="$ac_compile" |
8637 | case "(($ac_try" in | |
8638 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8639 | *) ac_try_echo=$ac_try;; | |
8640 | esac | |
8641 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8642 | (eval "$ac_compile") 2>conftest.er1 | |
96f3a036 | 8643 | ac_status=$? |
edfaf76d LK |
8644 | grep -v '^ *+' conftest.er1 >conftest.err |
8645 | rm -f conftest.er1 | |
8646 | cat conftest.err >&5 | |
96f3a036 | 8647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
8648 | (exit $ac_status); } && { |
8649 | test -z "$ac_c_werror_flag" || | |
8650 | test ! -s conftest.err | |
8651 | } && test -s conftest.$ac_objext; then | |
96f3a036 DL |
8652 | ac_cv_member_struct_ifreq_ifr_broadaddr=yes |
8653 | else | |
8654 | echo "$as_me: failed program was:" >&5 | |
8655 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8656 | ||
ca81d7a0 | 8657 | ac_cv_member_struct_ifreq_ifr_broadaddr=no |
96f3a036 | 8658 | fi |
ca81d7a0 JD |
8659 | |
8660 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
96f3a036 | 8661 | fi |
ca81d7a0 JD |
8662 | |
8663 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
96f3a036 | 8664 | fi |
ca81d7a0 JD |
8665 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5 |
8666 | echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; } | |
96f3a036 DL |
8667 | if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then |
8668 | ||
8669 | cat >>confdefs.h <<_ACEOF | |
8670 | #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1 | |
8671 | _ACEOF | |
8672 | ||
8673 | ||
8674 | fi | |
ca81d7a0 JD |
8675 | { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5 |
8676 | echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; } | |
96f3a036 DL |
8677 | if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then |
8678 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8679 | else | |
8680 | cat >conftest.$ac_ext <<_ACEOF | |
96f3a036 DL |
8681 | /* confdefs.h. */ |
8682 | _ACEOF | |
8683 | cat confdefs.h >>conftest.$ac_ext | |
8684 | cat >>conftest.$ac_ext <<_ACEOF | |
8685 | /* end confdefs.h. */ | |
7862d3a8 AS |
8686 | $ac_includes_default |
8687 | #if HAVE_SYS_SOCKET_H | |
8688 | #include <sys/socket.h> | |
8689 | #endif | |
8690 | #if HAVE_NET_IF_H | |
96f3a036 | 8691 | #include <net/if.h> |
7862d3a8 | 8692 | #endif |
96f3a036 DL |
8693 | |
8694 | int | |
8695 | main () | |
8696 | { | |
8697 | static struct ifreq ac_aggr; | |
8698 | if (ac_aggr.ifr_addr) | |
8699 | return 0; | |
8700 | ; | |
8701 | return 0; | |
8702 | } | |
8703 | _ACEOF | |
8704 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
8705 | if { (ac_try="$ac_compile" |
8706 | case "(($ac_try" in | |
8707 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8708 | *) ac_try_echo=$ac_try;; | |
8709 | esac | |
8710 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8711 | (eval "$ac_compile") 2>conftest.er1 | |
96f3a036 | 8712 | ac_status=$? |
edfaf76d LK |
8713 | grep -v '^ *+' conftest.er1 >conftest.err |
8714 | rm -f conftest.er1 | |
8715 | cat conftest.err >&5 | |
96f3a036 | 8716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
8717 | (exit $ac_status); } && { |
8718 | test -z "$ac_c_werror_flag" || | |
8719 | test ! -s conftest.err | |
8720 | } && test -s conftest.$ac_objext; then | |
96f3a036 DL |
8721 | ac_cv_member_struct_ifreq_ifr_addr=yes |
8722 | else | |
8723 | echo "$as_me: failed program was:" >&5 | |
8724 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8725 | ||
ca81d7a0 | 8726 | cat >conftest.$ac_ext <<_ACEOF |
96f3a036 DL |
8727 | /* confdefs.h. */ |
8728 | _ACEOF | |
8729 | cat confdefs.h >>conftest.$ac_ext | |
8730 | cat >>conftest.$ac_ext <<_ACEOF | |
8731 | /* end confdefs.h. */ | |
7862d3a8 AS |
8732 | $ac_includes_default |
8733 | #if HAVE_SYS_SOCKET_H | |
8734 | #include <sys/socket.h> | |
8735 | #endif | |
8736 | #if HAVE_NET_IF_H | |
96f3a036 | 8737 | #include <net/if.h> |
7862d3a8 | 8738 | #endif |
96f3a036 DL |
8739 | |
8740 | int | |
8741 | main () | |
8742 | { | |
8743 | static struct ifreq ac_aggr; | |
8744 | if (sizeof ac_aggr.ifr_addr) | |
8745 | return 0; | |
8746 | ; | |
8747 | return 0; | |
8748 | } | |
8749 | _ACEOF | |
8750 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
8751 | if { (ac_try="$ac_compile" |
8752 | case "(($ac_try" in | |
8753 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8754 | *) ac_try_echo=$ac_try;; | |
8755 | esac | |
8756 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8757 | (eval "$ac_compile") 2>conftest.er1 | |
96f3a036 | 8758 | ac_status=$? |
edfaf76d LK |
8759 | grep -v '^ *+' conftest.er1 >conftest.err |
8760 | rm -f conftest.er1 | |
8761 | cat conftest.err >&5 | |
96f3a036 | 8762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
8763 | (exit $ac_status); } && { |
8764 | test -z "$ac_c_werror_flag" || | |
8765 | test ! -s conftest.err | |
8766 | } && test -s conftest.$ac_objext; then | |
96f3a036 DL |
8767 | ac_cv_member_struct_ifreq_ifr_addr=yes |
8768 | else | |
8769 | echo "$as_me: failed program was:" >&5 | |
8770 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8771 | ||
ca81d7a0 | 8772 | ac_cv_member_struct_ifreq_ifr_addr=no |
96f3a036 | 8773 | fi |
ca81d7a0 JD |
8774 | |
8775 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
96f3a036 | 8776 | fi |
ca81d7a0 JD |
8777 | |
8778 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
96f3a036 | 8779 | fi |
ca81d7a0 JD |
8780 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5 |
8781 | echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; } | |
96f3a036 DL |
8782 | if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then |
8783 | ||
8784 | cat >>confdefs.h <<_ACEOF | |
8785 | #define HAVE_STRUCT_IFREQ_IFR_ADDR 1 | |
8786 | _ACEOF | |
8787 | ||
8788 | ||
8789 | fi | |
8790 | ||
8799b3e4 | 8791 | |
8799b3e4 | 8792 | |
ca81d7a0 JD |
8793 | { echo "$as_me:$LINENO: checking for function prototypes" >&5 |
8794 | echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; } | |
8795 | if test "$ac_cv_prog_cc_c89" != no; then | |
8796 | { echo "$as_me:$LINENO: result: yes" >&5 | |
8797 | echo "${ECHO_T}yes" >&6; } | |
98418dba | 8798 | |
c0d27fcc | 8799 | cat >>confdefs.h <<\_ACEOF |
98418dba | 8800 | #define PROTOTYPES 1 |
c0d27fcc MR |
8801 | _ACEOF |
8802 | ||
8803 | ||
8804 | cat >>confdefs.h <<\_ACEOF | |
8805 | #define __PROTOTYPES 1 | |
8806 | _ACEOF | |
98418dba CW |
8807 | |
8808 | else | |
ca81d7a0 JD |
8809 | { echo "$as_me:$LINENO: result: no" >&5 |
8810 | echo "${ECHO_T}no" >&6; } | |
98418dba CW |
8811 | fi |
8812 | ||
ca81d7a0 JD |
8813 | { echo "$as_me:$LINENO: checking for working volatile" >&5 |
8814 | echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; } | |
98418dba CW |
8815 | if test "${ac_cv_c_volatile+set}" = set; then |
8816 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8817 | else | |
8818 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
8819 | /* confdefs.h. */ |
8820 | _ACEOF | |
8821 | cat confdefs.h >>conftest.$ac_ext | |
8822 | cat >>conftest.$ac_ext <<_ACEOF | |
8823 | /* end confdefs.h. */ | |
98418dba | 8824 | |
98418dba CW |
8825 | int |
8826 | main () | |
8827 | { | |
8828 | ||
8829 | volatile int x; | |
ca81d7a0 JD |
8830 | int * volatile y = (int *) 0; |
8831 | return !x && !y; | |
98418dba CW |
8832 | ; |
8833 | return 0; | |
8834 | } | |
8835 | _ACEOF | |
8836 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
8837 | if { (ac_try="$ac_compile" |
8838 | case "(($ac_try" in | |
8839 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8840 | *) ac_try_echo=$ac_try;; | |
8841 | esac | |
8842 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8843 | (eval "$ac_compile") 2>conftest.er1 | |
98418dba | 8844 | ac_status=$? |
edfaf76d LK |
8845 | grep -v '^ *+' conftest.er1 >conftest.err |
8846 | rm -f conftest.er1 | |
8847 | cat conftest.err >&5 | |
c0d27fcc | 8848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
8849 | (exit $ac_status); } && { |
8850 | test -z "$ac_c_werror_flag" || | |
8851 | test ! -s conftest.err | |
8852 | } && test -s conftest.$ac_objext; then | |
98418dba CW |
8853 | ac_cv_c_volatile=yes |
8854 | else | |
8855 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
8856 | sed 's/^/| /' conftest.$ac_ext >&5 |
8857 | ||
ca81d7a0 | 8858 | ac_cv_c_volatile=no |
98418dba | 8859 | fi |
ca81d7a0 JD |
8860 | |
8861 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
98418dba | 8862 | fi |
ca81d7a0 JD |
8863 | { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5 |
8864 | echo "${ECHO_T}$ac_cv_c_volatile" >&6; } | |
98418dba CW |
8865 | if test $ac_cv_c_volatile = no; then |
8866 | ||
c0d27fcc | 8867 | cat >>confdefs.h <<\_ACEOF |
98418dba | 8868 | #define volatile |
c0d27fcc | 8869 | _ACEOF |
98418dba CW |
8870 | |
8871 | fi | |
8872 | ||
ca81d7a0 JD |
8873 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
8874 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } | |
98418dba CW |
8875 | if test "${ac_cv_c_const+set}" = set; then |
8876 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8877 | else | |
8878 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
8879 | /* confdefs.h. */ |
8880 | _ACEOF | |
8881 | cat confdefs.h >>conftest.$ac_ext | |
8882 | cat >>conftest.$ac_ext <<_ACEOF | |
8883 | /* end confdefs.h. */ | |
98418dba | 8884 | |
98418dba CW |
8885 | int |
8886 | main () | |
8887 | { | |
8888 | /* FIXME: Include the comments suggested by Paul. */ | |
8889 | #ifndef __cplusplus | |
8890 | /* Ultrix mips cc rejects this. */ | |
8891 | typedef int charset[2]; | |
f053c89f | 8892 | const charset cs; |
98418dba | 8893 | /* SunOS 4.1.1 cc rejects this. */ |
f053c89f CY |
8894 | char const *const *pcpcc; |
8895 | char **ppc; | |
98418dba CW |
8896 | /* NEC SVR4.0.2 mips cc rejects this. */ |
8897 | struct point {int x, y;}; | |
8898 | static struct point const zero = {0,0}; | |
8899 | /* AIX XL C 1.02.0.0 rejects this. | |
8900 | It does not let you subtract one const X* pointer from another in | |
8901 | an arm of an if-expression whose if-part is not a constant | |
8902 | expression */ | |
8903 | const char *g = "string"; | |
f053c89f | 8904 | pcpcc = &g + (g ? g-g : 0); |
98418dba | 8905 | /* HPUX 7.0 cc rejects these. */ |
f053c89f CY |
8906 | ++pcpcc; |
8907 | ppc = (char**) pcpcc; | |
8908 | pcpcc = (char const *const *) ppc; | |
98418dba CW |
8909 | { /* SCO 3.2v4 cc rejects this. */ |
8910 | char *t; | |
8911 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
8912 | ||
8913 | *t++ = 0; | |
ca81d7a0 | 8914 | if (s) return 0; |
98418dba CW |
8915 | } |
8916 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
8917 | int x[] = {25, 17}; | |
8918 | const int *foo = &x[0]; | |
8919 | ++foo; | |
8920 | } | |
8921 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
8922 | typedef const int *iptr; | |
8923 | iptr p = 0; | |
8924 | ++p; | |
8925 | } | |
8926 | { /* AIX XL C 1.02.0.0 rejects this saying | |
8927 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
8928 | struct s { int j; const int *ap[3]; }; | |
8929 | struct s *b; b->j = 5; | |
8930 | } | |
8931 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
8932 | const int foo = 10; | |
ca81d7a0 | 8933 | if (!foo) return 0; |
98418dba | 8934 | } |
f053c89f | 8935 | return !cs[0] && !zero.x; |
98418dba CW |
8936 | #endif |
8937 | ||
8938 | ; | |
8939 | return 0; | |
8940 | } | |
8941 | _ACEOF | |
8942 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
8943 | if { (ac_try="$ac_compile" |
8944 | case "(($ac_try" in | |
8945 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8946 | *) ac_try_echo=$ac_try;; | |
8947 | esac | |
8948 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8949 | (eval "$ac_compile") 2>conftest.er1 | |
98418dba | 8950 | ac_status=$? |
edfaf76d LK |
8951 | grep -v '^ *+' conftest.er1 >conftest.err |
8952 | rm -f conftest.er1 | |
8953 | cat conftest.err >&5 | |
c0d27fcc | 8954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
8955 | (exit $ac_status); } && { |
8956 | test -z "$ac_c_werror_flag" || | |
8957 | test ! -s conftest.err | |
8958 | } && test -s conftest.$ac_objext; then | |
98418dba CW |
8959 | ac_cv_c_const=yes |
8960 | else | |
8961 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
8962 | sed 's/^/| /' conftest.$ac_ext >&5 |
8963 | ||
ca81d7a0 | 8964 | ac_cv_c_const=no |
98418dba | 8965 | fi |
ca81d7a0 JD |
8966 | |
8967 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
98418dba | 8968 | fi |
ca81d7a0 JD |
8969 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
8970 | echo "${ECHO_T}$ac_cv_c_const" >&6; } | |
98418dba CW |
8971 | if test $ac_cv_c_const = no; then |
8972 | ||
c0d27fcc | 8973 | cat >>confdefs.h <<\_ACEOF |
98418dba | 8974 | #define const |
c0d27fcc | 8975 | _ACEOF |
98418dba CW |
8976 | |
8977 | fi | |
8978 | ||
ca81d7a0 JD |
8979 | { echo "$as_me:$LINENO: checking for void * support" >&5 |
8980 | echo $ECHO_N "checking for void * support... $ECHO_C" >&6; } | |
98418dba CW |
8981 | if test "${emacs_cv_void_star+set}" = set; then |
8982 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8983 | else | |
8984 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
8985 | /* confdefs.h. */ |
8986 | _ACEOF | |
8987 | cat confdefs.h >>conftest.$ac_ext | |
8988 | cat >>conftest.$ac_ext <<_ACEOF | |
8989 | /* end confdefs.h. */ | |
98418dba | 8990 | |
98418dba CW |
8991 | int |
8992 | main () | |
8993 | { | |
8994 | void * foo; | |
8995 | ; | |
8996 | return 0; | |
8997 | } | |
8998 | _ACEOF | |
8999 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
9000 | if { (ac_try="$ac_compile" |
9001 | case "(($ac_try" in | |
9002 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9003 | *) ac_try_echo=$ac_try;; | |
9004 | esac | |
9005 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9006 | (eval "$ac_compile") 2>conftest.er1 | |
98418dba | 9007 | ac_status=$? |
edfaf76d LK |
9008 | grep -v '^ *+' conftest.er1 >conftest.err |
9009 | rm -f conftest.er1 | |
9010 | cat conftest.err >&5 | |
c0d27fcc | 9011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
9012 | (exit $ac_status); } && { |
9013 | test -z "$ac_c_werror_flag" || | |
9014 | test ! -s conftest.err | |
9015 | } && test -s conftest.$ac_objext; then | |
98418dba CW |
9016 | emacs_cv_void_star=yes |
9017 | else | |
9018 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
9019 | sed 's/^/| /' conftest.$ac_ext >&5 |
9020 | ||
ca81d7a0 | 9021 | emacs_cv_void_star=no |
98418dba | 9022 | fi |
ca81d7a0 JD |
9023 | |
9024 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
98418dba | 9025 | fi |
ca81d7a0 JD |
9026 | { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5 |
9027 | echo "${ECHO_T}$emacs_cv_void_star" >&6; } | |
98418dba | 9028 | if test $emacs_cv_void_star = yes; then |
c0d27fcc | 9029 | cat >>confdefs.h <<\_ACEOF |
98418dba | 9030 | #define POINTER_TYPE void |
c0d27fcc | 9031 | _ACEOF |
98418dba CW |
9032 | |
9033 | else | |
c0d27fcc | 9034 | cat >>confdefs.h <<\_ACEOF |
98418dba | 9035 | #define POINTER_TYPE char |
c0d27fcc | 9036 | _ACEOF |
98418dba CW |
9037 | |
9038 | fi | |
9039 | ||
c0d27fcc | 9040 | |
4494a266 JD |
9041 | |
9042 | ||
cd958eb3 | 9043 | |
ca81d7a0 JD |
9044 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
9045 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } | |
9046 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
9047 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then | |
98418dba CW |
9048 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9049 | else | |
c0d27fcc | 9050 | cat >conftest.make <<\_ACEOF |
ca81d7a0 | 9051 | SHELL = /bin/sh |
98418dba | 9052 | all: |
ca81d7a0 | 9053 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
c0d27fcc | 9054 | _ACEOF |
98418dba | 9055 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
ca81d7a0 JD |
9056 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
9057 | *@@@%%%=?*=@@@%%%*) | |
9058 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
9059 | *) | |
9060 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
9061 | esac | |
4b411bfe | 9062 | rm -f conftest.make |
98418dba | 9063 | fi |
ca81d7a0 JD |
9064 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
9065 | { echo "$as_me:$LINENO: result: yes" >&5 | |
9066 | echo "${ECHO_T}yes" >&6; } | |
98418dba CW |
9067 | SET_MAKE= |
9068 | else | |
ca81d7a0 JD |
9069 | { echo "$as_me:$LINENO: result: no" >&5 |
9070 | echo "${ECHO_T}no" >&6; } | |
98418dba CW |
9071 | SET_MAKE="MAKE=${MAKE-make}" |
9072 | fi | |
9073 | ||
c0d27fcc | 9074 | |
ca81d7a0 JD |
9075 | { echo "$as_me:$LINENO: checking for long file names" >&5 |
9076 | echo $ECHO_N "checking for long file names... $ECHO_C" >&6; } | |
98418dba CW |
9077 | if test "${ac_cv_sys_long_file_names+set}" = set; then |
9078 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9079 | else | |
9080 | ac_cv_sys_long_file_names=yes | |
9081 | # Test for long file names in all the places we know might matter: | |
9082 | # . the current directory, where building will happen | |
9083 | # $prefix/lib where we will be installing things | |
9084 | # $exec_prefix/lib likewise | |
98418dba | 9085 | # $TMPDIR if set, where it might want to write temporary files |
98418dba CW |
9086 | # /tmp where it might want to write temporary files |
9087 | # /var/tmp likewise | |
9088 | # /usr/tmp likewise | |
ca81d7a0 JD |
9089 | for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do |
9090 | # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib | |
9091 | # in the usual case where exec_prefix is '${prefix}'. | |
9092 | case $ac_dir in #( | |
9093 | . | /* | ?:[\\/]*) ;; #( | |
9094 | *) continue;; | |
9095 | esac | |
9096 | test -w "$ac_dir/." || continue # It is less confusing to not echo anything here. | |
98418dba | 9097 | ac_xdir=$ac_dir/cf$$ |
ca81d7a0 | 9098 | (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue |
98418dba CW |
9099 | ac_tf1=$ac_xdir/conftest9012345 |
9100 | ac_tf2=$ac_xdir/conftest9012346 | |
ca81d7a0 | 9101 | touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" || |
98418dba | 9102 | ac_cv_sys_long_file_names=no |
ca81d7a0 JD |
9103 | rm -f -r "$ac_xdir" 2>/dev/null |
9104 | test $ac_cv_sys_long_file_names = no && break | |
98418dba CW |
9105 | done |
9106 | fi | |
ca81d7a0 JD |
9107 | { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5 |
9108 | echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; } | |
98418dba CW |
9109 | if test $ac_cv_sys_long_file_names = yes; then |
9110 | ||
c0d27fcc | 9111 | cat >>confdefs.h <<\_ACEOF |
98418dba | 9112 | #define HAVE_LONG_FILE_NAMES 1 |
c0d27fcc | 9113 | _ACEOF |
98418dba CW |
9114 | |
9115 | fi | |
9116 | ||
c0d27fcc | 9117 | |
98418dba CW |
9118 | #### Choose a window system. |
9119 | ||
ca81d7a0 JD |
9120 | { echo "$as_me:$LINENO: checking for X" >&5 |
9121 | echo $ECHO_N "checking for X... $ECHO_C" >&6; } | |
98418dba | 9122 | |
c0d27fcc | 9123 | |
ca81d7a0 | 9124 | # Check whether --with-x was given. |
98418dba | 9125 | if test "${with_x+set}" = set; then |
ca81d7a0 JD |
9126 | withval=$with_x; |
9127 | fi | |
98418dba | 9128 | |
98418dba CW |
9129 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
9130 | if test "x$with_x" = xno; then | |
9131 | # The user explicitly disabled X. | |
9132 | have_x=disabled | |
9133 | else | |
ca81d7a0 JD |
9134 | case $x_includes,$x_libraries in #( |
9135 | *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5 | |
9136 | echo "$as_me: error: Cannot use X directory names containing '" >&2;} | |
9137 | { (exit 1); exit 1; }; };; #( | |
9138 | *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then | |
98418dba CW |
9139 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9140 | else | |
9141 | # One or both of the vars are not set, and there is no cached value. | |
9142 | ac_x_includes=no ac_x_libraries=no | |
ca81d7a0 | 9143 | rm -f -r conftest.dir |
98418dba CW |
9144 | if mkdir conftest.dir; then |
9145 | cd conftest.dir | |
c0d27fcc | 9146 | cat >Imakefile <<'_ACEOF' |
ca81d7a0 JD |
9147 | incroot: |
9148 | @echo incroot='${INCROOT}' | |
9149 | usrlibdir: | |
9150 | @echo usrlibdir='${USRLIBDIR}' | |
9151 | libdir: | |
9152 | @echo libdir='${LIBDIR}' | |
9153 | _ACEOF | |
9154 | if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then | |
98418dba | 9155 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
ca81d7a0 JD |
9156 | for ac_var in incroot usrlibdir libdir; do |
9157 | eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" | |
9158 | done | |
98418dba CW |
9159 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
9160 | for ac_extension in a so sl; do | |
ca81d7a0 JD |
9161 | if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && |
9162 | test -f "$ac_im_libdir/libX11.$ac_extension"; then | |
edfaf76d | 9163 | ac_im_usrlibdir=$ac_im_libdir; break |
98418dba CW |
9164 | fi |
9165 | done | |
9166 | # Screen out bogus values from the imake configuration. They are | |
9167 | # bogus both because they are the default anyway, and because | |
9168 | # using them would break gcc on systems where it needs fixed includes. | |
9169 | case $ac_im_incroot in | |
ca81d7a0 | 9170 | /usr/include) ac_x_includes= ;; |
98418dba CW |
9171 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
9172 | esac | |
9173 | case $ac_im_usrlibdir in | |
9174 | /usr/lib | /lib) ;; | |
9175 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; | |
9176 | esac | |
9177 | fi | |
9178 | cd .. | |
ca81d7a0 | 9179 | rm -f -r conftest.dir |
98418dba CW |
9180 | fi |
9181 | ||
9182 | # Standard set of common directories for X headers. | |
9183 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
9184 | ac_x_header_dirs=' | |
9185 | /usr/X11/include | |
9186 | /usr/X11R6/include | |
9187 | /usr/X11R5/include | |
9188 | /usr/X11R4/include | |
9189 | ||
9190 | /usr/include/X11 | |
9191 | /usr/include/X11R6 | |
9192 | /usr/include/X11R5 | |
9193 | /usr/include/X11R4 | |
9194 | ||
9195 | /usr/local/X11/include | |
9196 | /usr/local/X11R6/include | |
9197 | /usr/local/X11R5/include | |
9198 | /usr/local/X11R4/include | |
9199 | ||
9200 | /usr/local/include/X11 | |
9201 | /usr/local/include/X11R6 | |
9202 | /usr/local/include/X11R5 | |
9203 | /usr/local/include/X11R4 | |
9204 | ||
9205 | /usr/X386/include | |
9206 | /usr/x386/include | |
9207 | /usr/XFree86/include/X11 | |
9208 | ||
9209 | /usr/include | |
9210 | /usr/local/include | |
9211 | /usr/unsupported/include | |
9212 | /usr/athena/include | |
9213 | /usr/local/x11r5/include | |
9214 | /usr/lpp/Xamples/include | |
9215 | ||
9216 | /usr/openwin/include | |
9217 | /usr/openwin/share/include' | |
9218 | ||
9219 | if test "$ac_x_includes" = no; then | |
ca81d7a0 | 9220 | # Guess where to find include files, by looking for Xlib.h. |
98418dba CW |
9221 | # First, try using that file with no special directory specified. |
9222 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
9223 | /* confdefs.h. */ |
9224 | _ACEOF | |
9225 | cat confdefs.h >>conftest.$ac_ext | |
9226 | cat >>conftest.$ac_ext <<_ACEOF | |
9227 | /* end confdefs.h. */ | |
ca81d7a0 | 9228 | #include <X11/Xlib.h> |
98418dba | 9229 | _ACEOF |
ca81d7a0 JD |
9230 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
9231 | case "(($ac_try" in | |
9232 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9233 | *) ac_try_echo=$ac_try;; | |
9234 | esac | |
9235 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9236 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
98418dba | 9237 | ac_status=$? |
6bae0ccf | 9238 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
9239 | rm -f conftest.er1 |
9240 | cat conftest.err >&5 | |
c0d27fcc | 9241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
9242 | (exit $ac_status); } >/dev/null && { |
9243 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9244 | test ! -s conftest.err | |
9245 | }; then | |
98418dba CW |
9246 | # We can compile using X headers with no special include directory. |
9247 | ac_x_includes= | |
9248 | else | |
9249 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
9250 | sed 's/^/| /' conftest.$ac_ext >&5 |
9251 | ||
98418dba | 9252 | for ac_dir in $ac_x_header_dirs; do |
ca81d7a0 | 9253 | if test -r "$ac_dir/X11/Xlib.h"; then |
98418dba CW |
9254 | ac_x_includes=$ac_dir |
9255 | break | |
9256 | fi | |
9257 | done | |
9258 | fi | |
ca81d7a0 | 9259 | |
98418dba CW |
9260 | rm -f conftest.err conftest.$ac_ext |
9261 | fi # $ac_x_includes = no | |
9262 | ||
9263 | if test "$ac_x_libraries" = no; then | |
9264 | # Check for the libraries. | |
9265 | # See if we find them without any special options. | |
9266 | # Don't add to $LIBS permanently. | |
9267 | ac_save_LIBS=$LIBS | |
f053c89f | 9268 | LIBS="-lX11 $LIBS" |
98418dba | 9269 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
9270 | /* confdefs.h. */ |
9271 | _ACEOF | |
9272 | cat confdefs.h >>conftest.$ac_ext | |
9273 | cat >>conftest.$ac_ext <<_ACEOF | |
9274 | /* end confdefs.h. */ | |
ca81d7a0 | 9275 | #include <X11/Xlib.h> |
98418dba CW |
9276 | int |
9277 | main () | |
9278 | { | |
ca81d7a0 | 9279 | XrmInitialize () |
98418dba CW |
9280 | ; |
9281 | return 0; | |
9282 | } | |
9283 | _ACEOF | |
9284 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
9285 | if { (ac_try="$ac_link" |
9286 | case "(($ac_try" in | |
9287 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9288 | *) ac_try_echo=$ac_try;; | |
9289 | esac | |
9290 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9291 | (eval "$ac_link") 2>conftest.er1 | |
98418dba | 9292 | ac_status=$? |
edfaf76d LK |
9293 | grep -v '^ *+' conftest.er1 >conftest.err |
9294 | rm -f conftest.er1 | |
9295 | cat conftest.err >&5 | |
c0d27fcc | 9296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
9297 | (exit $ac_status); } && { |
9298 | test -z "$ac_c_werror_flag" || | |
9299 | test ! -s conftest.err | |
9300 | } && test -s conftest$ac_exeext && | |
9301 | $as_test_x conftest$ac_exeext; then | |
98418dba CW |
9302 | LIBS=$ac_save_LIBS |
9303 | # We can link X programs with no special library path. | |
9304 | ac_x_libraries= | |
9305 | else | |
9306 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
9307 | sed 's/^/| /' conftest.$ac_ext >&5 |
9308 | ||
ca81d7a0 | 9309 | LIBS=$ac_save_LIBS |
98418dba CW |
9310 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
9311 | do | |
9312 | # Don't even attempt the hair of trying to link an X program! | |
9313 | for ac_extension in a so sl; do | |
f053c89f | 9314 | if test -r "$ac_dir/libX11.$ac_extension"; then |
98418dba CW |
9315 | ac_x_libraries=$ac_dir |
9316 | break 2 | |
9317 | fi | |
9318 | done | |
9319 | done | |
9320 | fi | |
ca81d7a0 | 9321 | |
f053c89f | 9322 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 9323 | conftest$ac_exeext conftest.$ac_ext |
98418dba CW |
9324 | fi # $ac_x_libraries = no |
9325 | ||
ca81d7a0 JD |
9326 | case $ac_x_includes,$ac_x_libraries in #( |
9327 | no,* | *,no | *\'*) | |
9328 | # Didn't find X, or a directory has "'" in its name. | |
9329 | ac_cv_have_x="have_x=no";; #( | |
9330 | *) | |
9331 | # Record where we found X for the cache. | |
9332 | ac_cv_have_x="have_x=yes\ | |
9333 | ac_x_includes='$ac_x_includes'\ | |
9334 | ac_x_libraries='$ac_x_libraries'" | |
9335 | esac | |
4b411bfe | 9336 | fi |
ca81d7a0 JD |
9337 | ;; #( |
9338 | *) have_x=yes;; | |
9339 | esac | |
98418dba CW |
9340 | eval "$ac_cv_have_x" |
9341 | fi # $with_x != no | |
9342 | ||
9343 | if test "$have_x" != yes; then | |
ca81d7a0 JD |
9344 | { echo "$as_me:$LINENO: result: $have_x" >&5 |
9345 | echo "${ECHO_T}$have_x" >&6; } | |
98418dba CW |
9346 | no_x=yes |
9347 | else | |
9348 | # If each of the values was on the command line, it overrides each guess. | |
9349 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
9350 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
9351 | # Update the cache value to reflect the command line values. | |
ca81d7a0 JD |
9352 | ac_cv_have_x="have_x=yes\ |
9353 | ac_x_includes='$x_includes'\ | |
9354 | ac_x_libraries='$x_libraries'" | |
9355 | { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 | |
9356 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; } | |
98418dba CW |
9357 | fi |
9358 | ||
9359 | if test "$no_x" = yes; then | |
9360 | window_system=none | |
9361 | else | |
9362 | window_system=x11 | |
9363 | fi | |
9364 | ||
92d1ccf4 AS |
9365 | if test "${x_libraries}" != NONE; then |
9366 | if test -n "${x_libraries}"; then | |
9367 | LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"` | |
9368 | LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"` | |
9369 | fi | |
98418dba | 9370 | x_default_search_path="" |
92d1ccf4 AS |
9371 | x_search_path=${x_libraries} |
9372 | if test -z "${x_search_path}"; then | |
9373 | x_search_path=/usr/lib | |
9374 | fi | |
9375 | for x_library in `echo ${x_search_path}: | \ | |
9376 | sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do | |
98418dba CW |
9377 | x_search_path="\ |
9378 | ${x_library}/X11/%L/%T/%N%C%S:\ | |
9379 | ${x_library}/X11/%l/%T/%N%C%S:\ | |
9380 | ${x_library}/X11/%T/%N%C%S:\ | |
9381 | ${x_library}/X11/%L/%T/%N%S:\ | |
9382 | ${x_library}/X11/%l/%T/%N%S:\ | |
9383 | ${x_library}/X11/%T/%N%S" | |
9384 | if test x"${x_default_search_path}" = x; then | |
9385 | x_default_search_path=${x_search_path} | |
9386 | else | |
9387 | x_default_search_path="${x_search_path}:${x_default_search_path}" | |
9388 | fi | |
9389 | done | |
9390 | fi | |
9391 | if test "${x_includes}" != NONE && test -n "${x_includes}"; then | |
9392 | C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"` | |
9393 | fi | |
9394 | ||
9395 | if test x"${x_includes}" = x; then | |
9396 | bitmapdir=/usr/include/X11/bitmaps | |
9397 | else | |
9398 | # accumulate include directories that have X11 bitmap subdirectories | |
9399 | bmd_acc="dummyval" | |
9400 | for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do | |
9401 | if test -d "${bmd}/X11/bitmaps"; then | |
9402 | bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps" | |
9403 | fi | |
9404 | if test -d "${bmd}/bitmaps"; then | |
9405 | bmd_acc="${bmd_acc}:${bmd}/bitmaps" | |
9406 | fi | |
9407 | done | |
9408 | if test ${bmd_acc} != "dummyval"; then | |
9409 | bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"` | |
9410 | fi | |
9411 | fi | |
9412 | ||
5d6da11e | 9413 | HAVE_CARBON=no |
1d4d5604 YM |
9414 | if test "${with_carbon}" != no; then |
9415 | if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then | |
ca81d7a0 JD |
9416 | { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5 |
9417 | echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; } | |
5d6da11e YM |
9418 | if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then |
9419 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9420 | fi | |
ca81d7a0 JD |
9421 | { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5 |
9422 | echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; } | |
5d6da11e YM |
9423 | else |
9424 | # Is the header compilable? | |
ca81d7a0 JD |
9425 | { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5 |
9426 | echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; } | |
5d6da11e YM |
9427 | cat >conftest.$ac_ext <<_ACEOF |
9428 | /* confdefs.h. */ | |
9429 | _ACEOF | |
9430 | cat confdefs.h >>conftest.$ac_ext | |
9431 | cat >>conftest.$ac_ext <<_ACEOF | |
9432 | /* end confdefs.h. */ | |
9433 | $ac_includes_default | |
9434 | #include <Carbon/Carbon.h> | |
9435 | _ACEOF | |
9436 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
9437 | if { (ac_try="$ac_compile" |
9438 | case "(($ac_try" in | |
9439 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9440 | *) ac_try_echo=$ac_try;; | |
9441 | esac | |
9442 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9443 | (eval "$ac_compile") 2>conftest.er1 | |
5d6da11e | 9444 | ac_status=$? |
edfaf76d LK |
9445 | grep -v '^ *+' conftest.er1 >conftest.err |
9446 | rm -f conftest.er1 | |
9447 | cat conftest.err >&5 | |
5d6da11e | 9448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
9449 | (exit $ac_status); } && { |
9450 | test -z "$ac_c_werror_flag" || | |
9451 | test ! -s conftest.err | |
9452 | } && test -s conftest.$ac_objext; then | |
5d6da11e YM |
9453 | ac_header_compiler=yes |
9454 | else | |
9455 | echo "$as_me: failed program was:" >&5 | |
9456 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9457 | ||
ca81d7a0 | 9458 | ac_header_compiler=no |
5d6da11e | 9459 | fi |
ca81d7a0 JD |
9460 | |
9461 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9462 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9463 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
5d6da11e YM |
9464 | |
9465 | # Is the header present? | |
ca81d7a0 JD |
9466 | { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5 |
9467 | echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; } | |
5d6da11e YM |
9468 | cat >conftest.$ac_ext <<_ACEOF |
9469 | /* confdefs.h. */ | |
9470 | _ACEOF | |
9471 | cat confdefs.h >>conftest.$ac_ext | |
9472 | cat >>conftest.$ac_ext <<_ACEOF | |
9473 | /* end confdefs.h. */ | |
9474 | #include <Carbon/Carbon.h> | |
9475 | _ACEOF | |
ca81d7a0 JD |
9476 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
9477 | case "(($ac_try" in | |
9478 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9479 | *) ac_try_echo=$ac_try;; | |
9480 | esac | |
9481 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9482 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
5d6da11e YM |
9483 | ac_status=$? |
9484 | grep -v '^ *+' conftest.er1 >conftest.err | |
9485 | rm -f conftest.er1 | |
9486 | cat conftest.err >&5 | |
9487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f053c89f CY |
9488 | (exit $ac_status); } >/dev/null && { |
9489 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9490 | test ! -s conftest.err | |
9491 | }; then | |
5d6da11e YM |
9492 | ac_header_preproc=yes |
9493 | else | |
9494 | echo "$as_me: failed program was:" >&5 | |
9495 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9496 | ||
9497 | ac_header_preproc=no | |
9498 | fi | |
ca81d7a0 | 9499 | |
5d6da11e | 9500 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
9501 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9502 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
5d6da11e YM |
9503 | |
9504 | # So? What about this header? | |
edfaf76d LK |
9505 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
9506 | yes:no: ) | |
5d6da11e YM |
9507 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
9508 | echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
9509 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5 |
9510 | echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;} | |
9511 | ac_header_preproc=yes | |
5d6da11e | 9512 | ;; |
edfaf76d | 9513 | no:yes:* ) |
5d6da11e YM |
9514 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5 |
9515 | echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;} | |
edfaf76d LK |
9516 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5 |
9517 | echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;} | |
9518 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5 | |
9519 | echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;} | |
9520 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5 | |
9521 | echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
5d6da11e YM |
9522 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5 |
9523 | echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;} | |
edfaf76d LK |
9524 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5 |
9525 | echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 9526 | |
5d6da11e YM |
9527 | ;; |
9528 | esac | |
ca81d7a0 JD |
9529 | { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5 |
9530 | echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; } | |
5d6da11e YM |
9531 | if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then |
9532 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9533 | else | |
9534 | ac_cv_header_Carbon_Carbon_h=$ac_header_preproc | |
9535 | fi | |
ca81d7a0 JD |
9536 | { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5 |
9537 | echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; } | |
5d6da11e YM |
9538 | |
9539 | fi | |
9540 | if test $ac_cv_header_Carbon_Carbon_h = yes; then | |
9541 | HAVE_CARBON=yes | |
9542 | fi | |
9543 | ||
9544 | ||
1d4d5604 YM |
9545 | fi |
9546 | if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then | |
9547 | if test "${with_carbon+set}" != set \ | |
9548 | && test "${carbon_appdir_x+set}" != set; then | |
ec8fcb10 YM |
9549 | for var in with_x with_x_toolkit with_gtk with_xim \ |
9550 | with_xpm with_jpeg with_tiff with_gif with_png; do | |
9551 | if eval test \"\${$var+set}\" = set; then | |
9552 | HAVE_CARBON=no | |
9553 | break | |
9554 | fi | |
9555 | done | |
5d6da11e YM |
9556 | fi |
9557 | fi | |
1d4d5604 YM |
9558 | if test "${HAVE_CARBON}" = yes; then |
9559 | window_system=mac | |
9560 | fi | |
9561 | ||
9562 | case "${window_system}" in | |
9563 | x11 ) | |
9564 | HAVE_X_WINDOWS=yes | |
9565 | HAVE_X11=yes | |
9566 | case "${with_x_toolkit}" in | |
9567 | athena | lucid ) USE_X_TOOLKIT=LUCID ;; | |
9568 | motif ) USE_X_TOOLKIT=MOTIF ;; | |
9569 | gtk ) with_gtk=yes | |
9570 | USE_X_TOOLKIT=none ;; | |
9571 | no ) USE_X_TOOLKIT=none ;; | |
089a966d GM |
9572 | * ) |
9573 | if test x"$with_gtk" = xyes; then | |
9574 | USE_X_TOOLKIT=none | |
9575 | else | |
9576 | USE_X_TOOLKIT=maybe | |
9577 | fi | |
9578 | ;; | |
1d4d5604 YM |
9579 | esac |
9580 | ;; | |
9581 | mac | none ) | |
9582 | HAVE_X_WINDOWS=no | |
9583 | HAVE_X11=no | |
9584 | USE_X_TOOLKIT=none | |
9585 | ;; | |
9586 | esac | |
9587 | ||
cfe440b8 JD |
9588 | if test "$window_system" = none && test "X$with_x" != "Xno"; then |
9589 | # Extract the first word of "X", so it can be a program name with args. | |
9590 | set dummy X; ac_word=$2 | |
9591 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9592 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
9593 | if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then | |
9594 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9595 | else | |
9596 | if test -n "$HAVE_XSERVER"; then | |
9597 | ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test. | |
9598 | else | |
9599 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9600 | for as_dir in $PATH | |
9601 | do | |
9602 | IFS=$as_save_IFS | |
9603 | test -z "$as_dir" && as_dir=. | |
9604 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9605 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9606 | ac_cv_prog_HAVE_XSERVER="true" | |
9607 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9608 | break 2 | |
9609 | fi | |
9610 | done | |
9611 | done | |
9612 | IFS=$as_save_IFS | |
9613 | ||
9614 | test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false" | |
9615 | fi | |
9616 | fi | |
9617 | HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER | |
9618 | if test -n "$HAVE_XSERVER"; then | |
9619 | { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5 | |
9620 | echo "${ECHO_T}$HAVE_XSERVER" >&6; } | |
9621 | else | |
9622 | { echo "$as_me:$LINENO: result: no" >&5 | |
9623 | echo "${ECHO_T}no" >&6; } | |
9624 | fi | |
9625 | ||
9626 | ||
9627 | if test "$HAVE_XSERVER" = true || | |
9628 | test -n "$DISPLAY" || | |
9629 | test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then | |
9630 | { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries | |
9631 | where found. You should install the relevant development files for X | |
9632 | and the for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make | |
9633 | sure you have development files for image handling, i.e. | |
9634 | tiff, gif, jpeg, png and xpm. | |
9635 | If you are sure you want Emacs compiled without X window support, pass | |
9636 | --without-x | |
9637 | to configure." >&5 | |
9638 | echo "$as_me: error: You seem to be running X, but no X development libraries | |
9639 | where found. You should install the relevant development files for X | |
9640 | and the for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make | |
9641 | sure you have development files for image handling, i.e. | |
9642 | tiff, gif, jpeg, png and xpm. | |
9643 | If you are sure you want Emacs compiled without X window support, pass | |
9644 | --without-x | |
9645 | to configure." >&2;} | |
9646 | { (exit 1); exit 1; }; } | |
9647 | fi | |
9648 | fi | |
9649 | ||
1d4d5604 YM |
9650 | ### If we're using X11, we should use the X menu package. |
9651 | HAVE_MENUS=no | |
9652 | case ${HAVE_X11} in | |
9653 | yes ) HAVE_MENUS=yes ;; | |
9654 | esac | |
9655 | ||
9656 | if test "${opsys}" = "hpux9"; then | |
9657 | case "${x_libraries}" in | |
9658 | *X11R4* ) | |
9659 | opsysfile="s/hpux9-x11r4.h" | |
9660 | ;; | |
9661 | esac | |
9662 | fi | |
9663 | ||
9664 | if test "${opsys}" = "hpux9shr"; then | |
9665 | case "${x_libraries}" in | |
9666 | *X11R4* ) | |
9667 | opsysfile="s/hpux9shxr4.h" | |
9668 | ;; | |
9669 | esac | |
9670 | fi | |
5d6da11e | 9671 | |
98418dba CW |
9672 | ### Compute the unexec source name from the object name. |
9673 | UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`" | |
9674 | ||
9675 | # Do the opsystem or machine files prohibit the use of the GNU malloc? | |
9676 | # Assume not, until told otherwise. | |
9677 | GNU_MALLOC=yes | |
9678 | doug_lea_malloc=yes | |
ca81d7a0 JD |
9679 | { echo "$as_me:$LINENO: checking for malloc_get_state" >&5 |
9680 | echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; } | |
98418dba CW |
9681 | if test "${ac_cv_func_malloc_get_state+set}" = set; then |
9682 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9683 | else | |
9684 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
9685 | /* confdefs.h. */ |
9686 | _ACEOF | |
9687 | cat confdefs.h >>conftest.$ac_ext | |
9688 | cat >>conftest.$ac_ext <<_ACEOF | |
9689 | /* end confdefs.h. */ | |
edfaf76d LK |
9690 | /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state. |
9691 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9692 | #define malloc_get_state innocuous_malloc_get_state | |
9693 | ||
98418dba | 9694 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
9695 | which can conflict with char malloc_get_state (); below. |
9696 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9697 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 9698 | |
19650fd6 AS |
9699 | #ifdef __STDC__ |
9700 | # include <limits.h> | |
9701 | #else | |
9702 | # include <assert.h> | |
9703 | #endif | |
edfaf76d LK |
9704 | |
9705 | #undef malloc_get_state | |
9706 | ||
ca81d7a0 JD |
9707 | /* Override any GCC internal prototype to avoid an error. |
9708 | Use char because int might match the return type of a GCC | |
9709 | builtin and then its argument prototype would still apply. */ | |
98418dba CW |
9710 | #ifdef __cplusplus |
9711 | extern "C" | |
9712 | #endif | |
98418dba | 9713 | char malloc_get_state (); |
98418dba CW |
9714 | /* The GNU C library defines this for functions which it implements |
9715 | to always fail with ENOSYS. Some functions are actually named | |
9716 | something starting with __ and the normal name is an alias. */ | |
ca81d7a0 | 9717 | #if defined __stub_malloc_get_state || defined __stub___malloc_get_state |
98418dba | 9718 | choke me |
98418dba CW |
9719 | #endif |
9720 | ||
19650fd6 AS |
9721 | int |
9722 | main () | |
9723 | { | |
ca81d7a0 | 9724 | return malloc_get_state (); |
98418dba CW |
9725 | ; |
9726 | return 0; | |
9727 | } | |
9728 | _ACEOF | |
9729 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
9730 | if { (ac_try="$ac_link" |
9731 | case "(($ac_try" in | |
9732 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9733 | *) ac_try_echo=$ac_try;; | |
9734 | esac | |
9735 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9736 | (eval "$ac_link") 2>conftest.er1 | |
98418dba | 9737 | ac_status=$? |
edfaf76d LK |
9738 | grep -v '^ *+' conftest.er1 >conftest.err |
9739 | rm -f conftest.er1 | |
9740 | cat conftest.err >&5 | |
c0d27fcc | 9741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
9742 | (exit $ac_status); } && { |
9743 | test -z "$ac_c_werror_flag" || | |
9744 | test ! -s conftest.err | |
9745 | } && test -s conftest$ac_exeext && | |
9746 | $as_test_x conftest$ac_exeext; then | |
98418dba CW |
9747 | ac_cv_func_malloc_get_state=yes |
9748 | else | |
9749 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
9750 | sed 's/^/| /' conftest.$ac_ext >&5 |
9751 | ||
ca81d7a0 | 9752 | ac_cv_func_malloc_get_state=no |
98418dba | 9753 | fi |
ca81d7a0 | 9754 | |
f053c89f | 9755 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 9756 | conftest$ac_exeext conftest.$ac_ext |
98418dba | 9757 | fi |
ca81d7a0 JD |
9758 | { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5 |
9759 | echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; } | |
98418dba CW |
9760 | if test $ac_cv_func_malloc_get_state = yes; then |
9761 | : | |
9762 | else | |
9763 | doug_lea_malloc=no | |
9764 | fi | |
9765 | ||
ca81d7a0 JD |
9766 | { echo "$as_me:$LINENO: checking for malloc_set_state" >&5 |
9767 | echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; } | |
98418dba CW |
9768 | if test "${ac_cv_func_malloc_set_state+set}" = set; then |
9769 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9770 | else | |
9771 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
9772 | /* confdefs.h. */ |
9773 | _ACEOF | |
9774 | cat confdefs.h >>conftest.$ac_ext | |
9775 | cat >>conftest.$ac_ext <<_ACEOF | |
9776 | /* end confdefs.h. */ | |
edfaf76d LK |
9777 | /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state. |
9778 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9779 | #define malloc_set_state innocuous_malloc_set_state | |
9780 | ||
98418dba | 9781 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
9782 | which can conflict with char malloc_set_state (); below. |
9783 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9784 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 9785 | |
19650fd6 AS |
9786 | #ifdef __STDC__ |
9787 | # include <limits.h> | |
9788 | #else | |
9789 | # include <assert.h> | |
9790 | #endif | |
edfaf76d LK |
9791 | |
9792 | #undef malloc_set_state | |
9793 | ||
ca81d7a0 JD |
9794 | /* Override any GCC internal prototype to avoid an error. |
9795 | Use char because int might match the return type of a GCC | |
9796 | builtin and then its argument prototype would still apply. */ | |
98418dba CW |
9797 | #ifdef __cplusplus |
9798 | extern "C" | |
9799 | #endif | |
98418dba | 9800 | char malloc_set_state (); |
98418dba CW |
9801 | /* The GNU C library defines this for functions which it implements |
9802 | to always fail with ENOSYS. Some functions are actually named | |
9803 | something starting with __ and the normal name is an alias. */ | |
ca81d7a0 | 9804 | #if defined __stub_malloc_set_state || defined __stub___malloc_set_state |
98418dba | 9805 | choke me |
98418dba CW |
9806 | #endif |
9807 | ||
19650fd6 AS |
9808 | int |
9809 | main () | |
9810 | { | |
ca81d7a0 | 9811 | return malloc_set_state (); |
98418dba CW |
9812 | ; |
9813 | return 0; | |
9814 | } | |
9815 | _ACEOF | |
9816 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
9817 | if { (ac_try="$ac_link" |
9818 | case "(($ac_try" in | |
9819 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9820 | *) ac_try_echo=$ac_try;; | |
9821 | esac | |
9822 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9823 | (eval "$ac_link") 2>conftest.er1 | |
98418dba | 9824 | ac_status=$? |
edfaf76d LK |
9825 | grep -v '^ *+' conftest.er1 >conftest.err |
9826 | rm -f conftest.er1 | |
9827 | cat conftest.err >&5 | |
c0d27fcc | 9828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
9829 | (exit $ac_status); } && { |
9830 | test -z "$ac_c_werror_flag" || | |
9831 | test ! -s conftest.err | |
9832 | } && test -s conftest$ac_exeext && | |
9833 | $as_test_x conftest$ac_exeext; then | |
98418dba CW |
9834 | ac_cv_func_malloc_set_state=yes |
9835 | else | |
9836 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
9837 | sed 's/^/| /' conftest.$ac_ext >&5 |
9838 | ||
ca81d7a0 | 9839 | ac_cv_func_malloc_set_state=no |
98418dba | 9840 | fi |
ca81d7a0 | 9841 | |
f053c89f | 9842 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 9843 | conftest$ac_exeext conftest.$ac_ext |
98418dba | 9844 | fi |
ca81d7a0 JD |
9845 | { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5 |
9846 | echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; } | |
98418dba CW |
9847 | if test $ac_cv_func_malloc_set_state = yes; then |
9848 | : | |
9849 | else | |
9850 | doug_lea_malloc=no | |
9851 | fi | |
9852 | ||
ca81d7a0 JD |
9853 | { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5 |
9854 | echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; } | |
98418dba CW |
9855 | if test "${emacs_cv_var___after_morecore_hook+set}" = set; then |
9856 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9857 | else | |
9858 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
9859 | /* confdefs.h. */ |
9860 | _ACEOF | |
9861 | cat confdefs.h >>conftest.$ac_ext | |
9862 | cat >>conftest.$ac_ext <<_ACEOF | |
9863 | /* end confdefs.h. */ | |
98418dba | 9864 | extern void (* __after_morecore_hook)(); |
98418dba CW |
9865 | int |
9866 | main () | |
9867 | { | |
9868 | __after_morecore_hook = 0 | |
9869 | ; | |
9870 | return 0; | |
9871 | } | |
9872 | _ACEOF | |
9873 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
9874 | if { (ac_try="$ac_link" |
9875 | case "(($ac_try" in | |
9876 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9877 | *) ac_try_echo=$ac_try;; | |
9878 | esac | |
9879 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9880 | (eval "$ac_link") 2>conftest.er1 | |
98418dba | 9881 | ac_status=$? |
edfaf76d LK |
9882 | grep -v '^ *+' conftest.er1 >conftest.err |
9883 | rm -f conftest.er1 | |
9884 | cat conftest.err >&5 | |
c0d27fcc | 9885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
9886 | (exit $ac_status); } && { |
9887 | test -z "$ac_c_werror_flag" || | |
9888 | test ! -s conftest.err | |
9889 | } && test -s conftest$ac_exeext && | |
9890 | $as_test_x conftest$ac_exeext; then | |
98418dba CW |
9891 | emacs_cv_var___after_morecore_hook=yes |
9892 | else | |
9893 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
9894 | sed 's/^/| /' conftest.$ac_ext >&5 |
9895 | ||
ca81d7a0 | 9896 | emacs_cv_var___after_morecore_hook=no |
98418dba | 9897 | fi |
ca81d7a0 | 9898 | |
f053c89f | 9899 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 9900 | conftest$ac_exeext conftest.$ac_ext |
98418dba | 9901 | fi |
ca81d7a0 JD |
9902 | { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5 |
9903 | echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; } | |
98418dba CW |
9904 | if test $emacs_cv_var___after_morecore_hook = no; then |
9905 | doug_lea_malloc=no | |
9906 | fi | |
9907 | if test "${system_malloc}" = "yes"; then | |
9908 | GNU_MALLOC=no | |
9909 | GNU_MALLOC_reason=" | |
9910 | (The GNU allocators don't work with this system configuration.)" | |
9911 | fi | |
9912 | if test "$doug_lea_malloc" = "yes" ; then | |
9913 | if test "$GNU_MALLOC" = yes ; then | |
9914 | GNU_MALLOC_reason=" | |
9915 | (Using Doug Lea's new malloc from the GNU C Library.)" | |
9916 | fi | |
b936fae4 | 9917 | |
c0d27fcc | 9918 | cat >>confdefs.h <<\_ACEOF |
98418dba | 9919 | #define DOUG_LEA_MALLOC 1 |
c0d27fcc | 9920 | _ACEOF |
98418dba CW |
9921 | |
9922 | fi | |
9923 | ||
9924 | if test x"${REL_ALLOC}" = x; then | |
9925 | REL_ALLOC=${GNU_MALLOC} | |
9926 | fi | |
9927 | ||
9928 | ||
c0d27fcc MR |
9929 | |
9930 | ||
9931 | for ac_header in stdlib.h unistd.h | |
98418dba CW |
9932 | do |
9933 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
ca81d7a0 JD |
9934 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
9935 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9936 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
9937 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
98418dba | 9938 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc | 9939 | fi |
ca81d7a0 JD |
9940 | ac_res=`eval echo '${'$as_ac_Header'}'` |
9941 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9942 | echo "${ECHO_T}$ac_res" >&6; } | |
98418dba | 9943 | else |
c0d27fcc | 9944 | # Is the header compilable? |
ca81d7a0 JD |
9945 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9946 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
c0d27fcc | 9947 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
9948 | /* confdefs.h. */ |
9949 | _ACEOF | |
9950 | cat confdefs.h >>conftest.$ac_ext | |
9951 | cat >>conftest.$ac_ext <<_ACEOF | |
9952 | /* end confdefs.h. */ | |
98418dba CW |
9953 | $ac_includes_default |
9954 | #include <$ac_header> | |
9955 | _ACEOF | |
9956 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
9957 | if { (ac_try="$ac_compile" |
9958 | case "(($ac_try" in | |
9959 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9960 | *) ac_try_echo=$ac_try;; | |
9961 | esac | |
9962 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9963 | (eval "$ac_compile") 2>conftest.er1 | |
98418dba | 9964 | ac_status=$? |
edfaf76d LK |
9965 | grep -v '^ *+' conftest.er1 >conftest.err |
9966 | rm -f conftest.er1 | |
9967 | cat conftest.err >&5 | |
c0d27fcc | 9968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
9969 | (exit $ac_status); } && { |
9970 | test -z "$ac_c_werror_flag" || | |
9971 | test ! -s conftest.err | |
9972 | } && test -s conftest.$ac_objext; then | |
c0d27fcc | 9973 | ac_header_compiler=yes |
98418dba CW |
9974 | else |
9975 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
9976 | sed 's/^/| /' conftest.$ac_ext >&5 |
9977 | ||
ca81d7a0 | 9978 | ac_header_compiler=no |
98418dba | 9979 | fi |
ca81d7a0 JD |
9980 | |
9981 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9982 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9983 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
98418dba | 9984 | |
c0d27fcc | 9985 | # Is the header present? |
ca81d7a0 JD |
9986 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9987 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
c0d27fcc | 9988 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
9989 | /* confdefs.h. */ |
9990 | _ACEOF | |
9991 | cat confdefs.h >>conftest.$ac_ext | |
9992 | cat >>conftest.$ac_ext <<_ACEOF | |
9993 | /* end confdefs.h. */ | |
98418dba CW |
9994 | #include <$ac_header> |
9995 | _ACEOF | |
ca81d7a0 JD |
9996 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
9997 | case "(($ac_try" in | |
9998 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9999 | *) ac_try_echo=$ac_try;; | |
10000 | esac | |
10001 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10002 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
98418dba | 10003 | ac_status=$? |
6bae0ccf | 10004 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
10005 | rm -f conftest.er1 |
10006 | cat conftest.err >&5 | |
c0d27fcc | 10007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
10008 | (exit $ac_status); } >/dev/null && { |
10009 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
10010 | test ! -s conftest.err | |
10011 | }; then | |
c0d27fcc | 10012 | ac_header_preproc=yes |
98418dba CW |
10013 | else |
10014 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10015 | sed 's/^/| /' conftest.$ac_ext >&5 |
10016 | ||
c0d27fcc | 10017 | ac_header_preproc=no |
98418dba | 10018 | fi |
ca81d7a0 | 10019 | |
98418dba | 10020 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
10021 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10022 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
10023 | |
10024 | # So? What about this header? | |
edfaf76d LK |
10025 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
10026 | yes:no: ) | |
c0d27fcc MR |
10027 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
10028 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
10029 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
10030 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10031 | ac_header_preproc=yes | |
10032 | ;; | |
10033 | no:yes:* ) | |
10034 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10035 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10036 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10037 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10038 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10039 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10040 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10041 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7c9e5167 JD |
10042 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
10043 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
edfaf76d LK |
10044 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
10045 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 10046 | |
19650fd6 | 10047 | ;; |
c0d27fcc | 10048 | esac |
ca81d7a0 JD |
10049 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10050 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
10051 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
c0d27fcc MR |
10052 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10053 | else | |
edfaf76d | 10054 | eval "$as_ac_Header=\$ac_header_preproc" |
98418dba | 10055 | fi |
ca81d7a0 JD |
10056 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10057 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10058 | echo "${ECHO_T}$ac_res" >&6; } | |
c0d27fcc MR |
10059 | |
10060 | fi | |
98418dba | 10061 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 10062 | cat >>confdefs.h <<_ACEOF |
98418dba | 10063 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 10064 | _ACEOF |
98418dba CW |
10065 | |
10066 | fi | |
c0d27fcc | 10067 | |
98418dba CW |
10068 | done |
10069 | ||
c0d27fcc | 10070 | |
98418dba CW |
10071 | for ac_func in getpagesize |
10072 | do | |
10073 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
ca81d7a0 JD |
10074 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
10075 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
10076 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
98418dba CW |
10077 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10078 | else | |
10079 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
10080 | /* confdefs.h. */ |
10081 | _ACEOF | |
10082 | cat confdefs.h >>conftest.$ac_ext | |
10083 | cat >>conftest.$ac_ext <<_ACEOF | |
10084 | /* end confdefs.h. */ | |
edfaf76d LK |
10085 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
10086 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10087 | #define $ac_func innocuous_$ac_func | |
10088 | ||
98418dba | 10089 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
10090 | which can conflict with char $ac_func (); below. |
10091 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10092 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 10093 | |
19650fd6 AS |
10094 | #ifdef __STDC__ |
10095 | # include <limits.h> | |
10096 | #else | |
10097 | # include <assert.h> | |
10098 | #endif | |
edfaf76d LK |
10099 | |
10100 | #undef $ac_func | |
10101 | ||
ca81d7a0 JD |
10102 | /* Override any GCC internal prototype to avoid an error. |
10103 | Use char because int might match the return type of a GCC | |
10104 | builtin and then its argument prototype would still apply. */ | |
98418dba CW |
10105 | #ifdef __cplusplus |
10106 | extern "C" | |
10107 | #endif | |
98418dba | 10108 | char $ac_func (); |
98418dba CW |
10109 | /* The GNU C library defines this for functions which it implements |
10110 | to always fail with ENOSYS. Some functions are actually named | |
10111 | something starting with __ and the normal name is an alias. */ | |
ca81d7a0 | 10112 | #if defined __stub_$ac_func || defined __stub___$ac_func |
98418dba | 10113 | choke me |
98418dba CW |
10114 | #endif |
10115 | ||
19650fd6 AS |
10116 | int |
10117 | main () | |
10118 | { | |
ca81d7a0 | 10119 | return $ac_func (); |
98418dba CW |
10120 | ; |
10121 | return 0; | |
10122 | } | |
10123 | _ACEOF | |
10124 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
10125 | if { (ac_try="$ac_link" |
10126 | case "(($ac_try" in | |
10127 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10128 | *) ac_try_echo=$ac_try;; | |
10129 | esac | |
10130 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10131 | (eval "$ac_link") 2>conftest.er1 | |
98418dba | 10132 | ac_status=$? |
edfaf76d LK |
10133 | grep -v '^ *+' conftest.er1 >conftest.err |
10134 | rm -f conftest.er1 | |
10135 | cat conftest.err >&5 | |
c0d27fcc | 10136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
10137 | (exit $ac_status); } && { |
10138 | test -z "$ac_c_werror_flag" || | |
10139 | test ! -s conftest.err | |
10140 | } && test -s conftest$ac_exeext && | |
10141 | $as_test_x conftest$ac_exeext; then | |
98418dba CW |
10142 | eval "$as_ac_var=yes" |
10143 | else | |
10144 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10145 | sed 's/^/| /' conftest.$ac_ext >&5 |
10146 | ||
ca81d7a0 | 10147 | eval "$as_ac_var=no" |
98418dba | 10148 | fi |
ca81d7a0 | 10149 | |
f053c89f | 10150 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 10151 | conftest$ac_exeext conftest.$ac_ext |
98418dba | 10152 | fi |
ca81d7a0 JD |
10153 | ac_res=`eval echo '${'$as_ac_var'}'` |
10154 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10155 | echo "${ECHO_T}$ac_res" >&6; } | |
98418dba | 10156 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
c0d27fcc | 10157 | cat >>confdefs.h <<_ACEOF |
98418dba | 10158 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 10159 | _ACEOF |
98418dba CW |
10160 | |
10161 | fi | |
10162 | done | |
10163 | ||
ca81d7a0 JD |
10164 | { echo "$as_me:$LINENO: checking for working mmap" >&5 |
10165 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } | |
98418dba CW |
10166 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
10167 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10168 | else | |
10169 | if test "$cross_compiling" = yes; then | |
10170 | ac_cv_func_mmap_fixed_mapped=no | |
10171 | else | |
10172 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
10173 | /* confdefs.h. */ |
10174 | _ACEOF | |
10175 | cat confdefs.h >>conftest.$ac_ext | |
10176 | cat >>conftest.$ac_ext <<_ACEOF | |
10177 | /* end confdefs.h. */ | |
98418dba | 10178 | $ac_includes_default |
c0d27fcc MR |
10179 | /* malloc might have been renamed as rpl_malloc. */ |
10180 | #undef malloc | |
10181 | ||
98418dba CW |
10182 | /* Thanks to Mike Haertel and Jim Avera for this test. |
10183 | Here is a matrix of mmap possibilities: | |
10184 | mmap private not fixed | |
10185 | mmap private fixed at somewhere currently unmapped | |
10186 | mmap private fixed at somewhere already mapped | |
10187 | mmap shared not fixed | |
10188 | mmap shared fixed at somewhere currently unmapped | |
10189 | mmap shared fixed at somewhere already mapped | |
10190 | For private mappings, we should verify that changes cannot be read() | |
10191 | back from the file, nor mmap's back from the file at a different | |
10192 | address. (There have been systems where private was not correctly | |
10193 | implemented like the infamous i386 svr4.0, and systems where the | |
10194 | VM page cache was not coherent with the file system buffer cache | |
10195 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
10196 | For shared mappings, we should conversely verify that changes get | |
c0d27fcc | 10197 | propagated back to all the places they're supposed to be. |
98418dba CW |
10198 | |
10199 | Grep wants private fixed already mapped. | |
10200 | The main things grep needs to know about mmap are: | |
10201 | * does it exist and is it safe to write into the mmap'd area | |
10202 | * how to use it (BSD variants) */ | |
10203 | ||
10204 | #include <fcntl.h> | |
10205 | #include <sys/mman.h> | |
10206 | ||
f053c89f | 10207 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
98418dba CW |
10208 | char *malloc (); |
10209 | #endif | |
10210 | ||
10211 | /* This mess was copied from the GNU getpagesize.h. */ | |
f053c89f | 10212 | #ifndef HAVE_GETPAGESIZE |
98418dba | 10213 | /* Assume that all systems that can run configure have sys/param.h. */ |
f053c89f | 10214 | # ifndef HAVE_SYS_PARAM_H |
98418dba CW |
10215 | # define HAVE_SYS_PARAM_H 1 |
10216 | # endif | |
10217 | ||
10218 | # ifdef _SC_PAGESIZE | |
10219 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
10220 | # else /* no _SC_PAGESIZE */ | |
f053c89f | 10221 | # ifdef HAVE_SYS_PARAM_H |
98418dba CW |
10222 | # include <sys/param.h> |
10223 | # ifdef EXEC_PAGESIZE | |
10224 | # define getpagesize() EXEC_PAGESIZE | |
10225 | # else /* no EXEC_PAGESIZE */ | |
10226 | # ifdef NBPG | |
10227 | # define getpagesize() NBPG * CLSIZE | |
10228 | # ifndef CLSIZE | |
10229 | # define CLSIZE 1 | |
10230 | # endif /* no CLSIZE */ | |
10231 | # else /* no NBPG */ | |
10232 | # ifdef NBPC | |
10233 | # define getpagesize() NBPC | |
10234 | # else /* no NBPC */ | |
10235 | # ifdef PAGESIZE | |
10236 | # define getpagesize() PAGESIZE | |
10237 | # endif /* PAGESIZE */ | |
10238 | # endif /* no NBPC */ | |
10239 | # endif /* no NBPG */ | |
10240 | # endif /* no EXEC_PAGESIZE */ | |
10241 | # else /* no HAVE_SYS_PARAM_H */ | |
10242 | # define getpagesize() 8192 /* punt totally */ | |
10243 | # endif /* no HAVE_SYS_PARAM_H */ | |
10244 | # endif /* no _SC_PAGESIZE */ | |
10245 | ||
10246 | #endif /* no HAVE_GETPAGESIZE */ | |
10247 | ||
10248 | int | |
10249 | main () | |
10250 | { | |
10251 | char *data, *data2, *data3; | |
10252 | int i, pagesize; | |
10253 | int fd; | |
10254 | ||
10255 | pagesize = getpagesize (); | |
10256 | ||
10257 | /* First, make a file with some known garbage in it. */ | |
10258 | data = (char *) malloc (pagesize); | |
10259 | if (!data) | |
ca81d7a0 | 10260 | return 1; |
98418dba CW |
10261 | for (i = 0; i < pagesize; ++i) |
10262 | *(data + i) = rand (); | |
10263 | umask (0); | |
10264 | fd = creat ("conftest.mmap", 0600); | |
10265 | if (fd < 0) | |
ca81d7a0 | 10266 | return 1; |
98418dba | 10267 | if (write (fd, data, pagesize) != pagesize) |
ca81d7a0 | 10268 | return 1; |
98418dba CW |
10269 | close (fd); |
10270 | ||
10271 | /* Next, try to mmap the file at a fixed address which already has | |
10272 | something else allocated at it. If we can, also make sure that | |
10273 | we see the same garbage. */ | |
10274 | fd = open ("conftest.mmap", O_RDWR); | |
10275 | if (fd < 0) | |
ca81d7a0 | 10276 | return 1; |
98418dba CW |
10277 | data2 = (char *) malloc (2 * pagesize); |
10278 | if (!data2) | |
ca81d7a0 JD |
10279 | return 1; |
10280 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); | |
98418dba | 10281 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
edfaf76d | 10282 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
ca81d7a0 | 10283 | return 1; |
98418dba CW |
10284 | for (i = 0; i < pagesize; ++i) |
10285 | if (*(data + i) != *(data2 + i)) | |
ca81d7a0 | 10286 | return 1; |
98418dba CW |
10287 | |
10288 | /* Finally, make sure that changes to the mapped area do not | |
10289 | percolate back to the file as seen by read(). (This is a bug on | |
10290 | some variants of i386 svr4.0.) */ | |
10291 | for (i = 0; i < pagesize; ++i) | |
10292 | *(data2 + i) = *(data2 + i) + 1; | |
10293 | data3 = (char *) malloc (pagesize); | |
10294 | if (!data3) | |
ca81d7a0 | 10295 | return 1; |
98418dba | 10296 | if (read (fd, data3, pagesize) != pagesize) |
ca81d7a0 | 10297 | return 1; |
98418dba CW |
10298 | for (i = 0; i < pagesize; ++i) |
10299 | if (*(data + i) != *(data3 + i)) | |
ca81d7a0 | 10300 | return 1; |
98418dba | 10301 | close (fd); |
ca81d7a0 | 10302 | return 0; |
98418dba CW |
10303 | } |
10304 | _ACEOF | |
10305 | rm -f conftest$ac_exeext | |
ca81d7a0 JD |
10306 | if { (ac_try="$ac_link" |
10307 | case "(($ac_try" in | |
10308 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10309 | *) ac_try_echo=$ac_try;; | |
10310 | esac | |
10311 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10312 | (eval "$ac_link") 2>&5 | |
98418dba | 10313 | ac_status=$? |
c0d27fcc | 10314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 10315 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
ca81d7a0 JD |
10316 | { (case "(($ac_try" in |
10317 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10318 | *) ac_try_echo=$ac_try;; | |
10319 | esac | |
10320 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10321 | (eval "$ac_try") 2>&5 | |
98418dba | 10322 | ac_status=$? |
c0d27fcc | 10323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
10324 | (exit $ac_status); }; }; then |
10325 | ac_cv_func_mmap_fixed_mapped=yes | |
10326 | else | |
10327 | echo "$as_me: program exited with status $ac_status" >&5 | |
10328 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10329 | sed 's/^/| /' conftest.$ac_ext >&5 |
10330 | ||
c0d27fcc | 10331 | ( exit $ac_status ) |
98418dba CW |
10332 | ac_cv_func_mmap_fixed_mapped=no |
10333 | fi | |
ca81d7a0 | 10334 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
98418dba | 10335 | fi |
ca81d7a0 JD |
10336 | |
10337 | ||
98418dba | 10338 | fi |
ca81d7a0 JD |
10339 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
10340 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } | |
98418dba CW |
10341 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
10342 | ||
c0d27fcc | 10343 | cat >>confdefs.h <<\_ACEOF |
98418dba | 10344 | #define HAVE_MMAP 1 |
c0d27fcc | 10345 | _ACEOF |
98418dba CW |
10346 | |
10347 | fi | |
10348 | rm -f conftest.mmap | |
10349 | ||
10350 | if test $use_mmap_for_buffers = yes; then | |
10351 | REL_ALLOC=no | |
10352 | fi | |
10353 | ||
10354 | LIBS="$libsrc_libs $LIBS" | |
10355 | ||
c0d27fcc | 10356 | |
ca81d7a0 JD |
10357 | { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 |
10358 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; } | |
98418dba CW |
10359 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then |
10360 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10361 | else | |
10362 | ac_check_lib_save_LIBS=$LIBS | |
10363 | LIBS="-ldnet $LIBS" | |
10364 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
10365 | /* confdefs.h. */ |
10366 | _ACEOF | |
10367 | cat confdefs.h >>conftest.$ac_ext | |
10368 | cat >>conftest.$ac_ext <<_ACEOF | |
10369 | /* end confdefs.h. */ | |
98418dba | 10370 | |
ca81d7a0 JD |
10371 | /* Override any GCC internal prototype to avoid an error. |
10372 | Use char because int might match the return type of a GCC | |
10373 | builtin and then its argument prototype would still apply. */ | |
98418dba CW |
10374 | #ifdef __cplusplus |
10375 | extern "C" | |
10376 | #endif | |
98418dba | 10377 | char dnet_ntoa (); |
98418dba CW |
10378 | int |
10379 | main () | |
10380 | { | |
ca81d7a0 | 10381 | return dnet_ntoa (); |
98418dba CW |
10382 | ; |
10383 | return 0; | |
10384 | } | |
10385 | _ACEOF | |
10386 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
10387 | if { (ac_try="$ac_link" |
10388 | case "(($ac_try" in | |
10389 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10390 | *) ac_try_echo=$ac_try;; | |
10391 | esac | |
10392 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10393 | (eval "$ac_link") 2>conftest.er1 | |
98418dba | 10394 | ac_status=$? |
edfaf76d LK |
10395 | grep -v '^ *+' conftest.er1 >conftest.err |
10396 | rm -f conftest.er1 | |
10397 | cat conftest.err >&5 | |
c0d27fcc | 10398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
10399 | (exit $ac_status); } && { |
10400 | test -z "$ac_c_werror_flag" || | |
10401 | test ! -s conftest.err | |
10402 | } && test -s conftest$ac_exeext && | |
10403 | $as_test_x conftest$ac_exeext; then | |
98418dba CW |
10404 | ac_cv_lib_dnet_dnet_ntoa=yes |
10405 | else | |
10406 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10407 | sed 's/^/| /' conftest.$ac_ext >&5 |
10408 | ||
ca81d7a0 | 10409 | ac_cv_lib_dnet_dnet_ntoa=no |
98418dba | 10410 | fi |
ca81d7a0 | 10411 | |
f053c89f | 10412 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 10413 | conftest$ac_exeext conftest.$ac_ext |
98418dba CW |
10414 | LIBS=$ac_check_lib_save_LIBS |
10415 | fi | |
ca81d7a0 JD |
10416 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 |
10417 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; } | |
98418dba | 10418 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then |
c0d27fcc | 10419 | cat >>confdefs.h <<_ACEOF |
98418dba | 10420 | #define HAVE_LIBDNET 1 |
c0d27fcc | 10421 | _ACEOF |
98418dba CW |
10422 | |
10423 | LIBS="-ldnet $LIBS" | |
10424 | ||
10425 | fi | |
10426 | ||
c0d27fcc | 10427 | |
ca81d7a0 JD |
10428 | { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5 |
10429 | echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; } | |
98418dba CW |
10430 | if test "${ac_cv_lib_Xbsd_main+set}" = set; then |
10431 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10432 | else | |
10433 | ac_check_lib_save_LIBS=$LIBS | |
10434 | LIBS="-lXbsd $LIBS" | |
10435 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
10436 | /* confdefs.h. */ |
10437 | _ACEOF | |
10438 | cat confdefs.h >>conftest.$ac_ext | |
10439 | cat >>conftest.$ac_ext <<_ACEOF | |
10440 | /* end confdefs.h. */ | |
98418dba | 10441 | |
c0d27fcc | 10442 | |
98418dba CW |
10443 | int |
10444 | main () | |
10445 | { | |
ca81d7a0 | 10446 | return main (); |
98418dba CW |
10447 | ; |
10448 | return 0; | |
10449 | } | |
10450 | _ACEOF | |
10451 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
10452 | if { (ac_try="$ac_link" |
10453 | case "(($ac_try" in | |
10454 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10455 | *) ac_try_echo=$ac_try;; | |
10456 | esac | |
10457 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10458 | (eval "$ac_link") 2>conftest.er1 | |
98418dba | 10459 | ac_status=$? |
edfaf76d LK |
10460 | grep -v '^ *+' conftest.er1 >conftest.err |
10461 | rm -f conftest.er1 | |
10462 | cat conftest.err >&5 | |
c0d27fcc | 10463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
10464 | (exit $ac_status); } && { |
10465 | test -z "$ac_c_werror_flag" || | |
10466 | test ! -s conftest.err | |
10467 | } && test -s conftest$ac_exeext && | |
10468 | $as_test_x conftest$ac_exeext; then | |
98418dba CW |
10469 | ac_cv_lib_Xbsd_main=yes |
10470 | else | |
10471 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10472 | sed 's/^/| /' conftest.$ac_ext >&5 |
10473 | ||
ca81d7a0 | 10474 | ac_cv_lib_Xbsd_main=no |
98418dba | 10475 | fi |
ca81d7a0 | 10476 | |
f053c89f | 10477 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 10478 | conftest$ac_exeext conftest.$ac_ext |
98418dba CW |
10479 | LIBS=$ac_check_lib_save_LIBS |
10480 | fi | |
ca81d7a0 JD |
10481 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5 |
10482 | echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; } | |
98418dba CW |
10483 | if test $ac_cv_lib_Xbsd_main = yes; then |
10484 | LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd" | |
10485 | fi | |
10486 | ||
c0d27fcc MR |
10487 | |
10488 | ||
ca81d7a0 JD |
10489 | { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5 |
10490 | echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; } | |
98418dba CW |
10491 | if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then |
10492 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10493 | else | |
10494 | ac_check_lib_save_LIBS=$LIBS | |
10495 | LIBS="-lpthreads $LIBS" | |
10496 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
10497 | /* confdefs.h. */ |
10498 | _ACEOF | |
10499 | cat confdefs.h >>conftest.$ac_ext | |
10500 | cat >>conftest.$ac_ext <<_ACEOF | |
10501 | /* end confdefs.h. */ | |
98418dba | 10502 | |
ca81d7a0 JD |
10503 | /* Override any GCC internal prototype to avoid an error. |
10504 | Use char because int might match the return type of a GCC | |
10505 | builtin and then its argument prototype would still apply. */ | |
98418dba CW |
10506 | #ifdef __cplusplus |
10507 | extern "C" | |
10508 | #endif | |
98418dba | 10509 | char cma_open (); |
98418dba CW |
10510 | int |
10511 | main () | |
10512 | { | |
ca81d7a0 | 10513 | return cma_open (); |
98418dba CW |
10514 | ; |
10515 | return 0; | |
10516 | } | |
10517 | _ACEOF | |
10518 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
10519 | if { (ac_try="$ac_link" |
10520 | case "(($ac_try" in | |
10521 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10522 | *) ac_try_echo=$ac_try;; | |
10523 | esac | |
10524 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10525 | (eval "$ac_link") 2>conftest.er1 | |
98418dba | 10526 | ac_status=$? |
edfaf76d LK |
10527 | grep -v '^ *+' conftest.er1 >conftest.err |
10528 | rm -f conftest.er1 | |
10529 | cat conftest.err >&5 | |
c0d27fcc | 10530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
10531 | (exit $ac_status); } && { |
10532 | test -z "$ac_c_werror_flag" || | |
10533 | test ! -s conftest.err | |
10534 | } && test -s conftest$ac_exeext && | |
10535 | $as_test_x conftest$ac_exeext; then | |
98418dba CW |
10536 | ac_cv_lib_pthreads_cma_open=yes |
10537 | else | |
10538 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10539 | sed 's/^/| /' conftest.$ac_ext >&5 |
10540 | ||
ca81d7a0 | 10541 | ac_cv_lib_pthreads_cma_open=no |
98418dba | 10542 | fi |
ca81d7a0 | 10543 | |
f053c89f | 10544 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 10545 | conftest$ac_exeext conftest.$ac_ext |
98418dba CW |
10546 | LIBS=$ac_check_lib_save_LIBS |
10547 | fi | |
ca81d7a0 JD |
10548 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5 |
10549 | echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; } | |
98418dba | 10550 | if test $ac_cv_lib_pthreads_cma_open = yes; then |
c0d27fcc | 10551 | cat >>confdefs.h <<_ACEOF |
98418dba | 10552 | #define HAVE_LIBPTHREADS 1 |
c0d27fcc | 10553 | _ACEOF |
98418dba CW |
10554 | |
10555 | LIBS="-lpthreads $LIBS" | |
10556 | ||
10557 | fi | |
10558 | ||
c0d27fcc | 10559 | |
ca81d7a0 JD |
10560 | { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5 |
10561 | echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; } | |
98418dba CW |
10562 | if test -d /usr/X386/include; then |
10563 | HAVE_XFREE386=yes | |
10564 | : ${C_SWITCH_X_SITE="-I/usr/X386/include"} | |
10565 | else | |
10566 | HAVE_XFREE386=no | |
10567 | fi | |
ca81d7a0 JD |
10568 | { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5 |
10569 | echo "${ECHO_T}$HAVE_XFREE386" >&6; } | |
98418dba | 10570 | |
55597d70 DL |
10571 | |
10572 | case ${host_os} in | |
10573 | aix*) | |
ca81d7a0 JD |
10574 | { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5 |
10575 | echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; } | |
55597d70 DL |
10576 | if test "${gdb_cv_bigtoc+set}" = set; then |
10577 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10578 | else | |
10579 | ||
10580 | case $GCC in | |
10581 | yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;; | |
10582 | *) gdb_cv_bigtoc=-bbigtoc ;; | |
10583 | esac | |
10584 | ||
10585 | LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc | |
10586 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
10587 | /* confdefs.h. */ |
10588 | _ACEOF | |
10589 | cat confdefs.h >>conftest.$ac_ext | |
10590 | cat >>conftest.$ac_ext <<_ACEOF | |
10591 | /* end confdefs.h. */ | |
55597d70 DL |
10592 | |
10593 | int | |
10594 | main () | |
10595 | { | |
10596 | int i; | |
10597 | ; | |
10598 | return 0; | |
10599 | } | |
10600 | _ACEOF | |
10601 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
10602 | if { (ac_try="$ac_link" |
10603 | case "(($ac_try" in | |
10604 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10605 | *) ac_try_echo=$ac_try;; | |
10606 | esac | |
10607 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10608 | (eval "$ac_link") 2>conftest.er1 | |
55597d70 | 10609 | ac_status=$? |
edfaf76d LK |
10610 | grep -v '^ *+' conftest.er1 >conftest.err |
10611 | rm -f conftest.er1 | |
10612 | cat conftest.err >&5 | |
55597d70 | 10613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
10614 | (exit $ac_status); } && { |
10615 | test -z "$ac_c_werror_flag" || | |
10616 | test ! -s conftest.err | |
10617 | } && test -s conftest$ac_exeext && | |
10618 | $as_test_x conftest$ac_exeext; then | |
55597d70 DL |
10619 | : |
10620 | else | |
10621 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10622 | sed 's/^/| /' conftest.$ac_ext >&5 |
10623 | ||
ca81d7a0 | 10624 | gdb_cv_bigtoc= |
55597d70 | 10625 | fi |
ca81d7a0 | 10626 | |
f053c89f | 10627 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 10628 | conftest$ac_exeext conftest.$ac_ext |
55597d70 DL |
10629 | |
10630 | fi | |
ca81d7a0 JD |
10631 | { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5 |
10632 | echo "${ECHO_T}$gdb_cv_bigtoc" >&6; } | |
55597d70 DL |
10633 | ;; |
10634 | esac | |
10635 | ||
ae1a998c RS |
10636 | # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets |
10637 | # used for the tests that follow. We set them back to REAL_CFLAGS and | |
10638 | # REAL_CPPFLAGS later on. | |
98418dba CW |
10639 | |
10640 | REAL_CPPFLAGS="$CPPFLAGS" | |
10641 | ||
10642 | if test "${HAVE_X11}" = "yes"; then | |
10643 | DEFS="$C_SWITCH_X_SITE $DEFS" | |
10644 | LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE" | |
10645 | LIBS="$LIBX $LIBS" | |
10646 | CFLAGS="$C_SWITCH_X_SITE $CFLAGS" | |
10647 | CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS" | |
10648 | ||
10649 | # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests. | |
10650 | # This is handled by LD_SWITCH_X_SITE_AUX during the real build, | |
10651 | # but it's more convenient here to set LD_RUN_PATH | |
10652 | # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX. | |
10653 | if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then | |
10654 | LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH | |
10655 | export LD_RUN_PATH | |
10656 | fi | |
10657 | ||
10658 | if test "${opsys}" = "gnu-linux"; then | |
ca81d7a0 JD |
10659 | { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5 |
10660 | echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; } | |
98418dba | 10661 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
10662 | /* confdefs.h. */ |
10663 | _ACEOF | |
10664 | cat confdefs.h >>conftest.$ac_ext | |
10665 | cat >>conftest.$ac_ext <<_ACEOF | |
10666 | /* end confdefs.h. */ | |
98418dba | 10667 | |
98418dba CW |
10668 | int |
10669 | main () | |
10670 | { | |
10671 | XOpenDisplay ("foo"); | |
10672 | ; | |
10673 | return 0; | |
10674 | } | |
10675 | _ACEOF | |
10676 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
10677 | if { (ac_try="$ac_link" |
10678 | case "(($ac_try" in | |
10679 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10680 | *) ac_try_echo=$ac_try;; | |
10681 | esac | |
10682 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10683 | (eval "$ac_link") 2>conftest.er1 | |
98418dba | 10684 | ac_status=$? |
edfaf76d LK |
10685 | grep -v '^ *+' conftest.er1 >conftest.err |
10686 | rm -f conftest.er1 | |
10687 | cat conftest.err >&5 | |
c0d27fcc | 10688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
10689 | (exit $ac_status); } && { |
10690 | test -z "$ac_c_werror_flag" || | |
10691 | test ! -s conftest.err | |
10692 | } && test -s conftest$ac_exeext && | |
10693 | $as_test_x conftest$ac_exeext; then | |
35996d22 | 10694 | xlinux_first_failure=no |
98418dba CW |
10695 | else |
10696 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10697 | sed 's/^/| /' conftest.$ac_ext >&5 |
10698 | ||
ca81d7a0 | 10699 | xlinux_first_failure=yes |
98418dba | 10700 | fi |
ca81d7a0 | 10701 | |
f053c89f | 10702 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 10703 | conftest$ac_exeext conftest.$ac_ext |
98418dba CW |
10704 | if test "${xlinux_first_failure}" = "yes"; then |
10705 | OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE" | |
10706 | OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE" | |
10707 | OLD_CPPFLAGS="$CPPFLAGS" | |
10708 | OLD_LIBS="$LIBS" | |
10709 | LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout" | |
10710 | C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout" | |
10711 | CPPFLAGS="$CPPFLAGS -b i486-linuxaout" | |
10712 | LIBS="$LIBS -b i486-linuxaout" | |
10713 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
10714 | /* confdefs.h. */ |
10715 | _ACEOF | |
10716 | cat confdefs.h >>conftest.$ac_ext | |
10717 | cat >>conftest.$ac_ext <<_ACEOF | |
10718 | /* end confdefs.h. */ | |
98418dba | 10719 | |
98418dba CW |
10720 | int |
10721 | main () | |
10722 | { | |
10723 | XOpenDisplay ("foo"); | |
10724 | ; | |
10725 | return 0; | |
10726 | } | |
10727 | _ACEOF | |
10728 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
10729 | if { (ac_try="$ac_link" |
10730 | case "(($ac_try" in | |
10731 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10732 | *) ac_try_echo=$ac_try;; | |
10733 | esac | |
10734 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10735 | (eval "$ac_link") 2>conftest.er1 | |
98418dba | 10736 | ac_status=$? |
edfaf76d LK |
10737 | grep -v '^ *+' conftest.er1 >conftest.err |
10738 | rm -f conftest.er1 | |
10739 | cat conftest.err >&5 | |
c0d27fcc | 10740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
10741 | (exit $ac_status); } && { |
10742 | test -z "$ac_c_werror_flag" || | |
10743 | test ! -s conftest.err | |
10744 | } && test -s conftest$ac_exeext && | |
10745 | $as_test_x conftest$ac_exeext; then | |
98418dba CW |
10746 | xlinux_second_failure=no |
10747 | else | |
10748 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10749 | sed 's/^/| /' conftest.$ac_ext >&5 |
10750 | ||
ca81d7a0 | 10751 | xlinux_second_failure=yes |
98418dba | 10752 | fi |
ca81d7a0 | 10753 | |
f053c89f | 10754 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 10755 | conftest$ac_exeext conftest.$ac_ext |
98418dba CW |
10756 | if test "${xlinux_second_failure}" = "yes"; then |
10757 | # If we get the same failure with -b, there is no use adding -b. | |
10758 | # So take it out. This plays safe. | |
10759 | LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE" | |
10760 | C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE" | |
10761 | CPPFLAGS="$OLD_CPPFLAGS" | |
10762 | LIBS="$OLD_LIBS" | |
ca81d7a0 JD |
10763 | { echo "$as_me:$LINENO: result: no" >&5 |
10764 | echo "${ECHO_T}no" >&6; } | |
98418dba | 10765 | else |
ca81d7a0 JD |
10766 | { echo "$as_me:$LINENO: result: yes" >&5 |
10767 | echo "${ECHO_T}yes" >&6; } | |
98418dba CW |
10768 | fi |
10769 | else | |
ca81d7a0 JD |
10770 | { echo "$as_me:$LINENO: result: no" >&5 |
10771 | echo "${ECHO_T}no" >&6; } | |
98418dba CW |
10772 | fi |
10773 | fi | |
10774 | ||
10775 | # Reportedly, some broken Solaris systems have XKBlib.h but are missing | |
10776 | # header files included from there. | |
ca81d7a0 JD |
10777 | { echo "$as_me:$LINENO: checking for Xkb" >&5 |
10778 | echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; } | |
98418dba | 10779 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
10780 | /* confdefs.h. */ |
10781 | _ACEOF | |
10782 | cat confdefs.h >>conftest.$ac_ext | |
10783 | cat >>conftest.$ac_ext <<_ACEOF | |
10784 | /* end confdefs.h. */ | |
98418dba CW |
10785 | #include <X11/Xlib.h> |
10786 | #include <X11/XKBlib.h> | |
98418dba CW |
10787 | int |
10788 | main () | |
10789 | { | |
10790 | XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd); | |
10791 | ; | |
10792 | return 0; | |
10793 | } | |
10794 | _ACEOF | |
10795 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
10796 | if { (ac_try="$ac_link" |
10797 | case "(($ac_try" in | |
10798 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10799 | *) ac_try_echo=$ac_try;; | |
10800 | esac | |
10801 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10802 | (eval "$ac_link") 2>conftest.er1 | |
98418dba | 10803 | ac_status=$? |
edfaf76d LK |
10804 | grep -v '^ *+' conftest.er1 >conftest.err |
10805 | rm -f conftest.er1 | |
10806 | cat conftest.err >&5 | |
c0d27fcc | 10807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
10808 | (exit $ac_status); } && { |
10809 | test -z "$ac_c_werror_flag" || | |
10810 | test ! -s conftest.err | |
10811 | } && test -s conftest$ac_exeext && | |
10812 | $as_test_x conftest$ac_exeext; then | |
98418dba CW |
10813 | emacs_xkb=yes |
10814 | else | |
10815 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10816 | sed 's/^/| /' conftest.$ac_ext >&5 |
10817 | ||
ca81d7a0 | 10818 | emacs_xkb=no |
98418dba | 10819 | fi |
ca81d7a0 | 10820 | |
f053c89f | 10821 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 10822 | conftest$ac_exeext conftest.$ac_ext |
ca81d7a0 JD |
10823 | { echo "$as_me:$LINENO: result: $emacs_xkb" >&5 |
10824 | echo "${ECHO_T}$emacs_xkb" >&6; } | |
98418dba | 10825 | if test $emacs_xkb = yes; then |
b936fae4 | 10826 | |
c0d27fcc | 10827 | cat >>confdefs.h <<\_ACEOF |
98418dba | 10828 | #define HAVE_XKBGETKEYBOARD 1 |
c0d27fcc | 10829 | _ACEOF |
98418dba CW |
10830 | |
10831 | fi | |
10832 | ||
c0d27fcc MR |
10833 | |
10834 | ||
10835 | ||
10836 | ||
98418dba CW |
10837 | for ac_func in XrmSetDatabase XScreenResourceString \ |
10838 | XScreenNumberOfScreen XSetWMProtocols | |
10839 | do | |
10840 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
ca81d7a0 JD |
10841 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
10842 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
10843 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
98418dba CW |
10844 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10845 | else | |
10846 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
10847 | /* confdefs.h. */ |
10848 | _ACEOF | |
10849 | cat confdefs.h >>conftest.$ac_ext | |
10850 | cat >>conftest.$ac_ext <<_ACEOF | |
10851 | /* end confdefs.h. */ | |
edfaf76d LK |
10852 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
10853 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10854 | #define $ac_func innocuous_$ac_func | |
10855 | ||
98418dba | 10856 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
10857 | which can conflict with char $ac_func (); below. |
10858 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10859 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 10860 | |
19650fd6 AS |
10861 | #ifdef __STDC__ |
10862 | # include <limits.h> | |
10863 | #else | |
10864 | # include <assert.h> | |
10865 | #endif | |
edfaf76d LK |
10866 | |
10867 | #undef $ac_func | |
10868 | ||
ca81d7a0 JD |
10869 | /* Override any GCC internal prototype to avoid an error. |
10870 | Use char because int might match the return type of a GCC | |
10871 | builtin and then its argument prototype would still apply. */ | |
98418dba CW |
10872 | #ifdef __cplusplus |
10873 | extern "C" | |
10874 | #endif | |
98418dba | 10875 | char $ac_func (); |
98418dba CW |
10876 | /* The GNU C library defines this for functions which it implements |
10877 | to always fail with ENOSYS. Some functions are actually named | |
10878 | something starting with __ and the normal name is an alias. */ | |
ca81d7a0 | 10879 | #if defined __stub_$ac_func || defined __stub___$ac_func |
98418dba | 10880 | choke me |
98418dba CW |
10881 | #endif |
10882 | ||
19650fd6 AS |
10883 | int |
10884 | main () | |
10885 | { | |
ca81d7a0 | 10886 | return $ac_func (); |
98418dba CW |
10887 | ; |
10888 | return 0; | |
10889 | } | |
10890 | _ACEOF | |
10891 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
10892 | if { (ac_try="$ac_link" |
10893 | case "(($ac_try" in | |
10894 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10895 | *) ac_try_echo=$ac_try;; | |
10896 | esac | |
10897 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10898 | (eval "$ac_link") 2>conftest.er1 | |
98418dba | 10899 | ac_status=$? |
edfaf76d LK |
10900 | grep -v '^ *+' conftest.er1 >conftest.err |
10901 | rm -f conftest.er1 | |
10902 | cat conftest.err >&5 | |
c0d27fcc | 10903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
10904 | (exit $ac_status); } && { |
10905 | test -z "$ac_c_werror_flag" || | |
10906 | test ! -s conftest.err | |
10907 | } && test -s conftest$ac_exeext && | |
10908 | $as_test_x conftest$ac_exeext; then | |
98418dba CW |
10909 | eval "$as_ac_var=yes" |
10910 | else | |
10911 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10912 | sed 's/^/| /' conftest.$ac_ext >&5 |
10913 | ||
ca81d7a0 | 10914 | eval "$as_ac_var=no" |
98418dba | 10915 | fi |
ca81d7a0 | 10916 | |
f053c89f | 10917 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 10918 | conftest$ac_exeext conftest.$ac_ext |
98418dba | 10919 | fi |
ca81d7a0 JD |
10920 | ac_res=`eval echo '${'$as_ac_var'}'` |
10921 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10922 | echo "${ECHO_T}$ac_res" >&6; } | |
98418dba | 10923 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
c0d27fcc | 10924 | cat >>confdefs.h <<_ACEOF |
98418dba | 10925 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 10926 | _ACEOF |
98418dba CW |
10927 | |
10928 | fi | |
10929 | done | |
10930 | ||
10931 | fi | |
10932 | ||
10933 | if test "${window_system}" = "x11"; then | |
ca81d7a0 JD |
10934 | { echo "$as_me:$LINENO: checking X11 version 6" >&5 |
10935 | echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; } | |
98418dba CW |
10936 | if test "${emacs_cv_x11_version_6+set}" = set; then |
10937 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10938 | else | |
10939 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
10940 | /* confdefs.h. */ |
10941 | _ACEOF | |
10942 | cat confdefs.h >>conftest.$ac_ext | |
10943 | cat >>conftest.$ac_ext <<_ACEOF | |
10944 | /* end confdefs.h. */ | |
98418dba | 10945 | #include <X11/Xlib.h> |
98418dba CW |
10946 | int |
10947 | main () | |
10948 | { | |
10949 | #if XlibSpecificationRelease < 6 | |
10950 | fail; | |
10951 | #endif | |
10952 | ||
10953 | ; | |
10954 | return 0; | |
10955 | } | |
10956 | _ACEOF | |
10957 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
10958 | if { (ac_try="$ac_link" |
10959 | case "(($ac_try" in | |
10960 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10961 | *) ac_try_echo=$ac_try;; | |
10962 | esac | |
10963 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10964 | (eval "$ac_link") 2>conftest.er1 | |
98418dba | 10965 | ac_status=$? |
edfaf76d LK |
10966 | grep -v '^ *+' conftest.er1 >conftest.err |
10967 | rm -f conftest.er1 | |
10968 | cat conftest.err >&5 | |
c0d27fcc | 10969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
10970 | (exit $ac_status); } && { |
10971 | test -z "$ac_c_werror_flag" || | |
10972 | test ! -s conftest.err | |
10973 | } && test -s conftest$ac_exeext && | |
10974 | $as_test_x conftest$ac_exeext; then | |
98418dba CW |
10975 | emacs_cv_x11_version_6=yes |
10976 | else | |
10977 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10978 | sed 's/^/| /' conftest.$ac_ext >&5 |
10979 | ||
ca81d7a0 | 10980 | emacs_cv_x11_version_6=no |
98418dba | 10981 | fi |
ca81d7a0 | 10982 | |
f053c89f | 10983 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 10984 | conftest$ac_exeext conftest.$ac_ext |
98418dba CW |
10985 | fi |
10986 | ||
10987 | if test $emacs_cv_x11_version_6 = yes; then | |
ca81d7a0 JD |
10988 | { echo "$as_me:$LINENO: result: 6 or newer" >&5 |
10989 | echo "${ECHO_T}6 or newer" >&6; } | |
b936fae4 | 10990 | |
c0d27fcc | 10991 | cat >>confdefs.h <<\_ACEOF |
98418dba | 10992 | #define HAVE_X11R6 1 |
c0d27fcc | 10993 | _ACEOF |
98418dba CW |
10994 | |
10995 | else | |
ca81d7a0 JD |
10996 | { echo "$as_me:$LINENO: result: before 6" >&5 |
10997 | echo "${ECHO_T}before 6" >&6; } | |
98418dba CW |
10998 | fi |
10999 | fi | |
11000 | ||
11001 | if test "${window_system}" = "x11"; then | |
ca81d7a0 JD |
11002 | { echo "$as_me:$LINENO: checking X11 version 5" >&5 |
11003 | echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6; } | |
98418dba CW |
11004 | if test "${emacs_cv_x11_version_5+set}" = set; then |
11005 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11006 | else | |
11007 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
11008 | /* confdefs.h. */ |
11009 | _ACEOF | |
11010 | cat confdefs.h >>conftest.$ac_ext | |
11011 | cat >>conftest.$ac_ext <<_ACEOF | |
11012 | /* end confdefs.h. */ | |
98418dba | 11013 | #include <X11/Xlib.h> |
98418dba CW |
11014 | int |
11015 | main () | |
11016 | { | |
11017 | #if XlibSpecificationRelease < 5 | |
11018 | fail; | |
11019 | #endif | |
11020 | ||
11021 | ; | |
11022 | return 0; | |
11023 | } | |
11024 | _ACEOF | |
11025 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
11026 | if { (ac_try="$ac_link" |
11027 | case "(($ac_try" in | |
11028 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11029 | *) ac_try_echo=$ac_try;; | |
11030 | esac | |
11031 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11032 | (eval "$ac_link") 2>conftest.er1 | |
98418dba | 11033 | ac_status=$? |
edfaf76d LK |
11034 | grep -v '^ *+' conftest.er1 >conftest.err |
11035 | rm -f conftest.er1 | |
11036 | cat conftest.err >&5 | |
c0d27fcc | 11037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
11038 | (exit $ac_status); } && { |
11039 | test -z "$ac_c_werror_flag" || | |
11040 | test ! -s conftest.err | |
11041 | } && test -s conftest$ac_exeext && | |
11042 | $as_test_x conftest$ac_exeext; then | |
98418dba CW |
11043 | emacs_cv_x11_version_5=yes |
11044 | else | |
11045 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
11046 | sed 's/^/| /' conftest.$ac_ext >&5 |
11047 | ||
ca81d7a0 | 11048 | emacs_cv_x11_version_5=no |
98418dba | 11049 | fi |
ca81d7a0 | 11050 | |
f053c89f | 11051 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 11052 | conftest$ac_exeext conftest.$ac_ext |
98418dba CW |
11053 | fi |
11054 | ||
11055 | if test $emacs_cv_x11_version_5 = yes; then | |
ca81d7a0 JD |
11056 | { echo "$as_me:$LINENO: result: 5 or newer" >&5 |
11057 | echo "${ECHO_T}5 or newer" >&6; } | |
98418dba | 11058 | HAVE_X11R5=yes |
b936fae4 | 11059 | |
c0d27fcc | 11060 | cat >>confdefs.h <<\_ACEOF |
98418dba | 11061 | #define HAVE_X11R5 1 |
c0d27fcc | 11062 | _ACEOF |
98418dba CW |
11063 | |
11064 | else | |
11065 | HAVE_X11R5=no | |
ca81d7a0 JD |
11066 | { echo "$as_me:$LINENO: result: before 5" >&5 |
11067 | echo "${ECHO_T}before 5" >&6; } | |
98418dba CW |
11068 | fi |
11069 | fi | |
11070 | ||
488dd4c4 | 11071 | HAVE_GTK=no |
8eeae1c9 JD |
11072 | if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then |
11073 | USE_X_TOOLKIT=none | |
11074 | fi | |
089a966d GM |
11075 | if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk" || \ |
11076 | test "$USE_X_TOOLKIT" = "maybe"; then | |
cd890796 | 11077 | if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then |
488dd4c4 JD |
11078 | { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5 |
11079 | echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;} | |
11080 | { (exit 1); exit 1; }; }; | |
11081 | fi | |
448541bc JD |
11082 | GLIB_REQUIRED=2.4 |
11083 | GTK_REQUIRED=2.4 | |
488dd4c4 JD |
11084 | GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED" |
11085 | ||
11086 | if test "X${with_pkg_config_prog}" != X; then | |
11087 | PKG_CONFIG="${with_pkg_config_prog}" | |
11088 | fi | |
11089 | ||
11090 | succeeded=no | |
11091 | ||
11092 | if test -z "$PKG_CONFIG"; then | |
11093 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
11094 | set dummy pkg-config; ac_word=$2 | |
ca81d7a0 JD |
11095 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11096 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
488dd4c4 JD |
11097 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
11098 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11099 | else | |
11100 | case $PKG_CONFIG in | |
11101 | [\\/]* | ?:[\\/]*) | |
11102 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
11103 | ;; | |
11104 | *) | |
11105 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11106 | for as_dir in $PATH | |
11107 | do | |
11108 | IFS=$as_save_IFS | |
11109 | test -z "$as_dir" && as_dir=. | |
11110 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f053c89f | 11111 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
488dd4c4 JD |
11112 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
11113 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11114 | break 2 | |
11115 | fi | |
11116 | done | |
11117 | done | |
ca81d7a0 | 11118 | IFS=$as_save_IFS |
488dd4c4 JD |
11119 | |
11120 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
11121 | ;; | |
11122 | esac | |
11123 | fi | |
11124 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
488dd4c4 | 11125 | if test -n "$PKG_CONFIG"; then |
ca81d7a0 JD |
11126 | { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
11127 | echo "${ECHO_T}$PKG_CONFIG" >&6; } | |
488dd4c4 | 11128 | else |
ca81d7a0 JD |
11129 | { echo "$as_me:$LINENO: result: no" >&5 |
11130 | echo "${ECHO_T}no" >&6; } | |
488dd4c4 JD |
11131 | fi |
11132 | ||
ca81d7a0 | 11133 | |
488dd4c4 JD |
11134 | fi |
11135 | ||
11136 | if test "$PKG_CONFIG" = "no" ; then | |
089a966d | 11137 | pkg_check_gtk=no |
488dd4c4 JD |
11138 | else |
11139 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
11140 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
ca81d7a0 JD |
11141 | { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5 |
11142 | echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; } | |
488dd4c4 | 11143 | |
67db6aa2 | 11144 | if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then |
ca81d7a0 JD |
11145 | { echo "$as_me:$LINENO: result: yes" >&5 |
11146 | echo "${ECHO_T}yes" >&6; } | |
488dd4c4 JD |
11147 | succeeded=yes |
11148 | ||
ca81d7a0 JD |
11149 | { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5 |
11150 | echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; } | |
94315858 | 11151 | GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'` |
ca81d7a0 JD |
11152 | { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5 |
11153 | echo "${ECHO_T}$GTK_CFLAGS" >&6; } | |
488dd4c4 | 11154 | |
ca81d7a0 JD |
11155 | { echo "$as_me:$LINENO: checking GTK_LIBS" >&5 |
11156 | echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; } | |
94315858 | 11157 | GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'` |
ca81d7a0 JD |
11158 | { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5 |
11159 | echo "${ECHO_T}$GTK_LIBS" >&6; } | |
488dd4c4 | 11160 | else |
ca81d7a0 JD |
11161 | { echo "$as_me:$LINENO: result: no" >&5 |
11162 | echo "${ECHO_T}no" >&6; } | |
488dd4c4 JD |
11163 | GTK_CFLAGS="" |
11164 | GTK_LIBS="" | |
11165 | ## If we have a custom action on failure, don't print errors, but | |
11166 | ## do set a variable so people can do so. | |
11167 | GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"` | |
089a966d | 11168 | |
488dd4c4 JD |
11169 | fi |
11170 | ||
11171 | ||
11172 | ||
11173 | else | |
11174 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
11175 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
11176 | fi | |
11177 | fi | |
11178 | ||
11179 | if test $succeeded = yes; then | |
089a966d | 11180 | pkg_check_gtk=yes |
488dd4c4 | 11181 | else |
089a966d GM |
11182 | pkg_check_gtk=no |
11183 | fi | |
11184 | ||
11185 | if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then | |
11186 | { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5 | |
11187 | echo "$as_me: error: $GTK_PKG_ERRORS" >&2;} | |
488dd4c4 JD |
11188 | { (exit 1); exit 1; }; } |
11189 | fi | |
089a966d GM |
11190 | fi |
11191 | ||
11192 | ||
11193 | if test x"$pkg_check_gtk" = xyes; then | |
488dd4c4 JD |
11194 | |
11195 | ||
11196 | ||
11197 | C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS" | |
57669b57 JD |
11198 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
11199 | LIBS="$GTK_LIBS $LIBS" | |
8eeae1c9 | 11200 | GTK_COMPILES=no |
57669b57 | 11201 | |
8eeae1c9 | 11202 | for ac_func in gtk_main |
57669b57 JD |
11203 | do |
11204 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
ca81d7a0 JD |
11205 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
11206 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
11207 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
57669b57 JD |
11208 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11209 | else | |
11210 | cat >conftest.$ac_ext <<_ACEOF | |
57669b57 JD |
11211 | /* confdefs.h. */ |
11212 | _ACEOF | |
11213 | cat confdefs.h >>conftest.$ac_ext | |
11214 | cat >>conftest.$ac_ext <<_ACEOF | |
11215 | /* end confdefs.h. */ | |
edfaf76d LK |
11216 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
11217 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11218 | #define $ac_func innocuous_$ac_func | |
11219 | ||
57669b57 JD |
11220 | /* System header to define __stub macros and hopefully few prototypes, |
11221 | which can conflict with char $ac_func (); below. | |
11222 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11223 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 11224 | |
57669b57 JD |
11225 | #ifdef __STDC__ |
11226 | # include <limits.h> | |
11227 | #else | |
11228 | # include <assert.h> | |
11229 | #endif | |
edfaf76d LK |
11230 | |
11231 | #undef $ac_func | |
11232 | ||
ca81d7a0 JD |
11233 | /* Override any GCC internal prototype to avoid an error. |
11234 | Use char because int might match the return type of a GCC | |
11235 | builtin and then its argument prototype would still apply. */ | |
57669b57 JD |
11236 | #ifdef __cplusplus |
11237 | extern "C" | |
57669b57 | 11238 | #endif |
57669b57 JD |
11239 | char $ac_func (); |
11240 | /* The GNU C library defines this for functions which it implements | |
11241 | to always fail with ENOSYS. Some functions are actually named | |
11242 | something starting with __ and the normal name is an alias. */ | |
ca81d7a0 | 11243 | #if defined __stub_$ac_func || defined __stub___$ac_func |
57669b57 | 11244 | choke me |
57669b57 JD |
11245 | #endif |
11246 | ||
11247 | int | |
11248 | main () | |
11249 | { | |
ca81d7a0 | 11250 | return $ac_func (); |
57669b57 JD |
11251 | ; |
11252 | return 0; | |
11253 | } | |
11254 | _ACEOF | |
11255 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
11256 | if { (ac_try="$ac_link" |
11257 | case "(($ac_try" in | |
11258 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11259 | *) ac_try_echo=$ac_try;; | |
11260 | esac | |
11261 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11262 | (eval "$ac_link") 2>conftest.er1 | |
57669b57 | 11263 | ac_status=$? |
edfaf76d LK |
11264 | grep -v '^ *+' conftest.er1 >conftest.err |
11265 | rm -f conftest.er1 | |
11266 | cat conftest.err >&5 | |
57669b57 | 11267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
11268 | (exit $ac_status); } && { |
11269 | test -z "$ac_c_werror_flag" || | |
11270 | test ! -s conftest.err | |
11271 | } && test -s conftest$ac_exeext && | |
11272 | $as_test_x conftest$ac_exeext; then | |
57669b57 JD |
11273 | eval "$as_ac_var=yes" |
11274 | else | |
11275 | echo "$as_me: failed program was:" >&5 | |
11276 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11277 | ||
ca81d7a0 | 11278 | eval "$as_ac_var=no" |
57669b57 | 11279 | fi |
ca81d7a0 | 11280 | |
f053c89f | 11281 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 11282 | conftest$ac_exeext conftest.$ac_ext |
57669b57 | 11283 | fi |
ca81d7a0 JD |
11284 | ac_res=`eval echo '${'$as_ac_var'}'` |
11285 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11286 | echo "${ECHO_T}$ac_res" >&6; } | |
57669b57 JD |
11287 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
11288 | cat >>confdefs.h <<_ACEOF | |
11289 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
11290 | _ACEOF | |
8eeae1c9 | 11291 | GTK_COMPILES=yes |
57669b57 JD |
11292 | fi |
11293 | done | |
11294 | ||
8eeae1c9 | 11295 | if test "${GTK_COMPILES}" != "yes"; then |
089a966d GM |
11296 | if test "$USE_X_TOOLKIT" != "maybe"; then |
11297 | { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5 | |
8eeae1c9 JD |
11298 | echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;} |
11299 | { (exit 1); exit 1; }; }; | |
089a966d GM |
11300 | fi |
11301 | else | |
11302 | HAVE_GTK=yes | |
57669b57 JD |
11303 | |
11304 | cat >>confdefs.h <<\_ACEOF | |
8eeae1c9 | 11305 | #define HAVE_GTK 1 |
572a3cc2 JD |
11306 | _ACEOF |
11307 | ||
089a966d GM |
11308 | USE_X_TOOLKIT=none |
11309 | fi | |
11310 | ||
11311 | fi | |
11312 | ||
11313 | ||
11314 | if test "${HAVE_GTK}" = "yes"; then | |
8eeae1c9 JD |
11315 | |
11316 | if test "$with_toolkit_scroll_bars" != no; then | |
11317 | with_toolkit_scroll_bars=yes | |
572a3cc2 | 11318 | fi |
572a3cc2 | 11319 | |
8eeae1c9 JD |
11320 | HAVE_GTK_MULTIDISPLAY=no |
11321 | ||
11322 | for ac_func in gdk_display_open | |
572a3cc2 JD |
11323 | do |
11324 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
ca81d7a0 JD |
11325 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
11326 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
11327 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
572a3cc2 JD |
11328 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11329 | else | |
11330 | cat >conftest.$ac_ext <<_ACEOF | |
11331 | /* confdefs.h. */ | |
11332 | _ACEOF | |
11333 | cat confdefs.h >>conftest.$ac_ext | |
11334 | cat >>conftest.$ac_ext <<_ACEOF | |
11335 | /* end confdefs.h. */ | |
edfaf76d LK |
11336 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
11337 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11338 | #define $ac_func innocuous_$ac_func | |
11339 | ||
572a3cc2 JD |
11340 | /* System header to define __stub macros and hopefully few prototypes, |
11341 | which can conflict with char $ac_func (); below. | |
11342 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11343 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 11344 | |
572a3cc2 JD |
11345 | #ifdef __STDC__ |
11346 | # include <limits.h> | |
11347 | #else | |
11348 | # include <assert.h> | |
11349 | #endif | |
edfaf76d LK |
11350 | |
11351 | #undef $ac_func | |
11352 | ||
ca81d7a0 JD |
11353 | /* Override any GCC internal prototype to avoid an error. |
11354 | Use char because int might match the return type of a GCC | |
11355 | builtin and then its argument prototype would still apply. */ | |
572a3cc2 JD |
11356 | #ifdef __cplusplus |
11357 | extern "C" | |
572a3cc2 | 11358 | #endif |
572a3cc2 JD |
11359 | char $ac_func (); |
11360 | /* The GNU C library defines this for functions which it implements | |
11361 | to always fail with ENOSYS. Some functions are actually named | |
11362 | something starting with __ and the normal name is an alias. */ | |
ca81d7a0 | 11363 | #if defined __stub_$ac_func || defined __stub___$ac_func |
572a3cc2 | 11364 | choke me |
572a3cc2 JD |
11365 | #endif |
11366 | ||
11367 | int | |
11368 | main () | |
11369 | { | |
ca81d7a0 | 11370 | return $ac_func (); |
572a3cc2 JD |
11371 | ; |
11372 | return 0; | |
11373 | } | |
11374 | _ACEOF | |
11375 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
11376 | if { (ac_try="$ac_link" |
11377 | case "(($ac_try" in | |
11378 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11379 | *) ac_try_echo=$ac_try;; | |
11380 | esac | |
11381 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11382 | (eval "$ac_link") 2>conftest.er1 | |
572a3cc2 | 11383 | ac_status=$? |
edfaf76d LK |
11384 | grep -v '^ *+' conftest.er1 >conftest.err |
11385 | rm -f conftest.er1 | |
11386 | cat conftest.err >&5 | |
572a3cc2 | 11387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
11388 | (exit $ac_status); } && { |
11389 | test -z "$ac_c_werror_flag" || | |
11390 | test ! -s conftest.err | |
11391 | } && test -s conftest$ac_exeext && | |
11392 | $as_test_x conftest$ac_exeext; then | |
572a3cc2 JD |
11393 | eval "$as_ac_var=yes" |
11394 | else | |
11395 | echo "$as_me: failed program was:" >&5 | |
11396 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11397 | ||
ca81d7a0 | 11398 | eval "$as_ac_var=no" |
572a3cc2 | 11399 | fi |
ca81d7a0 | 11400 | |
f053c89f | 11401 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 11402 | conftest$ac_exeext conftest.$ac_ext |
572a3cc2 | 11403 | fi |
ca81d7a0 JD |
11404 | ac_res=`eval echo '${'$as_ac_var'}'` |
11405 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11406 | echo "${ECHO_T}$ac_res" >&6; } | |
572a3cc2 JD |
11407 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
11408 | cat >>confdefs.h <<_ACEOF | |
11409 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
11410 | _ACEOF | |
8eeae1c9 | 11411 | HAVE_GTK_MULTIDISPLAY=yes |
572a3cc2 JD |
11412 | fi |
11413 | done | |
11414 | ||
8eeae1c9 | 11415 | if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then |
572a3cc2 | 11416 | |
8eeae1c9 JD |
11417 | cat >>confdefs.h <<\_ACEOF |
11418 | #define HAVE_GTK_MULTIDISPLAY 1 | |
11419 | _ACEOF | |
572a3cc2 | 11420 | |
8eeae1c9 JD |
11421 | fi |
11422 | HAVE_GTK_FILE_SELECTION=no | |
11423 | ||
11424 | for ac_func in gtk_file_selection_new | |
572a3cc2 JD |
11425 | do |
11426 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
ca81d7a0 JD |
11427 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
11428 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
11429 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
572a3cc2 JD |
11430 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11431 | else | |
11432 | cat >conftest.$ac_ext <<_ACEOF | |
11433 | /* confdefs.h. */ | |
11434 | _ACEOF | |
11435 | cat confdefs.h >>conftest.$ac_ext | |
11436 | cat >>conftest.$ac_ext <<_ACEOF | |
11437 | /* end confdefs.h. */ | |
edfaf76d LK |
11438 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
11439 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11440 | #define $ac_func innocuous_$ac_func | |
11441 | ||
572a3cc2 JD |
11442 | /* System header to define __stub macros and hopefully few prototypes, |
11443 | which can conflict with char $ac_func (); below. | |
11444 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11445 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 11446 | |
572a3cc2 JD |
11447 | #ifdef __STDC__ |
11448 | # include <limits.h> | |
11449 | #else | |
11450 | # include <assert.h> | |
11451 | #endif | |
edfaf76d LK |
11452 | |
11453 | #undef $ac_func | |
11454 | ||
ca81d7a0 JD |
11455 | /* Override any GCC internal prototype to avoid an error. |
11456 | Use char because int might match the return type of a GCC | |
11457 | builtin and then its argument prototype would still apply. */ | |
572a3cc2 JD |
11458 | #ifdef __cplusplus |
11459 | extern "C" | |
572a3cc2 | 11460 | #endif |
572a3cc2 JD |
11461 | char $ac_func (); |
11462 | /* The GNU C library defines this for functions which it implements | |
11463 | to always fail with ENOSYS. Some functions are actually named | |
11464 | something starting with __ and the normal name is an alias. */ | |
ca81d7a0 | 11465 | #if defined __stub_$ac_func || defined __stub___$ac_func |
572a3cc2 | 11466 | choke me |
572a3cc2 JD |
11467 | #endif |
11468 | ||
11469 | int | |
11470 | main () | |
11471 | { | |
ca81d7a0 | 11472 | return $ac_func (); |
572a3cc2 JD |
11473 | ; |
11474 | return 0; | |
11475 | } | |
11476 | _ACEOF | |
11477 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
11478 | if { (ac_try="$ac_link" |
11479 | case "(($ac_try" in | |
11480 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11481 | *) ac_try_echo=$ac_try;; | |
11482 | esac | |
11483 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11484 | (eval "$ac_link") 2>conftest.er1 | |
572a3cc2 | 11485 | ac_status=$? |
edfaf76d LK |
11486 | grep -v '^ *+' conftest.er1 >conftest.err |
11487 | rm -f conftest.er1 | |
11488 | cat conftest.err >&5 | |
572a3cc2 | 11489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
11490 | (exit $ac_status); } && { |
11491 | test -z "$ac_c_werror_flag" || | |
11492 | test ! -s conftest.err | |
11493 | } && test -s conftest$ac_exeext && | |
11494 | $as_test_x conftest$ac_exeext; then | |
572a3cc2 JD |
11495 | eval "$as_ac_var=yes" |
11496 | else | |
11497 | echo "$as_me: failed program was:" >&5 | |
11498 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11499 | ||
ca81d7a0 | 11500 | eval "$as_ac_var=no" |
572a3cc2 | 11501 | fi |
ca81d7a0 | 11502 | |
f053c89f | 11503 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 11504 | conftest$ac_exeext conftest.$ac_ext |
572a3cc2 | 11505 | fi |
ca81d7a0 JD |
11506 | ac_res=`eval echo '${'$as_ac_var'}'` |
11507 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11508 | echo "${ECHO_T}$ac_res" >&6; } | |
572a3cc2 JD |
11509 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
11510 | cat >>confdefs.h <<_ACEOF | |
11511 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
11512 | _ACEOF | |
8eeae1c9 | 11513 | HAVE_GTK_FILE_SELECTION=yes |
572a3cc2 JD |
11514 | fi |
11515 | done | |
11516 | ||
11517 | ||
8eeae1c9 | 11518 | HAVE_GTK_FILE_CHOOSER=no |
b8bdffbe | 11519 | |
8eeae1c9 | 11520 | for ac_func in gtk_file_chooser_dialog_new |
b8bdffbe | 11521 | do |
8eeae1c9 | 11522 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
ca81d7a0 JD |
11523 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
11524 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
11525 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
b8bdffbe | 11526 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
b8bdffbe | 11527 | else |
8eeae1c9 | 11528 | cat >conftest.$ac_ext <<_ACEOF |
b8bdffbe JD |
11529 | /* confdefs.h. */ |
11530 | _ACEOF | |
11531 | cat confdefs.h >>conftest.$ac_ext | |
11532 | cat >>conftest.$ac_ext <<_ACEOF | |
11533 | /* end confdefs.h. */ | |
8eeae1c9 JD |
11534 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
11535 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11536 | #define $ac_func innocuous_$ac_func | |
11537 | ||
11538 | /* System header to define __stub macros and hopefully few prototypes, | |
11539 | which can conflict with char $ac_func (); below. | |
11540 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11541 | <limits.h> exists even on freestanding compilers. */ | |
11542 | ||
11543 | #ifdef __STDC__ | |
11544 | # include <limits.h> | |
11545 | #else | |
11546 | # include <assert.h> | |
11547 | #endif | |
11548 | ||
11549 | #undef $ac_func | |
11550 | ||
ca81d7a0 JD |
11551 | /* Override any GCC internal prototype to avoid an error. |
11552 | Use char because int might match the return type of a GCC | |
11553 | builtin and then its argument prototype would still apply. */ | |
8eeae1c9 JD |
11554 | #ifdef __cplusplus |
11555 | extern "C" | |
11556 | #endif | |
11557 | char $ac_func (); | |
11558 | /* The GNU C library defines this for functions which it implements | |
11559 | to always fail with ENOSYS. Some functions are actually named | |
11560 | something starting with __ and the normal name is an alias. */ | |
ca81d7a0 | 11561 | #if defined __stub_$ac_func || defined __stub___$ac_func |
8eeae1c9 JD |
11562 | choke me |
11563 | #endif | |
11564 | ||
11565 | int | |
11566 | main () | |
11567 | { | |
ca81d7a0 | 11568 | return $ac_func (); |
8eeae1c9 JD |
11569 | ; |
11570 | return 0; | |
11571 | } | |
11572 | _ACEOF | |
11573 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
11574 | if { (ac_try="$ac_link" |
11575 | case "(($ac_try" in | |
11576 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11577 | *) ac_try_echo=$ac_try;; | |
11578 | esac | |
11579 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11580 | (eval "$ac_link") 2>conftest.er1 | |
8eeae1c9 JD |
11581 | ac_status=$? |
11582 | grep -v '^ *+' conftest.er1 >conftest.err | |
11583 | rm -f conftest.er1 | |
11584 | cat conftest.err >&5 | |
11585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f053c89f CY |
11586 | (exit $ac_status); } && { |
11587 | test -z "$ac_c_werror_flag" || | |
11588 | test ! -s conftest.err | |
11589 | } && test -s conftest$ac_exeext && | |
11590 | $as_test_x conftest$ac_exeext; then | |
8eeae1c9 JD |
11591 | eval "$as_ac_var=yes" |
11592 | else | |
11593 | echo "$as_me: failed program was:" >&5 | |
11594 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11595 | ||
ca81d7a0 | 11596 | eval "$as_ac_var=no" |
8eeae1c9 | 11597 | fi |
ca81d7a0 | 11598 | |
f053c89f | 11599 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8eeae1c9 JD |
11600 | conftest$ac_exeext conftest.$ac_ext |
11601 | fi | |
ca81d7a0 JD |
11602 | ac_res=`eval echo '${'$as_ac_var'}'` |
11603 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11604 | echo "${ECHO_T}$ac_res" >&6; } | |
8eeae1c9 JD |
11605 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
11606 | cat >>confdefs.h <<_ACEOF | |
11607 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
11608 | _ACEOF | |
11609 | HAVE_GTK_FILE_CHOOSER=yes | |
11610 | fi | |
11611 | done | |
11612 | ||
11613 | ||
11614 | if test "$HAVE_GTK_FILE_SELECTION" = yes \ | |
11615 | && test "$HAVE_GTK_FILE_CHOOSER" = yes; then | |
11616 | ||
11617 | cat >>confdefs.h <<\_ACEOF | |
11618 | #define HAVE_GTK_FILE_BOTH 1 | |
11619 | _ACEOF | |
11620 | ||
11621 | fi | |
11622 | ||
11623 | if test "$HAVE_GTK_FILE_CHOOSER" = yes; then | |
11624 | HAVE_GTK_AND_PTHREAD=no | |
11625 | ||
11626 | for ac_header in pthread.h | |
11627 | do | |
11628 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
ca81d7a0 JD |
11629 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
11630 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11631 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
11632 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
8eeae1c9 JD |
11633 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11634 | fi | |
ca81d7a0 JD |
11635 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11636 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11637 | echo "${ECHO_T}$ac_res" >&6; } | |
8eeae1c9 JD |
11638 | else |
11639 | # Is the header compilable? | |
ca81d7a0 JD |
11640 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11641 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
8eeae1c9 JD |
11642 | cat >conftest.$ac_ext <<_ACEOF |
11643 | /* confdefs.h. */ | |
11644 | _ACEOF | |
11645 | cat confdefs.h >>conftest.$ac_ext | |
11646 | cat >>conftest.$ac_ext <<_ACEOF | |
11647 | /* end confdefs.h. */ | |
11648 | $ac_includes_default | |
11649 | #include <$ac_header> | |
11650 | _ACEOF | |
11651 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
11652 | if { (ac_try="$ac_compile" |
11653 | case "(($ac_try" in | |
11654 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11655 | *) ac_try_echo=$ac_try;; | |
11656 | esac | |
11657 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11658 | (eval "$ac_compile") 2>conftest.er1 | |
8eeae1c9 JD |
11659 | ac_status=$? |
11660 | grep -v '^ *+' conftest.er1 >conftest.err | |
11661 | rm -f conftest.er1 | |
edfaf76d | 11662 | cat conftest.err >&5 |
b8bdffbe | 11663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
11664 | (exit $ac_status); } && { |
11665 | test -z "$ac_c_werror_flag" || | |
11666 | test ! -s conftest.err | |
11667 | } && test -s conftest.$ac_objext; then | |
b8bdffbe JD |
11668 | ac_header_compiler=yes |
11669 | else | |
11670 | echo "$as_me: failed program was:" >&5 | |
11671 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11672 | ||
ca81d7a0 | 11673 | ac_header_compiler=no |
b8bdffbe | 11674 | fi |
ca81d7a0 JD |
11675 | |
11676 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11677 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11678 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
b8bdffbe JD |
11679 | |
11680 | # Is the header present? | |
ca81d7a0 JD |
11681 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11682 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
b8bdffbe JD |
11683 | cat >conftest.$ac_ext <<_ACEOF |
11684 | /* confdefs.h. */ | |
11685 | _ACEOF | |
11686 | cat confdefs.h >>conftest.$ac_ext | |
11687 | cat >>conftest.$ac_ext <<_ACEOF | |
11688 | /* end confdefs.h. */ | |
11689 | #include <$ac_header> | |
11690 | _ACEOF | |
ca81d7a0 JD |
11691 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11692 | case "(($ac_try" in | |
11693 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11694 | *) ac_try_echo=$ac_try;; | |
11695 | esac | |
11696 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11697 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
b8bdffbe JD |
11698 | ac_status=$? |
11699 | grep -v '^ *+' conftest.er1 >conftest.err | |
11700 | rm -f conftest.er1 | |
11701 | cat conftest.err >&5 | |
11702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f053c89f CY |
11703 | (exit $ac_status); } >/dev/null && { |
11704 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11705 | test ! -s conftest.err | |
11706 | }; then | |
b8bdffbe JD |
11707 | ac_header_preproc=yes |
11708 | else | |
11709 | echo "$as_me: failed program was:" >&5 | |
11710 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11711 | ||
11712 | ac_header_preproc=no | |
11713 | fi | |
ca81d7a0 | 11714 | |
b8bdffbe | 11715 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
11716 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11717 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
b8bdffbe JD |
11718 | |
11719 | # So? What about this header? | |
edfaf76d LK |
11720 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11721 | yes:no: ) | |
b8bdffbe JD |
11722 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11723 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
11724 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
11725 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11726 | ac_header_preproc=yes | |
b8bdffbe | 11727 | ;; |
edfaf76d | 11728 | no:yes:* ) |
b8bdffbe JD |
11729 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11730 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
edfaf76d LK |
11731 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
11732 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11733 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11734 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11735 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11736 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
b8bdffbe JD |
11737 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
11738 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
edfaf76d LK |
11739 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
11740 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 11741 | |
b8bdffbe JD |
11742 | ;; |
11743 | esac | |
ca81d7a0 JD |
11744 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11745 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
11746 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
b8bdffbe JD |
11747 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11748 | else | |
edfaf76d | 11749 | eval "$as_ac_Header=\$ac_header_preproc" |
b8bdffbe | 11750 | fi |
ca81d7a0 JD |
11751 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11752 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11753 | echo "${ECHO_T}$ac_res" >&6; } | |
b8bdffbe JD |
11754 | |
11755 | fi | |
11756 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
11757 | cat >>confdefs.h <<_ACEOF | |
11758 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11759 | _ACEOF | |
11760 | ||
11761 | fi | |
11762 | ||
11763 | done | |
11764 | ||
11765 | if test "$ac_cv_header_pthread_h"; then | |
ca81d7a0 JD |
11766 | { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5 |
11767 | echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; } | |
b8bdffbe JD |
11768 | if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then |
11769 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11770 | else | |
11771 | ac_check_lib_save_LIBS=$LIBS | |
11772 | LIBS="-lpthread $LIBS" | |
11773 | cat >conftest.$ac_ext <<_ACEOF | |
11774 | /* confdefs.h. */ | |
11775 | _ACEOF | |
11776 | cat confdefs.h >>conftest.$ac_ext | |
11777 | cat >>conftest.$ac_ext <<_ACEOF | |
11778 | /* end confdefs.h. */ | |
11779 | ||
ca81d7a0 JD |
11780 | /* Override any GCC internal prototype to avoid an error. |
11781 | Use char because int might match the return type of a GCC | |
11782 | builtin and then its argument prototype would still apply. */ | |
b8bdffbe JD |
11783 | #ifdef __cplusplus |
11784 | extern "C" | |
11785 | #endif | |
b8bdffbe JD |
11786 | char pthread_self (); |
11787 | int | |
11788 | main () | |
11789 | { | |
ca81d7a0 | 11790 | return pthread_self (); |
b8bdffbe JD |
11791 | ; |
11792 | return 0; | |
11793 | } | |
11794 | _ACEOF | |
11795 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
11796 | if { (ac_try="$ac_link" |
11797 | case "(($ac_try" in | |
11798 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11799 | *) ac_try_echo=$ac_try;; | |
11800 | esac | |
11801 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11802 | (eval "$ac_link") 2>conftest.er1 | |
b8bdffbe | 11803 | ac_status=$? |
edfaf76d LK |
11804 | grep -v '^ *+' conftest.er1 >conftest.err |
11805 | rm -f conftest.er1 | |
11806 | cat conftest.err >&5 | |
b8bdffbe | 11807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
11808 | (exit $ac_status); } && { |
11809 | test -z "$ac_c_werror_flag" || | |
11810 | test ! -s conftest.err | |
11811 | } && test -s conftest$ac_exeext && | |
11812 | $as_test_x conftest$ac_exeext; then | |
b8bdffbe JD |
11813 | ac_cv_lib_pthread_pthread_self=yes |
11814 | else | |
11815 | echo "$as_me: failed program was:" >&5 | |
11816 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11817 | ||
ca81d7a0 | 11818 | ac_cv_lib_pthread_pthread_self=no |
b8bdffbe | 11819 | fi |
ca81d7a0 | 11820 | |
f053c89f | 11821 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 11822 | conftest$ac_exeext conftest.$ac_ext |
b8bdffbe JD |
11823 | LIBS=$ac_check_lib_save_LIBS |
11824 | fi | |
ca81d7a0 JD |
11825 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5 |
11826 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; } | |
b8bdffbe JD |
11827 | if test $ac_cv_lib_pthread_pthread_self = yes; then |
11828 | HAVE_GTK_AND_PTHREAD=yes | |
11829 | fi | |
11830 | ||
11831 | fi | |
11832 | if test "$HAVE_GTK_AND_PTHREAD" = yes; then | |
11833 | GTK_LIBS="$GTK_LIBS -lpthread" | |
11834 | ||
11835 | cat >>confdefs.h <<\_ACEOF | |
11836 | #define HAVE_GTK_AND_PTHREAD 1 | |
11837 | _ACEOF | |
11838 | ||
11839 | fi | |
57669b57 | 11840 | fi |
488dd4c4 JD |
11841 | fi |
11842 | ||
9d89ffd0 JD |
11843 | ### Link with -lXft if available to work around a bug. |
11844 | HAVE_XFT=maybe | |
11845 | if test "${HAVE_GTK}" = "yes"; then | |
11846 | if test "X${with_pkg_config_prog}" != X; then | |
11847 | PKG_CONFIG="${with_pkg_config_prog}" | |
11848 | fi | |
11849 | ||
11850 | ||
11851 | succeeded=no | |
11852 | ||
11853 | if test -z "$PKG_CONFIG"; then | |
11854 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
11855 | set dummy pkg-config; ac_word=$2 | |
11856 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11857 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
11858 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
11859 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11860 | else | |
11861 | case $PKG_CONFIG in | |
11862 | [\\/]* | ?:[\\/]*) | |
11863 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
11864 | ;; | |
11865 | *) | |
11866 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11867 | for as_dir in $PATH | |
11868 | do | |
11869 | IFS=$as_save_IFS | |
11870 | test -z "$as_dir" && as_dir=. | |
11871 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11872 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
11873 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
11874 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11875 | break 2 | |
11876 | fi | |
11877 | done | |
11878 | done | |
11879 | IFS=$as_save_IFS | |
11880 | ||
11881 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
11882 | ;; | |
11883 | esac | |
11884 | fi | |
11885 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
11886 | if test -n "$PKG_CONFIG"; then | |
11887 | { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
11888 | echo "${ECHO_T}$PKG_CONFIG" >&6; } | |
11889 | else | |
11890 | { echo "$as_me:$LINENO: result: no" >&5 | |
11891 | echo "${ECHO_T}no" >&6; } | |
11892 | fi | |
11893 | ||
11894 | ||
11895 | fi | |
11896 | ||
11897 | if test "$PKG_CONFIG" = "no" ; then | |
11898 | HAVE_XFT=no | |
11899 | else | |
11900 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
11901 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
11902 | { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5 | |
11903 | echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; } | |
11904 | ||
11905 | if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then | |
11906 | { echo "$as_me:$LINENO: result: yes" >&5 | |
11907 | echo "${ECHO_T}yes" >&6; } | |
11908 | succeeded=yes | |
11909 | ||
11910 | { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5 | |
11911 | echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; } | |
94315858 | 11912 | XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'` |
9d89ffd0 JD |
11913 | { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5 |
11914 | echo "${ECHO_T}$XFT_CFLAGS" >&6; } | |
11915 | ||
11916 | { echo "$as_me:$LINENO: checking XFT_LIBS" >&5 | |
11917 | echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; } | |
94315858 | 11918 | XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'` |
9d89ffd0 JD |
11919 | { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5 |
11920 | echo "${ECHO_T}$XFT_LIBS" >&6; } | |
11921 | else | |
11922 | { echo "$as_me:$LINENO: result: no" >&5 | |
11923 | echo "${ECHO_T}no" >&6; } | |
11924 | XFT_CFLAGS="" | |
11925 | XFT_LIBS="" | |
11926 | ## If we have a custom action on failure, don't print errors, but | |
11927 | ## do set a variable so people can do so. | |
11928 | XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"` | |
11929 | ||
11930 | fi | |
11931 | ||
11932 | ||
11933 | ||
11934 | else | |
11935 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
11936 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
11937 | fi | |
11938 | fi | |
11939 | ||
11940 | if test $succeeded = yes; then | |
11941 | : | |
11942 | else | |
11943 | HAVE_XFT=no | |
11944 | fi | |
11945 | ||
11946 | if test "$HAVE_XFT" != no; then | |
11947 | OLD_CFLAGS="$CPPFLAGS" | |
f23323c5 | 11948 | OLD_CPPFLAGS="$CFLAGS" |
9d89ffd0 JD |
11949 | OLD_LIBS="$LIBS" |
11950 | CPPFLAGS="$CPPFLAGS $XFT_CFLAGS" | |
11951 | CFLAGS="$CFLAGS $XFT_CFLAGS" | |
11952 | LIBS="$XFT_LIBS $LIBS" | |
11953 | if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then | |
11954 | { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5 | |
11955 | echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; } | |
11956 | if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then | |
11957 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11958 | fi | |
11959 | { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5 | |
11960 | echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; } | |
11961 | else | |
11962 | # Is the header compilable? | |
11963 | { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5 | |
11964 | echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; } | |
11965 | cat >conftest.$ac_ext <<_ACEOF | |
11966 | /* confdefs.h. */ | |
11967 | _ACEOF | |
11968 | cat confdefs.h >>conftest.$ac_ext | |
11969 | cat >>conftest.$ac_ext <<_ACEOF | |
11970 | /* end confdefs.h. */ | |
11971 | $ac_includes_default | |
11972 | #include <X11/Xft/Xft.h> | |
11973 | _ACEOF | |
11974 | rm -f conftest.$ac_objext | |
11975 | if { (ac_try="$ac_compile" | |
11976 | case "(($ac_try" in | |
11977 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11978 | *) ac_try_echo=$ac_try;; | |
11979 | esac | |
11980 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11981 | (eval "$ac_compile") 2>conftest.er1 | |
11982 | ac_status=$? | |
11983 | grep -v '^ *+' conftest.er1 >conftest.err | |
11984 | rm -f conftest.er1 | |
11985 | cat conftest.err >&5 | |
11986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11987 | (exit $ac_status); } && { | |
11988 | test -z "$ac_c_werror_flag" || | |
11989 | test ! -s conftest.err | |
11990 | } && test -s conftest.$ac_objext; then | |
11991 | ac_header_compiler=yes | |
11992 | else | |
11993 | echo "$as_me: failed program was:" >&5 | |
11994 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11995 | ||
11996 | ac_header_compiler=no | |
11997 | fi | |
11998 | ||
11999 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12000 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12001 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
12002 | ||
12003 | # Is the header present? | |
12004 | { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5 | |
12005 | echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; } | |
12006 | cat >conftest.$ac_ext <<_ACEOF | |
12007 | /* confdefs.h. */ | |
12008 | _ACEOF | |
12009 | cat confdefs.h >>conftest.$ac_ext | |
12010 | cat >>conftest.$ac_ext <<_ACEOF | |
12011 | /* end confdefs.h. */ | |
12012 | #include <X11/Xft/Xft.h> | |
12013 | _ACEOF | |
12014 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
12015 | case "(($ac_try" in | |
12016 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12017 | *) ac_try_echo=$ac_try;; | |
12018 | esac | |
12019 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12020 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
12021 | ac_status=$? | |
12022 | grep -v '^ *+' conftest.er1 >conftest.err | |
12023 | rm -f conftest.er1 | |
12024 | cat conftest.err >&5 | |
12025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12026 | (exit $ac_status); } >/dev/null && { | |
12027 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
12028 | test ! -s conftest.err | |
12029 | }; then | |
12030 | ac_header_preproc=yes | |
12031 | else | |
12032 | echo "$as_me: failed program was:" >&5 | |
12033 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12034 | ||
12035 | ac_header_preproc=no | |
12036 | fi | |
12037 | ||
12038 | rm -f conftest.err conftest.$ac_ext | |
12039 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12040 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
12041 | ||
12042 | # So? What about this header? | |
12043 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12044 | yes:no: ) | |
12045 | { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12046 | echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12047 | { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5 | |
12048 | echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;} | |
12049 | ac_header_preproc=yes | |
12050 | ;; | |
12051 | no:yes:* ) | |
12052 | { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5 | |
12053 | echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;} | |
12054 | { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5 | |
12055 | echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;} | |
12056 | { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5 | |
12057 | echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;} | |
12058 | { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5 | |
12059 | echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
12060 | { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5 | |
12061 | echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;} | |
12062 | { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5 | |
12063 | echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;} | |
12064 | ||
12065 | ;; | |
12066 | esac | |
12067 | { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5 | |
12068 | echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; } | |
12069 | if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then | |
12070 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12071 | else | |
12072 | ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc | |
12073 | fi | |
12074 | { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5 | |
12075 | echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; } | |
12076 | ||
12077 | fi | |
12078 | if test $ac_cv_header_X11_Xft_Xft_h = yes; then | |
12079 | { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5 | |
12080 | echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; } | |
12081 | if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then | |
12082 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12083 | else | |
12084 | ac_check_lib_save_LIBS=$LIBS | |
12085 | LIBS="-lXft $XFT_LIBS $LIBS" | |
12086 | cat >conftest.$ac_ext <<_ACEOF | |
12087 | /* confdefs.h. */ | |
12088 | _ACEOF | |
12089 | cat confdefs.h >>conftest.$ac_ext | |
12090 | cat >>conftest.$ac_ext <<_ACEOF | |
12091 | /* end confdefs.h. */ | |
12092 | ||
12093 | /* Override any GCC internal prototype to avoid an error. | |
12094 | Use char because int might match the return type of a GCC | |
12095 | builtin and then its argument prototype would still apply. */ | |
12096 | #ifdef __cplusplus | |
12097 | extern "C" | |
12098 | #endif | |
12099 | char XftFontOpen (); | |
12100 | int | |
12101 | main () | |
12102 | { | |
12103 | return XftFontOpen (); | |
12104 | ; | |
12105 | return 0; | |
12106 | } | |
12107 | _ACEOF | |
12108 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12109 | if { (ac_try="$ac_link" | |
12110 | case "(($ac_try" in | |
12111 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12112 | *) ac_try_echo=$ac_try;; | |
12113 | esac | |
12114 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12115 | (eval "$ac_link") 2>conftest.er1 | |
12116 | ac_status=$? | |
12117 | grep -v '^ *+' conftest.er1 >conftest.err | |
12118 | rm -f conftest.er1 | |
12119 | cat conftest.err >&5 | |
12120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12121 | (exit $ac_status); } && { | |
12122 | test -z "$ac_c_werror_flag" || | |
12123 | test ! -s conftest.err | |
12124 | } && test -s conftest$ac_exeext && | |
12125 | $as_test_x conftest$ac_exeext; then | |
12126 | ac_cv_lib_Xft_XftFontOpen=yes | |
12127 | else | |
12128 | echo "$as_me: failed program was:" >&5 | |
12129 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12130 | ||
12131 | ac_cv_lib_Xft_XftFontOpen=no | |
12132 | fi | |
12133 | ||
12134 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
12135 | conftest$ac_exeext conftest.$ac_ext | |
12136 | LIBS=$ac_check_lib_save_LIBS | |
12137 | fi | |
12138 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5 | |
12139 | echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; } | |
12140 | if test $ac_cv_lib_Xft_XftFontOpen = yes; then | |
12141 | HAVE_XFT=yes | |
12142 | fi | |
12143 | ||
12144 | fi | |
12145 | ||
12146 | ||
12147 | ||
12148 | if test "${HAVE_XFT}" = "yes"; then | |
12149 | ||
12150 | cat >>confdefs.h <<\_ACEOF | |
12151 | #define HAVE_XFT 1 | |
12152 | _ACEOF | |
12153 | ||
12154 | ||
12155 | C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS" | |
12156 | else | |
12157 | CFLAGS="$OLD_CPPFLAGS" | |
12158 | CFLAGS="$OLD_CFLAGS" | |
12159 | LIBS="$OLD_LIBS" | |
12160 | fi | |
12161 | fi | |
12162 | fi | |
12163 | ||
dba7bae0 | 12164 | HAVE_XAW3D=no |
3685ba3f | 12165 | if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then |
dba7bae0 CY |
12166 | if test x"${HAVE_X11R5}" != xyes; then |
12167 | USE_X_TOOLKIT=none | |
12168 | else | |
12169 | { echo "$as_me:$LINENO: checking for xaw3d" >&5 | |
12170 | echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; } | |
12171 | if test "${emacs_cv_xaw3d+set}" = set; then | |
98418dba CW |
12172 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12173 | else | |
12174 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
12175 | /* confdefs.h. */ |
12176 | _ACEOF | |
12177 | cat confdefs.h >>conftest.$ac_ext | |
12178 | cat >>conftest.$ac_ext <<_ACEOF | |
12179 | /* end confdefs.h. */ | |
98418dba CW |
12180 | |
12181 | #include <X11/Intrinsic.h> | |
dba7bae0 | 12182 | #include <X11/Xaw3d/Simple.h> |
98418dba CW |
12183 | int |
12184 | main () | |
12185 | { | |
12186 | ||
12187 | ; | |
12188 | return 0; | |
12189 | } | |
12190 | _ACEOF | |
12191 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
12192 | if { (ac_try="$ac_link" |
12193 | case "(($ac_try" in | |
12194 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12195 | *) ac_try_echo=$ac_try;; | |
12196 | esac | |
12197 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12198 | (eval "$ac_link") 2>conftest.er1 | |
98418dba | 12199 | ac_status=$? |
edfaf76d LK |
12200 | grep -v '^ *+' conftest.er1 >conftest.err |
12201 | rm -f conftest.er1 | |
12202 | cat conftest.err >&5 | |
c0d27fcc | 12203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
12204 | (exit $ac_status); } && { |
12205 | test -z "$ac_c_werror_flag" || | |
12206 | test ! -s conftest.err | |
12207 | } && test -s conftest$ac_exeext && | |
12208 | $as_test_x conftest$ac_exeext; then | |
dba7bae0 | 12209 | emacs_cv_xaw3d=yes |
98418dba CW |
12210 | else |
12211 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
12212 | sed 's/^/| /' conftest.$ac_ext >&5 |
12213 | ||
dba7bae0 | 12214 | emacs_cv_xaw3d=no |
98418dba | 12215 | fi |
ca81d7a0 | 12216 | |
f053c89f | 12217 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 12218 | conftest$ac_exeext conftest.$ac_ext |
98418dba CW |
12219 | fi |
12220 | ||
dba7bae0 CY |
12221 | if test $emacs_cv_xaw3d = yes; then |
12222 | { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5 | |
12223 | echo "${ECHO_T}yes; using Lucid toolkit" >&6; } | |
98418dba | 12224 | USE_X_TOOLKIT=LUCID |
dba7bae0 CY |
12225 | HAVE_XAW3D=yes |
12226 | ||
12227 | cat >>confdefs.h <<\_ACEOF | |
12228 | #define HAVE_XAW3D 1 | |
12229 | _ACEOF | |
12230 | ||
98418dba | 12231 | else |
dba7bae0 CY |
12232 | { echo "$as_me:$LINENO: result: no" >&5 |
12233 | echo "${ECHO_T}no" >&6; } | |
12234 | { echo "$as_me:$LINENO: checking for libXaw" >&5 | |
12235 | echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; } | |
12236 | if test "${emacs_cv_xaw+set}" = set; then | |
12237 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12238 | else | |
12239 | cat >conftest.$ac_ext <<_ACEOF | |
12240 | /* confdefs.h. */ | |
12241 | _ACEOF | |
12242 | cat confdefs.h >>conftest.$ac_ext | |
12243 | cat >>conftest.$ac_ext <<_ACEOF | |
12244 | /* end confdefs.h. */ | |
12245 | ||
12246 | #include <X11/Intrinsic.h> | |
12247 | #include <X11/Xaw/Simple.h> | |
12248 | int | |
12249 | main () | |
12250 | { | |
12251 | ||
12252 | ; | |
12253 | return 0; | |
12254 | } | |
12255 | _ACEOF | |
12256 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12257 | if { (ac_try="$ac_link" | |
12258 | case "(($ac_try" in | |
12259 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12260 | *) ac_try_echo=$ac_try;; | |
12261 | esac | |
12262 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12263 | (eval "$ac_link") 2>conftest.er1 | |
12264 | ac_status=$? | |
12265 | grep -v '^ *+' conftest.er1 >conftest.err | |
12266 | rm -f conftest.er1 | |
12267 | cat conftest.err >&5 | |
12268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12269 | (exit $ac_status); } && { | |
12270 | test -z "$ac_c_werror_flag" || | |
12271 | test ! -s conftest.err | |
12272 | } && test -s conftest$ac_exeext && | |
12273 | $as_test_x conftest$ac_exeext; then | |
12274 | emacs_cv_xaw=yes | |
12275 | else | |
12276 | echo "$as_me: failed program was:" >&5 | |
12277 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12278 | ||
12279 | emacs_cv_xaw=no | |
12280 | fi | |
12281 | ||
12282 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
12283 | conftest$ac_exeext conftest.$ac_ext | |
12284 | fi | |
12285 | ||
12286 | if test $emacs_cv_xaw = yes; then | |
12287 | { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5 | |
12288 | echo "${ECHO_T}yes; using Lucid toolkit" >&6; } | |
12289 | USE_X_TOOLKIT=LUCID | |
12290 | elif test x"${USE_X_TOOLKIT}" = xLUCID; then | |
3685ba3f CY |
12291 | { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5 |
12292 | echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;} | |
12293 | { (exit 1); exit 1; }; } | |
12294 | else | |
dba7bae0 CY |
12295 | { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5 |
12296 | echo "${ECHO_T}no; do not use toolkit by default" >&6; } | |
3685ba3f CY |
12297 | USE_X_TOOLKIT=none |
12298 | fi | |
98418dba | 12299 | fi |
98418dba CW |
12300 | fi |
12301 | fi | |
12302 | ||
12303 | X_TOOLKIT_TYPE=$USE_X_TOOLKIT | |
12304 | ||
12305 | if test "${USE_X_TOOLKIT}" != "none"; then | |
ca81d7a0 JD |
12306 | { echo "$as_me:$LINENO: checking X11 toolkit version" >&5 |
12307 | echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; } | |
98418dba CW |
12308 | if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then |
12309 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12310 | else | |
12311 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
12312 | /* confdefs.h. */ |
12313 | _ACEOF | |
12314 | cat confdefs.h >>conftest.$ac_ext | |
12315 | cat >>conftest.$ac_ext <<_ACEOF | |
12316 | /* end confdefs.h. */ | |
98418dba | 12317 | #include <X11/Intrinsic.h> |
98418dba CW |
12318 | int |
12319 | main () | |
12320 | { | |
12321 | #if XtSpecificationRelease < 6 | |
12322 | fail; | |
12323 | #endif | |
12324 | ||
12325 | ; | |
12326 | return 0; | |
12327 | } | |
12328 | _ACEOF | |
12329 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
12330 | if { (ac_try="$ac_link" |
12331 | case "(($ac_try" in | |
12332 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12333 | *) ac_try_echo=$ac_try;; | |
12334 | esac | |
12335 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12336 | (eval "$ac_link") 2>conftest.er1 | |
98418dba | 12337 | ac_status=$? |
edfaf76d LK |
12338 | grep -v '^ *+' conftest.er1 >conftest.err |
12339 | rm -f conftest.er1 | |
12340 | cat conftest.err >&5 | |
c0d27fcc | 12341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
12342 | (exit $ac_status); } && { |
12343 | test -z "$ac_c_werror_flag" || | |
12344 | test ! -s conftest.err | |
12345 | } && test -s conftest$ac_exeext && | |
12346 | $as_test_x conftest$ac_exeext; then | |
98418dba CW |
12347 | emacs_cv_x11_toolkit_version_6=yes |
12348 | else | |
12349 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
12350 | sed 's/^/| /' conftest.$ac_ext >&5 |
12351 | ||
ca81d7a0 | 12352 | emacs_cv_x11_toolkit_version_6=no |
98418dba | 12353 | fi |
ca81d7a0 | 12354 | |
f053c89f | 12355 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 12356 | conftest$ac_exeext conftest.$ac_ext |
98418dba CW |
12357 | fi |
12358 | ||
12359 | HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6 | |
12360 | if test $emacs_cv_x11_toolkit_version_6 = yes; then | |
ca81d7a0 JD |
12361 | { echo "$as_me:$LINENO: result: 6 or newer" >&5 |
12362 | echo "${ECHO_T}6 or newer" >&6; } | |
b936fae4 | 12363 | |
c0d27fcc | 12364 | cat >>confdefs.h <<\_ACEOF |
98418dba | 12365 | #define HAVE_X11XTR6 1 |
c0d27fcc | 12366 | _ACEOF |
98418dba CW |
12367 | |
12368 | else | |
ca81d7a0 JD |
12369 | { echo "$as_me:$LINENO: result: before 6" >&5 |
12370 | echo "${ECHO_T}before 6" >&6; } | |
98418dba CW |
12371 | fi |
12372 | ||
12373 | OLDLIBS="$LIBS" | |
12374 | if test x$HAVE_X11XTR6 = xyes; then | |
12375 | LIBS="-lXt -lSM -lICE $LIBS" | |
12376 | else | |
12377 | LIBS="-lXt $LIBS" | |
12378 | fi | |
12379 | ||
ca81d7a0 JD |
12380 | { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5 |
12381 | echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; } | |
98418dba CW |
12382 | if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then |
12383 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12384 | else | |
12385 | ac_check_lib_save_LIBS=$LIBS | |
12386 | LIBS="-lXmu $LIBS" | |
12387 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
12388 | /* confdefs.h. */ |
12389 | _ACEOF | |
12390 | cat confdefs.h >>conftest.$ac_ext | |
12391 | cat >>conftest.$ac_ext <<_ACEOF | |
12392 | /* end confdefs.h. */ | |
98418dba | 12393 | |
ca81d7a0 JD |
12394 | /* Override any GCC internal prototype to avoid an error. |
12395 | Use char because int might match the return type of a GCC | |
12396 | builtin and then its argument prototype would still apply. */ | |
98418dba CW |
12397 | #ifdef __cplusplus |
12398 | extern "C" | |
12399 | #endif | |
98418dba | 12400 | char XmuConvertStandardSelection (); |
98418dba CW |
12401 | int |
12402 | main () | |
12403 | { | |
ca81d7a0 | 12404 | return XmuConvertStandardSelection (); |
98418dba CW |
12405 | ; |
12406 | return 0; | |
12407 | } | |
12408 | _ACEOF | |
12409 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
12410 | if { (ac_try="$ac_link" |
12411 | case "(($ac_try" in | |
12412 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12413 | *) ac_try_echo=$ac_try;; | |
12414 | esac | |
12415 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12416 | (eval "$ac_link") 2>conftest.er1 | |
98418dba | 12417 | ac_status=$? |
edfaf76d LK |
12418 | grep -v '^ *+' conftest.er1 >conftest.err |
12419 | rm -f conftest.er1 | |
12420 | cat conftest.err >&5 | |
c0d27fcc | 12421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
12422 | (exit $ac_status); } && { |
12423 | test -z "$ac_c_werror_flag" || | |
12424 | test ! -s conftest.err | |
12425 | } && test -s conftest$ac_exeext && | |
12426 | $as_test_x conftest$ac_exeext; then | |
98418dba CW |
12427 | ac_cv_lib_Xmu_XmuConvertStandardSelection=yes |
12428 | else | |
12429 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
12430 | sed 's/^/| /' conftest.$ac_ext >&5 |
12431 | ||
ca81d7a0 | 12432 | ac_cv_lib_Xmu_XmuConvertStandardSelection=no |
98418dba | 12433 | fi |
ca81d7a0 | 12434 | |
f053c89f | 12435 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 12436 | conftest$ac_exeext conftest.$ac_ext |
98418dba CW |
12437 | LIBS=$ac_check_lib_save_LIBS |
12438 | fi | |
ca81d7a0 JD |
12439 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5 |
12440 | echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; } | |
98418dba | 12441 | if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then |
c0d27fcc | 12442 | cat >>confdefs.h <<_ACEOF |
98418dba | 12443 | #define HAVE_LIBXMU 1 |
c0d27fcc | 12444 | _ACEOF |
98418dba CW |
12445 | |
12446 | LIBS="-lXmu $LIBS" | |
12447 | ||
12448 | fi | |
12449 | ||
12450 | test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS" | |
12451 | fi | |
12452 | ||
12453 | # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D. | |
12454 | if test "${HAVE_X11}" = "yes"; then | |
12455 | if test "${USE_X_TOOLKIT}" != "none"; then | |
12456 | ||
ca81d7a0 JD |
12457 | { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 |
12458 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; } | |
98418dba CW |
12459 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then |
12460 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12461 | else | |
12462 | ac_check_lib_save_LIBS=$LIBS | |
12463 | LIBS="-lXext $LIBS" | |
12464 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
12465 | /* confdefs.h. */ |
12466 | _ACEOF | |
12467 | cat confdefs.h >>conftest.$ac_ext | |
12468 | cat >>conftest.$ac_ext <<_ACEOF | |
12469 | /* end confdefs.h. */ | |
98418dba | 12470 | |
ca81d7a0 JD |
12471 | /* Override any GCC internal prototype to avoid an error. |
12472 | Use char because int might match the return type of a GCC | |
12473 | builtin and then its argument prototype would still apply. */ | |
98418dba CW |
12474 | #ifdef __cplusplus |
12475 | extern "C" | |
12476 | #endif | |
98418dba | 12477 | char XShapeQueryExtension (); |
98418dba CW |
12478 | int |
12479 | main () | |
12480 | { | |
ca81d7a0 | 12481 | return XShapeQueryExtension (); |
98418dba CW |
12482 | ; |
12483 | return 0; | |
12484 | } | |
12485 | _ACEOF | |
12486 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
12487 | if { (ac_try="$ac_link" |
12488 | case "(($ac_try" in | |
12489 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12490 | *) ac_try_echo=$ac_try;; | |
12491 | esac | |
12492 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12493 | (eval "$ac_link") 2>conftest.er1 | |
98418dba | 12494 | ac_status=$? |
edfaf76d LK |
12495 | grep -v '^ *+' conftest.er1 >conftest.err |
12496 | rm -f conftest.er1 | |
12497 | cat conftest.err >&5 | |
c0d27fcc | 12498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
12499 | (exit $ac_status); } && { |
12500 | test -z "$ac_c_werror_flag" || | |
12501 | test ! -s conftest.err | |
12502 | } && test -s conftest$ac_exeext && | |
12503 | $as_test_x conftest$ac_exeext; then | |
98418dba CW |
12504 | ac_cv_lib_Xext_XShapeQueryExtension=yes |
12505 | else | |
12506 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
12507 | sed 's/^/| /' conftest.$ac_ext >&5 |
12508 | ||
ca81d7a0 | 12509 | ac_cv_lib_Xext_XShapeQueryExtension=no |
98418dba | 12510 | fi |
ca81d7a0 | 12511 | |
f053c89f | 12512 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 12513 | conftest$ac_exeext conftest.$ac_ext |
98418dba CW |
12514 | LIBS=$ac_check_lib_save_LIBS |
12515 | fi | |
ca81d7a0 JD |
12516 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 |
12517 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; } | |
98418dba | 12518 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then |
c0d27fcc | 12519 | cat >>confdefs.h <<_ACEOF |
98418dba | 12520 | #define HAVE_LIBXEXT 1 |
c0d27fcc | 12521 | _ACEOF |
98418dba CW |
12522 | |
12523 | LIBS="-lXext $LIBS" | |
12524 | ||
12525 | fi | |
12526 | ||
12527 | fi | |
12528 | fi | |
12529 | ||
12530 | if test "${USE_X_TOOLKIT}" = "MOTIF"; then | |
ca81d7a0 JD |
12531 | { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5 |
12532 | echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; } | |
98418dba CW |
12533 | if test "${emacs_cv_motif_version_2_1+set}" = set; then |
12534 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12535 | else | |
12536 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
12537 | /* confdefs.h. */ |
12538 | _ACEOF | |
12539 | cat confdefs.h >>conftest.$ac_ext | |
12540 | cat >>conftest.$ac_ext <<_ACEOF | |
12541 | /* end confdefs.h. */ | |
98418dba | 12542 | #include <Xm/Xm.h> |
98418dba CW |
12543 | int |
12544 | main () | |
12545 | { | |
12546 | #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1) | |
12547 | int x = 5; | |
12548 | #else | |
12549 | Motif version prior to 2.1. | |
12550 | #endif | |
12551 | ; | |
12552 | return 0; | |
12553 | } | |
12554 | _ACEOF | |
12555 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
12556 | if { (ac_try="$ac_compile" |
12557 | case "(($ac_try" in | |
12558 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12559 | *) ac_try_echo=$ac_try;; | |
12560 | esac | |
12561 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12562 | (eval "$ac_compile") 2>conftest.er1 | |
98418dba | 12563 | ac_status=$? |
edfaf76d LK |
12564 | grep -v '^ *+' conftest.er1 >conftest.err |
12565 | rm -f conftest.er1 | |
12566 | cat conftest.err >&5 | |
c0d27fcc | 12567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
12568 | (exit $ac_status); } && { |
12569 | test -z "$ac_c_werror_flag" || | |
12570 | test ! -s conftest.err | |
12571 | } && test -s conftest.$ac_objext; then | |
98418dba CW |
12572 | emacs_cv_motif_version_2_1=yes |
12573 | else | |
12574 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
12575 | sed 's/^/| /' conftest.$ac_ext >&5 |
12576 | ||
ca81d7a0 | 12577 | emacs_cv_motif_version_2_1=no |
98418dba | 12578 | fi |
ca81d7a0 JD |
12579 | |
12580 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
98418dba | 12581 | fi |
ca81d7a0 JD |
12582 | { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5 |
12583 | echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; } | |
98418dba CW |
12584 | HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1 |
12585 | if test $emacs_cv_motif_version_2_1 = yes; then | |
12586 | HAVE_LIBXP=no | |
b936fae4 | 12587 | |
c0d27fcc | 12588 | cat >>confdefs.h <<\_ACEOF |
98418dba | 12589 | #define HAVE_MOTIF_2_1 1 |
c0d27fcc | 12590 | _ACEOF |
98418dba | 12591 | |
ca81d7a0 JD |
12592 | { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5 |
12593 | echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; } | |
98418dba CW |
12594 | if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then |
12595 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12596 | else | |
12597 | ac_check_lib_save_LIBS=$LIBS | |
12598 | LIBS="-lXp $LIBS" | |
12599 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
12600 | /* confdefs.h. */ |
12601 | _ACEOF | |
12602 | cat confdefs.h >>conftest.$ac_ext | |
12603 | cat >>conftest.$ac_ext <<_ACEOF | |
12604 | /* end confdefs.h. */ | |
98418dba | 12605 | |
ca81d7a0 JD |
12606 | /* Override any GCC internal prototype to avoid an error. |
12607 | Use char because int might match the return type of a GCC | |
12608 | builtin and then its argument prototype would still apply. */ | |
98418dba CW |
12609 | #ifdef __cplusplus |
12610 | extern "C" | |
12611 | #endif | |
98418dba | 12612 | char XpCreateContext (); |
98418dba CW |
12613 | int |
12614 | main () | |
12615 | { | |
ca81d7a0 | 12616 | return XpCreateContext (); |
98418dba CW |
12617 | ; |
12618 | return 0; | |
12619 | } | |
12620 | _ACEOF | |
12621 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
12622 | if { (ac_try="$ac_link" |
12623 | case "(($ac_try" in | |
12624 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12625 | *) ac_try_echo=$ac_try;; | |
12626 | esac | |
12627 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12628 | (eval "$ac_link") 2>conftest.er1 | |
98418dba | 12629 | ac_status=$? |
edfaf76d LK |
12630 | grep -v '^ *+' conftest.er1 >conftest.err |
12631 | rm -f conftest.er1 | |
12632 | cat conftest.err >&5 | |
c0d27fcc | 12633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
12634 | (exit $ac_status); } && { |
12635 | test -z "$ac_c_werror_flag" || | |
12636 | test ! -s conftest.err | |
12637 | } && test -s conftest$ac_exeext && | |
12638 | $as_test_x conftest$ac_exeext; then | |
98418dba CW |
12639 | ac_cv_lib_Xp_XpCreateContext=yes |
12640 | else | |
12641 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
12642 | sed 's/^/| /' conftest.$ac_ext >&5 |
12643 | ||
ca81d7a0 | 12644 | ac_cv_lib_Xp_XpCreateContext=no |
98418dba | 12645 | fi |
ca81d7a0 | 12646 | |
f053c89f | 12647 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 12648 | conftest$ac_exeext conftest.$ac_ext |
98418dba CW |
12649 | LIBS=$ac_check_lib_save_LIBS |
12650 | fi | |
ca81d7a0 JD |
12651 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5 |
12652 | echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; } | |
98418dba CW |
12653 | if test $ac_cv_lib_Xp_XpCreateContext = yes; then |
12654 | HAVE_LIBXP=yes | |
12655 | fi | |
503d2be0 | 12656 | |
98418dba | 12657 | if test ${HAVE_LIBXP} = yes; then |
b936fae4 | 12658 | |
c0d27fcc | 12659 | cat >>confdefs.h <<\_ACEOF |
98418dba | 12660 | #define HAVE_LIBXP 1 |
c0d27fcc | 12661 | _ACEOF |
503d2be0 | 12662 | |
98418dba | 12663 | fi |
4693dbc9 | 12664 | else |
ca81d7a0 JD |
12665 | { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5 |
12666 | echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; } | |
4693dbc9 SM |
12667 | if test "${emacs_cv_lesstif+set}" = set; then |
12668 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12669 | else | |
12670 | # We put this in CFLAGS temporarily to precede other -I options | |
12671 | # that might be in CFLAGS temporarily. | |
12672 | # We put this in CPPFLAGS where it precedes the other -I options. | |
12673 | OLD_CPPFLAGS=$CPPFLAGS | |
12674 | OLD_CFLAGS=$CFLAGS | |
12675 | CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS" | |
12676 | CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS" | |
12677 | cat >conftest.$ac_ext <<_ACEOF | |
12678 | /* confdefs.h. */ | |
12679 | _ACEOF | |
12680 | cat confdefs.h >>conftest.$ac_ext | |
12681 | cat >>conftest.$ac_ext <<_ACEOF | |
12682 | /* end confdefs.h. */ | |
12683 | #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h> | |
12684 | int | |
12685 | main () | |
12686 | { | |
12687 | int x = 5; | |
12688 | ; | |
12689 | return 0; | |
12690 | } | |
12691 | _ACEOF | |
12692 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
12693 | if { (ac_try="$ac_compile" |
12694 | case "(($ac_try" in | |
12695 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12696 | *) ac_try_echo=$ac_try;; | |
12697 | esac | |
12698 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12699 | (eval "$ac_compile") 2>conftest.er1 | |
4693dbc9 | 12700 | ac_status=$? |
edfaf76d LK |
12701 | grep -v '^ *+' conftest.er1 >conftest.err |
12702 | rm -f conftest.er1 | |
12703 | cat conftest.err >&5 | |
4693dbc9 | 12704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
12705 | (exit $ac_status); } && { |
12706 | test -z "$ac_c_werror_flag" || | |
12707 | test ! -s conftest.err | |
12708 | } && test -s conftest.$ac_objext; then | |
4693dbc9 SM |
12709 | emacs_cv_lesstif=yes |
12710 | else | |
12711 | echo "$as_me: failed program was:" >&5 | |
12712 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12713 | ||
ca81d7a0 | 12714 | emacs_cv_lesstif=no |
4693dbc9 | 12715 | fi |
ca81d7a0 JD |
12716 | |
12717 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4693dbc9 | 12718 | fi |
ca81d7a0 JD |
12719 | { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5 |
12720 | echo "${ECHO_T}$emacs_cv_lesstif" >&6; } | |
4693dbc9 SM |
12721 | if test $emacs_cv_lesstif = yes; then |
12722 | # Make sure this -I option remains in CPPFLAGS after it is set | |
12723 | # back to REAL_CPPFLAGS. | |
12724 | # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not | |
12725 | # have those other -I options anyway. Ultimately, having this | |
12726 | # directory ultimately in CPPFLAGS will be enough. | |
12727 | REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS" | |
12728 | LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS" | |
12729 | else | |
12730 | CFLAGS=$OLD_CFLAGS | |
12731 | CPPFLAGS=$OLD_CPPFLAGS | |
12732 | fi | |
98418dba CW |
12733 | fi |
12734 | fi | |
12735 | ||
c0d27fcc MR |
12736 | |
12737 | ||
98418dba CW |
12738 | USE_TOOLKIT_SCROLL_BARS=no |
12739 | if test "${with_toolkit_scroll_bars}" != "no"; then | |
12740 | if test "${USE_X_TOOLKIT}" != "none"; then | |
12741 | if test "${USE_X_TOOLKIT}" = "MOTIF"; then | |
c0d27fcc | 12742 | cat >>confdefs.h <<\_ACEOF |
98418dba | 12743 | #define USE_TOOLKIT_SCROLL_BARS 1 |
c0d27fcc | 12744 | _ACEOF |
98418dba CW |
12745 | |
12746 | HAVE_XAW3D=no | |
12747 | USE_TOOLKIT_SCROLL_BARS=yes | |
12748 | elif test "${HAVE_XAW3D}" = "yes"; then | |
c0d27fcc | 12749 | cat >>confdefs.h <<\_ACEOF |
98418dba | 12750 | #define USE_TOOLKIT_SCROLL_BARS 1 |
c0d27fcc | 12751 | _ACEOF |
98418dba CW |
12752 | |
12753 | USE_TOOLKIT_SCROLL_BARS=yes | |
ba4481b5 | 12754 | fi |
488dd4c4 JD |
12755 | elif test "${HAVE_GTK}" = "yes"; then |
12756 | cat >>confdefs.h <<\_ACEOF | |
12757 | #define USE_TOOLKIT_SCROLL_BARS 1 | |
5d6da11e YM |
12758 | _ACEOF |
12759 | ||
12760 | USE_TOOLKIT_SCROLL_BARS=yes | |
12761 | elif test "${HAVE_CARBON}" = "yes"; then | |
12762 | cat >>confdefs.h <<\_ACEOF | |
12763 | #define USE_TOOLKIT_SCROLL_BARS 1 | |
488dd4c4 JD |
12764 | _ACEOF |
12765 | ||
12766 | USE_TOOLKIT_SCROLL_BARS=yes | |
ba4481b5 DL |
12767 | fi |
12768 | fi | |
12769 | ||
abd39b57 | 12770 | cat >conftest.$ac_ext <<_ACEOF |
abd39b57 AC |
12771 | /* confdefs.h. */ |
12772 | _ACEOF | |
12773 | cat confdefs.h >>conftest.$ac_ext | |
12774 | cat >>conftest.$ac_ext <<_ACEOF | |
12775 | /* end confdefs.h. */ | |
12776 | ||
12777 | #include <X11/Xlib.h> | |
12778 | #include <X11/Xresource.h> | |
12779 | int | |
12780 | main () | |
12781 | { | |
12782 | XIMProc callback; | |
12783 | ; | |
12784 | return 0; | |
12785 | } | |
12786 | _ACEOF | |
12787 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
12788 | if { (ac_try="$ac_compile" |
12789 | case "(($ac_try" in | |
12790 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12791 | *) ac_try_echo=$ac_try;; | |
12792 | esac | |
12793 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12794 | (eval "$ac_compile") 2>conftest.er1 | |
abd39b57 | 12795 | ac_status=$? |
edfaf76d LK |
12796 | grep -v '^ *+' conftest.er1 >conftest.err |
12797 | rm -f conftest.er1 | |
12798 | cat conftest.err >&5 | |
abd39b57 | 12799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
12800 | (exit $ac_status); } && { |
12801 | test -z "$ac_c_werror_flag" || | |
12802 | test ! -s conftest.err | |
12803 | } && test -s conftest.$ac_objext; then | |
abd39b57 AC |
12804 | HAVE_XIM=yes |
12805 | ||
12806 | cat >>confdefs.h <<\_ACEOF | |
12807 | #define HAVE_XIM 1 | |
12808 | _ACEOF | |
12809 | ||
12810 | else | |
12811 | echo "$as_me: failed program was:" >&5 | |
12812 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12813 | ||
ca81d7a0 | 12814 | HAVE_XIM=no |
abd39b57 | 12815 | fi |
ca81d7a0 JD |
12816 | |
12817 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
abd39b57 | 12818 | |
c0d27fcc | 12819 | |
98418dba | 12820 | if test "${with_xim}" != "no"; then |
b936fae4 | 12821 | |
c0d27fcc | 12822 | cat >>confdefs.h <<\_ACEOF |
98418dba | 12823 | #define USE_XIM 1 |
c0d27fcc | 12824 | _ACEOF |
98418dba | 12825 | |
793fa0d7 | 12826 | fi |
abd39b57 AC |
12827 | |
12828 | ||
12829 | if test "${HAVE_XIM}" != "no"; then | |
849d80cf DL |
12830 | late_CFLAGS=$CFLAGS |
12831 | if test "$GCC" = yes; then | |
12832 | CFLAGS="$CFLAGS --pedantic-errors" | |
12833 | fi | |
cffcede7 | 12834 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
12835 | /* confdefs.h. */ |
12836 | _ACEOF | |
12837 | cat confdefs.h >>conftest.$ac_ext | |
12838 | cat >>conftest.$ac_ext <<_ACEOF | |
12839 | /* end confdefs.h. */ | |
cffcede7 JD |
12840 | |
12841 | #include <X11/Xlib.h> | |
12842 | #include <X11/Xresource.h> | |
12843 | int | |
12844 | main () | |
12845 | { | |
12846 | Display *display; | |
12847 | XrmDatabase db; | |
12848 | char *res_name; | |
12849 | char *res_class; | |
12850 | XIMProc callback; | |
12851 | XPointer *client_data; | |
849d80cf DL |
12852 | #ifndef __GNUC__ |
12853 | /* If we're not using GCC, it's probably not XFree86, and this is | |
12854 | probably right, but we can't use something like --pedantic-errors. */ | |
12855 | extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*, | |
12856 | char*, XIMProc, XPointer*); | |
12857 | #endif | |
cffcede7 JD |
12858 | (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback, |
12859 | client_data); | |
12860 | ; | |
12861 | return 0; | |
12862 | } | |
12863 | _ACEOF | |
12864 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
12865 | if { (ac_try="$ac_compile" |
12866 | case "(($ac_try" in | |
12867 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12868 | *) ac_try_echo=$ac_try;; | |
12869 | esac | |
12870 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12871 | (eval "$ac_compile") 2>conftest.er1 | |
cffcede7 | 12872 | ac_status=$? |
edfaf76d LK |
12873 | grep -v '^ *+' conftest.er1 >conftest.err |
12874 | rm -f conftest.er1 | |
12875 | cat conftest.err >&5 | |
cffcede7 | 12876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
12877 | (exit $ac_status); } && { |
12878 | test -z "$ac_c_werror_flag" || | |
12879 | test ! -s conftest.err | |
12880 | } && test -s conftest.$ac_objext; then | |
cffcede7 JD |
12881 | emacs_cv_arg6_star=yes |
12882 | else | |
12883 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
12884 | sed 's/^/| /' conftest.$ac_ext >&5 |
12885 | ||
ca81d7a0 | 12886 | |
cffcede7 | 12887 | fi |
ca81d7a0 JD |
12888 | |
12889 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
cffcede7 JD |
12890 | |
12891 | if test "$emacs_cv_arg6_star" = yes; then | |
f57bd967 | 12892 | cat >>confdefs.h <<\_ACEOF |
cffcede7 JD |
12893 | #define XRegisterIMInstantiateCallback_arg6 XPointer* |
12894 | _ACEOF | |
12895 | ||
12896 | else | |
f57bd967 | 12897 | cat >>confdefs.h <<\_ACEOF |
cffcede7 JD |
12898 | #define XRegisterIMInstantiateCallback_arg6 XPointer |
12899 | _ACEOF | |
12900 | ||
12901 | fi | |
849d80cf | 12902 | CFLAGS=$late_CFLAGS |
98418dba CW |
12903 | fi |
12904 | ||
12905 | ### Use -lXpm if available, unless `--with-xpm=no'. | |
12906 | HAVE_XPM=no | |
12907 | if test "${HAVE_X11}" = "yes"; then | |
12908 | if test "${with_xpm}" != "no"; then | |
c0d27fcc | 12909 | if test "${ac_cv_header_X11_xpm_h+set}" = set; then |
ca81d7a0 JD |
12910 | { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 |
12911 | echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; } | |
98418dba CW |
12912 | if test "${ac_cv_header_X11_xpm_h+set}" = set; then |
12913 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc | 12914 | fi |
ca81d7a0 JD |
12915 | { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5 |
12916 | echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; } | |
98418dba | 12917 | else |
c0d27fcc | 12918 | # Is the header compilable? |
ca81d7a0 JD |
12919 | { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5 |
12920 | echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; } | |
c0d27fcc | 12921 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
12922 | /* confdefs.h. */ |
12923 | _ACEOF | |
12924 | cat confdefs.h >>conftest.$ac_ext | |
12925 | cat >>conftest.$ac_ext <<_ACEOF | |
12926 | /* end confdefs.h. */ | |
c0d27fcc MR |
12927 | $ac_includes_default |
12928 | #include <X11/xpm.h> | |
12929 | _ACEOF | |
12930 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
12931 | if { (ac_try="$ac_compile" |
12932 | case "(($ac_try" in | |
12933 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12934 | *) ac_try_echo=$ac_try;; | |
12935 | esac | |
12936 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12937 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 12938 | ac_status=$? |
edfaf76d LK |
12939 | grep -v '^ *+' conftest.er1 >conftest.err |
12940 | rm -f conftest.er1 | |
12941 | cat conftest.err >&5 | |
c0d27fcc | 12942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
12943 | (exit $ac_status); } && { |
12944 | test -z "$ac_c_werror_flag" || | |
12945 | test ! -s conftest.err | |
12946 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
12947 | ac_header_compiler=yes |
12948 | else | |
12949 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
12950 | sed 's/^/| /' conftest.$ac_ext >&5 |
12951 | ||
ca81d7a0 | 12952 | ac_header_compiler=no |
c0d27fcc | 12953 | fi |
ca81d7a0 JD |
12954 | |
12955 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12956 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12957 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
12958 | |
12959 | # Is the header present? | |
ca81d7a0 JD |
12960 | { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5 |
12961 | echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; } | |
c0d27fcc | 12962 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
12963 | /* confdefs.h. */ |
12964 | _ACEOF | |
12965 | cat confdefs.h >>conftest.$ac_ext | |
12966 | cat >>conftest.$ac_ext <<_ACEOF | |
12967 | /* end confdefs.h. */ | |
98418dba CW |
12968 | #include <X11/xpm.h> |
12969 | _ACEOF | |
ca81d7a0 JD |
12970 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
12971 | case "(($ac_try" in | |
12972 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12973 | *) ac_try_echo=$ac_try;; | |
12974 | esac | |
12975 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12976 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
98418dba | 12977 | ac_status=$? |
6bae0ccf | 12978 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
12979 | rm -f conftest.er1 |
12980 | cat conftest.err >&5 | |
c0d27fcc | 12981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
12982 | (exit $ac_status); } >/dev/null && { |
12983 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
12984 | test ! -s conftest.err | |
12985 | }; then | |
c0d27fcc | 12986 | ac_header_preproc=yes |
98418dba CW |
12987 | else |
12988 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
12989 | sed 's/^/| /' conftest.$ac_ext >&5 |
12990 | ||
c0d27fcc | 12991 | ac_header_preproc=no |
98418dba | 12992 | fi |
ca81d7a0 | 12993 | |
98418dba | 12994 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
12995 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
12996 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
12997 | |
12998 | # So? What about this header? | |
edfaf76d LK |
12999 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13000 | yes:no: ) | |
c0d27fcc MR |
13001 | { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
13002 | echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
13003 | { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5 |
13004 | echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;} | |
13005 | ac_header_preproc=yes | |
13006 | ;; | |
13007 | no:yes:* ) | |
13008 | { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5 | |
13009 | echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;} | |
13010 | { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5 | |
13011 | echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;} | |
13012 | { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5 | |
13013 | echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;} | |
13014 | { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5 | |
13015 | echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
7c9e5167 JD |
13016 | { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5 |
13017 | echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;} | |
edfaf76d LK |
13018 | { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5 |
13019 | echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 13020 | |
19650fd6 | 13021 | ;; |
c0d27fcc | 13022 | esac |
ca81d7a0 JD |
13023 | { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 |
13024 | echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; } | |
c0d27fcc MR |
13025 | if test "${ac_cv_header_X11_xpm_h+set}" = set; then |
13026 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13027 | else | |
13028 | ac_cv_header_X11_xpm_h=$ac_header_preproc | |
ba4481b5 | 13029 | fi |
ca81d7a0 JD |
13030 | { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5 |
13031 | echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; } | |
c0d27fcc MR |
13032 | |
13033 | fi | |
98418dba | 13034 | if test $ac_cv_header_X11_xpm_h = yes; then |
ca81d7a0 JD |
13035 | { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5 |
13036 | echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; } | |
98418dba | 13037 | if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then |
503d2be0 | 13038 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 13039 | else |
98418dba CW |
13040 | ac_check_lib_save_LIBS=$LIBS |
13041 | LIBS="-lXpm -lX11 $LIBS" | |
13042 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
13043 | /* confdefs.h. */ |
13044 | _ACEOF | |
13045 | cat confdefs.h >>conftest.$ac_ext | |
13046 | cat >>conftest.$ac_ext <<_ACEOF | |
13047 | /* end confdefs.h. */ | |
98418dba | 13048 | |
ca81d7a0 JD |
13049 | /* Override any GCC internal prototype to avoid an error. |
13050 | Use char because int might match the return type of a GCC | |
13051 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
13052 | #ifdef __cplusplus |
13053 | extern "C" | |
13054 | #endif | |
98418dba | 13055 | char XpmReadFileToPixmap (); |
503d2be0 AS |
13056 | int |
13057 | main () | |
13058 | { | |
ca81d7a0 | 13059 | return XpmReadFileToPixmap (); |
503d2be0 AS |
13060 | ; |
13061 | return 0; | |
13062 | } | |
13063 | _ACEOF | |
13064 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
13065 | if { (ac_try="$ac_link" |
13066 | case "(($ac_try" in | |
13067 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13068 | *) ac_try_echo=$ac_try;; | |
13069 | esac | |
13070 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13071 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 13072 | ac_status=$? |
edfaf76d LK |
13073 | grep -v '^ *+' conftest.er1 >conftest.err |
13074 | rm -f conftest.er1 | |
13075 | cat conftest.err >&5 | |
c0d27fcc | 13076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
13077 | (exit $ac_status); } && { |
13078 | test -z "$ac_c_werror_flag" || | |
13079 | test ! -s conftest.err | |
13080 | } && test -s conftest$ac_exeext && | |
13081 | $as_test_x conftest$ac_exeext; then | |
98418dba | 13082 | ac_cv_lib_Xpm_XpmReadFileToPixmap=yes |
503d2be0 AS |
13083 | else |
13084 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
13085 | sed 's/^/| /' conftest.$ac_ext >&5 |
13086 | ||
ca81d7a0 | 13087 | ac_cv_lib_Xpm_XpmReadFileToPixmap=no |
503d2be0 | 13088 | fi |
ca81d7a0 | 13089 | |
f053c89f | 13090 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 13091 | conftest$ac_exeext conftest.$ac_ext |
98418dba | 13092 | LIBS=$ac_check_lib_save_LIBS |
503d2be0 | 13093 | fi |
ca81d7a0 JD |
13094 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5 |
13095 | echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; } | |
98418dba CW |
13096 | if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then |
13097 | HAVE_XPM=yes | |
ba4481b5 DL |
13098 | fi |
13099 | ||
98418dba CW |
13100 | fi |
13101 | ||
c0d27fcc | 13102 | |
98418dba | 13103 | if test "${HAVE_XPM}" = "yes"; then |
ca81d7a0 JD |
13104 | { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5 |
13105 | echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; } | |
98418dba | 13106 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
13107 | /* confdefs.h. */ |
13108 | _ACEOF | |
13109 | cat confdefs.h >>conftest.$ac_ext | |
13110 | cat >>conftest.$ac_ext <<_ACEOF | |
13111 | /* end confdefs.h. */ | |
98418dba CW |
13112 | #include "X11/xpm.h" |
13113 | #ifndef XpmReturnAllocPixels | |
13114 | no_return_alloc_pixels | |
503d2be0 | 13115 | #endif |
ba4481b5 | 13116 | |
98418dba CW |
13117 | _ACEOF |
13118 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6bae0ccf | 13119 | $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then |
98418dba CW |
13120 | HAVE_XPM=no |
13121 | else | |
13122 | HAVE_XPM=yes | |
13123 | fi | |
13124 | rm -f conftest* | |
ba4481b5 | 13125 | |
c0d27fcc | 13126 | |
98418dba | 13127 | if test "${HAVE_XPM}" = "yes"; then |
ca81d7a0 JD |
13128 | { echo "$as_me:$LINENO: result: yes" >&5 |
13129 | echo "${ECHO_T}yes" >&6; } | |
98418dba | 13130 | else |
ca81d7a0 JD |
13131 | { echo "$as_me:$LINENO: result: no" >&5 |
13132 | echo "${ECHO_T}no" >&6; } | |
98418dba CW |
13133 | fi |
13134 | fi | |
13135 | fi | |
13136 | ||
13137 | if test "${HAVE_XPM}" = "yes"; then | |
b936fae4 | 13138 | |
c0d27fcc | 13139 | cat >>confdefs.h <<\_ACEOF |
98418dba | 13140 | #define HAVE_XPM 1 |
c0d27fcc | 13141 | _ACEOF |
98418dba CW |
13142 | |
13143 | fi | |
13144 | fi | |
13145 | ||
13146 | ### Use -ljpeg if available, unless `--with-jpeg=no'. | |
13147 | HAVE_JPEG=no | |
13148 | if test "${HAVE_X11}" = "yes"; then | |
13149 | if test "${with_jpeg}" != "no"; then | |
c0d27fcc | 13150 | if test "${ac_cv_header_jerror_h+set}" = set; then |
ca81d7a0 JD |
13151 | { echo "$as_me:$LINENO: checking for jerror.h" >&5 |
13152 | echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; } | |
98418dba CW |
13153 | if test "${ac_cv_header_jerror_h+set}" = set; then |
13154 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc | 13155 | fi |
ca81d7a0 JD |
13156 | { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5 |
13157 | echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; } | |
503d2be0 | 13158 | else |
c0d27fcc | 13159 | # Is the header compilable? |
ca81d7a0 JD |
13160 | { echo "$as_me:$LINENO: checking jerror.h usability" >&5 |
13161 | echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; } | |
c0d27fcc | 13162 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
13163 | /* confdefs.h. */ |
13164 | _ACEOF | |
13165 | cat confdefs.h >>conftest.$ac_ext | |
13166 | cat >>conftest.$ac_ext <<_ACEOF | |
13167 | /* end confdefs.h. */ | |
c0d27fcc MR |
13168 | $ac_includes_default |
13169 | #include <jerror.h> | |
13170 | _ACEOF | |
13171 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
13172 | if { (ac_try="$ac_compile" |
13173 | case "(($ac_try" in | |
13174 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13175 | *) ac_try_echo=$ac_try;; | |
13176 | esac | |
13177 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13178 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 13179 | ac_status=$? |
edfaf76d LK |
13180 | grep -v '^ *+' conftest.er1 >conftest.err |
13181 | rm -f conftest.er1 | |
13182 | cat conftest.err >&5 | |
c0d27fcc | 13183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
13184 | (exit $ac_status); } && { |
13185 | test -z "$ac_c_werror_flag" || | |
13186 | test ! -s conftest.err | |
13187 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
13188 | ac_header_compiler=yes |
13189 | else | |
13190 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
13191 | sed 's/^/| /' conftest.$ac_ext >&5 |
13192 | ||
ca81d7a0 | 13193 | ac_header_compiler=no |
c0d27fcc | 13194 | fi |
ca81d7a0 JD |
13195 | |
13196 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13197 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13198 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
13199 | |
13200 | # Is the header present? | |
ca81d7a0 JD |
13201 | { echo "$as_me:$LINENO: checking jerror.h presence" >&5 |
13202 | echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; } | |
c0d27fcc | 13203 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
13204 | /* confdefs.h. */ |
13205 | _ACEOF | |
13206 | cat confdefs.h >>conftest.$ac_ext | |
13207 | cat >>conftest.$ac_ext <<_ACEOF | |
13208 | /* end confdefs.h. */ | |
98418dba CW |
13209 | #include <jerror.h> |
13210 | _ACEOF | |
ca81d7a0 JD |
13211 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
13212 | case "(($ac_try" in | |
13213 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13214 | *) ac_try_echo=$ac_try;; | |
13215 | esac | |
13216 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13217 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
98418dba | 13218 | ac_status=$? |
6bae0ccf | 13219 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
13220 | rm -f conftest.er1 |
13221 | cat conftest.err >&5 | |
c0d27fcc | 13222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
13223 | (exit $ac_status); } >/dev/null && { |
13224 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
13225 | test ! -s conftest.err | |
13226 | }; then | |
c0d27fcc | 13227 | ac_header_preproc=yes |
ba4481b5 | 13228 | else |
98418dba | 13229 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
13230 | sed 's/^/| /' conftest.$ac_ext >&5 |
13231 | ||
c0d27fcc | 13232 | ac_header_preproc=no |
98418dba | 13233 | fi |
ca81d7a0 | 13234 | |
98418dba | 13235 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
13236 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13237 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
13238 | |
13239 | # So? What about this header? | |
edfaf76d LK |
13240 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13241 | yes:no: ) | |
c0d27fcc MR |
13242 | { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
13243 | echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
13244 | { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5 |
13245 | echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;} | |
13246 | ac_header_preproc=yes | |
19650fd6 | 13247 | ;; |
edfaf76d | 13248 | no:yes:* ) |
c0d27fcc MR |
13249 | { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5 |
13250 | echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;} | |
edfaf76d LK |
13251 | { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5 |
13252 | echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;} | |
13253 | { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5 | |
13254 | echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;} | |
13255 | { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5 | |
13256 | echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 13257 | { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 13258 | echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
13259 | { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5 |
13260 | echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 13261 | |
19650fd6 | 13262 | ;; |
c0d27fcc | 13263 | esac |
ca81d7a0 JD |
13264 | { echo "$as_me:$LINENO: checking for jerror.h" >&5 |
13265 | echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; } | |
c0d27fcc MR |
13266 | if test "${ac_cv_header_jerror_h+set}" = set; then |
13267 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13268 | else | |
13269 | ac_cv_header_jerror_h=$ac_header_preproc | |
ba4481b5 | 13270 | fi |
ca81d7a0 JD |
13271 | { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5 |
13272 | echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; } | |
c0d27fcc MR |
13273 | |
13274 | fi | |
98418dba | 13275 | if test $ac_cv_header_jerror_h = yes; then |
ca81d7a0 JD |
13276 | { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5 |
13277 | echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; } | |
98418dba | 13278 | if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then |
503d2be0 | 13279 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 13280 | else |
98418dba CW |
13281 | ac_check_lib_save_LIBS=$LIBS |
13282 | LIBS="-ljpeg $LIBS" | |
13283 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
13284 | /* confdefs.h. */ |
13285 | _ACEOF | |
13286 | cat confdefs.h >>conftest.$ac_ext | |
13287 | cat >>conftest.$ac_ext <<_ACEOF | |
13288 | /* end confdefs.h. */ | |
98418dba | 13289 | |
ca81d7a0 JD |
13290 | /* Override any GCC internal prototype to avoid an error. |
13291 | Use char because int might match the return type of a GCC | |
13292 | builtin and then its argument prototype would still apply. */ | |
98418dba CW |
13293 | #ifdef __cplusplus |
13294 | extern "C" | |
13295 | #endif | |
98418dba | 13296 | char jpeg_destroy_compress (); |
503d2be0 AS |
13297 | int |
13298 | main () | |
13299 | { | |
ca81d7a0 | 13300 | return jpeg_destroy_compress (); |
503d2be0 AS |
13301 | ; |
13302 | return 0; | |
13303 | } | |
13304 | _ACEOF | |
13305 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
13306 | if { (ac_try="$ac_link" |
13307 | case "(($ac_try" in | |
13308 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13309 | *) ac_try_echo=$ac_try;; | |
13310 | esac | |
13311 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13312 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 13313 | ac_status=$? |
edfaf76d LK |
13314 | grep -v '^ *+' conftest.er1 >conftest.err |
13315 | rm -f conftest.er1 | |
13316 | cat conftest.err >&5 | |
c0d27fcc | 13317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
13318 | (exit $ac_status); } && { |
13319 | test -z "$ac_c_werror_flag" || | |
13320 | test ! -s conftest.err | |
13321 | } && test -s conftest$ac_exeext && | |
13322 | $as_test_x conftest$ac_exeext; then | |
98418dba | 13323 | ac_cv_lib_jpeg_jpeg_destroy_compress=yes |
ba4481b5 | 13324 | else |
503d2be0 | 13325 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
13326 | sed 's/^/| /' conftest.$ac_ext >&5 |
13327 | ||
ca81d7a0 | 13328 | ac_cv_lib_jpeg_jpeg_destroy_compress=no |
ba4481b5 | 13329 | fi |
ca81d7a0 | 13330 | |
f053c89f | 13331 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 13332 | conftest$ac_exeext conftest.$ac_ext |
98418dba | 13333 | LIBS=$ac_check_lib_save_LIBS |
ba4481b5 | 13334 | fi |
ca81d7a0 JD |
13335 | { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5 |
13336 | echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; } | |
98418dba CW |
13337 | if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then |
13338 | HAVE_JPEG=yes | |
ba4481b5 | 13339 | fi |
98418dba | 13340 | |
ba4481b5 | 13341 | fi |
98418dba | 13342 | |
c0d27fcc | 13343 | |
ba4481b5 | 13344 | fi |
ba4481b5 | 13345 | |
c0d27fcc | 13346 | |
98418dba | 13347 | if test "${HAVE_JPEG}" = "yes"; then |
c0d27fcc | 13348 | cat >>confdefs.h <<\_ACEOF |
98418dba | 13349 | #define HAVE_JPEG 1 |
c0d27fcc | 13350 | _ACEOF |
98418dba CW |
13351 | |
13352 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
13353 | /* confdefs.h. */ |
13354 | _ACEOF | |
13355 | cat confdefs.h >>conftest.$ac_ext | |
13356 | cat >>conftest.$ac_ext <<_ACEOF | |
13357 | /* end confdefs.h. */ | |
22044edf | 13358 | #include <jpeglib.h> |
98418dba CW |
13359 | version=JPEG_LIB_VERSION |
13360 | ||
13361 | _ACEOF | |
13362 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6bae0ccf | 13363 | $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then |
c0d27fcc | 13364 | cat >>confdefs.h <<\_ACEOF |
98418dba | 13365 | #define HAVE_JPEG 1 |
c0d27fcc | 13366 | _ACEOF |
ba4481b5 | 13367 | |
98418dba | 13368 | else |
c0d27fcc | 13369 | { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5 |
98418dba CW |
13370 | echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;} |
13371 | HAVE_JPEG=no | |
ba4481b5 | 13372 | fi |
98418dba | 13373 | rm -f conftest* |
ba4481b5 | 13374 | |
98418dba CW |
13375 | fi |
13376 | fi | |
503d2be0 | 13377 | |
98418dba CW |
13378 | ### Use -lpng if available, unless `--with-png=no'. |
13379 | HAVE_PNG=no | |
13380 | if test "${HAVE_X11}" = "yes"; then | |
13381 | if test "${with_png}" != "no"; then | |
f57bd967 DL |
13382 | # Debian unstable as of July 2003 has multiple libpngs, and puts png.h |
13383 | # in /usr/include/libpng. | |
13384 | ||
13385 | ||
13386 | for ac_header in png.h libpng/png.h | |
13387 | do | |
13388 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
ca81d7a0 JD |
13389 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
13390 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13391 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
13392 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 13393 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc | 13394 | fi |
ca81d7a0 JD |
13395 | ac_res=`eval echo '${'$as_ac_Header'}'` |
13396 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13397 | echo "${ECHO_T}$ac_res" >&6; } | |
503d2be0 | 13398 | else |
c0d27fcc | 13399 | # Is the header compilable? |
ca81d7a0 JD |
13400 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
13401 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
c0d27fcc | 13402 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
13403 | /* confdefs.h. */ |
13404 | _ACEOF | |
13405 | cat confdefs.h >>conftest.$ac_ext | |
13406 | cat >>conftest.$ac_ext <<_ACEOF | |
13407 | /* end confdefs.h. */ | |
c0d27fcc | 13408 | $ac_includes_default |
f57bd967 | 13409 | #include <$ac_header> |
c0d27fcc MR |
13410 | _ACEOF |
13411 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
13412 | if { (ac_try="$ac_compile" |
13413 | case "(($ac_try" in | |
13414 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13415 | *) ac_try_echo=$ac_try;; | |
13416 | esac | |
13417 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13418 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 13419 | ac_status=$? |
edfaf76d LK |
13420 | grep -v '^ *+' conftest.er1 >conftest.err |
13421 | rm -f conftest.er1 | |
13422 | cat conftest.err >&5 | |
c0d27fcc | 13423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
13424 | (exit $ac_status); } && { |
13425 | test -z "$ac_c_werror_flag" || | |
13426 | test ! -s conftest.err | |
13427 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
13428 | ac_header_compiler=yes |
13429 | else | |
13430 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
13431 | sed 's/^/| /' conftest.$ac_ext >&5 |
13432 | ||
ca81d7a0 | 13433 | ac_header_compiler=no |
c0d27fcc | 13434 | fi |
ca81d7a0 JD |
13435 | |
13436 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13437 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13438 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
13439 | |
13440 | # Is the header present? | |
ca81d7a0 JD |
13441 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
13442 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
c0d27fcc | 13443 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
13444 | /* confdefs.h. */ |
13445 | _ACEOF | |
13446 | cat confdefs.h >>conftest.$ac_ext | |
13447 | cat >>conftest.$ac_ext <<_ACEOF | |
13448 | /* end confdefs.h. */ | |
f57bd967 | 13449 | #include <$ac_header> |
503d2be0 | 13450 | _ACEOF |
ca81d7a0 JD |
13451 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
13452 | case "(($ac_try" in | |
13453 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13454 | *) ac_try_echo=$ac_try;; | |
13455 | esac | |
13456 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13457 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 13458 | ac_status=$? |
6bae0ccf | 13459 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
13460 | rm -f conftest.er1 |
13461 | cat conftest.err >&5 | |
c0d27fcc | 13462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
13463 | (exit $ac_status); } >/dev/null && { |
13464 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
13465 | test ! -s conftest.err | |
13466 | }; then | |
c0d27fcc | 13467 | ac_header_preproc=yes |
503d2be0 AS |
13468 | else |
13469 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
13470 | sed 's/^/| /' conftest.$ac_ext >&5 |
13471 | ||
c0d27fcc | 13472 | ac_header_preproc=no |
ba4481b5 | 13473 | fi |
ca81d7a0 | 13474 | |
503d2be0 | 13475 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
13476 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13477 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
13478 | |
13479 | # So? What about this header? | |
edfaf76d LK |
13480 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13481 | yes:no: ) | |
f57bd967 DL |
13482 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13483 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
13484 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
13485 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13486 | ac_header_preproc=yes | |
19650fd6 | 13487 | ;; |
edfaf76d | 13488 | no:yes:* ) |
f57bd967 DL |
13489 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13490 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
edfaf76d LK |
13491 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13492 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13493 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13494 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13495 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13496 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
f57bd967 | 13497 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 13498 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
13499 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
13500 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 13501 | |
19650fd6 | 13502 | ;; |
c0d27fcc | 13503 | esac |
ca81d7a0 JD |
13504 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
13505 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
13506 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
c0d27fcc MR |
13507 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13508 | else | |
edfaf76d | 13509 | eval "$as_ac_Header=\$ac_header_preproc" |
f57bd967 | 13510 | fi |
ca81d7a0 JD |
13511 | ac_res=`eval echo '${'$as_ac_Header'}'` |
13512 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13513 | echo "${ECHO_T}$ac_res" >&6; } | |
f57bd967 | 13514 | |
ba4481b5 | 13515 | fi |
f57bd967 DL |
13516 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
13517 | cat >>confdefs.h <<_ACEOF | |
13518 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13519 | _ACEOF | |
c0d27fcc MR |
13520 | |
13521 | fi | |
f57bd967 DL |
13522 | |
13523 | done | |
13524 | ||
13525 | if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then | |
ca81d7a0 JD |
13526 | { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5 |
13527 | echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; } | |
98418dba | 13528 | if test "${ac_cv_lib_png_png_get_channels+set}" = set; then |
503d2be0 | 13529 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 13530 | else |
98418dba CW |
13531 | ac_check_lib_save_LIBS=$LIBS |
13532 | LIBS="-lpng -lz -lm $LIBS" | |
13533 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
13534 | /* confdefs.h. */ |
13535 | _ACEOF | |
13536 | cat confdefs.h >>conftest.$ac_ext | |
13537 | cat >>conftest.$ac_ext <<_ACEOF | |
13538 | /* end confdefs.h. */ | |
98418dba | 13539 | |
ca81d7a0 JD |
13540 | /* Override any GCC internal prototype to avoid an error. |
13541 | Use char because int might match the return type of a GCC | |
13542 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
13543 | #ifdef __cplusplus |
13544 | extern "C" | |
13545 | #endif | |
98418dba | 13546 | char png_get_channels (); |
503d2be0 AS |
13547 | int |
13548 | main () | |
13549 | { | |
ca81d7a0 | 13550 | return png_get_channels (); |
503d2be0 AS |
13551 | ; |
13552 | return 0; | |
13553 | } | |
13554 | _ACEOF | |
13555 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
13556 | if { (ac_try="$ac_link" |
13557 | case "(($ac_try" in | |
13558 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13559 | *) ac_try_echo=$ac_try;; | |
13560 | esac | |
13561 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13562 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 13563 | ac_status=$? |
edfaf76d LK |
13564 | grep -v '^ *+' conftest.er1 >conftest.err |
13565 | rm -f conftest.er1 | |
13566 | cat conftest.err >&5 | |
c0d27fcc | 13567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
13568 | (exit $ac_status); } && { |
13569 | test -z "$ac_c_werror_flag" || | |
13570 | test ! -s conftest.err | |
13571 | } && test -s conftest$ac_exeext && | |
13572 | $as_test_x conftest$ac_exeext; then | |
98418dba | 13573 | ac_cv_lib_png_png_get_channels=yes |
73b77ee5 | 13574 | else |
98418dba | 13575 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
13576 | sed 's/^/| /' conftest.$ac_ext >&5 |
13577 | ||
ca81d7a0 | 13578 | ac_cv_lib_png_png_get_channels=no |
73b77ee5 | 13579 | fi |
ca81d7a0 | 13580 | |
f053c89f | 13581 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 13582 | conftest$ac_exeext conftest.$ac_ext |
98418dba | 13583 | LIBS=$ac_check_lib_save_LIBS |
73b77ee5 | 13584 | fi |
ca81d7a0 JD |
13585 | { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5 |
13586 | echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; } | |
98418dba CW |
13587 | if test $ac_cv_lib_png_png_get_channels = yes; then |
13588 | HAVE_PNG=yes | |
73b77ee5 | 13589 | fi |
503d2be0 | 13590 | |
f57bd967 | 13591 | fi |
98418dba CW |
13592 | fi |
13593 | ||
13594 | if test "${HAVE_PNG}" = "yes"; then | |
b936fae4 | 13595 | |
c0d27fcc | 13596 | cat >>confdefs.h <<\_ACEOF |
98418dba | 13597 | #define HAVE_PNG 1 |
c0d27fcc | 13598 | _ACEOF |
73b77ee5 | 13599 | |
98418dba | 13600 | fi |
73b77ee5 GM |
13601 | fi |
13602 | ||
98418dba CW |
13603 | ### Use -ltiff if available, unless `--with-tiff=no'. |
13604 | HAVE_TIFF=no | |
13605 | if test "${HAVE_X11}" = "yes"; then | |
13606 | if test "${with_tiff}" != "no"; then | |
c0d27fcc | 13607 | if test "${ac_cv_header_tiffio_h+set}" = set; then |
ca81d7a0 JD |
13608 | { echo "$as_me:$LINENO: checking for tiffio.h" >&5 |
13609 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; } | |
98418dba CW |
13610 | if test "${ac_cv_header_tiffio_h+set}" = set; then |
13611 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc | 13612 | fi |
ca81d7a0 JD |
13613 | { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 |
13614 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; } | |
98418dba | 13615 | else |
c0d27fcc | 13616 | # Is the header compilable? |
ca81d7a0 JD |
13617 | { echo "$as_me:$LINENO: checking tiffio.h usability" >&5 |
13618 | echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; } | |
c0d27fcc | 13619 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
13620 | /* confdefs.h. */ |
13621 | _ACEOF | |
13622 | cat confdefs.h >>conftest.$ac_ext | |
13623 | cat >>conftest.$ac_ext <<_ACEOF | |
13624 | /* end confdefs.h. */ | |
c0d27fcc MR |
13625 | $ac_includes_default |
13626 | #include <tiffio.h> | |
13627 | _ACEOF | |
13628 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
13629 | if { (ac_try="$ac_compile" |
13630 | case "(($ac_try" in | |
13631 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13632 | *) ac_try_echo=$ac_try;; | |
13633 | esac | |
13634 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13635 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 13636 | ac_status=$? |
edfaf76d LK |
13637 | grep -v '^ *+' conftest.er1 >conftest.err |
13638 | rm -f conftest.er1 | |
13639 | cat conftest.err >&5 | |
c0d27fcc | 13640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
13641 | (exit $ac_status); } && { |
13642 | test -z "$ac_c_werror_flag" || | |
13643 | test ! -s conftest.err | |
13644 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
13645 | ac_header_compiler=yes |
13646 | else | |
13647 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
13648 | sed 's/^/| /' conftest.$ac_ext >&5 |
13649 | ||
ca81d7a0 | 13650 | ac_header_compiler=no |
c0d27fcc | 13651 | fi |
ca81d7a0 JD |
13652 | |
13653 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13654 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13655 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
13656 | |
13657 | # Is the header present? | |
ca81d7a0 JD |
13658 | { echo "$as_me:$LINENO: checking tiffio.h presence" >&5 |
13659 | echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; } | |
c0d27fcc | 13660 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
13661 | /* confdefs.h. */ |
13662 | _ACEOF | |
13663 | cat confdefs.h >>conftest.$ac_ext | |
13664 | cat >>conftest.$ac_ext <<_ACEOF | |
13665 | /* end confdefs.h. */ | |
98418dba CW |
13666 | #include <tiffio.h> |
13667 | _ACEOF | |
ca81d7a0 JD |
13668 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
13669 | case "(($ac_try" in | |
13670 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13671 | *) ac_try_echo=$ac_try;; | |
13672 | esac | |
13673 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13674 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
98418dba | 13675 | ac_status=$? |
6bae0ccf | 13676 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
13677 | rm -f conftest.er1 |
13678 | cat conftest.err >&5 | |
c0d27fcc | 13679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
13680 | (exit $ac_status); } >/dev/null && { |
13681 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
13682 | test ! -s conftest.err | |
13683 | }; then | |
c0d27fcc | 13684 | ac_header_preproc=yes |
98418dba CW |
13685 | else |
13686 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
13687 | sed 's/^/| /' conftest.$ac_ext >&5 |
13688 | ||
c0d27fcc | 13689 | ac_header_preproc=no |
98418dba | 13690 | fi |
ca81d7a0 | 13691 | |
98418dba | 13692 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
13693 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13694 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
13695 | |
13696 | # So? What about this header? | |
edfaf76d LK |
13697 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13698 | yes:no: ) | |
c0d27fcc MR |
13699 | { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
13700 | echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
13701 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5 |
13702 | echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;} | |
13703 | ac_header_preproc=yes | |
19650fd6 | 13704 | ;; |
edfaf76d | 13705 | no:yes:* ) |
c0d27fcc MR |
13706 | { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5 |
13707 | echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;} | |
edfaf76d LK |
13708 | { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5 |
13709 | echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;} | |
13710 | { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5 | |
13711 | echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;} | |
13712 | { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5 | |
13713 | echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 13714 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 13715 | echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
13716 | { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5 |
13717 | echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 13718 | |
19650fd6 | 13719 | ;; |
c0d27fcc | 13720 | esac |
ca81d7a0 JD |
13721 | { echo "$as_me:$LINENO: checking for tiffio.h" >&5 |
13722 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; } | |
c0d27fcc MR |
13723 | if test "${ac_cv_header_tiffio_h+set}" = set; then |
13724 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13725 | else | |
13726 | ac_cv_header_tiffio_h=$ac_header_preproc | |
98418dba | 13727 | fi |
ca81d7a0 JD |
13728 | { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 |
13729 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; } | |
c0d27fcc MR |
13730 | |
13731 | fi | |
98418dba CW |
13732 | if test $ac_cv_header_tiffio_h = yes; then |
13733 | tifflibs="-lz -lm" | |
13734 | # At least one tiff package requires the jpeg library. | |
13735 | if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi | |
ca81d7a0 JD |
13736 | { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5 |
13737 | echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; } | |
98418dba | 13738 | if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then |
503d2be0 | 13739 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
73b77ee5 | 13740 | else |
503d2be0 | 13741 | ac_check_lib_save_LIBS=$LIBS |
98418dba | 13742 | LIBS="-ltiff $tifflibs $LIBS" |
503d2be0 | 13743 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
13744 | /* confdefs.h. */ |
13745 | _ACEOF | |
13746 | cat confdefs.h >>conftest.$ac_ext | |
13747 | cat >>conftest.$ac_ext <<_ACEOF | |
13748 | /* end confdefs.h. */ | |
503d2be0 | 13749 | |
ca81d7a0 JD |
13750 | /* Override any GCC internal prototype to avoid an error. |
13751 | Use char because int might match the return type of a GCC | |
13752 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
13753 | #ifdef __cplusplus |
13754 | extern "C" | |
13755 | #endif | |
98418dba | 13756 | char TIFFGetVersion (); |
503d2be0 AS |
13757 | int |
13758 | main () | |
13759 | { | |
ca81d7a0 | 13760 | return TIFFGetVersion (); |
503d2be0 AS |
13761 | ; |
13762 | return 0; | |
13763 | } | |
13764 | _ACEOF | |
13765 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
13766 | if { (ac_try="$ac_link" |
13767 | case "(($ac_try" in | |
13768 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13769 | *) ac_try_echo=$ac_try;; | |
13770 | esac | |
13771 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13772 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 13773 | ac_status=$? |
edfaf76d LK |
13774 | grep -v '^ *+' conftest.er1 >conftest.err |
13775 | rm -f conftest.er1 | |
13776 | cat conftest.err >&5 | |
c0d27fcc | 13777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
13778 | (exit $ac_status); } && { |
13779 | test -z "$ac_c_werror_flag" || | |
13780 | test ! -s conftest.err | |
13781 | } && test -s conftest$ac_exeext && | |
13782 | $as_test_x conftest$ac_exeext; then | |
98418dba | 13783 | ac_cv_lib_tiff_TIFFGetVersion=yes |
503d2be0 AS |
13784 | else |
13785 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
13786 | sed 's/^/| /' conftest.$ac_ext >&5 |
13787 | ||
ca81d7a0 | 13788 | ac_cv_lib_tiff_TIFFGetVersion=no |
503d2be0 | 13789 | fi |
ca81d7a0 | 13790 | |
f053c89f | 13791 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 13792 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 AS |
13793 | LIBS=$ac_check_lib_save_LIBS |
13794 | fi | |
ca81d7a0 JD |
13795 | { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5 |
13796 | echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; } | |
98418dba CW |
13797 | if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then |
13798 | HAVE_TIFF=yes | |
13799 | fi | |
13800 | ||
13801 | fi | |
73b77ee5 | 13802 | |
c0d27fcc | 13803 | |
98418dba CW |
13804 | fi |
13805 | ||
13806 | if test "${HAVE_TIFF}" = "yes"; then | |
b936fae4 | 13807 | |
c0d27fcc | 13808 | cat >>confdefs.h <<\_ACEOF |
98418dba | 13809 | #define HAVE_TIFF 1 |
c0d27fcc | 13810 | _ACEOF |
98418dba CW |
13811 | |
13812 | fi | |
73b77ee5 GM |
13813 | fi |
13814 | ||
9aeb8aaa | 13815 | ### Use -lgif or -lungif if available, unless `--with-gif=no'. |
98418dba | 13816 | HAVE_GIF=no |
9aeb8aaa GM |
13817 | if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then |
13818 | if test "${ac_cv_header_gif_lib_h+set}" = set; then | |
ca81d7a0 JD |
13819 | { echo "$as_me:$LINENO: checking for gif_lib.h" >&5 |
13820 | echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; } | |
98418dba CW |
13821 | if test "${ac_cv_header_gif_lib_h+set}" = set; then |
13822 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc | 13823 | fi |
ca81d7a0 JD |
13824 | { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5 |
13825 | echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; } | |
98418dba | 13826 | else |
c0d27fcc | 13827 | # Is the header compilable? |
ca81d7a0 JD |
13828 | { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5 |
13829 | echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; } | |
c0d27fcc | 13830 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
13831 | /* confdefs.h. */ |
13832 | _ACEOF | |
13833 | cat confdefs.h >>conftest.$ac_ext | |
13834 | cat >>conftest.$ac_ext <<_ACEOF | |
13835 | /* end confdefs.h. */ | |
c0d27fcc MR |
13836 | $ac_includes_default |
13837 | #include <gif_lib.h> | |
13838 | _ACEOF | |
13839 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
13840 | if { (ac_try="$ac_compile" |
13841 | case "(($ac_try" in | |
13842 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13843 | *) ac_try_echo=$ac_try;; | |
13844 | esac | |
13845 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13846 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 13847 | ac_status=$? |
edfaf76d LK |
13848 | grep -v '^ *+' conftest.er1 >conftest.err |
13849 | rm -f conftest.er1 | |
13850 | cat conftest.err >&5 | |
c0d27fcc | 13851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
13852 | (exit $ac_status); } && { |
13853 | test -z "$ac_c_werror_flag" || | |
13854 | test ! -s conftest.err | |
13855 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
13856 | ac_header_compiler=yes |
13857 | else | |
13858 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
13859 | sed 's/^/| /' conftest.$ac_ext >&5 |
13860 | ||
ca81d7a0 | 13861 | ac_header_compiler=no |
c0d27fcc | 13862 | fi |
ca81d7a0 JD |
13863 | |
13864 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13865 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13866 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
13867 | |
13868 | # Is the header present? | |
ca81d7a0 JD |
13869 | { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5 |
13870 | echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; } | |
c0d27fcc | 13871 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
13872 | /* confdefs.h. */ |
13873 | _ACEOF | |
13874 | cat confdefs.h >>conftest.$ac_ext | |
13875 | cat >>conftest.$ac_ext <<_ACEOF | |
13876 | /* end confdefs.h. */ | |
98418dba CW |
13877 | #include <gif_lib.h> |
13878 | _ACEOF | |
ca81d7a0 JD |
13879 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
13880 | case "(($ac_try" in | |
13881 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13882 | *) ac_try_echo=$ac_try;; | |
13883 | esac | |
13884 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13885 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
98418dba | 13886 | ac_status=$? |
6bae0ccf | 13887 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
13888 | rm -f conftest.er1 |
13889 | cat conftest.err >&5 | |
c0d27fcc | 13890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
13891 | (exit $ac_status); } >/dev/null && { |
13892 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
13893 | test ! -s conftest.err | |
13894 | }; then | |
c0d27fcc | 13895 | ac_header_preproc=yes |
98418dba CW |
13896 | else |
13897 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
13898 | sed 's/^/| /' conftest.$ac_ext >&5 |
13899 | ||
c0d27fcc | 13900 | ac_header_preproc=no |
98418dba | 13901 | fi |
ca81d7a0 | 13902 | |
98418dba | 13903 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
13904 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13905 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
13906 | |
13907 | # So? What about this header? | |
edfaf76d LK |
13908 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13909 | yes:no: ) | |
c0d27fcc MR |
13910 | { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
13911 | echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
13912 | { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5 |
13913 | echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;} | |
13914 | ac_header_preproc=yes | |
19650fd6 | 13915 | ;; |
edfaf76d | 13916 | no:yes:* ) |
c0d27fcc MR |
13917 | { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5 |
13918 | echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;} | |
edfaf76d LK |
13919 | { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5 |
13920 | echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;} | |
13921 | { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5 | |
13922 | echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;} | |
13923 | { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5 | |
13924 | echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 13925 | { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 13926 | echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
13927 | { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5 |
13928 | echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 13929 | |
19650fd6 | 13930 | ;; |
c0d27fcc | 13931 | esac |
ca81d7a0 JD |
13932 | { echo "$as_me:$LINENO: checking for gif_lib.h" >&5 |
13933 | echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; } | |
c0d27fcc MR |
13934 | if test "${ac_cv_header_gif_lib_h+set}" = set; then |
13935 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13936 | else | |
13937 | ac_cv_header_gif_lib_h=$ac_header_preproc | |
98418dba | 13938 | fi |
ca81d7a0 JD |
13939 | { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5 |
13940 | echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; } | |
c0d27fcc MR |
13941 | |
13942 | fi | |
98418dba CW |
13943 | if test $ac_cv_header_gif_lib_h = yes; then |
13944 | # EGifPutExtensionLast only exists from version libungif-4.1.0b1. | |
13945 | # Earlier versions can crash Emacs. | |
63175cd2 GM |
13946 | { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5 |
13947 | echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; } | |
13948 | if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then | |
503d2be0 | 13949 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
73b77ee5 | 13950 | else |
503d2be0 | 13951 | ac_check_lib_save_LIBS=$LIBS |
63175cd2 | 13952 | LIBS="-lgif $LIBS" |
503d2be0 | 13953 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
13954 | /* confdefs.h. */ |
13955 | _ACEOF | |
13956 | cat confdefs.h >>conftest.$ac_ext | |
13957 | cat >>conftest.$ac_ext <<_ACEOF | |
13958 | /* end confdefs.h. */ | |
73b77ee5 | 13959 | |
ca81d7a0 JD |
13960 | /* Override any GCC internal prototype to avoid an error. |
13961 | Use char because int might match the return type of a GCC | |
13962 | builtin and then its argument prototype would still apply. */ | |
98418dba CW |
13963 | #ifdef __cplusplus |
13964 | extern "C" | |
13965 | #endif | |
98418dba | 13966 | char EGifPutExtensionLast (); |
503d2be0 AS |
13967 | int |
13968 | main () | |
13969 | { | |
ca81d7a0 | 13970 | return EGifPutExtensionLast (); |
503d2be0 AS |
13971 | ; |
13972 | return 0; | |
13973 | } | |
13974 | _ACEOF | |
13975 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
13976 | if { (ac_try="$ac_link" |
13977 | case "(($ac_try" in | |
13978 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13979 | *) ac_try_echo=$ac_try;; | |
13980 | esac | |
13981 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13982 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 13983 | ac_status=$? |
edfaf76d LK |
13984 | grep -v '^ *+' conftest.er1 >conftest.err |
13985 | rm -f conftest.er1 | |
13986 | cat conftest.err >&5 | |
c0d27fcc | 13987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
13988 | (exit $ac_status); } && { |
13989 | test -z "$ac_c_werror_flag" || | |
13990 | test ! -s conftest.err | |
13991 | } && test -s conftest$ac_exeext && | |
13992 | $as_test_x conftest$ac_exeext; then | |
63175cd2 | 13993 | ac_cv_lib_gif_EGifPutExtensionLast=yes |
35996d22 | 13994 | else |
98418dba | 13995 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
13996 | sed 's/^/| /' conftest.$ac_ext >&5 |
13997 | ||
63175cd2 | 13998 | ac_cv_lib_gif_EGifPutExtensionLast=no |
98418dba | 13999 | fi |
ca81d7a0 | 14000 | |
f053c89f | 14001 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 14002 | conftest$ac_exeext conftest.$ac_ext |
98418dba CW |
14003 | LIBS=$ac_check_lib_save_LIBS |
14004 | fi | |
63175cd2 GM |
14005 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5 |
14006 | echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; } | |
14007 | if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then | |
98418dba | 14008 | HAVE_GIF=yes |
9aeb8aaa | 14009 | else |
63175cd2 | 14010 | try_libungif=yes |
98418dba CW |
14011 | fi |
14012 | ||
14013 | fi | |
14014 | ||
c0d27fcc | 14015 | |
9aeb8aaa GM |
14016 | |
14017 | if test "$HAVE_GIF" = yes; then | |
63175cd2 | 14018 | ac_gif_lib_name="-lgif" |
9aeb8aaa GM |
14019 | fi |
14020 | ||
63175cd2 GM |
14021 | # If gif_lib.h but no libgif, try libungif. |
14022 | if test x"$try_libungif" = xyes; then | |
14023 | { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5 | |
14024 | echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; } | |
14025 | if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then | |
9aeb8aaa GM |
14026 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14027 | else | |
14028 | ac_check_lib_save_LIBS=$LIBS | |
63175cd2 | 14029 | LIBS="-lungif $LIBS" |
9aeb8aaa GM |
14030 | cat >conftest.$ac_ext <<_ACEOF |
14031 | /* confdefs.h. */ | |
14032 | _ACEOF | |
14033 | cat confdefs.h >>conftest.$ac_ext | |
14034 | cat >>conftest.$ac_ext <<_ACEOF | |
14035 | /* end confdefs.h. */ | |
14036 | ||
14037 | /* Override any GCC internal prototype to avoid an error. | |
14038 | Use char because int might match the return type of a GCC | |
14039 | builtin and then its argument prototype would still apply. */ | |
14040 | #ifdef __cplusplus | |
14041 | extern "C" | |
14042 | #endif | |
14043 | char EGifPutExtensionLast (); | |
14044 | int | |
14045 | main () | |
14046 | { | |
14047 | return EGifPutExtensionLast (); | |
14048 | ; | |
14049 | return 0; | |
14050 | } | |
14051 | _ACEOF | |
14052 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14053 | if { (ac_try="$ac_link" | |
14054 | case "(($ac_try" in | |
14055 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14056 | *) ac_try_echo=$ac_try;; | |
14057 | esac | |
14058 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14059 | (eval "$ac_link") 2>conftest.er1 | |
14060 | ac_status=$? | |
14061 | grep -v '^ *+' conftest.er1 >conftest.err | |
14062 | rm -f conftest.er1 | |
14063 | cat conftest.err >&5 | |
14064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14065 | (exit $ac_status); } && { | |
14066 | test -z "$ac_c_werror_flag" || | |
14067 | test ! -s conftest.err | |
14068 | } && test -s conftest$ac_exeext && | |
14069 | $as_test_x conftest$ac_exeext; then | |
63175cd2 | 14070 | ac_cv_lib_ungif_EGifPutExtensionLast=yes |
9aeb8aaa GM |
14071 | else |
14072 | echo "$as_me: failed program was:" >&5 | |
14073 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14074 | ||
63175cd2 | 14075 | ac_cv_lib_ungif_EGifPutExtensionLast=no |
9aeb8aaa GM |
14076 | fi |
14077 | ||
14078 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
14079 | conftest$ac_exeext conftest.$ac_ext | |
14080 | LIBS=$ac_check_lib_save_LIBS | |
14081 | fi | |
63175cd2 GM |
14082 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5 |
14083 | echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; } | |
14084 | if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then | |
9aeb8aaa GM |
14085 | HAVE_GIF=yes |
14086 | fi | |
14087 | ||
14088 | ||
14089 | if test "$HAVE_GIF" = yes; then | |
14090 | ||
14091 | cat >>confdefs.h <<\_ACEOF | |
63175cd2 | 14092 | #define LIBGIF -lungif |
9aeb8aaa GM |
14093 | _ACEOF |
14094 | ||
63175cd2 | 14095 | ac_gif_lib_name="-lungif" |
9aeb8aaa | 14096 | fi |
98418dba CW |
14097 | fi |
14098 | ||
14099 | if test "${HAVE_GIF}" = "yes"; then | |
b936fae4 | 14100 | |
c0d27fcc | 14101 | cat >>confdefs.h <<\_ACEOF |
98418dba | 14102 | #define HAVE_GIF 1 |
c0d27fcc | 14103 | _ACEOF |
98418dba | 14104 | |
5afbeb22 JD |
14105 | fi |
14106 | fi | |
14107 | ||
14108 | if test "${HAVE_X11}" = "yes"; then | |
14109 | MISSING="" | |
14110 | WITH_NO="" | |
14111 | test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" && | |
14112 | MISSING="libXpm" && WITH_NO="--with-xpm=no" | |
14113 | test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" && | |
14114 | MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no" | |
14115 | test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" && | |
14116 | MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no" | |
14117 | test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" && | |
14118 | MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no" | |
14119 | test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" && | |
14120 | MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no" | |
14121 | ||
14122 | if test "X${MISSING}" != X; then | |
14123 | { { echo "$as_me:$LINENO: error: The following required libraries was not found: | |
14124 | $MISSING | |
86e73516 | 14125 | Maybe some development libraries/packages are missing? |
5afbeb22 JD |
14126 | If you don't want to link with them give |
14127 | $WITH_NO | |
14128 | as options to configure" >&5 | |
14129 | echo "$as_me: error: The following required libraries was not found: | |
14130 | $MISSING | |
86e73516 | 14131 | Maybe some development libraries/packages are missing? |
5afbeb22 JD |
14132 | If you don't want to link with them give |
14133 | $WITH_NO | |
14134 | as options to configure" >&2;} | |
86e73516 | 14135 | { (exit 1); exit 1; }; } |
98418dba CW |
14136 | fi |
14137 | fi | |
14138 | ||
79011b82 NR |
14139 | ### Use -lgpm if available, unless `--with-gpm=no'. |
14140 | HAVE_GPM=no | |
14141 | if test "${with_gpm}" != "no"; then | |
14142 | if test "${ac_cv_header_gpm_h+set}" = set; then | |
14143 | { echo "$as_me:$LINENO: checking for gpm.h" >&5 | |
14144 | echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; } | |
14145 | if test "${ac_cv_header_gpm_h+set}" = set; then | |
14146 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14147 | fi | |
14148 | { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5 | |
14149 | echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; } | |
14150 | else | |
14151 | # Is the header compilable? | |
14152 | { echo "$as_me:$LINENO: checking gpm.h usability" >&5 | |
14153 | echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; } | |
14154 | cat >conftest.$ac_ext <<_ACEOF | |
14155 | /* confdefs.h. */ | |
14156 | _ACEOF | |
14157 | cat confdefs.h >>conftest.$ac_ext | |
14158 | cat >>conftest.$ac_ext <<_ACEOF | |
14159 | /* end confdefs.h. */ | |
14160 | $ac_includes_default | |
14161 | #include <gpm.h> | |
14162 | _ACEOF | |
14163 | rm -f conftest.$ac_objext | |
14164 | if { (ac_try="$ac_compile" | |
14165 | case "(($ac_try" in | |
14166 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14167 | *) ac_try_echo=$ac_try;; | |
14168 | esac | |
14169 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14170 | (eval "$ac_compile") 2>conftest.er1 | |
14171 | ac_status=$? | |
14172 | grep -v '^ *+' conftest.er1 >conftest.err | |
14173 | rm -f conftest.er1 | |
14174 | cat conftest.err >&5 | |
14175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14176 | (exit $ac_status); } && { | |
14177 | test -z "$ac_c_werror_flag" || | |
14178 | test ! -s conftest.err | |
14179 | } && test -s conftest.$ac_objext; then | |
14180 | ac_header_compiler=yes | |
14181 | else | |
14182 | echo "$as_me: failed program was:" >&5 | |
14183 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14184 | ||
14185 | ac_header_compiler=no | |
14186 | fi | |
14187 | ||
14188 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14189 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
14190 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
14191 | ||
14192 | # Is the header present? | |
14193 | { echo "$as_me:$LINENO: checking gpm.h presence" >&5 | |
14194 | echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; } | |
14195 | cat >conftest.$ac_ext <<_ACEOF | |
14196 | /* confdefs.h. */ | |
14197 | _ACEOF | |
14198 | cat confdefs.h >>conftest.$ac_ext | |
14199 | cat >>conftest.$ac_ext <<_ACEOF | |
14200 | /* end confdefs.h. */ | |
14201 | #include <gpm.h> | |
14202 | _ACEOF | |
14203 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
14204 | case "(($ac_try" in | |
14205 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14206 | *) ac_try_echo=$ac_try;; | |
14207 | esac | |
14208 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14209 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
14210 | ac_status=$? | |
14211 | grep -v '^ *+' conftest.er1 >conftest.err | |
14212 | rm -f conftest.er1 | |
14213 | cat conftest.err >&5 | |
14214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14215 | (exit $ac_status); } >/dev/null && { | |
14216 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
14217 | test ! -s conftest.err | |
14218 | }; then | |
14219 | ac_header_preproc=yes | |
14220 | else | |
14221 | echo "$as_me: failed program was:" >&5 | |
14222 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14223 | ||
14224 | ac_header_preproc=no | |
14225 | fi | |
14226 | ||
14227 | rm -f conftest.err conftest.$ac_ext | |
14228 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14229 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
14230 | ||
14231 | # So? What about this header? | |
14232 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
14233 | yes:no: ) | |
14234 | { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
14235 | echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14236 | { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5 | |
14237 | echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;} | |
14238 | ac_header_preproc=yes | |
14239 | ;; | |
14240 | no:yes:* ) | |
14241 | { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5 | |
14242 | echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;} | |
14243 | { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5 | |
14244 | echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;} | |
14245 | { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5 | |
14246 | echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;} | |
14247 | { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5 | |
14248 | echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
14249 | { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5 | |
14250 | echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;} | |
14251 | { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5 | |
14252 | echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;} | |
14253 | ||
14254 | ;; | |
14255 | esac | |
14256 | { echo "$as_me:$LINENO: checking for gpm.h" >&5 | |
14257 | echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; } | |
14258 | if test "${ac_cv_header_gpm_h+set}" = set; then | |
14259 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14260 | else | |
14261 | ac_cv_header_gpm_h=$ac_header_preproc | |
14262 | fi | |
14263 | { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5 | |
14264 | echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; } | |
14265 | ||
14266 | fi | |
14267 | if test $ac_cv_header_gpm_h = yes; then | |
14268 | { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5 | |
14269 | echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; } | |
14270 | if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then | |
14271 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14272 | else | |
14273 | ac_check_lib_save_LIBS=$LIBS | |
14274 | LIBS="-lgpm $LIBS" | |
14275 | cat >conftest.$ac_ext <<_ACEOF | |
14276 | /* confdefs.h. */ | |
14277 | _ACEOF | |
14278 | cat confdefs.h >>conftest.$ac_ext | |
14279 | cat >>conftest.$ac_ext <<_ACEOF | |
14280 | /* end confdefs.h. */ | |
14281 | ||
14282 | /* Override any GCC internal prototype to avoid an error. | |
14283 | Use char because int might match the return type of a GCC | |
14284 | builtin and then its argument prototype would still apply. */ | |
14285 | #ifdef __cplusplus | |
14286 | extern "C" | |
14287 | #endif | |
14288 | char Gpm_Open (); | |
14289 | int | |
14290 | main () | |
14291 | { | |
14292 | return Gpm_Open (); | |
14293 | ; | |
14294 | return 0; | |
14295 | } | |
14296 | _ACEOF | |
14297 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14298 | if { (ac_try="$ac_link" | |
14299 | case "(($ac_try" in | |
14300 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14301 | *) ac_try_echo=$ac_try;; | |
14302 | esac | |
14303 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14304 | (eval "$ac_link") 2>conftest.er1 | |
14305 | ac_status=$? | |
14306 | grep -v '^ *+' conftest.er1 >conftest.err | |
14307 | rm -f conftest.er1 | |
14308 | cat conftest.err >&5 | |
14309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14310 | (exit $ac_status); } && { | |
14311 | test -z "$ac_c_werror_flag" || | |
14312 | test ! -s conftest.err | |
14313 | } && test -s conftest$ac_exeext && | |
14314 | $as_test_x conftest$ac_exeext; then | |
14315 | ac_cv_lib_gpm_Gpm_Open=yes | |
14316 | else | |
14317 | echo "$as_me: failed program was:" >&5 | |
14318 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14319 | ||
14320 | ac_cv_lib_gpm_Gpm_Open=no | |
14321 | fi | |
14322 | ||
14323 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
14324 | conftest$ac_exeext conftest.$ac_ext | |
14325 | LIBS=$ac_check_lib_save_LIBS | |
14326 | fi | |
14327 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5 | |
14328 | echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; } | |
14329 | if test $ac_cv_lib_gpm_Gpm_Open = yes; then | |
14330 | HAVE_GPM=yes | |
14331 | fi | |
14332 | ||
14333 | fi | |
14334 | ||
14335 | ||
14336 | fi | |
14337 | ||
14338 | if test "${HAVE_GPM}" = "yes"; then | |
14339 | ||
14340 | cat >>confdefs.h <<\_ACEOF | |
14341 | #define HAVE_GPM 1 | |
14342 | _ACEOF | |
14343 | ||
14344 | fi | |
14345 | ||
cef11da2 | 14346 | if test "${ac_cv_header_malloc_malloc_h+set}" = set; then |
ca81d7a0 JD |
14347 | { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5 |
14348 | echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; } | |
cef11da2 ST |
14349 | if test "${ac_cv_header_malloc_malloc_h+set}" = set; then |
14350 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14351 | fi | |
ca81d7a0 JD |
14352 | { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5 |
14353 | echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; } | |
cef11da2 ST |
14354 | else |
14355 | # Is the header compilable? | |
ca81d7a0 JD |
14356 | { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5 |
14357 | echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; } | |
cef11da2 ST |
14358 | cat >conftest.$ac_ext <<_ACEOF |
14359 | /* confdefs.h. */ | |
14360 | _ACEOF | |
14361 | cat confdefs.h >>conftest.$ac_ext | |
14362 | cat >>conftest.$ac_ext <<_ACEOF | |
14363 | /* end confdefs.h. */ | |
14364 | $ac_includes_default | |
14365 | #include <malloc/malloc.h> | |
14366 | _ACEOF | |
14367 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
14368 | if { (ac_try="$ac_compile" |
14369 | case "(($ac_try" in | |
14370 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14371 | *) ac_try_echo=$ac_try;; | |
14372 | esac | |
14373 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14374 | (eval "$ac_compile") 2>conftest.er1 | |
cef11da2 | 14375 | ac_status=$? |
edfaf76d LK |
14376 | grep -v '^ *+' conftest.er1 >conftest.err |
14377 | rm -f conftest.er1 | |
14378 | cat conftest.err >&5 | |
cef11da2 | 14379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
14380 | (exit $ac_status); } && { |
14381 | test -z "$ac_c_werror_flag" || | |
14382 | test ! -s conftest.err | |
14383 | } && test -s conftest.$ac_objext; then | |
cef11da2 ST |
14384 | ac_header_compiler=yes |
14385 | else | |
14386 | echo "$as_me: failed program was:" >&5 | |
14387 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14388 | ||
ca81d7a0 | 14389 | ac_header_compiler=no |
cef11da2 | 14390 | fi |
ca81d7a0 JD |
14391 | |
14392 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14393 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
14394 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
cef11da2 ST |
14395 | |
14396 | # Is the header present? | |
ca81d7a0 JD |
14397 | { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5 |
14398 | echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; } | |
cef11da2 ST |
14399 | cat >conftest.$ac_ext <<_ACEOF |
14400 | /* confdefs.h. */ | |
14401 | _ACEOF | |
14402 | cat confdefs.h >>conftest.$ac_ext | |
14403 | cat >>conftest.$ac_ext <<_ACEOF | |
14404 | /* end confdefs.h. */ | |
14405 | #include <malloc/malloc.h> | |
14406 | _ACEOF | |
ca81d7a0 JD |
14407 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
14408 | case "(($ac_try" in | |
14409 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14410 | *) ac_try_echo=$ac_try;; | |
14411 | esac | |
14412 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14413 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
cef11da2 ST |
14414 | ac_status=$? |
14415 | grep -v '^ *+' conftest.er1 >conftest.err | |
14416 | rm -f conftest.er1 | |
14417 | cat conftest.err >&5 | |
14418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f053c89f CY |
14419 | (exit $ac_status); } >/dev/null && { |
14420 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
14421 | test ! -s conftest.err | |
14422 | }; then | |
cef11da2 ST |
14423 | ac_header_preproc=yes |
14424 | else | |
14425 | echo "$as_me: failed program was:" >&5 | |
14426 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14427 | ||
14428 | ac_header_preproc=no | |
14429 | fi | |
ca81d7a0 | 14430 | |
cef11da2 | 14431 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
14432 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
14433 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
cef11da2 ST |
14434 | |
14435 | # So? What about this header? | |
edfaf76d LK |
14436 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14437 | yes:no: ) | |
cef11da2 ST |
14438 | { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
14439 | echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
14440 | { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5 |
14441 | echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;} | |
14442 | ac_header_preproc=yes | |
cef11da2 | 14443 | ;; |
edfaf76d | 14444 | no:yes:* ) |
cef11da2 ST |
14445 | { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5 |
14446 | echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;} | |
edfaf76d LK |
14447 | { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5 |
14448 | echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;} | |
14449 | { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5 | |
14450 | echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;} | |
14451 | { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5 | |
14452 | echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
cef11da2 ST |
14453 | { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5 |
14454 | echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;} | |
edfaf76d LK |
14455 | { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5 |
14456 | echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 14457 | |
cef11da2 ST |
14458 | ;; |
14459 | esac | |
ca81d7a0 JD |
14460 | { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5 |
14461 | echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; } | |
cef11da2 ST |
14462 | if test "${ac_cv_header_malloc_malloc_h+set}" = set; then |
14463 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14464 | else | |
14465 | ac_cv_header_malloc_malloc_h=$ac_header_preproc | |
14466 | fi | |
ca81d7a0 JD |
14467 | { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5 |
14468 | echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; } | |
cef11da2 ST |
14469 | |
14470 | fi | |
14471 | if test $ac_cv_header_malloc_malloc_h = yes; then | |
14472 | ||
14473 | cat >>confdefs.h <<\_ACEOF | |
14474 | #define HAVE_MALLOC_MALLOC_H 1 | |
14475 | _ACEOF | |
14476 | ||
14477 | fi | |
14478 | ||
14479 | ||
14480 | ||
5d6da11e | 14481 | ### Use Mac OS X Carbon API to implement GUI. |
e0f712ba | 14482 | if test "${HAVE_CARBON}" = "yes"; then |
e3ba1015 | 14483 | |
c0d27fcc | 14484 | cat >>confdefs.h <<\_ACEOF |
e0f712ba | 14485 | #define HAVE_CARBON 1 |
c0d27fcc | 14486 | _ACEOF |
e0f712ba | 14487 | |
6a3a24fa JD |
14488 | ## Specify the install directory |
14489 | carbon_appdir= | |
14490 | if test "${carbon_appdir_x}" != ""; then | |
14491 | case ${carbon_appdir_x} in | |
14492 | y | ye | yes) carbon_appdir=/Applications ;; | |
14493 | * ) carbon_appdir=${carbon_appdir_x} ;; | |
14494 | esac | |
14495 | fi | |
8f417b3b AS |
14496 | # We also have mouse menus. |
14497 | HAVE_MENUS=yes | |
e0f712ba AC |
14498 | fi |
14499 | ||
98418dba CW |
14500 | ### Use session management (-lSM -lICE) if available |
14501 | HAVE_X_SM=no | |
14502 | if test "${HAVE_X11}" = "yes"; then | |
c0d27fcc | 14503 | if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then |
ca81d7a0 JD |
14504 | { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5 |
14505 | echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; } | |
98418dba CW |
14506 | if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then |
14507 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc | 14508 | fi |
ca81d7a0 JD |
14509 | { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5 |
14510 | echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; } | |
503d2be0 | 14511 | else |
c0d27fcc | 14512 | # Is the header compilable? |
ca81d7a0 JD |
14513 | { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5 |
14514 | echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; } | |
c0d27fcc | 14515 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
14516 | /* confdefs.h. */ |
14517 | _ACEOF | |
14518 | cat confdefs.h >>conftest.$ac_ext | |
14519 | cat >>conftest.$ac_ext <<_ACEOF | |
14520 | /* end confdefs.h. */ | |
c0d27fcc MR |
14521 | $ac_includes_default |
14522 | #include <X11/SM/SMlib.h> | |
14523 | _ACEOF | |
14524 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
14525 | if { (ac_try="$ac_compile" |
14526 | case "(($ac_try" in | |
14527 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14528 | *) ac_try_echo=$ac_try;; | |
14529 | esac | |
14530 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14531 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 14532 | ac_status=$? |
edfaf76d LK |
14533 | grep -v '^ *+' conftest.er1 >conftest.err |
14534 | rm -f conftest.er1 | |
14535 | cat conftest.err >&5 | |
c0d27fcc | 14536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
14537 | (exit $ac_status); } && { |
14538 | test -z "$ac_c_werror_flag" || | |
14539 | test ! -s conftest.err | |
14540 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
14541 | ac_header_compiler=yes |
14542 | else | |
14543 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
14544 | sed 's/^/| /' conftest.$ac_ext >&5 |
14545 | ||
ca81d7a0 | 14546 | ac_header_compiler=no |
c0d27fcc | 14547 | fi |
ca81d7a0 JD |
14548 | |
14549 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14550 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
14551 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
14552 | |
14553 | # Is the header present? | |
ca81d7a0 JD |
14554 | { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5 |
14555 | echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; } | |
c0d27fcc | 14556 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
14557 | /* confdefs.h. */ |
14558 | _ACEOF | |
14559 | cat confdefs.h >>conftest.$ac_ext | |
14560 | cat >>conftest.$ac_ext <<_ACEOF | |
14561 | /* end confdefs.h. */ | |
98418dba CW |
14562 | #include <X11/SM/SMlib.h> |
14563 | _ACEOF | |
ca81d7a0 JD |
14564 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
14565 | case "(($ac_try" in | |
14566 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14567 | *) ac_try_echo=$ac_try;; | |
14568 | esac | |
14569 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14570 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
98418dba | 14571 | ac_status=$? |
6bae0ccf | 14572 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
14573 | rm -f conftest.er1 |
14574 | cat conftest.err >&5 | |
c0d27fcc | 14575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
14576 | (exit $ac_status); } >/dev/null && { |
14577 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
14578 | test ! -s conftest.err | |
14579 | }; then | |
c0d27fcc | 14580 | ac_header_preproc=yes |
98418dba CW |
14581 | else |
14582 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
14583 | sed 's/^/| /' conftest.$ac_ext >&5 |
14584 | ||
c0d27fcc | 14585 | ac_header_preproc=no |
98418dba | 14586 | fi |
ca81d7a0 | 14587 | |
98418dba | 14588 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
14589 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
14590 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
14591 | |
14592 | # So? What about this header? | |
edfaf76d LK |
14593 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14594 | yes:no: ) | |
c0d27fcc MR |
14595 | { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
14596 | echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
14597 | { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5 |
14598 | echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;} | |
14599 | ac_header_preproc=yes | |
19650fd6 | 14600 | ;; |
edfaf76d | 14601 | no:yes:* ) |
c0d27fcc MR |
14602 | { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5 |
14603 | echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;} | |
edfaf76d LK |
14604 | { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5 |
14605 | echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;} | |
14606 | { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5 | |
14607 | echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;} | |
14608 | { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5 | |
14609 | echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 14610 | { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 14611 | echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
14612 | { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5 |
14613 | echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 14614 | |
19650fd6 | 14615 | ;; |
c0d27fcc | 14616 | esac |
ca81d7a0 JD |
14617 | { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5 |
14618 | echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; } | |
c0d27fcc MR |
14619 | if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then |
14620 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14621 | else | |
14622 | ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc | |
73b77ee5 | 14623 | fi |
ca81d7a0 JD |
14624 | { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5 |
14625 | echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; } | |
c0d27fcc MR |
14626 | |
14627 | fi | |
98418dba | 14628 | if test $ac_cv_header_X11_SM_SMlib_h = yes; then |
ca81d7a0 JD |
14629 | { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5 |
14630 | echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; } | |
98418dba | 14631 | if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then |
503d2be0 | 14632 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
73b77ee5 | 14633 | else |
503d2be0 | 14634 | ac_check_lib_save_LIBS=$LIBS |
1660500f | 14635 | LIBS="-lSM -lICE $LIBS" |
503d2be0 | 14636 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
14637 | /* confdefs.h. */ |
14638 | _ACEOF | |
14639 | cat confdefs.h >>conftest.$ac_ext | |
14640 | cat >>conftest.$ac_ext <<_ACEOF | |
14641 | /* end confdefs.h. */ | |
503d2be0 | 14642 | |
ca81d7a0 JD |
14643 | /* Override any GCC internal prototype to avoid an error. |
14644 | Use char because int might match the return type of a GCC | |
14645 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
14646 | #ifdef __cplusplus |
14647 | extern "C" | |
14648 | #endif | |
98418dba | 14649 | char SmcOpenConnection (); |
503d2be0 AS |
14650 | int |
14651 | main () | |
14652 | { | |
ca81d7a0 | 14653 | return SmcOpenConnection (); |
503d2be0 AS |
14654 | ; |
14655 | return 0; | |
14656 | } | |
14657 | _ACEOF | |
14658 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
14659 | if { (ac_try="$ac_link" |
14660 | case "(($ac_try" in | |
14661 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14662 | *) ac_try_echo=$ac_try;; | |
14663 | esac | |
14664 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14665 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 14666 | ac_status=$? |
edfaf76d LK |
14667 | grep -v '^ *+' conftest.er1 >conftest.err |
14668 | rm -f conftest.er1 | |
14669 | cat conftest.err >&5 | |
c0d27fcc | 14670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
14671 | (exit $ac_status); } && { |
14672 | test -z "$ac_c_werror_flag" || | |
14673 | test ! -s conftest.err | |
14674 | } && test -s conftest$ac_exeext && | |
14675 | $as_test_x conftest$ac_exeext; then | |
98418dba | 14676 | ac_cv_lib_SM_SmcOpenConnection=yes |
503d2be0 AS |
14677 | else |
14678 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
14679 | sed 's/^/| /' conftest.$ac_ext >&5 |
14680 | ||
ca81d7a0 | 14681 | ac_cv_lib_SM_SmcOpenConnection=no |
503d2be0 | 14682 | fi |
ca81d7a0 | 14683 | |
f053c89f | 14684 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 14685 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 AS |
14686 | LIBS=$ac_check_lib_save_LIBS |
14687 | fi | |
ca81d7a0 JD |
14688 | { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5 |
14689 | echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; } | |
98418dba CW |
14690 | if test $ac_cv_lib_SM_SmcOpenConnection = yes; then |
14691 | HAVE_X_SM=yes | |
73b77ee5 GM |
14692 | fi |
14693 | ||
73b77ee5 | 14694 | fi |
73b77ee5 | 14695 | |
c0d27fcc MR |
14696 | |
14697 | ||
98418dba | 14698 | if test "${HAVE_X_SM}" = "yes"; then |
b936fae4 | 14699 | |
c0d27fcc | 14700 | cat >>confdefs.h <<\_ACEOF |
98418dba | 14701 | #define HAVE_X_SM 1 |
c0d27fcc | 14702 | _ACEOF |
73b77ee5 | 14703 | |
98418dba CW |
14704 | case "$LIBS" in |
14705 | *-lSM*) ;; | |
14706 | *) LIBS="-lSM -lICE $LIBS" ;; | |
14707 | esac | |
73b77ee5 | 14708 | fi |
98418dba | 14709 | fi |
73b77ee5 | 14710 | |
98418dba | 14711 | # If netdb.h doesn't declare h_errno, we must declare it by hand. |
ca81d7a0 JD |
14712 | { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5 |
14713 | echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; } | |
98418dba CW |
14714 | if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then |
14715 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14716 | else | |
14717 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
14718 | /* confdefs.h. */ |
14719 | _ACEOF | |
14720 | cat confdefs.h >>conftest.$ac_ext | |
14721 | cat >>conftest.$ac_ext <<_ACEOF | |
14722 | /* end confdefs.h. */ | |
98418dba | 14723 | #include <netdb.h> |
503d2be0 AS |
14724 | int |
14725 | main () | |
14726 | { | |
98418dba | 14727 | return h_errno; |
503d2be0 AS |
14728 | ; |
14729 | return 0; | |
14730 | } | |
14731 | _ACEOF | |
14732 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
14733 | if { (ac_try="$ac_link" |
14734 | case "(($ac_try" in | |
14735 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14736 | *) ac_try_echo=$ac_try;; | |
14737 | esac | |
14738 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14739 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 14740 | ac_status=$? |
edfaf76d LK |
14741 | grep -v '^ *+' conftest.er1 >conftest.err |
14742 | rm -f conftest.er1 | |
14743 | cat conftest.err >&5 | |
c0d27fcc | 14744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
14745 | (exit $ac_status); } && { |
14746 | test -z "$ac_c_werror_flag" || | |
14747 | test ! -s conftest.err | |
14748 | } && test -s conftest$ac_exeext && | |
14749 | $as_test_x conftest$ac_exeext; then | |
98418dba | 14750 | emacs_cv_netdb_declares_h_errno=yes |
73b77ee5 | 14751 | else |
503d2be0 | 14752 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
14753 | sed 's/^/| /' conftest.$ac_ext >&5 |
14754 | ||
ca81d7a0 | 14755 | emacs_cv_netdb_declares_h_errno=no |
73b77ee5 | 14756 | fi |
ca81d7a0 | 14757 | |
f053c89f | 14758 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 14759 | conftest$ac_exeext conftest.$ac_ext |
98418dba | 14760 | fi |
ca81d7a0 JD |
14761 | { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5 |
14762 | echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; } | |
98418dba | 14763 | if test $emacs_cv_netdb_declares_h_errno = yes; then |
b936fae4 | 14764 | |
c0d27fcc | 14765 | cat >>confdefs.h <<\_ACEOF |
98418dba | 14766 | #define HAVE_H_ERRNO 1 |
c0d27fcc | 14767 | _ACEOF |
73b77ee5 | 14768 | |
98418dba CW |
14769 | fi |
14770 | ||
14771 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
14772 | # for constant arguments. Useless! | |
ca81d7a0 JD |
14773 | { echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
14774 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; } | |
98418dba CW |
14775 | if test "${ac_cv_working_alloca_h+set}" = set; then |
14776 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14777 | else | |
14778 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
14779 | /* confdefs.h. */ |
14780 | _ACEOF | |
14781 | cat confdefs.h >>conftest.$ac_ext | |
14782 | cat >>conftest.$ac_ext <<_ACEOF | |
14783 | /* end confdefs.h. */ | |
98418dba | 14784 | #include <alloca.h> |
503d2be0 AS |
14785 | int |
14786 | main () | |
14787 | { | |
98418dba | 14788 | char *p = (char *) alloca (2 * sizeof (int)); |
ca81d7a0 | 14789 | if (p) return 0; |
503d2be0 AS |
14790 | ; |
14791 | return 0; | |
14792 | } | |
14793 | _ACEOF | |
14794 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
14795 | if { (ac_try="$ac_link" |
14796 | case "(($ac_try" in | |
14797 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14798 | *) ac_try_echo=$ac_try;; | |
14799 | esac | |
14800 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14801 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 14802 | ac_status=$? |
edfaf76d LK |
14803 | grep -v '^ *+' conftest.er1 >conftest.err |
14804 | rm -f conftest.er1 | |
14805 | cat conftest.err >&5 | |
c0d27fcc | 14806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
14807 | (exit $ac_status); } && { |
14808 | test -z "$ac_c_werror_flag" || | |
14809 | test ! -s conftest.err | |
14810 | } && test -s conftest$ac_exeext && | |
14811 | $as_test_x conftest$ac_exeext; then | |
98418dba | 14812 | ac_cv_working_alloca_h=yes |
73b77ee5 | 14813 | else |
503d2be0 | 14814 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
14815 | sed 's/^/| /' conftest.$ac_ext >&5 |
14816 | ||
ca81d7a0 | 14817 | ac_cv_working_alloca_h=no |
73b77ee5 | 14818 | fi |
ca81d7a0 | 14819 | |
f053c89f | 14820 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 14821 | conftest$ac_exeext conftest.$ac_ext |
98418dba | 14822 | fi |
ca81d7a0 JD |
14823 | { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
14824 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; } | |
98418dba | 14825 | if test $ac_cv_working_alloca_h = yes; then |
73b77ee5 | 14826 | |
c0d27fcc | 14827 | cat >>confdefs.h <<\_ACEOF |
98418dba | 14828 | #define HAVE_ALLOCA_H 1 |
c0d27fcc | 14829 | _ACEOF |
98418dba CW |
14830 | |
14831 | fi | |
14832 | ||
ca81d7a0 JD |
14833 | { echo "$as_me:$LINENO: checking for alloca" >&5 |
14834 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6; } | |
98418dba CW |
14835 | if test "${ac_cv_func_alloca_works+set}" = set; then |
14836 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14837 | else | |
503d2be0 | 14838 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
14839 | /* confdefs.h. */ |
14840 | _ACEOF | |
14841 | cat confdefs.h >>conftest.$ac_ext | |
14842 | cat >>conftest.$ac_ext <<_ACEOF | |
14843 | /* end confdefs.h. */ | |
98418dba CW |
14844 | #ifdef __GNUC__ |
14845 | # define alloca __builtin_alloca | |
14846 | #else | |
14847 | # ifdef _MSC_VER | |
14848 | # include <malloc.h> | |
14849 | # define alloca _alloca | |
14850 | # else | |
f053c89f | 14851 | # ifdef HAVE_ALLOCA_H |
98418dba CW |
14852 | # include <alloca.h> |
14853 | # else | |
14854 | # ifdef _AIX | |
14855 | #pragma alloca | |
14856 | # else | |
14857 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
14858 | char *alloca (); | |
14859 | # endif | |
14860 | # endif | |
14861 | # endif | |
14862 | # endif | |
14863 | #endif | |
14864 | ||
503d2be0 AS |
14865 | int |
14866 | main () | |
14867 | { | |
98418dba | 14868 | char *p = (char *) alloca (1); |
ca81d7a0 | 14869 | if (p) return 0; |
503d2be0 AS |
14870 | ; |
14871 | return 0; | |
14872 | } | |
14873 | _ACEOF | |
14874 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
14875 | if { (ac_try="$ac_link" |
14876 | case "(($ac_try" in | |
14877 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14878 | *) ac_try_echo=$ac_try;; | |
14879 | esac | |
14880 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14881 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 14882 | ac_status=$? |
edfaf76d LK |
14883 | grep -v '^ *+' conftest.er1 >conftest.err |
14884 | rm -f conftest.er1 | |
14885 | cat conftest.err >&5 | |
c0d27fcc | 14886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
14887 | (exit $ac_status); } && { |
14888 | test -z "$ac_c_werror_flag" || | |
14889 | test ! -s conftest.err | |
14890 | } && test -s conftest$ac_exeext && | |
14891 | $as_test_x conftest$ac_exeext; then | |
98418dba | 14892 | ac_cv_func_alloca_works=yes |
ac95a621 | 14893 | else |
503d2be0 | 14894 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
14895 | sed 's/^/| /' conftest.$ac_ext >&5 |
14896 | ||
ca81d7a0 | 14897 | ac_cv_func_alloca_works=no |
ac95a621 | 14898 | fi |
ca81d7a0 | 14899 | |
f053c89f | 14900 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 14901 | conftest$ac_exeext conftest.$ac_ext |
98418dba | 14902 | fi |
ca81d7a0 JD |
14903 | { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
14904 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; } | |
ac95a621 | 14905 | |
98418dba CW |
14906 | if test $ac_cv_func_alloca_works = yes; then |
14907 | ||
c0d27fcc | 14908 | cat >>confdefs.h <<\_ACEOF |
98418dba | 14909 | #define HAVE_ALLOCA 1 |
c0d27fcc | 14910 | _ACEOF |
98418dba CW |
14911 | |
14912 | else | |
14913 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
14914 | # that cause trouble. Some versions do not even contain alloca or | |
14915 | # contain a buggy version. If you still want to use their alloca, | |
14916 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
14917 | ||
ca81d7a0 | 14918 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
98418dba | 14919 | |
c0d27fcc | 14920 | cat >>confdefs.h <<\_ACEOF |
98418dba | 14921 | #define C_ALLOCA 1 |
c0d27fcc | 14922 | _ACEOF |
98418dba | 14923 | |
c0d27fcc | 14924 | |
ca81d7a0 JD |
14925 | { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
14926 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; } | |
98418dba CW |
14927 | if test "${ac_cv_os_cray+set}" = set; then |
14928 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14929 | else | |
14930 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
14931 | /* confdefs.h. */ |
14932 | _ACEOF | |
14933 | cat confdefs.h >>conftest.$ac_ext | |
14934 | cat >>conftest.$ac_ext <<_ACEOF | |
14935 | /* end confdefs.h. */ | |
ca81d7a0 | 14936 | #if defined CRAY && ! defined CRAY2 |
98418dba CW |
14937 | webecray |
14938 | #else | |
14939 | wenotbecray | |
14940 | #endif | |
14941 | ||
14942 | _ACEOF | |
14943 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6bae0ccf | 14944 | $EGREP "webecray" >/dev/null 2>&1; then |
98418dba CW |
14945 | ac_cv_os_cray=yes |
14946 | else | |
14947 | ac_cv_os_cray=no | |
14948 | fi | |
14949 | rm -f conftest* | |
ac95a621 | 14950 | |
98418dba | 14951 | fi |
ca81d7a0 JD |
14952 | { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
14953 | echo "${ECHO_T}$ac_cv_os_cray" >&6; } | |
98418dba CW |
14954 | if test $ac_cv_os_cray = yes; then |
14955 | for ac_func in _getb67 GETB67 getb67; do | |
14956 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
ca81d7a0 JD |
14957 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
14958 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
14959 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 14960 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
73b77ee5 | 14961 | else |
503d2be0 | 14962 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
14963 | /* confdefs.h. */ |
14964 | _ACEOF | |
14965 | cat confdefs.h >>conftest.$ac_ext | |
14966 | cat >>conftest.$ac_ext <<_ACEOF | |
14967 | /* end confdefs.h. */ | |
edfaf76d LK |
14968 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
14969 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
14970 | #define $ac_func innocuous_$ac_func | |
14971 | ||
73b77ee5 | 14972 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
14973 | which can conflict with char $ac_func (); below. |
14974 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14975 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 14976 | |
19650fd6 AS |
14977 | #ifdef __STDC__ |
14978 | # include <limits.h> | |
14979 | #else | |
14980 | # include <assert.h> | |
14981 | #endif | |
edfaf76d LK |
14982 | |
14983 | #undef $ac_func | |
14984 | ||
ca81d7a0 JD |
14985 | /* Override any GCC internal prototype to avoid an error. |
14986 | Use char because int might match the return type of a GCC | |
14987 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
14988 | #ifdef __cplusplus |
14989 | extern "C" | |
14990 | #endif | |
503d2be0 | 14991 | char $ac_func (); |
73b77ee5 GM |
14992 | /* The GNU C library defines this for functions which it implements |
14993 | to always fail with ENOSYS. Some functions are actually named | |
14994 | something starting with __ and the normal name is an alias. */ | |
ca81d7a0 | 14995 | #if defined __stub_$ac_func || defined __stub___$ac_func |
73b77ee5 | 14996 | choke me |
73b77ee5 GM |
14997 | #endif |
14998 | ||
19650fd6 AS |
14999 | int |
15000 | main () | |
15001 | { | |
ca81d7a0 | 15002 | return $ac_func (); |
503d2be0 AS |
15003 | ; |
15004 | return 0; | |
15005 | } | |
15006 | _ACEOF | |
15007 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
15008 | if { (ac_try="$ac_link" |
15009 | case "(($ac_try" in | |
15010 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15011 | *) ac_try_echo=$ac_try;; | |
15012 | esac | |
15013 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15014 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 15015 | ac_status=$? |
edfaf76d LK |
15016 | grep -v '^ *+' conftest.er1 >conftest.err |
15017 | rm -f conftest.er1 | |
15018 | cat conftest.err >&5 | |
c0d27fcc | 15019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
15020 | (exit $ac_status); } && { |
15021 | test -z "$ac_c_werror_flag" || | |
15022 | test ! -s conftest.err | |
15023 | } && test -s conftest$ac_exeext && | |
15024 | $as_test_x conftest$ac_exeext; then | |
503d2be0 AS |
15025 | eval "$as_ac_var=yes" |
15026 | else | |
15027 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15028 | sed 's/^/| /' conftest.$ac_ext >&5 |
15029 | ||
ca81d7a0 | 15030 | eval "$as_ac_var=no" |
503d2be0 | 15031 | fi |
ca81d7a0 | 15032 | |
f053c89f | 15033 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 15034 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 | 15035 | fi |
ca81d7a0 JD |
15036 | ac_res=`eval echo '${'$as_ac_var'}'` |
15037 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15038 | echo "${ECHO_T}$ac_res" >&6; } | |
503d2be0 | 15039 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
73b77ee5 | 15040 | |
c0d27fcc | 15041 | cat >>confdefs.h <<_ACEOF |
98418dba | 15042 | #define CRAY_STACKSEG_END $ac_func |
c0d27fcc | 15043 | _ACEOF |
98418dba CW |
15044 | |
15045 | break | |
73b77ee5 | 15046 | fi |
73b77ee5 | 15047 | |
98418dba | 15048 | done |
73b77ee5 GM |
15049 | fi |
15050 | ||
ca81d7a0 JD |
15051 | { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
15052 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; } | |
98418dba | 15053 | if test "${ac_cv_c_stack_direction+set}" = set; then |
503d2be0 | 15054 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
98418dba CW |
15055 | else |
15056 | if test "$cross_compiling" = yes; then | |
15057 | ac_cv_c_stack_direction=0 | |
73b77ee5 | 15058 | else |
503d2be0 | 15059 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
15060 | /* confdefs.h. */ |
15061 | _ACEOF | |
15062 | cat confdefs.h >>conftest.$ac_ext | |
15063 | cat >>conftest.$ac_ext <<_ACEOF | |
15064 | /* end confdefs.h. */ | |
ca81d7a0 | 15065 | $ac_includes_default |
503d2be0 | 15066 | int |
98418dba | 15067 | find_stack_direction () |
503d2be0 | 15068 | { |
98418dba CW |
15069 | static char *addr = 0; |
15070 | auto char dummy; | |
15071 | if (addr == 0) | |
15072 | { | |
15073 | addr = &dummy; | |
15074 | return find_stack_direction (); | |
15075 | } | |
73b77ee5 | 15076 | else |
98418dba CW |
15077 | return (&dummy > addr) ? 1 : -1; |
15078 | } | |
ba4481b5 | 15079 | |
503d2be0 AS |
15080 | int |
15081 | main () | |
15082 | { | |
ca81d7a0 | 15083 | return find_stack_direction () < 0; |
503d2be0 AS |
15084 | } |
15085 | _ACEOF | |
98418dba | 15086 | rm -f conftest$ac_exeext |
ca81d7a0 JD |
15087 | if { (ac_try="$ac_link" |
15088 | case "(($ac_try" in | |
15089 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15090 | *) ac_try_echo=$ac_try;; | |
15091 | esac | |
15092 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15093 | (eval "$ac_link") 2>&5 | |
503d2be0 | 15094 | ac_status=$? |
c0d27fcc | 15095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 15096 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
ca81d7a0 JD |
15097 | { (case "(($ac_try" in |
15098 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15099 | *) ac_try_echo=$ac_try;; | |
15100 | esac | |
15101 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15102 | (eval "$ac_try") 2>&5 | |
503d2be0 | 15103 | ac_status=$? |
c0d27fcc | 15104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 15105 | (exit $ac_status); }; }; then |
98418dba | 15106 | ac_cv_c_stack_direction=1 |
ba4481b5 | 15107 | else |
98418dba CW |
15108 | echo "$as_me: program exited with status $ac_status" >&5 |
15109 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15110 | sed 's/^/| /' conftest.$ac_ext >&5 |
15111 | ||
c0d27fcc | 15112 | ( exit $ac_status ) |
98418dba | 15113 | ac_cv_c_stack_direction=-1 |
ba4481b5 | 15114 | fi |
ca81d7a0 | 15115 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 15116 | fi |
ca81d7a0 JD |
15117 | |
15118 | ||
98418dba | 15119 | fi |
ca81d7a0 JD |
15120 | { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
15121 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; } | |
98418dba | 15122 | |
c0d27fcc | 15123 | cat >>confdefs.h <<_ACEOF |
98418dba | 15124 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
c0d27fcc MR |
15125 | _ACEOF |
15126 | ||
ba4481b5 | 15127 | |
ba4481b5 DL |
15128 | fi |
15129 | ||
c0d27fcc | 15130 | |
98418dba CW |
15131 | # fmod, logb, and frexp are found in -lm on most systems. |
15132 | # On HPUX 9.01, -lm does not contain logb, so check for sqrt. | |
15133 | ||
ca81d7a0 JD |
15134 | { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5 |
15135 | echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; } | |
98418dba | 15136 | if test "${ac_cv_lib_m_sqrt+set}" = set; then |
503d2be0 | 15137 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 15138 | else |
98418dba CW |
15139 | ac_check_lib_save_LIBS=$LIBS |
15140 | LIBS="-lm $LIBS" | |
15141 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
15142 | /* confdefs.h. */ |
15143 | _ACEOF | |
15144 | cat confdefs.h >>conftest.$ac_ext | |
15145 | cat >>conftest.$ac_ext <<_ACEOF | |
15146 | /* end confdefs.h. */ | |
ba4481b5 | 15147 | |
ca81d7a0 JD |
15148 | /* Override any GCC internal prototype to avoid an error. |
15149 | Use char because int might match the return type of a GCC | |
15150 | builtin and then its argument prototype would still apply. */ | |
98418dba CW |
15151 | #ifdef __cplusplus |
15152 | extern "C" | |
15153 | #endif | |
98418dba | 15154 | char sqrt (); |
503d2be0 AS |
15155 | int |
15156 | main () | |
15157 | { | |
ca81d7a0 | 15158 | return sqrt (); |
503d2be0 AS |
15159 | ; |
15160 | return 0; | |
15161 | } | |
15162 | _ACEOF | |
15163 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
15164 | if { (ac_try="$ac_link" |
15165 | case "(($ac_try" in | |
15166 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15167 | *) ac_try_echo=$ac_try;; | |
15168 | esac | |
15169 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15170 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 15171 | ac_status=$? |
edfaf76d LK |
15172 | grep -v '^ *+' conftest.er1 >conftest.err |
15173 | rm -f conftest.er1 | |
15174 | cat conftest.err >&5 | |
c0d27fcc | 15175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
15176 | (exit $ac_status); } && { |
15177 | test -z "$ac_c_werror_flag" || | |
15178 | test ! -s conftest.err | |
15179 | } && test -s conftest$ac_exeext && | |
15180 | $as_test_x conftest$ac_exeext; then | |
98418dba | 15181 | ac_cv_lib_m_sqrt=yes |
ba4481b5 | 15182 | else |
503d2be0 | 15183 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
15184 | sed 's/^/| /' conftest.$ac_ext >&5 |
15185 | ||
ca81d7a0 | 15186 | ac_cv_lib_m_sqrt=no |
ba4481b5 | 15187 | fi |
ca81d7a0 | 15188 | |
f053c89f | 15189 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 15190 | conftest$ac_exeext conftest.$ac_ext |
98418dba | 15191 | LIBS=$ac_check_lib_save_LIBS |
ba4481b5 | 15192 | fi |
ca81d7a0 JD |
15193 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5 |
15194 | echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; } | |
98418dba | 15195 | if test $ac_cv_lib_m_sqrt = yes; then |
c0d27fcc | 15196 | cat >>confdefs.h <<_ACEOF |
98418dba | 15197 | #define HAVE_LIBM 1 |
c0d27fcc | 15198 | _ACEOF |
98418dba CW |
15199 | |
15200 | LIBS="-lm $LIBS" | |
ba4481b5 | 15201 | |
ba4481b5 DL |
15202 | fi |
15203 | ||
c0d27fcc | 15204 | |
55597d70 DL |
15205 | # Check for mail-locking functions in a "mail" library. Probably this should |
15206 | # have the same check as for liblockfile below. | |
98418dba | 15207 | |
ca81d7a0 JD |
15208 | { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5 |
15209 | echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; } | |
98418dba | 15210 | if test "${ac_cv_lib_mail_maillock+set}" = set; then |
503d2be0 | 15211 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 15212 | else |
98418dba CW |
15213 | ac_check_lib_save_LIBS=$LIBS |
15214 | LIBS="-lmail $LIBS" | |
15215 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
15216 | /* confdefs.h. */ |
15217 | _ACEOF | |
15218 | cat confdefs.h >>conftest.$ac_ext | |
15219 | cat >>conftest.$ac_ext <<_ACEOF | |
15220 | /* end confdefs.h. */ | |
98418dba | 15221 | |
ca81d7a0 JD |
15222 | /* Override any GCC internal prototype to avoid an error. |
15223 | Use char because int might match the return type of a GCC | |
15224 | builtin and then its argument prototype would still apply. */ | |
98418dba CW |
15225 | #ifdef __cplusplus |
15226 | extern "C" | |
15227 | #endif | |
98418dba | 15228 | char maillock (); |
503d2be0 AS |
15229 | int |
15230 | main () | |
15231 | { | |
ca81d7a0 | 15232 | return maillock (); |
503d2be0 AS |
15233 | ; |
15234 | return 0; | |
15235 | } | |
15236 | _ACEOF | |
15237 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
15238 | if { (ac_try="$ac_link" |
15239 | case "(($ac_try" in | |
15240 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15241 | *) ac_try_echo=$ac_try;; | |
15242 | esac | |
15243 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15244 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 15245 | ac_status=$? |
edfaf76d LK |
15246 | grep -v '^ *+' conftest.er1 >conftest.err |
15247 | rm -f conftest.er1 | |
15248 | cat conftest.err >&5 | |
c0d27fcc | 15249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
15250 | (exit $ac_status); } && { |
15251 | test -z "$ac_c_werror_flag" || | |
15252 | test ! -s conftest.err | |
15253 | } && test -s conftest$ac_exeext && | |
15254 | $as_test_x conftest$ac_exeext; then | |
98418dba | 15255 | ac_cv_lib_mail_maillock=yes |
ba4481b5 | 15256 | else |
503d2be0 | 15257 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
15258 | sed 's/^/| /' conftest.$ac_ext >&5 |
15259 | ||
ca81d7a0 | 15260 | ac_cv_lib_mail_maillock=no |
ba4481b5 | 15261 | fi |
ca81d7a0 | 15262 | |
f053c89f | 15263 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 15264 | conftest$ac_exeext conftest.$ac_ext |
98418dba | 15265 | LIBS=$ac_check_lib_save_LIBS |
ba4481b5 | 15266 | fi |
ca81d7a0 JD |
15267 | { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5 |
15268 | echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; } | |
98418dba | 15269 | if test $ac_cv_lib_mail_maillock = yes; then |
c0d27fcc | 15270 | cat >>confdefs.h <<_ACEOF |
98418dba | 15271 | #define HAVE_LIBMAIL 1 |
c0d27fcc | 15272 | _ACEOF |
ba4481b5 | 15273 | |
98418dba | 15274 | LIBS="-lmail $LIBS" |
ba4481b5 | 15275 | |
98418dba | 15276 | fi |
ba4481b5 | 15277 | |
c0d27fcc | 15278 | |
ca81d7a0 JD |
15279 | { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5 |
15280 | echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; } | |
98418dba | 15281 | if test "${ac_cv_lib_lockfile_maillock+set}" = set; then |
503d2be0 | 15282 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 15283 | else |
503d2be0 | 15284 | ac_check_lib_save_LIBS=$LIBS |
98418dba | 15285 | LIBS="-llockfile $LIBS" |
503d2be0 | 15286 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
15287 | /* confdefs.h. */ |
15288 | _ACEOF | |
15289 | cat confdefs.h >>conftest.$ac_ext | |
15290 | cat >>conftest.$ac_ext <<_ACEOF | |
15291 | /* end confdefs.h. */ | |
503d2be0 | 15292 | |
ca81d7a0 JD |
15293 | /* Override any GCC internal prototype to avoid an error. |
15294 | Use char because int might match the return type of a GCC | |
15295 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
15296 | #ifdef __cplusplus |
15297 | extern "C" | |
15298 | #endif | |
98418dba | 15299 | char maillock (); |
503d2be0 AS |
15300 | int |
15301 | main () | |
15302 | { | |
ca81d7a0 | 15303 | return maillock (); |
503d2be0 AS |
15304 | ; |
15305 | return 0; | |
15306 | } | |
15307 | _ACEOF | |
15308 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
15309 | if { (ac_try="$ac_link" |
15310 | case "(($ac_try" in | |
15311 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15312 | *) ac_try_echo=$ac_try;; | |
15313 | esac | |
15314 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15315 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 15316 | ac_status=$? |
edfaf76d LK |
15317 | grep -v '^ *+' conftest.er1 >conftest.err |
15318 | rm -f conftest.er1 | |
15319 | cat conftest.err >&5 | |
c0d27fcc | 15320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
15321 | (exit $ac_status); } && { |
15322 | test -z "$ac_c_werror_flag" || | |
15323 | test ! -s conftest.err | |
15324 | } && test -s conftest$ac_exeext && | |
15325 | $as_test_x conftest$ac_exeext; then | |
98418dba | 15326 | ac_cv_lib_lockfile_maillock=yes |
503d2be0 AS |
15327 | else |
15328 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15329 | sed 's/^/| /' conftest.$ac_ext >&5 |
15330 | ||
ca81d7a0 | 15331 | ac_cv_lib_lockfile_maillock=no |
98418dba | 15332 | fi |
ca81d7a0 | 15333 | |
f053c89f | 15334 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 15335 | conftest$ac_exeext conftest.$ac_ext |
98418dba CW |
15336 | LIBS=$ac_check_lib_save_LIBS |
15337 | fi | |
ca81d7a0 JD |
15338 | { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5 |
15339 | echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; } | |
98418dba | 15340 | if test $ac_cv_lib_lockfile_maillock = yes; then |
c0d27fcc | 15341 | cat >>confdefs.h <<_ACEOF |
98418dba | 15342 | #define HAVE_LIBLOCKFILE 1 |
c0d27fcc | 15343 | _ACEOF |
98418dba CW |
15344 | |
15345 | LIBS="-llockfile $LIBS" | |
15346 | ||
15347 | fi | |
15348 | ||
15349 | # If we have the shared liblockfile, assume we must use it for mail | |
15350 | # locking (e.g. Debian). If we couldn't link against liblockfile | |
15351 | # (no liblockfile.a installed), ensure that we don't need to. | |
15352 | if test "$ac_cv_lib_lockfile_maillock" = no; then | |
15353 | # Extract the first word of "liblockfile.so", so it can be a program name with args. | |
15354 | set dummy liblockfile.so; ac_word=$2 | |
ca81d7a0 JD |
15355 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
15356 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
98418dba CW |
15357 | if test "${ac_cv_prog_liblockfile+set}" = set; then |
15358 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15359 | else | |
15360 | if test -n "$liblockfile"; then | |
15361 | ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test. | |
15362 | else | |
c0d27fcc | 15363 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6bae0ccf DL |
15364 | as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH" |
15365 | for as_dir in $as_dummy | |
c0d27fcc MR |
15366 | do |
15367 | IFS=$as_save_IFS | |
15368 | test -z "$as_dir" && as_dir=. | |
15369 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f053c89f | 15370 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
c0d27fcc MR |
15371 | ac_cv_prog_liblockfile="yes" |
15372 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15373 | break 2 | |
15374 | fi | |
15375 | done | |
98418dba | 15376 | done |
ca81d7a0 | 15377 | IFS=$as_save_IFS |
98418dba CW |
15378 | |
15379 | test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no" | |
503d2be0 | 15380 | fi |
503d2be0 | 15381 | fi |
98418dba CW |
15382 | liblockfile=$ac_cv_prog_liblockfile |
15383 | if test -n "$liblockfile"; then | |
ca81d7a0 JD |
15384 | { echo "$as_me:$LINENO: result: $liblockfile" >&5 |
15385 | echo "${ECHO_T}$liblockfile" >&6; } | |
98418dba | 15386 | else |
ca81d7a0 JD |
15387 | { echo "$as_me:$LINENO: result: no" >&5 |
15388 | echo "${ECHO_T}no" >&6; } | |
ba4481b5 DL |
15389 | fi |
15390 | ||
ca81d7a0 | 15391 | |
98418dba | 15392 | if test $ac_cv_prog_liblockfile = yes; then |
c0d27fcc | 15393 | { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it. |
98418dba CW |
15394 | This probably means that movemail could lose mail. |
15395 | There may be a \`development' package to install containing liblockfile." >&5 | |
15396 | echo "$as_me: error: Shared liblockfile found but can't link against it. | |
15397 | This probably means that movemail could lose mail. | |
15398 | There may be a \`development' package to install containing liblockfile." >&2;} | |
15399 | { (exit 1); exit 1; }; } | |
98418dba | 15400 | else : |
55597d70 | 15401 | fi |
98418dba | 15402 | fi |
503d2be0 | 15403 | |
98418dba CW |
15404 | for ac_func in touchlock |
15405 | do | |
15406 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
ca81d7a0 JD |
15407 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
15408 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
15409 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 15410 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
457b792c | 15411 | else |
98418dba | 15412 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
15413 | /* confdefs.h. */ |
15414 | _ACEOF | |
15415 | cat confdefs.h >>conftest.$ac_ext | |
15416 | cat >>conftest.$ac_ext <<_ACEOF | |
15417 | /* end confdefs.h. */ | |
edfaf76d LK |
15418 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
15419 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
15420 | #define $ac_func innocuous_$ac_func | |
15421 | ||
98418dba | 15422 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
15423 | which can conflict with char $ac_func (); below. |
15424 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
15425 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 15426 | |
19650fd6 AS |
15427 | #ifdef __STDC__ |
15428 | # include <limits.h> | |
15429 | #else | |
15430 | # include <assert.h> | |
15431 | #endif | |
edfaf76d LK |
15432 | |
15433 | #undef $ac_func | |
15434 | ||
ca81d7a0 JD |
15435 | /* Override any GCC internal prototype to avoid an error. |
15436 | Use char because int might match the return type of a GCC | |
15437 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
15438 | #ifdef __cplusplus |
15439 | extern "C" | |
15440 | #endif | |
98418dba | 15441 | char $ac_func (); |
98418dba CW |
15442 | /* The GNU C library defines this for functions which it implements |
15443 | to always fail with ENOSYS. Some functions are actually named | |
15444 | something starting with __ and the normal name is an alias. */ | |
ca81d7a0 | 15445 | #if defined __stub_$ac_func || defined __stub___$ac_func |
98418dba | 15446 | choke me |
cd958eb3 MB |
15447 | #endif |
15448 | ||
19650fd6 AS |
15449 | int |
15450 | main () | |
15451 | { | |
ca81d7a0 | 15452 | return $ac_func (); |
503d2be0 AS |
15453 | ; |
15454 | return 0; | |
15455 | } | |
15456 | _ACEOF | |
15457 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
15458 | if { (ac_try="$ac_link" |
15459 | case "(($ac_try" in | |
15460 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15461 | *) ac_try_echo=$ac_try;; | |
15462 | esac | |
15463 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15464 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 15465 | ac_status=$? |
edfaf76d LK |
15466 | grep -v '^ *+' conftest.er1 >conftest.err |
15467 | rm -f conftest.er1 | |
15468 | cat conftest.err >&5 | |
c0d27fcc | 15469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
15470 | (exit $ac_status); } && { |
15471 | test -z "$ac_c_werror_flag" || | |
15472 | test ! -s conftest.err | |
15473 | } && test -s conftest$ac_exeext && | |
15474 | $as_test_x conftest$ac_exeext; then | |
98418dba | 15475 | eval "$as_ac_var=yes" |
503d2be0 AS |
15476 | else |
15477 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15478 | sed 's/^/| /' conftest.$ac_ext >&5 |
15479 | ||
ca81d7a0 | 15480 | eval "$as_ac_var=no" |
503d2be0 | 15481 | fi |
ca81d7a0 | 15482 | |
f053c89f | 15483 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 15484 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 | 15485 | fi |
ca81d7a0 JD |
15486 | ac_res=`eval echo '${'$as_ac_var'}'` |
15487 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15488 | echo "${ECHO_T}$ac_res" >&6; } | |
98418dba | 15489 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
c0d27fcc | 15490 | cat >>confdefs.h <<_ACEOF |
98418dba | 15491 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 15492 | _ACEOF |
457b792c | 15493 | |
457b792c | 15494 | fi |
98418dba | 15495 | done |
457b792c | 15496 | |
c0d27fcc | 15497 | |
98418dba CW |
15498 | for ac_header in maillock.h |
15499 | do | |
15500 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
ca81d7a0 JD |
15501 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
15502 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15503 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
15504 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 15505 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc | 15506 | fi |
ca81d7a0 JD |
15507 | ac_res=`eval echo '${'$as_ac_Header'}'` |
15508 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15509 | echo "${ECHO_T}$ac_res" >&6; } | |
ba4481b5 | 15510 | else |
c0d27fcc | 15511 | # Is the header compilable? |
ca81d7a0 JD |
15512 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
15513 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
c0d27fcc | 15514 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
15515 | /* confdefs.h. */ |
15516 | _ACEOF | |
15517 | cat confdefs.h >>conftest.$ac_ext | |
15518 | cat >>conftest.$ac_ext <<_ACEOF | |
15519 | /* end confdefs.h. */ | |
c0d27fcc MR |
15520 | $ac_includes_default |
15521 | #include <$ac_header> | |
15522 | _ACEOF | |
15523 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
15524 | if { (ac_try="$ac_compile" |
15525 | case "(($ac_try" in | |
15526 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15527 | *) ac_try_echo=$ac_try;; | |
15528 | esac | |
15529 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15530 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 15531 | ac_status=$? |
edfaf76d LK |
15532 | grep -v '^ *+' conftest.er1 >conftest.err |
15533 | rm -f conftest.er1 | |
15534 | cat conftest.err >&5 | |
c0d27fcc | 15535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
15536 | (exit $ac_status); } && { |
15537 | test -z "$ac_c_werror_flag" || | |
15538 | test ! -s conftest.err | |
15539 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
15540 | ac_header_compiler=yes |
15541 | else | |
15542 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15543 | sed 's/^/| /' conftest.$ac_ext >&5 |
15544 | ||
ca81d7a0 | 15545 | ac_header_compiler=no |
c0d27fcc | 15546 | fi |
ca81d7a0 JD |
15547 | |
15548 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15549 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
15550 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
15551 | |
15552 | # Is the header present? | |
ca81d7a0 JD |
15553 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
15554 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
c0d27fcc | 15555 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
15556 | /* confdefs.h. */ |
15557 | _ACEOF | |
15558 | cat confdefs.h >>conftest.$ac_ext | |
15559 | cat >>conftest.$ac_ext <<_ACEOF | |
15560 | /* end confdefs.h. */ | |
98418dba | 15561 | #include <$ac_header> |
503d2be0 | 15562 | _ACEOF |
ca81d7a0 JD |
15563 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
15564 | case "(($ac_try" in | |
15565 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15566 | *) ac_try_echo=$ac_try;; | |
15567 | esac | |
15568 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15569 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 15570 | ac_status=$? |
6bae0ccf | 15571 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
15572 | rm -f conftest.er1 |
15573 | cat conftest.err >&5 | |
c0d27fcc | 15574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
15575 | (exit $ac_status); } >/dev/null && { |
15576 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
15577 | test ! -s conftest.err | |
15578 | }; then | |
c0d27fcc | 15579 | ac_header_preproc=yes |
98418dba CW |
15580 | else |
15581 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15582 | sed 's/^/| /' conftest.$ac_ext >&5 |
15583 | ||
c0d27fcc | 15584 | ac_header_preproc=no |
503d2be0 | 15585 | fi |
ca81d7a0 | 15586 | |
98418dba | 15587 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
15588 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15589 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
15590 | |
15591 | # So? What about this header? | |
edfaf76d LK |
15592 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15593 | yes:no: ) | |
c0d27fcc MR |
15594 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15595 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
15596 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
15597 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15598 | ac_header_preproc=yes | |
19650fd6 | 15599 | ;; |
edfaf76d | 15600 | no:yes:* ) |
c0d27fcc MR |
15601 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15602 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
edfaf76d LK |
15603 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
15604 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15605 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15606 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15607 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15608 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 15609 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 15610 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
15611 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
15612 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 15613 | |
19650fd6 | 15614 | ;; |
c0d27fcc | 15615 | esac |
ca81d7a0 JD |
15616 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15617 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
15618 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
c0d27fcc MR |
15619 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15620 | else | |
edfaf76d | 15621 | eval "$as_ac_Header=\$ac_header_preproc" |
ba4481b5 | 15622 | fi |
ca81d7a0 JD |
15623 | ac_res=`eval echo '${'$as_ac_Header'}'` |
15624 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15625 | echo "${ECHO_T}$ac_res" >&6; } | |
c0d27fcc MR |
15626 | |
15627 | fi | |
98418dba | 15628 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 15629 | cat >>confdefs.h <<_ACEOF |
98418dba | 15630 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 15631 | _ACEOF |
48d4b120 | 15632 | |
ba4481b5 | 15633 | fi |
c0d27fcc | 15634 | |
98418dba CW |
15635 | done |
15636 | ||
c0d27fcc MR |
15637 | |
15638 | ||
15639 | ||
15640 | ||
15641 | ||
15642 | ||
15643 | ||
15644 | ||
15645 | ||
15646 | ||
15647 | ||
15648 | ||
15649 | ||
15650 | ||
15651 | ||
15652 | ||
15653 | ||
15654 | ||
15655 | ||
15656 | ||
15657 | ||
15658 | ||
15659 | ||
15660 | ||
15661 | ||
15662 | ||
15663 | ||
15664 | ||
15665 | ||
15666 | ||
15667 | ||
15668 | ||
15669 | ||
15670 | ||
15671 | ||
15672 | ||
15673 | ||
15674 | ||
15675 | ||
15676 | ||
15677 | ||
15678 | ||
15679 | ||
15680 | ||
15681 | ||
15682 | ||
15683 | ||
15684 | ||
15685 | ||
15686 | ||
15687 | ||
15688 | ||
15689 | ||
15690 | ||
15691 | ||
22044edf DL |
15692 | |
15693 | ||
c0d27fcc | 15694 | |
b0e44248 RB |
15695 | |
15696 | ||
973a76b1 DL |
15697 | |
15698 | ||
15699 | ||
cd958eb3 | 15700 | |
25ca0bca | 15701 | |
ea92fc9f | 15702 | |
e2fcf543 | 15703 | |
190956b3 | 15704 | |
c0d27fcc MR |
15705 | |
15706 | ||
98418dba | 15707 | for ac_func in gethostname getdomainname dup2 \ |
e2fcf543 | 15708 | rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \ |
98418dba CW |
15709 | random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \ |
15710 | strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \ | |
973a76b1 | 15711 | utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \ |
98418dba CW |
15712 | __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \ |
15713 | sendto recvfrom getsockopt setsockopt getsockname getpeername \ | |
190956b3 | 15714 | gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \ |
4489ece2 | 15715 | memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign |
98418dba CW |
15716 | do |
15717 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
ca81d7a0 JD |
15718 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
15719 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
15720 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 15721 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 15722 | else |
503d2be0 | 15723 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
15724 | /* confdefs.h. */ |
15725 | _ACEOF | |
15726 | cat confdefs.h >>conftest.$ac_ext | |
15727 | cat >>conftest.$ac_ext <<_ACEOF | |
15728 | /* end confdefs.h. */ | |
edfaf76d LK |
15729 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
15730 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
15731 | #define $ac_func innocuous_$ac_func | |
15732 | ||
98418dba | 15733 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
15734 | which can conflict with char $ac_func (); below. |
15735 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
15736 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 15737 | |
19650fd6 AS |
15738 | #ifdef __STDC__ |
15739 | # include <limits.h> | |
15740 | #else | |
15741 | # include <assert.h> | |
15742 | #endif | |
edfaf76d LK |
15743 | |
15744 | #undef $ac_func | |
15745 | ||
ca81d7a0 JD |
15746 | /* Override any GCC internal prototype to avoid an error. |
15747 | Use char because int might match the return type of a GCC | |
15748 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
15749 | #ifdef __cplusplus |
15750 | extern "C" | |
15751 | #endif | |
98418dba | 15752 | char $ac_func (); |
98418dba CW |
15753 | /* The GNU C library defines this for functions which it implements |
15754 | to always fail with ENOSYS. Some functions are actually named | |
15755 | something starting with __ and the normal name is an alias. */ | |
ca81d7a0 | 15756 | #if defined __stub_$ac_func || defined __stub___$ac_func |
98418dba | 15757 | choke me |
98418dba CW |
15758 | #endif |
15759 | ||
19650fd6 AS |
15760 | int |
15761 | main () | |
15762 | { | |
ca81d7a0 | 15763 | return $ac_func (); |
503d2be0 AS |
15764 | ; |
15765 | return 0; | |
15766 | } | |
15767 | _ACEOF | |
15768 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
15769 | if { (ac_try="$ac_link" |
15770 | case "(($ac_try" in | |
15771 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15772 | *) ac_try_echo=$ac_try;; | |
15773 | esac | |
15774 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15775 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 15776 | ac_status=$? |
edfaf76d LK |
15777 | grep -v '^ *+' conftest.er1 >conftest.err |
15778 | rm -f conftest.er1 | |
15779 | cat conftest.err >&5 | |
c0d27fcc | 15780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
15781 | (exit $ac_status); } && { |
15782 | test -z "$ac_c_werror_flag" || | |
15783 | test ! -s conftest.err | |
15784 | } && test -s conftest$ac_exeext && | |
15785 | $as_test_x conftest$ac_exeext; then | |
98418dba | 15786 | eval "$as_ac_var=yes" |
503d2be0 AS |
15787 | else |
15788 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15789 | sed 's/^/| /' conftest.$ac_ext >&5 |
15790 | ||
ca81d7a0 | 15791 | eval "$as_ac_var=no" |
503d2be0 | 15792 | fi |
ca81d7a0 | 15793 | |
f053c89f | 15794 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 15795 | conftest$ac_exeext conftest.$ac_ext |
ba4481b5 | 15796 | fi |
ca81d7a0 JD |
15797 | ac_res=`eval echo '${'$as_ac_var'}'` |
15798 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15799 | echo "${ECHO_T}$ac_res" >&6; } | |
98418dba | 15800 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
c0d27fcc | 15801 | cat >>confdefs.h <<_ACEOF |
98418dba | 15802 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 15803 | _ACEOF |
ba4481b5 | 15804 | |
ba4481b5 | 15805 | fi |
98418dba | 15806 | done |
ba4481b5 | 15807 | |
c0d27fcc MR |
15808 | |
15809 | ||
98418dba CW |
15810 | for ac_header in sys/un.h |
15811 | do | |
15812 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
ca81d7a0 JD |
15813 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
15814 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15815 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
15816 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
98418dba | 15817 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc | 15818 | fi |
ca81d7a0 JD |
15819 | ac_res=`eval echo '${'$as_ac_Header'}'` |
15820 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15821 | echo "${ECHO_T}$ac_res" >&6; } | |
98418dba | 15822 | else |
c0d27fcc | 15823 | # Is the header compilable? |
ca81d7a0 JD |
15824 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
15825 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
c0d27fcc | 15826 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
15827 | /* confdefs.h. */ |
15828 | _ACEOF | |
15829 | cat confdefs.h >>conftest.$ac_ext | |
15830 | cat >>conftest.$ac_ext <<_ACEOF | |
15831 | /* end confdefs.h. */ | |
c0d27fcc MR |
15832 | $ac_includes_default |
15833 | #include <$ac_header> | |
15834 | _ACEOF | |
15835 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
15836 | if { (ac_try="$ac_compile" |
15837 | case "(($ac_try" in | |
15838 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15839 | *) ac_try_echo=$ac_try;; | |
15840 | esac | |
15841 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15842 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 15843 | ac_status=$? |
edfaf76d LK |
15844 | grep -v '^ *+' conftest.er1 >conftest.err |
15845 | rm -f conftest.er1 | |
15846 | cat conftest.err >&5 | |
c0d27fcc | 15847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
15848 | (exit $ac_status); } && { |
15849 | test -z "$ac_c_werror_flag" || | |
15850 | test ! -s conftest.err | |
15851 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
15852 | ac_header_compiler=yes |
15853 | else | |
15854 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15855 | sed 's/^/| /' conftest.$ac_ext >&5 |
15856 | ||
ca81d7a0 | 15857 | ac_header_compiler=no |
c0d27fcc | 15858 | fi |
ca81d7a0 JD |
15859 | |
15860 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15861 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
15862 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
15863 | |
15864 | # Is the header present? | |
ca81d7a0 JD |
15865 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
15866 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
c0d27fcc | 15867 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
15868 | /* confdefs.h. */ |
15869 | _ACEOF | |
15870 | cat confdefs.h >>conftest.$ac_ext | |
15871 | cat >>conftest.$ac_ext <<_ACEOF | |
15872 | /* end confdefs.h. */ | |
98418dba | 15873 | #include <$ac_header> |
503d2be0 | 15874 | _ACEOF |
ca81d7a0 JD |
15875 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
15876 | case "(($ac_try" in | |
15877 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15878 | *) ac_try_echo=$ac_try;; | |
15879 | esac | |
15880 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15881 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 15882 | ac_status=$? |
6bae0ccf | 15883 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
15884 | rm -f conftest.er1 |
15885 | cat conftest.err >&5 | |
c0d27fcc | 15886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
15887 | (exit $ac_status); } >/dev/null && { |
15888 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
15889 | test ! -s conftest.err | |
15890 | }; then | |
c0d27fcc | 15891 | ac_header_preproc=yes |
ba4481b5 | 15892 | else |
503d2be0 | 15893 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
15894 | sed 's/^/| /' conftest.$ac_ext >&5 |
15895 | ||
c0d27fcc | 15896 | ac_header_preproc=no |
ba4481b5 | 15897 | fi |
ca81d7a0 | 15898 | |
503d2be0 | 15899 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
15900 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15901 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
15902 | |
15903 | # So? What about this header? | |
edfaf76d LK |
15904 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15905 | yes:no: ) | |
c0d27fcc MR |
15906 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15907 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
15908 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
15909 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15910 | ac_header_preproc=yes | |
19650fd6 | 15911 | ;; |
edfaf76d | 15912 | no:yes:* ) |
c0d27fcc MR |
15913 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15914 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
edfaf76d LK |
15915 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
15916 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15917 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15918 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15919 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15920 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 15921 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 15922 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
15923 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
15924 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 15925 | |
19650fd6 | 15926 | ;; |
c0d27fcc | 15927 | esac |
ca81d7a0 JD |
15928 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15929 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
15930 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
c0d27fcc MR |
15931 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15932 | else | |
edfaf76d | 15933 | eval "$as_ac_Header=\$ac_header_preproc" |
ba4481b5 | 15934 | fi |
ca81d7a0 JD |
15935 | ac_res=`eval echo '${'$as_ac_Header'}'` |
15936 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15937 | echo "${ECHO_T}$ac_res" >&6; } | |
c0d27fcc MR |
15938 | |
15939 | fi | |
925c2f3f | 15940 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 15941 | cat >>confdefs.h <<_ACEOF |
925c2f3f | 15942 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 15943 | _ACEOF |
503d2be0 | 15944 | |
925c2f3f | 15945 | fi |
c0d27fcc | 15946 | |
925c2f3f EZ |
15947 | done |
15948 | ||
c0d27fcc MR |
15949 | |
15950 | ||
15951 | ||
edfaf76d | 15952 | |
f053c89f CY |
15953 | |
15954 | for ac_header in $ac_header_list | |
925c2f3f EZ |
15955 | do |
15956 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
ca81d7a0 JD |
15957 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
15958 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15959 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
15960 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
925c2f3f | 15961 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc | 15962 | fi |
ca81d7a0 JD |
15963 | ac_res=`eval echo '${'$as_ac_Header'}'` |
15964 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15965 | echo "${ECHO_T}$ac_res" >&6; } | |
925c2f3f | 15966 | else |
c0d27fcc | 15967 | # Is the header compilable? |
ca81d7a0 JD |
15968 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
15969 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
c0d27fcc | 15970 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
15971 | /* confdefs.h. */ |
15972 | _ACEOF | |
15973 | cat confdefs.h >>conftest.$ac_ext | |
15974 | cat >>conftest.$ac_ext <<_ACEOF | |
15975 | /* end confdefs.h. */ | |
c0d27fcc MR |
15976 | $ac_includes_default |
15977 | #include <$ac_header> | |
15978 | _ACEOF | |
15979 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
15980 | if { (ac_try="$ac_compile" |
15981 | case "(($ac_try" in | |
15982 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15983 | *) ac_try_echo=$ac_try;; | |
15984 | esac | |
15985 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15986 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 15987 | ac_status=$? |
edfaf76d LK |
15988 | grep -v '^ *+' conftest.er1 >conftest.err |
15989 | rm -f conftest.er1 | |
15990 | cat conftest.err >&5 | |
c0d27fcc | 15991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
15992 | (exit $ac_status); } && { |
15993 | test -z "$ac_c_werror_flag" || | |
15994 | test ! -s conftest.err | |
15995 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
15996 | ac_header_compiler=yes |
15997 | else | |
15998 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15999 | sed 's/^/| /' conftest.$ac_ext >&5 |
16000 | ||
ca81d7a0 | 16001 | ac_header_compiler=no |
c0d27fcc | 16002 | fi |
ca81d7a0 JD |
16003 | |
16004 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16005 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
16006 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
16007 | |
16008 | # Is the header present? | |
ca81d7a0 JD |
16009 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
16010 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
c0d27fcc | 16011 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
16012 | /* confdefs.h. */ |
16013 | _ACEOF | |
16014 | cat confdefs.h >>conftest.$ac_ext | |
16015 | cat >>conftest.$ac_ext <<_ACEOF | |
16016 | /* end confdefs.h. */ | |
98418dba | 16017 | #include <$ac_header> |
503d2be0 | 16018 | _ACEOF |
ca81d7a0 JD |
16019 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
16020 | case "(($ac_try" in | |
16021 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16022 | *) ac_try_echo=$ac_try;; | |
16023 | esac | |
16024 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16025 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 16026 | ac_status=$? |
6bae0ccf | 16027 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
16028 | rm -f conftest.er1 |
16029 | cat conftest.err >&5 | |
c0d27fcc | 16030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
16031 | (exit $ac_status); } >/dev/null && { |
16032 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
16033 | test ! -s conftest.err | |
16034 | }; then | |
c0d27fcc | 16035 | ac_header_preproc=yes |
98418dba CW |
16036 | else |
16037 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16038 | sed 's/^/| /' conftest.$ac_ext >&5 |
16039 | ||
c0d27fcc | 16040 | ac_header_preproc=no |
98418dba | 16041 | fi |
ca81d7a0 | 16042 | |
98418dba | 16043 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
16044 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
16045 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
16046 | |
16047 | # So? What about this header? | |
edfaf76d LK |
16048 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
16049 | yes:no: ) | |
c0d27fcc MR |
16050 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16051 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
16052 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
16053 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
16054 | ac_header_preproc=yes | |
19650fd6 | 16055 | ;; |
edfaf76d | 16056 | no:yes:* ) |
c0d27fcc MR |
16057 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16058 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
edfaf76d LK |
16059 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
16060 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16061 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16062 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16063 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16064 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 16065 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 16066 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
16067 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
16068 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 16069 | |
19650fd6 | 16070 | ;; |
c0d27fcc | 16071 | esac |
ca81d7a0 JD |
16072 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16073 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
16074 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
c0d27fcc MR |
16075 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16076 | else | |
edfaf76d | 16077 | eval "$as_ac_Header=\$ac_header_preproc" |
ffe36136 | 16078 | fi |
ca81d7a0 JD |
16079 | ac_res=`eval echo '${'$as_ac_Header'}'` |
16080 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16081 | echo "${ECHO_T}$ac_res" >&6; } | |
c0d27fcc MR |
16082 | |
16083 | fi | |
98418dba | 16084 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 16085 | cat >>confdefs.h <<_ACEOF |
98418dba | 16086 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 16087 | _ACEOF |
98418dba CW |
16088 | |
16089 | fi | |
c0d27fcc | 16090 | |
98418dba CW |
16091 | done |
16092 | ||
c0d27fcc | 16093 | |
f053c89f CY |
16094 | |
16095 | ||
16096 | ||
16097 | ||
16098 | ||
16099 | ||
16100 | ||
16101 | for ac_func in $ac_func_list | |
98418dba CW |
16102 | do |
16103 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
ca81d7a0 JD |
16104 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
16105 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
16106 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 16107 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 16108 | else |
98418dba | 16109 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
16110 | /* confdefs.h. */ |
16111 | _ACEOF | |
16112 | cat confdefs.h >>conftest.$ac_ext | |
16113 | cat >>conftest.$ac_ext <<_ACEOF | |
16114 | /* end confdefs.h. */ | |
edfaf76d LK |
16115 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
16116 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16117 | #define $ac_func innocuous_$ac_func | |
16118 | ||
98418dba | 16119 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
16120 | which can conflict with char $ac_func (); below. |
16121 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16122 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 16123 | |
19650fd6 AS |
16124 | #ifdef __STDC__ |
16125 | # include <limits.h> | |
16126 | #else | |
16127 | # include <assert.h> | |
16128 | #endif | |
edfaf76d LK |
16129 | |
16130 | #undef $ac_func | |
16131 | ||
ca81d7a0 JD |
16132 | /* Override any GCC internal prototype to avoid an error. |
16133 | Use char because int might match the return type of a GCC | |
16134 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
16135 | #ifdef __cplusplus |
16136 | extern "C" | |
16137 | #endif | |
98418dba | 16138 | char $ac_func (); |
98418dba CW |
16139 | /* The GNU C library defines this for functions which it implements |
16140 | to always fail with ENOSYS. Some functions are actually named | |
16141 | something starting with __ and the normal name is an alias. */ | |
ca81d7a0 | 16142 | #if defined __stub_$ac_func || defined __stub___$ac_func |
98418dba | 16143 | choke me |
98418dba CW |
16144 | #endif |
16145 | ||
19650fd6 AS |
16146 | int |
16147 | main () | |
16148 | { | |
ca81d7a0 | 16149 | return $ac_func (); |
503d2be0 AS |
16150 | ; |
16151 | return 0; | |
16152 | } | |
16153 | _ACEOF | |
16154 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
16155 | if { (ac_try="$ac_link" |
16156 | case "(($ac_try" in | |
16157 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16158 | *) ac_try_echo=$ac_try;; | |
16159 | esac | |
16160 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16161 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 16162 | ac_status=$? |
edfaf76d LK |
16163 | grep -v '^ *+' conftest.er1 >conftest.err |
16164 | rm -f conftest.er1 | |
16165 | cat conftest.err >&5 | |
c0d27fcc | 16166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
16167 | (exit $ac_status); } && { |
16168 | test -z "$ac_c_werror_flag" || | |
16169 | test ! -s conftest.err | |
16170 | } && test -s conftest$ac_exeext && | |
16171 | $as_test_x conftest$ac_exeext; then | |
98418dba | 16172 | eval "$as_ac_var=yes" |
503d2be0 AS |
16173 | else |
16174 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16175 | sed 's/^/| /' conftest.$ac_ext >&5 |
16176 | ||
ca81d7a0 | 16177 | eval "$as_ac_var=no" |
503d2be0 | 16178 | fi |
ca81d7a0 | 16179 | |
f053c89f | 16180 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 16181 | conftest$ac_exeext conftest.$ac_ext |
ffe36136 | 16182 | fi |
ca81d7a0 JD |
16183 | ac_res=`eval echo '${'$as_ac_var'}'` |
16184 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16185 | echo "${ECHO_T}$ac_res" >&6; } | |
98418dba | 16186 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
c0d27fcc | 16187 | cat >>confdefs.h <<_ACEOF |
98418dba | 16188 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 16189 | _ACEOF |
ffe36136 | 16190 | |
ba4481b5 | 16191 | fi |
98418dba | 16192 | done |
ba4481b5 | 16193 | |
f053c89f CY |
16194 | |
16195 | ||
16196 | ||
16197 | ||
16198 | ||
16199 | ||
16200 | ||
16201 | ||
16202 | ||
16203 | ||
16204 | ||
16205 | ||
16206 | ||
16207 | ||
16208 | ||
16209 | ||
ca81d7a0 JD |
16210 | { echo "$as_me:$LINENO: checking for working mktime" >&5 |
16211 | echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; } | |
98418dba CW |
16212 | if test "${ac_cv_func_working_mktime+set}" = set; then |
16213 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16214 | else | |
16215 | if test "$cross_compiling" = yes; then | |
16216 | ac_cv_func_working_mktime=no | |
16217 | else | |
16218 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
16219 | /* confdefs.h. */ |
16220 | _ACEOF | |
16221 | cat confdefs.h >>conftest.$ac_ext | |
16222 | cat >>conftest.$ac_ext <<_ACEOF | |
16223 | /* end confdefs.h. */ | |
98418dba | 16224 | /* Test program from Paul Eggert and Tony Leneis. */ |
f053c89f | 16225 | #ifdef TIME_WITH_SYS_TIME |
98418dba CW |
16226 | # include <sys/time.h> |
16227 | # include <time.h> | |
16228 | #else | |
f053c89f | 16229 | # ifdef HAVE_SYS_TIME_H |
98418dba CW |
16230 | # include <sys/time.h> |
16231 | # else | |
16232 | # include <time.h> | |
16233 | # endif | |
16234 | #endif | |
ba4481b5 | 16235 | |
f053c89f | 16236 | #include <stdlib.h> |
edfaf76d | 16237 | |
f053c89f | 16238 | #ifdef HAVE_UNISTD_H |
98418dba CW |
16239 | # include <unistd.h> |
16240 | #endif | |
ba4481b5 | 16241 | |
f053c89f | 16242 | #ifndef HAVE_ALARM |
98418dba CW |
16243 | # define alarm(X) /* empty */ |
16244 | #endif | |
df645f7c | 16245 | |
98418dba CW |
16246 | /* Work around redefinition to rpl_putenv by other config tests. */ |
16247 | #undef putenv | |
df645f7c | 16248 | |
98418dba | 16249 | static time_t time_t_max; |
edfaf76d | 16250 | static time_t time_t_min; |
df645f7c | 16251 | |
98418dba | 16252 | /* Values we'll use to set the TZ environment variable. */ |
edfaf76d LK |
16253 | static char *tz_strings[] = { |
16254 | (char *) 0, "TZ=GMT0", "TZ=JST-9", | |
98418dba CW |
16255 | "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00" |
16256 | }; | |
16257 | #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0])) | |
503d2be0 | 16258 | |
ca81d7a0 | 16259 | /* Return 0 if mktime fails to convert a date in the spring-forward gap. |
98418dba | 16260 | Based on a problem report from Andreas Jaeger. */ |
ca81d7a0 | 16261 | static int |
98418dba CW |
16262 | spring_forward_gap () |
16263 | { | |
16264 | /* glibc (up to about 1998-10-07) failed this test. */ | |
16265 | struct tm tm; | |
16266 | ||
16267 | /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" | |
16268 | instead of "TZ=America/Vancouver" in order to detect the bug even | |
16269 | on systems that don't support the Olson extension, or don't have the | |
16270 | full zoneinfo tables installed. */ | |
16271 | putenv ("TZ=PST8PDT,M4.1.0,M10.5.0"); | |
16272 | ||
16273 | tm.tm_year = 98; | |
16274 | tm.tm_mon = 3; | |
16275 | tm.tm_mday = 5; | |
16276 | tm.tm_hour = 2; | |
16277 | tm.tm_min = 0; | |
16278 | tm.tm_sec = 0; | |
16279 | tm.tm_isdst = -1; | |
ca81d7a0 | 16280 | return mktime (&tm) != (time_t) -1; |
98418dba CW |
16281 | } |
16282 | ||
ca81d7a0 | 16283 | static int |
edfaf76d | 16284 | mktime_test1 (now) |
98418dba CW |
16285 | time_t now; |
16286 | { | |
16287 | struct tm *lt; | |
ca81d7a0 | 16288 | return ! (lt = localtime (&now)) || mktime (lt) == now; |
edfaf76d LK |
16289 | } |
16290 | ||
ca81d7a0 | 16291 | static int |
edfaf76d LK |
16292 | mktime_test (now) |
16293 | time_t now; | |
16294 | { | |
ca81d7a0 JD |
16295 | return (mktime_test1 (now) |
16296 | && mktime_test1 ((time_t) (time_t_max - now)) | |
16297 | && mktime_test1 ((time_t) (time_t_min + now))); | |
98418dba CW |
16298 | } |
16299 | ||
ca81d7a0 | 16300 | static int |
98418dba CW |
16301 | irix_6_4_bug () |
16302 | { | |
16303 | /* Based on code from Ariel Faigon. */ | |
16304 | struct tm tm; | |
16305 | tm.tm_year = 96; | |
16306 | tm.tm_mon = 3; | |
16307 | tm.tm_mday = 0; | |
16308 | tm.tm_hour = 0; | |
16309 | tm.tm_min = 0; | |
16310 | tm.tm_sec = 0; | |
16311 | tm.tm_isdst = -1; | |
16312 | mktime (&tm); | |
ca81d7a0 | 16313 | return tm.tm_mon == 2 && tm.tm_mday == 31; |
98418dba CW |
16314 | } |
16315 | ||
ca81d7a0 | 16316 | static int |
98418dba CW |
16317 | bigtime_test (j) |
16318 | int j; | |
16319 | { | |
16320 | struct tm tm; | |
16321 | time_t now; | |
16322 | tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j; | |
16323 | now = mktime (&tm); | |
16324 | if (now != (time_t) -1) | |
16325 | { | |
16326 | struct tm *lt = localtime (&now); | |
16327 | if (! (lt | |
16328 | && lt->tm_year == tm.tm_year | |
16329 | && lt->tm_mon == tm.tm_mon | |
16330 | && lt->tm_mday == tm.tm_mday | |
16331 | && lt->tm_hour == tm.tm_hour | |
16332 | && lt->tm_min == tm.tm_min | |
16333 | && lt->tm_sec == tm.tm_sec | |
16334 | && lt->tm_yday == tm.tm_yday | |
16335 | && lt->tm_wday == tm.tm_wday | |
16336 | && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst) | |
16337 | == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst)))) | |
ca81d7a0 | 16338 | return 0; |
98418dba | 16339 | } |
ca81d7a0 | 16340 | return 1; |
98418dba CW |
16341 | } |
16342 | ||
f053c89f CY |
16343 | static int |
16344 | year_2050_test () | |
16345 | { | |
16346 | /* The correct answer for 2050-02-01 00:00:00 in Pacific time, | |
16347 | ignoring leap seconds. */ | |
16348 | unsigned long int answer = 2527315200UL; | |
16349 | ||
16350 | struct tm tm; | |
16351 | time_t t; | |
16352 | tm.tm_year = 2050 - 1900; | |
16353 | tm.tm_mon = 2 - 1; | |
16354 | tm.tm_mday = 1; | |
16355 | tm.tm_hour = tm.tm_min = tm.tm_sec = 0; | |
16356 | tm.tm_isdst = -1; | |
16357 | ||
16358 | /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" | |
16359 | instead of "TZ=America/Vancouver" in order to detect the bug even | |
16360 | on systems that don't support the Olson extension, or don't have the | |
16361 | full zoneinfo tables installed. */ | |
16362 | putenv ("TZ=PST8PDT,M4.1.0,M10.5.0"); | |
16363 | ||
16364 | t = mktime (&tm); | |
16365 | ||
16366 | /* Check that the result is either a failure, or close enough | |
16367 | to the correct answer that we can assume the discrepancy is | |
16368 | due to leap seconds. */ | |
16369 | return (t == (time_t) -1 | |
16370 | || (0 < t && answer - 120 <= t && t <= answer + 120)); | |
16371 | } | |
16372 | ||
98418dba CW |
16373 | int |
16374 | main () | |
16375 | { | |
16376 | time_t t, delta; | |
16377 | int i, j; | |
16378 | ||
16379 | /* This test makes some buggy mktime implementations loop. | |
16380 | Give up after 60 seconds; a mktime slower than that | |
16381 | isn't worth using anyway. */ | |
16382 | alarm (60); | |
16383 | ||
16384 | for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2) | |
16385 | continue; | |
16386 | time_t_max--; | |
edfaf76d LK |
16387 | if ((time_t) -1 < 0) |
16388 | for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2) | |
16389 | continue; | |
98418dba CW |
16390 | delta = time_t_max / 997; /* a suitable prime number */ |
16391 | for (i = 0; i < N_STRINGS; i++) | |
16392 | { | |
16393 | if (tz_strings[i]) | |
16394 | putenv (tz_strings[i]); | |
503d2be0 | 16395 | |
98418dba | 16396 | for (t = 0; t <= time_t_max - delta; t += delta) |
ca81d7a0 JD |
16397 | if (! mktime_test (t)) |
16398 | return 1; | |
16399 | if (! (mktime_test ((time_t) 1) | |
16400 | && mktime_test ((time_t) (60 * 60)) | |
16401 | && mktime_test ((time_t) (60 * 60 * 24)))) | |
16402 | return 1; | |
98418dba CW |
16403 | |
16404 | for (j = 1; 0 < j; j *= 2) | |
ca81d7a0 JD |
16405 | if (! bigtime_test (j)) |
16406 | return 1; | |
16407 | if (! bigtime_test (j - 1)) | |
16408 | return 1; | |
98418dba | 16409 | } |
f053c89f | 16410 | return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ()); |
503d2be0 AS |
16411 | } |
16412 | _ACEOF | |
98418dba | 16413 | rm -f conftest$ac_exeext |
ca81d7a0 JD |
16414 | if { (ac_try="$ac_link" |
16415 | case "(($ac_try" in | |
16416 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16417 | *) ac_try_echo=$ac_try;; | |
16418 | esac | |
16419 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16420 | (eval "$ac_link") 2>&5 | |
503d2be0 | 16421 | ac_status=$? |
c0d27fcc | 16422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 16423 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
ca81d7a0 JD |
16424 | { (case "(($ac_try" in |
16425 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16426 | *) ac_try_echo=$ac_try;; | |
16427 | esac | |
16428 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16429 | (eval "$ac_try") 2>&5 | |
503d2be0 | 16430 | ac_status=$? |
c0d27fcc | 16431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 16432 | (exit $ac_status); }; }; then |
98418dba | 16433 | ac_cv_func_working_mktime=yes |
503d2be0 | 16434 | else |
98418dba CW |
16435 | echo "$as_me: program exited with status $ac_status" >&5 |
16436 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16437 | sed 's/^/| /' conftest.$ac_ext >&5 |
16438 | ||
c0d27fcc | 16439 | ( exit $ac_status ) |
98418dba | 16440 | ac_cv_func_working_mktime=no |
503d2be0 | 16441 | fi |
ca81d7a0 | 16442 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
503d2be0 | 16443 | fi |
ca81d7a0 JD |
16444 | |
16445 | ||
ba4481b5 | 16446 | fi |
ca81d7a0 JD |
16447 | { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5 |
16448 | echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; } | |
98418dba | 16449 | if test $ac_cv_func_working_mktime = no; then |
ca81d7a0 | 16450 | case " $LIBOBJS " in |
edfaf76d | 16451 | *" mktime.$ac_objext "* ) ;; |
ca81d7a0 JD |
16452 | *) LIBOBJS="$LIBOBJS mktime.$ac_objext" |
16453 | ;; | |
edfaf76d LK |
16454 | esac |
16455 | ||
ba4481b5 DL |
16456 | fi |
16457 | ||
98418dba | 16458 | if test "$ac_cv_func_working_mktime" = no; then |
b936fae4 | 16459 | |
c0d27fcc | 16460 | cat >>confdefs.h <<\_ACEOF |
98418dba | 16461 | #define BROKEN_MKTIME 1 |
c0d27fcc | 16462 | _ACEOF |
ba4481b5 | 16463 | |
ba4481b5 | 16464 | fi |
503d2be0 | 16465 | |
98418dba CW |
16466 | ac_have_func=no # yes means we've found a way to get the load average. |
16467 | ||
6bae0ccf DL |
16468 | # Make sure getloadavg.c is where it belongs, at configure-time. |
16469 | test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" || | |
16470 | { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5 | |
16471 | echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;} | |
16472 | { (exit 1); exit 1; }; } | |
16473 | ||
98418dba CW |
16474 | ac_save_LIBS=$LIBS |
16475 | ||
16476 | # Check for getloadavg, but be sure not to touch the cache variable. | |
ca81d7a0 JD |
16477 | ({ echo "$as_me:$LINENO: checking for getloadavg" >&5 |
16478 | echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; } | |
98418dba | 16479 | if test "${ac_cv_func_getloadavg+set}" = set; then |
503d2be0 | 16480 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 16481 | else |
503d2be0 | 16482 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
16483 | /* confdefs.h. */ |
16484 | _ACEOF | |
16485 | cat confdefs.h >>conftest.$ac_ext | |
16486 | cat >>conftest.$ac_ext <<_ACEOF | |
16487 | /* end confdefs.h. */ | |
edfaf76d LK |
16488 | /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg. |
16489 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16490 | #define getloadavg innocuous_getloadavg | |
16491 | ||
98418dba | 16492 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
16493 | which can conflict with char getloadavg (); below. |
16494 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16495 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 16496 | |
19650fd6 AS |
16497 | #ifdef __STDC__ |
16498 | # include <limits.h> | |
16499 | #else | |
16500 | # include <assert.h> | |
16501 | #endif | |
edfaf76d LK |
16502 | |
16503 | #undef getloadavg | |
16504 | ||
ca81d7a0 JD |
16505 | /* Override any GCC internal prototype to avoid an error. |
16506 | Use char because int might match the return type of a GCC | |
16507 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
16508 | #ifdef __cplusplus |
16509 | extern "C" | |
16510 | #endif | |
98418dba | 16511 | char getloadavg (); |
98418dba CW |
16512 | /* The GNU C library defines this for functions which it implements |
16513 | to always fail with ENOSYS. Some functions are actually named | |
16514 | something starting with __ and the normal name is an alias. */ | |
ca81d7a0 | 16515 | #if defined __stub_getloadavg || defined __stub___getloadavg |
98418dba | 16516 | choke me |
cd958eb3 MB |
16517 | #endif |
16518 | ||
19650fd6 AS |
16519 | int |
16520 | main () | |
16521 | { | |
ca81d7a0 | 16522 | return getloadavg (); |
503d2be0 AS |
16523 | ; |
16524 | return 0; | |
16525 | } | |
16526 | _ACEOF | |
16527 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
16528 | if { (ac_try="$ac_link" |
16529 | case "(($ac_try" in | |
16530 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16531 | *) ac_try_echo=$ac_try;; | |
16532 | esac | |
16533 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16534 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 16535 | ac_status=$? |
edfaf76d LK |
16536 | grep -v '^ *+' conftest.er1 >conftest.err |
16537 | rm -f conftest.er1 | |
16538 | cat conftest.err >&5 | |
c0d27fcc | 16539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
16540 | (exit $ac_status); } && { |
16541 | test -z "$ac_c_werror_flag" || | |
16542 | test ! -s conftest.err | |
16543 | } && test -s conftest$ac_exeext && | |
16544 | $as_test_x conftest$ac_exeext; then | |
98418dba | 16545 | ac_cv_func_getloadavg=yes |
503d2be0 AS |
16546 | else |
16547 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16548 | sed 's/^/| /' conftest.$ac_ext >&5 |
16549 | ||
ca81d7a0 | 16550 | ac_cv_func_getloadavg=no |
503d2be0 | 16551 | fi |
ca81d7a0 | 16552 | |
f053c89f | 16553 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 16554 | conftest$ac_exeext conftest.$ac_ext |
ba4481b5 | 16555 | fi |
ca81d7a0 JD |
16556 | { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5 |
16557 | echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; } | |
98418dba CW |
16558 | if test $ac_cv_func_getloadavg = yes; then |
16559 | exit 0 | |
16560 | else | |
16561 | exit 1 | |
ba4481b5 | 16562 | fi |
98418dba | 16563 | ) && ac_have_func=yes |
ba4481b5 | 16564 | |
98418dba | 16565 | # On HPUX9, an unprivileged user can get load averages through this function. |
503d2be0 | 16566 | |
98418dba CW |
16567 | for ac_func in pstat_getdynamic |
16568 | do | |
16569 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
ca81d7a0 JD |
16570 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
16571 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
16572 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 16573 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 16574 | else |
503d2be0 | 16575 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
16576 | /* confdefs.h. */ |
16577 | _ACEOF | |
16578 | cat confdefs.h >>conftest.$ac_ext | |
16579 | cat >>conftest.$ac_ext <<_ACEOF | |
16580 | /* end confdefs.h. */ | |
edfaf76d LK |
16581 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
16582 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16583 | #define $ac_func innocuous_$ac_func | |
16584 | ||
98418dba | 16585 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
16586 | which can conflict with char $ac_func (); below. |
16587 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16588 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 16589 | |
19650fd6 AS |
16590 | #ifdef __STDC__ |
16591 | # include <limits.h> | |
16592 | #else | |
16593 | # include <assert.h> | |
16594 | #endif | |
edfaf76d LK |
16595 | |
16596 | #undef $ac_func | |
16597 | ||
ca81d7a0 JD |
16598 | /* Override any GCC internal prototype to avoid an error. |
16599 | Use char because int might match the return type of a GCC | |
16600 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
16601 | #ifdef __cplusplus |
16602 | extern "C" | |
16603 | #endif | |
98418dba | 16604 | char $ac_func (); |
98418dba CW |
16605 | /* The GNU C library defines this for functions which it implements |
16606 | to always fail with ENOSYS. Some functions are actually named | |
16607 | something starting with __ and the normal name is an alias. */ | |
ca81d7a0 | 16608 | #if defined __stub_$ac_func || defined __stub___$ac_func |
98418dba | 16609 | choke me |
98418dba CW |
16610 | #endif |
16611 | ||
19650fd6 AS |
16612 | int |
16613 | main () | |
16614 | { | |
ca81d7a0 | 16615 | return $ac_func (); |
98418dba CW |
16616 | ; |
16617 | return 0; | |
16618 | } | |
f21fadcc | 16619 | _ACEOF |
98418dba | 16620 | rm -f conftest.$ac_objext conftest$ac_exeext |
ca81d7a0 JD |
16621 | if { (ac_try="$ac_link" |
16622 | case "(($ac_try" in | |
16623 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16624 | *) ac_try_echo=$ac_try;; | |
16625 | esac | |
16626 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16627 | (eval "$ac_link") 2>conftest.er1 | |
f21fadcc | 16628 | ac_status=$? |
edfaf76d LK |
16629 | grep -v '^ *+' conftest.er1 >conftest.err |
16630 | rm -f conftest.er1 | |
16631 | cat conftest.err >&5 | |
c0d27fcc | 16632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
16633 | (exit $ac_status); } && { |
16634 | test -z "$ac_c_werror_flag" || | |
16635 | test ! -s conftest.err | |
16636 | } && test -s conftest$ac_exeext && | |
16637 | $as_test_x conftest$ac_exeext; then | |
98418dba | 16638 | eval "$as_ac_var=yes" |
f21fadcc JD |
16639 | else |
16640 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16641 | sed 's/^/| /' conftest.$ac_ext >&5 |
16642 | ||
ca81d7a0 | 16643 | eval "$as_ac_var=no" |
f21fadcc | 16644 | fi |
ca81d7a0 | 16645 | |
f053c89f | 16646 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 16647 | conftest$ac_exeext conftest.$ac_ext |
f21fadcc | 16648 | fi |
ca81d7a0 JD |
16649 | ac_res=`eval echo '${'$as_ac_var'}'` |
16650 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16651 | echo "${ECHO_T}$ac_res" >&6; } | |
98418dba | 16652 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
c0d27fcc | 16653 | cat >>confdefs.h <<_ACEOF |
98418dba | 16654 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 16655 | _ACEOF |
98418dba CW |
16656 | |
16657 | fi | |
16658 | done | |
16659 | ||
c0d27fcc | 16660 | |
98418dba CW |
16661 | # Solaris has libkstat which does not require root. |
16662 | ||
ca81d7a0 JD |
16663 | { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5 |
16664 | echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; } | |
98418dba | 16665 | if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then |
f21fadcc JD |
16666 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16667 | else | |
16668 | ac_check_lib_save_LIBS=$LIBS | |
98418dba | 16669 | LIBS="-lkstat $LIBS" |
f21fadcc | 16670 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
16671 | /* confdefs.h. */ |
16672 | _ACEOF | |
16673 | cat confdefs.h >>conftest.$ac_ext | |
16674 | cat >>conftest.$ac_ext <<_ACEOF | |
16675 | /* end confdefs.h. */ | |
f21fadcc | 16676 | |
ca81d7a0 JD |
16677 | /* Override any GCC internal prototype to avoid an error. |
16678 | Use char because int might match the return type of a GCC | |
16679 | builtin and then its argument prototype would still apply. */ | |
f21fadcc JD |
16680 | #ifdef __cplusplus |
16681 | extern "C" | |
16682 | #endif | |
98418dba | 16683 | char kstat_open (); |
f21fadcc JD |
16684 | int |
16685 | main () | |
16686 | { | |
ca81d7a0 | 16687 | return kstat_open (); |
f21fadcc JD |
16688 | ; |
16689 | return 0; | |
16690 | } | |
16691 | _ACEOF | |
16692 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
16693 | if { (ac_try="$ac_link" |
16694 | case "(($ac_try" in | |
16695 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16696 | *) ac_try_echo=$ac_try;; | |
16697 | esac | |
16698 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16699 | (eval "$ac_link") 2>conftest.er1 | |
f21fadcc | 16700 | ac_status=$? |
edfaf76d LK |
16701 | grep -v '^ *+' conftest.er1 >conftest.err |
16702 | rm -f conftest.er1 | |
16703 | cat conftest.err >&5 | |
c0d27fcc | 16704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
16705 | (exit $ac_status); } && { |
16706 | test -z "$ac_c_werror_flag" || | |
16707 | test ! -s conftest.err | |
16708 | } && test -s conftest$ac_exeext && | |
16709 | $as_test_x conftest$ac_exeext; then | |
98418dba | 16710 | ac_cv_lib_kstat_kstat_open=yes |
f21fadcc JD |
16711 | else |
16712 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16713 | sed 's/^/| /' conftest.$ac_ext >&5 |
16714 | ||
ca81d7a0 | 16715 | ac_cv_lib_kstat_kstat_open=no |
f21fadcc | 16716 | fi |
ca81d7a0 | 16717 | |
f053c89f | 16718 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 16719 | conftest$ac_exeext conftest.$ac_ext |
f21fadcc JD |
16720 | LIBS=$ac_check_lib_save_LIBS |
16721 | fi | |
ca81d7a0 JD |
16722 | { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5 |
16723 | echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; } | |
98418dba | 16724 | if test $ac_cv_lib_kstat_kstat_open = yes; then |
c0d27fcc | 16725 | cat >>confdefs.h <<_ACEOF |
98418dba | 16726 | #define HAVE_LIBKSTAT 1 |
c0d27fcc | 16727 | _ACEOF |
f21fadcc | 16728 | |
98418dba | 16729 | LIBS="-lkstat $LIBS" |
f21fadcc | 16730 | |
f21fadcc JD |
16731 | fi |
16732 | ||
98418dba CW |
16733 | test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes |
16734 | ||
16735 | # Some systems with -lutil have (and need) -lkvm as well, some do not. | |
16736 | # On Solaris, -lkvm requires nlist from -lelf, so check that first | |
16737 | # to get the right answer into the cache. | |
16738 | # For kstat on solaris, we need libelf to force the definition of SVR4 below. | |
16739 | if test $ac_have_func = no; then | |
ca81d7a0 JD |
16740 | { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5 |
16741 | echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; } | |
98418dba | 16742 | if test "${ac_cv_lib_elf_elf_begin+set}" = set; then |
503d2be0 | 16743 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 16744 | else |
98418dba CW |
16745 | ac_check_lib_save_LIBS=$LIBS |
16746 | LIBS="-lelf $LIBS" | |
16747 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
16748 | /* confdefs.h. */ |
16749 | _ACEOF | |
16750 | cat confdefs.h >>conftest.$ac_ext | |
16751 | cat >>conftest.$ac_ext <<_ACEOF | |
16752 | /* end confdefs.h. */ | |
98418dba | 16753 | |
ca81d7a0 JD |
16754 | /* Override any GCC internal prototype to avoid an error. |
16755 | Use char because int might match the return type of a GCC | |
16756 | builtin and then its argument prototype would still apply. */ | |
98418dba CW |
16757 | #ifdef __cplusplus |
16758 | extern "C" | |
16759 | #endif | |
98418dba | 16760 | char elf_begin (); |
503d2be0 AS |
16761 | int |
16762 | main () | |
16763 | { | |
ca81d7a0 | 16764 | return elf_begin (); |
503d2be0 AS |
16765 | ; |
16766 | return 0; | |
16767 | } | |
16768 | _ACEOF | |
16769 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
16770 | if { (ac_try="$ac_link" |
16771 | case "(($ac_try" in | |
16772 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16773 | *) ac_try_echo=$ac_try;; | |
16774 | esac | |
16775 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16776 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 16777 | ac_status=$? |
edfaf76d LK |
16778 | grep -v '^ *+' conftest.er1 >conftest.err |
16779 | rm -f conftest.er1 | |
16780 | cat conftest.err >&5 | |
c0d27fcc | 16781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
16782 | (exit $ac_status); } && { |
16783 | test -z "$ac_c_werror_flag" || | |
16784 | test ! -s conftest.err | |
16785 | } && test -s conftest$ac_exeext && | |
16786 | $as_test_x conftest$ac_exeext; then | |
98418dba | 16787 | ac_cv_lib_elf_elf_begin=yes |
ba4481b5 | 16788 | else |
503d2be0 | 16789 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
16790 | sed 's/^/| /' conftest.$ac_ext >&5 |
16791 | ||
ca81d7a0 | 16792 | ac_cv_lib_elf_elf_begin=no |
ba4481b5 | 16793 | fi |
ca81d7a0 | 16794 | |
f053c89f | 16795 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 16796 | conftest$ac_exeext conftest.$ac_ext |
98418dba | 16797 | LIBS=$ac_check_lib_save_LIBS |
ba4481b5 | 16798 | fi |
ca81d7a0 JD |
16799 | { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5 |
16800 | echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; } | |
98418dba CW |
16801 | if test $ac_cv_lib_elf_elf_begin = yes; then |
16802 | LIBS="-lelf $LIBS" | |
ba4481b5 DL |
16803 | fi |
16804 | ||
98418dba CW |
16805 | fi |
16806 | if test $ac_have_func = no; then | |
ca81d7a0 JD |
16807 | { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5 |
16808 | echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; } | |
98418dba | 16809 | if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then |
503d2be0 | 16810 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 16811 | else |
98418dba CW |
16812 | ac_check_lib_save_LIBS=$LIBS |
16813 | LIBS="-lkvm $LIBS" | |
16814 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
16815 | /* confdefs.h. */ |
16816 | _ACEOF | |
16817 | cat confdefs.h >>conftest.$ac_ext | |
16818 | cat >>conftest.$ac_ext <<_ACEOF | |
16819 | /* end confdefs.h. */ | |
98418dba | 16820 | |
ca81d7a0 JD |
16821 | /* Override any GCC internal prototype to avoid an error. |
16822 | Use char because int might match the return type of a GCC | |
16823 | builtin and then its argument prototype would still apply. */ | |
98418dba CW |
16824 | #ifdef __cplusplus |
16825 | extern "C" | |
16826 | #endif | |
98418dba | 16827 | char kvm_open (); |
503d2be0 AS |
16828 | int |
16829 | main () | |
16830 | { | |
ca81d7a0 | 16831 | return kvm_open (); |
503d2be0 AS |
16832 | ; |
16833 | return 0; | |
16834 | } | |
16835 | _ACEOF | |
16836 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
16837 | if { (ac_try="$ac_link" |
16838 | case "(($ac_try" in | |
16839 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16840 | *) ac_try_echo=$ac_try;; | |
16841 | esac | |
16842 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16843 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 16844 | ac_status=$? |
edfaf76d LK |
16845 | grep -v '^ *+' conftest.er1 >conftest.err |
16846 | rm -f conftest.er1 | |
16847 | cat conftest.err >&5 | |
c0d27fcc | 16848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
16849 | (exit $ac_status); } && { |
16850 | test -z "$ac_c_werror_flag" || | |
16851 | test ! -s conftest.err | |
16852 | } && test -s conftest$ac_exeext && | |
16853 | $as_test_x conftest$ac_exeext; then | |
98418dba | 16854 | ac_cv_lib_kvm_kvm_open=yes |
503d2be0 AS |
16855 | else |
16856 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16857 | sed 's/^/| /' conftest.$ac_ext >&5 |
16858 | ||
ca81d7a0 | 16859 | ac_cv_lib_kvm_kvm_open=no |
503d2be0 | 16860 | fi |
ca81d7a0 | 16861 | |
f053c89f | 16862 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 16863 | conftest$ac_exeext conftest.$ac_ext |
98418dba | 16864 | LIBS=$ac_check_lib_save_LIBS |
503d2be0 | 16865 | fi |
ca81d7a0 JD |
16866 | { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5 |
16867 | echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; } | |
98418dba CW |
16868 | if test $ac_cv_lib_kvm_kvm_open = yes; then |
16869 | LIBS="-lkvm $LIBS" | |
ba4481b5 DL |
16870 | fi |
16871 | ||
98418dba | 16872 | # Check for the 4.4BSD definition of getloadavg. |
ca81d7a0 JD |
16873 | { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5 |
16874 | echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; } | |
98418dba | 16875 | if test "${ac_cv_lib_util_getloadavg+set}" = set; then |
503d2be0 | 16876 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 16877 | else |
98418dba CW |
16878 | ac_check_lib_save_LIBS=$LIBS |
16879 | LIBS="-lutil $LIBS" | |
16880 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
16881 | /* confdefs.h. */ |
16882 | _ACEOF | |
16883 | cat confdefs.h >>conftest.$ac_ext | |
16884 | cat >>conftest.$ac_ext <<_ACEOF | |
16885 | /* end confdefs.h. */ | |
98418dba | 16886 | |
ca81d7a0 JD |
16887 | /* Override any GCC internal prototype to avoid an error. |
16888 | Use char because int might match the return type of a GCC | |
16889 | builtin and then its argument prototype would still apply. */ | |
98418dba CW |
16890 | #ifdef __cplusplus |
16891 | extern "C" | |
16892 | #endif | |
98418dba | 16893 | char getloadavg (); |
503d2be0 AS |
16894 | int |
16895 | main () | |
16896 | { | |
ca81d7a0 | 16897 | return getloadavg (); |
503d2be0 AS |
16898 | ; |
16899 | return 0; | |
16900 | } | |
16901 | _ACEOF | |
16902 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
16903 | if { (ac_try="$ac_link" |
16904 | case "(($ac_try" in | |
16905 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16906 | *) ac_try_echo=$ac_try;; | |
16907 | esac | |
16908 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16909 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 16910 | ac_status=$? |
edfaf76d LK |
16911 | grep -v '^ *+' conftest.er1 >conftest.err |
16912 | rm -f conftest.er1 | |
16913 | cat conftest.err >&5 | |
c0d27fcc | 16914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
16915 | (exit $ac_status); } && { |
16916 | test -z "$ac_c_werror_flag" || | |
16917 | test ! -s conftest.err | |
16918 | } && test -s conftest$ac_exeext && | |
16919 | $as_test_x conftest$ac_exeext; then | |
35996d22 AS |
16920 | ac_cv_lib_util_getloadavg=yes |
16921 | else | |
503d2be0 | 16922 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
16923 | sed 's/^/| /' conftest.$ac_ext >&5 |
16924 | ||
ca81d7a0 | 16925 | ac_cv_lib_util_getloadavg=no |
ba4481b5 | 16926 | fi |
ca81d7a0 | 16927 | |
f053c89f | 16928 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 16929 | conftest$ac_exeext conftest.$ac_ext |
98418dba CW |
16930 | LIBS=$ac_check_lib_save_LIBS |
16931 | fi | |
ca81d7a0 JD |
16932 | { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5 |
16933 | echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; } | |
98418dba CW |
16934 | if test $ac_cv_lib_util_getloadavg = yes; then |
16935 | LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes | |
ba4481b5 | 16936 | fi |
503d2be0 | 16937 | |
98418dba | 16938 | fi |
ba4481b5 | 16939 | |
98418dba CW |
16940 | if test $ac_have_func = no; then |
16941 | # There is a commonly available library for RS/6000 AIX. | |
16942 | # Since it is not a standard part of AIX, it might be installed locally. | |
16943 | ac_getloadavg_LIBS=$LIBS | |
16944 | LIBS="-L/usr/local/lib $LIBS" | |
ca81d7a0 JD |
16945 | { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5 |
16946 | echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; } | |
98418dba | 16947 | if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then |
503d2be0 | 16948 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 16949 | else |
98418dba CW |
16950 | ac_check_lib_save_LIBS=$LIBS |
16951 | LIBS="-lgetloadavg $LIBS" | |
16952 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
16953 | /* confdefs.h. */ |
16954 | _ACEOF | |
16955 | cat confdefs.h >>conftest.$ac_ext | |
16956 | cat >>conftest.$ac_ext <<_ACEOF | |
16957 | /* end confdefs.h. */ | |
ba4481b5 | 16958 | |
ca81d7a0 JD |
16959 | /* Override any GCC internal prototype to avoid an error. |
16960 | Use char because int might match the return type of a GCC | |
16961 | builtin and then its argument prototype would still apply. */ | |
98418dba CW |
16962 | #ifdef __cplusplus |
16963 | extern "C" | |
16964 | #endif | |
98418dba | 16965 | char getloadavg (); |
98418dba CW |
16966 | int |
16967 | main () | |
16968 | { | |
ca81d7a0 | 16969 | return getloadavg (); |
98418dba CW |
16970 | ; |
16971 | return 0; | |
16972 | } | |
503d2be0 | 16973 | _ACEOF |
98418dba | 16974 | rm -f conftest.$ac_objext conftest$ac_exeext |
ca81d7a0 JD |
16975 | if { (ac_try="$ac_link" |
16976 | case "(($ac_try" in | |
16977 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16978 | *) ac_try_echo=$ac_try;; | |
16979 | esac | |
16980 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16981 | (eval "$ac_link") 2>conftest.er1 | |
98418dba | 16982 | ac_status=$? |
edfaf76d LK |
16983 | grep -v '^ *+' conftest.er1 >conftest.err |
16984 | rm -f conftest.er1 | |
16985 | cat conftest.err >&5 | |
c0d27fcc | 16986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
16987 | (exit $ac_status); } && { |
16988 | test -z "$ac_c_werror_flag" || | |
16989 | test ! -s conftest.err | |
16990 | } && test -s conftest$ac_exeext && | |
16991 | $as_test_x conftest$ac_exeext; then | |
98418dba | 16992 | ac_cv_lib_getloadavg_getloadavg=yes |
ba4481b5 | 16993 | else |
98418dba | 16994 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
16995 | sed 's/^/| /' conftest.$ac_ext >&5 |
16996 | ||
ca81d7a0 | 16997 | ac_cv_lib_getloadavg_getloadavg=no |
98418dba | 16998 | fi |
ca81d7a0 | 16999 | |
f053c89f | 17000 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 17001 | conftest$ac_exeext conftest.$ac_ext |
98418dba CW |
17002 | LIBS=$ac_check_lib_save_LIBS |
17003 | fi | |
ca81d7a0 JD |
17004 | { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5 |
17005 | echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; } | |
98418dba CW |
17006 | if test $ac_cv_lib_getloadavg_getloadavg = yes; then |
17007 | LIBS="-lgetloadavg $LIBS" | |
17008 | else | |
17009 | LIBS=$ac_getloadavg_LIBS | |
ba4481b5 | 17010 | fi |
ba4481b5 DL |
17011 | |
17012 | fi | |
98418dba CW |
17013 | |
17014 | # Make sure it is really in the library, if we think we found it, | |
17015 | # otherwise set up the replacement function. | |
17016 | ||
17017 | for ac_func in getloadavg | |
17018 | do | |
17019 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
ca81d7a0 JD |
17020 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
17021 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
17022 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 17023 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 17024 | else |
503d2be0 | 17025 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
17026 | /* confdefs.h. */ |
17027 | _ACEOF | |
17028 | cat confdefs.h >>conftest.$ac_ext | |
17029 | cat >>conftest.$ac_ext <<_ACEOF | |
17030 | /* end confdefs.h. */ | |
edfaf76d LK |
17031 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
17032 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17033 | #define $ac_func innocuous_$ac_func | |
17034 | ||
ba4481b5 | 17035 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
17036 | which can conflict with char $ac_func (); below. |
17037 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17038 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 17039 | |
19650fd6 AS |
17040 | #ifdef __STDC__ |
17041 | # include <limits.h> | |
17042 | #else | |
17043 | # include <assert.h> | |
17044 | #endif | |
edfaf76d LK |
17045 | |
17046 | #undef $ac_func | |
17047 | ||
ca81d7a0 JD |
17048 | /* Override any GCC internal prototype to avoid an error. |
17049 | Use char because int might match the return type of a GCC | |
17050 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
17051 | #ifdef __cplusplus |
17052 | extern "C" | |
17053 | #endif | |
503d2be0 | 17054 | char $ac_func (); |
ba4481b5 DL |
17055 | /* The GNU C library defines this for functions which it implements |
17056 | to always fail with ENOSYS. Some functions are actually named | |
17057 | something starting with __ and the normal name is an alias. */ | |
ca81d7a0 | 17058 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ba4481b5 | 17059 | choke me |
cd958eb3 MB |
17060 | #endif |
17061 | ||
19650fd6 AS |
17062 | int |
17063 | main () | |
17064 | { | |
ca81d7a0 | 17065 | return $ac_func (); |
503d2be0 AS |
17066 | ; |
17067 | return 0; | |
17068 | } | |
17069 | _ACEOF | |
17070 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
17071 | if { (ac_try="$ac_link" |
17072 | case "(($ac_try" in | |
17073 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17074 | *) ac_try_echo=$ac_try;; | |
17075 | esac | |
17076 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17077 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 17078 | ac_status=$? |
edfaf76d LK |
17079 | grep -v '^ *+' conftest.er1 >conftest.err |
17080 | rm -f conftest.er1 | |
17081 | cat conftest.err >&5 | |
c0d27fcc | 17082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
17083 | (exit $ac_status); } && { |
17084 | test -z "$ac_c_werror_flag" || | |
17085 | test ! -s conftest.err | |
17086 | } && test -s conftest$ac_exeext && | |
17087 | $as_test_x conftest$ac_exeext; then | |
503d2be0 AS |
17088 | eval "$as_ac_var=yes" |
17089 | else | |
17090 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17091 | sed 's/^/| /' conftest.$ac_ext >&5 |
17092 | ||
ca81d7a0 | 17093 | eval "$as_ac_var=no" |
503d2be0 | 17094 | fi |
ca81d7a0 | 17095 | |
f053c89f | 17096 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 17097 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 | 17098 | fi |
ca81d7a0 JD |
17099 | ac_res=`eval echo '${'$as_ac_var'}'` |
17100 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17101 | echo "${ECHO_T}$ac_res" >&6; } | |
503d2be0 | 17102 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
c0d27fcc | 17103 | cat >>confdefs.h <<_ACEOF |
98418dba | 17104 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 17105 | _ACEOF |
503d2be0 | 17106 | |
98418dba | 17107 | else |
ca81d7a0 | 17108 | case " $LIBOBJS " in |
edfaf76d | 17109 | *" getloadavg.$ac_objext "* ) ;; |
ca81d7a0 JD |
17110 | *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" |
17111 | ;; | |
edfaf76d LK |
17112 | esac |
17113 | ||
ba4481b5 | 17114 | |
c0d27fcc | 17115 | cat >>confdefs.h <<\_ACEOF |
98418dba | 17116 | #define C_GETLOADAVG 1 |
c0d27fcc | 17117 | _ACEOF |
ba4481b5 | 17118 | |
98418dba CW |
17119 | # Figure out what our getloadavg.c needs. |
17120 | ac_have_func=no | |
c0d27fcc | 17121 | if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then |
ca81d7a0 JD |
17122 | { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5 |
17123 | echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; } | |
98418dba | 17124 | if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then |
503d2be0 | 17125 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc | 17126 | fi |
ca81d7a0 JD |
17127 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5 |
17128 | echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; } | |
ba4481b5 | 17129 | else |
c0d27fcc | 17130 | # Is the header compilable? |
ca81d7a0 JD |
17131 | { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5 |
17132 | echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; } | |
c0d27fcc | 17133 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
17134 | /* confdefs.h. */ |
17135 | _ACEOF | |
17136 | cat confdefs.h >>conftest.$ac_ext | |
17137 | cat >>conftest.$ac_ext <<_ACEOF | |
17138 | /* end confdefs.h. */ | |
c0d27fcc MR |
17139 | $ac_includes_default |
17140 | #include <sys/dg_sys_info.h> | |
17141 | _ACEOF | |
17142 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
17143 | if { (ac_try="$ac_compile" |
17144 | case "(($ac_try" in | |
17145 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17146 | *) ac_try_echo=$ac_try;; | |
17147 | esac | |
17148 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17149 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 17150 | ac_status=$? |
edfaf76d LK |
17151 | grep -v '^ *+' conftest.er1 >conftest.err |
17152 | rm -f conftest.er1 | |
17153 | cat conftest.err >&5 | |
c0d27fcc | 17154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
17155 | (exit $ac_status); } && { |
17156 | test -z "$ac_c_werror_flag" || | |
17157 | test ! -s conftest.err | |
17158 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
17159 | ac_header_compiler=yes |
17160 | else | |
17161 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17162 | sed 's/^/| /' conftest.$ac_ext >&5 |
17163 | ||
ca81d7a0 | 17164 | ac_header_compiler=no |
c0d27fcc | 17165 | fi |
ca81d7a0 JD |
17166 | |
17167 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17168 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
17169 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
17170 | |
17171 | # Is the header present? | |
ca81d7a0 JD |
17172 | { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5 |
17173 | echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; } | |
c0d27fcc | 17174 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
17175 | /* confdefs.h. */ |
17176 | _ACEOF | |
17177 | cat confdefs.h >>conftest.$ac_ext | |
17178 | cat >>conftest.$ac_ext <<_ACEOF | |
17179 | /* end confdefs.h. */ | |
98418dba CW |
17180 | #include <sys/dg_sys_info.h> |
17181 | _ACEOF | |
ca81d7a0 JD |
17182 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
17183 | case "(($ac_try" in | |
17184 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17185 | *) ac_try_echo=$ac_try;; | |
17186 | esac | |
17187 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17188 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
98418dba | 17189 | ac_status=$? |
6bae0ccf | 17190 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
17191 | rm -f conftest.er1 |
17192 | cat conftest.err >&5 | |
c0d27fcc | 17193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
17194 | (exit $ac_status); } >/dev/null && { |
17195 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
17196 | test ! -s conftest.err | |
17197 | }; then | |
c0d27fcc | 17198 | ac_header_preproc=yes |
98418dba CW |
17199 | else |
17200 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17201 | sed 's/^/| /' conftest.$ac_ext >&5 |
17202 | ||
c0d27fcc | 17203 | ac_header_preproc=no |
ba4481b5 | 17204 | fi |
ca81d7a0 | 17205 | |
98418dba | 17206 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
17207 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
17208 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
17209 | |
17210 | # So? What about this header? | |
edfaf76d LK |
17211 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
17212 | yes:no: ) | |
c0d27fcc MR |
17213 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
17214 | echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
17215 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5 |
17216 | echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;} | |
17217 | ac_header_preproc=yes | |
19650fd6 | 17218 | ;; |
edfaf76d | 17219 | no:yes:* ) |
c0d27fcc MR |
17220 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5 |
17221 | echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;} | |
edfaf76d LK |
17222 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5 |
17223 | echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;} | |
17224 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5 | |
17225 | echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;} | |
17226 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5 | |
17227 | echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 17228 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 17229 | echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
17230 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5 |
17231 | echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 17232 | |
19650fd6 | 17233 | ;; |
c0d27fcc | 17234 | esac |
ca81d7a0 JD |
17235 | { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5 |
17236 | echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; } | |
c0d27fcc MR |
17237 | if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then |
17238 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17239 | else | |
17240 | ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc | |
98418dba | 17241 | fi |
ca81d7a0 JD |
17242 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5 |
17243 | echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; } | |
c0d27fcc MR |
17244 | |
17245 | fi | |
98418dba CW |
17246 | if test $ac_cv_header_sys_dg_sys_info_h = yes; then |
17247 | ac_have_func=yes | |
ba4481b5 | 17248 | |
c0d27fcc | 17249 | cat >>confdefs.h <<\_ACEOF |
98418dba | 17250 | #define DGUX 1 |
c0d27fcc MR |
17251 | _ACEOF |
17252 | ||
503d2be0 | 17253 | |
ca81d7a0 JD |
17254 | { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5 |
17255 | echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; } | |
98418dba | 17256 | if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then |
503d2be0 | 17257 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 17258 | else |
503d2be0 | 17259 | ac_check_lib_save_LIBS=$LIBS |
98418dba | 17260 | LIBS="-ldgc $LIBS" |
503d2be0 | 17261 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
17262 | /* confdefs.h. */ |
17263 | _ACEOF | |
17264 | cat confdefs.h >>conftest.$ac_ext | |
17265 | cat >>conftest.$ac_ext <<_ACEOF | |
17266 | /* end confdefs.h. */ | |
503d2be0 | 17267 | |
ca81d7a0 JD |
17268 | /* Override any GCC internal prototype to avoid an error. |
17269 | Use char because int might match the return type of a GCC | |
17270 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
17271 | #ifdef __cplusplus |
17272 | extern "C" | |
17273 | #endif | |
98418dba | 17274 | char dg_sys_info (); |
503d2be0 AS |
17275 | int |
17276 | main () | |
17277 | { | |
ca81d7a0 | 17278 | return dg_sys_info (); |
503d2be0 AS |
17279 | ; |
17280 | return 0; | |
17281 | } | |
17282 | _ACEOF | |
17283 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
17284 | if { (ac_try="$ac_link" |
17285 | case "(($ac_try" in | |
17286 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17287 | *) ac_try_echo=$ac_try;; | |
17288 | esac | |
17289 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17290 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 17291 | ac_status=$? |
edfaf76d LK |
17292 | grep -v '^ *+' conftest.er1 >conftest.err |
17293 | rm -f conftest.er1 | |
17294 | cat conftest.err >&5 | |
c0d27fcc | 17295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
17296 | (exit $ac_status); } && { |
17297 | test -z "$ac_c_werror_flag" || | |
17298 | test ! -s conftest.err | |
17299 | } && test -s conftest$ac_exeext && | |
17300 | $as_test_x conftest$ac_exeext; then | |
98418dba | 17301 | ac_cv_lib_dgc_dg_sys_info=yes |
503d2be0 AS |
17302 | else |
17303 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17304 | sed 's/^/| /' conftest.$ac_ext >&5 |
17305 | ||
ca81d7a0 | 17306 | ac_cv_lib_dgc_dg_sys_info=no |
503d2be0 | 17307 | fi |
ca81d7a0 | 17308 | |
f053c89f | 17309 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 17310 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 AS |
17311 | LIBS=$ac_check_lib_save_LIBS |
17312 | fi | |
ca81d7a0 JD |
17313 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5 |
17314 | echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; } | |
98418dba | 17315 | if test $ac_cv_lib_dgc_dg_sys_info = yes; then |
c0d27fcc | 17316 | cat >>confdefs.h <<_ACEOF |
98418dba | 17317 | #define HAVE_LIBDGC 1 |
c0d27fcc | 17318 | _ACEOF |
ba4481b5 | 17319 | |
98418dba | 17320 | LIBS="-ldgc $LIBS" |
ba4481b5 | 17321 | |
ba4481b5 DL |
17322 | fi |
17323 | ||
98418dba | 17324 | fi |
503d2be0 | 17325 | |
c0d27fcc MR |
17326 | |
17327 | ||
17328 | if test "${ac_cv_header_locale_h+set}" = set; then | |
ca81d7a0 JD |
17329 | { echo "$as_me:$LINENO: checking for locale.h" >&5 |
17330 | echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; } | |
98418dba | 17331 | if test "${ac_cv_header_locale_h+set}" = set; then |
503d2be0 | 17332 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc | 17333 | fi |
ca81d7a0 JD |
17334 | { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5 |
17335 | echo "${ECHO_T}$ac_cv_header_locale_h" >&6; } | |
503d2be0 | 17336 | else |
c0d27fcc | 17337 | # Is the header compilable? |
ca81d7a0 JD |
17338 | { echo "$as_me:$LINENO: checking locale.h usability" >&5 |
17339 | echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; } | |
c0d27fcc | 17340 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
17341 | /* confdefs.h. */ |
17342 | _ACEOF | |
17343 | cat confdefs.h >>conftest.$ac_ext | |
17344 | cat >>conftest.$ac_ext <<_ACEOF | |
17345 | /* end confdefs.h. */ | |
c0d27fcc MR |
17346 | $ac_includes_default |
17347 | #include <locale.h> | |
17348 | _ACEOF | |
17349 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
17350 | if { (ac_try="$ac_compile" |
17351 | case "(($ac_try" in | |
17352 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17353 | *) ac_try_echo=$ac_try;; | |
17354 | esac | |
17355 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17356 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 17357 | ac_status=$? |
edfaf76d LK |
17358 | grep -v '^ *+' conftest.er1 >conftest.err |
17359 | rm -f conftest.er1 | |
17360 | cat conftest.err >&5 | |
c0d27fcc | 17361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
17362 | (exit $ac_status); } && { |
17363 | test -z "$ac_c_werror_flag" || | |
17364 | test ! -s conftest.err | |
17365 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
17366 | ac_header_compiler=yes |
17367 | else | |
17368 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17369 | sed 's/^/| /' conftest.$ac_ext >&5 |
17370 | ||
ca81d7a0 | 17371 | ac_header_compiler=no |
c0d27fcc | 17372 | fi |
ca81d7a0 JD |
17373 | |
17374 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17375 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
17376 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
17377 | |
17378 | # Is the header present? | |
ca81d7a0 JD |
17379 | { echo "$as_me:$LINENO: checking locale.h presence" >&5 |
17380 | echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; } | |
c0d27fcc | 17381 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
17382 | /* confdefs.h. */ |
17383 | _ACEOF | |
17384 | cat confdefs.h >>conftest.$ac_ext | |
17385 | cat >>conftest.$ac_ext <<_ACEOF | |
17386 | /* end confdefs.h. */ | |
98418dba | 17387 | #include <locale.h> |
503d2be0 | 17388 | _ACEOF |
ca81d7a0 JD |
17389 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
17390 | case "(($ac_try" in | |
17391 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17392 | *) ac_try_echo=$ac_try;; | |
17393 | esac | |
17394 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17395 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 17396 | ac_status=$? |
6bae0ccf | 17397 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
17398 | rm -f conftest.er1 |
17399 | cat conftest.err >&5 | |
c0d27fcc | 17400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
17401 | (exit $ac_status); } >/dev/null && { |
17402 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
17403 | test ! -s conftest.err | |
17404 | }; then | |
c0d27fcc | 17405 | ac_header_preproc=yes |
98418dba CW |
17406 | else |
17407 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17408 | sed 's/^/| /' conftest.$ac_ext >&5 |
17409 | ||
c0d27fcc | 17410 | ac_header_preproc=no |
ba4481b5 | 17411 | fi |
ca81d7a0 | 17412 | |
98418dba | 17413 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
17414 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
17415 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
17416 | |
17417 | # So? What about this header? | |
edfaf76d LK |
17418 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
17419 | yes:no: ) | |
c0d27fcc MR |
17420 | { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
17421 | echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
17422 | { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5 |
17423 | echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;} | |
17424 | ac_header_preproc=yes | |
19650fd6 | 17425 | ;; |
edfaf76d | 17426 | no:yes:* ) |
c0d27fcc MR |
17427 | { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5 |
17428 | echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;} | |
edfaf76d LK |
17429 | { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5 |
17430 | echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;} | |
17431 | { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5 | |
17432 | echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;} | |
17433 | { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5 | |
17434 | echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 17435 | { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 17436 | echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
17437 | { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5 |
17438 | echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 17439 | |
19650fd6 | 17440 | ;; |
c0d27fcc | 17441 | esac |
ca81d7a0 JD |
17442 | { echo "$as_me:$LINENO: checking for locale.h" >&5 |
17443 | echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; } | |
c0d27fcc MR |
17444 | if test "${ac_cv_header_locale_h+set}" = set; then |
17445 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17446 | else | |
17447 | ac_cv_header_locale_h=$ac_header_preproc | |
ba4481b5 | 17448 | fi |
ca81d7a0 JD |
17449 | { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5 |
17450 | echo "${ECHO_T}$ac_cv_header_locale_h" >&6; } | |
98418dba | 17451 | |
c0d27fcc MR |
17452 | fi |
17453 | ||
17454 | ||
17455 | ||
98418dba | 17456 | for ac_func in setlocale |
ba4481b5 | 17457 | do |
503d2be0 | 17458 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
ca81d7a0 JD |
17459 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
17460 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
17461 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 17462 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 17463 | else |
503d2be0 | 17464 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
17465 | /* confdefs.h. */ |
17466 | _ACEOF | |
17467 | cat confdefs.h >>conftest.$ac_ext | |
17468 | cat >>conftest.$ac_ext <<_ACEOF | |
17469 | /* end confdefs.h. */ | |
edfaf76d LK |
17470 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
17471 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17472 | #define $ac_func innocuous_$ac_func | |
17473 | ||
ba4481b5 | 17474 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
17475 | which can conflict with char $ac_func (); below. |
17476 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17477 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 17478 | |
19650fd6 AS |
17479 | #ifdef __STDC__ |
17480 | # include <limits.h> | |
17481 | #else | |
17482 | # include <assert.h> | |
17483 | #endif | |
edfaf76d LK |
17484 | |
17485 | #undef $ac_func | |
17486 | ||
ca81d7a0 JD |
17487 | /* Override any GCC internal prototype to avoid an error. |
17488 | Use char because int might match the return type of a GCC | |
17489 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
17490 | #ifdef __cplusplus |
17491 | extern "C" | |
17492 | #endif | |
503d2be0 | 17493 | char $ac_func (); |
ba4481b5 DL |
17494 | /* The GNU C library defines this for functions which it implements |
17495 | to always fail with ENOSYS. Some functions are actually named | |
17496 | something starting with __ and the normal name is an alias. */ | |
ca81d7a0 | 17497 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ba4481b5 | 17498 | choke me |
ba4481b5 DL |
17499 | #endif |
17500 | ||
19650fd6 AS |
17501 | int |
17502 | main () | |
17503 | { | |
ca81d7a0 | 17504 | return $ac_func (); |
503d2be0 AS |
17505 | ; |
17506 | return 0; | |
17507 | } | |
17508 | _ACEOF | |
17509 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
17510 | if { (ac_try="$ac_link" |
17511 | case "(($ac_try" in | |
17512 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17513 | *) ac_try_echo=$ac_try;; | |
17514 | esac | |
17515 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17516 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 17517 | ac_status=$? |
edfaf76d LK |
17518 | grep -v '^ *+' conftest.er1 >conftest.err |
17519 | rm -f conftest.er1 | |
17520 | cat conftest.err >&5 | |
c0d27fcc | 17521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
17522 | (exit $ac_status); } && { |
17523 | test -z "$ac_c_werror_flag" || | |
17524 | test ! -s conftest.err | |
17525 | } && test -s conftest$ac_exeext && | |
17526 | $as_test_x conftest$ac_exeext; then | |
503d2be0 AS |
17527 | eval "$as_ac_var=yes" |
17528 | else | |
17529 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17530 | sed 's/^/| /' conftest.$ac_ext >&5 |
17531 | ||
ca81d7a0 | 17532 | eval "$as_ac_var=no" |
503d2be0 | 17533 | fi |
ca81d7a0 | 17534 | |
f053c89f | 17535 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 17536 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 | 17537 | fi |
ca81d7a0 JD |
17538 | ac_res=`eval echo '${'$as_ac_var'}'` |
17539 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17540 | echo "${ECHO_T}$ac_res" >&6; } | |
503d2be0 | 17541 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
c0d27fcc | 17542 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 17543 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 17544 | _ACEOF |
ba4481b5 | 17545 | |
ba4481b5 DL |
17546 | fi |
17547 | done | |
17548 | ||
c0d27fcc | 17549 | |
98418dba CW |
17550 | # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it |
17551 | # uses stabs), but it is still SVR4. We cannot check for <elf.h> because | |
17552 | # Irix 4.0.5F has the header but not the library. | |
17553 | if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then | |
17554 | ac_have_func=yes | |
17555 | ||
c0d27fcc | 17556 | cat >>confdefs.h <<\_ACEOF |
98418dba | 17557 | #define SVR4 1 |
c0d27fcc | 17558 | _ACEOF |
98418dba CW |
17559 | |
17560 | fi | |
17561 | ||
17562 | if test $ac_have_func = no; then | |
c0d27fcc | 17563 | if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then |
ca81d7a0 JD |
17564 | { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5 |
17565 | echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; } | |
98418dba | 17566 | if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then |
503d2be0 | 17567 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc | 17568 | fi |
ca81d7a0 JD |
17569 | { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5 |
17570 | echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; } | |
98418dba | 17571 | else |
c0d27fcc | 17572 | # Is the header compilable? |
ca81d7a0 JD |
17573 | { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5 |
17574 | echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; } | |
c0d27fcc | 17575 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
17576 | /* confdefs.h. */ |
17577 | _ACEOF | |
17578 | cat confdefs.h >>conftest.$ac_ext | |
17579 | cat >>conftest.$ac_ext <<_ACEOF | |
17580 | /* end confdefs.h. */ | |
c0d27fcc MR |
17581 | $ac_includes_default |
17582 | #include <inq_stats/cpustats.h> | |
17583 | _ACEOF | |
17584 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
17585 | if { (ac_try="$ac_compile" |
17586 | case "(($ac_try" in | |
17587 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17588 | *) ac_try_echo=$ac_try;; | |
17589 | esac | |
17590 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17591 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 17592 | ac_status=$? |
edfaf76d LK |
17593 | grep -v '^ *+' conftest.er1 >conftest.err |
17594 | rm -f conftest.er1 | |
17595 | cat conftest.err >&5 | |
c0d27fcc | 17596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
17597 | (exit $ac_status); } && { |
17598 | test -z "$ac_c_werror_flag" || | |
17599 | test ! -s conftest.err | |
17600 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
17601 | ac_header_compiler=yes |
17602 | else | |
17603 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17604 | sed 's/^/| /' conftest.$ac_ext >&5 |
17605 | ||
ca81d7a0 | 17606 | ac_header_compiler=no |
c0d27fcc | 17607 | fi |
ca81d7a0 JD |
17608 | |
17609 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17610 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
17611 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
17612 | |
17613 | # Is the header present? | |
ca81d7a0 JD |
17614 | { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5 |
17615 | echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; } | |
c0d27fcc | 17616 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
17617 | /* confdefs.h. */ |
17618 | _ACEOF | |
17619 | cat confdefs.h >>conftest.$ac_ext | |
17620 | cat >>conftest.$ac_ext <<_ACEOF | |
17621 | /* end confdefs.h. */ | |
98418dba | 17622 | #include <inq_stats/cpustats.h> |
503d2be0 | 17623 | _ACEOF |
ca81d7a0 JD |
17624 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
17625 | case "(($ac_try" in | |
17626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17627 | *) ac_try_echo=$ac_try;; | |
17628 | esac | |
17629 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17630 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 17631 | ac_status=$? |
6bae0ccf | 17632 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
17633 | rm -f conftest.er1 |
17634 | cat conftest.err >&5 | |
c0d27fcc | 17635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
17636 | (exit $ac_status); } >/dev/null && { |
17637 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
17638 | test ! -s conftest.err | |
17639 | }; then | |
c0d27fcc | 17640 | ac_header_preproc=yes |
503d2be0 AS |
17641 | else |
17642 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17643 | sed 's/^/| /' conftest.$ac_ext >&5 |
17644 | ||
c0d27fcc | 17645 | ac_header_preproc=no |
ba4481b5 | 17646 | fi |
ca81d7a0 | 17647 | |
503d2be0 | 17648 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
17649 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
17650 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
17651 | |
17652 | # So? What about this header? | |
edfaf76d LK |
17653 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
17654 | yes:no: ) | |
c0d27fcc MR |
17655 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
17656 | echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
17657 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5 |
17658 | echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;} | |
17659 | ac_header_preproc=yes | |
19650fd6 | 17660 | ;; |
edfaf76d | 17661 | no:yes:* ) |
c0d27fcc MR |
17662 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5 |
17663 | echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;} | |
edfaf76d LK |
17664 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5 |
17665 | echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;} | |
17666 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5 | |
17667 | echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;} | |
17668 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5 | |
17669 | echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 17670 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 17671 | echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
17672 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5 |
17673 | echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 17674 | |
19650fd6 | 17675 | ;; |
c0d27fcc | 17676 | esac |
ca81d7a0 JD |
17677 | { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5 |
17678 | echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; } | |
c0d27fcc MR |
17679 | if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then |
17680 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17681 | else | |
17682 | ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc | |
ba4481b5 | 17683 | fi |
ca81d7a0 JD |
17684 | { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5 |
17685 | echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; } | |
c0d27fcc MR |
17686 | |
17687 | fi | |
98418dba CW |
17688 | if test $ac_cv_header_inq_stats_cpustats_h = yes; then |
17689 | ac_have_func=yes | |
ba4481b5 | 17690 | |
c0d27fcc | 17691 | cat >>confdefs.h <<\_ACEOF |
98418dba | 17692 | #define UMAX 1 |
c0d27fcc | 17693 | _ACEOF |
98418dba | 17694 | |
c0d27fcc MR |
17695 | |
17696 | cat >>confdefs.h <<\_ACEOF | |
98418dba | 17697 | #define UMAX4_3 1 |
c0d27fcc | 17698 | _ACEOF |
98418dba CW |
17699 | |
17700 | fi | |
17701 | ||
c0d27fcc | 17702 | |
98418dba CW |
17703 | fi |
17704 | ||
17705 | if test $ac_have_func = no; then | |
c0d27fcc | 17706 | if test "${ac_cv_header_sys_cpustats_h+set}" = set; then |
ca81d7a0 JD |
17707 | { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5 |
17708 | echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; } | |
98418dba | 17709 | if test "${ac_cv_header_sys_cpustats_h+set}" = set; then |
503d2be0 | 17710 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc | 17711 | fi |
ca81d7a0 JD |
17712 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5 |
17713 | echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; } | |
503d2be0 | 17714 | else |
c0d27fcc | 17715 | # Is the header compilable? |
ca81d7a0 JD |
17716 | { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5 |
17717 | echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; } | |
c0d27fcc | 17718 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
17719 | /* confdefs.h. */ |
17720 | _ACEOF | |
17721 | cat confdefs.h >>conftest.$ac_ext | |
17722 | cat >>conftest.$ac_ext <<_ACEOF | |
17723 | /* end confdefs.h. */ | |
c0d27fcc MR |
17724 | $ac_includes_default |
17725 | #include <sys/cpustats.h> | |
17726 | _ACEOF | |
17727 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
17728 | if { (ac_try="$ac_compile" |
17729 | case "(($ac_try" in | |
17730 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17731 | *) ac_try_echo=$ac_try;; | |
17732 | esac | |
17733 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17734 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 17735 | ac_status=$? |
edfaf76d LK |
17736 | grep -v '^ *+' conftest.er1 >conftest.err |
17737 | rm -f conftest.er1 | |
17738 | cat conftest.err >&5 | |
c0d27fcc | 17739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
17740 | (exit $ac_status); } && { |
17741 | test -z "$ac_c_werror_flag" || | |
17742 | test ! -s conftest.err | |
17743 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
17744 | ac_header_compiler=yes |
17745 | else | |
17746 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17747 | sed 's/^/| /' conftest.$ac_ext >&5 |
17748 | ||
ca81d7a0 | 17749 | ac_header_compiler=no |
c0d27fcc | 17750 | fi |
ca81d7a0 JD |
17751 | |
17752 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17753 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
17754 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
17755 | |
17756 | # Is the header present? | |
ca81d7a0 JD |
17757 | { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5 |
17758 | echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; } | |
c0d27fcc | 17759 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
17760 | /* confdefs.h. */ |
17761 | _ACEOF | |
17762 | cat confdefs.h >>conftest.$ac_ext | |
17763 | cat >>conftest.$ac_ext <<_ACEOF | |
17764 | /* end confdefs.h. */ | |
98418dba CW |
17765 | #include <sys/cpustats.h> |
17766 | _ACEOF | |
ca81d7a0 JD |
17767 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
17768 | case "(($ac_try" in | |
17769 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17770 | *) ac_try_echo=$ac_try;; | |
17771 | esac | |
17772 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17773 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
98418dba | 17774 | ac_status=$? |
6bae0ccf | 17775 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
17776 | rm -f conftest.er1 |
17777 | cat conftest.err >&5 | |
c0d27fcc | 17778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
17779 | (exit $ac_status); } >/dev/null && { |
17780 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
17781 | test ! -s conftest.err | |
17782 | }; then | |
c0d27fcc | 17783 | ac_header_preproc=yes |
98418dba CW |
17784 | else |
17785 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17786 | sed 's/^/| /' conftest.$ac_ext >&5 |
17787 | ||
c0d27fcc | 17788 | ac_header_preproc=no |
98418dba | 17789 | fi |
ca81d7a0 | 17790 | |
98418dba | 17791 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
17792 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
17793 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
17794 | |
17795 | # So? What about this header? | |
edfaf76d LK |
17796 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
17797 | yes:no: ) | |
c0d27fcc MR |
17798 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
17799 | echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
17800 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5 |
17801 | echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;} | |
17802 | ac_header_preproc=yes | |
19650fd6 | 17803 | ;; |
edfaf76d | 17804 | no:yes:* ) |
c0d27fcc MR |
17805 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5 |
17806 | echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;} | |
edfaf76d LK |
17807 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5 |
17808 | echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;} | |
17809 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5 | |
17810 | echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;} | |
17811 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5 | |
17812 | echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 17813 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 17814 | echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
17815 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5 |
17816 | echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 17817 | |
19650fd6 | 17818 | ;; |
c0d27fcc | 17819 | esac |
ca81d7a0 JD |
17820 | { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5 |
17821 | echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; } | |
c0d27fcc MR |
17822 | if test "${ac_cv_header_sys_cpustats_h+set}" = set; then |
17823 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17824 | else | |
17825 | ac_cv_header_sys_cpustats_h=$ac_header_preproc | |
98418dba | 17826 | fi |
ca81d7a0 JD |
17827 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5 |
17828 | echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; } | |
c0d27fcc MR |
17829 | |
17830 | fi | |
98418dba | 17831 | if test $ac_cv_header_sys_cpustats_h = yes; then |
c0d27fcc | 17832 | ac_have_func=yes; cat >>confdefs.h <<\_ACEOF |
98418dba | 17833 | #define UMAX 1 |
c0d27fcc | 17834 | _ACEOF |
ba4481b5 | 17835 | |
98418dba CW |
17836 | fi |
17837 | ||
c0d27fcc | 17838 | |
98418dba CW |
17839 | fi |
17840 | ||
17841 | if test $ac_have_func = no; then | |
17842 | ||
17843 | for ac_header in mach/mach.h | |
2c9dccc9 PJ |
17844 | do |
17845 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
ca81d7a0 JD |
17846 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
17847 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17848 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
17849 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
2c9dccc9 | 17850 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc | 17851 | fi |
ca81d7a0 JD |
17852 | ac_res=`eval echo '${'$as_ac_Header'}'` |
17853 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17854 | echo "${ECHO_T}$ac_res" >&6; } | |
98418dba | 17855 | else |
c0d27fcc | 17856 | # Is the header compilable? |
ca81d7a0 JD |
17857 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
17858 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
c0d27fcc | 17859 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
17860 | /* confdefs.h. */ |
17861 | _ACEOF | |
17862 | cat confdefs.h >>conftest.$ac_ext | |
17863 | cat >>conftest.$ac_ext <<_ACEOF | |
17864 | /* end confdefs.h. */ | |
c0d27fcc MR |
17865 | $ac_includes_default |
17866 | #include <$ac_header> | |
17867 | _ACEOF | |
17868 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
17869 | if { (ac_try="$ac_compile" |
17870 | case "(($ac_try" in | |
17871 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17872 | *) ac_try_echo=$ac_try;; | |
17873 | esac | |
17874 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17875 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 17876 | ac_status=$? |
edfaf76d LK |
17877 | grep -v '^ *+' conftest.er1 >conftest.err |
17878 | rm -f conftest.er1 | |
17879 | cat conftest.err >&5 | |
c0d27fcc | 17880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
17881 | (exit $ac_status); } && { |
17882 | test -z "$ac_c_werror_flag" || | |
17883 | test ! -s conftest.err | |
17884 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
17885 | ac_header_compiler=yes |
17886 | else | |
17887 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17888 | sed 's/^/| /' conftest.$ac_ext >&5 |
17889 | ||
ca81d7a0 | 17890 | ac_header_compiler=no |
c0d27fcc | 17891 | fi |
ca81d7a0 JD |
17892 | |
17893 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17894 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
17895 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
17896 | |
17897 | # Is the header present? | |
ca81d7a0 JD |
17898 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
17899 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
c0d27fcc | 17900 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
17901 | /* confdefs.h. */ |
17902 | _ACEOF | |
17903 | cat confdefs.h >>conftest.$ac_ext | |
17904 | cat >>conftest.$ac_ext <<_ACEOF | |
17905 | /* end confdefs.h. */ | |
2c9dccc9 PJ |
17906 | #include <$ac_header> |
17907 | _ACEOF | |
ca81d7a0 JD |
17908 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
17909 | case "(($ac_try" in | |
17910 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17911 | *) ac_try_echo=$ac_try;; | |
17912 | esac | |
17913 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17914 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
2c9dccc9 | 17915 | ac_status=$? |
6bae0ccf | 17916 | grep -v '^ *+' conftest.er1 >conftest.err |
2c9dccc9 PJ |
17917 | rm -f conftest.er1 |
17918 | cat conftest.err >&5 | |
c0d27fcc | 17919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
17920 | (exit $ac_status); } >/dev/null && { |
17921 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
17922 | test ! -s conftest.err | |
17923 | }; then | |
c0d27fcc MR |
17924 | ac_header_preproc=yes |
17925 | else | |
17926 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17927 | sed 's/^/| /' conftest.$ac_ext >&5 |
17928 | ||
c0d27fcc MR |
17929 | ac_header_preproc=no |
17930 | fi | |
ca81d7a0 | 17931 | |
c0d27fcc | 17932 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
17933 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
17934 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
17935 | |
17936 | # So? What about this header? | |
edfaf76d LK |
17937 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
17938 | yes:no: ) | |
c0d27fcc MR |
17939 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
17940 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
17941 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
17942 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
17943 | ac_header_preproc=yes | |
19650fd6 | 17944 | ;; |
edfaf76d | 17945 | no:yes:* ) |
c0d27fcc MR |
17946 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
17947 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
edfaf76d LK |
17948 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
17949 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17950 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
17951 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
17952 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
17953 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 17954 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 17955 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
17956 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
17957 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 17958 | |
19650fd6 | 17959 | ;; |
c0d27fcc | 17960 | esac |
ca81d7a0 JD |
17961 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
17962 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
17963 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
c0d27fcc MR |
17964 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17965 | else | |
edfaf76d | 17966 | eval "$as_ac_Header=\$ac_header_preproc" |
c0d27fcc | 17967 | fi |
ca81d7a0 JD |
17968 | ac_res=`eval echo '${'$as_ac_Header'}'` |
17969 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17970 | echo "${ECHO_T}$ac_res" >&6; } | |
c0d27fcc MR |
17971 | |
17972 | fi | |
17973 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
17974 | cat >>confdefs.h <<_ACEOF | |
17975 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
17976 | _ACEOF | |
17977 | ||
17978 | fi | |
17979 | ||
17980 | done | |
17981 | ||
17982 | fi | |
17983 | ||
17984 | ||
17985 | for ac_header in nlist.h | |
17986 | do | |
17987 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
ca81d7a0 JD |
17988 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
17989 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17990 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
17991 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
c0d27fcc MR |
17992 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17993 | fi | |
ca81d7a0 JD |
17994 | ac_res=`eval echo '${'$as_ac_Header'}'` |
17995 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17996 | echo "${ECHO_T}$ac_res" >&6; } | |
c0d27fcc MR |
17997 | else |
17998 | # Is the header compilable? | |
ca81d7a0 JD |
17999 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
18000 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
c0d27fcc | 18001 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
18002 | /* confdefs.h. */ |
18003 | _ACEOF | |
18004 | cat confdefs.h >>conftest.$ac_ext | |
18005 | cat >>conftest.$ac_ext <<_ACEOF | |
18006 | /* end confdefs.h. */ | |
c0d27fcc MR |
18007 | $ac_includes_default |
18008 | #include <$ac_header> | |
18009 | _ACEOF | |
18010 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
18011 | if { (ac_try="$ac_compile" |
18012 | case "(($ac_try" in | |
18013 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18014 | *) ac_try_echo=$ac_try;; | |
18015 | esac | |
18016 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
18017 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 18018 | ac_status=$? |
edfaf76d LK |
18019 | grep -v '^ *+' conftest.er1 >conftest.err |
18020 | rm -f conftest.er1 | |
18021 | cat conftest.err >&5 | |
c0d27fcc | 18022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
18023 | (exit $ac_status); } && { |
18024 | test -z "$ac_c_werror_flag" || | |
18025 | test ! -s conftest.err | |
18026 | } && test -s conftest.$ac_objext; then | |
c0d27fcc | 18027 | ac_header_compiler=yes |
2c9dccc9 PJ |
18028 | else |
18029 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18030 | sed 's/^/| /' conftest.$ac_ext >&5 |
18031 | ||
ca81d7a0 | 18032 | ac_header_compiler=no |
98418dba | 18033 | fi |
ca81d7a0 JD |
18034 | |
18035 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18036 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
18037 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
98418dba | 18038 | |
c0d27fcc | 18039 | # Is the header present? |
ca81d7a0 JD |
18040 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
18041 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
c0d27fcc | 18042 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
18043 | /* confdefs.h. */ |
18044 | _ACEOF | |
18045 | cat confdefs.h >>conftest.$ac_ext | |
18046 | cat >>conftest.$ac_ext <<_ACEOF | |
18047 | /* end confdefs.h. */ | |
503d2be0 AS |
18048 | #include <$ac_header> |
18049 | _ACEOF | |
ca81d7a0 JD |
18050 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
18051 | case "(($ac_try" in | |
18052 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18053 | *) ac_try_echo=$ac_try;; | |
18054 | esac | |
18055 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
18056 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 18057 | ac_status=$? |
6bae0ccf | 18058 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
18059 | rm -f conftest.er1 |
18060 | cat conftest.err >&5 | |
c0d27fcc | 18061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
18062 | (exit $ac_status); } >/dev/null && { |
18063 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
18064 | test ! -s conftest.err | |
18065 | }; then | |
c0d27fcc | 18066 | ac_header_preproc=yes |
503d2be0 AS |
18067 | else |
18068 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18069 | sed 's/^/| /' conftest.$ac_ext >&5 |
18070 | ||
c0d27fcc | 18071 | ac_header_preproc=no |
b5de8dc0 | 18072 | fi |
ca81d7a0 | 18073 | |
503d2be0 | 18074 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
18075 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
18076 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
18077 | |
18078 | # So? What about this header? | |
edfaf76d LK |
18079 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
18080 | yes:no: ) | |
c0d27fcc MR |
18081 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
18082 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
18083 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
18084 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
18085 | ac_header_preproc=yes | |
19650fd6 | 18086 | ;; |
edfaf76d | 18087 | no:yes:* ) |
c0d27fcc MR |
18088 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
18089 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
edfaf76d LK |
18090 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
18091 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
18092 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
18093 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
18094 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
18095 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 18096 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 18097 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
18098 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
18099 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 18100 | |
19650fd6 | 18101 | ;; |
c0d27fcc | 18102 | esac |
ca81d7a0 JD |
18103 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
18104 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
18105 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
c0d27fcc MR |
18106 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18107 | else | |
edfaf76d | 18108 | eval "$as_ac_Header=\$ac_header_preproc" |
b5de8dc0 | 18109 | fi |
ca81d7a0 JD |
18110 | ac_res=`eval echo '${'$as_ac_Header'}'` |
18111 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
18112 | echo "${ECHO_T}$ac_res" >&6; } | |
c0d27fcc MR |
18113 | |
18114 | fi | |
98418dba | 18115 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 18116 | cat >>confdefs.h <<_ACEOF |
98418dba | 18117 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 18118 | _ACEOF |
ca81d7a0 JD |
18119 | { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5 |
18120 | echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; } | |
98418dba | 18121 | if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then |
503d2be0 | 18122 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
b5de8dc0 | 18123 | else |
503d2be0 | 18124 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
18125 | /* confdefs.h. */ |
18126 | _ACEOF | |
18127 | cat confdefs.h >>conftest.$ac_ext | |
18128 | cat >>conftest.$ac_ext <<_ACEOF | |
18129 | /* end confdefs.h. */ | |
98418dba | 18130 | #include <nlist.h> |
b5de8dc0 | 18131 | |
503d2be0 AS |
18132 | int |
18133 | main () | |
18134 | { | |
98418dba CW |
18135 | static struct nlist ac_aggr; |
18136 | if (ac_aggr.n_un.n_name) | |
18137 | return 0; | |
503d2be0 AS |
18138 | ; |
18139 | return 0; | |
18140 | } | |
18141 | _ACEOF | |
98418dba | 18142 | rm -f conftest.$ac_objext |
ca81d7a0 JD |
18143 | if { (ac_try="$ac_compile" |
18144 | case "(($ac_try" in | |
18145 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18146 | *) ac_try_echo=$ac_try;; | |
18147 | esac | |
18148 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
18149 | (eval "$ac_compile") 2>conftest.er1 | |
503d2be0 | 18150 | ac_status=$? |
edfaf76d LK |
18151 | grep -v '^ *+' conftest.er1 >conftest.err |
18152 | rm -f conftest.er1 | |
18153 | cat conftest.err >&5 | |
c0d27fcc | 18154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
18155 | (exit $ac_status); } && { |
18156 | test -z "$ac_c_werror_flag" || | |
18157 | test ! -s conftest.err | |
18158 | } && test -s conftest.$ac_objext; then | |
edfaf76d | 18159 | ac_cv_member_struct_nlist_n_un_n_name=yes |
503d2be0 AS |
18160 | else |
18161 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18162 | sed 's/^/| /' conftest.$ac_ext >&5 |
18163 | ||
ca81d7a0 | 18164 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
18165 | /* confdefs.h. */ |
18166 | _ACEOF | |
18167 | cat confdefs.h >>conftest.$ac_ext | |
18168 | cat >>conftest.$ac_ext <<_ACEOF | |
18169 | /* end confdefs.h. */ | |
6bae0ccf DL |
18170 | #include <nlist.h> |
18171 | ||
18172 | int | |
18173 | main () | |
18174 | { | |
18175 | static struct nlist ac_aggr; | |
18176 | if (sizeof ac_aggr.n_un.n_name) | |
18177 | return 0; | |
18178 | ; | |
18179 | return 0; | |
18180 | } | |
18181 | _ACEOF | |
18182 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
18183 | if { (ac_try="$ac_compile" |
18184 | case "(($ac_try" in | |
18185 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18186 | *) ac_try_echo=$ac_try;; | |
18187 | esac | |
18188 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
18189 | (eval "$ac_compile") 2>conftest.er1 | |
6bae0ccf | 18190 | ac_status=$? |
edfaf76d LK |
18191 | grep -v '^ *+' conftest.er1 >conftest.err |
18192 | rm -f conftest.er1 | |
18193 | cat conftest.err >&5 | |
6bae0ccf | 18194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
18195 | (exit $ac_status); } && { |
18196 | test -z "$ac_c_werror_flag" || | |
18197 | test ! -s conftest.err | |
18198 | } && test -s conftest.$ac_objext; then | |
6bae0ccf DL |
18199 | ac_cv_member_struct_nlist_n_un_n_name=yes |
18200 | else | |
18201 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18202 | sed 's/^/| /' conftest.$ac_ext >&5 |
18203 | ||
ca81d7a0 | 18204 | ac_cv_member_struct_nlist_n_un_n_name=no |
503d2be0 | 18205 | fi |
ca81d7a0 JD |
18206 | |
18207 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b5de8dc0 | 18208 | fi |
ca81d7a0 JD |
18209 | |
18210 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6bae0ccf | 18211 | fi |
ca81d7a0 JD |
18212 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5 |
18213 | echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; } | |
98418dba | 18214 | if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then |
b5de8dc0 | 18215 | |
c0d27fcc | 18216 | cat >>confdefs.h <<_ACEOF |
98418dba | 18217 | #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1 |
c0d27fcc | 18218 | _ACEOF |
b5de8dc0 | 18219 | |
c0d27fcc MR |
18220 | |
18221 | cat >>confdefs.h <<\_ACEOF | |
98418dba | 18222 | #define NLIST_NAME_UNION 1 |
c0d27fcc | 18223 | _ACEOF |
b5de8dc0 | 18224 | |
98418dba | 18225 | fi |
b5de8dc0 | 18226 | |
c0d27fcc | 18227 | |
98418dba | 18228 | fi |
c0d27fcc | 18229 | |
98418dba | 18230 | done |
b5de8dc0 | 18231 | |
98418dba CW |
18232 | fi |
18233 | done | |
b5de8dc0 | 18234 | |
c0d27fcc | 18235 | |
98418dba | 18236 | # Some definitions of getloadavg require that the program be installed setgid. |
ca81d7a0 JD |
18237 | { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5 |
18238 | echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; } | |
98418dba CW |
18239 | if test "${ac_cv_func_getloadavg_setgid+set}" = set; then |
18240 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18241 | else | |
18242 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
18243 | /* confdefs.h. */ |
18244 | _ACEOF | |
18245 | cat confdefs.h >>conftest.$ac_ext | |
18246 | cat >>conftest.$ac_ext <<_ACEOF | |
18247 | /* end confdefs.h. */ | |
6bae0ccf | 18248 | #include "$srcdir/$ac_config_libobj_dir/getloadavg.c" |
98418dba CW |
18249 | #ifdef LDAV_PRIVILEGED |
18250 | Yowza Am I SETGID yet | |
18251 | #endif | |
18252 | _ACEOF | |
18253 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6bae0ccf | 18254 | $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then |
98418dba CW |
18255 | ac_cv_func_getloadavg_setgid=yes |
18256 | else | |
18257 | ac_cv_func_getloadavg_setgid=no | |
18258 | fi | |
18259 | rm -f conftest* | |
b5de8dc0 | 18260 | |
98418dba | 18261 | fi |
ca81d7a0 JD |
18262 | { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5 |
18263 | echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; } | |
98418dba CW |
18264 | if test $ac_cv_func_getloadavg_setgid = yes; then |
18265 | NEED_SETGID=true | |
b5de8dc0 | 18266 | |
c0d27fcc | 18267 | cat >>confdefs.h <<\_ACEOF |
98418dba | 18268 | #define GETLOADAVG_PRIVILEGED 1 |
c0d27fcc | 18269 | _ACEOF |
98418dba | 18270 | |
b5de8dc0 | 18271 | else |
98418dba | 18272 | NEED_SETGID=false |
b5de8dc0 | 18273 | fi |
98418dba CW |
18274 | |
18275 | if test $ac_cv_func_getloadavg_setgid = yes; then | |
ca81d7a0 JD |
18276 | { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5 |
18277 | echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; } | |
98418dba CW |
18278 | if test "${ac_cv_group_kmem+set}" = set; then |
18279 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18280 | else | |
18281 | # On Solaris, /dev/kmem is a symlink. Get info on the real file. | |
18282 | ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null` | |
18283 | # If we got an error (system does not support symlinks), try without -L. | |
18284 | test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem` | |
18285 | ac_cv_group_kmem=`echo $ac_ls_output \ | |
edfaf76d | 18286 | | sed -ne 's/[ ][ ]*/ /g; |
98418dba CW |
18287 | s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/; |
18288 | / /s/.* //;p;'` | |
18289 | ||
b5de8dc0 | 18290 | fi |
ca81d7a0 JD |
18291 | { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5 |
18292 | echo "${ECHO_T}$ac_cv_group_kmem" >&6; } | |
98418dba | 18293 | KMEM_GROUP=$ac_cv_group_kmem |
b5de8dc0 | 18294 | fi |
98418dba CW |
18295 | if test "x$ac_save_LIBS" = x; then |
18296 | GETLOADAVG_LIBS=$LIBS | |
18297 | else | |
18298 | GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"` | |
b5de8dc0 | 18299 | fi |
98418dba | 18300 | LIBS=$ac_save_LIBS |
b5de8dc0 | 18301 | |
c0d27fcc MR |
18302 | |
18303 | ||
ca81d7a0 JD |
18304 | { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5 |
18305 | echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; } | |
b936fae4 | 18306 | if test "${ac_cv_sys_largefile_source+set}" = set; then |
503d2be0 | 18307 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4c343001 | 18308 | else |
b936fae4 | 18309 | while :; do |
503d2be0 | 18310 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
18311 | /* confdefs.h. */ |
18312 | _ACEOF | |
18313 | cat confdefs.h >>conftest.$ac_ext | |
18314 | cat >>conftest.$ac_ext <<_ACEOF | |
18315 | /* end confdefs.h. */ | |
e31c9a09 | 18316 | #include <stdio.h> |
503d2be0 AS |
18317 | int |
18318 | main () | |
18319 | { | |
e31c9a09 | 18320 | return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0); |
b936fae4 AS |
18321 | ; |
18322 | return 0; | |
18323 | } | |
18324 | _ACEOF | |
f053c89f CY |
18325 | rm -f conftest.$ac_objext conftest$ac_exeext |
18326 | if { (ac_try="$ac_link" | |
ca81d7a0 JD |
18327 | case "(($ac_try" in |
18328 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18329 | *) ac_try_echo=$ac_try;; | |
18330 | esac | |
18331 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
f053c89f | 18332 | (eval "$ac_link") 2>conftest.er1 |
b936fae4 | 18333 | ac_status=$? |
edfaf76d LK |
18334 | grep -v '^ *+' conftest.er1 >conftest.err |
18335 | rm -f conftest.er1 | |
18336 | cat conftest.err >&5 | |
c0d27fcc | 18337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
18338 | (exit $ac_status); } && { |
18339 | test -z "$ac_c_werror_flag" || | |
18340 | test ! -s conftest.err | |
18341 | } && test -s conftest$ac_exeext && | |
18342 | $as_test_x conftest$ac_exeext; then | |
18343 | ac_cv_sys_largefile_source=no; break | |
b936fae4 AS |
18344 | else |
18345 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18346 | sed 's/^/| /' conftest.$ac_ext >&5 |
18347 | ||
ca81d7a0 | 18348 | |
b936fae4 | 18349 | fi |
ca81d7a0 | 18350 | |
f053c89f CY |
18351 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
18352 | conftest$ac_exeext conftest.$ac_ext | |
b936fae4 | 18353 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
18354 | /* confdefs.h. */ |
18355 | _ACEOF | |
18356 | cat confdefs.h >>conftest.$ac_ext | |
18357 | cat >>conftest.$ac_ext <<_ACEOF | |
18358 | /* end confdefs.h. */ | |
b936fae4 | 18359 | #define _LARGEFILE_SOURCE 1 |
e31c9a09 | 18360 | #include <stdio.h> |
b936fae4 AS |
18361 | int |
18362 | main () | |
18363 | { | |
e31c9a09 | 18364 | return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0); |
b936fae4 AS |
18365 | ; |
18366 | return 0; | |
18367 | } | |
18368 | _ACEOF | |
f053c89f CY |
18369 | rm -f conftest.$ac_objext conftest$ac_exeext |
18370 | if { (ac_try="$ac_link" | |
ca81d7a0 JD |
18371 | case "(($ac_try" in |
18372 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18373 | *) ac_try_echo=$ac_try;; | |
18374 | esac | |
18375 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
f053c89f | 18376 | (eval "$ac_link") 2>conftest.er1 |
b936fae4 | 18377 | ac_status=$? |
edfaf76d LK |
18378 | grep -v '^ *+' conftest.er1 >conftest.err |
18379 | rm -f conftest.er1 | |
18380 | cat conftest.err >&5 | |
c0d27fcc | 18381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
18382 | (exit $ac_status); } && { |
18383 | test -z "$ac_c_werror_flag" || | |
18384 | test ! -s conftest.err | |
18385 | } && test -s conftest$ac_exeext && | |
18386 | $as_test_x conftest$ac_exeext; then | |
b936fae4 AS |
18387 | ac_cv_sys_largefile_source=1; break |
18388 | else | |
18389 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18390 | sed 's/^/| /' conftest.$ac_ext >&5 |
18391 | ||
ca81d7a0 | 18392 | |
b936fae4 | 18393 | fi |
ca81d7a0 | 18394 | |
f053c89f CY |
18395 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
18396 | conftest$ac_exeext conftest.$ac_ext | |
18397 | ac_cv_sys_largefile_source=unknown | |
b936fae4 AS |
18398 | break |
18399 | done | |
18400 | fi | |
ca81d7a0 JD |
18401 | { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5 |
18402 | echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; } | |
f053c89f CY |
18403 | case $ac_cv_sys_largefile_source in #( |
18404 | no | unknown) ;; | |
18405 | *) | |
c0d27fcc | 18406 | cat >>confdefs.h <<_ACEOF |
b936fae4 | 18407 | #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source |
c0d27fcc | 18408 | _ACEOF |
f053c89f CY |
18409 | ;; |
18410 | esac | |
b936fae4 | 18411 | rm -f conftest* |
4c343001 | 18412 | |
b936fae4 AS |
18413 | # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug |
18414 | # in glibc 2.1.3, but that breaks too many other things. | |
18415 | # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. | |
f053c89f | 18416 | if test $ac_cv_sys_largefile_source != unknown; then |
b936fae4 | 18417 | |
c0d27fcc | 18418 | cat >>confdefs.h <<\_ACEOF |
b936fae4 | 18419 | #define HAVE_FSEEKO 1 |
c0d27fcc | 18420 | _ACEOF |
b936fae4 | 18421 | |
4c343001 DL |
18422 | fi |
18423 | ||
c0d27fcc | 18424 | |
52dbaac8 PE |
18425 | # Configure getopt. |
18426 | # getopt.m4 serial 10 | |
18427 | ||
18428 | # The getopt module assume you want GNU getopt, with getopt_long etc, | |
18429 | # rather than vanilla POSIX getopt. This means your your code should | |
18430 | # always include <getopt.h> for the getopt prototypes. | |
18431 | ||
18432 | ||
18433 | ||
18434 | ||
18435 | ||
18436 | ||
18437 | ||
18438 | ||
18439 | ||
18440 | ||
18441 | ||
18442 | # Prerequisites of lib/getopt*. | |
18443 | ||
18444 | ||
18445 | ||
10a3b1a1 | 18446 | |
52dbaac8 PE |
18447 | GETOPT_H= |
18448 | ||
18449 | for ac_header in getopt.h | |
18450 | do | |
18451 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
ca81d7a0 JD |
18452 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
18453 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
18454 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
18455 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
52dbaac8 PE |
18456 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18457 | fi | |
ca81d7a0 JD |
18458 | ac_res=`eval echo '${'$as_ac_Header'}'` |
18459 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
18460 | echo "${ECHO_T}$ac_res" >&6; } | |
52dbaac8 PE |
18461 | else |
18462 | # Is the header compilable? | |
ca81d7a0 JD |
18463 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
18464 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
52dbaac8 PE |
18465 | cat >conftest.$ac_ext <<_ACEOF |
18466 | /* confdefs.h. */ | |
18467 | _ACEOF | |
18468 | cat confdefs.h >>conftest.$ac_ext | |
18469 | cat >>conftest.$ac_ext <<_ACEOF | |
18470 | /* end confdefs.h. */ | |
18471 | $ac_includes_default | |
18472 | #include <$ac_header> | |
18473 | _ACEOF | |
18474 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
18475 | if { (ac_try="$ac_compile" |
18476 | case "(($ac_try" in | |
18477 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18478 | *) ac_try_echo=$ac_try;; | |
18479 | esac | |
18480 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
18481 | (eval "$ac_compile") 2>conftest.er1 | |
52dbaac8 PE |
18482 | ac_status=$? |
18483 | grep -v '^ *+' conftest.er1 >conftest.err | |
18484 | rm -f conftest.er1 | |
18485 | cat conftest.err >&5 | |
18486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f053c89f CY |
18487 | (exit $ac_status); } && { |
18488 | test -z "$ac_c_werror_flag" || | |
18489 | test ! -s conftest.err | |
18490 | } && test -s conftest.$ac_objext; then | |
52dbaac8 PE |
18491 | ac_header_compiler=yes |
18492 | else | |
18493 | echo "$as_me: failed program was:" >&5 | |
18494 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18495 | ||
ca81d7a0 | 18496 | ac_header_compiler=no |
52dbaac8 | 18497 | fi |
ca81d7a0 JD |
18498 | |
18499 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18500 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
18501 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
52dbaac8 PE |
18502 | |
18503 | # Is the header present? | |
ca81d7a0 JD |
18504 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
18505 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
52dbaac8 PE |
18506 | cat >conftest.$ac_ext <<_ACEOF |
18507 | /* confdefs.h. */ | |
18508 | _ACEOF | |
18509 | cat confdefs.h >>conftest.$ac_ext | |
18510 | cat >>conftest.$ac_ext <<_ACEOF | |
18511 | /* end confdefs.h. */ | |
18512 | #include <$ac_header> | |
18513 | _ACEOF | |
ca81d7a0 JD |
18514 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
18515 | case "(($ac_try" in | |
18516 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18517 | *) ac_try_echo=$ac_try;; | |
18518 | esac | |
18519 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
18520 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
52dbaac8 PE |
18521 | ac_status=$? |
18522 | grep -v '^ *+' conftest.er1 >conftest.err | |
18523 | rm -f conftest.er1 | |
18524 | cat conftest.err >&5 | |
18525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f053c89f CY |
18526 | (exit $ac_status); } >/dev/null && { |
18527 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
18528 | test ! -s conftest.err | |
18529 | }; then | |
52dbaac8 PE |
18530 | ac_header_preproc=yes |
18531 | else | |
18532 | echo "$as_me: failed program was:" >&5 | |
18533 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18534 | ||
18535 | ac_header_preproc=no | |
18536 | fi | |
ca81d7a0 | 18537 | |
52dbaac8 | 18538 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
18539 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
18540 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
52dbaac8 PE |
18541 | |
18542 | # So? What about this header? | |
18543 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
18544 | yes:no: ) | |
18545 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
18546 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
18547 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
18548 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
18549 | ac_header_preproc=yes | |
18550 | ;; | |
18551 | no:yes:* ) | |
18552 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
18553 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
18554 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
18555 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
18556 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
18557 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
18558 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
18559 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
18560 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
18561 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
18562 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
18563 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 18564 | |
52dbaac8 PE |
18565 | ;; |
18566 | esac | |
ca81d7a0 JD |
18567 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
18568 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
18569 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
52dbaac8 PE |
18570 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18571 | else | |
18572 | eval "$as_ac_Header=\$ac_header_preproc" | |
18573 | fi | |
ca81d7a0 JD |
18574 | ac_res=`eval echo '${'$as_ac_Header'}'` |
18575 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
18576 | echo "${ECHO_T}$ac_res" >&6; } | |
52dbaac8 PE |
18577 | |
18578 | fi | |
18579 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
18580 | cat >>confdefs.h <<_ACEOF | |
18581 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
18582 | _ACEOF | |
18583 | ||
18584 | else | |
18585 | GETOPT_H=getopt.h | |
18586 | fi | |
18587 | ||
18588 | done | |
18589 | ||
18590 | if test -z "$GETOPT_H"; then | |
18591 | ||
18592 | for ac_func in getopt_long_only | |
18593 | do | |
18594 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
ca81d7a0 JD |
18595 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
18596 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
18597 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
52dbaac8 PE |
18598 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18599 | else | |
18600 | cat >conftest.$ac_ext <<_ACEOF | |
18601 | /* confdefs.h. */ | |
18602 | _ACEOF | |
18603 | cat confdefs.h >>conftest.$ac_ext | |
18604 | cat >>conftest.$ac_ext <<_ACEOF | |
18605 | /* end confdefs.h. */ | |
18606 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
18607 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
18608 | #define $ac_func innocuous_$ac_func | |
18609 | ||
18610 | /* System header to define __stub macros and hopefully few prototypes, | |
18611 | which can conflict with char $ac_func (); below. | |
18612 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18613 | <limits.h> exists even on freestanding compilers. */ | |
18614 | ||
18615 | #ifdef __STDC__ | |
18616 | # include <limits.h> | |
18617 | #else | |
18618 | # include <assert.h> | |
18619 | #endif | |
18620 | ||
18621 | #undef $ac_func | |
18622 | ||
ca81d7a0 JD |
18623 | /* Override any GCC internal prototype to avoid an error. |
18624 | Use char because int might match the return type of a GCC | |
18625 | builtin and then its argument prototype would still apply. */ | |
52dbaac8 PE |
18626 | #ifdef __cplusplus |
18627 | extern "C" | |
52dbaac8 | 18628 | #endif |
52dbaac8 PE |
18629 | char $ac_func (); |
18630 | /* The GNU C library defines this for functions which it implements | |
18631 | to always fail with ENOSYS. Some functions are actually named | |
18632 | something starting with __ and the normal name is an alias. */ | |
ca81d7a0 | 18633 | #if defined __stub_$ac_func || defined __stub___$ac_func |
52dbaac8 | 18634 | choke me |
52dbaac8 PE |
18635 | #endif |
18636 | ||
18637 | int | |
18638 | main () | |
18639 | { | |
ca81d7a0 | 18640 | return $ac_func (); |
52dbaac8 PE |
18641 | ; |
18642 | return 0; | |
18643 | } | |
18644 | _ACEOF | |
18645 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
18646 | if { (ac_try="$ac_link" |
18647 | case "(($ac_try" in | |
18648 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18649 | *) ac_try_echo=$ac_try;; | |
18650 | esac | |
18651 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
18652 | (eval "$ac_link") 2>conftest.er1 | |
52dbaac8 PE |
18653 | ac_status=$? |
18654 | grep -v '^ *+' conftest.er1 >conftest.err | |
18655 | rm -f conftest.er1 | |
18656 | cat conftest.err >&5 | |
18657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f053c89f CY |
18658 | (exit $ac_status); } && { |
18659 | test -z "$ac_c_werror_flag" || | |
18660 | test ! -s conftest.err | |
18661 | } && test -s conftest$ac_exeext && | |
18662 | $as_test_x conftest$ac_exeext; then | |
52dbaac8 PE |
18663 | eval "$as_ac_var=yes" |
18664 | else | |
18665 | echo "$as_me: failed program was:" >&5 | |
18666 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18667 | ||
ca81d7a0 | 18668 | eval "$as_ac_var=no" |
52dbaac8 | 18669 | fi |
ca81d7a0 | 18670 | |
f053c89f | 18671 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
52dbaac8 PE |
18672 | conftest$ac_exeext conftest.$ac_ext |
18673 | fi | |
ca81d7a0 JD |
18674 | ac_res=`eval echo '${'$as_ac_var'}'` |
18675 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
18676 | echo "${ECHO_T}$ac_res" >&6; } | |
52dbaac8 PE |
18677 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
18678 | cat >>confdefs.h <<_ACEOF | |
18679 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
18680 | _ACEOF | |
18681 | ||
18682 | else | |
18683 | GETOPT_H=getopt.h | |
18684 | fi | |
18685 | done | |
18686 | ||
18687 | fi | |
18688 | ||
18689 | if test -z "$GETOPT_H"; then | |
ca81d7a0 JD |
18690 | { echo "$as_me:$LINENO: checking whether optreset is declared" >&5 |
18691 | echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; } | |
52dbaac8 PE |
18692 | if test "${ac_cv_have_decl_optreset+set}" = set; then |
18693 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18694 | else | |
18695 | cat >conftest.$ac_ext <<_ACEOF | |
18696 | /* confdefs.h. */ | |
18697 | _ACEOF | |
18698 | cat confdefs.h >>conftest.$ac_ext | |
18699 | cat >>conftest.$ac_ext <<_ACEOF | |
18700 | /* end confdefs.h. */ | |
18701 | #include <getopt.h> | |
18702 | ||
18703 | int | |
18704 | main () | |
18705 | { | |
18706 | #ifndef optreset | |
f053c89f | 18707 | (void) optreset; |
52dbaac8 PE |
18708 | #endif |
18709 | ||
18710 | ; | |
18711 | return 0; | |
18712 | } | |
18713 | _ACEOF | |
18714 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
18715 | if { (ac_try="$ac_compile" |
18716 | case "(($ac_try" in | |
18717 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18718 | *) ac_try_echo=$ac_try;; | |
18719 | esac | |
18720 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
18721 | (eval "$ac_compile") 2>conftest.er1 | |
52dbaac8 PE |
18722 | ac_status=$? |
18723 | grep -v '^ *+' conftest.er1 >conftest.err | |
18724 | rm -f conftest.er1 | |
18725 | cat conftest.err >&5 | |
18726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f053c89f CY |
18727 | (exit $ac_status); } && { |
18728 | test -z "$ac_c_werror_flag" || | |
18729 | test ! -s conftest.err | |
18730 | } && test -s conftest.$ac_objext; then | |
52dbaac8 PE |
18731 | ac_cv_have_decl_optreset=yes |
18732 | else | |
18733 | echo "$as_me: failed program was:" >&5 | |
18734 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18735 | ||
ca81d7a0 | 18736 | ac_cv_have_decl_optreset=no |
52dbaac8 | 18737 | fi |
ca81d7a0 JD |
18738 | |
18739 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
52dbaac8 | 18740 | fi |
ca81d7a0 JD |
18741 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5 |
18742 | echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; } | |
52dbaac8 PE |
18743 | if test $ac_cv_have_decl_optreset = yes; then |
18744 | GETOPT_H=getopt.h | |
18745 | fi | |
18746 | ||
18747 | fi | |
18748 | ||
18749 | if test -z "$GETOPT_H"; then | |
ca81d7a0 JD |
18750 | { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5 |
18751 | echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; } | |
52dbaac8 PE |
18752 | if test "${gl_cv_func_gnu_getopt+set}" = set; then |
18753 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18754 | else | |
18755 | if test "$cross_compiling" = yes; then | |
ca81d7a0 JD |
18756 | { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5 |
18757 | echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; } | |
52dbaac8 PE |
18758 | if test "${ac_cv_have_decl_getopt_clip+set}" = set; then |
18759 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18760 | else | |
18761 | cat >conftest.$ac_ext <<_ACEOF | |
18762 | /* confdefs.h. */ | |
18763 | _ACEOF | |
18764 | cat confdefs.h >>conftest.$ac_ext | |
18765 | cat >>conftest.$ac_ext <<_ACEOF | |
18766 | /* end confdefs.h. */ | |
18767 | #include <getopt.h> | |
18768 | ||
18769 | int | |
18770 | main () | |
18771 | { | |
18772 | #ifndef getopt_clip | |
f053c89f | 18773 | (void) getopt_clip; |
52dbaac8 PE |
18774 | #endif |
18775 | ||
18776 | ; | |
18777 | return 0; | |
18778 | } | |
18779 | _ACEOF | |
18780 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
18781 | if { (ac_try="$ac_compile" |
18782 | case "(($ac_try" in | |
18783 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18784 | *) ac_try_echo=$ac_try;; | |
18785 | esac | |
18786 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
18787 | (eval "$ac_compile") 2>conftest.er1 | |
52dbaac8 PE |
18788 | ac_status=$? |
18789 | grep -v '^ *+' conftest.er1 >conftest.err | |
18790 | rm -f conftest.er1 | |
18791 | cat conftest.err >&5 | |
18792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f053c89f CY |
18793 | (exit $ac_status); } && { |
18794 | test -z "$ac_c_werror_flag" || | |
18795 | test ! -s conftest.err | |
18796 | } && test -s conftest.$ac_objext; then | |
52dbaac8 PE |
18797 | ac_cv_have_decl_getopt_clip=yes |
18798 | else | |
18799 | echo "$as_me: failed program was:" >&5 | |
18800 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18801 | ||
ca81d7a0 | 18802 | ac_cv_have_decl_getopt_clip=no |
52dbaac8 | 18803 | fi |
ca81d7a0 JD |
18804 | |
18805 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
52dbaac8 | 18806 | fi |
ca81d7a0 JD |
18807 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5 |
18808 | echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; } | |
52dbaac8 PE |
18809 | if test $ac_cv_have_decl_getopt_clip = yes; then |
18810 | gl_cv_func_gnu_getopt=no | |
18811 | else | |
18812 | gl_cv_func_gnu_getopt=yes | |
18813 | fi | |
18814 | ||
18815 | else | |
18816 | cat >conftest.$ac_ext <<_ACEOF | |
18817 | /* confdefs.h. */ | |
18818 | _ACEOF | |
18819 | cat confdefs.h >>conftest.$ac_ext | |
18820 | cat >>conftest.$ac_ext <<_ACEOF | |
18821 | /* end confdefs.h. */ | |
18822 | #include <getopt.h> | |
18823 | int | |
18824 | main () | |
18825 | { | |
18826 | ||
18827 | char *myargv[3]; | |
18828 | myargv[0] = "conftest"; | |
18829 | myargv[1] = "-+"; | |
18830 | myargv[2] = 0; | |
18831 | return getopt (2, myargv, "+a") != '?'; | |
18832 | ||
18833 | ; | |
18834 | return 0; | |
18835 | } | |
18836 | _ACEOF | |
18837 | rm -f conftest$ac_exeext | |
ca81d7a0 JD |
18838 | if { (ac_try="$ac_link" |
18839 | case "(($ac_try" in | |
18840 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18841 | *) ac_try_echo=$ac_try;; | |
18842 | esac | |
18843 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
18844 | (eval "$ac_link") 2>&5 | |
52dbaac8 PE |
18845 | ac_status=$? |
18846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18847 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
ca81d7a0 JD |
18848 | { (case "(($ac_try" in |
18849 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18850 | *) ac_try_echo=$ac_try;; | |
18851 | esac | |
18852 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
18853 | (eval "$ac_try") 2>&5 | |
52dbaac8 PE |
18854 | ac_status=$? |
18855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18856 | (exit $ac_status); }; }; then | |
18857 | gl_cv_func_gnu_getopt=yes | |
18858 | else | |
18859 | echo "$as_me: program exited with status $ac_status" >&5 | |
18860 | echo "$as_me: failed program was:" >&5 | |
18861 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18862 | ||
18863 | ( exit $ac_status ) | |
18864 | gl_cv_func_gnu_getopt=no | |
18865 | fi | |
ca81d7a0 | 18866 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
52dbaac8 | 18867 | fi |
ca81d7a0 JD |
18868 | |
18869 | ||
52dbaac8 | 18870 | fi |
ca81d7a0 JD |
18871 | { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5 |
18872 | echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; } | |
52dbaac8 PE |
18873 | if test "$gl_cv_func_gnu_getopt" = "no"; then |
18874 | GETOPT_H=getopt.h | |
18875 | fi | |
18876 | fi | |
18877 | ||
18878 | ||
18879 | ||
18880 | if test -n "$GETOPT_H"; then | |
18881 | ||
18882 | ||
18883 | GETOPT_H=getopt.h | |
18884 | ||
18885 | cat >>confdefs.h <<\_ACEOF | |
18886 | #define __GETOPT_PREFIX rpl_ | |
18887 | _ACEOF | |
18888 | ||
18889 | ||
18890 | ||
18891 | : | |
18892 | GETOPTOBJS='getopt.o getopt1.o' | |
18893 | ||
18894 | fi | |
18895 | ||
18896 | ||
18897 | ||
18898 | ||
ca81d7a0 JD |
18899 | { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5 |
18900 | echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; } | |
cd958eb3 MB |
18901 | if test "${ac_cv_func_getpgrp_void+set}" = set; then |
18902 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18903 | else | |
18904 | # Use it with a single arg. | |
18905 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
18906 | /* confdefs.h. */ |
18907 | _ACEOF | |
18908 | cat confdefs.h >>conftest.$ac_ext | |
18909 | cat >>conftest.$ac_ext <<_ACEOF | |
18910 | /* end confdefs.h. */ | |
cd958eb3 MB |
18911 | $ac_includes_default |
18912 | int | |
18913 | main () | |
18914 | { | |
18915 | getpgrp (0); | |
18916 | ; | |
18917 | return 0; | |
18918 | } | |
18919 | _ACEOF | |
18920 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
18921 | if { (ac_try="$ac_compile" |
18922 | case "(($ac_try" in | |
18923 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18924 | *) ac_try_echo=$ac_try;; | |
18925 | esac | |
18926 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
18927 | (eval "$ac_compile") 2>conftest.er1 | |
cd958eb3 | 18928 | ac_status=$? |
edfaf76d LK |
18929 | grep -v '^ *+' conftest.er1 >conftest.err |
18930 | rm -f conftest.er1 | |
18931 | cat conftest.err >&5 | |
cd958eb3 | 18932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
18933 | (exit $ac_status); } && { |
18934 | test -z "$ac_c_werror_flag" || | |
18935 | test ! -s conftest.err | |
18936 | } && test -s conftest.$ac_objext; then | |
cd958eb3 MB |
18937 | ac_cv_func_getpgrp_void=no |
18938 | else | |
18939 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18940 | sed 's/^/| /' conftest.$ac_ext >&5 |
18941 | ||
ca81d7a0 | 18942 | ac_cv_func_getpgrp_void=yes |
cd958eb3 | 18943 | fi |
ca81d7a0 JD |
18944 | |
18945 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
cd958eb3 MB |
18946 | |
18947 | fi | |
ca81d7a0 JD |
18948 | { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5 |
18949 | echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; } | |
cd958eb3 MB |
18950 | if test $ac_cv_func_getpgrp_void = yes; then |
18951 | ||
18952 | cat >>confdefs.h <<\_ACEOF | |
18953 | #define GETPGRP_VOID 1 | |
18954 | _ACEOF | |
18955 | ||
18956 | fi | |
18957 | ||
18958 | ||
973a76b1 DL |
18959 | |
18960 | for ac_func in strftime | |
18961 | do | |
18962 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
ca81d7a0 JD |
18963 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
18964 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
18965 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
973a76b1 DL |
18966 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18967 | else | |
18968 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
18969 | /* confdefs.h. */ |
18970 | _ACEOF | |
18971 | cat confdefs.h >>conftest.$ac_ext | |
18972 | cat >>conftest.$ac_ext <<_ACEOF | |
18973 | /* end confdefs.h. */ | |
edfaf76d LK |
18974 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
18975 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
18976 | #define $ac_func innocuous_$ac_func | |
18977 | ||
973a76b1 | 18978 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
18979 | which can conflict with char $ac_func (); below. |
18980 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18981 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 18982 | |
19650fd6 AS |
18983 | #ifdef __STDC__ |
18984 | # include <limits.h> | |
18985 | #else | |
18986 | # include <assert.h> | |
18987 | #endif | |
edfaf76d LK |
18988 | |
18989 | #undef $ac_func | |
18990 | ||
ca81d7a0 JD |
18991 | /* Override any GCC internal prototype to avoid an error. |
18992 | Use char because int might match the return type of a GCC | |
18993 | builtin and then its argument prototype would still apply. */ | |
973a76b1 DL |
18994 | #ifdef __cplusplus |
18995 | extern "C" | |
973a76b1 | 18996 | #endif |
973a76b1 DL |
18997 | char $ac_func (); |
18998 | /* The GNU C library defines this for functions which it implements | |
18999 | to always fail with ENOSYS. Some functions are actually named | |
19000 | something starting with __ and the normal name is an alias. */ | |
ca81d7a0 | 19001 | #if defined __stub_$ac_func || defined __stub___$ac_func |
973a76b1 | 19002 | choke me |
973a76b1 DL |
19003 | #endif |
19004 | ||
19650fd6 AS |
19005 | int |
19006 | main () | |
19007 | { | |
ca81d7a0 | 19008 | return $ac_func (); |
973a76b1 DL |
19009 | ; |
19010 | return 0; | |
19011 | } | |
19012 | _ACEOF | |
19013 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
19014 | if { (ac_try="$ac_link" |
19015 | case "(($ac_try" in | |
19016 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19017 | *) ac_try_echo=$ac_try;; | |
19018 | esac | |
19019 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19020 | (eval "$ac_link") 2>conftest.er1 | |
973a76b1 | 19021 | ac_status=$? |
edfaf76d LK |
19022 | grep -v '^ *+' conftest.er1 >conftest.err |
19023 | rm -f conftest.er1 | |
19024 | cat conftest.err >&5 | |
973a76b1 | 19025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
19026 | (exit $ac_status); } && { |
19027 | test -z "$ac_c_werror_flag" || | |
19028 | test ! -s conftest.err | |
19029 | } && test -s conftest$ac_exeext && | |
19030 | $as_test_x conftest$ac_exeext; then | |
973a76b1 DL |
19031 | eval "$as_ac_var=yes" |
19032 | else | |
19033 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
19034 | sed 's/^/| /' conftest.$ac_ext >&5 |
19035 | ||
ca81d7a0 | 19036 | eval "$as_ac_var=no" |
973a76b1 | 19037 | fi |
ca81d7a0 | 19038 | |
f053c89f | 19039 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 19040 | conftest$ac_exeext conftest.$ac_ext |
973a76b1 | 19041 | fi |
ca81d7a0 JD |
19042 | ac_res=`eval echo '${'$as_ac_var'}'` |
19043 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
19044 | echo "${ECHO_T}$ac_res" >&6; } | |
973a76b1 DL |
19045 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
19046 | cat >>confdefs.h <<_ACEOF | |
19047 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
19048 | _ACEOF | |
19049 | ||
19050 | else | |
19051 | # strftime is in -lintl on SCO UNIX. | |
ca81d7a0 JD |
19052 | { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5 |
19053 | echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; } | |
973a76b1 DL |
19054 | if test "${ac_cv_lib_intl_strftime+set}" = set; then |
19055 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19056 | else | |
19057 | ac_check_lib_save_LIBS=$LIBS | |
19058 | LIBS="-lintl $LIBS" | |
19059 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
19060 | /* confdefs.h. */ |
19061 | _ACEOF | |
19062 | cat confdefs.h >>conftest.$ac_ext | |
19063 | cat >>conftest.$ac_ext <<_ACEOF | |
19064 | /* end confdefs.h. */ | |
973a76b1 | 19065 | |
ca81d7a0 JD |
19066 | /* Override any GCC internal prototype to avoid an error. |
19067 | Use char because int might match the return type of a GCC | |
19068 | builtin and then its argument prototype would still apply. */ | |
973a76b1 DL |
19069 | #ifdef __cplusplus |
19070 | extern "C" | |
19071 | #endif | |
973a76b1 DL |
19072 | char strftime (); |
19073 | int | |
19074 | main () | |
19075 | { | |
ca81d7a0 | 19076 | return strftime (); |
973a76b1 DL |
19077 | ; |
19078 | return 0; | |
19079 | } | |
19080 | _ACEOF | |
19081 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
19082 | if { (ac_try="$ac_link" |
19083 | case "(($ac_try" in | |
19084 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19085 | *) ac_try_echo=$ac_try;; | |
19086 | esac | |
19087 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19088 | (eval "$ac_link") 2>conftest.er1 | |
973a76b1 | 19089 | ac_status=$? |
edfaf76d LK |
19090 | grep -v '^ *+' conftest.er1 >conftest.err |
19091 | rm -f conftest.er1 | |
19092 | cat conftest.err >&5 | |
973a76b1 | 19093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
19094 | (exit $ac_status); } && { |
19095 | test -z "$ac_c_werror_flag" || | |
19096 | test ! -s conftest.err | |
19097 | } && test -s conftest$ac_exeext && | |
19098 | $as_test_x conftest$ac_exeext; then | |
973a76b1 DL |
19099 | ac_cv_lib_intl_strftime=yes |
19100 | else | |
19101 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
19102 | sed 's/^/| /' conftest.$ac_ext >&5 |
19103 | ||
ca81d7a0 | 19104 | ac_cv_lib_intl_strftime=no |
973a76b1 | 19105 | fi |
ca81d7a0 | 19106 | |
f053c89f | 19107 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 19108 | conftest$ac_exeext conftest.$ac_ext |
973a76b1 DL |
19109 | LIBS=$ac_check_lib_save_LIBS |
19110 | fi | |
ca81d7a0 JD |
19111 | { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5 |
19112 | echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; } | |
973a76b1 DL |
19113 | if test $ac_cv_lib_intl_strftime = yes; then |
19114 | cat >>confdefs.h <<\_ACEOF | |
19115 | #define HAVE_STRFTIME 1 | |
19116 | _ACEOF | |
19117 | ||
19118 | LIBS="-lintl $LIBS" | |
19119 | fi | |
19120 | ||
19121 | fi | |
19122 | done | |
19123 | ||
19124 | ||
b936fae4 AS |
19125 | # UNIX98 PTYs. |
19126 | ||
19127 | for ac_func in grantpt | |
503d2be0 AS |
19128 | do |
19129 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
ca81d7a0 JD |
19130 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
19131 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
19132 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 19133 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4c343001 | 19134 | else |
503d2be0 | 19135 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
19136 | /* confdefs.h. */ |
19137 | _ACEOF | |
19138 | cat confdefs.h >>conftest.$ac_ext | |
19139 | cat >>conftest.$ac_ext <<_ACEOF | |
19140 | /* end confdefs.h. */ | |
edfaf76d LK |
19141 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
19142 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
19143 | #define $ac_func innocuous_$ac_func | |
19144 | ||
503d2be0 | 19145 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
19146 | which can conflict with char $ac_func (); below. |
19147 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
19148 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 19149 | |
19650fd6 AS |
19150 | #ifdef __STDC__ |
19151 | # include <limits.h> | |
19152 | #else | |
19153 | # include <assert.h> | |
19154 | #endif | |
edfaf76d LK |
19155 | |
19156 | #undef $ac_func | |
19157 | ||
ca81d7a0 JD |
19158 | /* Override any GCC internal prototype to avoid an error. |
19159 | Use char because int might match the return type of a GCC | |
19160 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
19161 | #ifdef __cplusplus |
19162 | extern "C" | |
19163 | #endif | |
503d2be0 | 19164 | char $ac_func (); |
503d2be0 AS |
19165 | /* The GNU C library defines this for functions which it implements |
19166 | to always fail with ENOSYS. Some functions are actually named | |
19167 | something starting with __ and the normal name is an alias. */ | |
ca81d7a0 | 19168 | #if defined __stub_$ac_func || defined __stub___$ac_func |
503d2be0 | 19169 | choke me |
503d2be0 | 19170 | #endif |
4c343001 | 19171 | |
19650fd6 AS |
19172 | int |
19173 | main () | |
19174 | { | |
ca81d7a0 | 19175 | return $ac_func (); |
503d2be0 AS |
19176 | ; |
19177 | return 0; | |
19178 | } | |
19179 | _ACEOF | |
19180 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
19181 | if { (ac_try="$ac_link" |
19182 | case "(($ac_try" in | |
19183 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19184 | *) ac_try_echo=$ac_try;; | |
19185 | esac | |
19186 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19187 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 19188 | ac_status=$? |
edfaf76d LK |
19189 | grep -v '^ *+' conftest.er1 >conftest.err |
19190 | rm -f conftest.er1 | |
19191 | cat conftest.err >&5 | |
c0d27fcc | 19192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
19193 | (exit $ac_status); } && { |
19194 | test -z "$ac_c_werror_flag" || | |
19195 | test ! -s conftest.err | |
19196 | } && test -s conftest$ac_exeext && | |
19197 | $as_test_x conftest$ac_exeext; then | |
503d2be0 AS |
19198 | eval "$as_ac_var=yes" |
19199 | else | |
19200 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
19201 | sed 's/^/| /' conftest.$ac_ext >&5 |
19202 | ||
ca81d7a0 | 19203 | eval "$as_ac_var=no" |
503d2be0 | 19204 | fi |
ca81d7a0 | 19205 | |
f053c89f | 19206 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 19207 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 | 19208 | fi |
ca81d7a0 JD |
19209 | ac_res=`eval echo '${'$as_ac_var'}'` |
19210 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
19211 | echo "${ECHO_T}$ac_res" >&6; } | |
503d2be0 | 19212 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
c0d27fcc | 19213 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 19214 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 19215 | _ACEOF |
4c343001 DL |
19216 | |
19217 | fi | |
503d2be0 AS |
19218 | done |
19219 | ||
c0d27fcc | 19220 | |
b936fae4 | 19221 | # PTY-related GNU extensions. |
4c343001 | 19222 | |
b936fae4 AS |
19223 | for ac_func in getpt |
19224 | do | |
19225 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
ca81d7a0 JD |
19226 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
19227 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
19228 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 19229 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4c343001 | 19230 | else |
b936fae4 | 19231 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
19232 | /* confdefs.h. */ |
19233 | _ACEOF | |
19234 | cat confdefs.h >>conftest.$ac_ext | |
19235 | cat >>conftest.$ac_ext <<_ACEOF | |
19236 | /* end confdefs.h. */ | |
edfaf76d LK |
19237 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
19238 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
19239 | #define $ac_func innocuous_$ac_func | |
19240 | ||
087121cc | 19241 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
19242 | which can conflict with char $ac_func (); below. |
19243 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
19244 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 19245 | |
19650fd6 AS |
19246 | #ifdef __STDC__ |
19247 | # include <limits.h> | |
19248 | #else | |
19249 | # include <assert.h> | |
19250 | #endif | |
edfaf76d LK |
19251 | |
19252 | #undef $ac_func | |
19253 | ||
ca81d7a0 JD |
19254 | /* Override any GCC internal prototype to avoid an error. |
19255 | Use char because int might match the return type of a GCC | |
19256 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
19257 | #ifdef __cplusplus |
19258 | extern "C" | |
19259 | #endif | |
503d2be0 | 19260 | char $ac_func (); |
087121cc GM |
19261 | /* The GNU C library defines this for functions which it implements |
19262 | to always fail with ENOSYS. Some functions are actually named | |
19263 | something starting with __ and the normal name is an alias. */ | |
ca81d7a0 | 19264 | #if defined __stub_$ac_func || defined __stub___$ac_func |
087121cc | 19265 | choke me |
087121cc GM |
19266 | #endif |
19267 | ||
19650fd6 AS |
19268 | int |
19269 | main () | |
19270 | { | |
ca81d7a0 | 19271 | return $ac_func (); |
503d2be0 AS |
19272 | ; |
19273 | return 0; | |
19274 | } | |
19275 | _ACEOF | |
19276 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
19277 | if { (ac_try="$ac_link" |
19278 | case "(($ac_try" in | |
19279 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19280 | *) ac_try_echo=$ac_try;; | |
19281 | esac | |
19282 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
f053c89f | 19283 | (eval "$ac_link") 2>conftest.er1 |
503d2be0 | 19284 | ac_status=$? |
f053c89f CY |
19285 | grep -v '^ *+' conftest.er1 >conftest.err |
19286 | rm -f conftest.er1 | |
19287 | cat conftest.err >&5 | |
c0d27fcc | 19288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
19289 | (exit $ac_status); } && { |
19290 | test -z "$ac_c_werror_flag" || | |
19291 | test ! -s conftest.err | |
19292 | } && test -s conftest$ac_exeext && | |
19293 | $as_test_x conftest$ac_exeext; then | |
503d2be0 AS |
19294 | eval "$as_ac_var=yes" |
19295 | else | |
19296 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
19297 | sed 's/^/| /' conftest.$ac_ext >&5 |
19298 | ||
ca81d7a0 | 19299 | eval "$as_ac_var=no" |
503d2be0 | 19300 | fi |
ca81d7a0 | 19301 | |
f053c89f | 19302 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 19303 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 | 19304 | fi |
ca81d7a0 JD |
19305 | ac_res=`eval echo '${'$as_ac_var'}'` |
19306 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
19307 | echo "${ECHO_T}$ac_res" >&6; } | |
503d2be0 | 19308 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
c0d27fcc | 19309 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 19310 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 19311 | _ACEOF |
087121cc | 19312 | |
087121cc GM |
19313 | fi |
19314 | done | |
19315 | ||
c0d27fcc | 19316 | |
ba4481b5 DL |
19317 | # Check this now, so that we will NOT find the above functions in ncurses. |
19318 | # That is because we have not set up to link ncurses in lib-src. | |
19319 | # It's better to believe a function is not available | |
19320 | # than to expect to find it in ncurses. | |
503d2be0 | 19321 | |
ca81d7a0 JD |
19322 | { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5 |
19323 | echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; } | |
503d2be0 AS |
19324 | if test "${ac_cv_lib_ncurses_tparm+set}" = set; then |
19325 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 19326 | else |
503d2be0 | 19327 | ac_check_lib_save_LIBS=$LIBS |
ba4481b5 | 19328 | LIBS="-lncurses $LIBS" |
503d2be0 | 19329 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
19330 | /* confdefs.h. */ |
19331 | _ACEOF | |
19332 | cat confdefs.h >>conftest.$ac_ext | |
19333 | cat >>conftest.$ac_ext <<_ACEOF | |
19334 | /* end confdefs.h. */ | |
503d2be0 | 19335 | |
ca81d7a0 JD |
19336 | /* Override any GCC internal prototype to avoid an error. |
19337 | Use char because int might match the return type of a GCC | |
19338 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
19339 | #ifdef __cplusplus |
19340 | extern "C" | |
19341 | #endif | |
503d2be0 AS |
19342 | char tparm (); |
19343 | int | |
19344 | main () | |
19345 | { | |
ca81d7a0 | 19346 | return tparm (); |
503d2be0 AS |
19347 | ; |
19348 | return 0; | |
19349 | } | |
19350 | _ACEOF | |
19351 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
19352 | if { (ac_try="$ac_link" |
19353 | case "(($ac_try" in | |
19354 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19355 | *) ac_try_echo=$ac_try;; | |
19356 | esac | |
19357 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19358 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 19359 | ac_status=$? |
edfaf76d LK |
19360 | grep -v '^ *+' conftest.er1 >conftest.err |
19361 | rm -f conftest.er1 | |
19362 | cat conftest.err >&5 | |
c0d27fcc | 19363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
19364 | (exit $ac_status); } && { |
19365 | test -z "$ac_c_werror_flag" || | |
19366 | test ! -s conftest.err | |
19367 | } && test -s conftest$ac_exeext && | |
19368 | $as_test_x conftest$ac_exeext; then | |
503d2be0 AS |
19369 | ac_cv_lib_ncurses_tparm=yes |
19370 | else | |
19371 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
19372 | sed 's/^/| /' conftest.$ac_ext >&5 |
19373 | ||
ca81d7a0 | 19374 | ac_cv_lib_ncurses_tparm=no |
503d2be0 | 19375 | fi |
ca81d7a0 | 19376 | |
f053c89f | 19377 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 19378 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 AS |
19379 | LIBS=$ac_check_lib_save_LIBS |
19380 | fi | |
ca81d7a0 JD |
19381 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5 |
19382 | echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; } | |
503d2be0 | 19383 | if test $ac_cv_lib_ncurses_tparm = yes; then |
c0d27fcc | 19384 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 19385 | #define HAVE_LIBNCURSES 1 |
c0d27fcc | 19386 | _ACEOF |
ba4481b5 DL |
19387 | |
19388 | LIBS="-lncurses $LIBS" | |
19389 | ||
ba4481b5 DL |
19390 | fi |
19391 | ||
c0d27fcc | 19392 | |
84e70f78 KR |
19393 | # Do we need the Hesiod library to provide the support routines? |
19394 | if test "$with_hesiod" = yes ; then | |
19395 | # Don't set $LIBS here -- see comments above. | |
19396 | resolv=no | |
ca81d7a0 JD |
19397 | { echo "$as_me:$LINENO: checking for res_send" >&5 |
19398 | echo $ECHO_N "checking for res_send... $ECHO_C" >&6; } | |
84e70f78 KR |
19399 | if test "${ac_cv_func_res_send+set}" = set; then |
19400 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19401 | else | |
19402 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
19403 | /* confdefs.h. */ |
19404 | _ACEOF | |
19405 | cat confdefs.h >>conftest.$ac_ext | |
19406 | cat >>conftest.$ac_ext <<_ACEOF | |
19407 | /* end confdefs.h. */ | |
edfaf76d LK |
19408 | /* Define res_send to an innocuous variant, in case <limits.h> declares res_send. |
19409 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
19410 | #define res_send innocuous_res_send | |
19411 | ||
84e70f78 | 19412 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
19413 | which can conflict with char res_send (); below. |
19414 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
19415 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 19416 | |
19650fd6 AS |
19417 | #ifdef __STDC__ |
19418 | # include <limits.h> | |
19419 | #else | |
19420 | # include <assert.h> | |
19421 | #endif | |
edfaf76d LK |
19422 | |
19423 | #undef res_send | |
19424 | ||
ca81d7a0 JD |
19425 | /* Override any GCC internal prototype to avoid an error. |
19426 | Use char because int might match the return type of a GCC | |
19427 | builtin and then its argument prototype would still apply. */ | |
84e70f78 KR |
19428 | #ifdef __cplusplus |
19429 | extern "C" | |
19430 | #endif | |
84e70f78 | 19431 | char res_send (); |
84e70f78 KR |
19432 | /* The GNU C library defines this for functions which it implements |
19433 | to always fail with ENOSYS. Some functions are actually named | |
19434 | something starting with __ and the normal name is an alias. */ | |
ca81d7a0 | 19435 | #if defined __stub_res_send || defined __stub___res_send |
84e70f78 | 19436 | choke me |
cd958eb3 MB |
19437 | #endif |
19438 | ||
19650fd6 AS |
19439 | int |
19440 | main () | |
19441 | { | |
ca81d7a0 | 19442 | return res_send (); |
84e70f78 KR |
19443 | ; |
19444 | return 0; | |
19445 | } | |
19446 | _ACEOF | |
19447 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
19448 | if { (ac_try="$ac_link" |
19449 | case "(($ac_try" in | |
19450 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19451 | *) ac_try_echo=$ac_try;; | |
19452 | esac | |
19453 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19454 | (eval "$ac_link") 2>conftest.er1 | |
84e70f78 | 19455 | ac_status=$? |
edfaf76d LK |
19456 | grep -v '^ *+' conftest.er1 >conftest.err |
19457 | rm -f conftest.er1 | |
19458 | cat conftest.err >&5 | |
c0d27fcc | 19459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
19460 | (exit $ac_status); } && { |
19461 | test -z "$ac_c_werror_flag" || | |
19462 | test ! -s conftest.err | |
19463 | } && test -s conftest$ac_exeext && | |
19464 | $as_test_x conftest$ac_exeext; then | |
84e70f78 KR |
19465 | ac_cv_func_res_send=yes |
19466 | else | |
19467 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
19468 | sed 's/^/| /' conftest.$ac_ext >&5 |
19469 | ||
ca81d7a0 | 19470 | ac_cv_func_res_send=no |
84e70f78 | 19471 | fi |
ca81d7a0 | 19472 | |
f053c89f | 19473 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 19474 | conftest$ac_exeext conftest.$ac_ext |
84e70f78 | 19475 | fi |
ca81d7a0 JD |
19476 | { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5 |
19477 | echo "${ECHO_T}$ac_cv_func_res_send" >&6; } | |
84e70f78 KR |
19478 | if test $ac_cv_func_res_send = yes; then |
19479 | : | |
19480 | else | |
ca81d7a0 JD |
19481 | { echo "$as_me:$LINENO: checking for __res_send" >&5 |
19482 | echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; } | |
84e70f78 KR |
19483 | if test "${ac_cv_func___res_send+set}" = set; then |
19484 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19485 | else | |
19486 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
19487 | /* confdefs.h. */ |
19488 | _ACEOF | |
19489 | cat confdefs.h >>conftest.$ac_ext | |
19490 | cat >>conftest.$ac_ext <<_ACEOF | |
19491 | /* end confdefs.h. */ | |
edfaf76d LK |
19492 | /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send. |
19493 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
19494 | #define __res_send innocuous___res_send | |
19495 | ||
84e70f78 | 19496 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
19497 | which can conflict with char __res_send (); below. |
19498 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
19499 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 19500 | |
19650fd6 AS |
19501 | #ifdef __STDC__ |
19502 | # include <limits.h> | |
19503 | #else | |
19504 | # include <assert.h> | |
19505 | #endif | |
edfaf76d LK |
19506 | |
19507 | #undef __res_send | |
19508 | ||
ca81d7a0 JD |
19509 | /* Override any GCC internal prototype to avoid an error. |
19510 | Use char because int might match the return type of a GCC | |
19511 | builtin and then its argument prototype would still apply. */ | |
84e70f78 KR |
19512 | #ifdef __cplusplus |
19513 | extern "C" | |
19514 | #endif | |
84e70f78 | 19515 | char __res_send (); |
84e70f78 KR |
19516 | /* The GNU C library defines this for functions which it implements |
19517 | to always fail with ENOSYS. Some functions are actually named | |
19518 | something starting with __ and the normal name is an alias. */ | |
ca81d7a0 | 19519 | #if defined __stub___res_send || defined __stub_____res_send |
84e70f78 | 19520 | choke me |
84e70f78 KR |
19521 | #endif |
19522 | ||
19650fd6 AS |
19523 | int |
19524 | main () | |
19525 | { | |
ca81d7a0 | 19526 | return __res_send (); |
84e70f78 KR |
19527 | ; |
19528 | return 0; | |
19529 | } | |
19530 | _ACEOF | |
19531 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
19532 | if { (ac_try="$ac_link" |
19533 | case "(($ac_try" in | |
19534 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19535 | *) ac_try_echo=$ac_try;; | |
19536 | esac | |
19537 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19538 | (eval "$ac_link") 2>conftest.er1 | |
84e70f78 | 19539 | ac_status=$? |
edfaf76d LK |
19540 | grep -v '^ *+' conftest.er1 >conftest.err |
19541 | rm -f conftest.er1 | |
19542 | cat conftest.err >&5 | |
c0d27fcc | 19543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
19544 | (exit $ac_status); } && { |
19545 | test -z "$ac_c_werror_flag" || | |
19546 | test ! -s conftest.err | |
19547 | } && test -s conftest$ac_exeext && | |
19548 | $as_test_x conftest$ac_exeext; then | |
84e70f78 KR |
19549 | ac_cv_func___res_send=yes |
19550 | else | |
19551 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
19552 | sed 's/^/| /' conftest.$ac_ext >&5 |
19553 | ||
ca81d7a0 | 19554 | ac_cv_func___res_send=no |
84e70f78 | 19555 | fi |
ca81d7a0 | 19556 | |
f053c89f | 19557 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 19558 | conftest$ac_exeext conftest.$ac_ext |
84e70f78 | 19559 | fi |
ca81d7a0 JD |
19560 | { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5 |
19561 | echo "${ECHO_T}$ac_cv_func___res_send" >&6; } | |
84e70f78 KR |
19562 | if test $ac_cv_func___res_send = yes; then |
19563 | : | |
19564 | else | |
ca81d7a0 JD |
19565 | { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5 |
19566 | echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; } | |
84e70f78 KR |
19567 | if test "${ac_cv_lib_resolv_res_send+set}" = set; then |
19568 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19569 | else | |
19570 | ac_check_lib_save_LIBS=$LIBS | |
19571 | LIBS="-lresolv $LIBS" | |
19572 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
19573 | /* confdefs.h. */ |
19574 | _ACEOF | |
19575 | cat confdefs.h >>conftest.$ac_ext | |
19576 | cat >>conftest.$ac_ext <<_ACEOF | |
19577 | /* end confdefs.h. */ | |
84e70f78 | 19578 | |
ca81d7a0 JD |
19579 | /* Override any GCC internal prototype to avoid an error. |
19580 | Use char because int might match the return type of a GCC | |
19581 | builtin and then its argument prototype would still apply. */ | |
84e70f78 KR |
19582 | #ifdef __cplusplus |
19583 | extern "C" | |
19584 | #endif | |
84e70f78 KR |
19585 | char res_send (); |
19586 | int | |
19587 | main () | |
19588 | { | |
ca81d7a0 | 19589 | return res_send (); |
84e70f78 KR |
19590 | ; |
19591 | return 0; | |
19592 | } | |
19593 | _ACEOF | |
19594 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
19595 | if { (ac_try="$ac_link" |
19596 | case "(($ac_try" in | |
19597 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19598 | *) ac_try_echo=$ac_try;; | |
19599 | esac | |
19600 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19601 | (eval "$ac_link") 2>conftest.er1 | |
84e70f78 | 19602 | ac_status=$? |
edfaf76d LK |
19603 | grep -v '^ *+' conftest.er1 >conftest.err |
19604 | rm -f conftest.er1 | |
19605 | cat conftest.err >&5 | |
c0d27fcc | 19606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
19607 | (exit $ac_status); } && { |
19608 | test -z "$ac_c_werror_flag" || | |
19609 | test ! -s conftest.err | |
19610 | } && test -s conftest$ac_exeext && | |
19611 | $as_test_x conftest$ac_exeext; then | |
84e70f78 KR |
19612 | ac_cv_lib_resolv_res_send=yes |
19613 | else | |
19614 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
19615 | sed 's/^/| /' conftest.$ac_ext >&5 |
19616 | ||
ca81d7a0 | 19617 | ac_cv_lib_resolv_res_send=no |
84e70f78 | 19618 | fi |
ca81d7a0 | 19619 | |
f053c89f | 19620 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 19621 | conftest$ac_exeext conftest.$ac_ext |
84e70f78 KR |
19622 | LIBS=$ac_check_lib_save_LIBS |
19623 | fi | |
ca81d7a0 JD |
19624 | { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5 |
19625 | echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; } | |
84e70f78 KR |
19626 | if test $ac_cv_lib_resolv_res_send = yes; then |
19627 | resolv=yes | |
19628 | else | |
ca81d7a0 JD |
19629 | { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5 |
19630 | echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; } | |
84e70f78 KR |
19631 | if test "${ac_cv_lib_resolv___res_send+set}" = set; then |
19632 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19633 | else | |
19634 | ac_check_lib_save_LIBS=$LIBS | |
19635 | LIBS="-lresolv $LIBS" | |
19636 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
19637 | /* confdefs.h. */ |
19638 | _ACEOF | |
19639 | cat confdefs.h >>conftest.$ac_ext | |
19640 | cat >>conftest.$ac_ext <<_ACEOF | |
19641 | /* end confdefs.h. */ | |
84e70f78 | 19642 | |
ca81d7a0 JD |
19643 | /* Override any GCC internal prototype to avoid an error. |
19644 | Use char because int might match the return type of a GCC | |
19645 | builtin and then its argument prototype would still apply. */ | |
84e70f78 KR |
19646 | #ifdef __cplusplus |
19647 | extern "C" | |
19648 | #endif | |
84e70f78 KR |
19649 | char __res_send (); |
19650 | int | |
19651 | main () | |
19652 | { | |
ca81d7a0 | 19653 | return __res_send (); |
84e70f78 KR |
19654 | ; |
19655 | return 0; | |
19656 | } | |
19657 | _ACEOF | |
19658 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
19659 | if { (ac_try="$ac_link" |
19660 | case "(($ac_try" in | |
19661 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19662 | *) ac_try_echo=$ac_try;; | |
19663 | esac | |
19664 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19665 | (eval "$ac_link") 2>conftest.er1 | |
84e70f78 | 19666 | ac_status=$? |
edfaf76d LK |
19667 | grep -v '^ *+' conftest.er1 >conftest.err |
19668 | rm -f conftest.er1 | |
19669 | cat conftest.err >&5 | |
c0d27fcc | 19670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
19671 | (exit $ac_status); } && { |
19672 | test -z "$ac_c_werror_flag" || | |
19673 | test ! -s conftest.err | |
19674 | } && test -s conftest$ac_exeext && | |
19675 | $as_test_x conftest$ac_exeext; then | |
84e70f78 KR |
19676 | ac_cv_lib_resolv___res_send=yes |
19677 | else | |
19678 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
19679 | sed 's/^/| /' conftest.$ac_ext >&5 |
19680 | ||
ca81d7a0 | 19681 | ac_cv_lib_resolv___res_send=no |
84e70f78 | 19682 | fi |
ca81d7a0 | 19683 | |
f053c89f | 19684 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 19685 | conftest$ac_exeext conftest.$ac_ext |
84e70f78 KR |
19686 | LIBS=$ac_check_lib_save_LIBS |
19687 | fi | |
ca81d7a0 JD |
19688 | { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5 |
19689 | echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; } | |
84e70f78 KR |
19690 | if test $ac_cv_lib_resolv___res_send = yes; then |
19691 | resolv=yes | |
19692 | fi | |
19693 | ||
19694 | fi | |
19695 | ||
19696 | fi | |
19697 | ||
19698 | fi | |
19699 | ||
19700 | if test "$resolv" = yes ; then | |
19701 | RESOLVLIB=-lresolv | |
b936fae4 | 19702 | |
c0d27fcc | 19703 | cat >>confdefs.h <<\_ACEOF |
84e70f78 | 19704 | #define HAVE_LIBRESOLV 1 |
c0d27fcc | 19705 | _ACEOF |
84e70f78 KR |
19706 | |
19707 | else | |
19708 | RESOLVLIB= | |
19709 | fi | |
ca81d7a0 JD |
19710 | { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5 |
19711 | echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; } | |
84e70f78 KR |
19712 | if test "${ac_cv_func_hes_getmailhost+set}" = set; then |
19713 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19714 | else | |
19715 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
19716 | /* confdefs.h. */ |
19717 | _ACEOF | |
19718 | cat confdefs.h >>conftest.$ac_ext | |
19719 | cat >>conftest.$ac_ext <<_ACEOF | |
19720 | /* end confdefs.h. */ | |
edfaf76d LK |
19721 | /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost. |
19722 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
19723 | #define hes_getmailhost innocuous_hes_getmailhost | |
19724 | ||
84e70f78 | 19725 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
19726 | which can conflict with char hes_getmailhost (); below. |
19727 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
19728 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 19729 | |
19650fd6 AS |
19730 | #ifdef __STDC__ |
19731 | # include <limits.h> | |
19732 | #else | |
19733 | # include <assert.h> | |
19734 | #endif | |
edfaf76d LK |
19735 | |
19736 | #undef hes_getmailhost | |
19737 | ||
ca81d7a0 JD |
19738 | /* Override any GCC internal prototype to avoid an error. |
19739 | Use char because int might match the return type of a GCC | |
19740 | builtin and then its argument prototype would still apply. */ | |
84e70f78 KR |
19741 | #ifdef __cplusplus |
19742 | extern "C" | |
19743 | #endif | |
84e70f78 | 19744 | char hes_getmailhost (); |
84e70f78 KR |
19745 | /* The GNU C library defines this for functions which it implements |
19746 | to always fail with ENOSYS. Some functions are actually named | |
19747 | something starting with __ and the normal name is an alias. */ | |
ca81d7a0 | 19748 | #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost |
84e70f78 | 19749 | choke me |
cd958eb3 MB |
19750 | #endif |
19751 | ||
19650fd6 AS |
19752 | int |
19753 | main () | |
19754 | { | |
ca81d7a0 | 19755 | return hes_getmailhost (); |
84e70f78 KR |
19756 | ; |
19757 | return 0; | |
19758 | } | |
19759 | _ACEOF | |
19760 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
19761 | if { (ac_try="$ac_link" |
19762 | case "(($ac_try" in | |
19763 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19764 | *) ac_try_echo=$ac_try;; | |
19765 | esac | |
19766 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19767 | (eval "$ac_link") 2>conftest.er1 | |
84e70f78 | 19768 | ac_status=$? |
edfaf76d LK |
19769 | grep -v '^ *+' conftest.er1 >conftest.err |
19770 | rm -f conftest.er1 | |
19771 | cat conftest.err >&5 | |
c0d27fcc | 19772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
19773 | (exit $ac_status); } && { |
19774 | test -z "$ac_c_werror_flag" || | |
19775 | test ! -s conftest.err | |
19776 | } && test -s conftest$ac_exeext && | |
19777 | $as_test_x conftest$ac_exeext; then | |
84e70f78 KR |
19778 | ac_cv_func_hes_getmailhost=yes |
19779 | else | |
19780 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
19781 | sed 's/^/| /' conftest.$ac_ext >&5 |
19782 | ||
ca81d7a0 | 19783 | ac_cv_func_hes_getmailhost=no |
84e70f78 | 19784 | fi |
ca81d7a0 | 19785 | |
f053c89f | 19786 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 19787 | conftest$ac_exeext conftest.$ac_ext |
84e70f78 | 19788 | fi |
ca81d7a0 JD |
19789 | { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5 |
19790 | echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; } | |
84e70f78 KR |
19791 | if test $ac_cv_func_hes_getmailhost = yes; then |
19792 | : | |
19793 | else | |
ca81d7a0 JD |
19794 | { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5 |
19795 | echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; } | |
84e70f78 KR |
19796 | if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then |
19797 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19798 | else | |
19799 | ac_check_lib_save_LIBS=$LIBS | |
19800 | LIBS="-lhesiod $RESOLVLIB $LIBS" | |
19801 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
19802 | /* confdefs.h. */ |
19803 | _ACEOF | |
19804 | cat confdefs.h >>conftest.$ac_ext | |
19805 | cat >>conftest.$ac_ext <<_ACEOF | |
19806 | /* end confdefs.h. */ | |
84e70f78 | 19807 | |
ca81d7a0 JD |
19808 | /* Override any GCC internal prototype to avoid an error. |
19809 | Use char because int might match the return type of a GCC | |
19810 | builtin and then its argument prototype would still apply. */ | |
84e70f78 KR |
19811 | #ifdef __cplusplus |
19812 | extern "C" | |
19813 | #endif | |
84e70f78 KR |
19814 | char hes_getmailhost (); |
19815 | int | |
19816 | main () | |
19817 | { | |
ca81d7a0 | 19818 | return hes_getmailhost (); |
84e70f78 KR |
19819 | ; |
19820 | return 0; | |
19821 | } | |
19822 | _ACEOF | |
19823 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
19824 | if { (ac_try="$ac_link" |
19825 | case "(($ac_try" in | |
19826 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19827 | *) ac_try_echo=$ac_try;; | |
19828 | esac | |
19829 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19830 | (eval "$ac_link") 2>conftest.er1 | |
84e70f78 | 19831 | ac_status=$? |
edfaf76d LK |
19832 | grep -v '^ *+' conftest.er1 >conftest.err |
19833 | rm -f conftest.er1 | |
19834 | cat conftest.err >&5 | |
c0d27fcc | 19835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
19836 | (exit $ac_status); } && { |
19837 | test -z "$ac_c_werror_flag" || | |
19838 | test ! -s conftest.err | |
19839 | } && test -s conftest$ac_exeext && | |
19840 | $as_test_x conftest$ac_exeext; then | |
84e70f78 KR |
19841 | ac_cv_lib_hesiod_hes_getmailhost=yes |
19842 | else | |
19843 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
19844 | sed 's/^/| /' conftest.$ac_ext >&5 |
19845 | ||
ca81d7a0 | 19846 | ac_cv_lib_hesiod_hes_getmailhost=no |
84e70f78 | 19847 | fi |
ca81d7a0 | 19848 | |
f053c89f | 19849 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 19850 | conftest$ac_exeext conftest.$ac_ext |
84e70f78 KR |
19851 | LIBS=$ac_check_lib_save_LIBS |
19852 | fi | |
ca81d7a0 JD |
19853 | { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5 |
19854 | echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; } | |
84e70f78 | 19855 | if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then |
b936fae4 | 19856 | |
c0d27fcc | 19857 | cat >>confdefs.h <<\_ACEOF |
84e70f78 | 19858 | #define HAVE_LIBHESIOD 1 |
c0d27fcc | 19859 | _ACEOF |
84e70f78 KR |
19860 | |
19861 | else | |
19862 | : | |
19863 | fi | |
19864 | ||
19865 | fi | |
19866 | ||
19867 | fi | |
19868 | ||
a21616bd KR |
19869 | # These tell us which Kerberos-related libraries to use. |
19870 | if test "${with_kerberos+set}" = set; then | |
503d2be0 | 19871 | |
ca81d7a0 JD |
19872 | { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5 |
19873 | echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; } | |
503d2be0 AS |
19874 | if test "${ac_cv_lib_com_err_com_err+set}" = set; then |
19875 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 19876 | else |
503d2be0 | 19877 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 19878 | LIBS="-lcom_err $LIBS" |
503d2be0 | 19879 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
19880 | /* confdefs.h. */ |
19881 | _ACEOF | |
19882 | cat confdefs.h >>conftest.$ac_ext | |
19883 | cat >>conftest.$ac_ext <<_ACEOF | |
19884 | /* end confdefs.h. */ | |
503d2be0 | 19885 | |
ca81d7a0 JD |
19886 | /* Override any GCC internal prototype to avoid an error. |
19887 | Use char because int might match the return type of a GCC | |
19888 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
19889 | #ifdef __cplusplus |
19890 | extern "C" | |
19891 | #endif | |
503d2be0 AS |
19892 | char com_err (); |
19893 | int | |
19894 | main () | |
19895 | { | |
ca81d7a0 | 19896 | return com_err (); |
503d2be0 AS |
19897 | ; |
19898 | return 0; | |
19899 | } | |
19900 | _ACEOF | |
19901 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
19902 | if { (ac_try="$ac_link" |
19903 | case "(($ac_try" in | |
19904 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19905 | *) ac_try_echo=$ac_try;; | |
19906 | esac | |
19907 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19908 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 19909 | ac_status=$? |
edfaf76d LK |
19910 | grep -v '^ *+' conftest.er1 >conftest.err |
19911 | rm -f conftest.er1 | |
19912 | cat conftest.err >&5 | |
c0d27fcc | 19913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
19914 | (exit $ac_status); } && { |
19915 | test -z "$ac_c_werror_flag" || | |
19916 | test ! -s conftest.err | |
19917 | } && test -s conftest$ac_exeext && | |
19918 | $as_test_x conftest$ac_exeext; then | |
503d2be0 AS |
19919 | ac_cv_lib_com_err_com_err=yes |
19920 | else | |
19921 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
19922 | sed 's/^/| /' conftest.$ac_ext >&5 |
19923 | ||
ca81d7a0 | 19924 | ac_cv_lib_com_err_com_err=no |
503d2be0 | 19925 | fi |
ca81d7a0 | 19926 | |
f053c89f | 19927 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 19928 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 AS |
19929 | LIBS=$ac_check_lib_save_LIBS |
19930 | fi | |
ca81d7a0 JD |
19931 | { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5 |
19932 | echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; } | |
503d2be0 | 19933 | if test $ac_cv_lib_com_err_com_err = yes; then |
c0d27fcc | 19934 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 19935 | #define HAVE_LIBCOM_ERR 1 |
c0d27fcc | 19936 | _ACEOF |
a21616bd KR |
19937 | |
19938 | LIBS="-lcom_err $LIBS" | |
19939 | ||
a21616bd KR |
19940 | fi |
19941 | ||
c0d27fcc | 19942 | |
ca81d7a0 JD |
19943 | { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5 |
19944 | echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; } | |
503d2be0 AS |
19945 | if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then |
19946 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 19947 | else |
503d2be0 | 19948 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 19949 | LIBS="-lk5crypto $LIBS" |
503d2be0 | 19950 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
19951 | /* confdefs.h. */ |
19952 | _ACEOF | |
19953 | cat confdefs.h >>conftest.$ac_ext | |
19954 | cat >>conftest.$ac_ext <<_ACEOF | |
19955 | /* end confdefs.h. */ | |
503d2be0 | 19956 | |
ca81d7a0 JD |
19957 | /* Override any GCC internal prototype to avoid an error. |
19958 | Use char because int might match the return type of a GCC | |
19959 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
19960 | #ifdef __cplusplus |
19961 | extern "C" | |
19962 | #endif | |
503d2be0 AS |
19963 | char mit_des_cbc_encrypt (); |
19964 | int | |
19965 | main () | |
19966 | { | |
ca81d7a0 | 19967 | return mit_des_cbc_encrypt (); |
503d2be0 AS |
19968 | ; |
19969 | return 0; | |
19970 | } | |
19971 | _ACEOF | |
19972 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
19973 | if { (ac_try="$ac_link" |
19974 | case "(($ac_try" in | |
19975 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19976 | *) ac_try_echo=$ac_try;; | |
19977 | esac | |
19978 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19979 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 19980 | ac_status=$? |
edfaf76d LK |
19981 | grep -v '^ *+' conftest.er1 >conftest.err |
19982 | rm -f conftest.er1 | |
19983 | cat conftest.err >&5 | |
c0d27fcc | 19984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
19985 | (exit $ac_status); } && { |
19986 | test -z "$ac_c_werror_flag" || | |
19987 | test ! -s conftest.err | |
19988 | } && test -s conftest$ac_exeext && | |
19989 | $as_test_x conftest$ac_exeext; then | |
503d2be0 AS |
19990 | ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes |
19991 | else | |
19992 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
19993 | sed 's/^/| /' conftest.$ac_ext >&5 |
19994 | ||
ca81d7a0 | 19995 | ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no |
503d2be0 | 19996 | fi |
ca81d7a0 | 19997 | |
f053c89f | 19998 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 19999 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 AS |
20000 | LIBS=$ac_check_lib_save_LIBS |
20001 | fi | |
ca81d7a0 JD |
20002 | { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5 |
20003 | echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; } | |
503d2be0 | 20004 | if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then |
c0d27fcc | 20005 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 20006 | #define HAVE_LIBK5CRYPTO 1 |
c0d27fcc | 20007 | _ACEOF |
a21616bd KR |
20008 | |
20009 | LIBS="-lk5crypto $LIBS" | |
20010 | ||
a21616bd KR |
20011 | fi |
20012 | ||
c0d27fcc | 20013 | |
ca81d7a0 JD |
20014 | { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5 |
20015 | echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; } | |
503d2be0 AS |
20016 | if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then |
20017 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 20018 | else |
503d2be0 | 20019 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 20020 | LIBS="-lcrypto $LIBS" |
503d2be0 | 20021 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
20022 | /* confdefs.h. */ |
20023 | _ACEOF | |
20024 | cat confdefs.h >>conftest.$ac_ext | |
20025 | cat >>conftest.$ac_ext <<_ACEOF | |
20026 | /* end confdefs.h. */ | |
503d2be0 | 20027 | |
ca81d7a0 JD |
20028 | /* Override any GCC internal prototype to avoid an error. |
20029 | Use char because int might match the return type of a GCC | |
20030 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
20031 | #ifdef __cplusplus |
20032 | extern "C" | |
20033 | #endif | |
503d2be0 AS |
20034 | char mit_des_cbc_encrypt (); |
20035 | int | |
20036 | main () | |
20037 | { | |
ca81d7a0 | 20038 | return mit_des_cbc_encrypt (); |
503d2be0 AS |
20039 | ; |
20040 | return 0; | |
20041 | } | |
20042 | _ACEOF | |
20043 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
20044 | if { (ac_try="$ac_link" |
20045 | case "(($ac_try" in | |
20046 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20047 | *) ac_try_echo=$ac_try;; | |
20048 | esac | |
20049 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20050 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 20051 | ac_status=$? |
edfaf76d LK |
20052 | grep -v '^ *+' conftest.er1 >conftest.err |
20053 | rm -f conftest.er1 | |
20054 | cat conftest.err >&5 | |
c0d27fcc | 20055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
20056 | (exit $ac_status); } && { |
20057 | test -z "$ac_c_werror_flag" || | |
20058 | test ! -s conftest.err | |
20059 | } && test -s conftest$ac_exeext && | |
20060 | $as_test_x conftest$ac_exeext; then | |
503d2be0 AS |
20061 | ac_cv_lib_crypto_mit_des_cbc_encrypt=yes |
20062 | else | |
20063 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
20064 | sed 's/^/| /' conftest.$ac_ext >&5 |
20065 | ||
ca81d7a0 | 20066 | ac_cv_lib_crypto_mit_des_cbc_encrypt=no |
503d2be0 | 20067 | fi |
ca81d7a0 | 20068 | |
f053c89f | 20069 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 20070 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 AS |
20071 | LIBS=$ac_check_lib_save_LIBS |
20072 | fi | |
ca81d7a0 JD |
20073 | { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5 |
20074 | echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; } | |
503d2be0 | 20075 | if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then |
c0d27fcc | 20076 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 20077 | #define HAVE_LIBCRYPTO 1 |
c0d27fcc | 20078 | _ACEOF |
a21616bd KR |
20079 | |
20080 | LIBS="-lcrypto $LIBS" | |
20081 | ||
a21616bd KR |
20082 | fi |
20083 | ||
c0d27fcc | 20084 | |
ca81d7a0 JD |
20085 | { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5 |
20086 | echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; } | |
503d2be0 AS |
20087 | if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then |
20088 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 20089 | else |
503d2be0 | 20090 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 20091 | LIBS="-lkrb5 $LIBS" |
503d2be0 | 20092 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
20093 | /* confdefs.h. */ |
20094 | _ACEOF | |
20095 | cat confdefs.h >>conftest.$ac_ext | |
20096 | cat >>conftest.$ac_ext <<_ACEOF | |
20097 | /* end confdefs.h. */ | |
a21616bd | 20098 | |
ca81d7a0 JD |
20099 | /* Override any GCC internal prototype to avoid an error. |
20100 | Use char because int might match the return type of a GCC | |
20101 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
20102 | #ifdef __cplusplus |
20103 | extern "C" | |
20104 | #endif | |
503d2be0 AS |
20105 | char krb5_init_context (); |
20106 | int | |
20107 | main () | |
20108 | { | |
ca81d7a0 | 20109 | return krb5_init_context (); |
503d2be0 AS |
20110 | ; |
20111 | return 0; | |
20112 | } | |
20113 | _ACEOF | |
20114 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
20115 | if { (ac_try="$ac_link" |
20116 | case "(($ac_try" in | |
20117 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20118 | *) ac_try_echo=$ac_try;; | |
20119 | esac | |
20120 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20121 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 20122 | ac_status=$? |
edfaf76d LK |
20123 | grep -v '^ *+' conftest.er1 >conftest.err |
20124 | rm -f conftest.er1 | |
20125 | cat conftest.err >&5 | |
c0d27fcc | 20126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
20127 | (exit $ac_status); } && { |
20128 | test -z "$ac_c_werror_flag" || | |
20129 | test ! -s conftest.err | |
20130 | } && test -s conftest$ac_exeext && | |
20131 | $as_test_x conftest$ac_exeext; then | |
503d2be0 AS |
20132 | ac_cv_lib_krb5_krb5_init_context=yes |
20133 | else | |
20134 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
20135 | sed 's/^/| /' conftest.$ac_ext >&5 |
20136 | ||
ca81d7a0 | 20137 | ac_cv_lib_krb5_krb5_init_context=no |
503d2be0 | 20138 | fi |
ca81d7a0 | 20139 | |
f053c89f | 20140 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 20141 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 AS |
20142 | LIBS=$ac_check_lib_save_LIBS |
20143 | fi | |
ca81d7a0 JD |
20144 | { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5 |
20145 | echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; } | |
503d2be0 | 20146 | if test $ac_cv_lib_krb5_krb5_init_context = yes; then |
c0d27fcc | 20147 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 20148 | #define HAVE_LIBKRB5 1 |
c0d27fcc | 20149 | _ACEOF |
a21616bd KR |
20150 | |
20151 | LIBS="-lkrb5 $LIBS" | |
20152 | ||
a21616bd KR |
20153 | fi |
20154 | ||
20155 | if test "${with_kerberos5+set}" != set; then | |
503d2be0 | 20156 | |
ca81d7a0 JD |
20157 | { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5 |
20158 | echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; } | |
503d2be0 AS |
20159 | if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then |
20160 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 20161 | else |
503d2be0 | 20162 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 20163 | LIBS="-ldes425 $LIBS" |
503d2be0 | 20164 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
20165 | /* confdefs.h. */ |
20166 | _ACEOF | |
20167 | cat confdefs.h >>conftest.$ac_ext | |
20168 | cat >>conftest.$ac_ext <<_ACEOF | |
20169 | /* end confdefs.h. */ | |
503d2be0 | 20170 | |
ca81d7a0 JD |
20171 | /* Override any GCC internal prototype to avoid an error. |
20172 | Use char because int might match the return type of a GCC | |
20173 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
20174 | #ifdef __cplusplus |
20175 | extern "C" | |
20176 | #endif | |
503d2be0 AS |
20177 | char des_cbc_encrypt (); |
20178 | int | |
20179 | main () | |
20180 | { | |
ca81d7a0 | 20181 | return des_cbc_encrypt (); |
503d2be0 AS |
20182 | ; |
20183 | return 0; | |
20184 | } | |
20185 | _ACEOF | |
20186 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
20187 | if { (ac_try="$ac_link" |
20188 | case "(($ac_try" in | |
20189 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20190 | *) ac_try_echo=$ac_try;; | |
20191 | esac | |
20192 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20193 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 20194 | ac_status=$? |
edfaf76d LK |
20195 | grep -v '^ *+' conftest.er1 >conftest.err |
20196 | rm -f conftest.er1 | |
20197 | cat conftest.err >&5 | |
c0d27fcc | 20198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
20199 | (exit $ac_status); } && { |
20200 | test -z "$ac_c_werror_flag" || | |
20201 | test ! -s conftest.err | |
20202 | } && test -s conftest$ac_exeext && | |
20203 | $as_test_x conftest$ac_exeext; then | |
503d2be0 AS |
20204 | ac_cv_lib_des425_des_cbc_encrypt=yes |
20205 | else | |
20206 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
20207 | sed 's/^/| /' conftest.$ac_ext >&5 |
20208 | ||
ca81d7a0 | 20209 | ac_cv_lib_des425_des_cbc_encrypt=no |
503d2be0 | 20210 | fi |
ca81d7a0 | 20211 | |
f053c89f | 20212 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 20213 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 AS |
20214 | LIBS=$ac_check_lib_save_LIBS |
20215 | fi | |
ca81d7a0 JD |
20216 | { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5 |
20217 | echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; } | |
503d2be0 | 20218 | if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then |
c0d27fcc | 20219 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 20220 | #define HAVE_LIBDES425 1 |
c0d27fcc | 20221 | _ACEOF |
a21616bd KR |
20222 | |
20223 | LIBS="-ldes425 $LIBS" | |
20224 | ||
20225 | else | |
503d2be0 | 20226 | |
ca81d7a0 JD |
20227 | { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5 |
20228 | echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; } | |
503d2be0 AS |
20229 | if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then |
20230 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 20231 | else |
503d2be0 | 20232 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 20233 | LIBS="-ldes $LIBS" |
503d2be0 | 20234 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
20235 | /* confdefs.h. */ |
20236 | _ACEOF | |
20237 | cat confdefs.h >>conftest.$ac_ext | |
20238 | cat >>conftest.$ac_ext <<_ACEOF | |
20239 | /* end confdefs.h. */ | |
503d2be0 | 20240 | |
ca81d7a0 JD |
20241 | /* Override any GCC internal prototype to avoid an error. |
20242 | Use char because int might match the return type of a GCC | |
20243 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
20244 | #ifdef __cplusplus |
20245 | extern "C" | |
20246 | #endif | |
503d2be0 AS |
20247 | char des_cbc_encrypt (); |
20248 | int | |
20249 | main () | |
20250 | { | |
ca81d7a0 | 20251 | return des_cbc_encrypt (); |
503d2be0 AS |
20252 | ; |
20253 | return 0; | |
20254 | } | |
20255 | _ACEOF | |
20256 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
20257 | if { (ac_try="$ac_link" |
20258 | case "(($ac_try" in | |
20259 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20260 | *) ac_try_echo=$ac_try;; | |
20261 | esac | |
20262 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20263 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 20264 | ac_status=$? |
edfaf76d LK |
20265 | grep -v '^ *+' conftest.er1 >conftest.err |
20266 | rm -f conftest.er1 | |
20267 | cat conftest.err >&5 | |
c0d27fcc | 20268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
20269 | (exit $ac_status); } && { |
20270 | test -z "$ac_c_werror_flag" || | |
20271 | test ! -s conftest.err | |
20272 | } && test -s conftest$ac_exeext && | |
20273 | $as_test_x conftest$ac_exeext; then | |
503d2be0 AS |
20274 | ac_cv_lib_des_des_cbc_encrypt=yes |
20275 | else | |
20276 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
20277 | sed 's/^/| /' conftest.$ac_ext >&5 |
20278 | ||
ca81d7a0 | 20279 | ac_cv_lib_des_des_cbc_encrypt=no |
503d2be0 | 20280 | fi |
ca81d7a0 | 20281 | |
f053c89f | 20282 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 20283 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 AS |
20284 | LIBS=$ac_check_lib_save_LIBS |
20285 | fi | |
ca81d7a0 JD |
20286 | { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5 |
20287 | echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; } | |
503d2be0 | 20288 | if test $ac_cv_lib_des_des_cbc_encrypt = yes; then |
c0d27fcc | 20289 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 20290 | #define HAVE_LIBDES 1 |
c0d27fcc | 20291 | _ACEOF |
a21616bd KR |
20292 | |
20293 | LIBS="-ldes $LIBS" | |
20294 | ||
a21616bd KR |
20295 | fi |
20296 | ||
20297 | fi | |
20298 | ||
c0d27fcc | 20299 | |
ca81d7a0 JD |
20300 | { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5 |
20301 | echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; } | |
503d2be0 AS |
20302 | if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then |
20303 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 20304 | else |
503d2be0 | 20305 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 20306 | LIBS="-lkrb4 $LIBS" |
503d2be0 | 20307 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
20308 | /* confdefs.h. */ |
20309 | _ACEOF | |
20310 | cat confdefs.h >>conftest.$ac_ext | |
20311 | cat >>conftest.$ac_ext <<_ACEOF | |
20312 | /* end confdefs.h. */ | |
503d2be0 | 20313 | |
ca81d7a0 JD |
20314 | /* Override any GCC internal prototype to avoid an error. |
20315 | Use char because int might match the return type of a GCC | |
20316 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
20317 | #ifdef __cplusplus |
20318 | extern "C" | |
20319 | #endif | |
503d2be0 AS |
20320 | char krb_get_cred (); |
20321 | int | |
f053c89f CY |
20322 | main () |
20323 | { | |
20324 | return krb_get_cred (); | |
20325 | ; | |
20326 | return 0; | |
20327 | } | |
20328 | _ACEOF | |
20329 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20330 | if { (ac_try="$ac_link" | |
20331 | case "(($ac_try" in | |
ca81d7a0 JD |
20332 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20333 | *) ac_try_echo=$ac_try;; | |
20334 | esac | |
20335 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
f053c89f | 20336 | (eval "$ac_link") 2>conftest.er1 |
503d2be0 | 20337 | ac_status=$? |
f053c89f CY |
20338 | grep -v '^ *+' conftest.er1 >conftest.err |
20339 | rm -f conftest.er1 | |
20340 | cat conftest.err >&5 | |
c0d27fcc | 20341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
20342 | (exit $ac_status); } && { |
20343 | test -z "$ac_c_werror_flag" || | |
20344 | test ! -s conftest.err | |
20345 | } && test -s conftest$ac_exeext && | |
20346 | $as_test_x conftest$ac_exeext; then | |
503d2be0 AS |
20347 | ac_cv_lib_krb4_krb_get_cred=yes |
20348 | else | |
20349 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
20350 | sed 's/^/| /' conftest.$ac_ext >&5 |
20351 | ||
ca81d7a0 | 20352 | ac_cv_lib_krb4_krb_get_cred=no |
503d2be0 | 20353 | fi |
ca81d7a0 | 20354 | |
f053c89f | 20355 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 20356 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 AS |
20357 | LIBS=$ac_check_lib_save_LIBS |
20358 | fi | |
ca81d7a0 JD |
20359 | { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5 |
20360 | echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; } | |
503d2be0 | 20361 | if test $ac_cv_lib_krb4_krb_get_cred = yes; then |
c0d27fcc | 20362 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 20363 | #define HAVE_LIBKRB4 1 |
c0d27fcc | 20364 | _ACEOF |
a21616bd KR |
20365 | |
20366 | LIBS="-lkrb4 $LIBS" | |
20367 | ||
20368 | else | |
503d2be0 | 20369 | |
ca81d7a0 JD |
20370 | { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5 |
20371 | echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; } | |
503d2be0 AS |
20372 | if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then |
20373 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 20374 | else |
503d2be0 | 20375 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 20376 | LIBS="-lkrb $LIBS" |
503d2be0 | 20377 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
20378 | /* confdefs.h. */ |
20379 | _ACEOF | |
20380 | cat confdefs.h >>conftest.$ac_ext | |
20381 | cat >>conftest.$ac_ext <<_ACEOF | |
20382 | /* end confdefs.h. */ | |
503d2be0 | 20383 | |
ca81d7a0 JD |
20384 | /* Override any GCC internal prototype to avoid an error. |
20385 | Use char because int might match the return type of a GCC | |
20386 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
20387 | #ifdef __cplusplus |
20388 | extern "C" | |
20389 | #endif | |
503d2be0 AS |
20390 | char krb_get_cred (); |
20391 | int | |
20392 | main () | |
20393 | { | |
ca81d7a0 | 20394 | return krb_get_cred (); |
503d2be0 AS |
20395 | ; |
20396 | return 0; | |
20397 | } | |
20398 | _ACEOF | |
20399 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
20400 | if { (ac_try="$ac_link" |
20401 | case "(($ac_try" in | |
20402 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20403 | *) ac_try_echo=$ac_try;; | |
20404 | esac | |
20405 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20406 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 20407 | ac_status=$? |
edfaf76d LK |
20408 | grep -v '^ *+' conftest.er1 >conftest.err |
20409 | rm -f conftest.er1 | |
20410 | cat conftest.err >&5 | |
c0d27fcc | 20411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
20412 | (exit $ac_status); } && { |
20413 | test -z "$ac_c_werror_flag" || | |
20414 | test ! -s conftest.err | |
20415 | } && test -s conftest$ac_exeext && | |
20416 | $as_test_x conftest$ac_exeext; then | |
503d2be0 AS |
20417 | ac_cv_lib_krb_krb_get_cred=yes |
20418 | else | |
20419 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
20420 | sed 's/^/| /' conftest.$ac_ext >&5 |
20421 | ||
ca81d7a0 | 20422 | ac_cv_lib_krb_krb_get_cred=no |
503d2be0 | 20423 | fi |
ca81d7a0 | 20424 | |
f053c89f | 20425 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 20426 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 AS |
20427 | LIBS=$ac_check_lib_save_LIBS |
20428 | fi | |
ca81d7a0 JD |
20429 | { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5 |
20430 | echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; } | |
503d2be0 | 20431 | if test $ac_cv_lib_krb_krb_get_cred = yes; then |
c0d27fcc | 20432 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 20433 | #define HAVE_LIBKRB 1 |
c0d27fcc | 20434 | _ACEOF |
a21616bd KR |
20435 | |
20436 | LIBS="-lkrb $LIBS" | |
20437 | ||
a21616bd KR |
20438 | fi |
20439 | ||
20440 | fi | |
20441 | ||
20442 | fi | |
20443 | ||
20444 | if test "${with_kerberos5+set}" = set; then | |
503d2be0 AS |
20445 | |
20446 | for ac_header in krb5.h | |
a21616bd | 20447 | do |
503d2be0 | 20448 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
ca81d7a0 JD |
20449 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
20450 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
20451 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
20452 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 20453 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc | 20454 | fi |
ca81d7a0 JD |
20455 | ac_res=`eval echo '${'$as_ac_Header'}'` |
20456 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
20457 | echo "${ECHO_T}$ac_res" >&6; } | |
98418dba | 20458 | else |
c0d27fcc | 20459 | # Is the header compilable? |
ca81d7a0 JD |
20460 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
20461 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
c0d27fcc | 20462 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
20463 | /* confdefs.h. */ |
20464 | _ACEOF | |
20465 | cat confdefs.h >>conftest.$ac_ext | |
20466 | cat >>conftest.$ac_ext <<_ACEOF | |
20467 | /* end confdefs.h. */ | |
c0d27fcc MR |
20468 | $ac_includes_default |
20469 | #include <$ac_header> | |
20470 | _ACEOF | |
20471 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
20472 | if { (ac_try="$ac_compile" |
20473 | case "(($ac_try" in | |
20474 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20475 | *) ac_try_echo=$ac_try;; | |
20476 | esac | |
20477 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20478 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 20479 | ac_status=$? |
edfaf76d LK |
20480 | grep -v '^ *+' conftest.er1 >conftest.err |
20481 | rm -f conftest.er1 | |
20482 | cat conftest.err >&5 | |
c0d27fcc | 20483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
20484 | (exit $ac_status); } && { |
20485 | test -z "$ac_c_werror_flag" || | |
20486 | test ! -s conftest.err | |
20487 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
20488 | ac_header_compiler=yes |
20489 | else | |
20490 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
20491 | sed 's/^/| /' conftest.$ac_ext >&5 |
20492 | ||
ca81d7a0 | 20493 | ac_header_compiler=no |
c0d27fcc | 20494 | fi |
ca81d7a0 JD |
20495 | |
20496 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
20497 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
20498 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
20499 | |
20500 | # Is the header present? | |
ca81d7a0 JD |
20501 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
20502 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
c0d27fcc | 20503 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
20504 | /* confdefs.h. */ |
20505 | _ACEOF | |
20506 | cat confdefs.h >>conftest.$ac_ext | |
20507 | cat >>conftest.$ac_ext <<_ACEOF | |
20508 | /* end confdefs.h. */ | |
503d2be0 AS |
20509 | #include <$ac_header> |
20510 | _ACEOF | |
ca81d7a0 JD |
20511 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
20512 | case "(($ac_try" in | |
20513 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20514 | *) ac_try_echo=$ac_try;; | |
20515 | esac | |
20516 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20517 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 20518 | ac_status=$? |
6bae0ccf | 20519 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
20520 | rm -f conftest.er1 |
20521 | cat conftest.err >&5 | |
c0d27fcc | 20522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
20523 | (exit $ac_status); } >/dev/null && { |
20524 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
20525 | test ! -s conftest.err | |
20526 | }; then | |
c0d27fcc | 20527 | ac_header_preproc=yes |
503d2be0 AS |
20528 | else |
20529 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
20530 | sed 's/^/| /' conftest.$ac_ext >&5 |
20531 | ||
c0d27fcc | 20532 | ac_header_preproc=no |
a21616bd | 20533 | fi |
ca81d7a0 | 20534 | |
503d2be0 | 20535 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
20536 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
20537 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
20538 | |
20539 | # So? What about this header? | |
edfaf76d LK |
20540 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
20541 | yes:no: ) | |
c0d27fcc MR |
20542 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
20543 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
20544 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
20545 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
20546 | ac_header_preproc=yes | |
19650fd6 | 20547 | ;; |
edfaf76d | 20548 | no:yes:* ) |
c0d27fcc MR |
20549 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
20550 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
edfaf76d LK |
20551 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
20552 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
20553 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
20554 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
20555 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
20556 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 20557 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 20558 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
20559 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
20560 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 20561 | |
19650fd6 | 20562 | ;; |
c0d27fcc | 20563 | esac |
ca81d7a0 JD |
20564 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
20565 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
20566 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
c0d27fcc MR |
20567 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20568 | else | |
edfaf76d | 20569 | eval "$as_ac_Header=\$ac_header_preproc" |
a21616bd | 20570 | fi |
ca81d7a0 JD |
20571 | ac_res=`eval echo '${'$as_ac_Header'}'` |
20572 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
20573 | echo "${ECHO_T}$ac_res" >&6; } | |
c0d27fcc MR |
20574 | |
20575 | fi | |
503d2be0 | 20576 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 20577 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 20578 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 20579 | _ACEOF |
503d2be0 | 20580 | |
a21616bd | 20581 | fi |
c0d27fcc | 20582 | |
a21616bd KR |
20583 | done |
20584 | ||
20585 | else | |
503d2be0 AS |
20586 | |
20587 | for ac_header in des.h | |
a21616bd | 20588 | do |
503d2be0 | 20589 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
ca81d7a0 JD |
20590 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
20591 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
20592 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
20593 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 20594 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc | 20595 | fi |
ca81d7a0 JD |
20596 | ac_res=`eval echo '${'$as_ac_Header'}'` |
20597 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
20598 | echo "${ECHO_T}$ac_res" >&6; } | |
98418dba | 20599 | else |
c0d27fcc | 20600 | # Is the header compilable? |
ca81d7a0 JD |
20601 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
20602 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
c0d27fcc | 20603 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
20604 | /* confdefs.h. */ |
20605 | _ACEOF | |
20606 | cat confdefs.h >>conftest.$ac_ext | |
20607 | cat >>conftest.$ac_ext <<_ACEOF | |
20608 | /* end confdefs.h. */ | |
c0d27fcc MR |
20609 | $ac_includes_default |
20610 | #include <$ac_header> | |
20611 | _ACEOF | |
20612 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
20613 | if { (ac_try="$ac_compile" |
20614 | case "(($ac_try" in | |
20615 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20616 | *) ac_try_echo=$ac_try;; | |
20617 | esac | |
20618 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20619 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 20620 | ac_status=$? |
edfaf76d LK |
20621 | grep -v '^ *+' conftest.er1 >conftest.err |
20622 | rm -f conftest.er1 | |
20623 | cat conftest.err >&5 | |
c0d27fcc | 20624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
20625 | (exit $ac_status); } && { |
20626 | test -z "$ac_c_werror_flag" || | |
20627 | test ! -s conftest.err | |
20628 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
20629 | ac_header_compiler=yes |
20630 | else | |
20631 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
20632 | sed 's/^/| /' conftest.$ac_ext >&5 |
20633 | ||
ca81d7a0 | 20634 | ac_header_compiler=no |
c0d27fcc | 20635 | fi |
ca81d7a0 JD |
20636 | |
20637 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
20638 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
20639 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
20640 | |
20641 | # Is the header present? | |
ca81d7a0 JD |
20642 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
20643 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
c0d27fcc | 20644 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
20645 | /* confdefs.h. */ |
20646 | _ACEOF | |
20647 | cat confdefs.h >>conftest.$ac_ext | |
20648 | cat >>conftest.$ac_ext <<_ACEOF | |
20649 | /* end confdefs.h. */ | |
503d2be0 AS |
20650 | #include <$ac_header> |
20651 | _ACEOF | |
ca81d7a0 JD |
20652 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
20653 | case "(($ac_try" in | |
20654 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20655 | *) ac_try_echo=$ac_try;; | |
20656 | esac | |
20657 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20658 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 20659 | ac_status=$? |
6bae0ccf | 20660 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
20661 | rm -f conftest.er1 |
20662 | cat conftest.err >&5 | |
c0d27fcc | 20663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
20664 | (exit $ac_status); } >/dev/null && { |
20665 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
20666 | test ! -s conftest.err | |
20667 | }; then | |
c0d27fcc | 20668 | ac_header_preproc=yes |
503d2be0 AS |
20669 | else |
20670 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
20671 | sed 's/^/| /' conftest.$ac_ext >&5 |
20672 | ||
c0d27fcc | 20673 | ac_header_preproc=no |
a21616bd | 20674 | fi |
ca81d7a0 | 20675 | |
503d2be0 | 20676 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
20677 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
20678 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
20679 | |
20680 | # So? What about this header? | |
edfaf76d LK |
20681 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
20682 | yes:no: ) | |
c0d27fcc MR |
20683 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
20684 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
20685 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
20686 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
20687 | ac_header_preproc=yes | |
19650fd6 | 20688 | ;; |
edfaf76d | 20689 | no:yes:* ) |
c0d27fcc MR |
20690 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
20691 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
edfaf76d LK |
20692 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
20693 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
20694 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
20695 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
20696 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
20697 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 20698 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 20699 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
20700 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
20701 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 20702 | |
19650fd6 | 20703 | ;; |
c0d27fcc | 20704 | esac |
ca81d7a0 JD |
20705 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
20706 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
20707 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
c0d27fcc MR |
20708 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20709 | else | |
edfaf76d | 20710 | eval "$as_ac_Header=\$ac_header_preproc" |
a21616bd | 20711 | fi |
ca81d7a0 JD |
20712 | ac_res=`eval echo '${'$as_ac_Header'}'` |
20713 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
20714 | echo "${ECHO_T}$ac_res" >&6; } | |
c0d27fcc MR |
20715 | |
20716 | fi | |
503d2be0 | 20717 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 20718 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 20719 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 20720 | _ACEOF |
503d2be0 | 20721 | |
a21616bd | 20722 | else |
503d2be0 AS |
20723 | |
20724 | for ac_header in kerberosIV/des.h | |
a21616bd | 20725 | do |
503d2be0 | 20726 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
ca81d7a0 JD |
20727 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
20728 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
20729 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
20730 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 20731 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc | 20732 | fi |
ca81d7a0 JD |
20733 | ac_res=`eval echo '${'$as_ac_Header'}'` |
20734 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
20735 | echo "${ECHO_T}$ac_res" >&6; } | |
98418dba | 20736 | else |
c0d27fcc | 20737 | # Is the header compilable? |
ca81d7a0 JD |
20738 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
20739 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
c0d27fcc | 20740 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
20741 | /* confdefs.h. */ |
20742 | _ACEOF | |
20743 | cat confdefs.h >>conftest.$ac_ext | |
20744 | cat >>conftest.$ac_ext <<_ACEOF | |
20745 | /* end confdefs.h. */ | |
c0d27fcc MR |
20746 | $ac_includes_default |
20747 | #include <$ac_header> | |
20748 | _ACEOF | |
20749 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
20750 | if { (ac_try="$ac_compile" |
20751 | case "(($ac_try" in | |
20752 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20753 | *) ac_try_echo=$ac_try;; | |
20754 | esac | |
20755 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20756 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 20757 | ac_status=$? |
edfaf76d LK |
20758 | grep -v '^ *+' conftest.er1 >conftest.err |
20759 | rm -f conftest.er1 | |
20760 | cat conftest.err >&5 | |
c0d27fcc | 20761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
20762 | (exit $ac_status); } && { |
20763 | test -z "$ac_c_werror_flag" || | |
20764 | test ! -s conftest.err | |
20765 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
20766 | ac_header_compiler=yes |
20767 | else | |
20768 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
20769 | sed 's/^/| /' conftest.$ac_ext >&5 |
20770 | ||
ca81d7a0 | 20771 | ac_header_compiler=no |
c0d27fcc | 20772 | fi |
ca81d7a0 JD |
20773 | |
20774 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
20775 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
20776 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
20777 | |
20778 | # Is the header present? | |
ca81d7a0 JD |
20779 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
20780 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
c0d27fcc | 20781 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
20782 | /* confdefs.h. */ |
20783 | _ACEOF | |
20784 | cat confdefs.h >>conftest.$ac_ext | |
20785 | cat >>conftest.$ac_ext <<_ACEOF | |
20786 | /* end confdefs.h. */ | |
503d2be0 AS |
20787 | #include <$ac_header> |
20788 | _ACEOF | |
ca81d7a0 JD |
20789 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
20790 | case "(($ac_try" in | |
20791 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20792 | *) ac_try_echo=$ac_try;; | |
20793 | esac | |
20794 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20795 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 20796 | ac_status=$? |
6bae0ccf | 20797 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
20798 | rm -f conftest.er1 |
20799 | cat conftest.err >&5 | |
c0d27fcc | 20800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
20801 | (exit $ac_status); } >/dev/null && { |
20802 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
20803 | test ! -s conftest.err | |
20804 | }; then | |
c0d27fcc | 20805 | ac_header_preproc=yes |
503d2be0 AS |
20806 | else |
20807 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
20808 | sed 's/^/| /' conftest.$ac_ext >&5 |
20809 | ||
c0d27fcc | 20810 | ac_header_preproc=no |
a21616bd | 20811 | fi |
ca81d7a0 | 20812 | |
503d2be0 | 20813 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
20814 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
20815 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
20816 | |
20817 | # So? What about this header? | |
edfaf76d LK |
20818 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
20819 | yes:no: ) | |
c0d27fcc MR |
20820 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
20821 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
20822 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
20823 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
20824 | ac_header_preproc=yes | |
19650fd6 | 20825 | ;; |
edfaf76d | 20826 | no:yes:* ) |
c0d27fcc MR |
20827 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
20828 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
edfaf76d LK |
20829 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
20830 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
20831 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
20832 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
20833 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
20834 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 20835 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 20836 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
20837 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
20838 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 20839 | |
19650fd6 | 20840 | ;; |
c0d27fcc | 20841 | esac |
ca81d7a0 JD |
20842 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
20843 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
20844 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
c0d27fcc MR |
20845 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20846 | else | |
edfaf76d | 20847 | eval "$as_ac_Header=\$ac_header_preproc" |
a21616bd | 20848 | fi |
ca81d7a0 JD |
20849 | ac_res=`eval echo '${'$as_ac_Header'}'` |
20850 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
20851 | echo "${ECHO_T}$ac_res" >&6; } | |
c0d27fcc MR |
20852 | |
20853 | fi | |
503d2be0 | 20854 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 20855 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 20856 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 20857 | _ACEOF |
503d2be0 | 20858 | |
a21616bd | 20859 | else |
503d2be0 AS |
20860 | |
20861 | for ac_header in kerberos/des.h | |
a21616bd | 20862 | do |
503d2be0 | 20863 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
ca81d7a0 JD |
20864 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
20865 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
20866 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
20867 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 20868 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc | 20869 | fi |
ca81d7a0 JD |
20870 | ac_res=`eval echo '${'$as_ac_Header'}'` |
20871 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
20872 | echo "${ECHO_T}$ac_res" >&6; } | |
98418dba | 20873 | else |
c0d27fcc | 20874 | # Is the header compilable? |
ca81d7a0 JD |
20875 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
20876 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
c0d27fcc | 20877 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
20878 | /* confdefs.h. */ |
20879 | _ACEOF | |
20880 | cat confdefs.h >>conftest.$ac_ext | |
20881 | cat >>conftest.$ac_ext <<_ACEOF | |
20882 | /* end confdefs.h. */ | |
c0d27fcc MR |
20883 | $ac_includes_default |
20884 | #include <$ac_header> | |
20885 | _ACEOF | |
20886 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
20887 | if { (ac_try="$ac_compile" |
20888 | case "(($ac_try" in | |
20889 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20890 | *) ac_try_echo=$ac_try;; | |
20891 | esac | |
20892 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20893 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 20894 | ac_status=$? |
edfaf76d LK |
20895 | grep -v '^ *+' conftest.er1 >conftest.err |
20896 | rm -f conftest.er1 | |
20897 | cat conftest.err >&5 | |
c0d27fcc | 20898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
20899 | (exit $ac_status); } && { |
20900 | test -z "$ac_c_werror_flag" || | |
20901 | test ! -s conftest.err | |
20902 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
20903 | ac_header_compiler=yes |
20904 | else | |
20905 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
20906 | sed 's/^/| /' conftest.$ac_ext >&5 |
20907 | ||
ca81d7a0 | 20908 | ac_header_compiler=no |
c0d27fcc | 20909 | fi |
ca81d7a0 JD |
20910 | |
20911 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
20912 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
20913 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
20914 | |
20915 | # Is the header present? | |
ca81d7a0 JD |
20916 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
20917 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
c0d27fcc | 20918 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
20919 | /* confdefs.h. */ |
20920 | _ACEOF | |
20921 | cat confdefs.h >>conftest.$ac_ext | |
20922 | cat >>conftest.$ac_ext <<_ACEOF | |
20923 | /* end confdefs.h. */ | |
503d2be0 AS |
20924 | #include <$ac_header> |
20925 | _ACEOF | |
ca81d7a0 JD |
20926 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
20927 | case "(($ac_try" in | |
20928 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20929 | *) ac_try_echo=$ac_try;; | |
20930 | esac | |
20931 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20932 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 20933 | ac_status=$? |
6bae0ccf | 20934 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
20935 | rm -f conftest.er1 |
20936 | cat conftest.err >&5 | |
c0d27fcc | 20937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
20938 | (exit $ac_status); } >/dev/null && { |
20939 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
20940 | test ! -s conftest.err | |
20941 | }; then | |
c0d27fcc | 20942 | ac_header_preproc=yes |
503d2be0 AS |
20943 | else |
20944 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
20945 | sed 's/^/| /' conftest.$ac_ext >&5 |
20946 | ||
c0d27fcc | 20947 | ac_header_preproc=no |
a21616bd | 20948 | fi |
ca81d7a0 | 20949 | |
503d2be0 | 20950 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
20951 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
20952 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
20953 | |
20954 | # So? What about this header? | |
edfaf76d LK |
20955 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
20956 | yes:no: ) | |
c0d27fcc MR |
20957 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
20958 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
20959 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
20960 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
20961 | ac_header_preproc=yes | |
19650fd6 | 20962 | ;; |
edfaf76d | 20963 | no:yes:* ) |
c0d27fcc MR |
20964 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
20965 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
edfaf76d LK |
20966 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
20967 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
20968 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
20969 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
20970 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
20971 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 20972 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 20973 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
20974 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
20975 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 20976 | |
19650fd6 | 20977 | ;; |
c0d27fcc | 20978 | esac |
ca81d7a0 JD |
20979 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
20980 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
20981 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
c0d27fcc MR |
20982 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20983 | else | |
edfaf76d | 20984 | eval "$as_ac_Header=\$ac_header_preproc" |
a21616bd | 20985 | fi |
ca81d7a0 JD |
20986 | ac_res=`eval echo '${'$as_ac_Header'}'` |
20987 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
20988 | echo "${ECHO_T}$ac_res" >&6; } | |
c0d27fcc MR |
20989 | |
20990 | fi | |
503d2be0 | 20991 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 20992 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 20993 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 20994 | _ACEOF |
a21616bd KR |
20995 | |
20996 | fi | |
c0d27fcc | 20997 | |
a21616bd KR |
20998 | done |
20999 | ||
98418dba | 21000 | fi |
c0d27fcc | 21001 | |
925c2f3f EZ |
21002 | done |
21003 | ||
98418dba | 21004 | fi |
c0d27fcc | 21005 | |
925c2f3f | 21006 | done |
98418dba | 21007 | |
c0d27fcc | 21008 | |
925c2f3f EZ |
21009 | for ac_header in krb.h |
21010 | do | |
21011 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
ca81d7a0 JD |
21012 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
21013 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
21014 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
21015 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
925c2f3f | 21016 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc | 21017 | fi |
ca81d7a0 JD |
21018 | ac_res=`eval echo '${'$as_ac_Header'}'` |
21019 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
21020 | echo "${ECHO_T}$ac_res" >&6; } | |
c0d27fcc MR |
21021 | else |
21022 | # Is the header compilable? | |
ca81d7a0 JD |
21023 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
21024 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
c0d27fcc | 21025 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
21026 | /* confdefs.h. */ |
21027 | _ACEOF | |
21028 | cat confdefs.h >>conftest.$ac_ext | |
21029 | cat >>conftest.$ac_ext <<_ACEOF | |
21030 | /* end confdefs.h. */ | |
c0d27fcc MR |
21031 | $ac_includes_default |
21032 | #include <$ac_header> | |
21033 | _ACEOF | |
21034 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
21035 | if { (ac_try="$ac_compile" |
21036 | case "(($ac_try" in | |
21037 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21038 | *) ac_try_echo=$ac_try;; | |
21039 | esac | |
21040 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21041 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 21042 | ac_status=$? |
edfaf76d LK |
21043 | grep -v '^ *+' conftest.er1 >conftest.err |
21044 | rm -f conftest.er1 | |
21045 | cat conftest.err >&5 | |
c0d27fcc | 21046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
21047 | (exit $ac_status); } && { |
21048 | test -z "$ac_c_werror_flag" || | |
21049 | test ! -s conftest.err | |
21050 | } && test -s conftest.$ac_objext; then | |
c0d27fcc | 21051 | ac_header_compiler=yes |
925c2f3f | 21052 | else |
c0d27fcc | 21053 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
21054 | sed 's/^/| /' conftest.$ac_ext >&5 |
21055 | ||
ca81d7a0 | 21056 | ac_header_compiler=no |
c0d27fcc | 21057 | fi |
ca81d7a0 JD |
21058 | |
21059 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
21060 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
21061 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
21062 | |
21063 | # Is the header present? | |
ca81d7a0 JD |
21064 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
21065 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
c0d27fcc | 21066 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
21067 | /* confdefs.h. */ |
21068 | _ACEOF | |
21069 | cat confdefs.h >>conftest.$ac_ext | |
21070 | cat >>conftest.$ac_ext <<_ACEOF | |
21071 | /* end confdefs.h. */ | |
503d2be0 AS |
21072 | #include <$ac_header> |
21073 | _ACEOF | |
ca81d7a0 JD |
21074 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
21075 | case "(($ac_try" in | |
21076 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21077 | *) ac_try_echo=$ac_try;; | |
21078 | esac | |
21079 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21080 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 21081 | ac_status=$? |
6bae0ccf | 21082 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
21083 | rm -f conftest.er1 |
21084 | cat conftest.err >&5 | |
c0d27fcc | 21085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
21086 | (exit $ac_status); } >/dev/null && { |
21087 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
21088 | test ! -s conftest.err | |
21089 | }; then | |
c0d27fcc | 21090 | ac_header_preproc=yes |
503d2be0 AS |
21091 | else |
21092 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
21093 | sed 's/^/| /' conftest.$ac_ext >&5 |
21094 | ||
c0d27fcc | 21095 | ac_header_preproc=no |
a21616bd | 21096 | fi |
ca81d7a0 | 21097 | |
503d2be0 | 21098 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
21099 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
21100 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
21101 | |
21102 | # So? What about this header? | |
edfaf76d LK |
21103 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21104 | yes:no: ) | |
c0d27fcc MR |
21105 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
21106 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
21107 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
21108 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
21109 | ac_header_preproc=yes | |
19650fd6 | 21110 | ;; |
edfaf76d | 21111 | no:yes:* ) |
c0d27fcc MR |
21112 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
21113 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
edfaf76d LK |
21114 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
21115 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
21116 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
21117 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
21118 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
21119 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 21120 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 21121 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
21122 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
21123 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 21124 | |
19650fd6 | 21125 | ;; |
c0d27fcc | 21126 | esac |
ca81d7a0 JD |
21127 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
21128 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
21129 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
c0d27fcc MR |
21130 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21131 | else | |
edfaf76d | 21132 | eval "$as_ac_Header=\$ac_header_preproc" |
a21616bd | 21133 | fi |
ca81d7a0 JD |
21134 | ac_res=`eval echo '${'$as_ac_Header'}'` |
21135 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
21136 | echo "${ECHO_T}$ac_res" >&6; } | |
c0d27fcc MR |
21137 | |
21138 | fi | |
503d2be0 | 21139 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 21140 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 21141 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 21142 | _ACEOF |
503d2be0 | 21143 | |
a21616bd | 21144 | else |
503d2be0 AS |
21145 | |
21146 | for ac_header in kerberosIV/krb.h | |
a21616bd | 21147 | do |
503d2be0 | 21148 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
ca81d7a0 JD |
21149 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
21150 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
21151 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
21152 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 21153 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc | 21154 | fi |
ca81d7a0 JD |
21155 | ac_res=`eval echo '${'$as_ac_Header'}'` |
21156 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
21157 | echo "${ECHO_T}$ac_res" >&6; } | |
98418dba | 21158 | else |
c0d27fcc | 21159 | # Is the header compilable? |
ca81d7a0 JD |
21160 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
21161 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
c0d27fcc | 21162 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
21163 | /* confdefs.h. */ |
21164 | _ACEOF | |
21165 | cat confdefs.h >>conftest.$ac_ext | |
21166 | cat >>conftest.$ac_ext <<_ACEOF | |
21167 | /* end confdefs.h. */ | |
c0d27fcc MR |
21168 | $ac_includes_default |
21169 | #include <$ac_header> | |
21170 | _ACEOF | |
21171 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
21172 | if { (ac_try="$ac_compile" |
21173 | case "(($ac_try" in | |
21174 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21175 | *) ac_try_echo=$ac_try;; | |
21176 | esac | |
21177 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21178 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 21179 | ac_status=$? |
edfaf76d LK |
21180 | grep -v '^ *+' conftest.er1 >conftest.err |
21181 | rm -f conftest.er1 | |
21182 | cat conftest.err >&5 | |
c0d27fcc | 21183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
21184 | (exit $ac_status); } && { |
21185 | test -z "$ac_c_werror_flag" || | |
21186 | test ! -s conftest.err | |
21187 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
21188 | ac_header_compiler=yes |
21189 | else | |
21190 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
21191 | sed 's/^/| /' conftest.$ac_ext >&5 |
21192 | ||
ca81d7a0 | 21193 | ac_header_compiler=no |
c0d27fcc | 21194 | fi |
ca81d7a0 JD |
21195 | |
21196 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
21197 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
21198 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
21199 | |
21200 | # Is the header present? | |
ca81d7a0 JD |
21201 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
21202 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
c0d27fcc | 21203 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
21204 | /* confdefs.h. */ |
21205 | _ACEOF | |
21206 | cat confdefs.h >>conftest.$ac_ext | |
21207 | cat >>conftest.$ac_ext <<_ACEOF | |
21208 | /* end confdefs.h. */ | |
503d2be0 AS |
21209 | #include <$ac_header> |
21210 | _ACEOF | |
ca81d7a0 JD |
21211 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
21212 | case "(($ac_try" in | |
21213 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21214 | *) ac_try_echo=$ac_try;; | |
21215 | esac | |
21216 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21217 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 21218 | ac_status=$? |
6bae0ccf | 21219 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
21220 | rm -f conftest.er1 |
21221 | cat conftest.err >&5 | |
c0d27fcc | 21222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
21223 | (exit $ac_status); } >/dev/null && { |
21224 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
21225 | test ! -s conftest.err | |
21226 | }; then | |
c0d27fcc | 21227 | ac_header_preproc=yes |
503d2be0 AS |
21228 | else |
21229 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
21230 | sed 's/^/| /' conftest.$ac_ext >&5 |
21231 | ||
c0d27fcc | 21232 | ac_header_preproc=no |
a21616bd | 21233 | fi |
ca81d7a0 | 21234 | |
503d2be0 | 21235 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
21236 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
21237 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
21238 | |
21239 | # So? What about this header? | |
edfaf76d LK |
21240 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21241 | yes:no: ) | |
c0d27fcc MR |
21242 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
21243 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
21244 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
21245 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
21246 | ac_header_preproc=yes | |
19650fd6 | 21247 | ;; |
edfaf76d | 21248 | no:yes:* ) |
c0d27fcc MR |
21249 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
21250 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
edfaf76d LK |
21251 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
21252 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
21253 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
21254 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
21255 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
21256 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 21257 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 21258 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
21259 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
21260 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 21261 | |
19650fd6 | 21262 | ;; |
c0d27fcc | 21263 | esac |
ca81d7a0 JD |
21264 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
21265 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
21266 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
c0d27fcc MR |
21267 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21268 | else | |
edfaf76d | 21269 | eval "$as_ac_Header=\$ac_header_preproc" |
a21616bd | 21270 | fi |
ca81d7a0 JD |
21271 | ac_res=`eval echo '${'$as_ac_Header'}'` |
21272 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
21273 | echo "${ECHO_T}$ac_res" >&6; } | |
c0d27fcc MR |
21274 | |
21275 | fi | |
503d2be0 | 21276 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 21277 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 21278 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 21279 | _ACEOF |
503d2be0 | 21280 | |
a21616bd | 21281 | else |
503d2be0 AS |
21282 | |
21283 | for ac_header in kerberos/krb.h | |
a21616bd | 21284 | do |
503d2be0 | 21285 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
ca81d7a0 JD |
21286 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
21287 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
21288 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
21289 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 21290 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc | 21291 | fi |
ca81d7a0 JD |
21292 | ac_res=`eval echo '${'$as_ac_Header'}'` |
21293 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
21294 | echo "${ECHO_T}$ac_res" >&6; } | |
98418dba | 21295 | else |
c0d27fcc | 21296 | # Is the header compilable? |
ca81d7a0 JD |
21297 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
21298 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
c0d27fcc | 21299 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
21300 | /* confdefs.h. */ |
21301 | _ACEOF | |
21302 | cat confdefs.h >>conftest.$ac_ext | |
21303 | cat >>conftest.$ac_ext <<_ACEOF | |
21304 | /* end confdefs.h. */ | |
c0d27fcc MR |
21305 | $ac_includes_default |
21306 | #include <$ac_header> | |
21307 | _ACEOF | |
21308 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
21309 | if { (ac_try="$ac_compile" |
21310 | case "(($ac_try" in | |
21311 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21312 | *) ac_try_echo=$ac_try;; | |
21313 | esac | |
21314 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21315 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 21316 | ac_status=$? |
edfaf76d LK |
21317 | grep -v '^ *+' conftest.er1 >conftest.err |
21318 | rm -f conftest.er1 | |
21319 | cat conftest.err >&5 | |
c0d27fcc | 21320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
21321 | (exit $ac_status); } && { |
21322 | test -z "$ac_c_werror_flag" || | |
21323 | test ! -s conftest.err | |
21324 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
21325 | ac_header_compiler=yes |
21326 | else | |
21327 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
21328 | sed 's/^/| /' conftest.$ac_ext >&5 |
21329 | ||
ca81d7a0 | 21330 | ac_header_compiler=no |
c0d27fcc | 21331 | fi |
ca81d7a0 JD |
21332 | |
21333 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
21334 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
21335 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
21336 | |
21337 | # Is the header present? | |
ca81d7a0 JD |
21338 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
21339 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
c0d27fcc | 21340 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
21341 | /* confdefs.h. */ |
21342 | _ACEOF | |
21343 | cat confdefs.h >>conftest.$ac_ext | |
21344 | cat >>conftest.$ac_ext <<_ACEOF | |
21345 | /* end confdefs.h. */ | |
503d2be0 AS |
21346 | #include <$ac_header> |
21347 | _ACEOF | |
ca81d7a0 JD |
21348 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
21349 | case "(($ac_try" in | |
21350 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21351 | *) ac_try_echo=$ac_try;; | |
21352 | esac | |
21353 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21354 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 21355 | ac_status=$? |
6bae0ccf | 21356 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
21357 | rm -f conftest.er1 |
21358 | cat conftest.err >&5 | |
c0d27fcc | 21359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
21360 | (exit $ac_status); } >/dev/null && { |
21361 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
21362 | test ! -s conftest.err | |
21363 | }; then | |
c0d27fcc | 21364 | ac_header_preproc=yes |
503d2be0 AS |
21365 | else |
21366 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
21367 | sed 's/^/| /' conftest.$ac_ext >&5 |
21368 | ||
c0d27fcc | 21369 | ac_header_preproc=no |
a21616bd | 21370 | fi |
ca81d7a0 | 21371 | |
503d2be0 | 21372 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
21373 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
21374 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
35996d22 AS |
21375 | |
21376 | # So? What about this header? | |
edfaf76d LK |
21377 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21378 | yes:no: ) | |
35996d22 AS |
21379 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
21380 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
21381 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
21382 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
21383 | ac_header_preproc=yes | |
19650fd6 | 21384 | ;; |
edfaf76d | 21385 | no:yes:* ) |
c0d27fcc MR |
21386 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
21387 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
edfaf76d LK |
21388 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
21389 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
21390 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
21391 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
21392 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
21393 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 21394 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 21395 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
21396 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
21397 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 21398 | |
19650fd6 | 21399 | ;; |
c0d27fcc | 21400 | esac |
ca81d7a0 JD |
21401 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
21402 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
21403 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
c0d27fcc MR |
21404 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21405 | else | |
edfaf76d | 21406 | eval "$as_ac_Header=\$ac_header_preproc" |
a21616bd | 21407 | fi |
ca81d7a0 JD |
21408 | ac_res=`eval echo '${'$as_ac_Header'}'` |
21409 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
21410 | echo "${ECHO_T}$ac_res" >&6; } | |
c0d27fcc MR |
21411 | |
21412 | fi | |
503d2be0 | 21413 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 21414 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 21415 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 21416 | _ACEOF |
503d2be0 | 21417 | |
a21616bd | 21418 | fi |
c0d27fcc | 21419 | |
a21616bd KR |
21420 | done |
21421 | ||
21422 | fi | |
c0d27fcc | 21423 | |
a21616bd KR |
21424 | done |
21425 | ||
21426 | fi | |
c0d27fcc | 21427 | |
a21616bd KR |
21428 | done |
21429 | ||
21430 | fi | |
503d2be0 AS |
21431 | |
21432 | for ac_header in com_err.h | |
a21616bd | 21433 | do |
503d2be0 | 21434 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
ca81d7a0 JD |
21435 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
21436 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
21437 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
21438 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 21439 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc | 21440 | fi |
ca81d7a0 JD |
21441 | ac_res=`eval echo '${'$as_ac_Header'}'` |
21442 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
21443 | echo "${ECHO_T}$ac_res" >&6; } | |
98418dba | 21444 | else |
c0d27fcc | 21445 | # Is the header compilable? |
ca81d7a0 JD |
21446 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
21447 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
c0d27fcc | 21448 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
21449 | /* confdefs.h. */ |
21450 | _ACEOF | |
21451 | cat confdefs.h >>conftest.$ac_ext | |
21452 | cat >>conftest.$ac_ext <<_ACEOF | |
21453 | /* end confdefs.h. */ | |
c0d27fcc MR |
21454 | $ac_includes_default |
21455 | #include <$ac_header> | |
21456 | _ACEOF | |
21457 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
21458 | if { (ac_try="$ac_compile" |
21459 | case "(($ac_try" in | |
21460 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21461 | *) ac_try_echo=$ac_try;; | |
21462 | esac | |
21463 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21464 | (eval "$ac_compile") 2>conftest.er1 | |
edfaf76d LK |
21465 | ac_status=$? |
21466 | grep -v '^ *+' conftest.er1 >conftest.err | |
21467 | rm -f conftest.er1 | |
21468 | cat conftest.err >&5 | |
21469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f053c89f CY |
21470 | (exit $ac_status); } && { |
21471 | test -z "$ac_c_werror_flag" || | |
21472 | test ! -s conftest.err | |
21473 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
21474 | ac_header_compiler=yes |
21475 | else | |
21476 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
21477 | sed 's/^/| /' conftest.$ac_ext >&5 |
21478 | ||
ca81d7a0 | 21479 | ac_header_compiler=no |
c0d27fcc | 21480 | fi |
ca81d7a0 JD |
21481 | |
21482 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
21483 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
21484 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
21485 | |
21486 | # Is the header present? | |
ca81d7a0 JD |
21487 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
21488 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
c0d27fcc | 21489 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
21490 | /* confdefs.h. */ |
21491 | _ACEOF | |
21492 | cat confdefs.h >>conftest.$ac_ext | |
21493 | cat >>conftest.$ac_ext <<_ACEOF | |
21494 | /* end confdefs.h. */ | |
503d2be0 AS |
21495 | #include <$ac_header> |
21496 | _ACEOF | |
ca81d7a0 JD |
21497 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
21498 | case "(($ac_try" in | |
21499 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21500 | *) ac_try_echo=$ac_try;; | |
21501 | esac | |
21502 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21503 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 21504 | ac_status=$? |
6bae0ccf | 21505 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
21506 | rm -f conftest.er1 |
21507 | cat conftest.err >&5 | |
c0d27fcc | 21508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
21509 | (exit $ac_status); } >/dev/null && { |
21510 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
21511 | test ! -s conftest.err | |
21512 | }; then | |
c0d27fcc | 21513 | ac_header_preproc=yes |
503d2be0 AS |
21514 | else |
21515 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
21516 | sed 's/^/| /' conftest.$ac_ext >&5 |
21517 | ||
c0d27fcc | 21518 | ac_header_preproc=no |
a21616bd | 21519 | fi |
ca81d7a0 | 21520 | |
503d2be0 | 21521 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
21522 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
21523 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
21524 | |
21525 | # So? What about this header? | |
edfaf76d LK |
21526 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21527 | yes:no: ) | |
c0d27fcc MR |
21528 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
21529 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
21530 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
21531 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
21532 | ac_header_preproc=yes | |
19650fd6 | 21533 | ;; |
edfaf76d | 21534 | no:yes:* ) |
c0d27fcc MR |
21535 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
21536 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
edfaf76d LK |
21537 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
21538 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
21539 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
21540 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
21541 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
21542 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 21543 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 21544 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
21545 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
21546 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 21547 | |
19650fd6 | 21548 | ;; |
c0d27fcc | 21549 | esac |
ca81d7a0 JD |
21550 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
21551 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
21552 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
c0d27fcc MR |
21553 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21554 | else | |
edfaf76d | 21555 | eval "$as_ac_Header=\$ac_header_preproc" |
a21616bd | 21556 | fi |
ca81d7a0 JD |
21557 | ac_res=`eval echo '${'$as_ac_Header'}'` |
21558 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
21559 | echo "${ECHO_T}$ac_res" >&6; } | |
c0d27fcc MR |
21560 | |
21561 | fi | |
503d2be0 | 21562 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 21563 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 21564 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 21565 | _ACEOF |
503d2be0 | 21566 | |
a21616bd | 21567 | fi |
c0d27fcc | 21568 | |
a21616bd KR |
21569 | done |
21570 | ||
21571 | fi | |
21572 | ||
ba4481b5 DL |
21573 | # Solaris requires -lintl if you want strerror (which calls dgettext) |
21574 | # to return localized messages. | |
503d2be0 | 21575 | |
ca81d7a0 JD |
21576 | { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5 |
21577 | echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; } | |
503d2be0 AS |
21578 | if test "${ac_cv_lib_intl_dgettext+set}" = set; then |
21579 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 21580 | else |
503d2be0 | 21581 | ac_check_lib_save_LIBS=$LIBS |
ba4481b5 | 21582 | LIBS="-lintl $LIBS" |
503d2be0 | 21583 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
21584 | /* confdefs.h. */ |
21585 | _ACEOF | |
21586 | cat confdefs.h >>conftest.$ac_ext | |
21587 | cat >>conftest.$ac_ext <<_ACEOF | |
21588 | /* end confdefs.h. */ | |
503d2be0 | 21589 | |
ca81d7a0 JD |
21590 | /* Override any GCC internal prototype to avoid an error. |
21591 | Use char because int might match the return type of a GCC | |
21592 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
21593 | #ifdef __cplusplus |
21594 | extern "C" | |
21595 | #endif | |
503d2be0 AS |
21596 | char dgettext (); |
21597 | int | |
21598 | main () | |
21599 | { | |
ca81d7a0 | 21600 | return dgettext (); |
503d2be0 AS |
21601 | ; |
21602 | return 0; | |
21603 | } | |
21604 | _ACEOF | |
21605 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
21606 | if { (ac_try="$ac_link" |
21607 | case "(($ac_try" in | |
21608 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21609 | *) ac_try_echo=$ac_try;; | |
21610 | esac | |
21611 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21612 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 21613 | ac_status=$? |
edfaf76d LK |
21614 | grep -v '^ *+' conftest.er1 >conftest.err |
21615 | rm -f conftest.er1 | |
21616 | cat conftest.err >&5 | |
c0d27fcc | 21617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
21618 | (exit $ac_status); } && { |
21619 | test -z "$ac_c_werror_flag" || | |
21620 | test ! -s conftest.err | |
21621 | } && test -s conftest$ac_exeext && | |
21622 | $as_test_x conftest$ac_exeext; then | |
503d2be0 AS |
21623 | ac_cv_lib_intl_dgettext=yes |
21624 | else | |
21625 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
21626 | sed 's/^/| /' conftest.$ac_ext >&5 |
21627 | ||
ca81d7a0 | 21628 | ac_cv_lib_intl_dgettext=no |
503d2be0 | 21629 | fi |
ca81d7a0 | 21630 | |
f053c89f | 21631 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 21632 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 AS |
21633 | LIBS=$ac_check_lib_save_LIBS |
21634 | fi | |
ca81d7a0 JD |
21635 | { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5 |
21636 | echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; } | |
503d2be0 | 21637 | if test $ac_cv_lib_intl_dgettext = yes; then |
c0d27fcc | 21638 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 21639 | #define HAVE_LIBINTL 1 |
c0d27fcc | 21640 | _ACEOF |
ba4481b5 DL |
21641 | |
21642 | LIBS="-lintl $LIBS" | |
21643 | ||
ba4481b5 DL |
21644 | fi |
21645 | ||
c0d27fcc | 21646 | |
ca81d7a0 JD |
21647 | { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5 |
21648 | echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; } | |
503d2be0 AS |
21649 | if test "${emacs_cv_localtime_cache+set}" = set; then |
21650 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 DL |
21651 | else |
21652 | if test x$ac_cv_func_tzset = xyes; then | |
21653 | if test "$cross_compiling" = yes; then | |
21654 | # If we have tzset, assume the worst when cross-compiling. | |
21655 | emacs_cv_localtime_cache=yes | |
21656 | else | |
503d2be0 | 21657 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
21658 | /* confdefs.h. */ |
21659 | _ACEOF | |
21660 | cat confdefs.h >>conftest.$ac_ext | |
21661 | cat >>conftest.$ac_ext <<_ACEOF | |
21662 | /* end confdefs.h. */ | |
ba4481b5 | 21663 | #include <time.h> |
ba4481b5 DL |
21664 | extern char **environ; |
21665 | unset_TZ () | |
21666 | { | |
21667 | char **from, **to; | |
21668 | for (to = from = environ; (*to = *from); from++) | |
21669 | if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '=')) | |
21670 | to++; | |
21671 | } | |
21672 | char TZ_GMT0[] = "TZ=GMT0"; | |
21673 | char TZ_PST8[] = "TZ=PST8"; | |
21674 | main() | |
21675 | { | |
21676 | time_t now = time ((time_t *) 0); | |
21677 | int hour_GMT0, hour_unset; | |
21678 | if (putenv (TZ_GMT0) != 0) | |
21679 | exit (1); | |
21680 | hour_GMT0 = localtime (&now)->tm_hour; | |
21681 | unset_TZ (); | |
21682 | hour_unset = localtime (&now)->tm_hour; | |
21683 | if (putenv (TZ_PST8) != 0) | |
21684 | exit (1); | |
21685 | if (localtime (&now)->tm_hour == hour_GMT0) | |
21686 | exit (1); | |
21687 | unset_TZ (); | |
21688 | if (localtime (&now)->tm_hour != hour_unset) | |
21689 | exit (1); | |
21690 | exit (0); | |
21691 | } | |
503d2be0 AS |
21692 | _ACEOF |
21693 | rm -f conftest$ac_exeext | |
ca81d7a0 JD |
21694 | if { (ac_try="$ac_link" |
21695 | case "(($ac_try" in | |
21696 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21697 | *) ac_try_echo=$ac_try;; | |
21698 | esac | |
21699 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21700 | (eval "$ac_link") 2>&5 | |
503d2be0 | 21701 | ac_status=$? |
c0d27fcc | 21702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 21703 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
ca81d7a0 JD |
21704 | { (case "(($ac_try" in |
21705 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21706 | *) ac_try_echo=$ac_try;; | |
21707 | esac | |
21708 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21709 | (eval "$ac_try") 2>&5 | |
503d2be0 | 21710 | ac_status=$? |
c0d27fcc | 21711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 21712 | (exit $ac_status); }; }; then |
ba4481b5 DL |
21713 | emacs_cv_localtime_cache=no |
21714 | else | |
503d2be0 AS |
21715 | echo "$as_me: program exited with status $ac_status" >&5 |
21716 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
21717 | sed 's/^/| /' conftest.$ac_ext >&5 |
21718 | ||
c0d27fcc | 21719 | ( exit $ac_status ) |
503d2be0 | 21720 | emacs_cv_localtime_cache=yes |
ba4481b5 | 21721 | fi |
ca81d7a0 | 21722 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 21723 | fi |
ca81d7a0 JD |
21724 | |
21725 | ||
ba4481b5 DL |
21726 | else |
21727 | # If we lack tzset, report that localtime does not cache TZ, | |
21728 | # since we can't invalidate the cache if we don't have tzset. | |
21729 | emacs_cv_localtime_cache=no | |
21730 | fi | |
21731 | fi | |
ca81d7a0 JD |
21732 | { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5 |
21733 | echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; } | |
ba4481b5 | 21734 | if test $emacs_cv_localtime_cache = yes; then |
b936fae4 | 21735 | |
c0d27fcc | 21736 | cat >>confdefs.h <<\_ACEOF |
ba4481b5 | 21737 | #define LOCALTIME_CACHE 1 |
c0d27fcc | 21738 | _ACEOF |
ba4481b5 DL |
21739 | |
21740 | fi | |
21741 | ||
21742 | if test "x$HAVE_TIMEVAL" = xyes; then | |
503d2be0 AS |
21743 | |
21744 | for ac_func in gettimeofday | |
48d4b120 | 21745 | do |
503d2be0 | 21746 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
ca81d7a0 JD |
21747 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
21748 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
21749 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 21750 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
48d4b120 | 21751 | else |
503d2be0 | 21752 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
21753 | /* confdefs.h. */ |
21754 | _ACEOF | |
21755 | cat confdefs.h >>conftest.$ac_ext | |
21756 | cat >>conftest.$ac_ext <<_ACEOF | |
21757 | /* end confdefs.h. */ | |
edfaf76d LK |
21758 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
21759 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
21760 | #define $ac_func innocuous_$ac_func | |
21761 | ||
48d4b120 | 21762 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
21763 | which can conflict with char $ac_func (); below. |
21764 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
21765 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 21766 | |
19650fd6 AS |
21767 | #ifdef __STDC__ |
21768 | # include <limits.h> | |
21769 | #else | |
21770 | # include <assert.h> | |
21771 | #endif | |
edfaf76d LK |
21772 | |
21773 | #undef $ac_func | |
21774 | ||
ca81d7a0 JD |
21775 | /* Override any GCC internal prototype to avoid an error. |
21776 | Use char because int might match the return type of a GCC | |
21777 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
21778 | #ifdef __cplusplus |
21779 | extern "C" | |
21780 | #endif | |
503d2be0 | 21781 | char $ac_func (); |
48d4b120 DL |
21782 | /* The GNU C library defines this for functions which it implements |
21783 | to always fail with ENOSYS. Some functions are actually named | |
21784 | something starting with __ and the normal name is an alias. */ | |
ca81d7a0 | 21785 | #if defined __stub_$ac_func || defined __stub___$ac_func |
48d4b120 | 21786 | choke me |
cd958eb3 MB |
21787 | #endif |
21788 | ||
19650fd6 AS |
21789 | int |
21790 | main () | |
21791 | { | |
ca81d7a0 | 21792 | return $ac_func (); |
503d2be0 AS |
21793 | ; |
21794 | return 0; | |
21795 | } | |
21796 | _ACEOF | |
21797 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
21798 | if { (ac_try="$ac_link" |
21799 | case "(($ac_try" in | |
21800 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21801 | *) ac_try_echo=$ac_try;; | |
21802 | esac | |
21803 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21804 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 21805 | ac_status=$? |
edfaf76d LK |
21806 | grep -v '^ *+' conftest.er1 >conftest.err |
21807 | rm -f conftest.er1 | |
21808 | cat conftest.err >&5 | |
c0d27fcc | 21809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
21810 | (exit $ac_status); } && { |
21811 | test -z "$ac_c_werror_flag" || | |
21812 | test ! -s conftest.err | |
21813 | } && test -s conftest$ac_exeext && | |
21814 | $as_test_x conftest$ac_exeext; then | |
503d2be0 AS |
21815 | eval "$as_ac_var=yes" |
21816 | else | |
21817 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
21818 | sed 's/^/| /' conftest.$ac_ext >&5 |
21819 | ||
ca81d7a0 | 21820 | eval "$as_ac_var=no" |
503d2be0 | 21821 | fi |
ca81d7a0 | 21822 | |
f053c89f | 21823 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 21824 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 | 21825 | fi |
ca81d7a0 JD |
21826 | ac_res=`eval echo '${'$as_ac_var'}'` |
21827 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
21828 | echo "${ECHO_T}$ac_res" >&6; } | |
503d2be0 | 21829 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
c0d27fcc | 21830 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 21831 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 21832 | _ACEOF |
48d4b120 | 21833 | |
48d4b120 DL |
21834 | fi |
21835 | done | |
21836 | ||
b936fae4 | 21837 | if test $ac_cv_func_gettimeofday = yes; then |
ca81d7a0 JD |
21838 | { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5 |
21839 | echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; } | |
503d2be0 AS |
21840 | if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then |
21841 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 21842 | else |
503d2be0 | 21843 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
21844 | /* confdefs.h. */ |
21845 | _ACEOF | |
21846 | cat confdefs.h >>conftest.$ac_ext | |
21847 | cat >>conftest.$ac_ext <<_ACEOF | |
21848 | /* end confdefs.h. */ | |
ba4481b5 | 21849 | |
a3f08d9e DL |
21850 | #ifdef TIME_WITH_SYS_TIME |
21851 | #include <sys/time.h> | |
21852 | #include <time.h> | |
21853 | #else | |
21854 | #ifdef HAVE_SYS_TIME_H | |
21855 | #include <sys/time.h> | |
21856 | #else | |
21857 | #include <time.h> | |
21858 | #endif | |
21859 | #endif | |
503d2be0 AS |
21860 | int |
21861 | main () | |
21862 | { | |
a3f08d9e | 21863 | struct timeval time; |
b936fae4 | 21864 | gettimeofday (&time, 0); |
503d2be0 AS |
21865 | ; |
21866 | return 0; | |
21867 | } | |
21868 | _ACEOF | |
21869 | rm -f conftest.$ac_objext | |
f053c89f CY |
21870 | if { (ac_try="$ac_compile" |
21871 | case "(($ac_try" in | |
ca81d7a0 JD |
21872 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
21873 | *) ac_try_echo=$ac_try;; | |
21874 | esac | |
21875 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
f053c89f | 21876 | (eval "$ac_compile") 2>conftest.er1 |
503d2be0 | 21877 | ac_status=$? |
f053c89f CY |
21878 | grep -v '^ *+' conftest.er1 >conftest.err |
21879 | rm -f conftest.er1 | |
21880 | cat conftest.err >&5 | |
c0d27fcc | 21881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
21882 | (exit $ac_status); } && { |
21883 | test -z "$ac_c_werror_flag" || | |
21884 | test ! -s conftest.err | |
21885 | } && test -s conftest.$ac_objext; then | |
ba4481b5 DL |
21886 | emacs_cv_gettimeofday_two_arguments=yes |
21887 | else | |
503d2be0 | 21888 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
21889 | sed 's/^/| /' conftest.$ac_ext >&5 |
21890 | ||
ca81d7a0 | 21891 | emacs_cv_gettimeofday_two_arguments=no |
ba4481b5 | 21892 | fi |
ca81d7a0 JD |
21893 | |
21894 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ba4481b5 | 21895 | fi |
ca81d7a0 JD |
21896 | { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5 |
21897 | echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; } | |
b936fae4 AS |
21898 | if test $emacs_cv_gettimeofday_two_arguments = no; then |
21899 | ||
c0d27fcc | 21900 | cat >>confdefs.h <<\_ACEOF |
ba4481b5 | 21901 | #define GETTIMEOFDAY_ONE_ARGUMENT 1 |
c0d27fcc | 21902 | _ACEOF |
ba4481b5 | 21903 | |
b936fae4 | 21904 | fi |
ba4481b5 DL |
21905 | fi |
21906 | fi | |
21907 | ||
21908 | ok_so_far=yes | |
ca81d7a0 JD |
21909 | { echo "$as_me:$LINENO: checking for socket" >&5 |
21910 | echo $ECHO_N "checking for socket... $ECHO_C" >&6; } | |
503d2be0 AS |
21911 | if test "${ac_cv_func_socket+set}" = set; then |
21912 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 21913 | else |
503d2be0 | 21914 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
21915 | /* confdefs.h. */ |
21916 | _ACEOF | |
21917 | cat confdefs.h >>conftest.$ac_ext | |
21918 | cat >>conftest.$ac_ext <<_ACEOF | |
21919 | /* end confdefs.h. */ | |
edfaf76d LK |
21920 | /* Define socket to an innocuous variant, in case <limits.h> declares socket. |
21921 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
21922 | #define socket innocuous_socket | |
21923 | ||
ba4481b5 | 21924 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
21925 | which can conflict with char socket (); below. |
21926 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
21927 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 21928 | |
19650fd6 AS |
21929 | #ifdef __STDC__ |
21930 | # include <limits.h> | |
21931 | #else | |
21932 | # include <assert.h> | |
21933 | #endif | |
edfaf76d LK |
21934 | |
21935 | #undef socket | |
21936 | ||
ca81d7a0 JD |
21937 | /* Override any GCC internal prototype to avoid an error. |
21938 | Use char because int might match the return type of a GCC | |
21939 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
21940 | #ifdef __cplusplus |
21941 | extern "C" | |
21942 | #endif | |
503d2be0 | 21943 | char socket (); |
ba4481b5 DL |
21944 | /* The GNU C library defines this for functions which it implements |
21945 | to always fail with ENOSYS. Some functions are actually named | |
21946 | something starting with __ and the normal name is an alias. */ | |
ca81d7a0 | 21947 | #if defined __stub_socket || defined __stub___socket |
ba4481b5 | 21948 | choke me |
cd958eb3 MB |
21949 | #endif |
21950 | ||
19650fd6 AS |
21951 | int |
21952 | main () | |
21953 | { | |
ca81d7a0 | 21954 | return socket (); |
503d2be0 AS |
21955 | ; |
21956 | return 0; | |
21957 | } | |
21958 | _ACEOF | |
21959 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
21960 | if { (ac_try="$ac_link" |
21961 | case "(($ac_try" in | |
21962 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21963 | *) ac_try_echo=$ac_try;; | |
21964 | esac | |
21965 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21966 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 21967 | ac_status=$? |
edfaf76d LK |
21968 | grep -v '^ *+' conftest.er1 >conftest.err |
21969 | rm -f conftest.er1 | |
21970 | cat conftest.err >&5 | |
c0d27fcc | 21971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
21972 | (exit $ac_status); } && { |
21973 | test -z "$ac_c_werror_flag" || | |
21974 | test ! -s conftest.err | |
21975 | } && test -s conftest$ac_exeext && | |
21976 | $as_test_x conftest$ac_exeext; then | |
503d2be0 AS |
21977 | ac_cv_func_socket=yes |
21978 | else | |
21979 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
21980 | sed 's/^/| /' conftest.$ac_ext >&5 |
21981 | ||
ca81d7a0 | 21982 | ac_cv_func_socket=no |
503d2be0 | 21983 | fi |
ca81d7a0 | 21984 | |
f053c89f | 21985 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 21986 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 | 21987 | fi |
ca81d7a0 JD |
21988 | { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 |
21989 | echo "${ECHO_T}$ac_cv_func_socket" >&6; } | |
503d2be0 | 21990 | if test $ac_cv_func_socket = yes; then |
ba4481b5 DL |
21991 | : |
21992 | else | |
503d2be0 | 21993 | ok_so_far=no |
ba4481b5 DL |
21994 | fi |
21995 | ||
21996 | if test $ok_so_far = yes; then | |
c0d27fcc | 21997 | if test "${ac_cv_header_netinet_in_h+set}" = set; then |
ca81d7a0 JD |
21998 | { echo "$as_me:$LINENO: checking for netinet/in.h" >&5 |
21999 | echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; } | |
503d2be0 AS |
22000 | if test "${ac_cv_header_netinet_in_h+set}" = set; then |
22001 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc | 22002 | fi |
ca81d7a0 JD |
22003 | { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5 |
22004 | echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; } | |
98418dba | 22005 | else |
c0d27fcc | 22006 | # Is the header compilable? |
ca81d7a0 JD |
22007 | { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5 |
22008 | echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; } | |
c0d27fcc | 22009 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
22010 | /* confdefs.h. */ |
22011 | _ACEOF | |
22012 | cat confdefs.h >>conftest.$ac_ext | |
22013 | cat >>conftest.$ac_ext <<_ACEOF | |
22014 | /* end confdefs.h. */ | |
c0d27fcc MR |
22015 | $ac_includes_default |
22016 | #include <netinet/in.h> | |
22017 | _ACEOF | |
22018 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
22019 | if { (ac_try="$ac_compile" |
22020 | case "(($ac_try" in | |
22021 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22022 | *) ac_try_echo=$ac_try;; | |
22023 | esac | |
22024 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22025 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 22026 | ac_status=$? |
edfaf76d LK |
22027 | grep -v '^ *+' conftest.er1 >conftest.err |
22028 | rm -f conftest.er1 | |
22029 | cat conftest.err >&5 | |
c0d27fcc | 22030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
22031 | (exit $ac_status); } && { |
22032 | test -z "$ac_c_werror_flag" || | |
22033 | test ! -s conftest.err | |
22034 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
22035 | ac_header_compiler=yes |
22036 | else | |
22037 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
22038 | sed 's/^/| /' conftest.$ac_ext >&5 |
22039 | ||
ca81d7a0 | 22040 | ac_header_compiler=no |
c0d27fcc | 22041 | fi |
ca81d7a0 JD |
22042 | |
22043 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
22044 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
22045 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
22046 | |
22047 | # Is the header present? | |
ca81d7a0 JD |
22048 | { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5 |
22049 | echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; } | |
c0d27fcc | 22050 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
22051 | /* confdefs.h. */ |
22052 | _ACEOF | |
22053 | cat confdefs.h >>conftest.$ac_ext | |
22054 | cat >>conftest.$ac_ext <<_ACEOF | |
22055 | /* end confdefs.h. */ | |
ba4481b5 | 22056 | #include <netinet/in.h> |
503d2be0 | 22057 | _ACEOF |
ca81d7a0 JD |
22058 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
22059 | case "(($ac_try" in | |
22060 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22061 | *) ac_try_echo=$ac_try;; | |
22062 | esac | |
22063 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22064 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 22065 | ac_status=$? |
6bae0ccf | 22066 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
22067 | rm -f conftest.er1 |
22068 | cat conftest.err >&5 | |
c0d27fcc | 22069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
22070 | (exit $ac_status); } >/dev/null && { |
22071 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
22072 | test ! -s conftest.err | |
22073 | }; then | |
c0d27fcc | 22074 | ac_header_preproc=yes |
ba4481b5 | 22075 | else |
503d2be0 | 22076 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
22077 | sed 's/^/| /' conftest.$ac_ext >&5 |
22078 | ||
c0d27fcc | 22079 | ac_header_preproc=no |
ba4481b5 | 22080 | fi |
ca81d7a0 | 22081 | |
503d2be0 | 22082 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
22083 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
22084 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
22085 | |
22086 | # So? What about this header? | |
edfaf76d LK |
22087 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
22088 | yes:no: ) | |
c0d27fcc MR |
22089 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
22090 | echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
22091 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5 |
22092 | echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;} | |
22093 | ac_header_preproc=yes | |
19650fd6 | 22094 | ;; |
edfaf76d | 22095 | no:yes:* ) |
c0d27fcc MR |
22096 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5 |
22097 | echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;} | |
edfaf76d LK |
22098 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5 |
22099 | echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;} | |
22100 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5 | |
22101 | echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;} | |
22102 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5 | |
22103 | echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 22104 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 22105 | echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
22106 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5 |
22107 | echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 22108 | |
19650fd6 | 22109 | ;; |
c0d27fcc | 22110 | esac |
ca81d7a0 JD |
22111 | { echo "$as_me:$LINENO: checking for netinet/in.h" >&5 |
22112 | echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; } | |
c0d27fcc MR |
22113 | if test "${ac_cv_header_netinet_in_h+set}" = set; then |
22114 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22115 | else | |
22116 | ac_cv_header_netinet_in_h=$ac_header_preproc | |
ba4481b5 | 22117 | fi |
ca81d7a0 JD |
22118 | { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5 |
22119 | echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; } | |
c0d27fcc MR |
22120 | |
22121 | fi | |
503d2be0 | 22122 | if test $ac_cv_header_netinet_in_h = yes; then |
ba4481b5 DL |
22123 | : |
22124 | else | |
503d2be0 | 22125 | ok_so_far=no |
ba4481b5 DL |
22126 | fi |
22127 | ||
c0d27fcc | 22128 | |
ba4481b5 DL |
22129 | fi |
22130 | if test $ok_so_far = yes; then | |
c0d27fcc | 22131 | if test "${ac_cv_header_arpa_inet_h+set}" = set; then |
ca81d7a0 JD |
22132 | { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5 |
22133 | echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; } | |
503d2be0 AS |
22134 | if test "${ac_cv_header_arpa_inet_h+set}" = set; then |
22135 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc | 22136 | fi |
ca81d7a0 JD |
22137 | { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5 |
22138 | echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; } | |
98418dba | 22139 | else |
c0d27fcc | 22140 | # Is the header compilable? |
ca81d7a0 JD |
22141 | { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5 |
22142 | echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; } | |
c0d27fcc | 22143 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
22144 | /* confdefs.h. */ |
22145 | _ACEOF | |
22146 | cat confdefs.h >>conftest.$ac_ext | |
22147 | cat >>conftest.$ac_ext <<_ACEOF | |
22148 | /* end confdefs.h. */ | |
c0d27fcc MR |
22149 | $ac_includes_default |
22150 | #include <arpa/inet.h> | |
22151 | _ACEOF | |
22152 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
22153 | if { (ac_try="$ac_compile" |
22154 | case "(($ac_try" in | |
22155 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22156 | *) ac_try_echo=$ac_try;; | |
22157 | esac | |
22158 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22159 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 22160 | ac_status=$? |
edfaf76d LK |
22161 | grep -v '^ *+' conftest.er1 >conftest.err |
22162 | rm -f conftest.er1 | |
22163 | cat conftest.err >&5 | |
c0d27fcc | 22164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
22165 | (exit $ac_status); } && { |
22166 | test -z "$ac_c_werror_flag" || | |
22167 | test ! -s conftest.err | |
22168 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
22169 | ac_header_compiler=yes |
22170 | else | |
22171 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
22172 | sed 's/^/| /' conftest.$ac_ext >&5 |
22173 | ||
ca81d7a0 | 22174 | ac_header_compiler=no |
c0d27fcc | 22175 | fi |
ca81d7a0 JD |
22176 | |
22177 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
22178 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
22179 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
22180 | |
22181 | # Is the header present? | |
ca81d7a0 JD |
22182 | { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5 |
22183 | echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; } | |
c0d27fcc | 22184 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
22185 | /* confdefs.h. */ |
22186 | _ACEOF | |
22187 | cat confdefs.h >>conftest.$ac_ext | |
22188 | cat >>conftest.$ac_ext <<_ACEOF | |
22189 | /* end confdefs.h. */ | |
ba4481b5 | 22190 | #include <arpa/inet.h> |
503d2be0 | 22191 | _ACEOF |
ca81d7a0 JD |
22192 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
22193 | case "(($ac_try" in | |
22194 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22195 | *) ac_try_echo=$ac_try;; | |
22196 | esac | |
22197 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22198 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 22199 | ac_status=$? |
6bae0ccf | 22200 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
22201 | rm -f conftest.er1 |
22202 | cat conftest.err >&5 | |
c0d27fcc | 22203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
22204 | (exit $ac_status); } >/dev/null && { |
22205 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
22206 | test ! -s conftest.err | |
22207 | }; then | |
c0d27fcc | 22208 | ac_header_preproc=yes |
ba4481b5 | 22209 | else |
503d2be0 | 22210 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
22211 | sed 's/^/| /' conftest.$ac_ext >&5 |
22212 | ||
c0d27fcc | 22213 | ac_header_preproc=no |
ba4481b5 | 22214 | fi |
ca81d7a0 | 22215 | |
503d2be0 | 22216 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
22217 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
22218 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
22219 | |
22220 | # So? What about this header? | |
edfaf76d LK |
22221 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
22222 | yes:no: ) | |
c0d27fcc MR |
22223 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
22224 | echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
22225 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5 |
22226 | echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;} | |
22227 | ac_header_preproc=yes | |
19650fd6 | 22228 | ;; |
edfaf76d | 22229 | no:yes:* ) |
c0d27fcc MR |
22230 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5 |
22231 | echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;} | |
edfaf76d LK |
22232 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5 |
22233 | echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;} | |
22234 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5 | |
22235 | echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;} | |
22236 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5 | |
22237 | echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 22238 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 22239 | echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
22240 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5 |
22241 | echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 22242 | |
19650fd6 | 22243 | ;; |
c0d27fcc | 22244 | esac |
ca81d7a0 JD |
22245 | { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5 |
22246 | echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; } | |
c0d27fcc MR |
22247 | if test "${ac_cv_header_arpa_inet_h+set}" = set; then |
22248 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22249 | else | |
22250 | ac_cv_header_arpa_inet_h=$ac_header_preproc | |
ba4481b5 | 22251 | fi |
ca81d7a0 JD |
22252 | { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5 |
22253 | echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; } | |
c0d27fcc MR |
22254 | |
22255 | fi | |
503d2be0 | 22256 | if test $ac_cv_header_arpa_inet_h = yes; then |
ba4481b5 DL |
22257 | : |
22258 | else | |
503d2be0 | 22259 | ok_so_far=no |
ba4481b5 DL |
22260 | fi |
22261 | ||
c0d27fcc | 22262 | |
ba4481b5 DL |
22263 | fi |
22264 | if test $ok_so_far = yes; then | |
b936fae4 | 22265 | |
c0d27fcc | 22266 | cat >>confdefs.h <<\_ACEOF |
ba4481b5 | 22267 | #define HAVE_INET_SOCKETS 1 |
c0d27fcc | 22268 | _ACEOF |
ba4481b5 DL |
22269 | |
22270 | fi | |
22271 | ||
2d2b6695 | 22272 | |
7862d3a8 | 22273 | for ac_header in sys/ioctl.h |
2d2b6695 KS |
22274 | do |
22275 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
ca81d7a0 JD |
22276 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
22277 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
22278 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
22279 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
2d2b6695 KS |
22280 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22281 | fi | |
ca81d7a0 JD |
22282 | ac_res=`eval echo '${'$as_ac_Header'}'` |
22283 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
22284 | echo "${ECHO_T}$ac_res" >&6; } | |
2d2b6695 KS |
22285 | else |
22286 | # Is the header compilable? | |
ca81d7a0 JD |
22287 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
22288 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
2d2b6695 | 22289 | cat >conftest.$ac_ext <<_ACEOF |
2d2b6695 KS |
22290 | /* confdefs.h. */ |
22291 | _ACEOF | |
22292 | cat confdefs.h >>conftest.$ac_ext | |
22293 | cat >>conftest.$ac_ext <<_ACEOF | |
22294 | /* end confdefs.h. */ | |
22295 | $ac_includes_default | |
22296 | #include <$ac_header> | |
22297 | _ACEOF | |
22298 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
22299 | if { (ac_try="$ac_compile" |
22300 | case "(($ac_try" in | |
22301 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22302 | *) ac_try_echo=$ac_try;; | |
22303 | esac | |
22304 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22305 | (eval "$ac_compile") 2>conftest.er1 | |
2d2b6695 | 22306 | ac_status=$? |
edfaf76d LK |
22307 | grep -v '^ *+' conftest.er1 >conftest.err |
22308 | rm -f conftest.er1 | |
22309 | cat conftest.err >&5 | |
2d2b6695 | 22310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
22311 | (exit $ac_status); } && { |
22312 | test -z "$ac_c_werror_flag" || | |
22313 | test ! -s conftest.err | |
22314 | } && test -s conftest.$ac_objext; then | |
2d2b6695 KS |
22315 | ac_header_compiler=yes |
22316 | else | |
22317 | echo "$as_me: failed program was:" >&5 | |
22318 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22319 | ||
ca81d7a0 | 22320 | ac_header_compiler=no |
2d2b6695 | 22321 | fi |
ca81d7a0 JD |
22322 | |
22323 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
22324 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
22325 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
2d2b6695 KS |
22326 | |
22327 | # Is the header present? | |
ca81d7a0 JD |
22328 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
22329 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
2d2b6695 | 22330 | cat >conftest.$ac_ext <<_ACEOF |
2d2b6695 KS |
22331 | /* confdefs.h. */ |
22332 | _ACEOF | |
22333 | cat confdefs.h >>conftest.$ac_ext | |
22334 | cat >>conftest.$ac_ext <<_ACEOF | |
22335 | /* end confdefs.h. */ | |
22336 | #include <$ac_header> | |
22337 | _ACEOF | |
ca81d7a0 JD |
22338 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
22339 | case "(($ac_try" in | |
22340 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22341 | *) ac_try_echo=$ac_try;; | |
22342 | esac | |
22343 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22344 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
2d2b6695 KS |
22345 | ac_status=$? |
22346 | grep -v '^ *+' conftest.er1 >conftest.err | |
22347 | rm -f conftest.er1 | |
22348 | cat conftest.err >&5 | |
22349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f053c89f CY |
22350 | (exit $ac_status); } >/dev/null && { |
22351 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
22352 | test ! -s conftest.err | |
22353 | }; then | |
2d2b6695 KS |
22354 | ac_header_preproc=yes |
22355 | else | |
22356 | echo "$as_me: failed program was:" >&5 | |
22357 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22358 | ||
22359 | ac_header_preproc=no | |
22360 | fi | |
ca81d7a0 | 22361 | |
2d2b6695 | 22362 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
22363 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
22364 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
2d2b6695 KS |
22365 | |
22366 | # So? What about this header? | |
edfaf76d LK |
22367 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
22368 | yes:no: ) | |
2d2b6695 KS |
22369 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
22370 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
22371 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
22372 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
22373 | ac_header_preproc=yes | |
2d2b6695 | 22374 | ;; |
edfaf76d | 22375 | no:yes:* ) |
2d2b6695 KS |
22376 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
22377 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
edfaf76d LK |
22378 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
22379 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
22380 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
22381 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
22382 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
22383 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
2d2b6695 KS |
22384 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
22385 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
edfaf76d LK |
22386 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
22387 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 22388 | |
2d2b6695 KS |
22389 | ;; |
22390 | esac | |
ca81d7a0 JD |
22391 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
22392 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
22393 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
2d2b6695 KS |
22394 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22395 | else | |
edfaf76d | 22396 | eval "$as_ac_Header=\$ac_header_preproc" |
2d2b6695 | 22397 | fi |
ca81d7a0 JD |
22398 | ac_res=`eval echo '${'$as_ac_Header'}'` |
22399 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
22400 | echo "${ECHO_T}$ac_res" >&6; } | |
2d2b6695 KS |
22401 | |
22402 | fi | |
22403 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
22404 | cat >>confdefs.h <<_ACEOF | |
22405 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
22406 | _ACEOF | |
22407 | ||
22408 | fi | |
22409 | ||
22410 | done | |
22411 | ||
22412 | ||
ba4481b5 | 22413 | if test -f /usr/lpp/X11/bin/smt.exp; then |
b936fae4 | 22414 | |
c0d27fcc | 22415 | cat >>confdefs.h <<\_ACEOF |
ba4481b5 | 22416 | #define HAVE_AIX_SMT_EXP 1 |
c0d27fcc | 22417 | _ACEOF |
ba4481b5 DL |
22418 | |
22419 | fi | |
22420 | ||
ca81d7a0 JD |
22421 | { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5 |
22422 | echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; } | |
3d9fec71 | 22423 | if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then |
ca81d7a0 JD |
22424 | { echo "$as_me:$LINENO: result: yes" >&5 |
22425 | echo "${ECHO_T}yes" >&6; } | |
b936fae4 | 22426 | |
c0d27fcc | 22427 | cat >>confdefs.h <<\_ACEOF |
3d9fec71 | 22428 | #define HAVE_DEV_PTMX 1 |
c0d27fcc | 22429 | _ACEOF |
3d9fec71 DL |
22430 | |
22431 | else | |
ca81d7a0 JD |
22432 | { echo "$as_me:$LINENO: result: no" >&5 |
22433 | echo "${ECHO_T}no" >&6; } | |
3d9fec71 DL |
22434 | fi |
22435 | ||
ca81d7a0 JD |
22436 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
22437 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } | |
503d2be0 AS |
22438 | if test "${ac_cv_type_pid_t+set}" = set; then |
22439 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
647847ea | 22440 | else |
503d2be0 | 22441 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
22442 | /* confdefs.h. */ |
22443 | _ACEOF | |
22444 | cat confdefs.h >>conftest.$ac_ext | |
22445 | cat >>conftest.$ac_ext <<_ACEOF | |
22446 | /* end confdefs.h. */ | |
503d2be0 | 22447 | $ac_includes_default |
ca81d7a0 | 22448 | typedef pid_t ac__type_new_; |
503d2be0 AS |
22449 | int |
22450 | main () | |
22451 | { | |
ca81d7a0 | 22452 | if ((ac__type_new_ *) 0) |
503d2be0 | 22453 | return 0; |
ca81d7a0 | 22454 | if (sizeof (ac__type_new_)) |
503d2be0 AS |
22455 | return 0; |
22456 | ; | |
22457 | return 0; | |
22458 | } | |
22459 | _ACEOF | |
22460 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
22461 | if { (ac_try="$ac_compile" |
22462 | case "(($ac_try" in | |
22463 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22464 | *) ac_try_echo=$ac_try;; | |
22465 | esac | |
22466 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22467 | (eval "$ac_compile") 2>conftest.er1 | |
503d2be0 | 22468 | ac_status=$? |
edfaf76d LK |
22469 | grep -v '^ *+' conftest.er1 >conftest.err |
22470 | rm -f conftest.er1 | |
22471 | cat conftest.err >&5 | |
c0d27fcc | 22472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
22473 | (exit $ac_status); } && { |
22474 | test -z "$ac_c_werror_flag" || | |
22475 | test ! -s conftest.err | |
22476 | } && test -s conftest.$ac_objext; then | |
647847ea DL |
22477 | ac_cv_type_pid_t=yes |
22478 | else | |
503d2be0 | 22479 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
22480 | sed 's/^/| /' conftest.$ac_ext >&5 |
22481 | ||
ca81d7a0 | 22482 | ac_cv_type_pid_t=no |
647847ea | 22483 | fi |
ca81d7a0 JD |
22484 | |
22485 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
647847ea | 22486 | fi |
ca81d7a0 JD |
22487 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
22488 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } | |
503d2be0 AS |
22489 | if test $ac_cv_type_pid_t = yes; then |
22490 | : | |
22491 | else | |
22492 | ||
c0d27fcc | 22493 | cat >>confdefs.h <<_ACEOF |
647847ea | 22494 | #define pid_t int |
c0d27fcc | 22495 | _ACEOF |
647847ea DL |
22496 | |
22497 | fi | |
22498 | ||
c0d27fcc | 22499 | |
ca81d7a0 | 22500 | for ac_header in vfork.h |
503d2be0 AS |
22501 | do |
22502 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
ca81d7a0 JD |
22503 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
22504 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
22505 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
22506 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 22507 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc | 22508 | fi |
ca81d7a0 JD |
22509 | ac_res=`eval echo '${'$as_ac_Header'}'` |
22510 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
22511 | echo "${ECHO_T}$ac_res" >&6; } | |
98418dba | 22512 | else |
c0d27fcc | 22513 | # Is the header compilable? |
ca81d7a0 JD |
22514 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
22515 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
c0d27fcc | 22516 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
22517 | /* confdefs.h. */ |
22518 | _ACEOF | |
22519 | cat confdefs.h >>conftest.$ac_ext | |
22520 | cat >>conftest.$ac_ext <<_ACEOF | |
22521 | /* end confdefs.h. */ | |
c0d27fcc MR |
22522 | $ac_includes_default |
22523 | #include <$ac_header> | |
22524 | _ACEOF | |
22525 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
22526 | if { (ac_try="$ac_compile" |
22527 | case "(($ac_try" in | |
22528 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22529 | *) ac_try_echo=$ac_try;; | |
22530 | esac | |
22531 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22532 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 22533 | ac_status=$? |
edfaf76d LK |
22534 | grep -v '^ *+' conftest.er1 >conftest.err |
22535 | rm -f conftest.er1 | |
22536 | cat conftest.err >&5 | |
c0d27fcc | 22537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
22538 | (exit $ac_status); } && { |
22539 | test -z "$ac_c_werror_flag" || | |
22540 | test ! -s conftest.err | |
22541 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
22542 | ac_header_compiler=yes |
22543 | else | |
22544 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
22545 | sed 's/^/| /' conftest.$ac_ext >&5 |
22546 | ||
ca81d7a0 | 22547 | ac_header_compiler=no |
c0d27fcc | 22548 | fi |
ca81d7a0 JD |
22549 | |
22550 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
22551 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
22552 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
22553 | |
22554 | # Is the header present? | |
ca81d7a0 JD |
22555 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
22556 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
c0d27fcc | 22557 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
22558 | /* confdefs.h. */ |
22559 | _ACEOF | |
22560 | cat confdefs.h >>conftest.$ac_ext | |
22561 | cat >>conftest.$ac_ext <<_ACEOF | |
22562 | /* end confdefs.h. */ | |
503d2be0 AS |
22563 | #include <$ac_header> |
22564 | _ACEOF | |
ca81d7a0 JD |
22565 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
22566 | case "(($ac_try" in | |
22567 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22568 | *) ac_try_echo=$ac_try;; | |
22569 | esac | |
22570 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22571 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 22572 | ac_status=$? |
6bae0ccf | 22573 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
22574 | rm -f conftest.er1 |
22575 | cat conftest.err >&5 | |
c0d27fcc | 22576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
22577 | (exit $ac_status); } >/dev/null && { |
22578 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
22579 | test ! -s conftest.err | |
22580 | }; then | |
c0d27fcc | 22581 | ac_header_preproc=yes |
647847ea | 22582 | else |
503d2be0 | 22583 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
22584 | sed 's/^/| /' conftest.$ac_ext >&5 |
22585 | ||
c0d27fcc | 22586 | ac_header_preproc=no |
647847ea | 22587 | fi |
ca81d7a0 | 22588 | |
503d2be0 | 22589 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
22590 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
22591 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
22592 | |
22593 | # So? What about this header? | |
edfaf76d LK |
22594 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
22595 | yes:no: ) | |
c0d27fcc MR |
22596 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
22597 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
22598 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
22599 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
22600 | ac_header_preproc=yes | |
19650fd6 | 22601 | ;; |
edfaf76d | 22602 | no:yes:* ) |
c0d27fcc MR |
22603 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
22604 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
edfaf76d LK |
22605 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
22606 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
22607 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
22608 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
22609 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
22610 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 22611 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 22612 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
22613 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
22614 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 22615 | |
19650fd6 | 22616 | ;; |
c0d27fcc | 22617 | esac |
ca81d7a0 JD |
22618 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
22619 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
22620 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
c0d27fcc MR |
22621 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22622 | else | |
edfaf76d | 22623 | eval "$as_ac_Header=\$ac_header_preproc" |
647847ea | 22624 | fi |
ca81d7a0 JD |
22625 | ac_res=`eval echo '${'$as_ac_Header'}'` |
22626 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
22627 | echo "${ECHO_T}$ac_res" >&6; } | |
c0d27fcc MR |
22628 | |
22629 | fi | |
503d2be0 | 22630 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 22631 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 22632 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 22633 | _ACEOF |
647847ea | 22634 | |
73b77ee5 | 22635 | fi |
c0d27fcc | 22636 | |
503d2be0 | 22637 | done |
73b77ee5 | 22638 | |
c0d27fcc MR |
22639 | |
22640 | ||
503d2be0 AS |
22641 | for ac_func in fork vfork |
22642 | do | |
22643 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
ca81d7a0 JD |
22644 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
22645 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
22646 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 22647 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
fa0b693c | 22648 | else |
503d2be0 | 22649 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
22650 | /* confdefs.h. */ |
22651 | _ACEOF | |
22652 | cat confdefs.h >>conftest.$ac_ext | |
22653 | cat >>conftest.$ac_ext <<_ACEOF | |
22654 | /* end confdefs.h. */ | |
edfaf76d LK |
22655 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
22656 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
22657 | #define $ac_func innocuous_$ac_func | |
22658 | ||
fa0b693c | 22659 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
22660 | which can conflict with char $ac_func (); below. |
22661 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
22662 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 22663 | |
19650fd6 AS |
22664 | #ifdef __STDC__ |
22665 | # include <limits.h> | |
22666 | #else | |
22667 | # include <assert.h> | |
22668 | #endif | |
edfaf76d LK |
22669 | |
22670 | #undef $ac_func | |
22671 | ||
ca81d7a0 JD |
22672 | /* Override any GCC internal prototype to avoid an error. |
22673 | Use char because int might match the return type of a GCC | |
22674 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
22675 | #ifdef __cplusplus |
22676 | extern "C" | |
22677 | #endif | |
503d2be0 | 22678 | char $ac_func (); |
fa0b693c GM |
22679 | /* The GNU C library defines this for functions which it implements |
22680 | to always fail with ENOSYS. Some functions are actually named | |
22681 | something starting with __ and the normal name is an alias. */ | |
ca81d7a0 | 22682 | #if defined __stub_$ac_func || defined __stub___$ac_func |
fa0b693c | 22683 | choke me |
fa0b693c GM |
22684 | #endif |
22685 | ||
19650fd6 AS |
22686 | int |
22687 | main () | |
22688 | { | |
ca81d7a0 | 22689 | return $ac_func (); |
503d2be0 AS |
22690 | ; |
22691 | return 0; | |
22692 | } | |
22693 | _ACEOF | |
22694 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
22695 | if { (ac_try="$ac_link" |
22696 | case "(($ac_try" in | |
22697 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22698 | *) ac_try_echo=$ac_try;; | |
22699 | esac | |
22700 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22701 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 22702 | ac_status=$? |
edfaf76d LK |
22703 | grep -v '^ *+' conftest.er1 >conftest.err |
22704 | rm -f conftest.er1 | |
22705 | cat conftest.err >&5 | |
c0d27fcc | 22706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
22707 | (exit $ac_status); } && { |
22708 | test -z "$ac_c_werror_flag" || | |
22709 | test ! -s conftest.err | |
22710 | } && test -s conftest$ac_exeext && | |
22711 | $as_test_x conftest$ac_exeext; then | |
503d2be0 AS |
22712 | eval "$as_ac_var=yes" |
22713 | else | |
22714 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
22715 | sed 's/^/| /' conftest.$ac_ext >&5 |
22716 | ||
ca81d7a0 | 22717 | eval "$as_ac_var=no" |
503d2be0 | 22718 | fi |
ca81d7a0 | 22719 | |
f053c89f | 22720 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 22721 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 | 22722 | fi |
ca81d7a0 JD |
22723 | ac_res=`eval echo '${'$as_ac_var'}'` |
22724 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
22725 | echo "${ECHO_T}$ac_res" >&6; } | |
503d2be0 | 22726 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
c0d27fcc | 22727 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 22728 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 22729 | _ACEOF |
503d2be0 | 22730 | |
fa0b693c | 22731 | fi |
503d2be0 | 22732 | done |
fa0b693c | 22733 | |
503d2be0 | 22734 | if test "x$ac_cv_func_fork" = xyes; then |
ca81d7a0 JD |
22735 | { echo "$as_me:$LINENO: checking for working fork" >&5 |
22736 | echo $ECHO_N "checking for working fork... $ECHO_C" >&6; } | |
503d2be0 AS |
22737 | if test "${ac_cv_func_fork_works+set}" = set; then |
22738 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fa0b693c | 22739 | else |
503d2be0 AS |
22740 | if test "$cross_compiling" = yes; then |
22741 | ac_cv_func_fork_works=cross | |
22742 | else | |
22743 | cat >conftest.$ac_ext <<_ACEOF | |
ca81d7a0 JD |
22744 | /* confdefs.h. */ |
22745 | _ACEOF | |
22746 | cat confdefs.h >>conftest.$ac_ext | |
22747 | cat >>conftest.$ac_ext <<_ACEOF | |
22748 | /* end confdefs.h. */ | |
22749 | $ac_includes_default | |
22750 | int | |
22751 | main () | |
22752 | { | |
22753 | ||
22754 | /* By Ruediger Kuhlmann. */ | |
22755 | return fork () < 0; | |
22756 | ||
22757 | ; | |
22758 | return 0; | |
22759 | } | |
503d2be0 AS |
22760 | _ACEOF |
22761 | rm -f conftest$ac_exeext | |
ca81d7a0 JD |
22762 | if { (ac_try="$ac_link" |
22763 | case "(($ac_try" in | |
22764 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22765 | *) ac_try_echo=$ac_try;; | |
22766 | esac | |
22767 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22768 | (eval "$ac_link") 2>&5 | |
503d2be0 | 22769 | ac_status=$? |
c0d27fcc | 22770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 22771 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
ca81d7a0 JD |
22772 | { (case "(($ac_try" in |
22773 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22774 | *) ac_try_echo=$ac_try;; | |
22775 | esac | |
22776 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22777 | (eval "$ac_try") 2>&5 | |
503d2be0 | 22778 | ac_status=$? |
c0d27fcc | 22779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
22780 | (exit $ac_status); }; }; then |
22781 | ac_cv_func_fork_works=yes | |
22782 | else | |
22783 | echo "$as_me: program exited with status $ac_status" >&5 | |
22784 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
22785 | sed 's/^/| /' conftest.$ac_ext >&5 |
22786 | ||
c0d27fcc | 22787 | ( exit $ac_status ) |
503d2be0 AS |
22788 | ac_cv_func_fork_works=no |
22789 | fi | |
ca81d7a0 | 22790 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
503d2be0 | 22791 | fi |
ca81d7a0 JD |
22792 | |
22793 | ||
503d2be0 | 22794 | fi |
ca81d7a0 JD |
22795 | { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 |
22796 | echo "${ECHO_T}$ac_cv_func_fork_works" >&6; } | |
503d2be0 | 22797 | |
6bae0ccf DL |
22798 | else |
22799 | ac_cv_func_fork_works=$ac_cv_func_fork | |
503d2be0 AS |
22800 | fi |
22801 | if test "x$ac_cv_func_fork_works" = xcross; then | |
22802 | case $host in | |
22803 | *-*-amigaos* | *-*-msdosdjgpp*) | |
22804 | # Override, as these systems have only a dummy fork() stub | |
22805 | ac_cv_func_fork_works=no | |
22806 | ;; | |
22807 | *) | |
22808 | ac_cv_func_fork_works=yes | |
22809 | ;; | |
22810 | esac | |
c0d27fcc MR |
22811 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 |
22812 | echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
fa0b693c | 22813 | fi |
73b77ee5 | 22814 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
503d2be0 | 22815 | if test "x$ac_cv_func_vfork" = xyes; then |
ca81d7a0 JD |
22816 | { echo "$as_me:$LINENO: checking for working vfork" >&5 |
22817 | echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; } | |
503d2be0 AS |
22818 | if test "${ac_cv_func_vfork_works+set}" = set; then |
22819 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22820 | else | |
22821 | if test "$cross_compiling" = yes; then | |
22822 | ac_cv_func_vfork_works=cross | |
fa0b693c | 22823 | else |
503d2be0 | 22824 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
22825 | /* confdefs.h. */ |
22826 | _ACEOF | |
22827 | cat confdefs.h >>conftest.$ac_ext | |
22828 | cat >>conftest.$ac_ext <<_ACEOF | |
22829 | /* end confdefs.h. */ | |
73b77ee5 | 22830 | /* Thanks to Paul Eggert for this test. */ |
ca81d7a0 | 22831 | $ac_includes_default |
19650fd6 | 22832 | #include <sys/wait.h> |
f053c89f | 22833 | #ifdef HAVE_VFORK_H |
503d2be0 | 22834 | # include <vfork.h> |
73b77ee5 GM |
22835 | #endif |
22836 | /* On some sparc systems, changes by the child to local and incoming | |
503d2be0 AS |
22837 | argument registers are propagated back to the parent. The compiler |
22838 | is told about this with #include <vfork.h>, but some compilers | |
22839 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
22840 | static variable whose address is put into a register that is | |
22841 | clobbered by the vfork. */ | |
19650fd6 | 22842 | static void |
fa0b693c | 22843 | #ifdef __cplusplus |
73b77ee5 | 22844 | sparc_address_test (int arg) |
503d2be0 | 22845 | # else |
73b77ee5 | 22846 | sparc_address_test (arg) int arg; |
fa0b693c | 22847 | #endif |
fa0b693c | 22848 | { |
73b77ee5 GM |
22849 | static pid_t child; |
22850 | if (!child) { | |
22851 | child = vfork (); | |
22852 | if (child < 0) { | |
22853 | perror ("vfork"); | |
22854 | _exit(2); | |
22855 | } | |
22856 | if (!child) { | |
22857 | arg = getpid(); | |
22858 | write(-1, "", 0); | |
22859 | _exit (arg); | |
22860 | } | |
22861 | } | |
22862 | } | |
503d2be0 AS |
22863 | |
22864 | int | |
22865 | main () | |
22866 | { | |
73b77ee5 GM |
22867 | pid_t parent = getpid (); |
22868 | pid_t child; | |
fa0b693c | 22869 | |
19650fd6 | 22870 | sparc_address_test (0); |
fa0b693c | 22871 | |
73b77ee5 | 22872 | child = vfork (); |
fa0b693c | 22873 | |
73b77ee5 | 22874 | if (child == 0) { |
503d2be0 AS |
22875 | /* Here is another test for sparc vfork register problems. This |
22876 | test uses lots of local variables, at least as many local | |
22877 | variables as main has allocated so far including compiler | |
22878 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
22879 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
22880 | reuse the register of parent for one of the local variables, | |
22881 | since it will think that parent can't possibly be used any more | |
22882 | in this routine. Assigning to the local variable will thus | |
22883 | munge parent in the parent process. */ | |
73b77ee5 GM |
22884 | pid_t |
22885 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
22886 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
22887 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
22888 | use the same hardware register for all 8 local variables. */ | |
22889 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
22890 | || p != p5 || p != p6 || p != p7) | |
22891 | _exit(1); | |
fa0b693c | 22892 | |
503d2be0 AS |
22893 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent |
22894 | from child file descriptors. If the child closes a descriptor | |
22895 | before it execs or exits, this munges the parent's descriptor | |
22896 | as well. Test for this by closing stdout in the child. */ | |
73b77ee5 GM |
22897 | _exit(close(fileno(stdout)) != 0); |
22898 | } else { | |
22899 | int status; | |
22900 | struct stat st; | |
22901 | ||
22902 | while (wait(&status) != child) | |
22903 | ; | |
ca81d7a0 | 22904 | return ( |
73b77ee5 GM |
22905 | /* Was there some problem with vforking? */ |
22906 | child < 0 | |
22907 | ||
22908 | /* Did the child fail? (This shouldn't happen.) */ | |
22909 | || status | |
22910 | ||
22911 | /* Did the vfork/compiler bug occur? */ | |
22912 | || parent != getpid() | |
fa0b693c | 22913 | |
73b77ee5 GM |
22914 | /* Did the file descriptor bug occur? */ |
22915 | || fstat(fileno(stdout), &st) != 0 | |
22916 | ); | |
22917 | } | |
22918 | } | |
503d2be0 AS |
22919 | _ACEOF |
22920 | rm -f conftest$ac_exeext | |
ca81d7a0 JD |
22921 | if { (ac_try="$ac_link" |
22922 | case "(($ac_try" in | |
22923 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22924 | *) ac_try_echo=$ac_try;; | |
22925 | esac | |
22926 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22927 | (eval "$ac_link") 2>&5 | |
503d2be0 | 22928 | ac_status=$? |
c0d27fcc | 22929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 22930 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
ca81d7a0 JD |
22931 | { (case "(($ac_try" in |
22932 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22933 | *) ac_try_echo=$ac_try;; | |
22934 | esac | |
22935 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22936 | (eval "$ac_try") 2>&5 | |
503d2be0 | 22937 | ac_status=$? |
c0d27fcc | 22938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 22939 | (exit $ac_status); }; }; then |
73b77ee5 | 22940 | ac_cv_func_vfork_works=yes |
fa0b693c | 22941 | else |
503d2be0 AS |
22942 | echo "$as_me: program exited with status $ac_status" >&5 |
22943 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
22944 | sed 's/^/| /' conftest.$ac_ext >&5 |
22945 | ||
c0d27fcc | 22946 | ( exit $ac_status ) |
503d2be0 AS |
22947 | ac_cv_func_vfork_works=no |
22948 | fi | |
ca81d7a0 | 22949 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
fa0b693c | 22950 | fi |
ca81d7a0 JD |
22951 | |
22952 | ||
fa0b693c | 22953 | fi |
ca81d7a0 JD |
22954 | { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 |
22955 | echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; } | |
fa0b693c | 22956 | |
503d2be0 AS |
22957 | fi; |
22958 | if test "x$ac_cv_func_fork_works" = xcross; then | |
edfaf76d | 22959 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
c0d27fcc MR |
22960 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 |
22961 | echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
fa0b693c GM |
22962 | fi |
22963 | ||
503d2be0 AS |
22964 | if test "x$ac_cv_func_vfork_works" = xyes; then |
22965 | ||
c0d27fcc | 22966 | cat >>confdefs.h <<\_ACEOF |
503d2be0 | 22967 | #define HAVE_WORKING_VFORK 1 |
c0d27fcc | 22968 | _ACEOF |
503d2be0 AS |
22969 | |
22970 | else | |
22971 | ||
c0d27fcc | 22972 | cat >>confdefs.h <<\_ACEOF |
73b77ee5 | 22973 | #define vfork fork |
c0d27fcc | 22974 | _ACEOF |
fa0b693c GM |
22975 | |
22976 | fi | |
503d2be0 AS |
22977 | if test "x$ac_cv_func_fork_works" = xyes; then |
22978 | ||
c0d27fcc | 22979 | cat >>confdefs.h <<\_ACEOF |
503d2be0 | 22980 | #define HAVE_WORKING_FORK 1 |
c0d27fcc | 22981 | _ACEOF |
fa0b693c | 22982 | |
503d2be0 | 22983 | fi |
647847ea | 22984 | |
c0d27fcc | 22985 | |
ca81d7a0 JD |
22986 | { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5 |
22987 | echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; } | |
6a3a24fa JD |
22988 | if test "${emacs_cv_langinfo_codeset+set}" = set; then |
22989 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22990 | else | |
22991 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
22992 | /* confdefs.h. */ |
22993 | _ACEOF | |
22994 | cat confdefs.h >>conftest.$ac_ext | |
22995 | cat >>conftest.$ac_ext <<_ACEOF | |
22996 | /* end confdefs.h. */ | |
6a3a24fa JD |
22997 | #include <langinfo.h> |
22998 | int | |
22999 | main () | |
23000 | { | |
23001 | char* cs = nl_langinfo(CODESET); | |
23002 | ; | |
23003 | return 0; | |
23004 | } | |
23005 | _ACEOF | |
23006 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
23007 | if { (ac_try="$ac_link" |
23008 | case "(($ac_try" in | |
23009 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23010 | *) ac_try_echo=$ac_try;; | |
23011 | esac | |
23012 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
23013 | (eval "$ac_link") 2>conftest.er1 | |
6a3a24fa | 23014 | ac_status=$? |
edfaf76d LK |
23015 | grep -v '^ *+' conftest.er1 >conftest.err |
23016 | rm -f conftest.er1 | |
23017 | cat conftest.err >&5 | |
6a3a24fa | 23018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
23019 | (exit $ac_status); } && { |
23020 | test -z "$ac_c_werror_flag" || | |
23021 | test ! -s conftest.err | |
23022 | } && test -s conftest$ac_exeext && | |
23023 | $as_test_x conftest$ac_exeext; then | |
6a3a24fa JD |
23024 | emacs_cv_langinfo_codeset=yes |
23025 | else | |
23026 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
23027 | sed 's/^/| /' conftest.$ac_ext >&5 |
23028 | ||
ca81d7a0 | 23029 | emacs_cv_langinfo_codeset=no |
6a3a24fa | 23030 | fi |
ca81d7a0 | 23031 | |
f053c89f | 23032 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 23033 | conftest$ac_exeext conftest.$ac_ext |
6a3a24fa JD |
23034 | |
23035 | fi | |
ca81d7a0 JD |
23036 | { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5 |
23037 | echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; } | |
6a3a24fa JD |
23038 | if test $emacs_cv_langinfo_codeset = yes; then |
23039 | ||
23040 | cat >>confdefs.h <<\_ACEOF | |
23041 | #define HAVE_LANGINFO_CODESET 1 | |
23042 | _ACEOF | |
23043 | ||
23044 | fi | |
23045 | ||
ca81d7a0 JD |
23046 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
23047 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } | |
503d2be0 AS |
23048 | if test "${ac_cv_type_size_t+set}" = set; then |
23049 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8730a8da | 23050 | else |
503d2be0 | 23051 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
23052 | /* confdefs.h. */ |
23053 | _ACEOF | |
23054 | cat confdefs.h >>conftest.$ac_ext | |
23055 | cat >>conftest.$ac_ext <<_ACEOF | |
23056 | /* end confdefs.h. */ | |
503d2be0 | 23057 | $ac_includes_default |
ca81d7a0 | 23058 | typedef size_t ac__type_new_; |
503d2be0 AS |
23059 | int |
23060 | main () | |
23061 | { | |
ca81d7a0 | 23062 | if ((ac__type_new_ *) 0) |
503d2be0 | 23063 | return 0; |
ca81d7a0 | 23064 | if (sizeof (ac__type_new_)) |
503d2be0 AS |
23065 | return 0; |
23066 | ; | |
23067 | return 0; | |
23068 | } | |
23069 | _ACEOF | |
23070 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
23071 | if { (ac_try="$ac_compile" |
23072 | case "(($ac_try" in | |
23073 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23074 | *) ac_try_echo=$ac_try;; | |
23075 | esac | |
23076 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
23077 | (eval "$ac_compile") 2>conftest.er1 | |
503d2be0 | 23078 | ac_status=$? |
edfaf76d LK |
23079 | grep -v '^ *+' conftest.er1 >conftest.err |
23080 | rm -f conftest.er1 | |
23081 | cat conftest.err >&5 | |
c0d27fcc | 23082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
23083 | (exit $ac_status); } && { |
23084 | test -z "$ac_c_werror_flag" || | |
23085 | test ! -s conftest.err | |
23086 | } && test -s conftest.$ac_objext; then | |
8730a8da DL |
23087 | ac_cv_type_size_t=yes |
23088 | else | |
503d2be0 | 23089 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
23090 | sed 's/^/| /' conftest.$ac_ext >&5 |
23091 | ||
ca81d7a0 | 23092 | ac_cv_type_size_t=no |
8730a8da | 23093 | fi |
ca81d7a0 JD |
23094 | |
23095 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8730a8da | 23096 | fi |
ca81d7a0 JD |
23097 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
23098 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } | |
503d2be0 | 23099 | if test $ac_cv_type_size_t = yes; then |
503d2be0 | 23100 | |
c0d27fcc MR |
23101 | cat >>confdefs.h <<_ACEOF |
23102 | #define HAVE_SIZE_T 1 | |
23103 | _ACEOF | |
23104 | ||
8730a8da DL |
23105 | |
23106 | fi | |
23107 | ||
c0d27fcc | 23108 | |
ca81d7a0 JD |
23109 | { echo "$as_me:$LINENO: checking for mbstate_t" >&5 |
23110 | echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; } | |
973a76b1 DL |
23111 | if test "${ac_cv_type_mbstate_t+set}" = set; then |
23112 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23113 | else | |
23114 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
23115 | /* confdefs.h. */ |
23116 | _ACEOF | |
23117 | cat confdefs.h >>conftest.$ac_ext | |
23118 | cat >>conftest.$ac_ext <<_ACEOF | |
23119 | /* end confdefs.h. */ | |
973a76b1 DL |
23120 | $ac_includes_default |
23121 | # include <wchar.h> | |
23122 | int | |
23123 | main () | |
23124 | { | |
23125 | mbstate_t x; return sizeof x; | |
23126 | ; | |
23127 | return 0; | |
23128 | } | |
23129 | _ACEOF | |
23130 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
23131 | if { (ac_try="$ac_compile" |
23132 | case "(($ac_try" in | |
23133 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23134 | *) ac_try_echo=$ac_try;; | |
23135 | esac | |
23136 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
23137 | (eval "$ac_compile") 2>conftest.er1 | |
973a76b1 | 23138 | ac_status=$? |
edfaf76d LK |
23139 | grep -v '^ *+' conftest.er1 >conftest.err |
23140 | rm -f conftest.er1 | |
23141 | cat conftest.err >&5 | |
973a76b1 | 23142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
23143 | (exit $ac_status); } && { |
23144 | test -z "$ac_c_werror_flag" || | |
23145 | test ! -s conftest.err | |
23146 | } && test -s conftest.$ac_objext; then | |
973a76b1 DL |
23147 | ac_cv_type_mbstate_t=yes |
23148 | else | |
23149 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
23150 | sed 's/^/| /' conftest.$ac_ext >&5 |
23151 | ||
ca81d7a0 | 23152 | ac_cv_type_mbstate_t=no |
973a76b1 | 23153 | fi |
ca81d7a0 JD |
23154 | |
23155 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
973a76b1 | 23156 | fi |
ca81d7a0 JD |
23157 | { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5 |
23158 | echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; } | |
973a76b1 DL |
23159 | if test $ac_cv_type_mbstate_t = yes; then |
23160 | ||
23161 | cat >>confdefs.h <<\_ACEOF | |
23162 | #define HAVE_MBSTATE_T 1 | |
23163 | _ACEOF | |
23164 | ||
23165 | else | |
23166 | ||
23167 | cat >>confdefs.h <<\_ACEOF | |
23168 | #define mbstate_t int | |
23169 | _ACEOF | |
23170 | ||
23171 | fi | |
23172 | ||
ca81d7a0 JD |
23173 | { echo "$as_me:$LINENO: checking for C restrict keyword" >&5 |
23174 | echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; } | |
22044edf DL |
23175 | if test "${emacs_cv_c_restrict+set}" = set; then |
23176 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23177 | else | |
23178 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
23179 | /* confdefs.h. */ |
23180 | _ACEOF | |
23181 | cat confdefs.h >>conftest.$ac_ext | |
23182 | cat >>conftest.$ac_ext <<_ACEOF | |
23183 | /* end confdefs.h. */ | |
22044edf DL |
23184 | void fred (int *restrict x); |
23185 | int | |
23186 | main () | |
23187 | { | |
b936fae4 | 23188 | |
22044edf DL |
23189 | ; |
23190 | return 0; | |
23191 | } | |
c0d27fcc | 23192 | _ACEOF |
22044edf | 23193 | rm -f conftest.$ac_objext |
ca81d7a0 JD |
23194 | if { (ac_try="$ac_compile" |
23195 | case "(($ac_try" in | |
23196 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23197 | *) ac_try_echo=$ac_try;; | |
23198 | esac | |
23199 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
23200 | (eval "$ac_compile") 2>conftest.er1 | |
22044edf | 23201 | ac_status=$? |
edfaf76d LK |
23202 | grep -v '^ *+' conftest.er1 >conftest.err |
23203 | rm -f conftest.er1 | |
23204 | cat conftest.err >&5 | |
22044edf | 23205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
23206 | (exit $ac_status); } && { |
23207 | test -z "$ac_c_werror_flag" || | |
23208 | test ! -s conftest.err | |
23209 | } && test -s conftest.$ac_objext; then | |
22044edf DL |
23210 | emacs_cv_c_restrict=yes |
23211 | else | |
23212 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
23213 | sed 's/^/| /' conftest.$ac_ext >&5 |
23214 | ||
ca81d7a0 | 23215 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
23216 | /* confdefs.h. */ |
23217 | _ACEOF | |
23218 | cat confdefs.h >>conftest.$ac_ext | |
23219 | cat >>conftest.$ac_ext <<_ACEOF | |
23220 | /* end confdefs.h. */ | |
22044edf DL |
23221 | void fred (int *__restrict x); |
23222 | int | |
23223 | main () | |
23224 | { | |
c0d27fcc | 23225 | |
22044edf DL |
23226 | ; |
23227 | return 0; | |
23228 | } | |
c0d27fcc | 23229 | _ACEOF |
22044edf | 23230 | rm -f conftest.$ac_objext |
ca81d7a0 JD |
23231 | if { (ac_try="$ac_compile" |
23232 | case "(($ac_try" in | |
23233 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23234 | *) ac_try_echo=$ac_try;; | |
23235 | esac | |
23236 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
23237 | (eval "$ac_compile") 2>conftest.er1 | |
22044edf | 23238 | ac_status=$? |
edfaf76d LK |
23239 | grep -v '^ *+' conftest.er1 >conftest.err |
23240 | rm -f conftest.er1 | |
23241 | cat conftest.err >&5 | |
22044edf | 23242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
23243 | (exit $ac_status); } && { |
23244 | test -z "$ac_c_werror_flag" || | |
23245 | test ! -s conftest.err | |
23246 | } && test -s conftest.$ac_objext; then | |
22044edf DL |
23247 | emacs_cv_c_restrict=__restrict |
23248 | else | |
23249 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
23250 | sed 's/^/| /' conftest.$ac_ext >&5 |
23251 | ||
ca81d7a0 | 23252 | emacs_cv_c_restrict=no |
ba4481b5 | 23253 | fi |
ca81d7a0 JD |
23254 | |
23255 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ba4481b5 | 23256 | fi |
ca81d7a0 JD |
23257 | |
23258 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ba4481b5 | 23259 | fi |
ca81d7a0 JD |
23260 | { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5 |
23261 | echo "${ECHO_T}$emacs_cv_c_restrict" >&6; } | |
22044edf DL |
23262 | case "$emacs_cv_c_restrict" in |
23263 | yes) emacs_restrict=restrict;; | |
23264 | no) emacs_restrict="";; | |
23265 | *) emacs_restrict="$emacs_cv_c_restrict";; | |
23266 | esac | |
23267 | if test "$emacs_restrict" != __restrict; then | |
b936fae4 | 23268 | |
22044edf DL |
23269 | cat >>confdefs.h <<_ACEOF |
23270 | #define __restrict $emacs_restrict | |
c0d27fcc | 23271 | _ACEOF |
ba4481b5 DL |
23272 | |
23273 | fi | |
ba4481b5 | 23274 | |
ca81d7a0 JD |
23275 | { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5 |
23276 | echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; } | |
22044edf DL |
23277 | if test "${emacs_cv_c_restrict_arr+set}" = set; then |
23278 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23279 | else | |
23280 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
23281 | /* confdefs.h. */ |
23282 | _ACEOF | |
23283 | cat confdefs.h >>conftest.$ac_ext | |
23284 | cat >>conftest.$ac_ext <<_ACEOF | |
23285 | /* end confdefs.h. */ | |
22044edf DL |
23286 | void fred (int x[__restrict]); |
23287 | int | |
23288 | main () | |
23289 | { | |
b936fae4 | 23290 | |
22044edf DL |
23291 | ; |
23292 | return 0; | |
23293 | } | |
c0d27fcc | 23294 | _ACEOF |
22044edf | 23295 | rm -f conftest.$ac_objext |
ca81d7a0 JD |
23296 | if { (ac_try="$ac_compile" |
23297 | case "(($ac_try" in | |
23298 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23299 | *) ac_try_echo=$ac_try;; | |
23300 | esac | |
23301 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
23302 | (eval "$ac_compile") 2>conftest.er1 | |
22044edf | 23303 | ac_status=$? |
edfaf76d LK |
23304 | grep -v '^ *+' conftest.er1 >conftest.err |
23305 | rm -f conftest.er1 | |
23306 | cat conftest.err >&5 | |
22044edf | 23307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
23308 | (exit $ac_status); } && { |
23309 | test -z "$ac_c_werror_flag" || | |
23310 | test ! -s conftest.err | |
23311 | } && test -s conftest.$ac_objext; then | |
22044edf DL |
23312 | emacs_cv_c_restrict_arr=yes |
23313 | else | |
23314 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
23315 | sed 's/^/| /' conftest.$ac_ext >&5 |
23316 | ||
ca81d7a0 | 23317 | emacs_cv_c_restrict_arr=no |
ba4481b5 | 23318 | fi |
ca81d7a0 JD |
23319 | |
23320 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
22044edf | 23321 | fi |
ca81d7a0 JD |
23322 | { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5 |
23323 | echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; } | |
22044edf | 23324 | if test "$emacs_cv_c_restrict_arr" = yes; then |
b936fae4 | 23325 | |
c0d27fcc | 23326 | cat >>confdefs.h <<\_ACEOF |
22044edf | 23327 | #define __restrict_arr __restrict |
c0d27fcc | 23328 | _ACEOF |
ba4481b5 | 23329 | |
ba4481b5 DL |
23330 | fi |
23331 | ||
c0d27fcc | 23332 | |
c0d27fcc | 23333 | |
22044edf DL |
23334 | # Set up the CFLAGS for real compilation, so we can substitute it. |
23335 | CFLAGS="$REAL_CFLAGS" | |
23336 | CPPFLAGS="$REAL_CPPFLAGS" | |
23337 | ||
23338 | #### Find out which version of Emacs this is. | |
23339 | version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \ | |
23340 | | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'` | |
23341 | if test x"${version}" = x; then | |
23342 | { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5 | |
23343 | echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;} | |
23344 | { (exit 1); exit 1; }; } | |
23345 | fi | |
23346 | ||
23347 | ### Specify what sort of things we'll be editing into Makefile and config.h. | |
23348 | ### Use configuration here uncanonicalized to avoid exceeding size limits. | |
23349 | ||
23350 | ||
23351 | ||
23352 | ||
23353 | ||
23354 | ||
23355 | ||
23356 | ||
23357 | ||
23358 | ||
23359 | ||
23360 | ||
23361 | ||
23362 | ||
23363 | ||
23364 | ||
23365 | ||
23366 | ||
23367 | ||
23368 | ||
23369 | ||
23370 | ||
23371 | ||
23372 | ||
23373 | ||
23374 | ||
23375 | ||
23376 | ||
23377 | ||
23378 | ||
23379 | ||
23380 | ||
6a3a24fa | 23381 | |
22044edf DL |
23382 | |
23383 | ||
23384 | cat >>confdefs.h <<_ACEOF | |
23385 | #define EMACS_CONFIGURATION "${canonical}" | |
23386 | _ACEOF | |
23387 | ||
23388 | ||
23389 | cat >>confdefs.h <<_ACEOF | |
23390 | #define EMACS_CONFIG_OPTIONS "${ac_configure_args}" | |
23391 | _ACEOF | |
23392 | ||
23393 | ||
23394 | cat >>confdefs.h <<_ACEOF | |
23395 | #define config_machfile "${machfile}" | |
23396 | _ACEOF | |
23397 | ||
23398 | ||
23399 | cat >>confdefs.h <<_ACEOF | |
23400 | #define config_opsysfile "${opsysfile}" | |
23401 | _ACEOF | |
23402 | ||
23403 | ||
23404 | cat >>confdefs.h <<_ACEOF | |
23405 | #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE} | |
23406 | _ACEOF | |
23407 | ||
23408 | ||
23409 | cat >>confdefs.h <<_ACEOF | |
23410 | #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX} | |
23411 | _ACEOF | |
23412 | ||
23413 | ||
23414 | cat >>confdefs.h <<_ACEOF | |
23415 | #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE} | |
23416 | _ACEOF | |
23417 | ||
23418 | ||
23419 | cat >>confdefs.h <<_ACEOF | |
23420 | #define UNEXEC_SRC ${UNEXEC_SRC} | |
23421 | _ACEOF | |
23422 | ||
23423 | ||
23424 | if test "${HAVE_X_WINDOWS}" = "yes" ; then | |
23425 | ||
23426 | cat >>confdefs.h <<\_ACEOF | |
23427 | #define HAVE_X_WINDOWS 1 | |
23428 | _ACEOF | |
23429 | ||
23430 | fi | |
23431 | if test "${USE_X_TOOLKIT}" != "none" ; then | |
23432 | ||
23433 | cat >>confdefs.h <<\_ACEOF | |
23434 | #define USE_X_TOOLKIT 1 | |
23435 | _ACEOF | |
23436 | ||
23437 | fi | |
23438 | if test "${HAVE_X11}" = "yes" ; then | |
23439 | ||
23440 | cat >>confdefs.h <<\_ACEOF | |
23441 | #define HAVE_X11 1 | |
23442 | _ACEOF | |
23443 | ||
23444 | fi | |
23445 | if test "${HAVE_XFREE386}" = "yes" ; then | |
23446 | ||
23447 | cat >>confdefs.h <<\_ACEOF | |
23448 | #define HAVE_XFREE386 1 | |
23449 | _ACEOF | |
23450 | ||
23451 | fi | |
23452 | if test "${HAVE_MENUS}" = "yes" ; then | |
23453 | ||
23454 | cat >>confdefs.h <<\_ACEOF | |
23455 | #define HAVE_MENUS 1 | |
23456 | _ACEOF | |
23457 | ||
23458 | fi | |
23459 | if test "${GNU_MALLOC}" = "yes" ; then | |
23460 | ||
23461 | cat >>confdefs.h <<\_ACEOF | |
23462 | #define GNU_MALLOC 1 | |
23463 | _ACEOF | |
23464 | ||
23465 | fi | |
23466 | if test "${REL_ALLOC}" = "yes" ; then | |
23467 | ||
23468 | cat >>confdefs.h <<\_ACEOF | |
23469 | #define REL_ALLOC 1 | |
23470 | _ACEOF | |
23471 | ||
23472 | fi | |
23473 | ||
23474 | ||
23475 | ||
c0d27fcc MR |
23476 | |
23477 | ||
5afbeb22 | 23478 | |
ba4481b5 | 23479 | #### Report on what we decided to do. |
488dd4c4 JD |
23480 | #### Report GTK as a toolkit, even if it doesn't use Xt. |
23481 | #### It makes printing result more understandable as using GTK sets | |
23482 | #### toolkit_scroll_bars to yes by default. | |
23483 | if test "${HAVE_GTK}" = "yes"; then | |
23484 | USE_X_TOOLKIT=GTK | |
23485 | fi | |
23486 | ||
ba4481b5 DL |
23487 | echo " |
23488 | Configured for \`${canonical}'. | |
23489 | ||
23490 | Where should the build process find the source code? ${srcdir} | |
23491 | What operating system and machine description files should Emacs use? | |
23492 | \`${opsysfile}' and \`${machfile}' | |
23493 | What compiler should emacs be built with? ${CC} ${CFLAGS} | |
23494 | Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason} | |
73b77ee5 | 23495 | Should Emacs use a relocating allocator for buffers? ${REL_ALLOC} |
ef9e4345 | 23496 | Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers |
ba4481b5 | 23497 | What window system should Emacs use? ${window_system} |
8e967cf7 | 23498 | What toolkit should Emacs use? ${USE_X_TOOLKIT}" |
ba4481b5 DL |
23499 | |
23500 | if test -n "${x_includes}"; then | |
23501 | echo " Where do we find X Windows header files? ${x_includes}" | |
23502 | else | |
23503 | echo " Where do we find X Windows header files? Standard dirs" | |
23504 | fi | |
23505 | if test -n "${x_libraries}"; then | |
23506 | echo " Where do we find X Windows libraries? ${x_libraries}" | |
23507 | else | |
23508 | echo " Where do we find X Windows libraries? Standard dirs" | |
23509 | fi | |
23510 | ||
23511 | echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}" | |
23512 | echo " Does Emacs use -lXpm? ${HAVE_XPM}" | |
23513 | echo " Does Emacs use -ljpeg? ${HAVE_JPEG}" | |
23514 | echo " Does Emacs use -ltiff? ${HAVE_TIFF}" | |
9aeb8aaa | 23515 | echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name" |
ba4481b5 | 23516 | echo " Does Emacs use -lpng? ${HAVE_PNG}" |
79011b82 | 23517 | echo " Does Emacs use -lgpm? ${HAVE_GPM}" |
ba4481b5 DL |
23518 | echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}" |
23519 | echo | |
23520 | ||
d0098f13 JD |
23521 | if test $USE_XASSERTS = yes; then |
23522 | echo " Compiling with asserts turned on." | |
d0098f13 JD |
23523 | CPPFLAGS="$CPPFLAGS -DXASSERTS=1" |
23524 | echo | |
23525 | fi | |
05cf15c6 | 23526 | |
a2d3b5bd JD |
23527 | if test "$USE_X_TOOLKIT" = GTK; then |
23528 | case "$canonical" in | |
23529 | *cygwin*) | |
23530 | echo "There are known problems with Emacs and Gtk+ on cygwin, so you | |
23531 | will probably get a crash on startup. If this happens, please use another | |
23532 | toolkit for Emacs. See etc/PROBLEMS for more information." | |
23533 | ;; | |
23534 | esac | |
23535 | fi | |
23536 | ||
05cf15c6 | 23537 | |
05cf15c6 | 23538 | |
ba4481b5 DL |
23539 | # Remove any trailing slashes in these variables. |
23540 | test "${prefix}" != NONE && | |
23541 | prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'` | |
23542 | test "${exec_prefix}" != NONE && | |
23543 | exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'` | |
23544 | ||
d0e9bfd2 GM |
23545 | ## Check if the C preprocessor will convert `..' to `. .'. If so, set |
23546 | ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile | |
23547 | ## from Makefile.c can correctly provide the arg `-traditional' to the | |
23548 | ## C preprocessor. | |
23549 | ||
503d2be0 | 23550 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
23551 | /* confdefs.h. */ |
23552 | _ACEOF | |
23553 | cat confdefs.h >>conftest.$ac_ext | |
23554 | cat >>conftest.$ac_ext <<_ACEOF | |
23555 | /* end confdefs.h. */ | |
d0e9bfd2 | 23556 | yes..yes |
503d2be0 | 23557 | _ACEOF |
d0e9bfd2 | 23558 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
6bae0ccf | 23559 | $EGREP "yes..yes" >/dev/null 2>&1; then |
d0e9bfd2 GM |
23560 | CPP_NEED_TRADITIONAL=no |
23561 | else | |
d0e9bfd2 GM |
23562 | CPP_NEED_TRADITIONAL=yes |
23563 | fi | |
23564 | rm -f conftest* | |
23565 | ||
c0d27fcc | 23566 | |
ca81d7a0 JD |
23567 | ac_config_files="$ac_config_files Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in lisp/Makefile lispref/Makefile lispintro/Makefile leim/Makefile" |
23568 | ||
23569 | ac_config_commands="$ac_config_commands default" | |
23570 | ||
503d2be0 | 23571 | cat >confcache <<\_ACEOF |
ba4481b5 DL |
23572 | # This file is a shell script that caches the results of configure |
23573 | # tests run on this system so they can be shared between configure | |
503d2be0 AS |
23574 | # scripts and configure runs, see configure's option --config-cache. |
23575 | # It is not useful on other systems. If it contains results you don't | |
23576 | # want to keep, you may remove or edit it. | |
ba4481b5 | 23577 | # |
503d2be0 AS |
23578 | # config.status only pays attention to the cache file if you give it |
23579 | # the --recheck option to rerun configure. | |
ba4481b5 | 23580 | # |
6bae0ccf | 23581 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
503d2be0 AS |
23582 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
23583 | # following values. | |
23584 | ||
23585 | _ACEOF | |
23586 | ||
ba4481b5 DL |
23587 | # The following way of writing the cache mishandles newlines in values, |
23588 | # but we know of no workaround that is simple, portable, and efficient. | |
ca81d7a0 | 23589 | # So, we kill variables containing newlines. |
ba4481b5 DL |
23590 | # Ultrix sh set writes to stderr and can't be redirected directly, |
23591 | # and sets the high bit in the cache file unless we assign to the vars. | |
ca81d7a0 JD |
23592 | ( |
23593 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
23594 | eval ac_val=\$$ac_var | |
23595 | case $ac_val in #( | |
23596 | *${as_nl}*) | |
23597 | case $ac_var in #( | |
23598 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | |
23599 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
23600 | esac | |
23601 | case $ac_var in #( | |
23602 | _ | IFS | as_nl) ;; #( | |
23603 | *) $as_unset $ac_var ;; | |
23604 | esac ;; | |
23605 | esac | |
23606 | done | |
23607 | ||
503d2be0 | 23608 | (set) 2>&1 | |
ca81d7a0 JD |
23609 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
23610 | *${as_nl}ac_space=\ *) | |
503d2be0 AS |
23611 | # `set' does not quote correctly, so add quotes (double-quote |
23612 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
23613 | sed -n \ | |
edfaf76d LK |
23614 | "s/'/'\\\\''/g; |
23615 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
ca81d7a0 | 23616 | ;; #( |
503d2be0 AS |
23617 | *) |
23618 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
ca81d7a0 | 23619 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
503d2be0 | 23620 | ;; |
ca81d7a0 JD |
23621 | esac | |
23622 | sort | |
23623 | ) | | |
503d2be0 | 23624 | sed ' |
ca81d7a0 | 23625 | /^ac_cv_env_/b end |
503d2be0 | 23626 | t clear |
ca81d7a0 | 23627 | :clear |
503d2be0 AS |
23628 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
23629 | t end | |
ca81d7a0 JD |
23630 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
23631 | :end' >>confcache | |
23632 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
23633 | if test -w "$cache_file"; then | |
23634 | test "x$cache_file" != "x/dev/null" && | |
23635 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 | |
23636 | echo "$as_me: updating cache $cache_file" >&6;} | |
503d2be0 | 23637 | cat confcache >$cache_file |
ba4481b5 | 23638 | else |
ca81d7a0 JD |
23639 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
23640 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
ba4481b5 DL |
23641 | fi |
23642 | fi | |
23643 | rm -f confcache | |
23644 | ||
ba4481b5 DL |
23645 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
23646 | # Let make expand exec_prefix. | |
23647 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
23648 | ||
ba4481b5 DL |
23649 | DEFS=-DHAVE_CONFIG_H |
23650 | ||
6bae0ccf DL |
23651 | ac_libobjs= |
23652 | ac_ltlibobjs= | |
23653 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
23654 | # 1. Remove the extension, and $U if already installed. | |
ca81d7a0 JD |
23655 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
23656 | ac_i=`echo "$ac_i" | sed "$ac_script"` | |
23657 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
23658 | # will be set to the directory where LIBOBJS objects are built. | |
23659 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
23660 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
6bae0ccf DL |
23661 | done |
23662 | LIBOBJS=$ac_libobjs | |
23663 | ||
23664 | LTLIBOBJS=$ac_ltlibobjs | |
23665 | ||
23666 | ||
c0d27fcc | 23667 | |
ba4481b5 | 23668 | : ${CONFIG_STATUS=./config.status} |
503d2be0 AS |
23669 | ac_clean_files_save=$ac_clean_files |
23670 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
c0d27fcc | 23671 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
503d2be0 AS |
23672 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
23673 | cat >$CONFIG_STATUS <<_ACEOF | |
23674 | #! $SHELL | |
c0d27fcc | 23675 | # Generated by $as_me. |
ba4481b5 | 23676 | # Run this file to recreate the current configuration. |
ba4481b5 | 23677 | # Compiler output produced by configure, useful for debugging |
503d2be0 | 23678 | # configure, is in config.log if it exists. |
ba4481b5 | 23679 | |
503d2be0 | 23680 | debug=false |
19650fd6 AS |
23681 | ac_cs_recheck=false |
23682 | ac_cs_silent=false | |
503d2be0 | 23683 | SHELL=\${CONFIG_SHELL-$SHELL} |
503d2be0 AS |
23684 | _ACEOF |
23685 | ||
23686 | cat >>$CONFIG_STATUS <<\_ACEOF | |
c0d27fcc MR |
23687 | ## --------------------- ## |
23688 | ## M4sh Initialization. ## | |
23689 | ## --------------------- ## | |
23690 | ||
f053c89f CY |
23691 | # Be more Bourne compatible |
23692 | DUALCASE=1; export DUALCASE # for MKS sh | |
503d2be0 AS |
23693 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
23694 | emulate sh | |
23695 | NULLCMD=: | |
6bae0ccf DL |
23696 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
23697 | # is contrary to our usage. Disable this feature. | |
23698 | alias -g '${1+"$@"}'='"$@"' | |
ca81d7a0 JD |
23699 | setopt NO_GLOB_SUBST |
23700 | else | |
f053c89f CY |
23701 | case `(set -o) 2>/dev/null` in |
23702 | *posix*) set -o posix ;; | |
23703 | esac | |
23704 | ||
503d2be0 | 23705 | fi |
f053c89f CY |
23706 | |
23707 | ||
503d2be0 | 23708 | |
ca81d7a0 JD |
23709 | |
23710 | # PATH needs CR | |
23711 | # Avoid depending upon Character Ranges. | |
23712 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
23713 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
23714 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
23715 | as_cr_digits='0123456789' | |
23716 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
23717 | ||
23718 | # The user is always right. | |
23719 | if test "${PATH_SEPARATOR+set}" != set; then | |
23720 | echo "#! /bin/sh" >conf$$.sh | |
23721 | echo "exit 0" >>conf$$.sh | |
23722 | chmod +x conf$$.sh | |
23723 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
23724 | PATH_SEPARATOR=';' | |
23725 | else | |
23726 | PATH_SEPARATOR=: | |
23727 | fi | |
23728 | rm -f conf$$.sh | |
23729 | fi | |
23730 | ||
c0d27fcc | 23731 | # Support unset when possible. |
edfaf76d | 23732 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
c0d27fcc MR |
23733 | as_unset=unset |
23734 | else | |
23735 | as_unset=false | |
23736 | fi | |
23737 | ||
6bae0ccf | 23738 | |
ca81d7a0 JD |
23739 | # IFS |
23740 | # We need space, tab and new line, in precisely that order. Quoting is | |
23741 | # there to prevent editors from complaining about space-tab. | |
23742 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
23743 | # splitting by setting IFS to empty value.) | |
23744 | as_nl=' | |
23745 | ' | |
23746 | IFS=" "" $as_nl" | |
23747 | ||
23748 | # Find who we are. Look in the path if we contain no directory separator. | |
23749 | case $0 in | |
23750 | *[\\/]* ) as_myself=$0 ;; | |
23751 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
23752 | for as_dir in $PATH | |
23753 | do | |
23754 | IFS=$as_save_IFS | |
23755 | test -z "$as_dir" && as_dir=. | |
23756 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
23757 | done | |
23758 | IFS=$as_save_IFS | |
23759 | ||
23760 | ;; | |
23761 | esac | |
23762 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
23763 | # in which case we are not to be found in the path. | |
23764 | if test "x$as_myself" = x; then | |
23765 | as_myself=$0 | |
23766 | fi | |
23767 | if test ! -f "$as_myself"; then | |
23768 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
23769 | { (exit 1); exit 1; } | |
23770 | fi | |
23771 | ||
6bae0ccf | 23772 | # Work around bugs in pre-3.0 UWIN ksh. |
ca81d7a0 JD |
23773 | for as_var in ENV MAIL MAILPATH |
23774 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
23775 | done | |
6bae0ccf DL |
23776 | PS1='$ ' |
23777 | PS2='> ' | |
23778 | PS4='+ ' | |
23779 | ||
23780 | # NLS nuisances. | |
19650fd6 AS |
23781 | for as_var in \ |
23782 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
23783 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
23784 | LC_TELEPHONE LC_TIME | |
6bae0ccf | 23785 | do |
edfaf76d | 23786 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
6bae0ccf DL |
23787 | eval $as_var=C; export $as_var |
23788 | else | |
ca81d7a0 | 23789 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
6bae0ccf DL |
23790 | fi |
23791 | done | |
23792 | ||
23793 | # Required to use basename. | |
ca81d7a0 JD |
23794 | if expr a : '\(a\)' >/dev/null 2>&1 && |
23795 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
6bae0ccf DL |
23796 | as_expr=expr |
23797 | else | |
23798 | as_expr=false | |
23799 | fi | |
23800 | ||
ca81d7a0 | 23801 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
6bae0ccf DL |
23802 | as_basename=basename |
23803 | else | |
23804 | as_basename=false | |
23805 | fi | |
c0d27fcc MR |
23806 | |
23807 | ||
503d2be0 | 23808 | # Name of the executable. |
ca81d7a0 | 23809 | as_me=`$as_basename -- "$0" || |
c0d27fcc MR |
23810 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
23811 | X"$0" : 'X\(//\)$' \| \ | |
ca81d7a0 | 23812 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
c0d27fcc | 23813 | echo X/"$0" | |
ca81d7a0 JD |
23814 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
23815 | s//\1/ | |
23816 | q | |
23817 | } | |
23818 | /^X\/\(\/\/\)$/{ | |
23819 | s//\1/ | |
23820 | q | |
23821 | } | |
23822 | /^X\/\(\/\).*/{ | |
23823 | s//\1/ | |
23824 | q | |
23825 | } | |
23826 | s/.*/./; q'` | |
c0d27fcc | 23827 | |
ca81d7a0 JD |
23828 | # CDPATH. |
23829 | $as_unset CDPATH | |
4b411bfe CY |
23830 | |
23831 | ||
c0d27fcc MR |
23832 | |
23833 | as_lineno_1=$LINENO | |
23834 | as_lineno_2=$LINENO | |
c0d27fcc | 23835 | test "x$as_lineno_1" != "x$as_lineno_2" && |
ca81d7a0 | 23836 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
c0d27fcc MR |
23837 | |
23838 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
23839 | # uniformly replaced by the line number. The first 'sed' inserts a | |
ca81d7a0 JD |
23840 | # line-number line after each line using $LINENO; the second 'sed' |
23841 | # does the real work. The second script uses 'N' to pair each | |
23842 | # line-number line with the line containing $LINENO, and appends | |
23843 | # trailing '-' during substitution so that $LINENO is not a special | |
23844 | # case at line end. | |
c0d27fcc | 23845 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
ca81d7a0 JD |
23846 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
23847 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
23848 | sed -n ' | |
23849 | p | |
23850 | /[$]LINENO/= | |
23851 | ' <$as_myself | | |
c0d27fcc | 23852 | sed ' |
ca81d7a0 JD |
23853 | s/[$]LINENO.*/&-/ |
23854 | t lineno | |
23855 | b | |
23856 | :lineno | |
c0d27fcc | 23857 | N |
ca81d7a0 JD |
23858 | :loop |
23859 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
c0d27fcc | 23860 | t loop |
ca81d7a0 | 23861 | s/-\n.*// |
c0d27fcc | 23862 | ' >$as_me.lineno && |
ca81d7a0 JD |
23863 | chmod +x "$as_me.lineno" || |
23864 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
c0d27fcc MR |
23865 | { (exit 1); exit 1; }; } |
23866 | ||
23867 | # Don't try to exec as it changes $[0], causing all sort of problems | |
23868 | # (the dirname of $[0] is not the place where we might find the | |
ca81d7a0 JD |
23869 | # original and so on. Autoconf is especially sensitive to this). |
23870 | . "./$as_me.lineno" | |
c0d27fcc MR |
23871 | # Exit status is that of the last command. |
23872 | exit | |
23873 | } | |
23874 | ||
23875 | ||
ca81d7a0 JD |
23876 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
23877 | as_dirname=dirname | |
23878 | else | |
23879 | as_dirname=false | |
23880 | fi | |
23881 | ||
23882 | ECHO_C= ECHO_N= ECHO_T= | |
23883 | case `echo -n x` in | |
23884 | -n*) | |
23885 | case `echo 'x\c'` in | |
23886 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
23887 | *) ECHO_C='\c';; | |
23888 | esac;; | |
23889 | *) | |
23890 | ECHO_N='-n';; | |
c0d27fcc | 23891 | esac |
503d2be0 | 23892 | |
ca81d7a0 JD |
23893 | if expr a : '\(a\)' >/dev/null 2>&1 && |
23894 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
503d2be0 AS |
23895 | as_expr=expr |
23896 | else | |
23897 | as_expr=false | |
23898 | fi | |
23899 | ||
23900 | rm -f conf$$ conf$$.exe conf$$.file | |
ca81d7a0 JD |
23901 | if test -d conf$$.dir; then |
23902 | rm -f conf$$.dir/conf$$.file | |
23903 | else | |
23904 | rm -f conf$$.dir | |
23905 | mkdir conf$$.dir | |
23906 | fi | |
503d2be0 AS |
23907 | echo >conf$$.file |
23908 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
ca81d7a0 JD |
23909 | as_ln_s='ln -s' |
23910 | # ... but there are two gotchas: | |
23911 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
23912 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
23913 | # In both cases, we have to default to `cp -p'. | |
23914 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
503d2be0 | 23915 | as_ln_s='cp -p' |
503d2be0 AS |
23916 | elif ln conf$$.file conf$$ 2>/dev/null; then |
23917 | as_ln_s=ln | |
23918 | else | |
23919 | as_ln_s='cp -p' | |
23920 | fi | |
ca81d7a0 JD |
23921 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
23922 | rmdir conf$$.dir 2>/dev/null | |
503d2be0 | 23923 | |
6bae0ccf DL |
23924 | if mkdir -p . 2>/dev/null; then |
23925 | as_mkdir_p=: | |
23926 | else | |
edfaf76d | 23927 | test -d ./-p && rmdir ./-p |
6bae0ccf DL |
23928 | as_mkdir_p=false |
23929 | fi | |
23930 | ||
f053c89f CY |
23931 | if test -x / >/dev/null 2>&1; then |
23932 | as_test_x='test -x' | |
ca81d7a0 | 23933 | else |
f053c89f CY |
23934 | if ls -dL / >/dev/null 2>&1; then |
23935 | as_ls_L_option=L | |
23936 | else | |
23937 | as_ls_L_option= | |
23938 | fi | |
23939 | as_test_x=' | |
23940 | eval sh -c '\'' | |
23941 | if test -d "$1"; then | |
23942 | test -d "$1/."; | |
23943 | else | |
23944 | case $1 in | |
23945 | -*)set "./$1";; | |
23946 | esac; | |
23947 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
23948 | ???[sx]*):;;*)false;;esac;fi | |
23949 | '\'' sh | |
23950 | ' | |
ca81d7a0 | 23951 | fi |
f053c89f | 23952 | as_executable_p=$as_test_x |
503d2be0 | 23953 | |
c0d27fcc | 23954 | # Sed expression to map a string onto a valid CPP name. |
edfaf76d | 23955 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
c0d27fcc MR |
23956 | |
23957 | # Sed expression to map a string onto a valid variable name. | |
edfaf76d | 23958 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
503d2be0 | 23959 | |
503d2be0 | 23960 | |
503d2be0 AS |
23961 | exec 6>&1 |
23962 | ||
ca81d7a0 | 23963 | # Save the log message, to keep $[0] and so on meaningful, and to |
c0d27fcc | 23964 | # report actual input values of CONFIG_FILES etc. instead of their |
ca81d7a0 JD |
23965 | # values after options handling. |
23966 | ac_log=" | |
c0d27fcc | 23967 | This file was extended by $as_me, which was |
f053c89f | 23968 | generated by GNU Autoconf 2.61. Invocation command line was |
c0d27fcc MR |
23969 | |
23970 | CONFIG_FILES = $CONFIG_FILES | |
23971 | CONFIG_HEADERS = $CONFIG_HEADERS | |
23972 | CONFIG_LINKS = $CONFIG_LINKS | |
23973 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
23974 | $ $0 $@ | |
23975 | ||
ca81d7a0 JD |
23976 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
23977 | " | |
23978 | ||
503d2be0 AS |
23979 | _ACEOF |
23980 | ||
ca81d7a0 | 23981 | cat >>$CONFIG_STATUS <<_ACEOF |
503d2be0 | 23982 | # Files that config.status was made for. |
ca81d7a0 JD |
23983 | config_files="$ac_config_files" |
23984 | config_headers="$ac_config_headers" | |
23985 | config_commands="$ac_config_commands" | |
4b411bfe | 23986 | |
ca81d7a0 | 23987 | _ACEOF |
503d2be0 | 23988 | |
c0d27fcc | 23989 | cat >>$CONFIG_STATUS <<\_ACEOF |
503d2be0 AS |
23990 | ac_cs_usage="\ |
23991 | \`$as_me' instantiates files from templates according to the | |
23992 | current configuration. | |
23993 | ||
23994 | Usage: $0 [OPTIONS] [FILE]... | |
23995 | ||
23996 | -h, --help print this help, then exit | |
f053c89f | 23997 | -V, --version print version number and configuration settings, then exit |
19650fd6 | 23998 | -q, --quiet do not print progress messages |
503d2be0 AS |
23999 | -d, --debug don't remove temporary files |
24000 | --recheck update $as_me by reconfiguring in the same conditions | |
24001 | --file=FILE[:TEMPLATE] | |
edfaf76d | 24002 | instantiate the configuration file FILE |
503d2be0 | 24003 | --header=FILE[:TEMPLATE] |
edfaf76d | 24004 | instantiate the configuration header FILE |
503d2be0 AS |
24005 | |
24006 | Configuration files: | |
24007 | $config_files | |
24008 | ||
24009 | Configuration headers: | |
24010 | $config_headers | |
24011 | ||
24012 | Configuration commands: | |
24013 | $config_commands | |
24014 | ||
24015 | Report bugs to <bug-autoconf@gnu.org>." | |
4b411bfe | 24016 | |
ca81d7a0 | 24017 | _ACEOF |
c0d27fcc | 24018 | cat >>$CONFIG_STATUS <<_ACEOF |
503d2be0 AS |
24019 | ac_cs_version="\\ |
24020 | config.status | |
f053c89f | 24021 | configured by $0, generated by GNU Autoconf 2.61, |
ca81d7a0 | 24022 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
503d2be0 | 24023 | |
040c474e | 24024 | Copyright (C) 2006 Free Software Foundation, Inc. |
503d2be0 AS |
24025 | This config.status script is free software; the Free Software Foundation |
24026 | gives unlimited permission to copy, distribute and modify it." | |
ca81d7a0 JD |
24027 | |
24028 | ac_pwd='$ac_pwd' | |
24029 | srcdir='$srcdir' | |
24030 | INSTALL='$INSTALL' | |
c0d27fcc | 24031 | _ACEOF |
503d2be0 | 24032 | |
c0d27fcc | 24033 | cat >>$CONFIG_STATUS <<\_ACEOF |
503d2be0 AS |
24034 | # If no file are specified by the user, then we need to provide default |
24035 | # value. By we need to know if files were specified by the user. | |
24036 | ac_need_defaults=: | |
24037 | while test $# != 0 | |
ba4481b5 | 24038 | do |
503d2be0 AS |
24039 | case $1 in |
24040 | --*=*) | |
ca81d7a0 JD |
24041 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
24042 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
6bae0ccf DL |
24043 | ac_shift=: |
24044 | ;; | |
ca81d7a0 | 24045 | *) |
6bae0ccf DL |
24046 | ac_option=$1 |
24047 | ac_optarg=$2 | |
24048 | ac_shift=shift | |
503d2be0 | 24049 | ;; |
503d2be0 AS |
24050 | esac |
24051 | ||
6bae0ccf | 24052 | case $ac_option in |
503d2be0 | 24053 | # Handling of the options. |
19650fd6 AS |
24054 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
24055 | ac_cs_recheck=: ;; | |
ca81d7a0 JD |
24056 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
24057 | echo "$ac_cs_version"; exit ;; | |
24058 | --debug | --debu | --deb | --de | --d | -d ) | |
503d2be0 AS |
24059 | debug=: ;; |
24060 | --file | --fil | --fi | --f ) | |
6bae0ccf DL |
24061 | $ac_shift |
24062 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
503d2be0 AS |
24063 | ac_need_defaults=false;; |
24064 | --header | --heade | --head | --hea ) | |
6bae0ccf DL |
24065 | $ac_shift |
24066 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
503d2be0 | 24067 | ac_need_defaults=false;; |
ca81d7a0 JD |
24068 | --he | --h) |
24069 | # Conflict between --help and --header | |
24070 | { echo "$as_me: error: ambiguous option: $1 | |
24071 | Try \`$0 --help' for more information." >&2 | |
24072 | { (exit 1); exit 1; }; };; | |
24073 | --help | --hel | -h ) | |
24074 | echo "$ac_cs_usage"; exit ;; | |
19650fd6 AS |
24075 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
24076 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
24077 | ac_cs_silent=: ;; | |
503d2be0 AS |
24078 | |
24079 | # This is an error. | |
ca81d7a0 JD |
24080 | -*) { echo "$as_me: error: unrecognized option: $1 |
24081 | Try \`$0 --help' for more information." >&2 | |
503d2be0 AS |
24082 | { (exit 1); exit 1; }; } ;; |
24083 | ||
ca81d7a0 JD |
24084 | *) ac_config_targets="$ac_config_targets $1" |
24085 | ac_need_defaults=false ;; | |
503d2be0 | 24086 | |
ba4481b5 | 24087 | esac |
503d2be0 | 24088 | shift |
ba4481b5 DL |
24089 | done |
24090 | ||
19650fd6 AS |
24091 | ac_configure_extra_args= |
24092 | ||
24093 | if $ac_cs_silent; then | |
24094 | exec 6>/dev/null | |
24095 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
24096 | fi | |
24097 | ||
24098 | _ACEOF | |
24099 | cat >>$CONFIG_STATUS <<_ACEOF | |
24100 | if \$ac_cs_recheck; then | |
ca81d7a0 JD |
24101 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
24102 | CONFIG_SHELL=$SHELL | |
24103 | export CONFIG_SHELL | |
24104 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
19650fd6 AS |
24105 | fi |
24106 | ||
503d2be0 | 24107 | _ACEOF |
ca81d7a0 JD |
24108 | cat >>$CONFIG_STATUS <<\_ACEOF |
24109 | exec 5>>config.log | |
24110 | { | |
24111 | echo | |
24112 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
24113 | ## Running $as_me. ## | |
24114 | _ASBOX | |
24115 | echo "$ac_log" | |
24116 | } >&5 | |
ba4481b5 | 24117 | |
ca81d7a0 | 24118 | _ACEOF |
c0d27fcc | 24119 | cat >>$CONFIG_STATUS <<_ACEOF |
503d2be0 | 24120 | # |
ca81d7a0 | 24121 | # INIT-COMMANDS |
503d2be0 | 24122 | # |
503d2be0 AS |
24123 | GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" |
24124 | ||
c0d27fcc MR |
24125 | _ACEOF |
24126 | ||
4b411bfe | 24127 | cat >>$CONFIG_STATUS <<\_ACEOF |
ca81d7a0 JD |
24128 | |
24129 | # Handling of arguments. | |
503d2be0 AS |
24130 | for ac_config_target in $ac_config_targets |
24131 | do | |
ca81d7a0 JD |
24132 | case $ac_config_target in |
24133 | "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;; | |
24134 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
24135 | "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;; | |
24136 | "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;; | |
24137 | "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; | |
24138 | "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;; | |
24139 | "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;; | |
24140 | "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;; | |
24141 | "lispref/Makefile") CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;; | |
24142 | "lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;; | |
24143 | "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;; | |
24144 | "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | |
24145 | ||
c0d27fcc | 24146 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
503d2be0 AS |
24147 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
24148 | { (exit 1); exit 1; }; };; | |
24149 | esac | |
ba4481b5 | 24150 | done |
503d2be0 | 24151 | |
ca81d7a0 | 24152 | |
503d2be0 AS |
24153 | # If the user did not use the arguments to specify the items to instantiate, |
24154 | # then the envvar interface is used. Set only those that are not. | |
24155 | # We use the long form for the default assignment because of an extremely | |
24156 | # bizarre bug on SunOS 4.1.3. | |
24157 | if $ac_need_defaults; then | |
24158 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
24159 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
24160 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
ba4481b5 | 24161 | fi |
503d2be0 | 24162 | |
19650fd6 | 24163 | # Have a temporary directory for convenience. Make it in the build tree |
ca81d7a0 | 24164 | # simply because there is no reason against having it here, and in addition, |
19650fd6 | 24165 | # creating and moving files from /tmp can sometimes cause problems. |
ca81d7a0 JD |
24166 | # Hook for its removal unless debugging. |
24167 | # Note that there is a small window in which the directory will not be cleaned: | |
24168 | # after its creation but before its name has been assigned to `$tmp'. | |
503d2be0 AS |
24169 | $debug || |
24170 | { | |
ca81d7a0 JD |
24171 | tmp= |
24172 | trap 'exit_status=$? | |
24173 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
24174 | ' 0 | |
503d2be0 AS |
24175 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
24176 | } | |
503d2be0 | 24177 | # Create a (secure) tmp directory for tmp files. |
19650fd6 | 24178 | |
503d2be0 | 24179 | { |
ca81d7a0 | 24180 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
503d2be0 AS |
24181 | test -n "$tmp" && test -d "$tmp" |
24182 | } || | |
24183 | { | |
ca81d7a0 JD |
24184 | tmp=./conf$$-$RANDOM |
24185 | (umask 077 && mkdir "$tmp") | |
503d2be0 AS |
24186 | } || |
24187 | { | |
19650fd6 | 24188 | echo "$me: cannot create a temporary directory in ." >&2 |
503d2be0 AS |
24189 | { (exit 1); exit 1; } |
24190 | } | |
24191 | ||
503d2be0 | 24192 | # |
ca81d7a0 | 24193 | # Set up the sed scripts for CONFIG_FILES section. |
503d2be0 AS |
24194 | # |
24195 | ||
24196 | # No need to generate the scripts if there are no CONFIG_FILES. | |
24197 | # This happens for instance when ./config.status config.h | |
ca81d7a0 JD |
24198 | if test -n "$CONFIG_FILES"; then |
24199 | ||
24200 | _ACEOF | |
24201 | ||
24202 | ||
24203 | ||
24204 | ac_delim='%!_!# ' | |
24205 | for ac_last_try in false false false false false :; do | |
24206 | cat >conf$$subs.sed <<_ACEOF | |
24207 | SHELL!$SHELL$ac_delim | |
24208 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim | |
24209 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim | |
24210 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim | |
24211 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim | |
24212 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim | |
24213 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim | |
24214 | exec_prefix!$exec_prefix$ac_delim | |
24215 | prefix!$prefix$ac_delim | |
24216 | program_transform_name!$program_transform_name$ac_delim | |
24217 | bindir!$bindir$ac_delim | |
24218 | sbindir!$sbindir$ac_delim | |
24219 | libexecdir!$libexecdir$ac_delim | |
24220 | datarootdir!$datarootdir$ac_delim | |
24221 | datadir!$datadir$ac_delim | |
24222 | sysconfdir!$sysconfdir$ac_delim | |
24223 | sharedstatedir!$sharedstatedir$ac_delim | |
24224 | localstatedir!$localstatedir$ac_delim | |
24225 | includedir!$includedir$ac_delim | |
24226 | oldincludedir!$oldincludedir$ac_delim | |
24227 | docdir!$docdir$ac_delim | |
24228 | infodir!$infodir$ac_delim | |
24229 | htmldir!$htmldir$ac_delim | |
24230 | dvidir!$dvidir$ac_delim | |
24231 | pdfdir!$pdfdir$ac_delim | |
24232 | psdir!$psdir$ac_delim | |
24233 | libdir!$libdir$ac_delim | |
24234 | localedir!$localedir$ac_delim | |
24235 | mandir!$mandir$ac_delim | |
24236 | DEFS!$DEFS$ac_delim | |
24237 | ECHO_C!$ECHO_C$ac_delim | |
24238 | ECHO_N!$ECHO_N$ac_delim | |
24239 | ECHO_T!$ECHO_T$ac_delim | |
24240 | LIBS!$LIBS$ac_delim | |
24241 | build_alias!$build_alias$ac_delim | |
24242 | host_alias!$host_alias$ac_delim | |
24243 | target_alias!$target_alias$ac_delim | |
24244 | MAINT!$MAINT$ac_delim | |
24245 | build!$build$ac_delim | |
24246 | build_cpu!$build_cpu$ac_delim | |
24247 | build_vendor!$build_vendor$ac_delim | |
24248 | build_os!$build_os$ac_delim | |
24249 | host!$host$ac_delim | |
24250 | host_cpu!$host_cpu$ac_delim | |
24251 | host_vendor!$host_vendor$ac_delim | |
24252 | host_os!$host_os$ac_delim | |
24253 | CC!$CC$ac_delim | |
24254 | CFLAGS!$CFLAGS$ac_delim | |
24255 | LDFLAGS!$LDFLAGS$ac_delim | |
24256 | CPPFLAGS!$CPPFLAGS$ac_delim | |
24257 | ac_ct_CC!$ac_ct_CC$ac_delim | |
24258 | EXEEXT!$EXEEXT$ac_delim | |
24259 | OBJEXT!$OBJEXT$ac_delim | |
24260 | CPP!$CPP$ac_delim | |
24261 | GREP!$GREP$ac_delim | |
24262 | EGREP!$EGREP$ac_delim | |
24263 | LN_S!$LN_S$ac_delim | |
24264 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim | |
24265 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim | |
24266 | INSTALL_DATA!$INSTALL_DATA$ac_delim | |
24267 | RANLIB!$RANLIB$ac_delim | |
24268 | INSTALL_INFO!$INSTALL_INFO$ac_delim | |
24269 | GZIP_PROG!$GZIP_PROG$ac_delim | |
24270 | LIBSOUND!$LIBSOUND$ac_delim | |
24271 | PKG_CONFIG!$PKG_CONFIG$ac_delim | |
24272 | ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim | |
24273 | ALSA_LIBS!$ALSA_LIBS$ac_delim | |
24274 | CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim | |
24275 | SET_MAKE!$SET_MAKE$ac_delim | |
24276 | XMKMF!$XMKMF$ac_delim | |
cfe440b8 | 24277 | HAVE_XSERVER!$HAVE_XSERVER$ac_delim |
ca81d7a0 JD |
24278 | GTK_CFLAGS!$GTK_CFLAGS$ac_delim |
24279 | GTK_LIBS!$GTK_LIBS$ac_delim | |
9d89ffd0 JD |
24280 | XFT_CFLAGS!$XFT_CFLAGS$ac_delim |
24281 | XFT_LIBS!$XFT_LIBS$ac_delim | |
ca81d7a0 JD |
24282 | ALLOCA!$ALLOCA$ac_delim |
24283 | liblockfile!$liblockfile$ac_delim | |
24284 | LIBOBJS!$LIBOBJS$ac_delim | |
24285 | NEED_SETGID!$NEED_SETGID$ac_delim | |
24286 | KMEM_GROUP!$KMEM_GROUP$ac_delim | |
24287 | GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim | |
24288 | GETOPT_H!$GETOPT_H$ac_delim | |
24289 | GETOPTOBJS!$GETOPTOBJS$ac_delim | |
24290 | version!$version$ac_delim | |
24291 | configuration!$configuration$ac_delim | |
24292 | canonical!$canonical$ac_delim | |
24293 | srcdir!$srcdir$ac_delim | |
24294 | lispdir!$lispdir$ac_delim | |
24295 | locallisppath!$locallisppath$ac_delim | |
24296 | lisppath!$lisppath$ac_delim | |
24297 | x_default_search_path!$x_default_search_path$ac_delim | |
24298 | etcdir!$etcdir$ac_delim | |
24299 | archlibdir!$archlibdir$ac_delim | |
24300 | bitmapdir!$bitmapdir$ac_delim | |
24301 | gamedir!$gamedir$ac_delim | |
24302 | gameuser!$gameuser$ac_delim | |
24303 | c_switch_system!$c_switch_system$ac_delim | |
ca81d7a0 JD |
24304 | _ACEOF |
24305 | ||
24306 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then | |
24307 | break | |
24308 | elif $ac_last_try; then | |
24309 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
24310 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
24311 | { (exit 1); exit 1; }; } | |
24312 | else | |
24313 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
8eeae1c9 | 24314 | fi |
ca81d7a0 JD |
24315 | done |
24316 | ||
24317 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | |
24318 | if test -n "$ac_eof"; then | |
24319 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | |
24320 | ac_eof=`expr $ac_eof + 1` | |
24321 | fi | |
24322 | ||
24323 | cat >>$CONFIG_STATUS <<_ACEOF | |
24324 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof | |
24325 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
24326 | _ACEOF | |
24327 | sed ' | |
24328 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | |
24329 | s/^/s,@/; s/!/@,|#_!!_#|/ | |
24330 | :n | |
24331 | t n | |
24332 | s/'"$ac_delim"'$/,g/; t | |
24333 | s/$/\\/; p | |
24334 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | |
24335 | ' >>$CONFIG_STATUS <conf$$subs.sed | |
24336 | rm -f conf$$subs.sed | |
24337 | cat >>$CONFIG_STATUS <<_ACEOF | |
24338 | CEOF$ac_eof | |
24339 | _ACEOF | |
24340 | ||
24341 | ||
24342 | ac_delim='%!_!# ' | |
24343 | for ac_last_try in false false false false false :; do | |
24344 | cat >conf$$subs.sed <<_ACEOF | |
cfe440b8 | 24345 | c_switch_machine!$c_switch_machine$ac_delim |
9d89ffd0 JD |
24346 | LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim |
24347 | LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim | |
ca81d7a0 JD |
24348 | C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim |
24349 | X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim | |
24350 | machfile!$machfile$ac_delim | |
24351 | opsysfile!$opsysfile$ac_delim | |
24352 | carbon_appdir!$carbon_appdir$ac_delim | |
24353 | LTLIBOBJS!$LTLIBOBJS$ac_delim | |
24354 | _ACEOF | |
24355 | ||
cfe440b8 | 24356 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 9; then |
ca81d7a0 JD |
24357 | break |
24358 | elif $ac_last_try; then | |
24359 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
24360 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
24361 | { (exit 1); exit 1; }; } | |
24362 | else | |
24363 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
24364 | fi | |
24365 | done | |
24366 | ||
24367 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | |
24368 | if test -n "$ac_eof"; then | |
24369 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | |
24370 | ac_eof=`expr $ac_eof + 1` | |
24371 | fi | |
8eeae1c9 | 24372 | |
ca81d7a0 JD |
24373 | cat >>$CONFIG_STATUS <<_ACEOF |
24374 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof | |
24375 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end | |
24376 | _ACEOF | |
24377 | sed ' | |
24378 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | |
24379 | s/^/s,@/; s/!/@,|#_!!_#|/ | |
24380 | :n | |
24381 | t n | |
24382 | s/'"$ac_delim"'$/,g/; t | |
24383 | s/$/\\/; p | |
24384 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | |
24385 | ' >>$CONFIG_STATUS <conf$$subs.sed | |
24386 | rm -f conf$$subs.sed | |
24387 | cat >>$CONFIG_STATUS <<_ACEOF | |
24388 | :end | |
24389 | s/|#_!!_#|//g | |
24390 | CEOF$ac_eof | |
c0d27fcc | 24391 | _ACEOF |
ca81d7a0 JD |
24392 | |
24393 | ||
24394 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
24395 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
24396 | # trailing colons and then remove the whole line if VPATH becomes empty | |
24397 | # (actually we leave an empty line to preserve line numbers). | |
24398 | if test "x$srcdir" = x.; then | |
24399 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
24400 | s/:*\$(srcdir):*/:/ | |
24401 | s/:*\${srcdir}:*/:/ | |
24402 | s/:*@srcdir@:*/:/ | |
24403 | s/^\([^=]*=[ ]*\):*/\1/ | |
24404 | s/:*$// | |
24405 | s/^[^=]*=[ ]*$// | |
24406 | }' | |
24407 | fi | |
24408 | ||
c0d27fcc | 24409 | cat >>$CONFIG_STATUS <<\_ACEOF |
ca81d7a0 JD |
24410 | fi # test -n "$CONFIG_FILES" |
24411 | ||
24412 | ||
24413 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS | |
24414 | do | |
24415 | case $ac_tag in | |
24416 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
24417 | esac | |
24418 | case $ac_mode$ac_tag in | |
24419 | :[FHL]*:*);; | |
24420 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 | |
24421 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} | |
24422 | { (exit 1); exit 1; }; };; | |
24423 | :[FH]-) ac_tag=-:-;; | |
24424 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
24425 | esac | |
24426 | ac_save_IFS=$IFS | |
24427 | IFS=: | |
24428 | set x $ac_tag | |
24429 | IFS=$ac_save_IFS | |
24430 | shift | |
24431 | ac_file=$1 | |
24432 | shift | |
24433 | ||
24434 | case $ac_mode in | |
24435 | :L) ac_source=$1;; | |
24436 | :[FH]) | |
24437 | ac_file_inputs= | |
24438 | for ac_f | |
24439 | do | |
24440 | case $ac_f in | |
24441 | -) ac_f="$tmp/stdin";; | |
24442 | *) # Look for the file first in the build tree, then in the source tree | |
24443 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
24444 | # because $ac_f cannot contain `:'. | |
24445 | test -f "$ac_f" || | |
24446 | case $ac_f in | |
24447 | [\\/$]*) false;; | |
24448 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
24449 | esac || | |
24450 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 | |
24451 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
24452 | { (exit 1); exit 1; }; };; | |
24453 | esac | |
24454 | ac_file_inputs="$ac_file_inputs $ac_f" | |
24455 | done | |
24456 | ||
24457 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
24458 | # use $as_me), people would be surprised to read: | |
24459 | # /* config.h. Generated by config.status. */ | |
24460 | configure_input="Generated from "`IFS=: | |
24461 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." | |
24462 | if test x"$ac_file" != x-; then | |
24463 | configure_input="$ac_file. $configure_input" | |
24464 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
24465 | echo "$as_me: creating $ac_file" >&6;} | |
24466 | fi | |
24467 | ||
24468 | case $ac_tag in | |
24469 | *:-:* | *:-) cat >"$tmp/stdin";; | |
24470 | esac | |
24471 | ;; | |
ba4481b5 DL |
24472 | esac |
24473 | ||
ca81d7a0 | 24474 | ac_dir=`$as_dirname -- "$ac_file" || |
c0d27fcc | 24475 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
edfaf76d LK |
24476 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
24477 | X"$ac_file" : 'X\(//\)$' \| \ | |
ca81d7a0 | 24478 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
503d2be0 | 24479 | echo X"$ac_file" | |
ca81d7a0 JD |
24480 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
24481 | s//\1/ | |
24482 | q | |
24483 | } | |
24484 | /^X\(\/\/\)[^/].*/{ | |
24485 | s//\1/ | |
24486 | q | |
24487 | } | |
24488 | /^X\(\/\/\)$/{ | |
24489 | s//\1/ | |
24490 | q | |
24491 | } | |
24492 | /^X\(\/\).*/{ | |
24493 | s//\1/ | |
24494 | q | |
24495 | } | |
24496 | s/.*/./; q'` | |
24497 | { as_dir="$ac_dir" | |
24498 | case $as_dir in #( | |
24499 | -*) as_dir=./$as_dir;; | |
24500 | esac | |
24501 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
6bae0ccf | 24502 | as_dirs= |
ca81d7a0 JD |
24503 | while :; do |
24504 | case $as_dir in #( | |
24505 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( | |
24506 | *) as_qdir=$as_dir;; | |
24507 | esac | |
24508 | as_dirs="'$as_qdir' $as_dirs" | |
24509 | as_dir=`$as_dirname -- "$as_dir" || | |
6bae0ccf | 24510 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
edfaf76d LK |
24511 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
24512 | X"$as_dir" : 'X\(//\)$' \| \ | |
ca81d7a0 | 24513 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
6bae0ccf | 24514 | echo X"$as_dir" | |
ca81d7a0 JD |
24515 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
24516 | s//\1/ | |
24517 | q | |
24518 | } | |
24519 | /^X\(\/\/\)[^/].*/{ | |
24520 | s//\1/ | |
24521 | q | |
24522 | } | |
24523 | /^X\(\/\/\)$/{ | |
24524 | s//\1/ | |
24525 | q | |
24526 | } | |
24527 | /^X\(\/\).*/{ | |
24528 | s//\1/ | |
24529 | q | |
24530 | } | |
24531 | s/.*/./; q'` | |
24532 | test -d "$as_dir" && break | |
6bae0ccf | 24533 | done |
ca81d7a0 JD |
24534 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
24535 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
24536 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
6bae0ccf | 24537 | { (exit 1); exit 1; }; }; } |
c0d27fcc | 24538 | ac_builddir=. |
98418dba | 24539 | |
ca81d7a0 JD |
24540 | case "$ac_dir" in |
24541 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
24542 | *) | |
c0d27fcc | 24543 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
ca81d7a0 JD |
24544 | # A ".." for each directory in $ac_dir_suffix. |
24545 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | |
24546 | case $ac_top_builddir_sub in | |
24547 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
24548 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
24549 | esac ;; | |
24550 | esac | |
24551 | ac_abs_top_builddir=$ac_pwd | |
24552 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
24553 | # for backward compatibility: | |
24554 | ac_top_builddir=$ac_top_build_prefix | |
c0d27fcc MR |
24555 | |
24556 | case $srcdir in | |
ca81d7a0 | 24557 | .) # We are building in place. |
c0d27fcc | 24558 | ac_srcdir=. |
ca81d7a0 JD |
24559 | ac_top_srcdir=$ac_top_builddir_sub |
24560 | ac_abs_top_srcdir=$ac_pwd ;; | |
24561 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
c0d27fcc | 24562 | ac_srcdir=$srcdir$ac_dir_suffix; |
ca81d7a0 JD |
24563 | ac_top_srcdir=$srcdir |
24564 | ac_abs_top_srcdir=$srcdir ;; | |
24565 | *) # Relative name. | |
24566 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
24567 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
24568 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
c0d27fcc | 24569 | esac |
ca81d7a0 | 24570 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
edfaf76d | 24571 | |
c0d27fcc | 24572 | |
ca81d7a0 JD |
24573 | case $ac_mode in |
24574 | :F) | |
24575 | # | |
24576 | # CONFIG_FILE | |
24577 | # | |
ba4481b5 | 24578 | |
503d2be0 AS |
24579 | case $INSTALL in |
24580 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
ca81d7a0 | 24581 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
ba4481b5 | 24582 | esac |
ca81d7a0 | 24583 | _ACEOF |
ba4481b5 | 24584 | |
ca81d7a0 JD |
24585 | cat >>$CONFIG_STATUS <<\_ACEOF |
24586 | # If the template does not know about datarootdir, expand it. | |
24587 | # FIXME: This hack should be removed a few years after 2.60. | |
24588 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
8eeae1c9 | 24589 | |
ca81d7a0 JD |
24590 | case `sed -n '/datarootdir/ { |
24591 | p | |
24592 | q | |
24593 | } | |
24594 | /@datadir@/p | |
24595 | /@docdir@/p | |
24596 | /@infodir@/p | |
24597 | /@localedir@/p | |
24598 | /@mandir@/p | |
24599 | ' $ac_file_inputs` in | |
24600 | *datarootdir*) ac_datarootdir_seen=yes;; | |
24601 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
24602 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
24603 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
8eeae1c9 | 24604 | _ACEOF |
ca81d7a0 JD |
24605 | cat >>$CONFIG_STATUS <<_ACEOF |
24606 | ac_datarootdir_hack=' | |
24607 | s&@datadir@&$datadir&g | |
24608 | s&@docdir@&$docdir&g | |
24609 | s&@infodir@&$infodir&g | |
24610 | s&@localedir@&$localedir&g | |
24611 | s&@mandir@&$mandir&g | |
24612 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
24613 | esac | |
24614 | _ACEOF | |
24615 | ||
24616 | # Neutralize VPATH when `$srcdir' = `.'. | |
24617 | # Shell code in configure.ac might set extrasub. | |
24618 | # FIXME: do we really want to maintain this feature? | |
c0d27fcc | 24619 | cat >>$CONFIG_STATUS <<_ACEOF |
503d2be0 AS |
24620 | sed "$ac_vpsub |
24621 | $extrasub | |
c0d27fcc MR |
24622 | _ACEOF |
24623 | cat >>$CONFIG_STATUS <<\_ACEOF | |
503d2be0 AS |
24624 | :t |
24625 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
ca81d7a0 JD |
24626 | s&@configure_input@&$configure_input&;t t |
24627 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
24628 | s&@srcdir@&$ac_srcdir&;t t | |
24629 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
24630 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
24631 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
24632 | s&@builddir@&$ac_builddir&;t t | |
24633 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
24634 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
24635 | s&@INSTALL@&$ac_INSTALL&;t t | |
24636 | $ac_datarootdir_hack | |
24637 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out | |
24638 | ||
24639 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
24640 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
24641 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
24642 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
24643 | which seems to be undefined. Please make sure it is defined." >&5 | |
24644 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
24645 | which seems to be undefined. Please make sure it is defined." >&2;} | |
24646 | ||
24647 | rm -f "$tmp/stdin" | |
503d2be0 | 24648 | case $ac_file in |
ca81d7a0 JD |
24649 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
24650 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; | |
ba4481b5 | 24651 | esac |
ca81d7a0 JD |
24652 | ;; |
24653 | :H) | |
24654 | # | |
24655 | # CONFIG_HEADER | |
24656 | # | |
24657 | _ACEOF | |
24658 | ||
24659 | # Transform confdefs.h into a sed script `conftest.defines', that | |
24660 | # substitutes the proper values into config.h.in to produce config.h. | |
24661 | rm -f conftest.defines conftest.tail | |
24662 | # First, append a space to every undef/define line, to ease matching. | |
24663 | echo 's/$/ /' >conftest.defines | |
24664 | # Then, protect against being on the right side of a sed subst, or in | |
24665 | # an unquoted here document, in config.status. If some macros were | |
24666 | # called several times there might be several #defines for the same | |
24667 | # symbol, which is useless. But do not sort them, since the last | |
24668 | # AC_DEFINE must be honored. | |
24669 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
24670 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where | |
24671 | # NAME is the cpp macro being defined, VALUE is the value it is being given. | |
24672 | # PARAMS is the parameter list in the macro definition--in most cases, it's | |
24673 | # just an empty string. | |
24674 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' | |
24675 | ac_dB='\\)[ (].*,\\1define\\2' | |
24676 | ac_dC=' ' | |
24677 | ac_dD=' ,' | |
24678 | ||
24679 | uniq confdefs.h | | |
24680 | sed -n ' | |
24681 | t rset | |
24682 | :rset | |
24683 | s/^[ ]*#[ ]*define[ ][ ]*// | |
24684 | t ok | |
24685 | d | |
24686 | :ok | |
24687 | s/[\\&,]/\\&/g | |
24688 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p | |
24689 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p | |
24690 | ' >>conftest.defines | |
24691 | ||
24692 | # Remove the space that was appended to ease matching. | |
24693 | # Then replace #undef with comments. This is necessary, for | |
ba4481b5 DL |
24694 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
24695 | # on some systems where configure will not decide to define it. | |
ca81d7a0 JD |
24696 | # (The regexp can be short, since the line contains either #define or #undef.) |
24697 | echo 's/ $// | |
24698 | s,^[ #]*u.*,/* & */,' >>conftest.defines | |
24699 | ||
24700 | # Break up conftest.defines: | |
24701 | ac_max_sed_lines=50 | |
24702 | ||
24703 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" | |
24704 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" | |
24705 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" | |
24706 | # et cetera. | |
24707 | ac_in='$ac_file_inputs' | |
24708 | ac_out='"$tmp/out1"' | |
24709 | ac_nxt='"$tmp/out2"' | |
24710 | ||
24711 | while : | |
503d2be0 | 24712 | do |
ca81d7a0 JD |
24713 | # Write a here document: |
24714 | cat >>$CONFIG_STATUS <<_ACEOF | |
24715 | # First, check the format of the line: | |
24716 | cat >"\$tmp/defines.sed" <<\\CEOF | |
24717 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def | |
24718 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def | |
24719 | b | |
24720 | :def | |
24721 | _ACEOF | |
24722 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS | |
503d2be0 | 24723 | echo 'CEOF |
ca81d7a0 JD |
24724 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
24725 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in | |
24726 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail | |
24727 | grep . conftest.tail >/dev/null || break | |
503d2be0 AS |
24728 | rm -f conftest.defines |
24729 | mv conftest.tail conftest.defines | |
24730 | done | |
ca81d7a0 | 24731 | rm -f conftest.defines conftest.tail |
503d2be0 | 24732 | |
ca81d7a0 | 24733 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
c0d27fcc | 24734 | cat >>$CONFIG_STATUS <<\_ACEOF |
503d2be0 | 24735 | if test x"$ac_file" != x-; then |
ca81d7a0 JD |
24736 | echo "/* $configure_input */" >"$tmp/config.h" |
24737 | cat "$ac_result" >>"$tmp/config.h" | |
24738 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then | |
c0d27fcc | 24739 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
503d2be0 AS |
24740 | echo "$as_me: $ac_file is unchanged" >&6;} |
24741 | else | |
503d2be0 | 24742 | rm -f $ac_file |
ca81d7a0 | 24743 | mv "$tmp/config.h" $ac_file |
ba4481b5 | 24744 | fi |
503d2be0 | 24745 | else |
ca81d7a0 JD |
24746 | echo "/* $configure_input */" |
24747 | cat "$ac_result" | |
ba4481b5 | 24748 | fi |
ca81d7a0 JD |
24749 | rm -f "$tmp/out12" |
24750 | ;; | |
4b411bfe | 24751 | |
ca81d7a0 JD |
24752 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
24753 | echo "$as_me: executing $ac_file commands" >&6;} | |
24754 | ;; | |
24755 | esac | |
c0d27fcc | 24756 | |
4b411bfe | 24757 | |
ca81d7a0 JD |
24758 | case $ac_file$ac_mode in |
24759 | "default":C) | |
ba4481b5 DL |
24760 | |
24761 | ### Make the necessary directories, if they don't exist. | |
24762 | for dir in etc lisp ; do | |
24763 | test -d ${dir} || mkdir ${dir} | |
24764 | done | |
24765 | ||
24766 | # Build src/Makefile from ${srcdir}/src/Makefile.c | |
24767 | # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c | |
24768 | # This must be done after src/config.h is built, since we rely on that file. | |
24769 | ||
24770 | # Now get this: Some word that is part of the ${srcdir} directory name | |
24771 | # or the ${configuration} value might, just might, happen to be an | |
24772 | # identifier like `sun4' or `i386' or something, and be predefined by | |
24773 | # the C preprocessor to some helpful value like 1, or maybe the empty | |
24774 | # string. Needless to say consequent macro substitutions are less | |
24775 | # than conducive to the makefile finding the correct directory. | |
24776 | undefs="`echo $top_srcdir $configuration $canonical | | |
24777 | sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \ | |
24778 | -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \ | |
24779 | `" | |
24780 | ||
24781 | echo creating src/epaths.h | |
4aa6b955 | 24782 | ${MAKE-make} epaths-force |
ba4481b5 | 24783 | |
1c203d4c DL |
24784 | # As of 2000-11-19, newest development versions of GNU cpp preprocess |
24785 | # `..' to `. .' unless invoked with -traditional | |
24786 | ||
d0e9bfd2 | 24787 | if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then |
1c203d4c DL |
24788 | CPPFLAGS="$CPPFLAGS -traditional" |
24789 | fi | |
24790 | ||
ba4481b5 DL |
24791 | echo creating lib-src/Makefile |
24792 | ( cd lib-src | |
24793 | rm -f junk.c junk1.c junk2.c | |
24794 | sed -e '/start of cpp stuff/q' \ | |
24795 | < Makefile.c > junk1.c | |
24796 | sed -e '1,/start of cpp stuff/d'\ | |
9a72e4c1 | 24797 | -e 's,/\*\*/#\(.*\)$,/* \1 */,' \ |
ba4481b5 | 24798 | < Makefile.c > junk.c |
503d2be0 | 24799 | $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \ |
ba4481b5 DL |
24800 | sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c |
24801 | cat junk1.c junk2.c > Makefile.new | |
24802 | rm -f junk.c junk1.c junk2.c | |
24803 | chmod 444 Makefile.new | |
24804 | mv -f Makefile.new Makefile | |
24805 | ) | |
24806 | ||
24807 | echo creating src/Makefile | |
24808 | ( cd src | |
24809 | rm -f junk.c junk1.c junk2.c | |
24810 | sed -e '/start of cpp stuff/q' \ | |
24811 | < Makefile.c > junk1.c | |
24812 | sed -e '1,/start of cpp stuff/d'\ | |
9a72e4c1 | 24813 | -e 's,/\*\*/#\(.*\)$,/* \1 */,' \ |
ba4481b5 | 24814 | < Makefile.c > junk.c |
503d2be0 | 24815 | $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \ |
ba4481b5 DL |
24816 | sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c |
24817 | cat junk1.c junk2.c > Makefile.new | |
24818 | rm -f junk.c junk1.c junk2.c | |
24819 | chmod 444 Makefile.new | |
24820 | mv -f Makefile.new Makefile | |
24821 | ) | |
24822 | ||
503d2be0 | 24823 | if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then |
ba4481b5 | 24824 | echo creating src/.gdbinit |
503d2be0 | 24825 | echo source $srcdir/src/.gdbinit > src/.gdbinit |
ba4481b5 DL |
24826 | fi |
24827 | ||
24828 | # This is how we know whether to re-run configure in certain cases. | |
24829 | touch src/config.stamp | |
24830 | ||
503d2be0 | 24831 | ;; |
ca81d7a0 | 24832 | |
503d2be0 | 24833 | esac |
ca81d7a0 | 24834 | done # for ac_tag |
503d2be0 | 24835 | |
ba4481b5 | 24836 | |
503d2be0 | 24837 | { (exit 0); exit 0; } |
c0d27fcc | 24838 | _ACEOF |
ba4481b5 | 24839 | chmod +x $CONFIG_STATUS |
503d2be0 AS |
24840 | ac_clean_files=$ac_clean_files_save |
24841 | ||
c0d27fcc | 24842 | |
503d2be0 AS |
24843 | # configure is writing to config.log, and then calls config.status. |
24844 | # config.status does its own redirection, appending to config.log. | |
24845 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
24846 | # by configure, so config.status won't be able to write to it; its | |
24847 | # output is simply discarded. So we exec the FD to /dev/null, | |
24848 | # effectively closing config.log, so it can be properly (re)opened and | |
24849 | # appended to by config.status. When coming back to configure, we | |
24850 | # need to make the FD available again. | |
24851 | if test "$no_create" != yes; then | |
24852 | ac_cs_success=: | |
19650fd6 AS |
24853 | ac_config_status_args= |
24854 | test "$silent" = yes && | |
24855 | ac_config_status_args="$ac_config_status_args --quiet" | |
503d2be0 | 24856 | exec 5>/dev/null |
19650fd6 | 24857 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
503d2be0 AS |
24858 | exec 5>>config.log |
24859 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
24860 | # would make configure fail if this is the last instruction. | |
24861 | $ac_cs_success || { (exit 1); exit 1; } | |
24862 | fi | |
f5f47add | 24863 | |
c0d27fcc | 24864 |