Commit | Line | Data |
---|---|---|
ba4481b5 | 1 | #! /bin/sh |
ba4481b5 | 2 | # Guess values for system-dependent variables and create Makefiles. |
5d374ce1 | 3 | # Generated by GNU Autoconf 2.61 for emacs 23.0.60. |
ba4481b5 | 4 | # |
ca81d7a0 JD |
5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
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 | |
503d2be0 AS |
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 | |
6bae0ccf | 152 | |
c0d27fcc | 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 | |
c0d27fcc MR |
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 | } | |
c0d27fcc | 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 | |
c0d27fcc | 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 MR |
221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
222 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
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 | ( | |
c0d27fcc MR |
328 | as_lineno_1=$LINENO |
329 | as_lineno_2=$LINENO | |
c0d27fcc | 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") || { | |
554b610f MB |
415 | echo No shell found that supports shell functions. |
416 | echo Please tell autoconf@gnu.org about your system, | |
417 | echo including any error possibly output before this | |
418 | echo message | |
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 | 572 | # Identity of this package. |
9cf8f393 JD |
573 | PACKAGE_NAME='emacs' |
574 | PACKAGE_TARNAME='emacs' | |
5d374ce1 AS |
575 | PACKAGE_VERSION='23.0.60' |
576 | PACKAGE_STRING='emacs 23.0.60' | |
9cf8f393 | 577 | PACKAGE_BUGREPORT='' |
c0d27fcc | 578 | |
503d2be0 AS |
579 | ac_unique_file="src/lisp.h" |
580 | # Factoring default headers for most tests. | |
581 | ac_includes_default="\ | |
582 | #include <stdio.h> | |
f053c89f | 583 | #ifdef HAVE_SYS_TYPES_H |
503d2be0 AS |
584 | # include <sys/types.h> |
585 | #endif | |
f053c89f | 586 | #ifdef HAVE_SYS_STAT_H |
503d2be0 AS |
587 | # include <sys/stat.h> |
588 | #endif | |
f053c89f | 589 | #ifdef STDC_HEADERS |
503d2be0 AS |
590 | # include <stdlib.h> |
591 | # include <stddef.h> | |
592 | #else | |
f053c89f | 593 | # ifdef HAVE_STDLIB_H |
503d2be0 AS |
594 | # include <stdlib.h> |
595 | # endif | |
596 | #endif | |
f053c89f CY |
597 | #ifdef HAVE_STRING_H |
598 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
503d2be0 AS |
599 | # include <memory.h> |
600 | # endif | |
601 | # include <string.h> | |
602 | #endif | |
f053c89f | 603 | #ifdef HAVE_STRINGS_H |
503d2be0 AS |
604 | # include <strings.h> |
605 | #endif | |
f053c89f | 606 | #ifdef HAVE_INTTYPES_H |
503d2be0 | 607 | # include <inttypes.h> |
503d2be0 | 608 | #endif |
f053c89f | 609 | #ifdef HAVE_STDINT_H |
ca81d7a0 | 610 | # include <stdint.h> |
503d2be0 | 611 | #endif |
f053c89f | 612 | #ifdef HAVE_UNISTD_H |
503d2be0 AS |
613 | # include <unistd.h> |
614 | #endif" | |
ba4481b5 | 615 | |
a51f4969 | 616 | ac_config_libobj_dir=src |
c24fa7dc MB |
617 | ac_header_list= |
618 | ac_func_list= | |
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 | |
1bb9a689 | 682 | MAKEINFO |
c24fa7dc MB |
683 | LIBSOUND |
684 | PKG_CONFIG | |
685 | ALSA_CFLAGS | |
686 | ALSA_LIBS | |
c24fa7dc MB |
687 | CFLAGS_SOUND |
688 | SET_MAKE | |
689 | XMKMF | |
cfe440b8 | 690 | HAVE_XSERVER |
0cfc0546 GM |
691 | RSVG_CFLAGS |
692 | RSVG_LIBS | |
c24fa7dc MB |
693 | GTK_CFLAGS |
694 | GTK_LIBS | |
131e4133 MA |
695 | DBUS_CFLAGS |
696 | DBUS_LIBS | |
c24fa7dc MB |
697 | XFT_CFLAGS |
698 | XFT_LIBS | |
699 | FREETYPE_CFLAGS | |
700 | FREETYPE_LIBS | |
701 | FONTCONFIG_CFLAGS | |
702 | FONTCONFIG_LIBS | |
c24fa7dc MB |
703 | LIBOTF_CFLAGS |
704 | LIBOTF_LIBS | |
7f0942ba KH |
705 | M17N_FLT_CFLAGS |
706 | M17N_FLT_LIBS | |
c24fa7dc MB |
707 | ALLOCA |
708 | liblockfile | |
709 | LIBOBJS | |
710 | NEED_SETGID | |
711 | KMEM_GROUP | |
712 | GETLOADAVG_LIBS | |
713 | GETOPT_H | |
714 | GETOPTOBJS | |
715 | version | |
716 | configuration | |
717 | canonical | |
718 | srcdir | |
719 | lispdir | |
720 | locallisppath | |
721 | lisppath | |
722 | x_default_search_path | |
723 | etcdir | |
724 | archlibdir | |
725 | bitmapdir | |
726 | gamedir | |
727 | gameuser | |
728 | c_switch_system | |
729 | c_switch_machine | |
730 | LD_SWITCH_X_SITE | |
731 | LD_SWITCH_X_SITE_AUX | |
732 | C_SWITCH_X_SITE | |
733 | X_TOOLKIT_TYPE | |
734 | machfile | |
735 | opsysfile | |
736 | carbon_appdir | |
737 | LTLIBOBJS' | |
6bae0ccf | 738 | ac_subst_files='' |
ca81d7a0 JD |
739 | ac_precious_vars='build_alias |
740 | host_alias | |
741 | target_alias | |
742 | CC | |
743 | CFLAGS | |
744 | LDFLAGS | |
f053c89f | 745 | LIBS |
ca81d7a0 JD |
746 | CPPFLAGS |
747 | CPP | |
748 | XMKMF' | |
749 | ||
c0d27fcc | 750 | |
ba4481b5 | 751 | # Initialize some variables set by options. |
503d2be0 AS |
752 | ac_init_help= |
753 | ac_init_version=false | |
ba4481b5 DL |
754 | # The variables have the same names as the options, with |
755 | # dashes changed to underlines. | |
503d2be0 | 756 | cache_file=/dev/null |
ba4481b5 | 757 | exec_prefix=NONE |
ba4481b5 | 758 | no_create= |
ba4481b5 DL |
759 | no_recursion= |
760 | prefix=NONE | |
761 | program_prefix=NONE | |
762 | program_suffix=NONE | |
763 | program_transform_name=s,x,x, | |
764 | silent= | |
765 | site= | |
766 | srcdir= | |
ba4481b5 DL |
767 | verbose= |
768 | x_includes=NONE | |
769 | x_libraries=NONE | |
503d2be0 AS |
770 | |
771 | # Installation directory options. | |
772 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
773 | # and all the variables that are supposed to be based on exec_prefix | |
774 | # by default will actually change. | |
775 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
ca81d7a0 | 776 | # (The list follows the same order as the GNU Coding Standards.) |
ba4481b5 DL |
777 | bindir='${exec_prefix}/bin' |
778 | sbindir='${exec_prefix}/sbin' | |
779 | libexecdir='${exec_prefix}/libexec' | |
ca81d7a0 JD |
780 | datarootdir='${prefix}/share' |
781 | datadir='${datarootdir}' | |
ba4481b5 DL |
782 | sysconfdir='${prefix}/etc' |
783 | sharedstatedir='${prefix}/com' | |
784 | localstatedir='${prefix}/var' | |
ba4481b5 DL |
785 | includedir='${prefix}/include' |
786 | oldincludedir='/usr/include' | |
9cf8f393 | 787 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
ca81d7a0 JD |
788 | infodir='${datarootdir}/info' |
789 | htmldir='${docdir}' | |
790 | dvidir='${docdir}' | |
791 | pdfdir='${docdir}' | |
792 | psdir='${docdir}' | |
793 | libdir='${exec_prefix}/lib' | |
794 | localedir='${datarootdir}/locale' | |
795 | mandir='${datarootdir}/man' | |
ba4481b5 | 796 | |
ba4481b5 | 797 | ac_prev= |
ca81d7a0 | 798 | ac_dashdash= |
ba4481b5 DL |
799 | for ac_option |
800 | do | |
ba4481b5 DL |
801 | # If the previous option needs an argument, assign it. |
802 | if test -n "$ac_prev"; then | |
ca81d7a0 | 803 | eval $ac_prev=\$ac_option |
ba4481b5 DL |
804 | ac_prev= |
805 | continue | |
806 | fi | |
807 | ||
ca81d7a0 JD |
808 | case $ac_option in |
809 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
810 | *) ac_optarg=yes ;; | |
811 | esac | |
ba4481b5 DL |
812 | |
813 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
814 | ||
ca81d7a0 JD |
815 | case $ac_dashdash$ac_option in |
816 | --) | |
817 | ac_dashdash=yes ;; | |
ba4481b5 DL |
818 | |
819 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
820 | ac_prev=bindir ;; | |
821 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
503d2be0 | 822 | bindir=$ac_optarg ;; |
ba4481b5 DL |
823 | |
824 | -build | --build | --buil | --bui | --bu) | |
503d2be0 | 825 | ac_prev=build_alias ;; |
ba4481b5 | 826 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
503d2be0 | 827 | build_alias=$ac_optarg ;; |
ba4481b5 DL |
828 | |
829 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
830 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
831 | ac_prev=cache_file ;; | |
832 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
833 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
503d2be0 AS |
834 | cache_file=$ac_optarg ;; |
835 | ||
836 | --config-cache | -C) | |
837 | cache_file=config.cache ;; | |
ba4481b5 | 838 | |
ca81d7a0 | 839 | -datadir | --datadir | --datadi | --datad) |
ba4481b5 | 840 | ac_prev=datadir ;; |
ca81d7a0 | 841 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
503d2be0 | 842 | datadir=$ac_optarg ;; |
ba4481b5 | 843 | |
ca81d7a0 JD |
844 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
845 | | --dataroo | --dataro | --datar) | |
846 | ac_prev=datarootdir ;; | |
847 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
848 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
849 | datarootdir=$ac_optarg ;; | |
850 | ||
ba4481b5 | 851 | -disable-* | --disable-*) |
503d2be0 | 852 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
ba4481b5 | 853 | # Reject names that are not valid shell variable names. |
f053c89f | 854 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
503d2be0 AS |
855 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
856 | { (exit 1); exit 1; }; } | |
f053c89f | 857 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
ca81d7a0 JD |
858 | eval enable_$ac_feature=no ;; |
859 | ||
860 | -docdir | --docdir | --docdi | --doc | --do) | |
861 | ac_prev=docdir ;; | |
862 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
863 | docdir=$ac_optarg ;; | |
864 | ||
865 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
866 | ac_prev=dvidir ;; | |
867 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
868 | dvidir=$ac_optarg ;; | |
ba4481b5 DL |
869 | |
870 | -enable-* | --enable-*) | |
503d2be0 | 871 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
ba4481b5 | 872 | # Reject names that are not valid shell variable names. |
f053c89f | 873 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
503d2be0 AS |
874 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
875 | { (exit 1); exit 1; }; } | |
f053c89f | 876 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
ca81d7a0 | 877 | eval enable_$ac_feature=\$ac_optarg ;; |
ba4481b5 DL |
878 | |
879 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
880 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
881 | | --exec | --exe | --ex) | |
882 | ac_prev=exec_prefix ;; | |
883 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
884 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
885 | | --exec=* | --exe=* | --ex=*) | |
503d2be0 | 886 | exec_prefix=$ac_optarg ;; |
ba4481b5 DL |
887 | |
888 | -gas | --gas | --ga | --g) | |
889 | # Obsolete; use --with-gas. | |
890 | with_gas=yes ;; | |
891 | ||
503d2be0 AS |
892 | -help | --help | --hel | --he | -h) |
893 | ac_init_help=long ;; | |
894 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
895 | ac_init_help=recursive ;; | |
896 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
897 | ac_init_help=short ;; | |
ba4481b5 DL |
898 | |
899 | -host | --host | --hos | --ho) | |
503d2be0 | 900 | ac_prev=host_alias ;; |
ba4481b5 | 901 | -host=* | --host=* | --hos=* | --ho=*) |
503d2be0 | 902 | host_alias=$ac_optarg ;; |
ba4481b5 | 903 | |
ca81d7a0 JD |
904 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
905 | ac_prev=htmldir ;; | |
906 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
907 | | --ht=*) | |
908 | htmldir=$ac_optarg ;; | |
909 | ||
ba4481b5 DL |
910 | -includedir | --includedir | --includedi | --included | --include \ |
911 | | --includ | --inclu | --incl | --inc) | |
912 | ac_prev=includedir ;; | |
913 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
914 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
503d2be0 | 915 | includedir=$ac_optarg ;; |
ba4481b5 DL |
916 | |
917 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
918 | ac_prev=infodir ;; | |
919 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
503d2be0 | 920 | infodir=$ac_optarg ;; |
ba4481b5 DL |
921 | |
922 | -libdir | --libdir | --libdi | --libd) | |
923 | ac_prev=libdir ;; | |
924 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
503d2be0 | 925 | libdir=$ac_optarg ;; |
ba4481b5 DL |
926 | |
927 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
928 | | --libexe | --libex | --libe) | |
929 | ac_prev=libexecdir ;; | |
930 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
931 | | --libexe=* | --libex=* | --libe=*) | |
503d2be0 | 932 | libexecdir=$ac_optarg ;; |
ba4481b5 | 933 | |
ca81d7a0 JD |
934 | -localedir | --localedir | --localedi | --localed | --locale) |
935 | ac_prev=localedir ;; | |
936 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
937 | localedir=$ac_optarg ;; | |
938 | ||
ba4481b5 | 939 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
ca81d7a0 | 940 | | --localstate | --localstat | --localsta | --localst | --locals) |
ba4481b5 DL |
941 | ac_prev=localstatedir ;; |
942 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
ca81d7a0 | 943 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
503d2be0 | 944 | localstatedir=$ac_optarg ;; |
ba4481b5 DL |
945 | |
946 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
947 | ac_prev=mandir ;; | |
948 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
503d2be0 | 949 | mandir=$ac_optarg ;; |
ba4481b5 DL |
950 | |
951 | -nfp | --nfp | --nf) | |
952 | # Obsolete; use --without-fp. | |
953 | with_fp=no ;; | |
954 | ||
955 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
c0d27fcc | 956 | | --no-cr | --no-c | -n) |
ba4481b5 DL |
957 | no_create=yes ;; |
958 | ||
959 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
960 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
961 | no_recursion=yes ;; | |
962 | ||
963 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
964 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
965 | | --oldin | --oldi | --old | --ol | --o) | |
966 | ac_prev=oldincludedir ;; | |
967 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
968 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
969 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
503d2be0 | 970 | oldincludedir=$ac_optarg ;; |
ba4481b5 DL |
971 | |
972 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
973 | ac_prev=prefix ;; | |
974 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
503d2be0 | 975 | prefix=$ac_optarg ;; |
ba4481b5 DL |
976 | |
977 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
978 | | --program-pre | --program-pr | --program-p) | |
979 | ac_prev=program_prefix ;; | |
980 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
981 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
503d2be0 | 982 | program_prefix=$ac_optarg ;; |
ba4481b5 DL |
983 | |
984 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
985 | | --program-suf | --program-su | --program-s) | |
986 | ac_prev=program_suffix ;; | |
987 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
988 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
503d2be0 | 989 | program_suffix=$ac_optarg ;; |
ba4481b5 DL |
990 | |
991 | -program-transform-name | --program-transform-name \ | |
992 | | --program-transform-nam | --program-transform-na \ | |
993 | | --program-transform-n | --program-transform- \ | |
994 | | --program-transform | --program-transfor \ | |
995 | | --program-transfo | --program-transf \ | |
996 | | --program-trans | --program-tran \ | |
997 | | --progr-tra | --program-tr | --program-t) | |
998 | ac_prev=program_transform_name ;; | |
999 | -program-transform-name=* | --program-transform-name=* \ | |
1000 | | --program-transform-nam=* | --program-transform-na=* \ | |
1001 | | --program-transform-n=* | --program-transform-=* \ | |
1002 | | --program-transform=* | --program-transfor=* \ | |
1003 | | --program-transfo=* | --program-transf=* \ | |
1004 | | --program-trans=* | --program-tran=* \ | |
1005 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
503d2be0 | 1006 | program_transform_name=$ac_optarg ;; |
ba4481b5 | 1007 | |
ca81d7a0 JD |
1008 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1009 | ac_prev=pdfdir ;; | |
1010 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1011 | pdfdir=$ac_optarg ;; | |
1012 | ||
1013 | -psdir | --psdir | --psdi | --psd | --ps) | |
1014 | ac_prev=psdir ;; | |
1015 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1016 | psdir=$ac_optarg ;; | |
1017 | ||
ba4481b5 DL |
1018 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1019 | | -silent | --silent | --silen | --sile | --sil) | |
1020 | silent=yes ;; | |
1021 | ||
1022 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1023 | ac_prev=sbindir ;; | |
1024 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1025 | | --sbi=* | --sb=*) | |
503d2be0 | 1026 | sbindir=$ac_optarg ;; |
ba4481b5 DL |
1027 | |
1028 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1029 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1030 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1031 | | --sha | --sh) | |
1032 | ac_prev=sharedstatedir ;; | |
1033 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1034 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1035 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1036 | | --sha=* | --sh=*) | |
503d2be0 | 1037 | sharedstatedir=$ac_optarg ;; |
ba4481b5 DL |
1038 | |
1039 | -site | --site | --sit) | |
1040 | ac_prev=site ;; | |
1041 | -site=* | --site=* | --sit=*) | |
503d2be0 | 1042 | site=$ac_optarg ;; |
ba4481b5 DL |
1043 | |
1044 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1045 | ac_prev=srcdir ;; | |
1046 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
503d2be0 | 1047 | srcdir=$ac_optarg ;; |
ba4481b5 DL |
1048 | |
1049 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1050 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1051 | ac_prev=sysconfdir ;; | |
1052 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1053 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
503d2be0 | 1054 | sysconfdir=$ac_optarg ;; |
ba4481b5 DL |
1055 | |
1056 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
503d2be0 | 1057 | ac_prev=target_alias ;; |
ba4481b5 | 1058 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
503d2be0 | 1059 | target_alias=$ac_optarg ;; |
ba4481b5 DL |
1060 | |
1061 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1062 | verbose=yes ;; | |
1063 | ||
503d2be0 AS |
1064 | -version | --version | --versio | --versi | --vers | -V) |
1065 | ac_init_version=: ;; | |
ba4481b5 DL |
1066 | |
1067 | -with-* | --with-*) | |
503d2be0 | 1068 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
ba4481b5 | 1069 | # Reject names that are not valid shell variable names. |
f053c89f | 1070 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
503d2be0 AS |
1071 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
1072 | { (exit 1); exit 1; }; } | |
f053c89f | 1073 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
ca81d7a0 | 1074 | eval with_$ac_package=\$ac_optarg ;; |
ba4481b5 DL |
1075 | |
1076 | -without-* | --without-*) | |
503d2be0 | 1077 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
ba4481b5 | 1078 | # Reject names that are not valid shell variable names. |
f053c89f | 1079 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
503d2be0 AS |
1080 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
1081 | { (exit 1); exit 1; }; } | |
f053c89f | 1082 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
ca81d7a0 | 1083 | eval with_$ac_package=no ;; |
ba4481b5 DL |
1084 | |
1085 | --x) | |
1086 | # Obsolete; use --with-x. | |
1087 | with_x=yes ;; | |
1088 | ||
1089 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1090 | | --x-incl | --x-inc | --x-in | --x-i) | |
1091 | ac_prev=x_includes ;; | |
1092 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1093 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
503d2be0 | 1094 | x_includes=$ac_optarg ;; |
ba4481b5 DL |
1095 | |
1096 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1097 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1098 | ac_prev=x_libraries ;; | |
1099 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1100 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
503d2be0 | 1101 | x_libraries=$ac_optarg ;; |
ba4481b5 | 1102 | |
503d2be0 AS |
1103 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
1104 | Try \`$0 --help' for more information." >&2 | |
1105 | { (exit 1); exit 1; }; } | |
ba4481b5 DL |
1106 | ;; |
1107 | ||
503d2be0 AS |
1108 | *=*) |
1109 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1110 | # Reject names that are not valid shell variable names. | |
1111 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
1112 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
1113 | { (exit 1); exit 1; }; } | |
ca81d7a0 | 1114 | eval $ac_envvar=\$ac_optarg |
503d2be0 AS |
1115 | export $ac_envvar ;; |
1116 | ||
ba4481b5 | 1117 | *) |
503d2be0 AS |
1118 | # FIXME: should be removed in autoconf 3.0. |
1119 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1120 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1121 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1122 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
ba4481b5 DL |
1123 | ;; |
1124 | ||
1125 | esac | |
1126 | done | |
1127 | ||
1128 | if test -n "$ac_prev"; then | |
503d2be0 AS |
1129 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
1130 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
1131 | { (exit 1); exit 1; }; } | |
ba4481b5 | 1132 | fi |
ba4481b5 | 1133 | |
ca81d7a0 JD |
1134 | # Be sure to have absolute directory names. |
1135 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1136 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1137 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1138 | libdir localedir mandir | |
ba4481b5 | 1139 | do |
ca81d7a0 | 1140 | eval ac_val=\$$ac_var |
503d2be0 | 1141 | case $ac_val in |
ca81d7a0 JD |
1142 | [\\/$]* | ?:[\\/]* ) continue;; |
1143 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
ba4481b5 | 1144 | esac |
ca81d7a0 JD |
1145 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
1146 | { (exit 1); exit 1; }; } | |
ba4481b5 DL |
1147 | done |
1148 | ||
503d2be0 AS |
1149 | # There might be people who depend on the old broken behavior: `$host' |
1150 | # used to hold the argument of --host etc. | |
c0d27fcc | 1151 | # FIXME: To remove some day. |
503d2be0 AS |
1152 | build=$build_alias |
1153 | host=$host_alias | |
1154 | target=$target_alias | |
1155 | ||
c0d27fcc | 1156 | # FIXME: To remove some day. |
503d2be0 AS |
1157 | if test "x$host_alias" != x; then |
1158 | if test "x$build_alias" = x; then | |
1159 | cross_compiling=maybe | |
1160 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
1161 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
1162 | elif test "x$build_alias" != "x$host_alias"; then | |
1163 | cross_compiling=yes | |
1164 | fi | |
1165 | fi | |
ba4481b5 | 1166 | |
503d2be0 AS |
1167 | ac_tool_prefix= |
1168 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
ba4481b5 | 1169 | |
503d2be0 | 1170 | test "$silent" = yes && exec 6>/dev/null |
ba4481b5 | 1171 | |
c0d27fcc | 1172 | |
ca81d7a0 JD |
1173 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1174 | ac_ls_di=`ls -di .` && | |
1175 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1176 | { echo "$as_me: error: Working directory cannot be determined" >&2 | |
1177 | { (exit 1); exit 1; }; } | |
1178 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1179 | { echo "$as_me: error: pwd does not report name of working directory" >&2 | |
1180 | { (exit 1); exit 1; }; } | |
1181 | ||
1182 | ||
ba4481b5 DL |
1183 | # Find the source files, if location was not specified. |
1184 | if test -z "$srcdir"; then | |
1185 | ac_srcdir_defaulted=yes | |
ca81d7a0 JD |
1186 | # Try the directory containing this script, then the parent directory. |
1187 | ac_confdir=`$as_dirname -- "$0" || | |
c0d27fcc | 1188 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
edfaf76d LK |
1189 | X"$0" : 'X\(//\)[^/]' \| \ |
1190 | X"$0" : 'X\(//\)$' \| \ | |
ca81d7a0 | 1191 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
c0d27fcc | 1192 | echo X"$0" | |
ca81d7a0 JD |
1193 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1194 | s//\1/ | |
1195 | q | |
1196 | } | |
1197 | /^X\(\/\/\)[^/].*/{ | |
1198 | s//\1/ | |
1199 | q | |
1200 | } | |
1201 | /^X\(\/\/\)$/{ | |
1202 | s//\1/ | |
1203 | q | |
1204 | } | |
1205 | /^X\(\/\).*/{ | |
1206 | s//\1/ | |
1207 | q | |
1208 | } | |
1209 | s/.*/./; q'` | |
ba4481b5 | 1210 | srcdir=$ac_confdir |
ca81d7a0 | 1211 | if test ! -r "$srcdir/$ac_unique_file"; then |
ba4481b5 DL |
1212 | srcdir=.. |
1213 | fi | |
1214 | else | |
1215 | ac_srcdir_defaulted=no | |
1216 | fi | |
ca81d7a0 JD |
1217 | if test ! -r "$srcdir/$ac_unique_file"; then |
1218 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1219 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
503d2be0 | 1220 | { (exit 1); exit 1; }; } |
ba4481b5 | 1221 | fi |
ca81d7a0 JD |
1222 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1223 | ac_abs_confdir=`( | |
1224 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 | |
6bae0ccf | 1225 | { (exit 1); exit 1; }; } |
ca81d7a0 JD |
1226 | pwd)` |
1227 | # When building in place, set srcdir=. | |
1228 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1229 | srcdir=. | |
1230 | fi | |
1231 | # Remove unnecessary trailing slashes from srcdir. | |
1232 | # Double slashes in file names in object file debugging info | |
1233 | # mess up M-x gdb in Emacs. | |
1234 | case $srcdir in | |
1235 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1236 | esac | |
1237 | for ac_var in $ac_precious_vars; do | |
1238 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1239 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1240 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1241 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1242 | done | |
503d2be0 AS |
1243 | |
1244 | # | |
1245 | # Report the --help message. | |
1246 | # | |
1247 | if test "$ac_init_help" = "long"; then | |
1248 | # Omit some internal or obsolete options to make the list less imposing. | |
1249 | # This message is too long to be a string in the A/UX 3.1 sh. | |
c0d27fcc | 1250 | cat <<_ACEOF |
5d374ce1 | 1251 | \`configure' configures emacs 23.0.60 to adapt to many kinds of systems. |
503d2be0 AS |
1252 | |
1253 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1254 | ||
1255 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1256 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1257 | ||
1258 | Defaults for the options are specified in brackets. | |
1259 | ||
1260 | Configuration: | |
1261 | -h, --help display this help and exit | |
1262 | --help=short display options specific to this package | |
1263 | --help=recursive display the short help of all the included packages | |
1264 | -V, --version display version information and exit | |
1265 | -q, --quiet, --silent do not print \`checking...' messages | |
1266 | --cache-file=FILE cache test results in FILE [disabled] | |
1267 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1268 | -n, --no-create do not create output files | |
1269 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1270 | ||
503d2be0 AS |
1271 | Installation directories: |
1272 | --prefix=PREFIX install architecture-independent files in PREFIX | |
edfaf76d | 1273 | [$ac_default_prefix] |
503d2be0 | 1274 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
edfaf76d | 1275 | [PREFIX] |
503d2be0 AS |
1276 | |
1277 | By default, \`make install' will install all the files in | |
1278 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1279 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1280 | for instance \`--prefix=\$HOME'. | |
1281 | ||
1282 | For better control, use the options below. | |
1283 | ||
1284 | Fine tuning of the installation directories: | |
1285 | --bindir=DIR user executables [EPREFIX/bin] | |
1286 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1287 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
503d2be0 AS |
1288 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
1289 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1290 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1291 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1292 | --includedir=DIR C header files [PREFIX/include] | |
1293 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
ca81d7a0 JD |
1294 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
1295 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1296 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1297 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1298 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
9cf8f393 | 1299 | --docdir=DIR documentation root [DATAROOTDIR/doc/emacs] |
ca81d7a0 JD |
1300 | --htmldir=DIR html documentation [DOCDIR] |
1301 | --dvidir=DIR dvi documentation [DOCDIR] | |
1302 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1303 | --psdir=DIR ps documentation [DOCDIR] | |
c0d27fcc | 1304 | _ACEOF |
503d2be0 | 1305 | |
c0d27fcc | 1306 | cat <<\_ACEOF |
503d2be0 | 1307 | |
ba5da88a PJ |
1308 | Program names: |
1309 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1310 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1311 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1312 | ||
503d2be0 AS |
1313 | X features: |
1314 | --x-includes=DIR X include files are in DIR | |
1315 | --x-libraries=DIR X library files are in DIR | |
1316 | ||
1317 | System types: | |
1318 | --build=BUILD configure for building on BUILD [guessed] | |
c0d27fcc MR |
1319 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
1320 | _ACEOF | |
503d2be0 AS |
1321 | fi |
1322 | ||
1323 | if test -n "$ac_init_help"; then | |
9cf8f393 | 1324 | case $ac_init_help in |
5d374ce1 | 1325 | short | recursive ) echo "Configuration of emacs 23.0.60:";; |
9cf8f393 | 1326 | esac |
c0d27fcc | 1327 | cat <<\_ACEOF |
503d2be0 AS |
1328 | |
1329 | Optional Features: | |
1330 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1331 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
709e90de | 1332 | --enable-carbon-app[=DIR] |
6a3a24fa | 1333 | specify install directory for Emacs.app on Mac OS X |
709e90de | 1334 | [DIR=/Application] |
8d01ddb4 | 1335 | --disable-font-backend don't compile font-backend support |
d0098f13 | 1336 | --enable-asserts compile code with asserts enabled |
709e90de AS |
1337 | --enable-maintainer-mode |
1338 | enable make rules and dependencies not useful (and | |
1339 | sometimes confusing) to the casual installer | |
9adfabc2 LK |
1340 | --enable-locallisppath=PATH |
1341 | directories Emacs should search for lisp files | |
1342 | specific to this site | |
503d2be0 AS |
1343 | --disable-largefile omit support for large files |
1344 | ||
1345 | Optional Packages: | |
1346 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1347 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
503d2be0 AS |
1348 | --without-pop don't support POP mail retrieval with movemail |
1349 | --with-kerberos support Kerberos-authenticated POP | |
1350 | --with-kerberos5 support Kerberos version 5 authenticated POP | |
1351 | --with-hesiod support Hesiod to get the POP server host | |
2c9dccc9 | 1352 | --without-sound don't compile with sound support |
a51f4969 | 1353 | --without-sync-input Process async input synchronously |
49adb60f TTN |
1354 | --with-x-toolkit=KIT use an X toolkit (KIT one of: yes, lucid, athena, |
1355 | motif, gtk, no) | |
c8467c40 GM |
1356 | --without-xpm don't compile with XPM image support |
1357 | --without-jpeg don't compile with JPEG image support | |
1358 | --without-tiff don't compile with TIFF image support | |
1359 | --without-gif don't compile with GIF image support | |
1360 | --without-png don't compile with PNG image support | |
1361 | --without-rsvg don't compile with SVG image support | |
4efcc8d1 MB |
1362 | --without-freetype don't use Freetype for local font support |
1363 | --without-xft don't use XFT for anti aliased fonts | |
d235ca2f MB |
1364 | --without-libotf don't use libotf for OpenType font support |
1365 | --without-m17n-flt don't use m17n-flt for text shaping | |
503d2be0 | 1366 | --without-toolkit-scroll-bars |
cc227489 | 1367 | don't use Motif or Xaw3d scroll bars |
c982cf7d | 1368 | --without-xaw3d don't use Xaw3d |
cc227489 | 1369 | --without-xim don't use X11 XIM |
2aea825c | 1370 | --with-carbon use Carbon GUI on Mac OS X. This is unsupported! |
c8467c40 GM |
1371 | --without-gpm don't use -lgpm for mouse support on a GNU/Linux |
1372 | console | |
b5a922de | 1373 | --without-dbus don't compile with D-Bus support |
921fbdf0 | 1374 | --without-makeinfo don't require makeinfo for building manuals |
9d2818d6 | 1375 | |
00b9c927 MO |
1376 | --with-pkg-config-prog=PATH |
1377 | Path to pkg-config for finding GTK and librsvg | |
503d2be0 AS |
1378 | --with-x use the X Window System |
1379 | ||
1380 | Some influential environment variables: | |
1381 | CC C compiler command | |
1382 | CFLAGS C compiler flags | |
1383 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1384 | nonstandard directory <lib dir> | |
f053c89f | 1385 | LIBS libraries to pass to the linker, e.g. -l<library> |
ca81d7a0 JD |
1386 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1387 | you have headers in a nonstandard directory <include dir> | |
503d2be0 | 1388 | CPP C preprocessor |
ca81d7a0 | 1389 | XMKMF Path to xmkmf, Makefile generator for X Window System |
503d2be0 AS |
1390 | |
1391 | Use these variables to override the choices made by `configure' or to help | |
1392 | it to find libraries and programs with nonstandard names/locations. | |
1393 | ||
c0d27fcc | 1394 | _ACEOF |
ca81d7a0 | 1395 | ac_status=$? |
503d2be0 AS |
1396 | fi |
1397 | ||
1398 | if test "$ac_init_help" = "recursive"; then | |
1399 | # If there are subdirs, report their specific --help. | |
c0d27fcc | 1400 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
ca81d7a0 | 1401 | test -d "$ac_dir" || continue |
c0d27fcc MR |
1402 | ac_builddir=. |
1403 | ||
ca81d7a0 JD |
1404 | case "$ac_dir" in |
1405 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1406 | *) | |
c0d27fcc | 1407 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
ca81d7a0 JD |
1408 | # A ".." for each directory in $ac_dir_suffix. |
1409 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | |
1410 | case $ac_top_builddir_sub in | |
1411 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1412 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1413 | esac ;; | |
1414 | esac | |
1415 | ac_abs_top_builddir=$ac_pwd | |
1416 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1417 | # for backward compatibility: | |
1418 | ac_top_builddir=$ac_top_build_prefix | |
503d2be0 | 1419 | |
c0d27fcc | 1420 | case $srcdir in |
ca81d7a0 | 1421 | .) # We are building in place. |
c0d27fcc | 1422 | ac_srcdir=. |
ca81d7a0 JD |
1423 | ac_top_srcdir=$ac_top_builddir_sub |
1424 | ac_abs_top_srcdir=$ac_pwd ;; | |
1425 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
c0d27fcc | 1426 | ac_srcdir=$srcdir$ac_dir_suffix; |
ca81d7a0 JD |
1427 | ac_top_srcdir=$srcdir |
1428 | ac_abs_top_srcdir=$srcdir ;; | |
1429 | *) # Relative name. | |
1430 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1431 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1432 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
edfaf76d | 1433 | esac |
ca81d7a0 JD |
1434 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1435 | ||
1436 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1437 | # Check for guested configure. | |
1438 | if test -f "$ac_srcdir/configure.gnu"; then | |
1439 | echo && | |
1440 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1441 | elif test -f "$ac_srcdir/configure"; then | |
1442 | echo && | |
1443 | $SHELL "$ac_srcdir/configure" --help=recursive | |
503d2be0 | 1444 | else |
c0d27fcc | 1445 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
ca81d7a0 JD |
1446 | fi || ac_status=$? |
1447 | cd "$ac_pwd" || { ac_status=$?; break; } | |
503d2be0 AS |
1448 | done |
1449 | fi | |
1450 | ||
ca81d7a0 | 1451 | test -n "$ac_init_help" && exit $ac_status |
503d2be0 | 1452 | if $ac_init_version; then |
c0d27fcc | 1453 | cat <<\_ACEOF |
5d374ce1 | 1454 | emacs configure 23.0.60 |
f053c89f | 1455 | generated by GNU Autoconf 2.61 |
503d2be0 | 1456 | |
ca81d7a0 JD |
1457 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
1458 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | |
503d2be0 AS |
1459 | This configure script is free software; the Free Software Foundation |
1460 | gives unlimited permission to copy, distribute and modify it. | |
c0d27fcc | 1461 | _ACEOF |
ca81d7a0 | 1462 | exit |
503d2be0 | 1463 | fi |
ca81d7a0 | 1464 | cat >config.log <<_ACEOF |
503d2be0 AS |
1465 | This file contains any messages produced by compilers while |
1466 | running configure, to aid debugging if configure makes a mistake. | |
1467 | ||
5d374ce1 | 1468 | It was created by emacs $as_me 23.0.60, which was |
f053c89f | 1469 | generated by GNU Autoconf 2.61. Invocation command line was |
503d2be0 AS |
1470 | |
1471 | $ $0 $@ | |
1472 | ||
c0d27fcc | 1473 | _ACEOF |
ca81d7a0 | 1474 | exec 5>>config.log |
503d2be0 AS |
1475 | { |
1476 | cat <<_ASUNAME | |
c0d27fcc MR |
1477 | ## --------- ## |
1478 | ## Platform. ## | |
1479 | ## --------- ## | |
503d2be0 AS |
1480 | |
1481 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1482 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1483 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1484 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1485 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1486 | ||
1487 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1488 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1489 | ||
1490 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1491 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1492 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
ca81d7a0 | 1493 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
503d2be0 AS |
1494 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1495 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1496 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1497 | ||
925c2f3f | 1498 | _ASUNAME |
c0d27fcc MR |
1499 | |
1500 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1501 | for as_dir in $PATH | |
1502 | do | |
1503 | IFS=$as_save_IFS | |
1504 | test -z "$as_dir" && as_dir=. | |
1505 | echo "PATH: $as_dir" | |
1506 | done | |
ca81d7a0 | 1507 | IFS=$as_save_IFS |
c0d27fcc | 1508 | |
503d2be0 AS |
1509 | } >&5 |
1510 | ||
c0d27fcc MR |
1511 | cat >&5 <<_ACEOF |
1512 | ||
1513 | ||
1514 | ## ----------- ## | |
1515 | ## Core tests. ## | |
1516 | ## ----------- ## | |
1517 | ||
1518 | _ACEOF | |
503d2be0 | 1519 | |
503d2be0 AS |
1520 | |
1521 | # Keep a trace of the command line. | |
1522 | # Strip out --no-create and --no-recursion so they do not pile up. | |
19650fd6 | 1523 | # Strip out --silent because we don't want to record it for future runs. |
503d2be0 | 1524 | # Also quote any args containing shell meta-characters. |
19650fd6 | 1525 | # Make two passes to allow for proper duplicate-argument suppression. |
503d2be0 | 1526 | ac_configure_args= |
19650fd6 AS |
1527 | ac_configure_args0= |
1528 | ac_configure_args1= | |
19650fd6 AS |
1529 | ac_must_keep_next=false |
1530 | for ac_pass in 1 2 | |
503d2be0 | 1531 | do |
19650fd6 AS |
1532 | for ac_arg |
1533 | do | |
1534 | case $ac_arg in | |
1535 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1536 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1537 | | -silent | --silent | --silen | --sile | --sil) | |
1538 | continue ;; | |
ca81d7a0 | 1539 | *\'*) |
19650fd6 AS |
1540 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1541 | esac | |
1542 | case $ac_pass in | |
1543 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1544 | 2) | |
1545 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1546 | if test $ac_must_keep_next = true; then | |
edfaf76d | 1547 | ac_must_keep_next=false # Got value, back to normal. |
19650fd6 | 1548 | else |
edfaf76d LK |
1549 | case $ac_arg in |
1550 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1551 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1552 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1553 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1554 | case "$ac_configure_args0 " in | |
1555 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1556 | esac | |
1557 | ;; | |
1558 | -* ) ac_must_keep_next=true ;; | |
1559 | esac | |
19650fd6 | 1560 | fi |
ca81d7a0 | 1561 | ac_configure_args="$ac_configure_args '$ac_arg'" |
19650fd6 AS |
1562 | ;; |
1563 | esac | |
1564 | done | |
503d2be0 | 1565 | done |
19650fd6 AS |
1566 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
1567 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
503d2be0 AS |
1568 | |
1569 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1570 | # config.log. We remove comments because anyway the quotes in there | |
1571 | # would cause problems or look ugly. | |
ca81d7a0 JD |
1572 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1573 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
503d2be0 AS |
1574 | trap 'exit_status=$? |
1575 | # Save into config.log some information that might help in debugging. | |
c0d27fcc MR |
1576 | { |
1577 | echo | |
6bae0ccf | 1578 | |
c0d27fcc MR |
1579 | cat <<\_ASBOX |
1580 | ## ---------------- ## | |
1581 | ## Cache variables. ## | |
1582 | ## ---------------- ## | |
1583 | _ASBOX | |
1584 | echo | |
1585 | # The following way of writing the cache mishandles newlines in values, | |
ca81d7a0 JD |
1586 | ( |
1587 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1588 | eval ac_val=\$$ac_var | |
1589 | case $ac_val in #( | |
1590 | *${as_nl}*) | |
1591 | case $ac_var in #( | |
1592 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | |
1593 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
1594 | esac | |
1595 | case $ac_var in #( | |
1596 | _ | IFS | as_nl) ;; #( | |
1597 | *) $as_unset $ac_var ;; | |
1598 | esac ;; | |
1599 | esac | |
1600 | done | |
503d2be0 | 1601 | (set) 2>&1 | |
ca81d7a0 JD |
1602 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1603 | *${as_nl}ac_space=\ *) | |
503d2be0 | 1604 | sed -n \ |
ca81d7a0 JD |
1605 | "s/'\''/'\''\\\\'\'''\''/g; |
1606 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1607 | ;; #( | |
503d2be0 | 1608 | *) |
ca81d7a0 | 1609 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
503d2be0 | 1610 | ;; |
ca81d7a0 JD |
1611 | esac | |
1612 | sort | |
1613 | ) | |
c0d27fcc | 1614 | echo |
6bae0ccf DL |
1615 | |
1616 | cat <<\_ASBOX | |
1617 | ## ----------------- ## | |
1618 | ## Output variables. ## | |
1619 | ## ----------------- ## | |
1620 | _ASBOX | |
1621 | echo | |
1622 | for ac_var in $ac_subst_vars | |
1623 | do | |
ca81d7a0 JD |
1624 | eval ac_val=\$$ac_var |
1625 | case $ac_val in | |
1626 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1627 | esac | |
1628 | echo "$ac_var='\''$ac_val'\''" | |
6bae0ccf DL |
1629 | done | sort |
1630 | echo | |
1631 | ||
1632 | if test -n "$ac_subst_files"; then | |
1633 | cat <<\_ASBOX | |
ca81d7a0 JD |
1634 | ## ------------------- ## |
1635 | ## File substitutions. ## | |
1636 | ## ------------------- ## | |
6bae0ccf DL |
1637 | _ASBOX |
1638 | echo | |
1639 | for ac_var in $ac_subst_files | |
1640 | do | |
ca81d7a0 JD |
1641 | eval ac_val=\$$ac_var |
1642 | case $ac_val in | |
1643 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1644 | esac | |
1645 | echo "$ac_var='\''$ac_val'\''" | |
6bae0ccf DL |
1646 | done | sort |
1647 | echo | |
1648 | fi | |
1649 | ||
c0d27fcc MR |
1650 | if test -s confdefs.h; then |
1651 | cat <<\_ASBOX | |
1652 | ## ----------- ## | |
1653 | ## confdefs.h. ## | |
1654 | ## ----------- ## | |
1655 | _ASBOX | |
1656 | echo | |
ca81d7a0 | 1657 | cat confdefs.h |
c0d27fcc MR |
1658 | echo |
1659 | fi | |
1660 | test "$ac_signal" != 0 && | |
1661 | echo "$as_me: caught signal $ac_signal" | |
1662 | echo "$as_me: exit $exit_status" | |
1663 | } >&5 | |
ca81d7a0 JD |
1664 | rm -f core *.core core.conftest.* && |
1665 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
503d2be0 | 1666 | exit $exit_status |
ca81d7a0 | 1667 | ' 0 |
503d2be0 AS |
1668 | for ac_signal in 1 2 13 15; do |
1669 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1670 | done | |
1671 | ac_signal=0 | |
1672 | ||
1673 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
ca81d7a0 | 1674 | rm -f -r conftest* confdefs.h |
ba4481b5 | 1675 | |
c0d27fcc MR |
1676 | # Predefined preprocessor variables. |
1677 | ||
1678 | cat >>confdefs.h <<_ACEOF | |
1679 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1680 | _ACEOF | |
1681 | ||
1682 | ||
1683 | cat >>confdefs.h <<_ACEOF | |
1684 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1685 | _ACEOF | |
1686 | ||
1687 | ||
1688 | cat >>confdefs.h <<_ACEOF | |
1689 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1690 | _ACEOF | |
1691 | ||
1692 | ||
1693 | cat >>confdefs.h <<_ACEOF | |
1694 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1695 | _ACEOF | |
1696 | ||
1697 | ||
1698 | cat >>confdefs.h <<_ACEOF | |
1699 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1700 | _ACEOF | |
1701 | ||
1702 | ||
503d2be0 | 1703 | # Let the site file select an alternate cache file if it wants to. |
ba4481b5 | 1704 | # Prefer explicitly selected file to automatically selected ones. |
ca81d7a0 JD |
1705 | if test -n "$CONFIG_SITE"; then |
1706 | set x "$CONFIG_SITE" | |
1707 | elif test "x$prefix" != xNONE; then | |
1708 | set x "$prefix/share/config.site" "$prefix/etc/config.site" | |
1709 | else | |
1710 | set x "$ac_default_prefix/share/config.site" \ | |
1711 | "$ac_default_prefix/etc/config.site" | |
ba4481b5 | 1712 | fi |
ca81d7a0 JD |
1713 | shift |
1714 | for ac_site_file | |
1715 | do | |
ba4481b5 | 1716 | if test -r "$ac_site_file"; then |
c0d27fcc | 1717 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
503d2be0 | 1718 | echo "$as_me: loading site script $ac_site_file" >&6;} |
c0d27fcc | 1719 | sed 's/^/| /' "$ac_site_file" >&5 |
ba4481b5 DL |
1720 | . "$ac_site_file" |
1721 | fi | |
1722 | done | |
1723 | ||
1724 | if test -r "$cache_file"; then | |
503d2be0 AS |
1725 | # Some versions of bash will fail to source /dev/null (special |
1726 | # files actually), so we avoid doing that. | |
1727 | if test -f "$cache_file"; then | |
c0d27fcc | 1728 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
503d2be0 AS |
1729 | echo "$as_me: loading cache $cache_file" >&6;} |
1730 | case $cache_file in | |
ca81d7a0 JD |
1731 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1732 | *) . "./$cache_file";; | |
503d2be0 AS |
1733 | esac |
1734 | fi | |
ba4481b5 | 1735 | else |
c0d27fcc | 1736 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
503d2be0 AS |
1737 | echo "$as_me: creating cache $cache_file" >&6;} |
1738 | >$cache_file | |
1739 | fi | |
1740 | ||
f053c89f CY |
1741 | ac_header_list="$ac_header_list sys/time.h" |
1742 | ac_header_list="$ac_header_list unistd.h" | |
1743 | ac_func_list="$ac_func_list alarm" | |
503d2be0 AS |
1744 | # Check that the precious variables saved in the cache have kept the same |
1745 | # value. | |
1746 | ac_cache_corrupted=false | |
ca81d7a0 | 1747 | for ac_var in $ac_precious_vars; do |
503d2be0 AS |
1748 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1749 | eval ac_new_set=\$ac_env_${ac_var}_set | |
ca81d7a0 JD |
1750 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1751 | eval ac_new_val=\$ac_env_${ac_var}_value | |
503d2be0 AS |
1752 | case $ac_old_set,$ac_new_set in |
1753 | set,) | |
c0d27fcc | 1754 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
503d2be0 AS |
1755 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
1756 | ac_cache_corrupted=: ;; | |
1757 | ,set) | |
c0d27fcc | 1758 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
503d2be0 AS |
1759 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
1760 | ac_cache_corrupted=: ;; | |
1761 | ,);; | |
1762 | *) | |
1763 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
edfaf76d | 1764 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
503d2be0 | 1765 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
edfaf76d | 1766 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
503d2be0 | 1767 | echo "$as_me: former value: $ac_old_val" >&2;} |
edfaf76d | 1768 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
503d2be0 | 1769 | echo "$as_me: current value: $ac_new_val" >&2;} |
edfaf76d | 1770 | ac_cache_corrupted=: |
503d2be0 AS |
1771 | fi;; |
1772 | esac | |
c0d27fcc | 1773 | # Pass precious variables to config.status. |
503d2be0 AS |
1774 | if test "$ac_new_set" = set; then |
1775 | case $ac_new_val in | |
ca81d7a0 | 1776 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
c0d27fcc MR |
1777 | *) ac_arg=$ac_var=$ac_new_val ;; |
1778 | esac | |
1779 | case " $ac_configure_args " in | |
1780 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1781 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
503d2be0 AS |
1782 | esac |
1783 | fi | |
1784 | done | |
1785 | if $ac_cache_corrupted; then | |
c0d27fcc | 1786 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
503d2be0 | 1787 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
c0d27fcc | 1788 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
503d2be0 AS |
1789 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
1790 | { (exit 1); exit 1; }; } | |
ba4481b5 DL |
1791 | fi |
1792 | ||
c0d27fcc MR |
1793 | |
1794 | ||
1795 | ||
1796 | ||
1797 | ||
1798 | ||
1799 | ||
1800 | ||
1801 | ||
1802 | ||
1803 | ||
9cf8f393 JD |
1804 | |
1805 | ||
1806 | ||
1807 | ||
1808 | ||
1809 | ||
1810 | ||
1811 | ||
c0d27fcc MR |
1812 | |
1813 | ||
1814 | ||
1815 | ||
1816 | ||
ca81d7a0 JD |
1817 | ac_ext=c |
1818 | ac_cpp='$CPP $CPPFLAGS' | |
1819 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1820 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1821 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ba4481b5 | 1822 | |
6bae0ccf | 1823 | |
ca81d7a0 | 1824 | ac_config_headers="$ac_config_headers src/config.h:src/config.in" |
ba4481b5 | 1825 | |
c0d27fcc | 1826 | |
9fb1ba80 | 1827 | |
ba5da88a | 1828 | test "$program_prefix" != NONE && |
ca81d7a0 | 1829 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
ba5da88a PJ |
1830 | # Use a double $ so make ignores it. |
1831 | test "$program_suffix" != NONE && | |
ca81d7a0 | 1832 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
ba5da88a PJ |
1833 | # Double any \ or $. echo might interpret backslashes. |
1834 | # By default was `s,x,x', remove it if useless. | |
1835 | cat <<\_ACEOF >conftest.sed | |
1836 | s/[\\$]/&&/g;s/;s,x,x,$// | |
1837 | _ACEOF | |
1838 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
ca81d7a0 | 1839 | rm -f conftest.sed |
ba5da88a | 1840 | |
c0d27fcc | 1841 | |
ba4481b5 DL |
1842 | lispdir='${datadir}/emacs/${version}/lisp' |
1843 | locallisppath='${datadir}/emacs/${version}/site-lisp:'\ | |
e9291f09 EZ |
1844 | '${datadir}/emacs/site-lisp' |
1845 | lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim' | |
ba4481b5 DL |
1846 | etcdir='${datadir}/emacs/${version}/etc' |
1847 | archlibdir='${libexecdir}/emacs/${version}/${configuration}' | |
1848 | docdir='${datadir}/emacs/${version}/etc' | |
24b01ec4 | 1849 | gamedir='${localstatedir}/games/emacs' |
98418dba CW |
1850 | |
1851 | gameuser=games | |
1852 | ||
c0d27fcc | 1853 | |
49adb60f | 1854 | |
00b9c927 | 1855 | |
ca81d7a0 | 1856 | # Check whether --with-pop was given. |
ba4481b5 | 1857 | if test "${with_pop+set}" = set; then |
00b9c927 | 1858 | withval=$with_pop; |
3d9fec71 | 1859 | else |
00b9c927 MO |
1860 | with_pop=yes |
1861 | fi | |
1862 | ||
1863 | if test "$with_pop" = yes; then | |
1864 | cat >>confdefs.h <<\_ACEOF | |
3d9fec71 | 1865 | #define MAIL_USE_POP 1 |
c0d27fcc | 1866 | _ACEOF |
3d9fec71 | 1867 | |
ca81d7a0 | 1868 | fi |
ba4481b5 | 1869 | |
c0d27fcc | 1870 | |
c0d27fcc | 1871 | |
ca81d7a0 | 1872 | # Check whether --with-kerberos was given. |
a21616bd | 1873 | if test "${with_kerberos+set}" = set; then |
00b9c927 MO |
1874 | withval=$with_kerberos; |
1875 | else | |
1876 | with_kerberos=no | |
1877 | fi | |
1878 | ||
1879 | if test "$with_kerberos" = yes; then | |
54e6585f | 1880 | cat >>confdefs.h <<\_ACEOF |
a21616bd | 1881 | #define KERBEROS 1 |
c0d27fcc | 1882 | _ACEOF |
a21616bd | 1883 | |
ca81d7a0 | 1884 | fi |
c0d27fcc | 1885 | |
c0d27fcc | 1886 | |
49adb60f | 1887 | |
ca81d7a0 | 1888 | # Check whether --with-kerberos5 was given. |
a21616bd | 1889 | if test "${with_kerberos5+set}" = set; then |
00b9c927 MO |
1890 | withval=$with_kerberos5; |
1891 | else | |
1892 | with_kerberos5=no | |
1893 | fi | |
1894 | ||
1895 | if test "${with_kerberos5}" = yes; then | |
1896 | if test "${with_kerberos}" != yes; then | |
a21616bd | 1897 | with_kerberos=yes |
c0d27fcc | 1898 | cat >>confdefs.h <<\_ACEOF |
a21616bd | 1899 | #define KERBEROS 1 |
c0d27fcc | 1900 | _ACEOF |
a21616bd KR |
1901 | |
1902 | fi | |
b936fae4 | 1903 | |
c0d27fcc | 1904 | cat >>confdefs.h <<\_ACEOF |
a21616bd | 1905 | #define KERBEROS5 1 |
c0d27fcc | 1906 | _ACEOF |
a21616bd | 1907 | |
ca81d7a0 | 1908 | fi |
b936fae4 | 1909 | |
49adb60f | 1910 | |
ca81d7a0 JD |
1911 | # Check whether --with-hesiod was given. |
1912 | if test "${with_hesiod+set}" = set; then | |
00b9c927 MO |
1913 | withval=$with_hesiod; |
1914 | else | |
1915 | with_hesiod=no | |
1916 | fi | |
1917 | ||
1918 | if test "$with_hesiod" = yes; then | |
54e6585f | 1919 | |
c0d27fcc | 1920 | cat >>confdefs.h <<\_ACEOF |
ba4481b5 | 1921 | #define HESIOD 1 |
c0d27fcc | 1922 | _ACEOF |
ba4481b5 | 1923 | |
ca81d7a0 | 1924 | fi |
c0d27fcc | 1925 | |
c0d27fcc | 1926 | |
ca81d7a0 | 1927 | # Check whether --with-sound was given. |
2c9dccc9 | 1928 | if test "${with_sound+set}" = set; then |
ca81d7a0 | 1929 | withval=$with_sound; |
00b9c927 MO |
1930 | else |
1931 | with_sound=yes | |
ca81d7a0 | 1932 | fi |
2c9dccc9 | 1933 | |
2c9dccc9 | 1934 | |
c0d27fcc | 1935 | |
a51f4969 SM |
1936 | # Check whether --with-sync-input was given. |
1937 | if test "${with_sync_input+set}" = set; then | |
1938 | withval=$with_sync_input; | |
1939 | else | |
1940 | with_sync_input=yes | |
1941 | fi | |
1942 | ||
1943 | if test "$with_sync_input" = yes; then | |
1944 | ||
1945 | cat >>confdefs.h <<\_ACEOF | |
1946 | #define SYNC_INPUT 1 | |
1947 | _ACEOF | |
1948 | ||
1949 | fi | |
1950 | ||
1951 | ||
ca81d7a0 | 1952 | # Check whether --with-x-toolkit was given. |
ba4481b5 | 1953 | if test "${with_x_toolkit+set}" = set; then |
ca81d7a0 | 1954 | withval=$with_x_toolkit; case "${withval}" in |
089a966d | 1955 | y | ye | yes ) val=gtk ;; |
ba4481b5 DL |
1956 | n | no ) val=no ;; |
1957 | l | lu | luc | luci | lucid ) val=lucid ;; | |
1958 | a | at | ath | athe | athen | athena ) val=athena ;; | |
1959 | m | mo | mot | moti | motif ) val=motif ;; | |
488dd4c4 | 1960 | g | gt | gtk ) val=gtk ;; |
ba4481b5 | 1961 | * ) |
29d69661 | 1962 | { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid; |
488dd4c4 | 1963 | this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'. |
29d69661 JD |
1964 | \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5 |
1965 | echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid; | |
488dd4c4 | 1966 | this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'. |
29d69661 | 1967 | \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;} |
503d2be0 | 1968 | { (exit 1); exit 1; }; } |
ba4481b5 DL |
1969 | ;; |
1970 | esac | |
1971 | with_x_toolkit=$val | |
1972 | ||
ca81d7a0 | 1973 | fi |
8eeae1c9 | 1974 | |
ba4481b5 | 1975 | |
49adb60f | 1976 | |
ca81d7a0 | 1977 | # Check whether --with-xpm was given. |
ba4481b5 | 1978 | if test "${with_xpm+set}" = set; then |
ca81d7a0 | 1979 | withval=$with_xpm; |
00b9c927 | 1980 | else |
c8467c40 | 1981 | with_xpm=yes |
ca81d7a0 | 1982 | fi |
503d2be0 | 1983 | |
ba4481b5 | 1984 | |
ca81d7a0 | 1985 | # Check whether --with-jpeg was given. |
ba4481b5 | 1986 | if test "${with_jpeg+set}" = set; then |
ca81d7a0 | 1987 | withval=$with_jpeg; |
00b9c927 | 1988 | else |
c8467c40 | 1989 | with_jpeg=yes |
ca81d7a0 | 1990 | fi |
503d2be0 | 1991 | |
ba4481b5 | 1992 | |
ca81d7a0 | 1993 | # Check whether --with-tiff was given. |
ba4481b5 | 1994 | if test "${with_tiff+set}" = set; then |
ca81d7a0 | 1995 | withval=$with_tiff; |
00b9c927 | 1996 | else |
c8467c40 | 1997 | with_tiff=yes |
ca81d7a0 | 1998 | fi |
503d2be0 | 1999 | |
ba4481b5 | 2000 | |
ca81d7a0 | 2001 | # Check whether --with-gif was given. |
ba4481b5 | 2002 | if test "${with_gif+set}" = set; then |
ca81d7a0 | 2003 | withval=$with_gif; |
00b9c927 | 2004 | else |
c8467c40 | 2005 | with_gif=yes |
ca81d7a0 | 2006 | fi |
503d2be0 | 2007 | |
ba4481b5 | 2008 | |
ca81d7a0 | 2009 | # Check whether --with-png was given. |
ba4481b5 | 2010 | if test "${with_png+set}" = set; then |
ca81d7a0 | 2011 | withval=$with_png; |
00b9c927 | 2012 | else |
c8467c40 | 2013 | with_png=yes |
ca81d7a0 | 2014 | fi |
503d2be0 | 2015 | |
ba4481b5 | 2016 | |
0cfc0546 GM |
2017 | # Check whether --with-rsvg was given. |
2018 | if test "${with_rsvg+set}" = set; then | |
2019 | withval=$with_rsvg; | |
00b9c927 | 2020 | else |
c8467c40 | 2021 | with_rsvg=yes |
0cfc0546 GM |
2022 | fi |
2023 | ||
2024 | ||
c8467c40 | 2025 | |
c24fa7dc | 2026 | # Check whether --with-freetype was given. |
45a4b03e | 2027 | if test "${with_freetype+set}" = set; then |
c24fa7dc | 2028 | withval=$with_freetype; |
d235ca2f | 2029 | else |
4efcc8d1 | 2030 | with_freetype=yes |
c24fa7dc | 2031 | fi |
45a4b03e | 2032 | |
45a4b03e | 2033 | |
c24fa7dc | 2034 | # Check whether --with-xft was given. |
45a4b03e | 2035 | if test "${with_xft+set}" = set; then |
c24fa7dc | 2036 | withval=$with_xft; |
d235ca2f | 2037 | else |
4efcc8d1 | 2038 | with_xft=yes |
c24fa7dc | 2039 | fi |
45a4b03e | 2040 | |
45a4b03e | 2041 | |
d235ca2f MB |
2042 | # Check whether --with-libotf was given. |
2043 | if test "${with_libotf+set}" = set; then | |
2044 | withval=$with_libotf; | |
2045 | else | |
2046 | with_libotf=yes | |
79011b82 NR |
2047 | fi |
2048 | ||
2049 | ||
d235ca2f MB |
2050 | # Check whether --with-m17n-flt was given. |
2051 | if test "${with_m17n_flt+set}" = set; then | |
2052 | withval=$with_m17n_flt; | |
2053 | else | |
2054 | with_m17n_flt=yes | |
0cfc0546 GM |
2055 | fi |
2056 | ||
2057 | ||
d235ca2f | 2058 | |
ca81d7a0 | 2059 | # Check whether --with-toolkit-scroll-bars was given. |
ba4481b5 | 2060 | if test "${with_toolkit_scroll_bars+set}" = set; then |
ca81d7a0 | 2061 | withval=$with_toolkit_scroll_bars; |
00b9c927 MO |
2062 | else |
2063 | with_toolkit_scroll_bars=yes | |
ca81d7a0 | 2064 | fi |
503d2be0 | 2065 | |
ba4481b5 | 2066 | |
e35a28cd TTN |
2067 | # Check whether --with-xaw3d was given. |
2068 | if test "${with_xaw3d+set}" = set; then | |
2069 | withval=$with_xaw3d; | |
00b9c927 MO |
2070 | else |
2071 | with_xaw3d=yes | |
c982cf7d JD |
2072 | fi |
2073 | ||
2074 | ||
ca81d7a0 | 2075 | # Check whether --with-xim was given. |
1d36487c | 2076 | if test "${with_xim+set}" = set; then |
ca81d7a0 | 2077 | withval=$with_xim; |
00b9c927 MO |
2078 | else |
2079 | with_xim=yes | |
ca81d7a0 | 2080 | fi |
1d36487c | 2081 | |
ba4481b5 | 2082 | |
ca81d7a0 | 2083 | # Check whether --with-carbon was given. |
e0f712ba | 2084 | if test "${with_carbon+set}" = set; then |
ca81d7a0 | 2085 | withval=$with_carbon; |
00b9c927 | 2086 | else |
c8467c40 GM |
2087 | with_carbon=no |
2088 | fi | |
2089 | ||
2090 | ||
2091 | ||
2092 | # Check whether --with-gpm was given. | |
2093 | if test "${with_gpm+set}" = set; then | |
2094 | withval=$with_gpm; | |
2095 | else | |
2096 | with_gpm=yes | |
ca81d7a0 | 2097 | fi |
e0f712ba | 2098 | |
49adb60f | 2099 | |
131e4133 MA |
2100 | # Check whether --with-dbus was given. |
2101 | if test "${with_dbus+set}" = set; then | |
2102 | withval=$with_dbus; | |
00b9c927 | 2103 | else |
b5a922de | 2104 | with_dbus=yes |
131e4133 MA |
2105 | fi |
2106 | ||
2107 | ||
921fbdf0 GM |
2108 | ## For the times when you want to build Emacs but don't have |
2109 | ## a suitable makeinfo, and can live without the manuals. | |
2110 | ||
2111 | # Check whether --with-makeinfo was given. | |
2112 | if test "${with_makeinfo+set}" = set; then | |
2113 | withval=$with_makeinfo; | |
2114 | else | |
2115 | with_makeinfo=yes | |
2116 | fi | |
2117 | ||
2118 | ||
e70b2110 | 2119 | |
9d2818d6 DN |
2120 | # Check whether --with-gtk was given. |
2121 | if test "${with_gtk+set}" = set; then | |
2122 | withval=$with_gtk; { { echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to | |
2123 | specify a toolkit." >&5 | |
2124 | echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to | |
2125 | specify a toolkit." >&2;} | |
2126 | { (exit 1); exit 1; }; } | |
2127 | fi | |
2128 | ||
2129 | ||
2130 | ||
2131 | # Check whether --with-gcc was given. | |
2132 | if test "${with_gcc+set}" = set; then | |
2133 | withval=$with_gcc; { { echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment | |
2134 | variable to specify a compiler." >&5 | |
2135 | echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment | |
2136 | variable to specify a compiler." >&2;} | |
2137 | { (exit 1); exit 1; }; } | |
2138 | fi | |
2139 | ||
2140 | ||
2141 | ||
00b9c927 MO |
2142 | # Check whether --with-pkg-config-prog was given. |
2143 | if test "${with_pkg_config_prog+set}" = set; then | |
2144 | withval=$with_pkg_config_prog; | |
e70b2110 KH |
2145 | fi |
2146 | ||
00b9c927 MO |
2147 | if test "X${with_pkg_config_prog}" != X; then |
2148 | if test "${with_pkg_config_prog}" != yes; then | |
2149 | PKG_CONFIG="${with_pkg_config_prog}" | |
2150 | fi | |
2151 | fi | |
e70b2110 | 2152 | |
ca81d7a0 | 2153 | # Check whether --enable-carbon-app was given. |
6a3a24fa | 2154 | if test "${enable_carbon_app+set}" = set; then |
ca81d7a0 JD |
2155 | enableval=$enable_carbon_app; carbon_appdir_x=${enableval} |
2156 | fi | |
2157 | ||
e0f712ba | 2158 | |
8d01ddb4 | 2159 | ## Enabled by default. |
c24fa7dc | 2160 | # Check whether --enable-font-backend was given. |
45a4b03e | 2161 | if test "${enable_font_backend+set}" = set; then |
c24fa7dc | 2162 | enableval=$enable_font_backend; USE_FONT_BACKEND=$enableval |
45a4b03e | 2163 | else |
8d01ddb4 | 2164 | USE_FONT_BACKEND=yes |
c24fa7dc | 2165 | fi |
45a4b03e | 2166 | |
c24fa7dc MB |
2167 | |
2168 | # Check whether --enable-asserts was given. | |
d0098f13 | 2169 | if test "${enable_asserts+set}" = set; then |
ca81d7a0 | 2170 | enableval=$enable_asserts; USE_XASSERTS=$enableval |
d0098f13 JD |
2171 | else |
2172 | USE_XASSERTS=no | |
ca81d7a0 | 2173 | fi |
8eeae1c9 | 2174 | |
d0098f13 | 2175 | |
ca81d7a0 | 2176 | # Check whether --enable-maintainer-mode was given. |
19650fd6 | 2177 | if test "${enable_maintainer_mode+set}" = set; then |
ca81d7a0 | 2178 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
19650fd6 AS |
2179 | else |
2180 | USE_MAINTAINER_MODE=no | |
ca81d7a0 JD |
2181 | fi |
2182 | ||
19650fd6 AS |
2183 | if test $USE_MAINTAINER_MODE = yes; then |
2184 | MAINT= | |
2185 | else | |
2186 | MAINT=# | |
2187 | fi | |
2188 | ||
2189 | ||
ca81d7a0 | 2190 | # Check whether --enable-locallisppath was given. |
9adfabc2 | 2191 | if test "${enable_locallisppath+set}" = set; then |
ca81d7a0 | 2192 | enableval=$enable_locallisppath; if test "${enableval}" = "no"; then |
9adfabc2 LK |
2193 | locallisppath= |
2194 | elif test "${enableval}" != "yes"; then | |
2195 | locallisppath=${enableval} | |
2196 | fi | |
ca81d7a0 JD |
2197 | fi |
2198 | ||
9adfabc2 | 2199 | |
ba4481b5 | 2200 | #### Make srcdir absolute, if it isn't already. It's important to |
17494071 | 2201 | #### avoid running the path through pwd unnecessarily, since pwd can |
ba4481b5 DL |
2202 | #### give you automounter prefixes, which can go away. We do all this |
2203 | #### so Emacs can find its files when run uninstalled. | |
17494071 GM |
2204 | ## Make sure CDPATH doesn't affect cd (in case PWD is relative). |
2205 | unset CDPATH | |
ba4481b5 DL |
2206 | case "${srcdir}" in |
2207 | /* ) ;; | |
2208 | . ) | |
2209 | ## We may be able to use the $PWD environment variable to make this | |
2210 | ## absolute. But sometimes PWD is inaccurate. | |
df645f7c AS |
2211 | ## Note: we used to use ${PWD} at the end instead of `pwd`, |
2212 | ## but that tested only for a well-formed and valid PWD, | |
2213 | ## it did not object when PWD was well-formed and valid but just wrong. | |
2214 | if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ; | |
ba4481b5 DL |
2215 | then |
2216 | srcdir="$PWD" | |
2217 | else | |
2218 | srcdir="`(cd ${srcdir}; pwd)`" | |
2219 | fi | |
2220 | ;; | |
2221 | * ) srcdir="`(cd ${srcdir}; pwd)`" ;; | |
2222 | esac | |
2223 | ||
2224 | #### Check if the source directory already has a configured system in it. | |
2225 | if test `pwd` != `(cd ${srcdir} && pwd)` \ | |
2226 | && test -f "${srcdir}/src/config.h" ; then | |
c0d27fcc | 2227 | { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used |
503d2be0 AS |
2228 | as a build directory right now; it has been configured in its own |
2229 | right. To configure in another directory as well, you MUST | |
2230 | use GNU make. If you do not have GNU make, then you must | |
2231 | now do \`make distclean' in ${srcdir}, | |
2232 | and then run $0 again." >&5 | |
2233 | echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used | |
ba4481b5 DL |
2234 | as a build directory right now; it has been configured in its own |
2235 | right. To configure in another directory as well, you MUST | |
2236 | use GNU make. If you do not have GNU make, then you must | |
2237 | now do \`make distclean' in ${srcdir}, | |
503d2be0 | 2238 | and then run $0 again." >&2;} |
ba4481b5 DL |
2239 | fi |
2240 | ||
2241 | #### Given the configuration name, set machfile and opsysfile to the | |
2242 | #### names of the m/*.h and s/*.h files we should use. | |
2243 | ||
2244 | ### Canonicalize the configuration name. | |
2245 | ||
2246 | ac_aux_dir= | |
ca81d7a0 JD |
2247 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
2248 | if test -f "$ac_dir/install-sh"; then | |
ba4481b5 DL |
2249 | ac_aux_dir=$ac_dir |
2250 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2251 | break | |
ca81d7a0 | 2252 | elif test -f "$ac_dir/install.sh"; then |
ba4481b5 DL |
2253 | ac_aux_dir=$ac_dir |
2254 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2255 | break | |
ca81d7a0 | 2256 | elif test -f "$ac_dir/shtool"; then |
503d2be0 AS |
2257 | ac_aux_dir=$ac_dir |
2258 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2259 | break | |
ba4481b5 DL |
2260 | fi |
2261 | done | |
2262 | if test -z "$ac_aux_dir"; then | |
ca81d7a0 JD |
2263 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
2264 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} | |
503d2be0 | 2265 | { (exit 1); exit 1; }; } |
ba4481b5 | 2266 | fi |
ca81d7a0 JD |
2267 | |
2268 | # These three variables are undocumented and unsupported, | |
2269 | # and are intended to be withdrawn in a future Autoconf release. | |
2270 | # They can cause serious problems if a builder's source tree is in a directory | |
2271 | # whose full name contains unusual characters. | |
2272 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2273 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2274 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2275 | ||
ba4481b5 DL |
2276 | |
2277 | # Make sure we can run config.sub. | |
ca81d7a0 JD |
2278 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
2279 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 | |
2280 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | |
503d2be0 AS |
2281 | { (exit 1); exit 1; }; } |
2282 | ||
ca81d7a0 JD |
2283 | { echo "$as_me:$LINENO: checking build system type" >&5 |
2284 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } | |
503d2be0 AS |
2285 | if test "${ac_cv_build+set}" = set; then |
2286 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2287 | else | |
ca81d7a0 JD |
2288 | ac_build_alias=$build_alias |
2289 | test "x$ac_build_alias" = x && | |
2290 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2291 | test "x$ac_build_alias" = x && | |
c0d27fcc | 2292 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
503d2be0 AS |
2293 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
2294 | { (exit 1); exit 1; }; } | |
ca81d7a0 JD |
2295 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
2296 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 | |
2297 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | |
503d2be0 AS |
2298 | { (exit 1); exit 1; }; } |
2299 | ||
2300 | fi | |
ca81d7a0 JD |
2301 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
2302 | echo "${ECHO_T}$ac_cv_build" >&6; } | |
2303 | case $ac_cv_build in | |
2304 | *-*-*) ;; | |
2305 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 | |
2306 | echo "$as_me: error: invalid value of canonical build" >&2;} | |
2307 | { (exit 1); exit 1; }; };; | |
2308 | esac | |
503d2be0 | 2309 | build=$ac_cv_build |
ca81d7a0 JD |
2310 | ac_save_IFS=$IFS; IFS='-' |
2311 | set x $ac_cv_build | |
2312 | shift | |
2313 | build_cpu=$1 | |
2314 | build_vendor=$2 | |
2315 | shift; shift | |
2316 | # Remember, the first character of IFS is used to create $*, | |
2317 | # except with old shells: | |
2318 | build_os=$* | |
2319 | IFS=$ac_save_IFS | |
2320 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
2321 | ||
2322 | ||
2323 | { echo "$as_me:$LINENO: checking host system type" >&5 | |
2324 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } | |
503d2be0 AS |
2325 | if test "${ac_cv_host+set}" = set; then |
2326 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2327 | else | |
ca81d7a0 JD |
2328 | if test "x$host_alias" = x; then |
2329 | ac_cv_host=$ac_cv_build | |
2330 | else | |
2331 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2332 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 | |
2333 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | |
503d2be0 | 2334 | { (exit 1); exit 1; }; } |
ca81d7a0 | 2335 | fi |
503d2be0 AS |
2336 | |
2337 | fi | |
ca81d7a0 JD |
2338 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
2339 | echo "${ECHO_T}$ac_cv_host" >&6; } | |
2340 | case $ac_cv_host in | |
2341 | *-*-*) ;; | |
2342 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 | |
2343 | echo "$as_me: error: invalid value of canonical host" >&2;} | |
2344 | { (exit 1); exit 1; }; };; | |
2345 | esac | |
503d2be0 | 2346 | host=$ac_cv_host |
ca81d7a0 JD |
2347 | ac_save_IFS=$IFS; IFS='-' |
2348 | set x $ac_cv_host | |
2349 | shift | |
2350 | host_cpu=$1 | |
2351 | host_vendor=$2 | |
2352 | shift; shift | |
2353 | # Remember, the first character of IFS is used to create $*, | |
2354 | # except with old shells: | |
2355 | host_os=$* | |
2356 | IFS=$ac_save_IFS | |
2357 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
ba4481b5 | 2358 | |
c0d27fcc | 2359 | |
ba4481b5 | 2360 | canonical=$host |
1770dcdc | 2361 | configuration=${host_alias-${build_alias-$host}} |
ba4481b5 | 2362 | |
c0d27fcc | 2363 | |
22044edf | 2364 | |
ba4481b5 DL |
2365 | ### If you add support for a new configuration, add code to this |
2366 | ### switch statement to recognize your configuration name and select | |
2367 | ### the appropriate operating system and machine description files. | |
2368 | ||
2369 | ### You would hope that you could choose an m/*.h file pretty much | |
2370 | ### based on the machine portion of the configuration name, and an s- | |
2371 | ### file based on the operating system portion. However, it turns out | |
2372 | ### that each m/*.h file is pretty manufacturer-specific - for | |
55e6d9b2 AS |
2373 | ### example hp9000s300.h is a 68000 machine; |
2374 | ### mips.h, pmax.h are all MIPS | |
ba4481b5 DL |
2375 | ### machines. So we basically have to have a special case for each |
2376 | ### configuration name. | |
2377 | ### | |
2378 | ### As far as handling version numbers on operating systems is | |
2379 | ### concerned, make sure things will fail in a fixable way. If | |
2380 | ### /etc/MACHINES doesn't say anything about version numbers, be | |
2381 | ### prepared to handle anything reasonably. If version numbers | |
2382 | ### matter, be sure /etc/MACHINES says something about it. | |
2383 | ### | |
2384 | ### Eric Raymond says we should accept strings like "sysvr4" to mean | |
2385 | ### "System V Release 4"; he writes, "The old convention encouraged | |
2386 | ### confusion between `system' and `release' levels'." | |
2387 | ||
2388 | machine='' opsys='' unported=no | |
2389 | case "${canonical}" in | |
2390 | ||
1096bcc0 GM |
2391 | ## FreeBSD ports |
2392 | *-*-freebsd* ) | |
2393 | opsys=freebsd | |
2394 | case "${canonical}" in | |
2395 | alpha*-*-freebsd*) machine=alpha ;; | |
ece58427 | 2396 | arm*-*-freebsd*) machine=arm ;; |
ec8fcb10 YM |
2397 | ia64-*-freebsd*) machine=ia64 ;; |
2398 | sparc64-*-freebsd*) machine=sparc ;; | |
2399 | powerpc-*-freebsd*) machine=macppc ;; | |
1096bcc0 | 2400 | i[3456]86-*-freebsd*) machine=intel386 ;; |
01abe918 | 2401 | amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;; |
1096bcc0 GM |
2402 | esac |
2403 | ;; | |
2404 | ||
1b275743 GM |
2405 | ## FreeBSD kernel + glibc based userland |
2406 | *-*-kfreebsd*gnu* ) | |
2407 | opsys=gnu-kfreebsd | |
2408 | case "${canonical}" in | |
2409 | alpha*-*-kfreebsd*) machine=alpha ;; | |
2410 | ia64-*-kfreebsd*) machine=ia64 ;; | |
2411 | sparc64-*-kfreebsd*) machine=sparc ;; | |
2412 | powerpc-*-kfreebsd*) machine=macppc ;; | |
2413 | i[3456]86-*-kfreebsd*) machine=intel386 ;; | |
2414 | amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;; | |
2415 | esac | |
2416 | ;; | |
2417 | ||
ba4481b5 DL |
2418 | ## NetBSD ports |
2419 | *-*-netbsd* ) | |
2420 | opsys=netbsd | |
dd038e26 | 2421 | if test -f /usr/lib/crti.o; then |
f57bd967 DL |
2422 | |
2423 | cat >>confdefs.h <<\_ACEOF | |
2424 | #define HAVE_CRTIN | |
dd038e26 AS |
2425 | _ACEOF |
2426 | ||
2427 | fi | |
2428 | ||
ba4481b5 DL |
2429 | case "${canonical}" in |
2430 | alpha*-*-netbsd*) machine=alpha ;; | |
2431 | i[3456]86-*-netbsd*) machine=intel386 ;; | |
2432 | m68k-*-netbsd*) | |
2433 | # This is somewhat bogus. | |
2434 | machine=hp9000s300 ;; | |
ba4481b5 | 2435 | mips-*-netbsd*) machine=pmax ;; |
2df636f4 | 2436 | mipsel-*-netbsd*) machine=pmax ;; |
97836269 | 2437 | mipseb-*-netbsd*) machine=pmax ;; |
3a64eef5 | 2438 | powerpc-*-netbsd*) machine=macppc ;; |
71c9ec51 | 2439 | sparc*-*-netbsd*) machine=sparc ;; |
ba4481b5 | 2440 | vax-*-netbsd*) machine=vax ;; |
2df636f4 | 2441 | arm-*-netbsd*) machine=arm ;; |
d54ee7b4 EZ |
2442 | x86_64-*-netbsd*) machine=amdx86-64 ;; |
2443 | hppa-*-netbsd*) machine=hp800 ;; | |
ba4481b5 DL |
2444 | esac |
2445 | ;; | |
2446 | ||
2447 | ## OpenBSD ports | |
2448 | *-*-openbsd* ) | |
2449 | opsys=openbsd | |
2450 | case "${canonical}" in | |
2451 | alpha*-*-openbsd*) machine=alpha ;; | |
85410b02 CY |
2452 | arm-*-openbsd*) machine=arm ;; |
2453 | hppa-*-openbsd*) machine=hp9000s300 ;; | |
2454 | i386-*-openbsd*) machine=intel386 ;; | |
2455 | m68k-*-openbsd*) machine=hp9000s300 ;; | |
85410b02 | 2456 | powerpc-*-openbsd*) machine=macppc ;; |
85410b02 CY |
2457 | sparc*-*-openbsd*) machine=sparc ;; |
2458 | vax-*-openbsd*) machine=vax ;; | |
2459 | x86_64-*-openbsd*) machine=amdx86-64 ;; | |
ba4481b5 DL |
2460 | esac |
2461 | ;; | |
2462 | ||
10a3b1a1 EZ |
2463 | ## LynxOS ports |
2464 | *-*-lynxos* ) | |
2465 | opsys=lynxos | |
2466 | case "${canonical}" in | |
2467 | i[3456]86-*-lynxos*) machine=intel386 ;; | |
2468 | powerpc-*-lynxos*) machine=powerpc ;; | |
2469 | esac | |
2470 | ;; | |
2471 | ||
ba4481b5 DL |
2472 | ## BSDI ports |
2473 | *-*-bsdi* ) | |
2474 | opsys=bsdi | |
2475 | case "${canonical}" in | |
2476 | i[345]86-*-bsdi*) machine=intel386 ;; | |
2477 | sparc-*-bsdi*) machine=sparc ;; | |
3aeecf97 | 2478 | powerpc-*-bsdi*) machine=macppc ;; |
ba4481b5 DL |
2479 | esac |
2480 | case "${canonical}" in | |
2481 | *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;; | |
2482 | *-*-bsdi2.0* ) opsys=bsdos2 ;; | |
2483 | *-*-bsdi2* ) opsys=bsdos2-1 ;; | |
2484 | *-*-bsdi3* ) opsys=bsdos3 ;; | |
1d06fc82 | 2485 | *-*-bsdi[45]* ) opsys=bsdos4 ;; |
ba4481b5 DL |
2486 | esac |
2487 | ;; | |
2488 | ||
ba4481b5 DL |
2489 | alpha*-*-linux-gnu* ) |
2490 | machine=alpha opsys=gnu-linux | |
2491 | ;; | |
2492 | ||
c4bb2108 DL |
2493 | arm*-*-linux-gnu* ) |
2494 | machine=arm opsys=gnu-linux | |
2495 | ;; | |
2496 | ||
040c474e CY |
2497 | ## Apple Darwin / Mac OS X |
2498 | *-apple-darwin* ) | |
2499 | case "${canonical}" in | |
2500 | i[3456]86-* ) machine=intel386 ;; | |
2501 | powerpc-* ) machine=powermac ;; | |
2502 | * ) unported=yes ;; | |
2503 | esac | |
2504 | opsys=darwin | |
2505 | # Define CPP as follows to make autoconf work correctly. | |
2506 | CPP="${CC-cc} -E -no-cpp-precomp" | |
2507 | # Use fink packages if available. | |
2508 | if test -d /sw/include && test -d /sw/lib; then | |
2509 | GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib" | |
2510 | CPP="${CPP} ${GCC_TEST_OPTIONS}" | |
2511 | NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS} | |
2512 | fi | |
2513 | ;; | |
2514 | ||
ba4481b5 DL |
2515 | ## Cubix QBx/386 |
2516 | i[3456]86-cubix-sysv* ) | |
2517 | machine=intel386 opsys=usg5-3 | |
2518 | ;; | |
2519 | ||
ba4481b5 DL |
2520 | mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* ) |
2521 | machine=pmax opsys=bsd4-2 | |
2522 | ;; | |
2523 | mips-dec-ultrix4.[12]* | mips-dec-bsd* ) | |
2524 | machine=pmax opsys=bsd4-3 | |
2525 | ;; | |
2526 | mips-dec-ultrix* ) | |
2527 | machine=pmax opsys=ultrix4-3 | |
2528 | ;; | |
ba4481b5 DL |
2529 | ## HP 9000 series 200 or 300 |
2530 | m68*-hp-bsd* ) | |
2531 | machine=hp9000s300 opsys=bsd4-3 | |
2532 | ;; | |
2533 | ## HP/UX 7, 8, 9, and 10 are supported on these machines. | |
2534 | m68*-hp-hpux* ) | |
2535 | case "`uname -r`" in | |
2536 | ## Someone's system reports A.B8.05 for this. | |
2537 | ## I wonder what other possibilities there are. | |
2538 | *.B8.* ) machine=hp9000s300 opsys=hpux8 ;; | |
2539 | *.08.* ) machine=hp9000s300 opsys=hpux8 ;; | |
2540 | *.09.* ) machine=hp9000s300 opsys=hpux9 ;; | |
2541 | *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;; | |
2542 | *) machine=hp9000s300 opsys=hpux ;; | |
2543 | esac | |
2544 | ;; | |
2545 | ||
6fbb6db1 GM |
2546 | ## HP 9000 series 700 and 800, running HP/UX |
2547 | hppa*-hp-hpux7* ) | |
2548 | machine=hp800 opsys=hpux | |
2549 | ;; | |
2550 | hppa*-hp-hpux8* ) | |
2551 | machine=hp800 opsys=hpux8 | |
2552 | ;; | |
2553 | hppa*-hp-hpux9shr* ) | |
2554 | machine=hp800 opsys=hpux9shr | |
2555 | ;; | |
2556 | hppa*-hp-hpux9* ) | |
2557 | machine=hp800 opsys=hpux9 | |
2558 | ;; | |
2559 | hppa*-hp-hpux10.2* ) | |
2560 | machine=hp800 opsys=hpux10-20 | |
2561 | ;; | |
2562 | hppa*-hp-hpux10* ) | |
2563 | machine=hp800 opsys=hpux10 | |
2564 | ;; | |
2565 | hppa*-hp-hpux1[1-9]* ) | |
2566 | machine=hp800 opsys=hpux11 | |
2567 | CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS" | |
2568 | ;; | |
2569 | ||
409d9577 GM |
2570 | hppa*-*-linux-gnu* ) |
2571 | machine=hp800 opsys=gnu-linux | |
2572 | ;; | |
2573 | ||
6fbb6db1 GM |
2574 | ## HP 9000 series 700 and 800, running HP/UX |
2575 | hppa*-hp-hpux* ) | |
2576 | ## Cross-compilation? Nah! | |
2577 | case "`uname -r`" in | |
2578 | ## Someone's system reports A.B8.05 for this. | |
2579 | ## I wonder what other possibilities there are. | |
2580 | *.B8.* ) machine=hp800 opsys=hpux8 ;; | |
2581 | *.08.* ) machine=hp800 opsys=hpux8 ;; | |
2582 | *.09.* ) machine=hp800 opsys=hpux9 ;; | |
2583 | *) machine=hp800 opsys=hpux10 ;; | |
2584 | esac | |
2585 | ;; | |
ba4481b5 DL |
2586 | hppa*-*-nextstep* ) |
2587 | machine=hp800 opsys=nextstep | |
2588 | ;; | |
2589 | ||
ba4481b5 | 2590 | ## IBM machines |
ba4481b5 DL |
2591 | i370-ibm-aix*) |
2592 | machine=ibm370aix opsys=usg5-3 | |
2593 | ;; | |
55597d70 | 2594 | s390-*-linux-gnu* ) |
138f0859 GM |
2595 | machine=ibms390 opsys=gnu-linux |
2596 | ;; | |
bcdb1378 EZ |
2597 | s390x-*-linux-gnu* ) |
2598 | machine=ibms390x opsys=gnu-linux | |
2599 | ;; | |
ba4481b5 DL |
2600 | rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* ) |
2601 | machine=ibmrs6000 opsys=aix3-1 | |
2602 | ;; | |
2603 | rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 ) | |
2604 | machine=ibmrs6000 opsys=aix3-2-5 | |
2605 | ;; | |
2606 | rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* ) | |
2607 | machine=ibmrs6000 opsys=aix4-1 | |
2608 | ;; | |
2609 | rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* ) | |
2610 | machine=ibmrs6000 opsys=aix4-2 | |
2611 | ;; | |
67bf991b CY |
2612 | rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* ) |
2613 | machine=ibmrs6000 opsys=aix4-2 | |
2614 | ;; | |
55597d70 | 2615 | rs6000-ibm-aix5* | powerpc-ibm-aix5* ) |
d6b82250 EZ |
2616 | machine=ibmrs6000 opsys=aix4-2 |
2617 | ;; | |
26a42dac DN |
2618 | rs6000-ibm-aix5* | powerpc-ibm-aix6* ) |
2619 | machine=ibmrs6000 opsys=aix4-2 | |
2620 | ;; | |
ba4481b5 DL |
2621 | rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* ) |
2622 | machine=ibmrs6000 opsys=aix4 | |
2623 | ;; | |
2624 | rs6000-ibm-aix4* | powerpc-ibm-aix4* ) | |
2625 | machine=ibmrs6000 opsys=aix4-1 | |
2626 | ;; | |
2627 | rs6000-ibm-aix* | powerpc-ibm-aix* ) | |
2628 | machine=ibmrs6000 opsys=aix3-2 | |
2629 | ;; | |
ba4481b5 DL |
2630 | |
2631 | ## Prime EXL | |
2632 | i[3456]86-prime-sysv* ) | |
2633 | machine=i386 opsys=usg5-3 | |
2634 | ;; | |
2635 | ||
ba4481b5 DL |
2636 | ## ncr machine running svr4.3. |
2637 | i[3456]86-ncr-sysv4.3 ) | |
2638 | machine=ncr386 opsys=usg5-4-3 | |
2639 | ;; | |
2640 | ||
2641 | ## Unspecified sysv on an ncr machine defaults to svr4.2. | |
2642 | ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.) | |
2643 | i[3456]86-ncr-sysv* ) | |
2644 | machine=ncr386 opsys=usg5-4-2 | |
2645 | ;; | |
2646 | ||
c76e04a8 GM |
2647 | ## Macintosh PowerPC |
2648 | powerpc*-*-linux-gnu* ) | |
2649 | machine=macppc opsys=gnu-linux | |
2650 | ;; | |
2651 | ||
ba4481b5 DL |
2652 | ## Workstations sold by MIPS |
2653 | ## This is not necessarily all workstations using the MIPS processor - | |
2654 | ## Irises are produced by SGI, and DECstations by DEC. | |
2655 | ||
ba4481b5 DL |
2656 | mips-mips-bsd* ) |
2657 | machine=mips opsys=bsd4-3 | |
2658 | ;; | |
2659 | mips-mips-* ) | |
2660 | machine=mips opsys=usg5-2-2 | |
2661 | ;; | |
2662 | ||
2663 | ## NeXT | |
2664 | m68*-next-* | m68k-*-nextstep* ) | |
2665 | machine=m68k opsys=nextstep | |
2666 | ;; | |
2667 | ||
ba4481b5 DL |
2668 | ## NEC EWS4800 |
2669 | mips-nec-sysv4*) | |
2670 | machine=ews4800 opsys=ux4800 | |
2671 | ;; | |
2672 | ||
ba4481b5 DL |
2673 | ## Siemens Nixdorf |
2674 | mips-siemens-sysv* | mips-sni-sysv*) | |
2675 | machine=mips-siemens opsys=usg5-4 | |
2676 | NON_GNU_CC=/usr/ccs/bin/cc | |
2677 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
2678 | ;; | |
2679 | ||
2680 | ## Silicon Graphics machines | |
ba4481b5 | 2681 | ## Iris 4D |
ba4481b5 DL |
2682 | mips-sgi-irix6.5 ) |
2683 | machine=iris4d opsys=irix6-5 | |
946173ad DL |
2684 | # Without defining _LANGUAGE_C, things get masked out in the headers |
2685 | # so that, for instance, grepping for `free' in stdlib.h fails and | |
2686 | # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m). | |
2687 | NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C" | |
d42122a3 | 2688 | NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C" |
ba4481b5 | 2689 | ;; |
ba4481b5 | 2690 | |
ba4481b5 DL |
2691 | ## Suns |
2692 | sparc-*-linux-gnu* | sparc64-*-linux-gnu* ) | |
2693 | machine=sparc opsys=gnu-linux | |
2694 | ;; | |
2695 | ||
d054101f | 2696 | *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \ |
ba4481b5 DL |
2697 | | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \ |
2698 | | rs6000-*-solaris2*) | |
2699 | case "${canonical}" in | |
ba4481b5 | 2700 | i[3456]86-*-* ) machine=intel386 ;; |
af46e133 | 2701 | amd64-*-*|x86_64-*-*) machine=amdx86-64 ;; |
ba4481b5 DL |
2702 | powerpcle* ) machine=powerpcle ;; |
2703 | powerpc* | rs6000* ) machine=ibmrs6000 ;; | |
2704 | sparc* ) machine=sparc ;; | |
2705 | * ) unported=yes ;; | |
2706 | esac | |
2707 | case "${canonical}" in | |
ba4481b5 DL |
2708 | *-sunos5.3* | *-solaris2.3* ) |
2709 | opsys=sol2-3 | |
2710 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
2711 | ;; | |
2712 | *-sunos5.4* | *-solaris2.4* ) | |
2713 | opsys=sol2-4 | |
2714 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
2715 | RANLIB="ar -ts" | |
2716 | ;; | |
2717 | *-sunos5.5* | *-solaris2.5* ) | |
2718 | opsys=sol2-5 | |
2719 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
2720 | RANLIB="ar -ts" | |
2721 | ;; | |
8e967cf7 MR |
2722 | *-sunos5.6* | *-solaris2.6* ) |
2723 | opsys=sol2-6 | |
2724 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
2725 | RANLIB="ar -ts" | |
2726 | ;; | |
ba4481b5 | 2727 | *-sunos5* | *-solaris* ) |
9e71690e | 2728 | opsys=sol2-6 |
089a966d GM |
2729 | emacs_check_sunpro_c=yes |
2730 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
ba4481b5 DL |
2731 | ;; |
2732 | * ) opsys=bsd4-2 ;; | |
2733 | esac | |
2734 | ## Watch out for a compiler that we know will not work. | |
2735 | case "${canonical}" in | |
2736 | *-solaris* | *-sunos5* ) | |
2737 | if [ "x$CC" = x/usr/ucb/cc ]; then | |
2738 | ## /usr/ucb/cc doesn't work; | |
2739 | ## we should find some other compiler that does work. | |
2740 | unset CC | |
2741 | fi | |
2742 | ;; | |
2743 | *) ;; | |
2744 | esac | |
2745 | ;; | |
2746 | sparc-*-nextstep* ) | |
2747 | machine=sparc opsys=nextstep | |
2748 | ;; | |
2749 | ||
ba4481b5 DL |
2750 | ## Tandem Integrity S2 |
2751 | mips-tandem-sysv* ) | |
2752 | machine=tandem-s2 opsys=usg5-3 | |
2753 | ;; | |
2754 | ||
ba4481b5 DL |
2755 | ## Vaxen. |
2756 | vax-dec-* ) | |
2757 | machine=vax | |
2758 | case "${canonical}" in | |
2759 | *-bsd4.1* ) opsys=bsd4-1 ;; | |
2760 | *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;; | |
2761 | *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;; | |
2762 | *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;; | |
2763 | *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;; | |
2764 | *-vms* ) opsys=vms ;; | |
2765 | * ) unported=yes | |
2766 | esac | |
2767 | ;; | |
2768 | ||
f4988be7 GM |
2769 | ## IA-64 |
2770 | ia64*-*-linux* ) | |
2771 | machine=ia64 opsys=gnu-linux | |
2772 | ;; | |
2773 | ||
ba4481b5 DL |
2774 | ## Intel 386 machines where we don't care about the manufacturer |
2775 | i[3456]86-*-* ) | |
2776 | machine=intel386 | |
2777 | case "${canonical}" in | |
c60ee5e7 | 2778 | *-cygwin ) opsys=cygwin ;; |
eae54018 | 2779 | *-darwin* ) opsys=darwin |
23fd4483 ST |
2780 | CPP="${CC-cc} -E -no-cpp-precomp" |
2781 | ;; | |
ba4481b5 | 2782 | *-linux-gnu* ) opsys=gnu-linux ;; |
ba4481b5 | 2783 | *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;; |
55597d70 DL |
2784 | *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;; |
2785 | *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;; | |
ba4481b5 | 2786 | *-386bsd* ) opsys=386bsd ;; |
ba4481b5 DL |
2787 | *-nextstep* ) opsys=nextstep ;; |
2788 | ## Otherwise, we'll fall through to the generic opsys code at the bottom. | |
2789 | esac | |
2790 | ;; | |
2791 | ||
2792 | ## m68k Linux-based GNU system | |
2793 | m68k-*-linux-gnu* ) | |
2794 | machine=m68k opsys=gnu-linux | |
2795 | ;; | |
2796 | ||
2797 | ## Mips Linux-based GNU system | |
cd958eb3 | 2798 | mips-*-linux-gnu* | mipsel-*-linux-gnu* ) |
ba4481b5 DL |
2799 | machine=mips opsys=gnu-linux |
2800 | ;; | |
2801 | ||
2802 | ## UXP/DS | |
2803 | sparc-fujitsu-sysv4* ) | |
2804 | machine=sparc opsys=uxpds | |
2805 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
2806 | RANLIB="ar -ts" | |
2807 | ;; | |
2808 | ||
598a2813 AS |
2809 | ## AMD x86-64 Linux-based GNU system |
2810 | x86_64-*-linux-gnu* ) | |
24b01ec4 | 2811 | machine=amdx86-64 opsys=gnu-linux |
598a2813 AS |
2812 | ;; |
2813 | ||
94218e27 | 2814 | ## Tensilica Xtensa Linux-based GNU system |
8dd59f01 | 2815 | xtensa*-*-linux-gnu* ) |
94218e27 DN |
2816 | machine=xtensa opsys=gnu-linux |
2817 | ;; | |
2818 | ||
ba4481b5 DL |
2819 | * ) |
2820 | unported=yes | |
2821 | ;; | |
2822 | esac | |
2823 | ||
2824 | ### If the code above didn't choose an operating system, just choose | |
2825 | ### an operating system based on the configuration name. You really | |
2826 | ### only want to use this when you have no idea what the right | |
2827 | ### operating system is; if you know what operating systems a machine | |
2828 | ### runs, it's cleaner to make it explicit in the case statement | |
2829 | ### above. | |
2830 | if test x"${opsys}" = x; then | |
2831 | case "${canonical}" in | |
2832 | *-gnu* ) opsys=gnu ;; | |
2833 | *-bsd4.[01] ) opsys=bsd4-1 ;; | |
2834 | *-bsd4.2 ) opsys=bsd4-2 ;; | |
2835 | *-bsd4.3 ) opsys=bsd4-3 ;; | |
2836 | *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;; | |
2837 | *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;; | |
2838 | *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;; | |
2839 | *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;; | |
2840 | *-sysv4.2uw* ) opsys=unixware ;; | |
55597d70 DL |
2841 | *-sysv5uw* ) opsys=unixware ;; |
2842 | *-sysv5OpenUNIX* ) opsys=unixware ;; | |
ba4481b5 DL |
2843 | *-sysv4.1* | *-sysvr4.1* ) |
2844 | NON_GNU_CPP=/usr/lib/cpp | |
2845 | opsys=usg5-4 ;; | |
2846 | *-sysv4.[2-9]* | *-sysvr4.[2-9]* ) | |
2847 | if [ x$NON_GNU_CPP = x ]; then | |
2848 | if [ -f /usr/ccs/lib/cpp ]; then | |
2849 | NON_GNU_CPP=/usr/ccs/lib/cpp | |
2850 | else | |
2851 | NON_GNU_CPP=/lib/cpp | |
2852 | fi | |
2853 | fi | |
2854 | opsys=usg5-4-2 ;; | |
2855 | *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;; | |
2856 | * ) | |
2857 | unported=yes | |
2858 | ;; | |
2859 | esac | |
2860 | fi | |
2861 | ||
26a42dac DN |
2862 | ### Tests for sytems that we beleive are obsolete and should be desupported. |
2863 | ||
2864 | case "${machine}" in | |
2865 | pmax | hp9000s300 | ibm370aix | ncr386 | ews4800 | mips-siemens | powerpcle | tandem-s2 ) | |
2866 | echo "The system that you are configuring on: ${canonical} is considered to be obsolete" | |
2867 | echo "and it is planned to be desupported in the next version of Emacs" | |
2868 | echo "Please email emacs-devel@gnu.org as soon as possible if this system is still in use." | |
2869 | echo "The code is still functional, but you need to edit the 'configure' script and remove the" | |
2870 | echo "exit 33 line. After that you can run configure again and 'complete' the build." | |
2871 | exit 33 | |
2872 | ;; | |
2873 | esac | |
2874 | ||
2875 | case "${opsys}" in | |
a8cd2496 | 2876 | bsd386 | bsdos2-1 | bsdos2 | bsdos3 | bsdos4 | bsd4-1 | bsd4-2 | bsd4-3 | usg5-0 | usg5-2-2 | usg5-2 | usg5-3 | ultrix4-3 | 386bsd | hpux | hpux8 | hpux9 | hpux9shr | hpux10 | aix3-1 | aix3-2-5 | aix3-2 | aix4-1 | nextstep | ux4800 | uxpds | uxpv ) |
26a42dac DN |
2877 | echo "The system that you are configuring on: ${canonical} is considered to be obsolete" |
2878 | echo "and it is planned to be desupported in the next version of Emacs" | |
2879 | echo "Please email emacs-devel@gnu.org as soon as possible if this system is still in use." | |
2880 | echo "The code is still functional, but you need to edit the 'configure' script and remove the" | |
2881 | echo "'exit 44' line. After that you can run 'configure' again and complete the build." | |
2882 | exit 44 | |
2883 | ;; | |
2884 | esac | |
2885 | ||
c0d27fcc | 2886 | |
22044edf | 2887 | |
ba4481b5 | 2888 | if test $unported = yes; then |
c0d27fcc | 2889 | { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems. |
503d2be0 AS |
2890 | Check \`etc/MACHINES' for recognized configuration names." >&5 |
2891 | echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems. | |
2892 | Check \`etc/MACHINES' for recognized configuration names." >&2;} | |
2893 | { (exit 1); exit 1; }; } | |
ba4481b5 DL |
2894 | fi |
2895 | ||
2896 | machfile="m/${machine}.h" | |
2897 | opsysfile="s/${opsys}.h" | |
2898 | ||
c0d27fcc | 2899 | |
ba4481b5 DL |
2900 | #### Choose a compiler. |
2901 | test -n "$CC" && cc_specified=yes | |
2902 | ||
2903 | # Save the value of CFLAGS that the user specified. | |
2904 | SPECIFIED_CFLAGS="$CFLAGS" | |
2905 | ||
503d2be0 AS |
2906 | ac_ext=c |
2907 | ac_cpp='$CPP $CPPFLAGS' | |
2908 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2909 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2910 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2911 | if test -n "$ac_tool_prefix"; then | |
2912 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2913 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
ca81d7a0 JD |
2914 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2915 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
503d2be0 AS |
2916 | if test "${ac_cv_prog_CC+set}" = set; then |
2917 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 DL |
2918 | else |
2919 | if test -n "$CC"; then | |
2920 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2921 | else | |
c0d27fcc MR |
2922 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2923 | for as_dir in $PATH | |
2924 | do | |
2925 | IFS=$as_save_IFS | |
2926 | test -z "$as_dir" && as_dir=. | |
2927 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f053c89f | 2928 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
c0d27fcc MR |
2929 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
2930 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2931 | break 2 | |
2932 | fi | |
2933 | done | |
503d2be0 | 2934 | done |
ca81d7a0 | 2935 | IFS=$as_save_IFS |
503d2be0 | 2936 | |
ba4481b5 DL |
2937 | fi |
2938 | fi | |
503d2be0 | 2939 | CC=$ac_cv_prog_CC |
ba4481b5 | 2940 | if test -n "$CC"; then |
ca81d7a0 JD |
2941 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2942 | echo "${ECHO_T}$CC" >&6; } | |
503d2be0 | 2943 | else |
ca81d7a0 JD |
2944 | { echo "$as_me:$LINENO: result: no" >&5 |
2945 | echo "${ECHO_T}no" >&6; } | |
503d2be0 AS |
2946 | fi |
2947 | ||
ca81d7a0 | 2948 | |
503d2be0 AS |
2949 | fi |
2950 | if test -z "$ac_cv_prog_CC"; then | |
2951 | ac_ct_CC=$CC | |
2952 | # Extract the first word of "gcc", so it can be a program name with args. | |
2953 | set dummy gcc; ac_word=$2 | |
ca81d7a0 JD |
2954 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2955 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
503d2be0 AS |
2956 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2957 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2958 | else | |
2959 | if test -n "$ac_ct_CC"; then | |
2960 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2961 | else | |
c0d27fcc MR |
2962 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2963 | for as_dir in $PATH | |
2964 | do | |
2965 | IFS=$as_save_IFS | |
2966 | test -z "$as_dir" && as_dir=. | |
2967 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f053c89f | 2968 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
c0d27fcc MR |
2969 | ac_cv_prog_ac_ct_CC="gcc" |
2970 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2971 | break 2 | |
2972 | fi | |
2973 | done | |
503d2be0 | 2974 | done |
ca81d7a0 | 2975 | IFS=$as_save_IFS |
503d2be0 AS |
2976 | |
2977 | fi | |
2978 | fi | |
2979 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2980 | if test -n "$ac_ct_CC"; then | |
ca81d7a0 JD |
2981 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2982 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
ba4481b5 | 2983 | else |
ca81d7a0 JD |
2984 | { echo "$as_me:$LINENO: result: no" >&5 |
2985 | echo "${ECHO_T}no" >&6; } | |
503d2be0 AS |
2986 | fi |
2987 | ||
ca81d7a0 JD |
2988 | if test "x$ac_ct_CC" = x; then |
2989 | CC="" | |
2990 | else | |
2991 | case $cross_compiling:$ac_tool_warned in | |
2992 | yes:) | |
2993 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
2994 | whose name does not start with the host triplet. If you think this | |
2995 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
2996 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
2997 | whose name does not start with the host triplet. If you think this | |
2998 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2999 | ac_tool_warned=yes ;; | |
3000 | esac | |
3001 | CC=$ac_ct_CC | |
3002 | fi | |
503d2be0 AS |
3003 | else |
3004 | CC="$ac_cv_prog_CC" | |
ba4481b5 DL |
3005 | fi |
3006 | ||
3007 | if test -z "$CC"; then | |
ca81d7a0 JD |
3008 | if test -n "$ac_tool_prefix"; then |
3009 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
503d2be0 | 3010 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
ca81d7a0 JD |
3011 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3012 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
503d2be0 AS |
3013 | if test "${ac_cv_prog_CC+set}" = set; then |
3014 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 DL |
3015 | else |
3016 | if test -n "$CC"; then | |
3017 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3018 | else | |
c0d27fcc MR |
3019 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3020 | for as_dir in $PATH | |
3021 | do | |
3022 | IFS=$as_save_IFS | |
3023 | test -z "$as_dir" && as_dir=. | |
3024 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f053c89f | 3025 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
c0d27fcc MR |
3026 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
3027 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3028 | break 2 | |
3029 | fi | |
3030 | done | |
503d2be0 | 3031 | done |
ca81d7a0 | 3032 | IFS=$as_save_IFS |
503d2be0 AS |
3033 | |
3034 | fi | |
3035 | fi | |
3036 | CC=$ac_cv_prog_CC | |
3037 | if test -n "$CC"; then | |
ca81d7a0 JD |
3038 | { echo "$as_me:$LINENO: result: $CC" >&5 |
3039 | echo "${ECHO_T}$CC" >&6; } | |
503d2be0 | 3040 | else |
ca81d7a0 JD |
3041 | { echo "$as_me:$LINENO: result: no" >&5 |
3042 | echo "${ECHO_T}no" >&6; } | |
503d2be0 AS |
3043 | fi |
3044 | ||
503d2be0 | 3045 | |
ca81d7a0 | 3046 | fi |
503d2be0 AS |
3047 | fi |
3048 | if test -z "$CC"; then | |
3049 | # Extract the first word of "cc", so it can be a program name with args. | |
3050 | set dummy cc; ac_word=$2 | |
ca81d7a0 JD |
3051 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3052 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
503d2be0 AS |
3053 | if test "${ac_cv_prog_CC+set}" = set; then |
3054 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3055 | else | |
3056 | if test -n "$CC"; then | |
3057 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3058 | else | |
3059 | ac_prog_rejected=no | |
c0d27fcc MR |
3060 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3061 | for as_dir in $PATH | |
3062 | do | |
3063 | IFS=$as_save_IFS | |
3064 | test -z "$as_dir" && as_dir=. | |
3065 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f053c89f | 3066 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
c0d27fcc MR |
3067 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3068 | ac_prog_rejected=yes | |
3069 | continue | |
3070 | fi | |
3071 | ac_cv_prog_CC="cc" | |
3072 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3073 | break 2 | |
3074 | fi | |
3075 | done | |
503d2be0 | 3076 | done |
ca81d7a0 | 3077 | IFS=$as_save_IFS |
503d2be0 | 3078 | |
ba4481b5 DL |
3079 | if test $ac_prog_rejected = yes; then |
3080 | # We found a bogon in the path, so make sure we never use it. | |
3081 | set dummy $ac_cv_prog_CC | |
3082 | shift | |
503d2be0 | 3083 | if test $# != 0; then |
ba4481b5 DL |
3084 | # We chose a different compiler from the bogus one. |
3085 | # However, it has the same basename, so the bogon will be chosen | |
3086 | # first if we set CC to just the basename; use the full file name. | |
3087 | shift | |
6bae0ccf | 3088 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
ba4481b5 DL |
3089 | fi |
3090 | fi | |
3091 | fi | |
3092 | fi | |
503d2be0 | 3093 | CC=$ac_cv_prog_CC |
ba4481b5 | 3094 | if test -n "$CC"; then |
ca81d7a0 JD |
3095 | { echo "$as_me:$LINENO: result: $CC" >&5 |
3096 | echo "${ECHO_T}$CC" >&6; } | |
ba4481b5 | 3097 | else |
ca81d7a0 JD |
3098 | { echo "$as_me:$LINENO: result: no" >&5 |
3099 | echo "${ECHO_T}no" >&6; } | |
ba4481b5 DL |
3100 | fi |
3101 | ||
ca81d7a0 | 3102 | |
503d2be0 AS |
3103 | fi |
3104 | if test -z "$CC"; then | |
3105 | if test -n "$ac_tool_prefix"; then | |
ca81d7a0 | 3106 | for ac_prog in cl.exe |
503d2be0 AS |
3107 | do |
3108 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3109 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
ca81d7a0 JD |
3110 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3111 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
503d2be0 AS |
3112 | if test "${ac_cv_prog_CC+set}" = set; then |
3113 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c4bb2108 DL |
3114 | else |
3115 | if test -n "$CC"; then | |
3116 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3117 | else | |
c0d27fcc MR |
3118 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3119 | for as_dir in $PATH | |
3120 | do | |
3121 | IFS=$as_save_IFS | |
3122 | test -z "$as_dir" && as_dir=. | |
3123 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f053c89f | 3124 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
c0d27fcc MR |
3125 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
3126 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3127 | break 2 | |
3128 | fi | |
3129 | done | |
503d2be0 | 3130 | done |
ca81d7a0 | 3131 | IFS=$as_save_IFS |
503d2be0 | 3132 | |
c4bb2108 DL |
3133 | fi |
3134 | fi | |
503d2be0 | 3135 | CC=$ac_cv_prog_CC |
c4bb2108 | 3136 | if test -n "$CC"; then |
ca81d7a0 JD |
3137 | { echo "$as_me:$LINENO: result: $CC" >&5 |
3138 | echo "${ECHO_T}$CC" >&6; } | |
c4bb2108 | 3139 | else |
ca81d7a0 JD |
3140 | { echo "$as_me:$LINENO: result: no" >&5 |
3141 | echo "${ECHO_T}no" >&6; } | |
503d2be0 AS |
3142 | fi |
3143 | ||
ca81d7a0 | 3144 | |
503d2be0 AS |
3145 | test -n "$CC" && break |
3146 | done | |
3147 | fi | |
3148 | if test -z "$CC"; then | |
3149 | ac_ct_CC=$CC | |
ca81d7a0 | 3150 | for ac_prog in cl.exe |
503d2be0 AS |
3151 | do |
3152 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3153 | set dummy $ac_prog; ac_word=$2 | |
ca81d7a0 JD |
3154 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3155 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
503d2be0 AS |
3156 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
3157 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3158 | else | |
3159 | if test -n "$ac_ct_CC"; then | |
3160 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3161 | else | |
c0d27fcc MR |
3162 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3163 | for as_dir in $PATH | |
3164 | do | |
3165 | IFS=$as_save_IFS | |
3166 | test -z "$as_dir" && as_dir=. | |
3167 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f053c89f | 3168 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
c0d27fcc MR |
3169 | ac_cv_prog_ac_ct_CC="$ac_prog" |
3170 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3171 | break 2 | |
3172 | fi | |
3173 | done | |
503d2be0 | 3174 | done |
ca81d7a0 | 3175 | IFS=$as_save_IFS |
503d2be0 | 3176 | |
c4bb2108 | 3177 | fi |
503d2be0 AS |
3178 | fi |
3179 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3180 | if test -n "$ac_ct_CC"; then | |
ca81d7a0 JD |
3181 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
3182 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
503d2be0 | 3183 | else |
ca81d7a0 JD |
3184 | { echo "$as_me:$LINENO: result: no" >&5 |
3185 | echo "${ECHO_T}no" >&6; } | |
ba4481b5 DL |
3186 | fi |
3187 | ||
ca81d7a0 | 3188 | |
503d2be0 AS |
3189 | test -n "$ac_ct_CC" && break |
3190 | done | |
ba4481b5 | 3191 | |
ca81d7a0 JD |
3192 | if test "x$ac_ct_CC" = x; then |
3193 | CC="" | |
3194 | else | |
3195 | case $cross_compiling:$ac_tool_warned in | |
3196 | yes:) | |
3197 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
3198 | whose name does not start with the host triplet. If you think this | |
3199 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
3200 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
3201 | whose name does not start with the host triplet. If you think this | |
3202 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
3203 | ac_tool_warned=yes ;; | |
3204 | esac | |
3205 | CC=$ac_ct_CC | |
3206 | fi | |
503d2be0 AS |
3207 | fi |
3208 | ||
3209 | fi | |
ba4481b5 | 3210 | |
c0d27fcc | 3211 | |
19650fd6 AS |
3212 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
3213 | See \`config.log' for more details." >&5 | |
3214 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
3215 | See \`config.log' for more details." >&2;} | |
503d2be0 | 3216 | { (exit 1); exit 1; }; } |
c4bb2108 | 3217 | |
503d2be0 | 3218 | # Provide some information about the compiler. |
ca81d7a0 | 3219 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
503d2be0 | 3220 | ac_compiler=`set X $ac_compile; echo $2` |
ca81d7a0 JD |
3221 | { (ac_try="$ac_compiler --version >&5" |
3222 | case "(($ac_try" in | |
3223 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3224 | *) ac_try_echo=$ac_try;; | |
3225 | esac | |
3226 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3227 | (eval "$ac_compiler --version >&5") 2>&5 | |
503d2be0 | 3228 | ac_status=$? |
c0d27fcc | 3229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 3230 | (exit $ac_status); } |
ca81d7a0 JD |
3231 | { (ac_try="$ac_compiler -v >&5" |
3232 | case "(($ac_try" in | |
3233 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3234 | *) ac_try_echo=$ac_try;; | |
3235 | esac | |
3236 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3237 | (eval "$ac_compiler -v >&5") 2>&5 | |
503d2be0 | 3238 | ac_status=$? |
c0d27fcc | 3239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 3240 | (exit $ac_status); } |
ca81d7a0 JD |
3241 | { (ac_try="$ac_compiler -V >&5" |
3242 | case "(($ac_try" in | |
3243 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3244 | *) ac_try_echo=$ac_try;; | |
3245 | esac | |
3246 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3247 | (eval "$ac_compiler -V >&5") 2>&5 | |
503d2be0 | 3248 | ac_status=$? |
c0d27fcc | 3249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3250 | (exit $ac_status); } |
3251 | ||
3252 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
3253 | /* confdefs.h. */ |
3254 | _ACEOF | |
3255 | cat confdefs.h >>conftest.$ac_ext | |
3256 | cat >>conftest.$ac_ext <<_ACEOF | |
3257 | /* end confdefs.h. */ | |
c4bb2108 | 3258 | |
503d2be0 AS |
3259 | int |
3260 | main () | |
3261 | { | |
3262 | ||
3263 | ; | |
3264 | return 0; | |
3265 | } | |
3266 | _ACEOF | |
3267 | ac_clean_files_save=$ac_clean_files | |
19650fd6 | 3268 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
503d2be0 AS |
3269 | # Try to create an executable without -o first, disregard a.out. |
3270 | # It will help us diagnose broken compilers, and finding out an intuition | |
3271 | # of exeext. | |
ca81d7a0 JD |
3272 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
3273 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } | |
503d2be0 | 3274 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
ca81d7a0 JD |
3275 | # |
3276 | # List of possible output files, starting from the most likely. | |
3277 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) | |
3278 | # only as a last resort. b.out is created by i960 compilers. | |
3279 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' | |
3280 | # | |
3281 | # The IRIX 6 linker writes into existing files which may not be | |
3282 | # executable, retaining their permissions. Remove them first so a | |
3283 | # subsequent execution test works. | |
3284 | ac_rmfiles= | |
3285 | for ac_file in $ac_files | |
3286 | do | |
3287 | case $ac_file in | |
3288 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | |
3289 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3290 | esac | |
3291 | done | |
3292 | rm -f $ac_rmfiles | |
3293 | ||
3294 | if { (ac_try="$ac_link_default" | |
3295 | case "(($ac_try" in | |
3296 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3297 | *) ac_try_echo=$ac_try;; | |
3298 | esac | |
3299 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3300 | (eval "$ac_link_default") 2>&5 | |
503d2be0 | 3301 | ac_status=$? |
c0d27fcc | 3302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 3303 | (exit $ac_status); }; then |
ca81d7a0 JD |
3304 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
3305 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3306 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3307 | # so that the user can short-circuit this test for compilers unknown to | |
3308 | # Autoconf. | |
f053c89f | 3309 | for ac_file in $ac_files '' |
19650fd6 | 3310 | do |
6bae0ccf | 3311 | test -f "$ac_file" || continue |
503d2be0 | 3312 | case $ac_file in |
ca81d7a0 | 3313 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
edfaf76d | 3314 | ;; |
19650fd6 | 3315 | [ab].out ) |
edfaf76d LK |
3316 | # We found the default executable, but exeext='' is most |
3317 | # certainly right. | |
3318 | break;; | |
19650fd6 | 3319 | *.* ) |
ca81d7a0 JD |
3320 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
3321 | then :; else | |
3322 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3323 | fi | |
3324 | # We set ac_cv_exeext here because the later test for it is not | |
3325 | # safe: cross compilers may not add the suffix if given an `-o' | |
3326 | # argument, so we may need to know it at that point already. | |
3327 | # Even if this section looks crufty: it has the advantage of | |
3328 | # actually working. | |
edfaf76d | 3329 | break;; |
19650fd6 | 3330 | * ) |
edfaf76d | 3331 | break;; |
503d2be0 AS |
3332 | esac |
3333 | done | |
ca81d7a0 JD |
3334 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
3335 | ||
503d2be0 | 3336 | else |
f053c89f CY |
3337 | ac_file='' |
3338 | fi | |
3339 | ||
3340 | { echo "$as_me:$LINENO: result: $ac_file" >&5 | |
3341 | echo "${ECHO_T}$ac_file" >&6; } | |
3342 | if test -z "$ac_file"; then | |
503d2be0 | 3343 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
3344 | sed 's/^/| /' conftest.$ac_ext >&5 |
3345 | ||
6bae0ccf | 3346 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
19650fd6 | 3347 | See \`config.log' for more details." >&5 |
6bae0ccf | 3348 | echo "$as_me: error: C compiler cannot create executables |
19650fd6 | 3349 | See \`config.log' for more details." >&2;} |
503d2be0 AS |
3350 | { (exit 77); exit 77; }; } |
3351 | fi | |
3352 | ||
3353 | ac_exeext=$ac_cv_exeext | |
503d2be0 | 3354 | |
ca81d7a0 | 3355 | # Check that the compiler produces executables we can run. If not, either |
503d2be0 | 3356 | # the compiler is broken, or we cross compile. |
ca81d7a0 JD |
3357 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
3358 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } | |
503d2be0 AS |
3359 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
3360 | # If not cross compiling, check that we can run a simple program. | |
3361 | if test "$cross_compiling" != yes; then | |
3362 | if { ac_try='./$ac_file' | |
ca81d7a0 JD |
3363 | { (case "(($ac_try" in |
3364 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3365 | *) ac_try_echo=$ac_try;; | |
3366 | esac | |
3367 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3368 | (eval "$ac_try") 2>&5 | |
503d2be0 | 3369 | ac_status=$? |
c0d27fcc | 3370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3371 | (exit $ac_status); }; }; then |
3372 | cross_compiling=no | |
ba4481b5 | 3373 | else |
503d2be0 AS |
3374 | if test "$cross_compiling" = maybe; then |
3375 | cross_compiling=yes | |
3376 | else | |
c0d27fcc | 3377 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
19650fd6 AS |
3378 | If you meant to cross compile, use \`--host'. |
3379 | See \`config.log' for more details." >&5 | |
503d2be0 | 3380 | echo "$as_me: error: cannot run C compiled programs. |
19650fd6 AS |
3381 | If you meant to cross compile, use \`--host'. |
3382 | See \`config.log' for more details." >&2;} | |
503d2be0 AS |
3383 | { (exit 1); exit 1; }; } |
3384 | fi | |
ba4481b5 | 3385 | fi |
503d2be0 | 3386 | fi |
ca81d7a0 JD |
3387 | { echo "$as_me:$LINENO: result: yes" >&5 |
3388 | echo "${ECHO_T}yes" >&6; } | |
503d2be0 | 3389 | |
19650fd6 | 3390 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
503d2be0 | 3391 | ac_clean_files=$ac_clean_files_save |
ca81d7a0 | 3392 | # Check that the compiler produces executables we can run. If not, either |
503d2be0 | 3393 | # the compiler is broken, or we cross compile. |
ca81d7a0 JD |
3394 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
3395 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } | |
3396 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
3397 | echo "${ECHO_T}$cross_compiling" >&6; } | |
3398 | ||
3399 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
3400 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } | |
3401 | if { (ac_try="$ac_link" | |
3402 | case "(($ac_try" in | |
3403 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3404 | *) ac_try_echo=$ac_try;; | |
3405 | esac | |
3406 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3407 | (eval "$ac_link") 2>&5 | |
503d2be0 | 3408 | ac_status=$? |
c0d27fcc | 3409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
3410 | (exit $ac_status); }; then |
3411 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3412 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3413 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3414 | # `rm'. | |
6bae0ccf DL |
3415 | for ac_file in conftest.exe conftest conftest.*; do |
3416 | test -f "$ac_file" || continue | |
503d2be0 | 3417 | case $ac_file in |
ca81d7a0 | 3418 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
503d2be0 | 3419 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
edfaf76d | 3420 | break;; |
503d2be0 AS |
3421 | * ) break;; |
3422 | esac | |
3423 | done | |
ba4481b5 | 3424 | else |
19650fd6 AS |
3425 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
3426 | See \`config.log' for more details." >&5 | |
3427 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
3428 | See \`config.log' for more details." >&2;} | |
503d2be0 | 3429 | { (exit 1); exit 1; }; } |
ba4481b5 | 3430 | fi |
ba4481b5 | 3431 | |
503d2be0 | 3432 | rm -f conftest$ac_cv_exeext |
ca81d7a0 JD |
3433 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
3434 | echo "${ECHO_T}$ac_cv_exeext" >&6; } | |
ba4481b5 | 3435 | |
503d2be0 AS |
3436 | rm -f conftest.$ac_ext |
3437 | EXEEXT=$ac_cv_exeext | |
3438 | ac_exeext=$EXEEXT | |
ca81d7a0 JD |
3439 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
3440 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } | |
503d2be0 AS |
3441 | if test "${ac_cv_objext+set}" = set; then |
3442 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 3443 | else |
503d2be0 | 3444 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
3445 | /* confdefs.h. */ |
3446 | _ACEOF | |
3447 | cat confdefs.h >>conftest.$ac_ext | |
3448 | cat >>conftest.$ac_ext <<_ACEOF | |
3449 | /* end confdefs.h. */ | |
ba4481b5 | 3450 | |
503d2be0 AS |
3451 | int |
3452 | main () | |
3453 | { | |
ba4481b5 | 3454 | |
503d2be0 AS |
3455 | ; |
3456 | return 0; | |
3457 | } | |
3458 | _ACEOF | |
3459 | rm -f conftest.o conftest.obj | |
ca81d7a0 JD |
3460 | if { (ac_try="$ac_compile" |
3461 | case "(($ac_try" in | |
3462 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3463 | *) ac_try_echo=$ac_try;; | |
3464 | esac | |
3465 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3466 | (eval "$ac_compile") 2>&5 | |
503d2be0 | 3467 | ac_status=$? |
c0d27fcc | 3468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 3469 | (exit $ac_status); }; then |
ca81d7a0 JD |
3470 | for ac_file in conftest.o conftest.obj conftest.*; do |
3471 | test -f "$ac_file" || continue; | |
503d2be0 | 3472 | case $ac_file in |
ca81d7a0 | 3473 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
503d2be0 AS |
3474 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3475 | break;; | |
3476 | esac | |
3477 | done | |
c4bb2108 | 3478 | else |
503d2be0 | 3479 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
3480 | sed 's/^/| /' conftest.$ac_ext >&5 |
3481 | ||
3482 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
3483 | See \`config.log' for more details." >&5 | |
3484 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
3485 | See \`config.log' for more details." >&2;} | |
503d2be0 | 3486 | { (exit 1); exit 1; }; } |
c4bb2108 DL |
3487 | fi |
3488 | ||
503d2be0 AS |
3489 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3490 | fi | |
ca81d7a0 JD |
3491 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
3492 | echo "${ECHO_T}$ac_cv_objext" >&6; } | |
503d2be0 AS |
3493 | OBJEXT=$ac_cv_objext |
3494 | ac_objext=$OBJEXT | |
ca81d7a0 JD |
3495 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
3496 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } | |
503d2be0 AS |
3497 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
3498 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 3499 | else |
503d2be0 | 3500 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
3501 | /* confdefs.h. */ |
3502 | _ACEOF | |
3503 | cat confdefs.h >>conftest.$ac_ext | |
3504 | cat >>conftest.$ac_ext <<_ACEOF | |
3505 | /* end confdefs.h. */ | |
503d2be0 AS |
3506 | |
3507 | int | |
3508 | main () | |
3509 | { | |
3510 | #ifndef __GNUC__ | |
3511 | choke me | |
3512 | #endif | |
3513 | ||
3514 | ; | |
3515 | return 0; | |
3516 | } | |
3517 | _ACEOF | |
3518 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
3519 | if { (ac_try="$ac_compile" |
3520 | case "(($ac_try" in | |
3521 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3522 | *) ac_try_echo=$ac_try;; | |
3523 | esac | |
3524 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3525 | (eval "$ac_compile") 2>conftest.er1 | |
503d2be0 | 3526 | ac_status=$? |
edfaf76d LK |
3527 | grep -v '^ *+' conftest.er1 >conftest.err |
3528 | rm -f conftest.er1 | |
3529 | cat conftest.err >&5 | |
c0d27fcc | 3530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
3531 | (exit $ac_status); } && { |
3532 | test -z "$ac_c_werror_flag" || | |
3533 | test ! -s conftest.err | |
3534 | } && test -s conftest.$ac_objext; then | |
503d2be0 AS |
3535 | ac_compiler_gnu=yes |
3536 | else | |
3537 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
3538 | sed 's/^/| /' conftest.$ac_ext >&5 |
3539 | ||
ca81d7a0 | 3540 | ac_compiler_gnu=no |
503d2be0 | 3541 | fi |
ca81d7a0 JD |
3542 | |
3543 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
503d2be0 AS |
3544 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3545 | ||
3546 | fi | |
ca81d7a0 JD |
3547 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
3548 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } | |
503d2be0 AS |
3549 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
3550 | ac_test_CFLAGS=${CFLAGS+set} | |
3551 | ac_save_CFLAGS=$CFLAGS | |
ca81d7a0 JD |
3552 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
3553 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } | |
503d2be0 AS |
3554 | if test "${ac_cv_prog_cc_g+set}" = set; then |
3555 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3556 | else | |
ca81d7a0 JD |
3557 | ac_save_c_werror_flag=$ac_c_werror_flag |
3558 | ac_c_werror_flag=yes | |
3559 | ac_cv_prog_cc_g=no | |
3560 | CFLAGS="-g" | |
3561 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
3562 | /* confdefs.h. */ |
3563 | _ACEOF | |
3564 | cat confdefs.h >>conftest.$ac_ext | |
3565 | cat >>conftest.$ac_ext <<_ACEOF | |
3566 | /* end confdefs.h. */ | |
503d2be0 AS |
3567 | |
3568 | int | |
3569 | main () | |
3570 | { | |
3571 | ||
3572 | ; | |
3573 | return 0; | |
3574 | } | |
3575 | _ACEOF | |
3576 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
3577 | if { (ac_try="$ac_compile" |
3578 | case "(($ac_try" in | |
3579 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3580 | *) ac_try_echo=$ac_try;; | |
3581 | esac | |
3582 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3583 | (eval "$ac_compile") 2>conftest.er1 | |
503d2be0 | 3584 | ac_status=$? |
edfaf76d LK |
3585 | grep -v '^ *+' conftest.er1 >conftest.err |
3586 | rm -f conftest.er1 | |
3587 | cat conftest.err >&5 | |
c0d27fcc | 3588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
3589 | (exit $ac_status); } && { |
3590 | test -z "$ac_c_werror_flag" || | |
3591 | test ! -s conftest.err | |
3592 | } && test -s conftest.$ac_objext; then | |
ba4481b5 DL |
3593 | ac_cv_prog_cc_g=yes |
3594 | else | |
503d2be0 | 3595 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
3596 | sed 's/^/| /' conftest.$ac_ext >&5 |
3597 | ||
ca81d7a0 JD |
3598 | CFLAGS="" |
3599 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
3600 | /* confdefs.h. */ |
3601 | _ACEOF | |
3602 | cat confdefs.h >>conftest.$ac_ext | |
3603 | cat >>conftest.$ac_ext <<_ACEOF | |
3604 | /* end confdefs.h. */ | |
edfaf76d | 3605 | |
6bae0ccf DL |
3606 | int |
3607 | main () | |
3608 | { | |
ca81d7a0 | 3609 | |
6bae0ccf DL |
3610 | ; |
3611 | return 0; | |
3612 | } | |
3613 | _ACEOF | |
ca81d7a0 JD |
3614 | rm -f conftest.$ac_objext |
3615 | if { (ac_try="$ac_compile" | |
3616 | case "(($ac_try" in | |
3617 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3618 | *) ac_try_echo=$ac_try;; | |
3619 | esac | |
3620 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3621 | (eval "$ac_compile") 2>conftest.er1 | |
edfaf76d | 3622 | ac_status=$? |
edfaf76d LK |
3623 | grep -v '^ *+' conftest.er1 >conftest.err |
3624 | rm -f conftest.er1 | |
3625 | cat conftest.err >&5 | |
edfaf76d | 3626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
3627 | (exit $ac_status); } && { |
3628 | test -z "$ac_c_werror_flag" || | |
3629 | test ! -s conftest.err | |
3630 | } && test -s conftest.$ac_objext; then | |
ca81d7a0 | 3631 | : |
6bae0ccf DL |
3632 | else |
3633 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
3634 | sed 's/^/| /' conftest.$ac_ext >&5 |
3635 | ||
ca81d7a0 JD |
3636 | ac_c_werror_flag=$ac_save_c_werror_flag |
3637 | CFLAGS="-g" | |
3638 | cat >conftest.$ac_ext <<_ACEOF | |
4b411bfe | 3639 | /* confdefs.h. */ |
19650fd6 AS |
3640 | _ACEOF |
3641 | cat confdefs.h >>conftest.$ac_ext | |
3642 | cat >>conftest.$ac_ext <<_ACEOF | |
3643 | /* end confdefs.h. */ | |
ca81d7a0 | 3644 | |
503d2be0 AS |
3645 | int |
3646 | main () | |
3647 | { | |
ca81d7a0 | 3648 | |
503d2be0 AS |
3649 | ; |
3650 | return 0; | |
3651 | } | |
3652 | _ACEOF | |
3653 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
3654 | if { (ac_try="$ac_compile" |
3655 | case "(($ac_try" in | |
3656 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3657 | *) ac_try_echo=$ac_try;; | |
3658 | esac | |
3659 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3660 | (eval "$ac_compile") 2>conftest.er1 | |
503d2be0 | 3661 | ac_status=$? |
edfaf76d LK |
3662 | grep -v '^ *+' conftest.er1 >conftest.err |
3663 | rm -f conftest.er1 | |
3664 | cat conftest.err >&5 | |
c0d27fcc | 3665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
3666 | (exit $ac_status); } && { |
3667 | test -z "$ac_c_werror_flag" || | |
3668 | test ! -s conftest.err | |
3669 | } && test -s conftest.$ac_objext; then | |
ba4481b5 DL |
3670 | ac_cv_prog_cc_g=yes |
3671 | else | |
503d2be0 | 3672 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
3673 | sed 's/^/| /' conftest.$ac_ext >&5 |
3674 | ||
ca81d7a0 | 3675 | |
ba4481b5 | 3676 | fi |
ca81d7a0 JD |
3677 | |
3678 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3679 | fi | |
3680 | ||
3681 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3682 | fi | |
3683 | ||
3684 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3685 | ac_c_werror_flag=$ac_save_c_werror_flag | |
ba4481b5 | 3686 | fi |
ca81d7a0 JD |
3687 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
3688 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } | |
c4bb2108 | 3689 | if test "$ac_test_CFLAGS" = set; then |
503d2be0 | 3690 | CFLAGS=$ac_save_CFLAGS |
c4bb2108 DL |
3691 | elif test $ac_cv_prog_cc_g = yes; then |
3692 | if test "$GCC" = yes; then | |
ba4481b5 DL |
3693 | CFLAGS="-g -O2" |
3694 | else | |
c4bb2108 | 3695 | CFLAGS="-g" |
ba4481b5 | 3696 | fi |
22afa6e8 | 3697 | else |
c4bb2108 DL |
3698 | if test "$GCC" = yes; then |
3699 | CFLAGS="-O2" | |
3700 | else | |
3701 | CFLAGS= | |
3702 | fi | |
ba4481b5 | 3703 | fi |
ca81d7a0 JD |
3704 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
3705 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } | |
3706 | if test "${ac_cv_prog_cc_c89+set}" = set; then | |
6bae0ccf DL |
3707 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3708 | else | |
ca81d7a0 | 3709 | ac_cv_prog_cc_c89=no |
6bae0ccf DL |
3710 | ac_save_CC=$CC |
3711 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
3712 | /* confdefs.h. */ |
3713 | _ACEOF | |
3714 | cat confdefs.h >>conftest.$ac_ext | |
3715 | cat >>conftest.$ac_ext <<_ACEOF | |
3716 | /* end confdefs.h. */ | |
6bae0ccf DL |
3717 | #include <stdarg.h> |
3718 | #include <stdio.h> | |
3719 | #include <sys/types.h> | |
3720 | #include <sys/stat.h> | |
3721 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3722 | struct buf { int x; }; | |
3723 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3724 | static char *e (p, i) | |
3725 | char **p; | |
3726 | int i; | |
3727 | { | |
3728 | return p[i]; | |
3729 | } | |
3730 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3731 | { | |
3732 | char *s; | |
3733 | va_list v; | |
3734 | va_start (v,p); | |
3735 | s = g (p, va_arg (v,int)); | |
3736 | va_end (v); | |
3737 | return s; | |
3738 | } | |
edfaf76d LK |
3739 | |
3740 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3741 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3742 | These don't provoke an error unfortunately, instead are silently treated | |
ca81d7a0 | 3743 | as 'x'. The following induces an error, until -std is added to get |
edfaf76d LK |
3744 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3745 | array size at least. It's necessary to write '\x00'==0 to get something | |
ca81d7a0 | 3746 | that's true only with -std. */ |
edfaf76d LK |
3747 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3748 | ||
ca81d7a0 JD |
3749 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3750 | inside strings and character constants. */ | |
3751 | #define FOO(x) 'x' | |
3752 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3753 | ||
6bae0ccf DL |
3754 | int test (int i, double x); |
3755 | struct s1 {int (*f) (int a);}; | |
3756 | struct s2 {int (*f) (double a);}; | |
3757 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3758 | int argc; | |
3759 | char **argv; | |
3760 | int | |
3761 | main () | |
3762 | { | |
3763 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3764 | ; | |
3765 | return 0; | |
3766 | } | |
3767 | _ACEOF | |
ca81d7a0 JD |
3768 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3769 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
6bae0ccf DL |
3770 | do |
3771 | CC="$ac_save_CC $ac_arg" | |
3772 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
3773 | if { (ac_try="$ac_compile" |
3774 | case "(($ac_try" in | |
3775 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3776 | *) ac_try_echo=$ac_try;; | |
3777 | esac | |
3778 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3779 | (eval "$ac_compile") 2>conftest.er1 | |
6bae0ccf | 3780 | ac_status=$? |
edfaf76d LK |
3781 | grep -v '^ *+' conftest.er1 >conftest.err |
3782 | rm -f conftest.er1 | |
3783 | cat conftest.err >&5 | |
6bae0ccf | 3784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
3785 | (exit $ac_status); } && { |
3786 | test -z "$ac_c_werror_flag" || | |
3787 | test ! -s conftest.err | |
3788 | } && test -s conftest.$ac_objext; then | |
ca81d7a0 | 3789 | ac_cv_prog_cc_c89=$ac_arg |
6bae0ccf DL |
3790 | else |
3791 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
3792 | sed 's/^/| /' conftest.$ac_ext >&5 |
3793 | ||
ca81d7a0 | 3794 | |
6bae0ccf | 3795 | fi |
ca81d7a0 JD |
3796 | |
3797 | rm -f core conftest.err conftest.$ac_objext | |
3798 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
6bae0ccf | 3799 | done |
ca81d7a0 | 3800 | rm -f conftest.$ac_ext |
6bae0ccf DL |
3801 | CC=$ac_save_CC |
3802 | ||
3803 | fi | |
ca81d7a0 JD |
3804 | # AC_CACHE_VAL |
3805 | case "x$ac_cv_prog_cc_c89" in | |
3806 | x) | |
3807 | { echo "$as_me:$LINENO: result: none needed" >&5 | |
3808 | echo "${ECHO_T}none needed" >&6; } ;; | |
3809 | xno) | |
3810 | { echo "$as_me:$LINENO: result: unsupported" >&5 | |
3811 | echo "${ECHO_T}unsupported" >&6; } ;; | |
6bae0ccf | 3812 | *) |
ca81d7a0 JD |
3813 | CC="$CC $ac_cv_prog_cc_c89" |
3814 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 | |
3815 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; | |
6bae0ccf DL |
3816 | esac |
3817 | ||
19650fd6 | 3818 | |
503d2be0 AS |
3819 | ac_ext=c |
3820 | ac_cpp='$CPP $CPPFLAGS' | |
3821 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3822 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3823 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ba4481b5 | 3824 | |
c0d27fcc | 3825 | |
ba4481b5 DL |
3826 | # On Suns, sometimes $CPP names a directory. |
3827 | if test -n "$CPP" && test -d "$CPP"; then | |
3828 | CPP= | |
3829 | fi | |
3830 | ||
089a966d GM |
3831 | ## If not using gcc, and on Solaris, and no CPP specified, see if |
3832 | ## using a Sun compiler, which needs -Xs to prevent whitespace. | |
3833 | if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \ | |
3834 | test x"$CPP" = x; then | |
3835 | { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5 | |
3836 | echo $ECHO_N "checking whether we are using a Sun C compiler... $ECHO_C" >&6; } | |
3837 | ||
3838 | if test "${emacs_cv_sunpro_c+set}" = set; then | |
3839 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3840 | else | |
3841 | cat >conftest.$ac_ext <<_ACEOF | |
3842 | /* confdefs.h. */ | |
3843 | _ACEOF | |
3844 | cat confdefs.h >>conftest.$ac_ext | |
3845 | cat >>conftest.$ac_ext <<_ACEOF | |
3846 | /* end confdefs.h. */ | |
3847 | ||
3848 | int | |
3849 | main () | |
3850 | { | |
3851 | #ifndef __SUNPRO_C | |
3852 | fail; | |
3853 | #endif | |
3854 | ||
3855 | ; | |
3856 | return 0; | |
3857 | } | |
3858 | _ACEOF | |
3859 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3860 | if { (ac_try="$ac_link" | |
3861 | case "(($ac_try" in | |
3862 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3863 | *) ac_try_echo=$ac_try;; | |
3864 | esac | |
3865 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3866 | (eval "$ac_link") 2>conftest.er1 | |
3867 | ac_status=$? | |
3868 | grep -v '^ *+' conftest.er1 >conftest.err | |
3869 | rm -f conftest.er1 | |
3870 | cat conftest.err >&5 | |
3871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3872 | (exit $ac_status); } && { | |
3873 | test -z "$ac_c_werror_flag" || | |
3874 | test ! -s conftest.err | |
3875 | } && test -s conftest$ac_exeext && | |
3876 | $as_test_x conftest$ac_exeext; then | |
3877 | emacs_cv_sunpro_c=yes | |
3878 | else | |
3879 | echo "$as_me: failed program was:" >&5 | |
3880 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3881 | ||
3882 | emacs_cv_sunpro_c=no | |
3883 | fi | |
3884 | ||
3885 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
3886 | conftest$ac_exeext conftest.$ac_ext | |
3887 | fi | |
3888 | ||
3889 | { echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5 | |
3890 | echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; } | |
3891 | ||
3892 | if test x"$emacs_cv_sunpro_c" = xyes; then | |
3893 | NON_GNU_CPP="$CC -E -Xs" | |
3894 | fi | |
3895 | fi | |
3896 | ||
ba4481b5 DL |
3897 | #### Some systems specify a CPP to use unless we are using GCC. |
3898 | #### Now that we know whether we are using GCC, we can decide whether | |
3899 | #### to use that one. | |
3900 | if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x | |
3901 | then | |
3902 | CPP="$NON_GNU_CPP" | |
3903 | fi | |
3904 | ||
3905 | #### Some systems specify a CC to use unless we are using GCC. | |
3906 | #### Now that we know whether we are using GCC, we can decide whether | |
3907 | #### to use that one. | |
3908 | if test "x$NON_GNU_CC" != x && test x$GCC != xyes && | |
3909 | test x$cc_specified != xyes | |
3910 | then | |
3911 | CC="$NON_GNU_CC" | |
3912 | fi | |
3913 | ||
3914 | if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x | |
3915 | then | |
3916 | CC="$CC $GCC_TEST_OPTIONS" | |
3917 | fi | |
3918 | ||
3919 | if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x | |
3920 | then | |
3921 | CC="$CC $NON_GCC_TEST_OPTIONS" | |
3922 | fi | |
3923 | ||
a51f4969 SM |
3924 | |
3925 | cat >>confdefs.h <<\_ACEOF | |
3926 | #define _GNU_SOURCE 1 | |
3927 | _ACEOF | |
3928 | ||
3929 | ||
e143ad11 AS |
3930 | ac_ext=c |
3931 | ac_cpp='$CPP $CPPFLAGS' | |
3932 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3933 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3934 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ca81d7a0 JD |
3935 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
3936 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } | |
e143ad11 AS |
3937 | # On Suns, sometimes $CPP names a directory. |
3938 | if test -n "$CPP" && test -d "$CPP"; then | |
3939 | CPP= | |
3940 | fi | |
3941 | if test -z "$CPP"; then | |
3942 | if test "${ac_cv_prog_CPP+set}" = set; then | |
3943 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3944 | else | |
3945 | # Double quotes because CPP needs to be expanded | |
3946 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3947 | do | |
3948 | ac_preproc_ok=false | |
3949 | for ac_c_preproc_warn_flag in '' yes | |
3950 | do | |
3951 | # Use a header file that comes with gcc, so configuring glibc | |
3952 | # with a fresh cross-compiler works. | |
3953 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3954 | # <limits.h> exists even on freestanding compilers. | |
3955 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3956 | # not just through cpp. "Syntax error" is here to catch this case. | |
3957 | cat >conftest.$ac_ext <<_ACEOF | |
3958 | /* confdefs.h. */ | |
3959 | _ACEOF | |
3960 | cat confdefs.h >>conftest.$ac_ext | |
3961 | cat >>conftest.$ac_ext <<_ACEOF | |
3962 | /* end confdefs.h. */ | |
3963 | #ifdef __STDC__ | |
3964 | # include <limits.h> | |
3965 | #else | |
3966 | # include <assert.h> | |
3967 | #endif | |
3968 | Syntax error | |
3969 | _ACEOF | |
ca81d7a0 JD |
3970 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3971 | case "(($ac_try" in | |
3972 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3973 | *) ac_try_echo=$ac_try;; | |
3974 | esac | |
3975 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3976 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
e143ad11 AS |
3977 | ac_status=$? |
3978 | grep -v '^ *+' conftest.er1 >conftest.err | |
3979 | rm -f conftest.er1 | |
3980 | cat conftest.err >&5 | |
3981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f053c89f CY |
3982 | (exit $ac_status); } >/dev/null && { |
3983 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3984 | test ! -s conftest.err | |
3985 | }; then | |
e143ad11 AS |
3986 | : |
3987 | else | |
3988 | echo "$as_me: failed program was:" >&5 | |
3989 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3990 | ||
3991 | # Broken: fails on valid input. | |
3992 | continue | |
3993 | fi | |
ca81d7a0 | 3994 | |
e143ad11 AS |
3995 | rm -f conftest.err conftest.$ac_ext |
3996 | ||
ca81d7a0 | 3997 | # OK, works on sane cases. Now check whether nonexistent headers |
e143ad11 AS |
3998 | # can be detected and how. |
3999 | cat >conftest.$ac_ext <<_ACEOF | |
4000 | /* confdefs.h. */ | |
4001 | _ACEOF | |
4002 | cat confdefs.h >>conftest.$ac_ext | |
4003 | cat >>conftest.$ac_ext <<_ACEOF | |
4004 | /* end confdefs.h. */ | |
4005 | #include <ac_nonexistent.h> | |
4006 | _ACEOF | |
ca81d7a0 JD |
4007 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4008 | case "(($ac_try" in | |
4009 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4010 | *) ac_try_echo=$ac_try;; | |
4011 | esac | |
4012 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4013 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
e143ad11 AS |
4014 | ac_status=$? |
4015 | grep -v '^ *+' conftest.er1 >conftest.err | |
4016 | rm -f conftest.er1 | |
4017 | cat conftest.err >&5 | |
4018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f053c89f CY |
4019 | (exit $ac_status); } >/dev/null && { |
4020 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4021 | test ! -s conftest.err | |
4022 | }; then | |
e143ad11 AS |
4023 | # Broken: success on invalid input. |
4024 | continue | |
4025 | else | |
4026 | echo "$as_me: failed program was:" >&5 | |
4027 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4028 | ||
4029 | # Passes both tests. | |
4030 | ac_preproc_ok=: | |
4031 | break | |
4032 | fi | |
ca81d7a0 | 4033 | |
e143ad11 AS |
4034 | rm -f conftest.err conftest.$ac_ext |
4035 | ||
4036 | done | |
4037 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4038 | rm -f conftest.err conftest.$ac_ext | |
4039 | if $ac_preproc_ok; then | |
4040 | break | |
4041 | fi | |
4042 | ||
4043 | done | |
4044 | ac_cv_prog_CPP=$CPP | |
4045 | ||
4046 | fi | |
4047 | CPP=$ac_cv_prog_CPP | |
4048 | else | |
4049 | ac_cv_prog_CPP=$CPP | |
4050 | fi | |
ca81d7a0 JD |
4051 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
4052 | echo "${ECHO_T}$CPP" >&6; } | |
e143ad11 AS |
4053 | ac_preproc_ok=false |
4054 | for ac_c_preproc_warn_flag in '' yes | |
4055 | do | |
4056 | # Use a header file that comes with gcc, so configuring glibc | |
4057 | # with a fresh cross-compiler works. | |
4058 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4059 | # <limits.h> exists even on freestanding compilers. | |
4060 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4061 | # not just through cpp. "Syntax error" is here to catch this case. | |
4062 | cat >conftest.$ac_ext <<_ACEOF | |
4063 | /* confdefs.h. */ | |
4064 | _ACEOF | |
4065 | cat confdefs.h >>conftest.$ac_ext | |
4066 | cat >>conftest.$ac_ext <<_ACEOF | |
4067 | /* end confdefs.h. */ | |
4068 | #ifdef __STDC__ | |
4069 | # include <limits.h> | |
4070 | #else | |
4071 | # include <assert.h> | |
4072 | #endif | |
4073 | Syntax error | |
4074 | _ACEOF | |
ca81d7a0 JD |
4075 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4076 | case "(($ac_try" in | |
4077 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4078 | *) ac_try_echo=$ac_try;; | |
4079 | esac | |
4080 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4081 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
e143ad11 AS |
4082 | ac_status=$? |
4083 | grep -v '^ *+' conftest.er1 >conftest.err | |
4084 | rm -f conftest.er1 | |
4085 | cat conftest.err >&5 | |
4086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f053c89f CY |
4087 | (exit $ac_status); } >/dev/null && { |
4088 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4089 | test ! -s conftest.err | |
4090 | }; then | |
e143ad11 AS |
4091 | : |
4092 | else | |
4093 | echo "$as_me: failed program was:" >&5 | |
4094 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4095 | ||
4096 | # Broken: fails on valid input. | |
4097 | continue | |
4098 | fi | |
ca81d7a0 | 4099 | |
e143ad11 AS |
4100 | rm -f conftest.err conftest.$ac_ext |
4101 | ||
ca81d7a0 | 4102 | # OK, works on sane cases. Now check whether nonexistent headers |
e143ad11 AS |
4103 | # can be detected and how. |
4104 | cat >conftest.$ac_ext <<_ACEOF | |
4105 | /* confdefs.h. */ | |
4106 | _ACEOF | |
4107 | cat confdefs.h >>conftest.$ac_ext | |
4108 | cat >>conftest.$ac_ext <<_ACEOF | |
4109 | /* end confdefs.h. */ | |
4110 | #include <ac_nonexistent.h> | |
4111 | _ACEOF | |
ca81d7a0 JD |
4112 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4113 | case "(($ac_try" in | |
4114 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4115 | *) ac_try_echo=$ac_try;; | |
4116 | esac | |
4117 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4118 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
e143ad11 AS |
4119 | ac_status=$? |
4120 | grep -v '^ *+' conftest.er1 >conftest.err | |
4121 | rm -f conftest.er1 | |
4122 | cat conftest.err >&5 | |
4123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f053c89f CY |
4124 | (exit $ac_status); } >/dev/null && { |
4125 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4126 | test ! -s conftest.err | |
4127 | }; then | |
e143ad11 AS |
4128 | # Broken: success on invalid input. |
4129 | continue | |
4130 | else | |
4131 | echo "$as_me: failed program was:" >&5 | |
4132 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4133 | ||
4134 | # Passes both tests. | |
4135 | ac_preproc_ok=: | |
4136 | break | |
4137 | fi | |
ca81d7a0 | 4138 | |
e143ad11 AS |
4139 | rm -f conftest.err conftest.$ac_ext |
4140 | ||
4141 | done | |
4142 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4143 | rm -f conftest.err conftest.$ac_ext | |
4144 | if $ac_preproc_ok; then | |
4145 | : | |
4146 | else | |
4147 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
4148 | See \`config.log' for more details." >&5 | |
4149 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
4150 | See \`config.log' for more details." >&2;} | |
4151 | { (exit 1); exit 1; }; } | |
4152 | fi | |
4153 | ||
4154 | ac_ext=c | |
4155 | ac_cpp='$CPP $CPPFLAGS' | |
4156 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4157 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4158 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4159 | ||
4160 | ||
ca81d7a0 JD |
4161 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
4162 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } | |
4163 | if test "${ac_cv_path_GREP+set}" = set; then | |
4164 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4165 | else | |
4166 | # Extract the first word of "grep ggrep" to use in msg output | |
4167 | if test -z "$GREP"; then | |
4168 | set dummy grep ggrep; ac_prog_name=$2 | |
4169 | if test "${ac_cv_path_GREP+set}" = set; then | |
4170 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4171 | else | |
4172 | ac_path_GREP_found=false | |
4173 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4174 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4175 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4176 | do | |
4177 | IFS=$as_save_IFS | |
4178 | test -z "$as_dir" && as_dir=. | |
4179 | for ac_prog in grep ggrep; do | |
4180 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4181 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
f053c89f | 4182 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
ca81d7a0 JD |
4183 | # Check for GNU ac_path_GREP and select it if it is found. |
4184 | # Check for GNU $ac_path_GREP | |
4185 | case `"$ac_path_GREP" --version 2>&1` in | |
4186 | *GNU*) | |
4187 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4188 | *) | |
4189 | ac_count=0 | |
4190 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | |
4191 | while : | |
4192 | do | |
4193 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4194 | mv "conftest.tmp" "conftest.in" | |
4195 | cp "conftest.in" "conftest.nl" | |
4196 | echo 'GREP' >> "conftest.nl" | |
4197 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4198 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4199 | ac_count=`expr $ac_count + 1` | |
4200 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
4201 | # Best one so far, save it but keep looking for a better one | |
4202 | ac_cv_path_GREP="$ac_path_GREP" | |
4203 | ac_path_GREP_max=$ac_count | |
4204 | fi | |
4205 | # 10*(2^10) chars as input seems more than enough | |
4206 | test $ac_count -gt 10 && break | |
4207 | done | |
4208 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4209 | esac | |
4210 | ||
4211 | ||
4212 | $ac_path_GREP_found && break 3 | |
4213 | done | |
4214 | done | |
4215 | ||
4216 | done | |
4217 | IFS=$as_save_IFS | |
4218 | ||
4219 | ||
4220 | fi | |
4221 | ||
4222 | GREP="$ac_cv_path_GREP" | |
4223 | if test -z "$GREP"; then | |
4224 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
4225 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
4226 | { (exit 1); exit 1; }; } | |
4227 | fi | |
4228 | ||
4229 | else | |
4230 | ac_cv_path_GREP=$GREP | |
4231 | fi | |
4232 | ||
4233 | ||
4234 | fi | |
4235 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 | |
4236 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } | |
4237 | GREP="$ac_cv_path_GREP" | |
4238 | ||
4239 | ||
4240 | { echo "$as_me:$LINENO: checking for egrep" >&5 | |
4241 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } | |
4242 | if test "${ac_cv_path_EGREP+set}" = set; then | |
e143ad11 AS |
4243 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4244 | else | |
ca81d7a0 JD |
4245 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
4246 | then ac_cv_path_EGREP="$GREP -E" | |
4247 | else | |
4248 | # Extract the first word of "egrep" to use in msg output | |
4249 | if test -z "$EGREP"; then | |
4250 | set dummy egrep; ac_prog_name=$2 | |
4251 | if test "${ac_cv_path_EGREP+set}" = set; then | |
4252 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4253 | else | |
4254 | ac_path_EGREP_found=false | |
4255 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4256 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4257 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4258 | do | |
4259 | IFS=$as_save_IFS | |
4260 | test -z "$as_dir" && as_dir=. | |
4261 | for ac_prog in egrep; do | |
4262 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4263 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
f053c89f | 4264 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
ca81d7a0 JD |
4265 | # Check for GNU ac_path_EGREP and select it if it is found. |
4266 | # Check for GNU $ac_path_EGREP | |
4267 | case `"$ac_path_EGREP" --version 2>&1` in | |
4268 | *GNU*) | |
4269 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4270 | *) | |
4271 | ac_count=0 | |
4272 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | |
4273 | while : | |
4274 | do | |
4275 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4276 | mv "conftest.tmp" "conftest.in" | |
4277 | cp "conftest.in" "conftest.nl" | |
4278 | echo 'EGREP' >> "conftest.nl" | |
4279 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4280 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4281 | ac_count=`expr $ac_count + 1` | |
4282 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4283 | # Best one so far, save it but keep looking for a better one | |
4284 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4285 | ac_path_EGREP_max=$ac_count | |
e143ad11 | 4286 | fi |
ca81d7a0 JD |
4287 | # 10*(2^10) chars as input seems more than enough |
4288 | test $ac_count -gt 10 && break | |
4289 | done | |
4290 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4291 | esac | |
4292 | ||
4293 | ||
4294 | $ac_path_EGREP_found && break 3 | |
4295 | done | |
4296 | done | |
4297 | ||
4298 | done | |
4299 | IFS=$as_save_IFS | |
4300 | ||
4301 | ||
e143ad11 | 4302 | fi |
e143ad11 | 4303 | |
ca81d7a0 JD |
4304 | EGREP="$ac_cv_path_EGREP" |
4305 | if test -z "$EGREP"; then | |
4306 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
4307 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
4308 | { (exit 1); exit 1; }; } | |
4309 | fi | |
e143ad11 | 4310 | |
ca81d7a0 JD |
4311 | else |
4312 | ac_cv_path_EGREP=$EGREP | |
4313 | fi | |
e143ad11 | 4314 | |
ca81d7a0 JD |
4315 | |
4316 | fi | |
8eeae1c9 | 4317 | fi |
ca81d7a0 JD |
4318 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
4319 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } | |
4320 | EGREP="$ac_cv_path_EGREP" | |
e143ad11 AS |
4321 | |
4322 | ||
4323 | ||
ca81d7a0 JD |
4324 | { echo "$as_me:$LINENO: checking for AIX" >&5 |
4325 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6; } | |
e143ad11 AS |
4326 | cat >conftest.$ac_ext <<_ACEOF |
4327 | /* confdefs.h. */ | |
4328 | _ACEOF | |
4329 | cat confdefs.h >>conftest.$ac_ext | |
4330 | cat >>conftest.$ac_ext <<_ACEOF | |
4331 | /* end confdefs.h. */ | |
4332 | #ifdef _AIX | |
4333 | yes | |
4334 | #endif | |
4335 | ||
4336 | _ACEOF | |
4337 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4338 | $EGREP "yes" >/dev/null 2>&1; then | |
ca81d7a0 JD |
4339 | { echo "$as_me:$LINENO: result: yes" >&5 |
4340 | echo "${ECHO_T}yes" >&6; } | |
e143ad11 AS |
4341 | cat >>confdefs.h <<\_ACEOF |
4342 | #define _ALL_SOURCE 1 | |
4343 | _ACEOF | |
4344 | ||
4345 | else | |
ca81d7a0 JD |
4346 | { echo "$as_me:$LINENO: result: no" >&5 |
4347 | echo "${ECHO_T}no" >&6; } | |
e143ad11 | 4348 | fi |
a51f4969 SM |
4349 | rm -f conftest* |
4350 | ||
4351 | ||
4352 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
4353 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } | |
4354 | if test "${ac_cv_header_stdc+set}" = set; then | |
4355 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4356 | else | |
4357 | cat >conftest.$ac_ext <<_ACEOF | |
4358 | /* confdefs.h. */ | |
4359 | _ACEOF | |
4360 | cat confdefs.h >>conftest.$ac_ext | |
4361 | cat >>conftest.$ac_ext <<_ACEOF | |
4362 | /* end confdefs.h. */ | |
4363 | #include <stdlib.h> | |
4364 | #include <stdarg.h> | |
4365 | #include <string.h> | |
4366 | #include <float.h> | |
4367 | ||
4368 | int | |
4369 | main () | |
4370 | { | |
4371 | ||
4372 | ; | |
4373 | return 0; | |
4374 | } | |
4375 | _ACEOF | |
4376 | rm -f conftest.$ac_objext | |
4377 | if { (ac_try="$ac_compile" | |
4378 | case "(($ac_try" in | |
4379 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4380 | *) ac_try_echo=$ac_try;; | |
4381 | esac | |
4382 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4383 | (eval "$ac_compile") 2>conftest.er1 | |
4384 | ac_status=$? | |
4385 | grep -v '^ *+' conftest.er1 >conftest.err | |
4386 | rm -f conftest.er1 | |
4387 | cat conftest.err >&5 | |
4388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4389 | (exit $ac_status); } && { | |
4390 | test -z "$ac_c_werror_flag" || | |
4391 | test ! -s conftest.err | |
4392 | } && test -s conftest.$ac_objext; then | |
4393 | ac_cv_header_stdc=yes | |
4394 | else | |
4395 | echo "$as_me: failed program was:" >&5 | |
4396 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4397 | ||
4398 | ac_cv_header_stdc=no | |
4399 | fi | |
4400 | ||
4401 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4402 | ||
4403 | if test $ac_cv_header_stdc = yes; then | |
4404 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4405 | cat >conftest.$ac_ext <<_ACEOF | |
4406 | /* confdefs.h. */ | |
4407 | _ACEOF | |
4408 | cat confdefs.h >>conftest.$ac_ext | |
4409 | cat >>conftest.$ac_ext <<_ACEOF | |
4410 | /* end confdefs.h. */ | |
4411 | #include <string.h> | |
4412 | ||
4413 | _ACEOF | |
4414 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4415 | $EGREP "memchr" >/dev/null 2>&1; then | |
4416 | : | |
4417 | else | |
4418 | ac_cv_header_stdc=no | |
4419 | fi | |
4420 | rm -f conftest* | |
4421 | ||
4422 | fi | |
4423 | ||
4424 | if test $ac_cv_header_stdc = yes; then | |
4425 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4426 | cat >conftest.$ac_ext <<_ACEOF | |
4427 | /* confdefs.h. */ | |
4428 | _ACEOF | |
4429 | cat confdefs.h >>conftest.$ac_ext | |
4430 | cat >>conftest.$ac_ext <<_ACEOF | |
4431 | /* end confdefs.h. */ | |
4432 | #include <stdlib.h> | |
4433 | ||
4434 | _ACEOF | |
4435 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4436 | $EGREP "free" >/dev/null 2>&1; then | |
4437 | : | |
4438 | else | |
4439 | ac_cv_header_stdc=no | |
4440 | fi | |
4441 | rm -f conftest* | |
4442 | ||
4443 | fi | |
4444 | ||
4445 | if test $ac_cv_header_stdc = yes; then | |
4446 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4447 | if test "$cross_compiling" = yes; then | |
4448 | : | |
4449 | else | |
4450 | cat >conftest.$ac_ext <<_ACEOF | |
4451 | /* confdefs.h. */ | |
4452 | _ACEOF | |
4453 | cat confdefs.h >>conftest.$ac_ext | |
4454 | cat >>conftest.$ac_ext <<_ACEOF | |
4455 | /* end confdefs.h. */ | |
4456 | #include <ctype.h> | |
4457 | #include <stdlib.h> | |
4458 | #if ((' ' & 0x0FF) == 0x020) | |
4459 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4460 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4461 | #else | |
4462 | # define ISLOWER(c) \ | |
4463 | (('a' <= (c) && (c) <= 'i') \ | |
4464 | || ('j' <= (c) && (c) <= 'r') \ | |
4465 | || ('s' <= (c) && (c) <= 'z')) | |
4466 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4467 | #endif | |
4468 | ||
4469 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4470 | int | |
4471 | main () | |
4472 | { | |
4473 | int i; | |
4474 | for (i = 0; i < 256; i++) | |
4475 | if (XOR (islower (i), ISLOWER (i)) | |
4476 | || toupper (i) != TOUPPER (i)) | |
4477 | return 2; | |
4478 | return 0; | |
4479 | } | |
4480 | _ACEOF | |
4481 | rm -f conftest$ac_exeext | |
4482 | if { (ac_try="$ac_link" | |
4483 | case "(($ac_try" in | |
4484 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4485 | *) ac_try_echo=$ac_try;; | |
4486 | esac | |
4487 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4488 | (eval "$ac_link") 2>&5 | |
4489 | ac_status=$? | |
4490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4491 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
4492 | { (case "(($ac_try" in | |
4493 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4494 | *) ac_try_echo=$ac_try;; | |
4495 | esac | |
4496 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4497 | (eval "$ac_try") 2>&5 | |
4498 | ac_status=$? | |
4499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4500 | (exit $ac_status); }; }; then | |
4501 | : | |
4502 | else | |
4503 | echo "$as_me: program exited with status $ac_status" >&5 | |
4504 | echo "$as_me: failed program was:" >&5 | |
4505 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4506 | ||
4507 | ( exit $ac_status ) | |
4508 | ac_cv_header_stdc=no | |
4509 | fi | |
4510 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4511 | fi | |
4512 | ||
4513 | ||
4514 | fi | |
4515 | fi | |
4516 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
4517 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } | |
4518 | if test $ac_cv_header_stdc = yes; then | |
4519 | ||
4520 | cat >>confdefs.h <<\_ACEOF | |
4521 | #define STDC_HEADERS 1 | |
4522 | _ACEOF | |
4523 | ||
4524 | fi | |
4525 | ||
4526 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
4527 | ||
4528 | ||
4529 | ||
4530 | ||
4531 | ||
4532 | ||
4533 | ||
4534 | ||
4535 | ||
4536 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4537 | inttypes.h stdint.h unistd.h | |
4538 | do | |
4539 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4540 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4541 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
4542 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
4543 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4544 | else | |
4545 | cat >conftest.$ac_ext <<_ACEOF | |
4546 | /* confdefs.h. */ | |
4547 | _ACEOF | |
4548 | cat confdefs.h >>conftest.$ac_ext | |
4549 | cat >>conftest.$ac_ext <<_ACEOF | |
4550 | /* end confdefs.h. */ | |
4551 | $ac_includes_default | |
4552 | ||
4553 | #include <$ac_header> | |
4554 | _ACEOF | |
4555 | rm -f conftest.$ac_objext | |
4556 | if { (ac_try="$ac_compile" | |
4557 | case "(($ac_try" in | |
4558 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4559 | *) ac_try_echo=$ac_try;; | |
4560 | esac | |
4561 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4562 | (eval "$ac_compile") 2>conftest.er1 | |
4563 | ac_status=$? | |
4564 | grep -v '^ *+' conftest.er1 >conftest.err | |
4565 | rm -f conftest.er1 | |
4566 | cat conftest.err >&5 | |
4567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4568 | (exit $ac_status); } && { | |
4569 | test -z "$ac_c_werror_flag" || | |
4570 | test ! -s conftest.err | |
4571 | } && test -s conftest.$ac_objext; then | |
4572 | eval "$as_ac_Header=yes" | |
4573 | else | |
4574 | echo "$as_me: failed program was:" >&5 | |
4575 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4576 | ||
4577 | eval "$as_ac_Header=no" | |
4578 | fi | |
4579 | ||
4580 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4581 | fi | |
4582 | ac_res=`eval echo '${'$as_ac_Header'}'` | |
4583 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4584 | echo "${ECHO_T}$ac_res" >&6; } | |
4585 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4586 | cat >>confdefs.h <<_ACEOF | |
4587 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4588 | _ACEOF | |
4589 | ||
4590 | fi | |
4591 | ||
4592 | done | |
4593 | ||
4594 | ||
4595 | if test "${ac_cv_header_minix_config_h+set}" = set; then | |
4596 | { echo "$as_me:$LINENO: checking for minix/config.h" >&5 | |
4597 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; } | |
4598 | if test "${ac_cv_header_minix_config_h+set}" = set; then | |
4599 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4600 | fi | |
4601 | { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 | |
4602 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; } | |
4603 | else | |
4604 | # Is the header compilable? | |
4605 | { echo "$as_me:$LINENO: checking minix/config.h usability" >&5 | |
4606 | echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; } | |
4607 | cat >conftest.$ac_ext <<_ACEOF | |
4608 | /* confdefs.h. */ | |
4609 | _ACEOF | |
4610 | cat confdefs.h >>conftest.$ac_ext | |
4611 | cat >>conftest.$ac_ext <<_ACEOF | |
4612 | /* end confdefs.h. */ | |
4613 | $ac_includes_default | |
4614 | #include <minix/config.h> | |
4615 | _ACEOF | |
4616 | rm -f conftest.$ac_objext | |
4617 | if { (ac_try="$ac_compile" | |
4618 | case "(($ac_try" in | |
4619 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4620 | *) ac_try_echo=$ac_try;; | |
4621 | esac | |
4622 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4623 | (eval "$ac_compile") 2>conftest.er1 | |
4624 | ac_status=$? | |
4625 | grep -v '^ *+' conftest.er1 >conftest.err | |
4626 | rm -f conftest.er1 | |
4627 | cat conftest.err >&5 | |
4628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4629 | (exit $ac_status); } && { | |
4630 | test -z "$ac_c_werror_flag" || | |
4631 | test ! -s conftest.err | |
4632 | } && test -s conftest.$ac_objext; then | |
4633 | ac_header_compiler=yes | |
4634 | else | |
4635 | echo "$as_me: failed program was:" >&5 | |
4636 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4637 | ||
4638 | ac_header_compiler=no | |
4639 | fi | |
4640 | ||
4641 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4642 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4643 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
4644 | ||
4645 | # Is the header present? | |
4646 | { echo "$as_me:$LINENO: checking minix/config.h presence" >&5 | |
4647 | echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; } | |
4648 | cat >conftest.$ac_ext <<_ACEOF | |
4649 | /* confdefs.h. */ | |
4650 | _ACEOF | |
4651 | cat confdefs.h >>conftest.$ac_ext | |
4652 | cat >>conftest.$ac_ext <<_ACEOF | |
4653 | /* end confdefs.h. */ | |
4654 | #include <minix/config.h> | |
4655 | _ACEOF | |
4656 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
4657 | case "(($ac_try" in | |
4658 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4659 | *) ac_try_echo=$ac_try;; | |
4660 | esac | |
4661 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4662 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
4663 | ac_status=$? | |
4664 | grep -v '^ *+' conftest.er1 >conftest.err | |
4665 | rm -f conftest.er1 | |
4666 | cat conftest.err >&5 | |
4667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4668 | (exit $ac_status); } >/dev/null && { | |
4669 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4670 | test ! -s conftest.err | |
4671 | }; then | |
4672 | ac_header_preproc=yes | |
4673 | else | |
4674 | echo "$as_me: failed program was:" >&5 | |
4675 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4676 | ||
4677 | ac_header_preproc=no | |
4678 | fi | |
4679 | ||
4680 | rm -f conftest.err conftest.$ac_ext | |
4681 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4682 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
4683 | ||
4684 | # So? What about this header? | |
4685 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4686 | yes:no: ) | |
4687 | { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4688 | echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4689 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5 | |
4690 | echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;} | |
4691 | ac_header_preproc=yes | |
4692 | ;; | |
4693 | no:yes:* ) | |
4694 | { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5 | |
4695 | echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;} | |
4696 | { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5 | |
4697 | echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;} | |
4698 | { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5 | |
4699 | echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;} | |
4700 | { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5 | |
4701 | echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
4702 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 | |
4703 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;} | |
4704 | { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5 | |
4705 | echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;} | |
4706 | ||
4707 | ;; | |
4708 | esac | |
4709 | { echo "$as_me:$LINENO: checking for minix/config.h" >&5 | |
4710 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; } | |
4711 | if test "${ac_cv_header_minix_config_h+set}" = set; then | |
4712 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4713 | else | |
4714 | ac_cv_header_minix_config_h=$ac_header_preproc | |
4715 | fi | |
4716 | { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 | |
4717 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; } | |
4718 | ||
4719 | fi | |
4720 | if test $ac_cv_header_minix_config_h = yes; then | |
4721 | MINIX=yes | |
4722 | else | |
4723 | MINIX= | |
4724 | fi | |
4725 | ||
4726 | ||
4727 | if test "$MINIX" = yes; then | |
4728 | ||
4729 | cat >>confdefs.h <<\_ACEOF | |
4730 | #define _POSIX_SOURCE 1 | |
4731 | _ACEOF | |
4732 | ||
4733 | ||
4734 | cat >>confdefs.h <<\_ACEOF | |
4735 | #define _POSIX_1_SOURCE 2 | |
4736 | _ACEOF | |
4737 | ||
4738 | ||
4739 | cat >>confdefs.h <<\_ACEOF | |
4740 | #define _MINIX 1 | |
4741 | _ACEOF | |
4742 | ||
4743 | fi | |
4744 | ||
4745 | ||
4746 | ||
4747 | ||
4748 | ||
4749 | ||
4750 | ||
4751 | ||
4752 | ||
4753 | ||
4754 | ||
4755 | { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5 | |
4756 | echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; } | |
4757 | if test "${ac_cv_safe_to_define___extensions__+set}" = set; then | |
4758 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4759 | else | |
4760 | cat >conftest.$ac_ext <<_ACEOF | |
4761 | /* confdefs.h. */ | |
4762 | _ACEOF | |
4763 | cat confdefs.h >>conftest.$ac_ext | |
4764 | cat >>conftest.$ac_ext <<_ACEOF | |
4765 | /* end confdefs.h. */ | |
4766 | ||
4767 | # define __EXTENSIONS__ 1 | |
4768 | $ac_includes_default | |
4769 | int | |
4770 | main () | |
4771 | { | |
4772 | ||
4773 | ; | |
4774 | return 0; | |
4775 | } | |
4776 | _ACEOF | |
4777 | rm -f conftest.$ac_objext | |
4778 | if { (ac_try="$ac_compile" | |
4779 | case "(($ac_try" in | |
4780 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4781 | *) ac_try_echo=$ac_try;; | |
4782 | esac | |
4783 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4784 | (eval "$ac_compile") 2>conftest.er1 | |
4785 | ac_status=$? | |
4786 | grep -v '^ *+' conftest.er1 >conftest.err | |
4787 | rm -f conftest.er1 | |
4788 | cat conftest.err >&5 | |
4789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4790 | (exit $ac_status); } && { | |
4791 | test -z "$ac_c_werror_flag" || | |
4792 | test ! -s conftest.err | |
4793 | } && test -s conftest.$ac_objext; then | |
4794 | ac_cv_safe_to_define___extensions__=yes | |
4795 | else | |
4796 | echo "$as_me: failed program was:" >&5 | |
4797 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4798 | ||
4799 | ac_cv_safe_to_define___extensions__=no | |
4800 | fi | |
e143ad11 | 4801 | |
a51f4969 SM |
4802 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4803 | fi | |
4804 | { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5 | |
4805 | echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; } | |
4806 | test $ac_cv_safe_to_define___extensions__ = yes && | |
4807 | cat >>confdefs.h <<\_ACEOF | |
4808 | #define __EXTENSIONS__ 1 | |
4809 | _ACEOF | |
e143ad11 | 4810 | |
a51f4969 SM |
4811 | cat >>confdefs.h <<\_ACEOF |
4812 | #define _POSIX_PTHREAD_SEMANTICS 1 | |
4813 | _ACEOF | |
e143ad11 | 4814 | |
a51f4969 SM |
4815 | cat >>confdefs.h <<\_ACEOF |
4816 | #define _TANDEM_SOURCE 1 | |
e143ad11 AS |
4817 | _ACEOF |
4818 | ||
4819 | ||
4820 | ||
01abe918 | 4821 | ### Use -Wno-pointer-sign if the compiler supports it |
ca81d7a0 JD |
4822 | { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5 |
4823 | echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; } | |
01abe918 CY |
4824 | SAVE_CFLAGS="$CFLAGS" |
4825 | CFLAGS="$CFLAGS -Wno-pointer-sign" | |
01abe918 CY |
4826 | cat >conftest.$ac_ext <<_ACEOF |
4827 | /* confdefs.h. */ | |
4828 | _ACEOF | |
4829 | cat confdefs.h >>conftest.$ac_ext | |
4830 | cat >>conftest.$ac_ext <<_ACEOF | |
4831 | /* end confdefs.h. */ | |
4832 | ||
4833 | int | |
4834 | main () | |
4835 | { | |
4836 | ||
4837 | ; | |
4838 | return 0; | |
4839 | } | |
4840 | _ACEOF | |
4841 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
4842 | if { (ac_try="$ac_compile" |
4843 | case "(($ac_try" in | |
4844 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4845 | *) ac_try_echo=$ac_try;; | |
4846 | esac | |
4847 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4848 | (eval "$ac_compile") 2>conftest.er1 | |
01abe918 CY |
4849 | ac_status=$? |
4850 | grep -v '^ *+' conftest.er1 >conftest.err | |
4851 | rm -f conftest.er1 | |
4852 | cat conftest.err >&5 | |
4853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f053c89f CY |
4854 | (exit $ac_status); } && { |
4855 | test -z "$ac_c_werror_flag" || | |
4856 | test ! -s conftest.err | |
4857 | } && test -s conftest.$ac_objext; then | |
01abe918 CY |
4858 | has_option=yes |
4859 | else | |
4860 | echo "$as_me: failed program was:" >&5 | |
4861 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4862 | ||
ca81d7a0 | 4863 | has_option=no |
01abe918 | 4864 | fi |
ca81d7a0 JD |
4865 | |
4866 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
01abe918 CY |
4867 | if test $has_option = yes; then |
4868 | C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH" | |
4869 | fi | |
ca81d7a0 JD |
4870 | { echo "$as_me:$LINENO: result: $has_option" >&5 |
4871 | echo "${ECHO_T}$has_option" >&6; } | |
01abe918 CY |
4872 | CFLAGS="$SAVE_CFLAGS" |
4873 | unset has_option | |
4874 | unset SAVE_CFLAGS | |
4875 | ||
6a3a24fa | 4876 | #### Some other nice autoconf tests. |
ba4481b5 | 4877 | |
ca81d7a0 JD |
4878 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
4879 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } | |
503d2be0 AS |
4880 | LN_S=$as_ln_s |
4881 | if test "$LN_S" = "ln -s"; then | |
ca81d7a0 JD |
4882 | { echo "$as_me:$LINENO: result: yes" >&5 |
4883 | echo "${ECHO_T}yes" >&6; } | |
ba4481b5 | 4884 | else |
ca81d7a0 JD |
4885 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
4886 | echo "${ECHO_T}no, using $LN_S" >&6; } | |
ba4481b5 DL |
4887 | fi |
4888 | ||
503d2be0 AS |
4889 | ac_ext=c |
4890 | ac_cpp='$CPP $CPPFLAGS' | |
4891 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4892 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4893 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ca81d7a0 JD |
4894 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
4895 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } | |
ba4481b5 DL |
4896 | # On Suns, sometimes $CPP names a directory. |
4897 | if test -n "$CPP" && test -d "$CPP"; then | |
4898 | CPP= | |
4899 | fi | |
4900 | if test -z "$CPP"; then | |
503d2be0 AS |
4901 | if test "${ac_cv_prog_CPP+set}" = set; then |
4902 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4903 | else | |
4904 | # Double quotes because CPP needs to be expanded | |
4905 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4906 | do | |
4907 | ac_preproc_ok=false | |
4908 | for ac_c_preproc_warn_flag in '' yes | |
4909 | do | |
4910 | # Use a header file that comes with gcc, so configuring glibc | |
4911 | # with a fresh cross-compiler works. | |
19650fd6 AS |
4912 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
4913 | # <limits.h> exists even on freestanding compilers. | |
ba4481b5 | 4914 | # On the NeXT, cc -E runs the code through the compiler's parser, |
503d2be0 AS |
4915 | # not just through cpp. "Syntax error" is here to catch this case. |
4916 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
4917 | /* confdefs.h. */ |
4918 | _ACEOF | |
4919 | cat confdefs.h >>conftest.$ac_ext | |
4920 | cat >>conftest.$ac_ext <<_ACEOF | |
4921 | /* end confdefs.h. */ | |
4922 | #ifdef __STDC__ | |
4923 | # include <limits.h> | |
4924 | #else | |
4925 | # include <assert.h> | |
4926 | #endif | |
edfaf76d | 4927 | Syntax error |
503d2be0 | 4928 | _ACEOF |
ca81d7a0 JD |
4929 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4930 | case "(($ac_try" in | |
4931 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4932 | *) ac_try_echo=$ac_try;; | |
4933 | esac | |
4934 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4935 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 4936 | ac_status=$? |
6bae0ccf | 4937 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
4938 | rm -f conftest.er1 |
4939 | cat conftest.err >&5 | |
c0d27fcc | 4940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
4941 | (exit $ac_status); } >/dev/null && { |
4942 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4943 | test ! -s conftest.err | |
4944 | }; then | |
ba4481b5 DL |
4945 | : |
4946 | else | |
503d2be0 | 4947 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
4948 | sed 's/^/| /' conftest.$ac_ext >&5 |
4949 | ||
503d2be0 AS |
4950 | # Broken: fails on valid input. |
4951 | continue | |
4952 | fi | |
ca81d7a0 | 4953 | |
503d2be0 AS |
4954 | rm -f conftest.err conftest.$ac_ext |
4955 | ||
ca81d7a0 | 4956 | # OK, works on sane cases. Now check whether nonexistent headers |
503d2be0 AS |
4957 | # can be detected and how. |
4958 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
4959 | /* confdefs.h. */ |
4960 | _ACEOF | |
4961 | cat confdefs.h >>conftest.$ac_ext | |
4962 | cat >>conftest.$ac_ext <<_ACEOF | |
4963 | /* end confdefs.h. */ | |
503d2be0 AS |
4964 | #include <ac_nonexistent.h> |
4965 | _ACEOF | |
ca81d7a0 JD |
4966 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4967 | case "(($ac_try" in | |
4968 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4969 | *) ac_try_echo=$ac_try;; | |
4970 | esac | |
4971 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4972 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 4973 | ac_status=$? |
6bae0ccf | 4974 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
4975 | rm -f conftest.er1 |
4976 | cat conftest.err >&5 | |
c0d27fcc | 4977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
4978 | (exit $ac_status); } >/dev/null && { |
4979 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4980 | test ! -s conftest.err | |
4981 | }; then | |
503d2be0 AS |
4982 | # Broken: success on invalid input. |
4983 | continue | |
c4bb2108 | 4984 | else |
503d2be0 | 4985 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
4986 | sed 's/^/| /' conftest.$ac_ext >&5 |
4987 | ||
503d2be0 AS |
4988 | # Passes both tests. |
4989 | ac_preproc_ok=: | |
4990 | break | |
4991 | fi | |
ca81d7a0 | 4992 | |
503d2be0 AS |
4993 | rm -f conftest.err conftest.$ac_ext |
4994 | ||
4995 | done | |
4996 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4997 | rm -f conftest.err conftest.$ac_ext | |
4998 | if $ac_preproc_ok; then | |
4999 | break | |
5000 | fi | |
5001 | ||
5002 | done | |
5003 | ac_cv_prog_CPP=$CPP | |
5004 | ||
5005 | fi | |
5006 | CPP=$ac_cv_prog_CPP | |
5007 | else | |
5008 | ac_cv_prog_CPP=$CPP | |
5009 | fi | |
ca81d7a0 JD |
5010 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
5011 | echo "${ECHO_T}$CPP" >&6; } | |
503d2be0 AS |
5012 | ac_preproc_ok=false |
5013 | for ac_c_preproc_warn_flag in '' yes | |
5014 | do | |
5015 | # Use a header file that comes with gcc, so configuring glibc | |
5016 | # with a fresh cross-compiler works. | |
19650fd6 AS |
5017 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
5018 | # <limits.h> exists even on freestanding compilers. | |
503d2be0 AS |
5019 | # On the NeXT, cc -E runs the code through the compiler's parser, |
5020 | # not just through cpp. "Syntax error" is here to catch this case. | |
5021 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
5022 | /* confdefs.h. */ |
5023 | _ACEOF | |
5024 | cat confdefs.h >>conftest.$ac_ext | |
5025 | cat >>conftest.$ac_ext <<_ACEOF | |
5026 | /* end confdefs.h. */ | |
5027 | #ifdef __STDC__ | |
5028 | # include <limits.h> | |
5029 | #else | |
5030 | # include <assert.h> | |
5031 | #endif | |
edfaf76d | 5032 | Syntax error |
503d2be0 | 5033 | _ACEOF |
ca81d7a0 JD |
5034 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5035 | case "(($ac_try" in | |
5036 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5037 | *) ac_try_echo=$ac_try;; | |
5038 | esac | |
5039 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5040 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 5041 | ac_status=$? |
6bae0ccf | 5042 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
5043 | rm -f conftest.er1 |
5044 | cat conftest.err >&5 | |
c0d27fcc | 5045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
5046 | (exit $ac_status); } >/dev/null && { |
5047 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5048 | test ! -s conftest.err | |
5049 | }; then | |
ba4481b5 DL |
5050 | : |
5051 | else | |
503d2be0 | 5052 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
5053 | sed 's/^/| /' conftest.$ac_ext >&5 |
5054 | ||
503d2be0 AS |
5055 | # Broken: fails on valid input. |
5056 | continue | |
5057 | fi | |
ca81d7a0 | 5058 | |
503d2be0 AS |
5059 | rm -f conftest.err conftest.$ac_ext |
5060 | ||
ca81d7a0 | 5061 | # OK, works on sane cases. Now check whether nonexistent headers |
503d2be0 AS |
5062 | # can be detected and how. |
5063 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
5064 | /* confdefs.h. */ |
5065 | _ACEOF | |
5066 | cat confdefs.h >>conftest.$ac_ext | |
5067 | cat >>conftest.$ac_ext <<_ACEOF | |
5068 | /* end confdefs.h. */ | |
503d2be0 AS |
5069 | #include <ac_nonexistent.h> |
5070 | _ACEOF | |
ca81d7a0 JD |
5071 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5072 | case "(($ac_try" in | |
5073 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5074 | *) ac_try_echo=$ac_try;; | |
5075 | esac | |
5076 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5077 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 5078 | ac_status=$? |
6bae0ccf | 5079 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
5080 | rm -f conftest.er1 |
5081 | cat conftest.err >&5 | |
c0d27fcc | 5082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
5083 | (exit $ac_status); } >/dev/null && { |
5084 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5085 | test ! -s conftest.err | |
5086 | }; then | |
503d2be0 AS |
5087 | # Broken: success on invalid input. |
5088 | continue | |
5089 | else | |
5090 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
5091 | sed 's/^/| /' conftest.$ac_ext >&5 |
5092 | ||
503d2be0 AS |
5093 | # Passes both tests. |
5094 | ac_preproc_ok=: | |
5095 | break | |
ba4481b5 | 5096 | fi |
ca81d7a0 | 5097 | |
503d2be0 AS |
5098 | rm -f conftest.err conftest.$ac_ext |
5099 | ||
5100 | done | |
5101 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5102 | rm -f conftest.err conftest.$ac_ext | |
5103 | if $ac_preproc_ok; then | |
5104 | : | |
ba4481b5 | 5105 | else |
19650fd6 AS |
5106 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
5107 | See \`config.log' for more details." >&5 | |
5108 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
5109 | See \`config.log' for more details." >&2;} | |
503d2be0 | 5110 | { (exit 1); exit 1; }; } |
ba4481b5 | 5111 | fi |
503d2be0 AS |
5112 | |
5113 | ac_ext=c | |
5114 | ac_cpp='$CPP $CPPFLAGS' | |
5115 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5116 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5117 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ba4481b5 DL |
5118 | |
5119 | # Find a good install program. We prefer a C program (faster), | |
5120 | # so one script is as good as another. But avoid the broken or | |
5121 | # incompatible versions: | |
5122 | # SysV /etc/install, /usr/sbin/install | |
5123 | # SunOS /usr/etc/install | |
5124 | # IRIX /sbin/install | |
5125 | # AIX /bin/install | |
503d2be0 | 5126 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
c4bb2108 | 5127 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
ba4481b5 DL |
5128 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
5129 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
edfaf76d | 5130 | # OS/2's system install, which has a completely different semantic |
ba4481b5 | 5131 | # ./install, which can be erroneously created by make from ./install.sh. |
ca81d7a0 JD |
5132 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
5133 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } | |
ba4481b5 | 5134 | if test -z "$INSTALL"; then |
503d2be0 AS |
5135 | if test "${ac_cv_path_install+set}" = set; then |
5136 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 5137 | else |
c0d27fcc MR |
5138 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5139 | for as_dir in $PATH | |
5140 | do | |
5141 | IFS=$as_save_IFS | |
5142 | test -z "$as_dir" && as_dir=. | |
5143 | # Account for people who put trailing slashes in PATH elements. | |
5144 | case $as_dir/ in | |
5145 | ./ | .// | /cC/* | \ | |
5146 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
edfaf76d | 5147 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
c0d27fcc MR |
5148 | /usr/ucb/* ) ;; |
5149 | *) | |
5150 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
5151 | # Don't use installbsd from OSF since it installs stuff as root | |
5152 | # by default. | |
5153 | for ac_prog in ginstall scoinst install; do | |
5154 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f053c89f | 5155 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
edfaf76d LK |
5156 | if test $ac_prog = install && |
5157 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
5158 | # AIX install. It has an incompatible calling convention. | |
5159 | : | |
5160 | elif test $ac_prog = install && | |
5161 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
5162 | # program-specific install script used by HP pwplus--don't use. | |
5163 | : | |
5164 | else | |
5165 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
5166 | break 3 | |
5167 | fi | |
5168 | fi | |
ba4481b5 | 5169 | done |
c0d27fcc MR |
5170 | done |
5171 | ;; | |
5172 | esac | |
5173 | done | |
ca81d7a0 | 5174 | IFS=$as_save_IFS |
c0d27fcc | 5175 | |
ba4481b5 DL |
5176 | |
5177 | fi | |
5178 | if test "${ac_cv_path_install+set}" = set; then | |
503d2be0 | 5179 | INSTALL=$ac_cv_path_install |
ba4481b5 | 5180 | else |
ca81d7a0 JD |
5181 | # As a last resort, use the slow shell script. Don't cache a |
5182 | # value for INSTALL within a source directory, because that will | |
ba4481b5 | 5183 | # break other packages using the cache if that directory is |
ca81d7a0 | 5184 | # removed, or if the value is a relative name. |
503d2be0 | 5185 | INSTALL=$ac_install_sh |
ba4481b5 DL |
5186 | fi |
5187 | fi | |
ca81d7a0 JD |
5188 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
5189 | echo "${ECHO_T}$INSTALL" >&6; } | |
ba4481b5 DL |
5190 | |
5191 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
5192 | # It thinks the first close brace ends the variable substitution. | |
5193 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
5194 | ||
503d2be0 | 5195 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
c4bb2108 | 5196 | |
ba4481b5 DL |
5197 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
5198 | ||
c0d27fcc MR |
5199 | if test "x$RANLIB" = x; then |
5200 | if test -n "$ac_tool_prefix"; then | |
5201 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5202 | set dummy ${ac_tool_prefix}ranlib; 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; } | |
c0d27fcc | 5205 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
503d2be0 | 5206 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7397acc4 DL |
5207 | else |
5208 | if test -n "$RANLIB"; then | |
5209 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
5210 | else | |
c0d27fcc MR |
5211 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5212 | for as_dir in $PATH | |
5213 | do | |
5214 | IFS=$as_save_IFS | |
5215 | test -z "$as_dir" && as_dir=. | |
5216 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f053c89f | 5217 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
c0d27fcc MR |
5218 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
5219 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5220 | break 2 | |
5221 | fi | |
5222 | done | |
503d2be0 | 5223 | done |
ca81d7a0 | 5224 | IFS=$as_save_IFS |
503d2be0 | 5225 | |
7397acc4 DL |
5226 | fi |
5227 | fi | |
503d2be0 | 5228 | RANLIB=$ac_cv_prog_RANLIB |
7397acc4 | 5229 | if test -n "$RANLIB"; then |
ca81d7a0 JD |
5230 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
5231 | echo "${ECHO_T}$RANLIB" >&6; } | |
503d2be0 | 5232 | else |
ca81d7a0 JD |
5233 | { echo "$as_me:$LINENO: result: no" >&5 |
5234 | echo "${ECHO_T}no" >&6; } | |
503d2be0 AS |
5235 | fi |
5236 | ||
ca81d7a0 | 5237 | |
503d2be0 AS |
5238 | fi |
5239 | if test -z "$ac_cv_prog_RANLIB"; then | |
5240 | ac_ct_RANLIB=$RANLIB | |
5241 | # Extract the first word of "ranlib", so it can be a program name with args. | |
5242 | set dummy ranlib; 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; } | |
503d2be0 AS |
5245 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
5246 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5247 | else | |
5248 | if test -n "$ac_ct_RANLIB"; then | |
5249 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
5250 | else | |
c0d27fcc MR |
5251 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5252 | for as_dir in $PATH | |
5253 | do | |
5254 | IFS=$as_save_IFS | |
5255 | test -z "$as_dir" && as_dir=. | |
5256 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f053c89f | 5257 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
c0d27fcc MR |
5258 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
5259 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5260 | break 2 | |
5261 | fi | |
5262 | done | |
503d2be0 | 5263 | done |
ca81d7a0 | 5264 | IFS=$as_save_IFS |
503d2be0 | 5265 | |
503d2be0 AS |
5266 | fi |
5267 | fi | |
5268 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
5269 | if test -n "$ac_ct_RANLIB"; then | |
ca81d7a0 JD |
5270 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
5271 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } | |
503d2be0 | 5272 | else |
ca81d7a0 JD |
5273 | { echo "$as_me:$LINENO: result: no" >&5 |
5274 | echo "${ECHO_T}no" >&6; } | |
503d2be0 AS |
5275 | fi |
5276 | ||
ca81d7a0 JD |
5277 | if test "x$ac_ct_RANLIB" = x; then |
5278 | RANLIB=":" | |
5279 | else | |
5280 | case $cross_compiling:$ac_tool_warned in | |
5281 | yes:) | |
5282 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
5283 | whose name does not start with the host triplet. If you think this | |
5284 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
5285 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
5286 | whose name does not start with the host triplet. If you think this | |
5287 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
5288 | ac_tool_warned=yes ;; | |
5289 | esac | |
5290 | RANLIB=$ac_ct_RANLIB | |
5291 | fi | |
7397acc4 | 5292 | else |
503d2be0 | 5293 | RANLIB="$ac_cv_prog_RANLIB" |
7397acc4 DL |
5294 | fi |
5295 | ||
5296 | fi | |
9e71690e DK |
5297 | # Extract the first word of "install-info", so it can be a program name with args. |
5298 | set dummy install-info; ac_word=$2 | |
ca81d7a0 JD |
5299 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5300 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
9e71690e DK |
5301 | if test "${ac_cv_path_INSTALL_INFO+set}" = set; then |
5302 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5303 | else | |
5304 | case $INSTALL_INFO in | |
5305 | [\\/]* | ?:[\\/]*) | |
5306 | ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. | |
5307 | ;; | |
5308 | *) | |
5309 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5310 | for as_dir in $PATH | |
5311 | do | |
5312 | IFS=$as_save_IFS | |
5313 | test -z "$as_dir" && as_dir=. | |
5314 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f053c89f | 5315 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
9e71690e DK |
5316 | ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" |
5317 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5318 | break 2 | |
5319 | fi | |
5320 | done | |
5321 | done | |
ca81d7a0 | 5322 | IFS=$as_save_IFS |
9e71690e DK |
5323 | |
5324 | ;; | |
5325 | esac | |
5326 | fi | |
5327 | INSTALL_INFO=$ac_cv_path_INSTALL_INFO | |
9e71690e | 5328 | if test -n "$INSTALL_INFO"; then |
ca81d7a0 JD |
5329 | { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5 |
5330 | echo "${ECHO_T}$INSTALL_INFO" >&6; } | |
9e71690e | 5331 | else |
ca81d7a0 JD |
5332 | { echo "$as_me:$LINENO: result: no" >&5 |
5333 | echo "${ECHO_T}no" >&6; } | |
9e71690e DK |
5334 | fi |
5335 | ||
ca81d7a0 | 5336 | |
9e71690e DK |
5337 | # Extract the first word of "install-info", so it can be a program name with args. |
5338 | set dummy install-info; ac_word=$2 | |
ca81d7a0 JD |
5339 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5340 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
9e71690e DK |
5341 | if test "${ac_cv_path_INSTALL_INFO+set}" = set; then |
5342 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5343 | else | |
5344 | case $INSTALL_INFO in | |
5345 | [\\/]* | ?:[\\/]*) | |
5346 | ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. | |
5347 | ;; | |
5348 | *) | |
5349 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5350 | for as_dir in /usr/sbin | |
5351 | do | |
5352 | IFS=$as_save_IFS | |
5353 | test -z "$as_dir" && as_dir=. | |
5354 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f053c89f | 5355 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
9e71690e DK |
5356 | ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" |
5357 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5358 | break 2 | |
5359 | fi | |
5360 | done | |
5361 | done | |
ca81d7a0 | 5362 | IFS=$as_save_IFS |
9e71690e DK |
5363 | |
5364 | ;; | |
5365 | esac | |
5366 | fi | |
5367 | INSTALL_INFO=$ac_cv_path_INSTALL_INFO | |
9e71690e | 5368 | if test -n "$INSTALL_INFO"; then |
ca81d7a0 JD |
5369 | { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5 |
5370 | echo "${ECHO_T}$INSTALL_INFO" >&6; } | |
9e71690e | 5371 | else |
ca81d7a0 JD |
5372 | { echo "$as_me:$LINENO: result: no" >&5 |
5373 | echo "${ECHO_T}no" >&6; } | |
9e71690e DK |
5374 | fi |
5375 | ||
ca81d7a0 | 5376 | |
9e71690e DK |
5377 | # Extract the first word of "install-info", so it can be a program name with args. |
5378 | set dummy install-info; ac_word=$2 | |
ca81d7a0 JD |
5379 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5380 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
9e71690e DK |
5381 | if test "${ac_cv_path_INSTALL_INFO+set}" = set; then |
5382 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5383 | else | |
5384 | case $INSTALL_INFO in | |
5385 | [\\/]* | ?:[\\/]*) | |
5386 | ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. | |
5387 | ;; | |
5388 | *) | |
5389 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5390 | for as_dir in /sbin | |
5391 | do | |
5392 | IFS=$as_save_IFS | |
5393 | test -z "$as_dir" && as_dir=. | |
5394 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f053c89f | 5395 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
9e71690e DK |
5396 | ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" |
5397 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5398 | break 2 | |
5399 | fi | |
5400 | done | |
5401 | done | |
ca81d7a0 | 5402 | IFS=$as_save_IFS |
9e71690e DK |
5403 | |
5404 | test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":" | |
5405 | ;; | |
5406 | esac | |
5407 | fi | |
5408 | INSTALL_INFO=$ac_cv_path_INSTALL_INFO | |
9e71690e | 5409 | if test -n "$INSTALL_INFO"; then |
ca81d7a0 JD |
5410 | { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5 |
5411 | echo "${ECHO_T}$INSTALL_INFO" >&6; } | |
9e71690e | 5412 | else |
ca81d7a0 JD |
5413 | { echo "$as_me:$LINENO: result: no" >&5 |
5414 | echo "${ECHO_T}no" >&6; } | |
9e71690e DK |
5415 | fi |
5416 | ||
ca81d7a0 | 5417 | |
8ae52ca6 RF |
5418 | # Extract the first word of "gzip", so it can be a program name with args. |
5419 | set dummy gzip; ac_word=$2 | |
ca81d7a0 JD |
5420 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5421 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
46e35e9f | 5422 | if test "${ac_cv_path_GZIP_PROG+set}" = set; then |
8ae52ca6 RF |
5423 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5424 | else | |
46e35e9f | 5425 | case $GZIP_PROG in |
8ae52ca6 | 5426 | [\\/]* | ?:[\\/]*) |
46e35e9f | 5427 | ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path. |
8ae52ca6 RF |
5428 | ;; |
5429 | *) | |
5430 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5431 | for as_dir in $PATH | |
5432 | do | |
5433 | IFS=$as_save_IFS | |
5434 | test -z "$as_dir" && as_dir=. | |
5435 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f053c89f | 5436 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
46e35e9f | 5437 | ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext" |
8ae52ca6 RF |
5438 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5439 | break 2 | |
5440 | fi | |
5441 | done | |
5442 | done | |
ca81d7a0 | 5443 | IFS=$as_save_IFS |
8ae52ca6 RF |
5444 | |
5445 | ;; | |
5446 | esac | |
5447 | fi | |
46e35e9f | 5448 | GZIP_PROG=$ac_cv_path_GZIP_PROG |
46e35e9f | 5449 | if test -n "$GZIP_PROG"; then |
ca81d7a0 JD |
5450 | { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5 |
5451 | echo "${ECHO_T}$GZIP_PROG" >&6; } | |
8ae52ca6 | 5452 | else |
ca81d7a0 JD |
5453 | { echo "$as_me:$LINENO: result: no" >&5 |
5454 | echo "${ECHO_T}no" >&6; } | |
8ae52ca6 RF |
5455 | fi |
5456 | ||
ba4481b5 | 5457 | |
c0d27fcc | 5458 | |
ca81d7a0 | 5459 | |
1bb9a689 MB |
5460 | ## Need makeinfo >= 4.6 (?) to build the manuals. |
5461 | # Extract the first word of "makeinfo", so it can be a program name with args. | |
5462 | set dummy makeinfo; ac_word=$2 | |
5463 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5464 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
5465 | if test "${ac_cv_path_MAKEINFO+set}" = set; then | |
5466 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5467 | else | |
5468 | case $MAKEINFO in | |
5469 | [\\/]* | ?:[\\/]*) | |
5470 | ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path. | |
5471 | ;; | |
5472 | *) | |
5473 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5474 | for as_dir in $PATH | |
5475 | do | |
5476 | IFS=$as_save_IFS | |
5477 | test -z "$as_dir" && as_dir=. | |
5478 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5479 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5480 | ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext" | |
5481 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5482 | break 2 | |
5483 | fi | |
5484 | done | |
5485 | done | |
5486 | IFS=$as_save_IFS | |
5487 | ||
5488 | test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no" | |
5489 | ;; | |
5490 | esac | |
5491 | fi | |
5492 | MAKEINFO=$ac_cv_path_MAKEINFO | |
5493 | if test -n "$MAKEINFO"; then | |
5494 | { echo "$as_me:$LINENO: result: $MAKEINFO" >&5 | |
5495 | echo "${ECHO_T}$MAKEINFO" >&6; } | |
5496 | else | |
5497 | { echo "$as_me:$LINENO: result: no" >&5 | |
5498 | echo "${ECHO_T}no" >&6; } | |
5499 | fi | |
5500 | ||
5501 | ||
5502 | if test "$MAKEINFO" != "no" && \ | |
d4840f44 | 5503 | test x"`$MAKEINFO --version 2> /dev/null | $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[6-9]|4\.[1-5][0-9]+)'`" = x; then |
1bb9a689 MB |
5504 | MAKEINFO=no |
5505 | fi | |
5506 | ||
e1b89931 GM |
5507 | ## Makeinfo is unusual. For a released Emacs, the manuals are |
5508 | ## pre-built, and not deleted by the normal clean rules. makeinfo is | |
5509 | ## therefore in the category of "special tools" not normally required, which | |
5510 | ## configure does not have to check for (eg autoconf itself). | |
5511 | ## In a CVS checkout on the other hand, the manuals are not included. | |
5512 | ## So makeinfo is a requirement to build from CVS, and configure | |
5513 | ## should test for it as it does for any other build requirement. | |
5514 | ## We use the presence of $srcdir/info/emacs to distinguish a release, | |
5515 | ## with pre-built manuals, from a CVS checkout. | |
5516 | if test "$MAKEINFO" = "no"; then | |
5517 | if test "x${with_makeinfo}" = "xno"; then | |
5518 | MAKEINFO=off | |
5519 | elif ! test -e $srcdir/info/emacs; then | |
5520 | { { echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your | |
5521 | source tree does not seem to have pre-built manuals in the \`info' directory. | |
921fbdf0 | 5522 | Either install a suitable version of makeinfo, or re-run configure |
e1b89931 GM |
5523 | with the \`--without-makeinfo' option to build without the manuals. " >&5 |
5524 | echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your | |
5525 | source tree does not seem to have pre-built manuals in the \`info' directory. | |
921fbdf0 | 5526 | Either install a suitable version of makeinfo, or re-run configure |
e1b89931 | 5527 | with the \`--without-makeinfo' option to build without the manuals. " >&2;} |
1bb9a689 | 5528 | { (exit 1); exit 1; }; } |
e1b89931 | 5529 | fi |
921fbdf0 | 5530 | fi |
1bb9a689 MB |
5531 | |
5532 | ||
8e967cf7 MR |
5533 | if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x |
5534 | then | |
5535 | ac_link="$ac_link $GCC_LINK_TEST_OPTIONS" | |
5536 | fi | |
5537 | ||
5538 | if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x | |
5539 | then | |
5540 | ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS" | |
5541 | fi | |
5542 | ||
c0d27fcc | 5543 | |
fe239f0f | 5544 | late_LDFLAGS=$LDFLAGS |
4af002d6 | 5545 | if test "$GCC" = yes; then |
fe239f0f AS |
5546 | LDFLAGS="$LDFLAGS -Wl,-znocombreloc" |
5547 | else | |
5548 | LDFLAGS="$LDFLAGS -znocombreloc" | |
5549 | fi | |
5550 | ||
ca81d7a0 JD |
5551 | { echo "$as_me:$LINENO: checking for -znocombreloc" >&5 |
5552 | echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; } | |
fe239f0f AS |
5553 | cat >conftest.$ac_ext <<_ACEOF |
5554 | main(){return 0;} | |
5555 | _ACEOF | |
5556 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
5557 | if { (ac_try="$ac_link" |
5558 | case "(($ac_try" in | |
5559 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5560 | *) ac_try_echo=$ac_try;; | |
5561 | esac | |
5562 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5563 | (eval "$ac_link") 2>conftest.er1 | |
fe239f0f | 5564 | ac_status=$? |
edfaf76d LK |
5565 | grep -v '^ *+' conftest.er1 >conftest.err |
5566 | rm -f conftest.er1 | |
5567 | cat conftest.err >&5 | |
fe239f0f | 5568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
5569 | (exit $ac_status); } && { |
5570 | test -z "$ac_c_werror_flag" || | |
5571 | test ! -s conftest.err | |
5572 | } && test -s conftest$ac_exeext && | |
5573 | $as_test_x conftest$ac_exeext; then | |
ca81d7a0 JD |
5574 | { echo "$as_me:$LINENO: result: yes" >&5 |
5575 | echo "${ECHO_T}yes" >&6; } | |
fe239f0f AS |
5576 | else |
5577 | echo "$as_me: failed program was:" >&5 | |
5578 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5579 | ||
ca81d7a0 JD |
5580 | LDFLAGS=$late_LDFLAGS |
5581 | { echo "$as_me:$LINENO: result: no" >&5 | |
5582 | echo "${ECHO_T}no" >&6; } | |
fe239f0f | 5583 | fi |
ca81d7a0 | 5584 | |
f053c89f | 5585 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 5586 | conftest$ac_exeext conftest.$ac_ext |
fe239f0f | 5587 | |
3b33a005 DL |
5588 | #### Extract some information from the operating system and machine files. |
5589 | ||
c0d27fcc | 5590 | { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out |
3b33a005 | 5591 | - which libraries the lib-src programs will want, and |
503d2be0 AS |
5592 | - whether the GNU malloc routines are usable..." >&5 |
5593 | echo "$as_me: checking the machine- and system-dependent files to find out | |
3b33a005 | 5594 | - which libraries the lib-src programs will want, and |
503d2be0 | 5595 | - whether the GNU malloc routines are usable..." >&6;} |
3b33a005 DL |
5596 | |
5597 | ### First figure out CFLAGS (which we use for running the compiler here) | |
5598 | ### and REAL_CFLAGS (which we use for real compilation). | |
5599 | ### The two are the same except on a few systems, where they are made | |
5600 | ### different to work around various lossages. For example, | |
5601 | ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g | |
5602 | ### as implying static linking. | |
5603 | ||
5604 | ### If the CFLAGS env var is specified, we use that value | |
5605 | ### instead of the default. | |
5606 | ||
5607 | ### It's not important that this name contain the PID; you can't run | |
5608 | ### two configures in the same directory and have anything work | |
5609 | ### anyway. | |
5610 | tempcname="conftest.c" | |
5611 | ||
5612 | echo ' | |
5613 | #include "'${srcdir}'/src/'${opsysfile}'" | |
5614 | #include "'${srcdir}'/src/'${machfile}'" | |
5615 | #ifndef LIBS_MACHINE | |
5616 | #define LIBS_MACHINE | |
5617 | #endif | |
5618 | #ifndef LIBS_SYSTEM | |
5619 | #define LIBS_SYSTEM | |
5620 | #endif | |
5621 | #ifndef C_SWITCH_SYSTEM | |
5622 | #define C_SWITCH_SYSTEM | |
5623 | #endif | |
5624 | #ifndef C_SWITCH_MACHINE | |
5625 | #define C_SWITCH_MACHINE | |
5626 | #endif | |
5627 | configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM | |
5628 | configure___ c_switch_system=C_SWITCH_SYSTEM | |
5629 | configure___ c_switch_machine=C_SWITCH_MACHINE | |
5630 | ||
5631 | #ifndef LIB_X11_LIB | |
5632 | #define LIB_X11_LIB -lX11 | |
5633 | #endif | |
5634 | ||
3b33a005 DL |
5635 | #ifndef LIBX11_SYSTEM |
5636 | #define LIBX11_SYSTEM | |
5637 | #endif | |
9d2818d6 | 5638 | configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM |
3b33a005 DL |
5639 | |
5640 | #ifdef UNEXEC | |
5641 | configure___ unexec=UNEXEC | |
5642 | #else | |
5643 | configure___ unexec=unexec.o | |
5644 | #endif | |
5645 | ||
5646 | #ifdef SYSTEM_MALLOC | |
5647 | configure___ system_malloc=yes | |
5648 | #else | |
5649 | configure___ system_malloc=no | |
5650 | #endif | |
5651 | ||
ef9e4345 GM |
5652 | #ifdef USE_MMAP_FOR_BUFFERS |
5653 | configure___ use_mmap_for_buffers=yes | |
73b77ee5 | 5654 | #else |
ef9e4345 | 5655 | configure___ use_mmap_for_buffers=no |
73b77ee5 GM |
5656 | #endif |
5657 | ||
3b33a005 DL |
5658 | #ifndef C_DEBUG_SWITCH |
5659 | #define C_DEBUG_SWITCH -g | |
5660 | #endif | |
5661 | ||
5662 | #ifndef C_OPTIMIZE_SWITCH | |
5663 | #ifdef __GNUC__ | |
5664 | #define C_OPTIMIZE_SWITCH -O2 | |
5665 | #else | |
5666 | #define C_OPTIMIZE_SWITCH -O | |
5667 | #endif | |
5668 | #endif | |
5669 | ||
01abe918 CY |
5670 | #ifndef C_WARNINGS_SWITCH |
5671 | #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH} | |
5672 | #endif | |
5673 | ||
3b33a005 DL |
5674 | #ifndef LD_SWITCH_MACHINE |
5675 | #define LD_SWITCH_MACHINE | |
5676 | #endif | |
5677 | ||
5678 | #ifndef LD_SWITCH_SYSTEM | |
5679 | #define LD_SWITCH_SYSTEM | |
5680 | #endif | |
5681 | ||
5682 | #ifndef LD_SWITCH_X_SITE_AUX | |
5683 | #define LD_SWITCH_X_SITE_AUX | |
503d2be0 | 5684 | #endif |
3b33a005 DL |
5685 | |
5686 | configure___ ld_switch_system=LD_SWITCH_SYSTEM | |
5687 | configure___ ld_switch_machine=LD_SWITCH_MACHINE | |
5688 | ||
5689 | #ifdef THIS_IS_CONFIGURE | |
5690 | ||
5691 | /* Get the CFLAGS for tests in configure. */ | |
5692 | #ifdef __GNUC__ | |
5693 | configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}' | |
5694 | #else | |
5695 | configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}' | |
5696 | #endif | |
5697 | ||
5698 | #else /* not THIS_IS_CONFIGURE */ | |
5699 | ||
5700 | /* Get the CFLAGS for real compilation. */ | |
5701 | #ifdef __GNUC__ | |
01abe918 | 5702 | configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}' |
3b33a005 DL |
5703 | #else |
5704 | configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}' | |
5705 | #endif | |
5706 | ||
5707 | #endif /* not THIS_IS_CONFIGURE */ | |
5708 | ' > ${tempcname} | |
5709 | ||
5710 | # The value of CPP is a quoted variable reference, so we need to do this | |
5711 | # to get its actual value... | |
5712 | CPP=`eval "echo $CPP"` | |
5713 | eval `${CPP} -Isrc ${tempcname} \ | |
5714 | | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'` | |
5715 | if test "x$SPECIFIED_CFLAGS" = x; then | |
5716 | eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \ | |
5717 | | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'` | |
5718 | else | |
5719 | REAL_CFLAGS="$CFLAGS" | |
5720 | fi | |
5721 | rm ${tempcname} | |
5722 | ||
5723 | ac_link="$ac_link $ld_switch_machine $ld_switch_system" | |
5724 | ||
5725 | ### Make sure subsequent tests use flags consistent with the build flags. | |
5726 | ||
5727 | if test x"${OVERRIDE_CPPFLAGS}" != x; then | |
5728 | CPPFLAGS="${OVERRIDE_CPPFLAGS}" | |
5729 | else | |
5730 | CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS" | |
5731 | fi | |
5732 | ||
6bae0ccf DL |
5733 | |
5734 | ||
ca81d7a0 | 5735 | # Check whether --enable-largefile was given. |
f4988be7 | 5736 | if test "${enable_largefile+set}" = set; then |
ca81d7a0 JD |
5737 | enableval=$enable_largefile; |
5738 | fi | |
f4988be7 | 5739 | |
503d2be0 | 5740 | if test "$enable_largefile" != no; then |
f4988be7 | 5741 | |
ca81d7a0 JD |
5742 | { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 |
5743 | echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; } | |
503d2be0 AS |
5744 | if test "${ac_cv_sys_largefile_CC+set}" = set; then |
5745 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 5746 | else |
f4988be7 | 5747 | ac_cv_sys_largefile_CC=no |
503d2be0 AS |
5748 | if test "$GCC" != yes; then |
5749 | ac_save_CC=$CC | |
5750 | while :; do | |
ca81d7a0 JD |
5751 | # IRIX 6.2 and later do not support large files by default, |
5752 | # so use the C compiler's -n32 option if that helps. | |
edfaf76d | 5753 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
5754 | /* confdefs.h. */ |
5755 | _ACEOF | |
5756 | cat confdefs.h >>conftest.$ac_ext | |
5757 | cat >>conftest.$ac_ext <<_ACEOF | |
5758 | /* end confdefs.h. */ | |
f4988be7 | 5759 | #include <sys/types.h> |
503d2be0 AS |
5760 | /* Check that off_t can represent 2**63 - 1 correctly. |
5761 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
5762 | since some C++ compilers masquerading as C compilers | |
5763 | incorrectly reject 9223372036854775807. */ | |
5764 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
5765 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
5766 | && LARGE_OFF_T % 2147483647 == 1) | |
5767 | ? 1 : -1]; | |
5768 | int | |
5769 | main () | |
5770 | { | |
f4988be7 | 5771 | |
503d2be0 AS |
5772 | ; |
5773 | return 0; | |
5774 | } | |
5775 | _ACEOF | |
ca81d7a0 JD |
5776 | rm -f conftest.$ac_objext |
5777 | if { (ac_try="$ac_compile" | |
5778 | case "(($ac_try" in | |
5779 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5780 | *) ac_try_echo=$ac_try;; | |
5781 | esac | |
5782 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5783 | (eval "$ac_compile") 2>conftest.er1 | |
503d2be0 | 5784 | ac_status=$? |
edfaf76d LK |
5785 | grep -v '^ *+' conftest.er1 >conftest.err |
5786 | rm -f conftest.er1 | |
5787 | cat conftest.err >&5 | |
c0d27fcc | 5788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
5789 | (exit $ac_status); } && { |
5790 | test -z "$ac_c_werror_flag" || | |
5791 | test ! -s conftest.err | |
5792 | } && test -s conftest.$ac_objext; then | |
503d2be0 | 5793 | break |
b192d653 | 5794 | else |
503d2be0 | 5795 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
5796 | sed 's/^/| /' conftest.$ac_ext >&5 |
5797 | ||
ca81d7a0 | 5798 | |
503d2be0 | 5799 | fi |
ca81d7a0 JD |
5800 | |
5801 | rm -f core conftest.err conftest.$ac_objext | |
5802 | CC="$CC -n32" | |
5803 | rm -f conftest.$ac_objext | |
5804 | if { (ac_try="$ac_compile" | |
5805 | case "(($ac_try" in | |
5806 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5807 | *) ac_try_echo=$ac_try;; | |
5808 | esac | |
5809 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5810 | (eval "$ac_compile") 2>conftest.er1 | |
503d2be0 | 5811 | ac_status=$? |
edfaf76d LK |
5812 | grep -v '^ *+' conftest.er1 >conftest.err |
5813 | rm -f conftest.er1 | |
5814 | cat conftest.err >&5 | |
c0d27fcc | 5815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
5816 | (exit $ac_status); } && { |
5817 | test -z "$ac_c_werror_flag" || | |
5818 | test ! -s conftest.err | |
5819 | } && test -s conftest.$ac_objext; then | |
503d2be0 AS |
5820 | ac_cv_sys_largefile_CC=' -n32'; break |
5821 | else | |
5822 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
5823 | sed 's/^/| /' conftest.$ac_ext >&5 |
5824 | ||
ca81d7a0 | 5825 | |
503d2be0 | 5826 | fi |
ca81d7a0 JD |
5827 | |
5828 | rm -f core conftest.err conftest.$ac_objext | |
edfaf76d | 5829 | break |
503d2be0 AS |
5830 | done |
5831 | CC=$ac_save_CC | |
5832 | rm -f conftest.$ac_ext | |
5833 | fi | |
b192d653 | 5834 | fi |
ca81d7a0 JD |
5835 | { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 |
5836 | echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; } | |
503d2be0 AS |
5837 | if test "$ac_cv_sys_largefile_CC" != no; then |
5838 | CC=$CC$ac_cv_sys_largefile_CC | |
5839 | fi | |
b192d653 | 5840 | |
ca81d7a0 JD |
5841 | { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
5842 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; } | |
503d2be0 AS |
5843 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then |
5844 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 5845 | else |
503d2be0 | 5846 | while :; do |
503d2be0 | 5847 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
5848 | /* confdefs.h. */ |
5849 | _ACEOF | |
5850 | cat confdefs.h >>conftest.$ac_ext | |
5851 | cat >>conftest.$ac_ext <<_ACEOF | |
5852 | /* end confdefs.h. */ | |
f4988be7 | 5853 | #include <sys/types.h> |
503d2be0 AS |
5854 | /* Check that off_t can represent 2**63 - 1 correctly. |
5855 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
5856 | since some C++ compilers masquerading as C compilers | |
5857 | incorrectly reject 9223372036854775807. */ | |
5858 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
5859 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
5860 | && LARGE_OFF_T % 2147483647 == 1) | |
5861 | ? 1 : -1]; | |
5862 | int | |
5863 | main () | |
5864 | { | |
f4988be7 | 5865 | |
503d2be0 AS |
5866 | ; |
5867 | return 0; | |
5868 | } | |
5869 | _ACEOF | |
5870 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
5871 | if { (ac_try="$ac_compile" |
5872 | case "(($ac_try" in | |
5873 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5874 | *) ac_try_echo=$ac_try;; | |
5875 | esac | |
5876 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5877 | (eval "$ac_compile") 2>conftest.er1 | |
503d2be0 | 5878 | ac_status=$? |
edfaf76d LK |
5879 | grep -v '^ *+' conftest.er1 >conftest.err |
5880 | rm -f conftest.er1 | |
5881 | cat conftest.err >&5 | |
c0d27fcc | 5882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
5883 | (exit $ac_status); } && { |
5884 | test -z "$ac_c_werror_flag" || | |
5885 | test ! -s conftest.err | |
5886 | } && test -s conftest.$ac_objext; then | |
5887 | ac_cv_sys_file_offset_bits=no; break | |
f4988be7 | 5888 | else |
503d2be0 | 5889 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
5890 | sed 's/^/| /' conftest.$ac_ext >&5 |
5891 | ||
ca81d7a0 | 5892 | |
503d2be0 | 5893 | fi |
ca81d7a0 JD |
5894 | |
5895 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
503d2be0 | 5896 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
5897 | /* confdefs.h. */ |
5898 | _ACEOF | |
5899 | cat confdefs.h >>conftest.$ac_ext | |
5900 | cat >>conftest.$ac_ext <<_ACEOF | |
5901 | /* end confdefs.h. */ | |
f4988be7 GM |
5902 | #define _FILE_OFFSET_BITS 64 |
5903 | #include <sys/types.h> | |
503d2be0 AS |
5904 | /* Check that off_t can represent 2**63 - 1 correctly. |
5905 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
5906 | since some C++ compilers masquerading as C compilers | |
5907 | incorrectly reject 9223372036854775807. */ | |
5908 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
5909 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
5910 | && LARGE_OFF_T % 2147483647 == 1) | |
5911 | ? 1 : -1]; | |
5912 | int | |
5913 | main () | |
5914 | { | |
5915 | ||
5916 | ; | |
5917 | return 0; | |
5918 | } | |
5919 | _ACEOF | |
5920 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
5921 | if { (ac_try="$ac_compile" |
5922 | case "(($ac_try" in | |
5923 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5924 | *) ac_try_echo=$ac_try;; | |
5925 | esac | |
5926 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5927 | (eval "$ac_compile") 2>conftest.er1 | |
503d2be0 | 5928 | ac_status=$? |
edfaf76d LK |
5929 | grep -v '^ *+' conftest.er1 >conftest.err |
5930 | rm -f conftest.er1 | |
5931 | cat conftest.err >&5 | |
c0d27fcc | 5932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
5933 | (exit $ac_status); } && { |
5934 | test -z "$ac_c_werror_flag" || | |
5935 | test ! -s conftest.err | |
5936 | } && test -s conftest.$ac_objext; then | |
503d2be0 AS |
5937 | ac_cv_sys_file_offset_bits=64; break |
5938 | else | |
5939 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
5940 | sed 's/^/| /' conftest.$ac_ext >&5 |
5941 | ||
ca81d7a0 | 5942 | |
503d2be0 | 5943 | fi |
ca81d7a0 JD |
5944 | |
5945 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f053c89f | 5946 | ac_cv_sys_file_offset_bits=unknown |
503d2be0 AS |
5947 | break |
5948 | done | |
ba4481b5 | 5949 | fi |
ca81d7a0 JD |
5950 | { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 |
5951 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; } | |
f053c89f CY |
5952 | case $ac_cv_sys_file_offset_bits in #( |
5953 | no | unknown) ;; | |
5954 | *) | |
c0d27fcc | 5955 | cat >>confdefs.h <<_ACEOF |
f4988be7 | 5956 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
c0d27fcc | 5957 | _ACEOF |
f053c89f CY |
5958 | ;; |
5959 | esac | |
503d2be0 | 5960 | rm -f conftest* |
f053c89f CY |
5961 | if test $ac_cv_sys_file_offset_bits = unknown; then |
5962 | { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | |
ca81d7a0 | 5963 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; } |
503d2be0 AS |
5964 | if test "${ac_cv_sys_large_files+set}" = set; then |
5965 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 5966 | else |
503d2be0 | 5967 | while :; do |
503d2be0 | 5968 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
5969 | /* confdefs.h. */ |
5970 | _ACEOF | |
5971 | cat confdefs.h >>conftest.$ac_ext | |
5972 | cat >>conftest.$ac_ext <<_ACEOF | |
5973 | /* end confdefs.h. */ | |
503d2be0 AS |
5974 | #include <sys/types.h> |
5975 | /* Check that off_t can represent 2**63 - 1 correctly. | |
5976 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
5977 | since some C++ compilers masquerading as C compilers | |
5978 | incorrectly reject 9223372036854775807. */ | |
5979 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
5980 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
5981 | && LARGE_OFF_T % 2147483647 == 1) | |
5982 | ? 1 : -1]; | |
5983 | int | |
5984 | main () | |
5985 | { | |
ba4481b5 | 5986 | |
503d2be0 AS |
5987 | ; |
5988 | return 0; | |
5989 | } | |
5990 | _ACEOF | |
5991 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
5992 | if { (ac_try="$ac_compile" |
5993 | case "(($ac_try" in | |
5994 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5995 | *) ac_try_echo=$ac_try;; | |
5996 | esac | |
5997 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5998 | (eval "$ac_compile") 2>conftest.er1 | |
503d2be0 | 5999 | ac_status=$? |
edfaf76d LK |
6000 | grep -v '^ *+' conftest.er1 >conftest.err |
6001 | rm -f conftest.er1 | |
6002 | cat conftest.err >&5 | |
c0d27fcc | 6003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
6004 | (exit $ac_status); } && { |
6005 | test -z "$ac_c_werror_flag" || | |
6006 | test ! -s conftest.err | |
6007 | } && test -s conftest.$ac_objext; then | |
6008 | ac_cv_sys_large_files=no; break | |
ba4481b5 | 6009 | else |
503d2be0 | 6010 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
6011 | sed 's/^/| /' conftest.$ac_ext >&5 |
6012 | ||
ca81d7a0 | 6013 | |
503d2be0 | 6014 | fi |
ca81d7a0 JD |
6015 | |
6016 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
503d2be0 | 6017 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
6018 | /* confdefs.h. */ |
6019 | _ACEOF | |
6020 | cat confdefs.h >>conftest.$ac_ext | |
6021 | cat >>conftest.$ac_ext <<_ACEOF | |
6022 | /* end confdefs.h. */ | |
f4988be7 | 6023 | #define _LARGE_FILES 1 |
503d2be0 AS |
6024 | #include <sys/types.h> |
6025 | /* Check that off_t can represent 2**63 - 1 correctly. | |
6026 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
6027 | since some C++ compilers masquerading as C compilers | |
6028 | incorrectly reject 9223372036854775807. */ | |
6029 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
6030 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
6031 | && LARGE_OFF_T % 2147483647 == 1) | |
6032 | ? 1 : -1]; | |
6033 | int | |
6034 | main () | |
6035 | { | |
f4988be7 | 6036 | |
503d2be0 AS |
6037 | ; |
6038 | return 0; | |
6039 | } | |
6040 | _ACEOF | |
6041 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
6042 | if { (ac_try="$ac_compile" |
6043 | case "(($ac_try" in | |
6044 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6045 | *) ac_try_echo=$ac_try;; | |
6046 | esac | |
6047 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6048 | (eval "$ac_compile") 2>conftest.er1 | |
503d2be0 | 6049 | ac_status=$? |
edfaf76d LK |
6050 | grep -v '^ *+' conftest.er1 >conftest.err |
6051 | rm -f conftest.er1 | |
6052 | cat conftest.err >&5 | |
c0d27fcc | 6053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
6054 | (exit $ac_status); } && { |
6055 | test -z "$ac_c_werror_flag" || | |
6056 | test ! -s conftest.err | |
6057 | } && test -s conftest.$ac_objext; then | |
503d2be0 AS |
6058 | ac_cv_sys_large_files=1; break |
6059 | else | |
6060 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
6061 | sed 's/^/| /' conftest.$ac_ext >&5 |
6062 | ||
ca81d7a0 | 6063 | |
503d2be0 | 6064 | fi |
ca81d7a0 JD |
6065 | |
6066 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f053c89f | 6067 | ac_cv_sys_large_files=unknown |
503d2be0 AS |
6068 | break |
6069 | done | |
ba4481b5 | 6070 | fi |
ca81d7a0 JD |
6071 | { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 |
6072 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6; } | |
f053c89f CY |
6073 | case $ac_cv_sys_large_files in #( |
6074 | no | unknown) ;; | |
6075 | *) | |
c0d27fcc | 6076 | cat >>confdefs.h <<_ACEOF |
f4988be7 | 6077 | #define _LARGE_FILES $ac_cv_sys_large_files |
c0d27fcc | 6078 | _ACEOF |
f053c89f CY |
6079 | ;; |
6080 | esac | |
503d2be0 | 6081 | rm -f conftest* |
f053c89f | 6082 | fi |
503d2be0 | 6083 | fi |
ba4481b5 | 6084 | |
c0d27fcc | 6085 | |
439f58ee | 6086 | |
55e6d9b2 | 6087 | ### The standard library on x86-64 and s390x GNU/Linux distributions can |
bc5d9888 CY |
6088 | ### be located in either /usr/lib64 or /usr/lib. |
6089 | case "${canonical}" in | |
55e6d9b2 | 6090 | x86_64-*-linux-gnu* | s390x-*-linux-gnu* ) |
bc5d9888 CY |
6091 | if test -d /usr/lib64; then |
6092 | ||
6093 | cat >>confdefs.h <<\_ACEOF | |
55e6d9b2 | 6094 | #define HAVE_LIB64_DIR 1 |
bc5d9888 CY |
6095 | _ACEOF |
6096 | ||
6097 | fi | |
6098 | esac | |
6099 | ||
439f58ee JD |
6100 | |
6101 | ||
6102 | ||
2c9dccc9 PJ |
6103 | if test "${with_sound}" != "no"; then |
6104 | # Sound support for GNU/Linux and the free BSDs. | |
c0d27fcc MR |
6105 | |
6106 | ||
6107 | ||
6108 | for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h | |
6109 | do | |
6110 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
ca81d7a0 JD |
6111 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
6112 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6113 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
6114 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
c0d27fcc MR |
6115 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6116 | fi | |
ca81d7a0 JD |
6117 | ac_res=`eval echo '${'$as_ac_Header'}'` |
6118 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6119 | echo "${ECHO_T}$ac_res" >&6; } | |
c0d27fcc MR |
6120 | else |
6121 | # Is the header compilable? | |
ca81d7a0 JD |
6122 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
6123 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
c0d27fcc | 6124 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
6125 | /* confdefs.h. */ |
6126 | _ACEOF | |
6127 | cat confdefs.h >>conftest.$ac_ext | |
6128 | cat >>conftest.$ac_ext <<_ACEOF | |
6129 | /* end confdefs.h. */ | |
c0d27fcc | 6130 | $ac_includes_default |
98418dba | 6131 | #include <$ac_header> |
503d2be0 | 6132 | _ACEOF |
c0d27fcc | 6133 | rm -f conftest.$ac_objext |
ca81d7a0 JD |
6134 | if { (ac_try="$ac_compile" |
6135 | case "(($ac_try" in | |
6136 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6137 | *) ac_try_echo=$ac_try;; | |
6138 | esac | |
6139 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6140 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 6141 | ac_status=$? |
edfaf76d LK |
6142 | grep -v '^ *+' conftest.er1 >conftest.err |
6143 | rm -f conftest.er1 | |
6144 | cat conftest.err >&5 | |
c0d27fcc | 6145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
6146 | (exit $ac_status); } && { |
6147 | test -z "$ac_c_werror_flag" || | |
6148 | test ! -s conftest.err | |
6149 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
6150 | ac_header_compiler=yes |
6151 | else | |
6152 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
6153 | sed 's/^/| /' conftest.$ac_ext >&5 |
6154 | ||
ca81d7a0 | 6155 | ac_header_compiler=no |
c0d27fcc | 6156 | fi |
ca81d7a0 JD |
6157 | |
6158 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6159 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6160 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
6161 | |
6162 | # Is the header present? | |
ca81d7a0 JD |
6163 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
6164 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
c0d27fcc | 6165 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
6166 | /* confdefs.h. */ |
6167 | _ACEOF | |
6168 | cat confdefs.h >>conftest.$ac_ext | |
6169 | cat >>conftest.$ac_ext <<_ACEOF | |
6170 | /* end confdefs.h. */ | |
c0d27fcc MR |
6171 | #include <$ac_header> |
6172 | _ACEOF | |
ca81d7a0 JD |
6173 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
6174 | case "(($ac_try" in | |
6175 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6176 | *) ac_try_echo=$ac_try;; | |
6177 | esac | |
6178 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6179 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 6180 | ac_status=$? |
6bae0ccf | 6181 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
6182 | rm -f conftest.er1 |
6183 | cat conftest.err >&5 | |
c0d27fcc | 6184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
6185 | (exit $ac_status); } >/dev/null && { |
6186 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
6187 | test ! -s conftest.err | |
6188 | }; then | |
c0d27fcc | 6189 | ac_header_preproc=yes |
f4988be7 | 6190 | else |
503d2be0 | 6191 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
6192 | sed 's/^/| /' conftest.$ac_ext >&5 |
6193 | ||
c0d27fcc | 6194 | ac_header_preproc=no |
f4988be7 | 6195 | fi |
ca81d7a0 | 6196 | |
98418dba | 6197 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
6198 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
6199 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
6200 | |
6201 | # So? What about this header? | |
edfaf76d LK |
6202 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
6203 | yes:no: ) | |
c0d27fcc MR |
6204 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
6205 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
6206 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
6207 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6208 | ac_header_preproc=yes | |
19650fd6 | 6209 | ;; |
edfaf76d | 6210 | no:yes:* ) |
c0d27fcc MR |
6211 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
6212 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
edfaf76d LK |
6213 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
6214 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6215 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6216 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6217 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6218 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 6219 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 6220 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
6221 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
6222 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 6223 | |
19650fd6 | 6224 | ;; |
c0d27fcc | 6225 | esac |
ca81d7a0 JD |
6226 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6227 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
6228 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
c0d27fcc MR |
6229 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6230 | else | |
edfaf76d | 6231 | eval "$as_ac_Header=\$ac_header_preproc" |
f4988be7 | 6232 | fi |
ca81d7a0 JD |
6233 | ac_res=`eval echo '${'$as_ac_Header'}'` |
6234 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6235 | echo "${ECHO_T}$ac_res" >&6; } | |
c0d27fcc MR |
6236 | |
6237 | fi | |
98418dba | 6238 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 6239 | cat >>confdefs.h <<_ACEOF |
98418dba | 6240 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 6241 | _ACEOF |
f4988be7 GM |
6242 | |
6243 | fi | |
c0d27fcc | 6244 | |
98418dba CW |
6245 | done |
6246 | ||
6247 | # Emulation library used on NetBSD. | |
ca81d7a0 JD |
6248 | { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5 |
6249 | echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; } | |
98418dba | 6250 | if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then |
503d2be0 | 6251 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
f4988be7 | 6252 | else |
98418dba CW |
6253 | ac_check_lib_save_LIBS=$LIBS |
6254 | LIBS="-lossaudio $LIBS" | |
6255 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
6256 | /* confdefs.h. */ |
6257 | _ACEOF | |
6258 | cat confdefs.h >>conftest.$ac_ext | |
6259 | cat >>conftest.$ac_ext <<_ACEOF | |
6260 | /* end confdefs.h. */ | |
98418dba | 6261 | |
ca81d7a0 JD |
6262 | /* Override any GCC internal prototype to avoid an error. |
6263 | Use char because int might match the return type of a GCC | |
6264 | builtin and then its argument prototype would still apply. */ | |
98418dba CW |
6265 | #ifdef __cplusplus |
6266 | extern "C" | |
f4988be7 | 6267 | #endif |
98418dba | 6268 | char _oss_ioctl (); |
503d2be0 AS |
6269 | int |
6270 | main () | |
6271 | { | |
ca81d7a0 | 6272 | return _oss_ioctl (); |
503d2be0 AS |
6273 | ; |
6274 | return 0; | |
6275 | } | |
6276 | _ACEOF | |
98418dba | 6277 | rm -f conftest.$ac_objext conftest$ac_exeext |
ca81d7a0 JD |
6278 | if { (ac_try="$ac_link" |
6279 | case "(($ac_try" in | |
6280 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6281 | *) ac_try_echo=$ac_try;; | |
6282 | esac | |
6283 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6284 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 6285 | ac_status=$? |
edfaf76d LK |
6286 | grep -v '^ *+' conftest.er1 >conftest.err |
6287 | rm -f conftest.er1 | |
6288 | cat conftest.err >&5 | |
c0d27fcc | 6289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
6290 | (exit $ac_status); } && { |
6291 | test -z "$ac_c_werror_flag" || | |
6292 | test ! -s conftest.err | |
6293 | } && test -s conftest$ac_exeext && | |
6294 | $as_test_x conftest$ac_exeext; then | |
98418dba | 6295 | ac_cv_lib_ossaudio__oss_ioctl=yes |
f4988be7 | 6296 | else |
503d2be0 | 6297 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
6298 | sed 's/^/| /' conftest.$ac_ext >&5 |
6299 | ||
ca81d7a0 | 6300 | ac_cv_lib_ossaudio__oss_ioctl=no |
f4988be7 | 6301 | fi |
ca81d7a0 | 6302 | |
f053c89f | 6303 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 6304 | conftest$ac_exeext conftest.$ac_ext |
98418dba | 6305 | LIBS=$ac_check_lib_save_LIBS |
f4988be7 | 6306 | fi |
ca81d7a0 JD |
6307 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5 |
6308 | echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; } | |
98418dba CW |
6309 | if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then |
6310 | LIBSOUND=-lossaudio | |
6311 | else | |
6312 | LIBSOUND= | |
6313 | fi | |
6314 | ||
c0d27fcc | 6315 | |
439f58ee JD |
6316 | |
6317 | ALSA_REQUIRED=1.0.0 | |
6318 | ALSA_MODULES="alsa >= $ALSA_REQUIRED" | |
439f58ee JD |
6319 | |
6320 | succeeded=no | |
6321 | ||
00b9c927 | 6322 | # Extract the first word of "pkg-config", so it can be a program name with args. |
439f58ee | 6323 | set dummy pkg-config; ac_word=$2 |
ca81d7a0 JD |
6324 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6325 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
439f58ee JD |
6326 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
6327 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6328 | else | |
6329 | case $PKG_CONFIG in | |
6330 | [\\/]* | ?:[\\/]*) | |
6331 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
6332 | ;; | |
6333 | *) | |
6334 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6335 | for as_dir in $PATH | |
6336 | do | |
6337 | IFS=$as_save_IFS | |
6338 | test -z "$as_dir" && as_dir=. | |
6339 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f053c89f | 6340 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
439f58ee JD |
6341 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
6342 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6343 | break 2 | |
6344 | fi | |
6345 | done | |
6346 | done | |
ca81d7a0 | 6347 | IFS=$as_save_IFS |
439f58ee JD |
6348 | |
6349 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
6350 | ;; | |
6351 | esac | |
6352 | fi | |
6353 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
439f58ee | 6354 | if test -n "$PKG_CONFIG"; then |
ca81d7a0 JD |
6355 | { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
6356 | echo "${ECHO_T}$PKG_CONFIG" >&6; } | |
439f58ee | 6357 | else |
ca81d7a0 JD |
6358 | { echo "$as_me:$LINENO: result: no" >&5 |
6359 | echo "${ECHO_T}no" >&6; } | |
439f58ee JD |
6360 | fi |
6361 | ||
ca81d7a0 | 6362 | |
439f58ee JD |
6363 | |
6364 | if test "$PKG_CONFIG" = "no" ; then | |
6365 | HAVE_ALSA=no | |
6366 | else | |
6367 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
6368 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
ca81d7a0 JD |
6369 | { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5 |
6370 | echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; } | |
439f58ee | 6371 | |
67db6aa2 | 6372 | if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then |
ca81d7a0 JD |
6373 | { echo "$as_me:$LINENO: result: yes" >&5 |
6374 | echo "${ECHO_T}yes" >&6; } | |
439f58ee JD |
6375 | succeeded=yes |
6376 | ||
ca81d7a0 JD |
6377 | { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5 |
6378 | echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; } | |
94315858 | 6379 | ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'` |
ca81d7a0 JD |
6380 | { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5 |
6381 | echo "${ECHO_T}$ALSA_CFLAGS" >&6; } | |
439f58ee | 6382 | |
ca81d7a0 JD |
6383 | { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5 |
6384 | echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; } | |
94315858 | 6385 | ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'` |
ca81d7a0 JD |
6386 | { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5 |
6387 | echo "${ECHO_T}$ALSA_LIBS" >&6; } | |
439f58ee | 6388 | else |
ca81d7a0 JD |
6389 | { echo "$as_me:$LINENO: result: no" >&5 |
6390 | echo "${ECHO_T}no" >&6; } | |
439f58ee JD |
6391 | ALSA_CFLAGS="" |
6392 | ALSA_LIBS="" | |
6393 | ## If we have a custom action on failure, don't print errors, but | |
6394 | ## do set a variable so people can do so. | |
6395 | ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"` | |
6396 | ||
6397 | fi | |
6398 | ||
6399 | ||
6400 | ||
6401 | else | |
6402 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
6403 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
6404 | fi | |
6405 | fi | |
6406 | ||
6407 | if test $succeeded = yes; then | |
6408 | HAVE_ALSA=yes | |
6409 | else | |
6410 | HAVE_ALSA=no | |
6411 | fi | |
6412 | ||
6413 | if test $HAVE_ALSA = yes; then | |
ca81d7a0 JD |
6414 | SAVE_CFLAGS="$CFLAGS" |
6415 | SAVE_LDFLAGS="$LDFLAGS" | |
6416 | CFLAGS="$ALSA_CFLAGS $CFLAGS" | |
6417 | LDFLAGS="$ALSA_LIBS $LDFLAGS" | |
6418 | cat >conftest.$ac_ext <<_ACEOF | |
6419 | /* confdefs.h. */ | |
6420 | _ACEOF | |
6421 | cat confdefs.h >>conftest.$ac_ext | |
6422 | cat >>conftest.$ac_ext <<_ACEOF | |
6423 | /* end confdefs.h. */ | |
6424 | #include <asoundlib.h> | |
6425 | int | |
6426 | main () | |
6427 | { | |
6428 | snd_lib_error_set_handler (0); | |
6429 | ; | |
6430 | return 0; | |
6431 | } | |
6432 | _ACEOF | |
6433 | rm -f conftest.$ac_objext | |
6434 | if { (ac_try="$ac_compile" | |
6435 | case "(($ac_try" in | |
6436 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6437 | *) ac_try_echo=$ac_try;; | |
6438 | esac | |
6439 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6440 | (eval "$ac_compile") 2>conftest.er1 | |
6441 | ac_status=$? | |
6442 | grep -v '^ *+' conftest.er1 >conftest.err | |
6443 | rm -f conftest.er1 | |
6444 | cat conftest.err >&5 | |
6445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f053c89f CY |
6446 | (exit $ac_status); } && { |
6447 | test -z "$ac_c_werror_flag" || | |
6448 | test ! -s conftest.err | |
6449 | } && test -s conftest.$ac_objext; then | |
ca81d7a0 JD |
6450 | emacs_alsa_normal=yes |
6451 | else | |
6452 | echo "$as_me: failed program was:" >&5 | |
6453 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6454 | ||
6455 | emacs_alsa_normal=no | |
6456 | fi | |
6457 | ||
6458 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6459 | if test "$emacs_alsa_normal" != yes; then | |
6460 | cat >conftest.$ac_ext <<_ACEOF | |
6461 | /* confdefs.h. */ | |
6462 | _ACEOF | |
6463 | cat confdefs.h >>conftest.$ac_ext | |
6464 | cat >>conftest.$ac_ext <<_ACEOF | |
6465 | /* end confdefs.h. */ | |
6466 | #include <alsa/asoundlib.h> | |
6467 | int | |
6468 | main () | |
6469 | { | |
6470 | snd_lib_error_set_handler (0); | |
6471 | ; | |
6472 | return 0; | |
6473 | } | |
6474 | _ACEOF | |
6475 | rm -f conftest.$ac_objext | |
6476 | if { (ac_try="$ac_compile" | |
6477 | case "(($ac_try" in | |
6478 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6479 | *) ac_try_echo=$ac_try;; | |
6480 | esac | |
6481 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6482 | (eval "$ac_compile") 2>conftest.er1 | |
6483 | ac_status=$? | |
6484 | grep -v '^ *+' conftest.er1 >conftest.err | |
6485 | rm -f conftest.er1 | |
6486 | cat conftest.err >&5 | |
6487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f053c89f CY |
6488 | (exit $ac_status); } && { |
6489 | test -z "$ac_c_werror_flag" || | |
6490 | test ! -s conftest.err | |
6491 | } && test -s conftest.$ac_objext; then | |
ca81d7a0 JD |
6492 | emacs_alsa_subdir=yes |
6493 | else | |
6494 | echo "$as_me: failed program was:" >&5 | |
6495 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6496 | ||
6497 | emacs_alsa_subdir=no | |
6498 | fi | |
6499 | ||
6500 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6501 | if test "$emacs_alsa_subdir" != yes; then | |
6502 | { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5 | |
6503 | echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;} | |
6504 | { (exit 1); exit 1; }; } | |
6505 | fi | |
6506 | ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE" | |
6507 | fi | |
6508 | ||
6509 | CFLAGS="$SAVE_CFLAGS" | |
6510 | LDFLAGS="$SAVE_LDFLAGS" | |
439f58ee JD |
6511 | LIBSOUND="$LIBSOUND $ALSA_LIBS" |
6512 | CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS" | |
6513 | ||
6514 | cat >>confdefs.h <<\_ACEOF | |
6515 | #define HAVE_ALSA 1 | |
6516 | _ACEOF | |
6517 | ||
6518 | fi | |
6519 | ||
f4988be7 | 6520 | fi |
c0d27fcc MR |
6521 | |
6522 | ||
6523 | ||
6524 | ||
6525 | ||
6526 | ||
6527 | ||
6528 | ||
6529 | ||
6530 | ||
6531 | ||
6532 | ||
6533 | ||
6534 | ||
6535 | ||
6536 | ||
6537 | ||
6538 | ||
22044edf DL |
6539 | |
6540 | ||
973a76b1 | 6541 | |
cffcede7 | 6542 | |
551ffc27 | 6543 | |
226e2359 | 6544 | |
c0d27fcc | 6545 | |
f4988be7 | 6546 | |
98418dba CW |
6547 | for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \ |
6548 | linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \ | |
25ca0bca | 6549 | termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \ |
551ffc27 | 6550 | sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \ |
226e2359 | 6551 | sys/utsname.h pwd.h |
98418dba CW |
6552 | do |
6553 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
ca81d7a0 JD |
6554 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
6555 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6556 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
6557 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 6558 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc | 6559 | fi |
ca81d7a0 JD |
6560 | ac_res=`eval echo '${'$as_ac_Header'}'` |
6561 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6562 | echo "${ECHO_T}$ac_res" >&6; } | |
f4988be7 | 6563 | else |
c0d27fcc | 6564 | # Is the header compilable? |
ca81d7a0 JD |
6565 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
6566 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
c0d27fcc | 6567 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
6568 | /* confdefs.h. */ |
6569 | _ACEOF | |
6570 | cat confdefs.h >>conftest.$ac_ext | |
6571 | cat >>conftest.$ac_ext <<_ACEOF | |
6572 | /* end confdefs.h. */ | |
c0d27fcc MR |
6573 | $ac_includes_default |
6574 | #include <$ac_header> | |
6575 | _ACEOF | |
6576 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
6577 | if { (ac_try="$ac_compile" |
6578 | case "(($ac_try" in | |
6579 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6580 | *) ac_try_echo=$ac_try;; | |
6581 | esac | |
6582 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6583 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 6584 | ac_status=$? |
edfaf76d LK |
6585 | grep -v '^ *+' conftest.er1 >conftest.err |
6586 | rm -f conftest.er1 | |
6587 | cat conftest.err >&5 | |
c0d27fcc | 6588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
6589 | (exit $ac_status); } && { |
6590 | test -z "$ac_c_werror_flag" || | |
6591 | test ! -s conftest.err | |
6592 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
6593 | ac_header_compiler=yes |
6594 | else | |
6595 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
6596 | sed 's/^/| /' conftest.$ac_ext >&5 |
6597 | ||
ca81d7a0 | 6598 | ac_header_compiler=no |
c0d27fcc | 6599 | fi |
ca81d7a0 JD |
6600 | |
6601 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6602 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6603 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
6604 | |
6605 | # Is the header present? | |
ca81d7a0 JD |
6606 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
6607 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
c0d27fcc | 6608 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
6609 | /* confdefs.h. */ |
6610 | _ACEOF | |
6611 | cat confdefs.h >>conftest.$ac_ext | |
6612 | cat >>conftest.$ac_ext <<_ACEOF | |
6613 | /* end confdefs.h. */ | |
98418dba | 6614 | #include <$ac_header> |
503d2be0 | 6615 | _ACEOF |
ca81d7a0 JD |
6616 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
6617 | case "(($ac_try" in | |
6618 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6619 | *) ac_try_echo=$ac_try;; | |
6620 | esac | |
6621 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6622 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 6623 | ac_status=$? |
6bae0ccf | 6624 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
6625 | rm -f conftest.er1 |
6626 | cat conftest.err >&5 | |
c0d27fcc | 6627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
6628 | (exit $ac_status); } >/dev/null && { |
6629 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
6630 | test ! -s conftest.err | |
6631 | }; then | |
c0d27fcc | 6632 | ac_header_preproc=yes |
34ec9ebe | 6633 | else |
503d2be0 | 6634 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
6635 | sed 's/^/| /' conftest.$ac_ext >&5 |
6636 | ||
c0d27fcc | 6637 | ac_header_preproc=no |
34ec9ebe | 6638 | fi |
ca81d7a0 | 6639 | |
98418dba | 6640 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
6641 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
6642 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
6643 | |
6644 | # So? What about this header? | |
edfaf76d LK |
6645 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
6646 | yes:no: ) | |
c0d27fcc MR |
6647 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
6648 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
6649 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
6650 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6651 | ac_header_preproc=yes | |
19650fd6 | 6652 | ;; |
edfaf76d | 6653 | no:yes:* ) |
c0d27fcc MR |
6654 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
6655 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
edfaf76d LK |
6656 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
6657 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6658 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6659 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6660 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6661 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 6662 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 6663 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
6664 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
6665 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 6666 | |
19650fd6 | 6667 | ;; |
c0d27fcc | 6668 | esac |
ca81d7a0 JD |
6669 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6670 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
6671 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
c0d27fcc MR |
6672 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6673 | else | |
edfaf76d | 6674 | eval "$as_ac_Header=\$ac_header_preproc" |
34ec9ebe | 6675 | fi |
ca81d7a0 JD |
6676 | ac_res=`eval echo '${'$as_ac_Header'}'` |
6677 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6678 | echo "${ECHO_T}$ac_res" >&6; } | |
c0d27fcc MR |
6679 | |
6680 | fi | |
98418dba | 6681 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 6682 | cat >>confdefs.h <<_ACEOF |
98418dba | 6683 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 6684 | _ACEOF |
34ec9ebe | 6685 | |
98418dba | 6686 | fi |
c0d27fcc | 6687 | |
98418dba CW |
6688 | done |
6689 | ||
22044edf | 6690 | |
ca81d7a0 JD |
6691 | { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5 |
6692 | echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; } | |
f17e308a JD |
6693 | cat >conftest.$ac_ext <<_ACEOF |
6694 | /* confdefs.h. */ | |
6695 | _ACEOF | |
6696 | cat confdefs.h >>conftest.$ac_ext | |
6697 | cat >>conftest.$ac_ext <<_ACEOF | |
6698 | /* end confdefs.h. */ | |
6699 | #include <sys/personality.h> | |
6700 | int | |
6701 | main () | |
6702 | { | |
6703 | personality (PER_LINUX32) | |
6704 | ; | |
6705 | return 0; | |
6706 | } | |
6707 | _ACEOF | |
6708 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
6709 | if { (ac_try="$ac_compile" |
6710 | case "(($ac_try" in | |
6711 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6712 | *) ac_try_echo=$ac_try;; | |
6713 | esac | |
6714 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6715 | (eval "$ac_compile") 2>conftest.er1 | |
f17e308a | 6716 | ac_status=$? |
edfaf76d LK |
6717 | grep -v '^ *+' conftest.er1 >conftest.err |
6718 | rm -f conftest.er1 | |
6719 | cat conftest.err >&5 | |
f17e308a | 6720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
6721 | (exit $ac_status); } && { |
6722 | test -z "$ac_c_werror_flag" || | |
6723 | test ! -s conftest.err | |
6724 | } && test -s conftest.$ac_objext; then | |
f17e308a JD |
6725 | emacs_cv_personality_linux32=yes |
6726 | else | |
6727 | echo "$as_me: failed program was:" >&5 | |
6728 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6729 | ||
ca81d7a0 | 6730 | emacs_cv_personality_linux32=no |
f17e308a | 6731 | fi |
ca81d7a0 JD |
6732 | |
6733 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6734 | { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5 | |
6735 | echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; } | |
f17e308a JD |
6736 | |
6737 | if test $emacs_cv_personality_linux32 = yes; then | |
6738 | ||
6739 | cat >>confdefs.h <<\_ACEOF | |
6740 | #define HAVE_PERSONALITY_LINUX32 1 | |
6741 | _ACEOF | |
6742 | ||
6743 | fi | |
6744 | ||
6745 | ||
22044edf DL |
6746 | for ac_header in term.h |
6747 | do | |
6748 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
ca81d7a0 JD |
6749 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6750 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
6751 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
22044edf DL |
6752 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6753 | else | |
6754 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
6755 | /* confdefs.h. */ |
6756 | _ACEOF | |
6757 | cat confdefs.h >>conftest.$ac_ext | |
6758 | cat >>conftest.$ac_ext <<_ACEOF | |
6759 | /* end confdefs.h. */ | |
22044edf DL |
6760 | #include <$ac_header> |
6761 | _ACEOF | |
ca81d7a0 JD |
6762 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
6763 | case "(($ac_try" in | |
6764 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6765 | *) ac_try_echo=$ac_try;; | |
6766 | esac | |
6767 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6768 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
22044edf DL |
6769 | ac_status=$? |
6770 | grep -v '^ *+' conftest.er1 >conftest.err | |
6771 | rm -f conftest.er1 | |
6772 | cat conftest.err >&5 | |
6773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f053c89f CY |
6774 | (exit $ac_status); } >/dev/null && { |
6775 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
6776 | test ! -s conftest.err | |
6777 | }; then | |
22044edf DL |
6778 | eval "$as_ac_Header=yes" |
6779 | else | |
6780 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
6781 | sed 's/^/| /' conftest.$ac_ext >&5 |
6782 | ||
22044edf DL |
6783 | eval "$as_ac_Header=no" |
6784 | fi | |
ca81d7a0 | 6785 | |
22044edf DL |
6786 | rm -f conftest.err conftest.$ac_ext |
6787 | fi | |
ca81d7a0 JD |
6788 | ac_res=`eval echo '${'$as_ac_Header'}'` |
6789 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6790 | echo "${ECHO_T}$ac_res" >&6; } | |
22044edf DL |
6791 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
6792 | cat >>confdefs.h <<_ACEOF | |
6793 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6794 | _ACEOF | |
6795 | ||
6796 | fi | |
6797 | ||
6798 | done | |
6799 | ||
ca81d7a0 JD |
6800 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
6801 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } | |
98418dba | 6802 | if test "${ac_cv_header_stdc+set}" = set; then |
503d2be0 | 6803 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 6804 | else |
503d2be0 | 6805 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
6806 | /* confdefs.h. */ |
6807 | _ACEOF | |
6808 | cat confdefs.h >>conftest.$ac_ext | |
6809 | cat >>conftest.$ac_ext <<_ACEOF | |
6810 | /* end confdefs.h. */ | |
98418dba CW |
6811 | #include <stdlib.h> |
6812 | #include <stdarg.h> | |
6813 | #include <string.h> | |
6814 | #include <float.h> | |
6815 | ||
19650fd6 AS |
6816 | int |
6817 | main () | |
6818 | { | |
6819 | ||
6820 | ; | |
6821 | return 0; | |
6822 | } | |
98418dba | 6823 | _ACEOF |
19650fd6 | 6824 | rm -f conftest.$ac_objext |
ca81d7a0 JD |
6825 | if { (ac_try="$ac_compile" |
6826 | case "(($ac_try" in | |
6827 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6828 | *) ac_try_echo=$ac_try;; | |
6829 | esac | |
6830 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6831 | (eval "$ac_compile") 2>conftest.er1 | |
cd958eb3 | 6832 | ac_status=$? |
edfaf76d LK |
6833 | grep -v '^ *+' conftest.er1 >conftest.err |
6834 | rm -f conftest.er1 | |
6835 | cat conftest.err >&5 | |
cd958eb3 | 6836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
6837 | (exit $ac_status); } && { |
6838 | test -z "$ac_c_werror_flag" || | |
6839 | test ! -s conftest.err | |
6840 | } && test -s conftest.$ac_objext; then | |
98418dba | 6841 | ac_cv_header_stdc=yes |
ba4481b5 | 6842 | else |
503d2be0 | 6843 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
6844 | sed 's/^/| /' conftest.$ac_ext >&5 |
6845 | ||
ca81d7a0 | 6846 | ac_cv_header_stdc=no |
ba4481b5 | 6847 | fi |
ca81d7a0 JD |
6848 | |
6849 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
98418dba CW |
6850 | |
6851 | if test $ac_cv_header_stdc = yes; then | |
6852 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
6853 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
6854 | /* confdefs.h. */ |
6855 | _ACEOF | |
6856 | cat confdefs.h >>conftest.$ac_ext | |
6857 | cat >>conftest.$ac_ext <<_ACEOF | |
6858 | /* end confdefs.h. */ | |
98418dba CW |
6859 | #include <string.h> |
6860 | ||
6861 | _ACEOF | |
6862 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6bae0ccf | 6863 | $EGREP "memchr" >/dev/null 2>&1; then |
98418dba CW |
6864 | : |
6865 | else | |
6866 | ac_cv_header_stdc=no | |
ba4481b5 | 6867 | fi |
98418dba | 6868 | rm -f conftest* |
ba4481b5 DL |
6869 | |
6870 | fi | |
6871 | ||
98418dba CW |
6872 | if test $ac_cv_header_stdc = yes; then |
6873 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
6874 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
6875 | /* confdefs.h. */ |
6876 | _ACEOF | |
6877 | cat confdefs.h >>conftest.$ac_ext | |
6878 | cat >>conftest.$ac_ext <<_ACEOF | |
6879 | /* end confdefs.h. */ | |
98418dba CW |
6880 | #include <stdlib.h> |
6881 | ||
6882 | _ACEOF | |
6883 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6bae0ccf | 6884 | $EGREP "free" >/dev/null 2>&1; then |
98418dba CW |
6885 | : |
6886 | else | |
6887 | ac_cv_header_stdc=no | |
6888 | fi | |
6889 | rm -f conftest* | |
6890 | ||
6891 | fi | |
6892 | ||
6893 | if test $ac_cv_header_stdc = yes; then | |
6894 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
6895 | if test "$cross_compiling" = yes; then | |
6896 | : | |
d42122a3 | 6897 | else |
503d2be0 | 6898 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
6899 | /* confdefs.h. */ |
6900 | _ACEOF | |
6901 | cat confdefs.h >>conftest.$ac_ext | |
6902 | cat >>conftest.$ac_ext <<_ACEOF | |
6903 | /* end confdefs.h. */ | |
98418dba | 6904 | #include <ctype.h> |
ca81d7a0 | 6905 | #include <stdlib.h> |
98418dba CW |
6906 | #if ((' ' & 0x0FF) == 0x020) |
6907 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
6908 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
6909 | #else | |
19650fd6 | 6910 | # define ISLOWER(c) \ |
edfaf76d LK |
6911 | (('a' <= (c) && (c) <= 'i') \ |
6912 | || ('j' <= (c) && (c) <= 'r') \ | |
6913 | || ('s' <= (c) && (c) <= 'z')) | |
98418dba CW |
6914 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
6915 | #endif | |
6916 | ||
6917 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
503d2be0 AS |
6918 | int |
6919 | main () | |
6920 | { | |
98418dba CW |
6921 | int i; |
6922 | for (i = 0; i < 256; i++) | |
6923 | if (XOR (islower (i), ISLOWER (i)) | |
edfaf76d | 6924 | || toupper (i) != TOUPPER (i)) |
ca81d7a0 JD |
6925 | return 2; |
6926 | return 0; | |
503d2be0 AS |
6927 | } |
6928 | _ACEOF | |
98418dba | 6929 | rm -f conftest$ac_exeext |
ca81d7a0 JD |
6930 | if { (ac_try="$ac_link" |
6931 | case "(($ac_try" in | |
6932 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6933 | *) ac_try_echo=$ac_try;; | |
6934 | esac | |
6935 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6936 | (eval "$ac_link") 2>&5 | |
503d2be0 | 6937 | ac_status=$? |
c0d27fcc | 6938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 6939 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
ca81d7a0 JD |
6940 | { (case "(($ac_try" in |
6941 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6942 | *) ac_try_echo=$ac_try;; | |
6943 | esac | |
6944 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6945 | (eval "$ac_try") 2>&5 | |
503d2be0 | 6946 | ac_status=$? |
c0d27fcc | 6947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 6948 | (exit $ac_status); }; }; then |
98418dba | 6949 | : |
d42122a3 | 6950 | else |
98418dba CW |
6951 | echo "$as_me: program exited with status $ac_status" >&5 |
6952 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
6953 | sed 's/^/| /' conftest.$ac_ext >&5 |
6954 | ||
c0d27fcc | 6955 | ( exit $ac_status ) |
98418dba | 6956 | ac_cv_header_stdc=no |
d42122a3 | 6957 | fi |
ca81d7a0 | 6958 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
d42122a3 | 6959 | fi |
ca81d7a0 JD |
6960 | |
6961 | ||
98418dba CW |
6962 | fi |
6963 | fi | |
ca81d7a0 JD |
6964 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
6965 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } | |
98418dba CW |
6966 | if test $ac_cv_header_stdc = yes; then |
6967 | ||
c0d27fcc | 6968 | cat >>confdefs.h <<\_ACEOF |
98418dba | 6969 | #define STDC_HEADERS 1 |
c0d27fcc | 6970 | _ACEOF |
d42122a3 DL |
6971 | |
6972 | fi | |
6973 | ||
ca81d7a0 JD |
6974 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
6975 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } | |
98418dba | 6976 | if test "${ac_cv_header_time+set}" = set; then |
503d2be0 | 6977 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 6978 | else |
503d2be0 | 6979 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
6980 | /* confdefs.h. */ |
6981 | _ACEOF | |
6982 | cat confdefs.h >>conftest.$ac_ext | |
6983 | cat >>conftest.$ac_ext <<_ACEOF | |
6984 | /* end confdefs.h. */ | |
ba4481b5 | 6985 | #include <sys/types.h> |
98418dba | 6986 | #include <sys/time.h> |
ba4481b5 | 6987 | #include <time.h> |
503d2be0 AS |
6988 | |
6989 | int | |
6990 | main () | |
6991 | { | |
98418dba CW |
6992 | if ((struct tm *) 0) |
6993 | return 0; | |
503d2be0 AS |
6994 | ; |
6995 | return 0; | |
6996 | } | |
6997 | _ACEOF | |
6998 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
6999 | if { (ac_try="$ac_compile" |
7000 | case "(($ac_try" in | |
7001 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7002 | *) ac_try_echo=$ac_try;; | |
7003 | esac | |
7004 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7005 | (eval "$ac_compile") 2>conftest.er1 | |
503d2be0 | 7006 | ac_status=$? |
edfaf76d LK |
7007 | grep -v '^ *+' conftest.er1 >conftest.err |
7008 | rm -f conftest.er1 | |
7009 | cat conftest.err >&5 | |
c0d27fcc | 7010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
7011 | (exit $ac_status); } && { |
7012 | test -z "$ac_c_werror_flag" || | |
7013 | test ! -s conftest.err | |
7014 | } && test -s conftest.$ac_objext; then | |
98418dba | 7015 | ac_cv_header_time=yes |
ba4481b5 | 7016 | else |
503d2be0 | 7017 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
7018 | sed 's/^/| /' conftest.$ac_ext >&5 |
7019 | ||
ca81d7a0 | 7020 | ac_cv_header_time=no |
ba4481b5 | 7021 | fi |
ca81d7a0 JD |
7022 | |
7023 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ba4481b5 | 7024 | fi |
ca81d7a0 JD |
7025 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
7026 | echo "${ECHO_T}$ac_cv_header_time" >&6; } | |
98418dba | 7027 | if test $ac_cv_header_time = yes; then |
503d2be0 | 7028 | |
c0d27fcc | 7029 | cat >>confdefs.h <<\_ACEOF |
98418dba | 7030 | #define TIME_WITH_SYS_TIME 1 |
c0d27fcc | 7031 | _ACEOF |
ba4481b5 DL |
7032 | |
7033 | fi | |
7034 | ||
ca81d7a0 JD |
7035 | { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5 |
7036 | echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; } | |
cd958eb3 | 7037 | if test "${ac_cv_have_decl_sys_siglist+set}" = set; then |
503d2be0 | 7038 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 7039 | else |
503d2be0 | 7040 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
7041 | /* confdefs.h. */ |
7042 | _ACEOF | |
7043 | cat confdefs.h >>conftest.$ac_ext | |
7044 | cat >>conftest.$ac_ext <<_ACEOF | |
7045 | /* end confdefs.h. */ | |
cd958eb3 MB |
7046 | $ac_includes_default |
7047 | int | |
7048 | main () | |
7049 | { | |
7050 | #ifndef sys_siglist | |
f053c89f | 7051 | (void) sys_siglist; |
98418dba | 7052 | #endif |
503d2be0 | 7053 | |
cd958eb3 MB |
7054 | ; |
7055 | return 0; | |
7056 | } | |
7057 | _ACEOF | |
7058 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
7059 | if { (ac_try="$ac_compile" |
7060 | case "(($ac_try" in | |
7061 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7062 | *) ac_try_echo=$ac_try;; | |
7063 | esac | |
7064 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7065 | (eval "$ac_compile") 2>conftest.er1 | |
cd958eb3 | 7066 | ac_status=$? |
edfaf76d LK |
7067 | grep -v '^ *+' conftest.er1 >conftest.err |
7068 | rm -f conftest.er1 | |
7069 | cat conftest.err >&5 | |
cd958eb3 | 7070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
7071 | (exit $ac_status); } && { |
7072 | test -z "$ac_c_werror_flag" || | |
7073 | test ! -s conftest.err | |
7074 | } && test -s conftest.$ac_objext; then | |
cd958eb3 MB |
7075 | ac_cv_have_decl_sys_siglist=yes |
7076 | else | |
7077 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
7078 | sed 's/^/| /' conftest.$ac_ext >&5 |
7079 | ||
ca81d7a0 | 7080 | ac_cv_have_decl_sys_siglist=no |
cd958eb3 | 7081 | fi |
ca81d7a0 JD |
7082 | |
7083 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
cd958eb3 | 7084 | fi |
ca81d7a0 JD |
7085 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5 |
7086 | echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; } | |
cd958eb3 MB |
7087 | if test $ac_cv_have_decl_sys_siglist = yes; then |
7088 | ||
7089 | cat >>confdefs.h <<_ACEOF | |
7090 | #define HAVE_DECL_SYS_SIGLIST 1 | |
7091 | _ACEOF | |
7092 | ||
7093 | ||
7094 | else | |
7095 | cat >>confdefs.h <<_ACEOF | |
7096 | #define HAVE_DECL_SYS_SIGLIST 0 | |
7097 | _ACEOF | |
7098 | ||
7099 | ||
7100 | fi | |
7101 | ||
7102 | ||
7103 | if test $ac_cv_have_decl_sys_siglist != yes; then | |
7104 | # For Tru64, at least: | |
ca81d7a0 JD |
7105 | { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5 |
7106 | echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; } | |
cd958eb3 MB |
7107 | if test "${ac_cv_have_decl___sys_siglist+set}" = set; then |
7108 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7109 | else | |
7110 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
7111 | /* confdefs.h. */ |
7112 | _ACEOF | |
7113 | cat confdefs.h >>conftest.$ac_ext | |
7114 | cat >>conftest.$ac_ext <<_ACEOF | |
7115 | /* end confdefs.h. */ | |
cd958eb3 | 7116 | $ac_includes_default |
503d2be0 AS |
7117 | int |
7118 | main () | |
7119 | { | |
cd958eb3 | 7120 | #ifndef __sys_siglist |
f053c89f | 7121 | (void) __sys_siglist; |
cd958eb3 MB |
7122 | #endif |
7123 | ||
503d2be0 AS |
7124 | ; |
7125 | return 0; | |
7126 | } | |
7127 | _ACEOF | |
7128 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
7129 | if { (ac_try="$ac_compile" |
7130 | case "(($ac_try" in | |
7131 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7132 | *) ac_try_echo=$ac_try;; | |
7133 | esac | |
7134 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7135 | (eval "$ac_compile") 2>conftest.er1 | |
503d2be0 | 7136 | ac_status=$? |
edfaf76d LK |
7137 | grep -v '^ *+' conftest.er1 >conftest.err |
7138 | rm -f conftest.er1 | |
7139 | cat conftest.err >&5 | |
c0d27fcc | 7140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
7141 | (exit $ac_status); } && { |
7142 | test -z "$ac_c_werror_flag" || | |
7143 | test ! -s conftest.err | |
7144 | } && test -s conftest.$ac_objext; then | |
cd958eb3 | 7145 | ac_cv_have_decl___sys_siglist=yes |
ba4481b5 | 7146 | else |
503d2be0 | 7147 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
7148 | sed 's/^/| /' conftest.$ac_ext >&5 |
7149 | ||
ca81d7a0 | 7150 | ac_cv_have_decl___sys_siglist=no |
ba4481b5 | 7151 | fi |
ca81d7a0 JD |
7152 | |
7153 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
503d2be0 | 7154 | fi |
ca81d7a0 JD |
7155 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5 |
7156 | echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; } | |
cd958eb3 | 7157 | if test $ac_cv_have_decl___sys_siglist = yes; then |
503d2be0 | 7158 | |
cd958eb3 MB |
7159 | cat >>confdefs.h <<_ACEOF |
7160 | #define HAVE_DECL___SYS_SIGLIST 1 | |
7161 | _ACEOF | |
7162 | ||
7163 | ||
7164 | else | |
7165 | cat >>confdefs.h <<_ACEOF | |
7166 | #define HAVE_DECL___SYS_SIGLIST 0 | |
c0d27fcc | 7167 | _ACEOF |
503d2be0 | 7168 | |
cd958eb3 | 7169 | |
ba4481b5 DL |
7170 | fi |
7171 | ||
cd958eb3 MB |
7172 | |
7173 | if test $ac_cv_have_decl___sys_siglist = yes; then | |
7174 | ||
7175 | cat >>confdefs.h <<\_ACEOF | |
7176 | #define sys_siglist __sys_siglist | |
7177 | _ACEOF | |
7178 | ||
7179 | fi | |
7180 | fi | |
ca81d7a0 JD |
7181 | { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
7182 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } | |
98418dba | 7183 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
503d2be0 | 7184 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 7185 | else |
503d2be0 | 7186 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
7187 | /* confdefs.h. */ |
7188 | _ACEOF | |
7189 | cat confdefs.h >>conftest.$ac_ext | |
7190 | cat >>conftest.$ac_ext <<_ACEOF | |
7191 | /* end confdefs.h. */ | |
98418dba CW |
7192 | #include <sys/types.h> |
7193 | #include <sys/wait.h> | |
7194 | #ifndef WEXITSTATUS | |
ca81d7a0 | 7195 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
98418dba CW |
7196 | #endif |
7197 | #ifndef WIFEXITED | |
7198 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
ba4481b5 | 7199 | #endif |
503d2be0 AS |
7200 | |
7201 | int | |
7202 | main () | |
7203 | { | |
98418dba CW |
7204 | int s; |
7205 | wait (&s); | |
7206 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
503d2be0 AS |
7207 | ; |
7208 | return 0; | |
7209 | } | |
7210 | _ACEOF | |
98418dba | 7211 | rm -f conftest.$ac_objext |
ca81d7a0 JD |
7212 | if { (ac_try="$ac_compile" |
7213 | case "(($ac_try" in | |
7214 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7215 | *) ac_try_echo=$ac_try;; | |
7216 | esac | |
7217 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7218 | (eval "$ac_compile") 2>conftest.er1 | |
503d2be0 | 7219 | ac_status=$? |
edfaf76d LK |
7220 | grep -v '^ *+' conftest.er1 >conftest.err |
7221 | rm -f conftest.er1 | |
7222 | cat conftest.err >&5 | |
c0d27fcc | 7223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
7224 | (exit $ac_status); } && { |
7225 | test -z "$ac_c_werror_flag" || | |
7226 | test ! -s conftest.err | |
7227 | } && test -s conftest.$ac_objext; then | |
98418dba | 7228 | ac_cv_header_sys_wait_h=yes |
ba4481b5 | 7229 | else |
503d2be0 | 7230 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
7231 | sed 's/^/| /' conftest.$ac_ext >&5 |
7232 | ||
ca81d7a0 | 7233 | ac_cv_header_sys_wait_h=no |
ba4481b5 | 7234 | fi |
ca81d7a0 JD |
7235 | |
7236 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ba4481b5 | 7237 | fi |
ca81d7a0 JD |
7238 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
7239 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } | |
98418dba | 7240 | if test $ac_cv_header_sys_wait_h = yes; then |
503d2be0 | 7241 | |
c0d27fcc | 7242 | cat >>confdefs.h <<\_ACEOF |
98418dba | 7243 | #define HAVE_SYS_WAIT_H 1 |
c0d27fcc | 7244 | _ACEOF |
ba4481b5 | 7245 | |
ba4481b5 DL |
7246 | fi |
7247 | ||
c0d27fcc | 7248 | |
ca81d7a0 JD |
7249 | { echo "$as_me:$LINENO: checking for struct utimbuf" >&5 |
7250 | echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; } | |
98418dba | 7251 | if test "${emacs_cv_struct_utimbuf+set}" = set; then |
503d2be0 | 7252 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1113b624 | 7253 | else |
503d2be0 | 7254 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
7255 | /* confdefs.h. */ |
7256 | _ACEOF | |
7257 | cat confdefs.h >>conftest.$ac_ext | |
7258 | cat >>conftest.$ac_ext <<_ACEOF | |
7259 | /* end confdefs.h. */ | |
98418dba CW |
7260 | #ifdef TIME_WITH_SYS_TIME |
7261 | #include <sys/time.h> | |
7262 | #include <time.h> | |
7263 | #else | |
7264 | #ifdef HAVE_SYS_TIME_H | |
7265 | #include <sys/time.h> | |
7266 | #else | |
1113b624 | 7267 | #include <time.h> |
98418dba CW |
7268 | #endif |
7269 | #endif | |
7270 | #ifdef HAVE_UTIME_H | |
7271 | #include <utime.h> | |
7272 | #endif | |
503d2be0 AS |
7273 | int |
7274 | main () | |
7275 | { | |
98418dba | 7276 | static struct utimbuf x; x.actime = x.modtime; |
503d2be0 AS |
7277 | ; |
7278 | return 0; | |
7279 | } | |
7280 | _ACEOF | |
98418dba | 7281 | rm -f conftest.$ac_objext |
ca81d7a0 JD |
7282 | if { (ac_try="$ac_compile" |
7283 | case "(($ac_try" in | |
7284 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7285 | *) ac_try_echo=$ac_try;; | |
7286 | esac | |
7287 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7288 | (eval "$ac_compile") 2>conftest.er1 | |
503d2be0 | 7289 | ac_status=$? |
edfaf76d LK |
7290 | grep -v '^ *+' conftest.er1 >conftest.err |
7291 | rm -f conftest.er1 | |
7292 | cat conftest.err >&5 | |
c0d27fcc | 7293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
7294 | (exit $ac_status); } && { |
7295 | test -z "$ac_c_werror_flag" || | |
7296 | test ! -s conftest.err | |
7297 | } && test -s conftest.$ac_objext; then | |
98418dba | 7298 | emacs_cv_struct_utimbuf=yes |
1113b624 | 7299 | else |
503d2be0 | 7300 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
7301 | sed 's/^/| /' conftest.$ac_ext >&5 |
7302 | ||
ca81d7a0 | 7303 | emacs_cv_struct_utimbuf=no |
1113b624 | 7304 | fi |
ca81d7a0 JD |
7305 | |
7306 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1113b624 | 7307 | fi |
ca81d7a0 JD |
7308 | { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5 |
7309 | echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; } | |
98418dba | 7310 | if test $emacs_cv_struct_utimbuf = yes; then |
b936fae4 | 7311 | |
c0d27fcc | 7312 | cat >>confdefs.h <<\_ACEOF |
98418dba | 7313 | #define HAVE_STRUCT_UTIMBUF 1 |
c0d27fcc | 7314 | _ACEOF |
1113b624 PE |
7315 | |
7316 | fi | |
ba4481b5 | 7317 | |
ca81d7a0 JD |
7318 | { echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
7319 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } | |
98418dba | 7320 | if test "${ac_cv_type_signal+set}" = set; then |
503d2be0 | 7321 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7397acc4 | 7322 | else |
98418dba | 7323 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
7324 | /* confdefs.h. */ |
7325 | _ACEOF | |
7326 | cat confdefs.h >>conftest.$ac_ext | |
7327 | cat >>conftest.$ac_ext <<_ACEOF | |
7328 | /* end confdefs.h. */ | |
7397acc4 | 7329 | #include <sys/types.h> |
98418dba | 7330 | #include <signal.h> |
98418dba | 7331 | |
503d2be0 AS |
7332 | int |
7333 | main () | |
7334 | { | |
ca81d7a0 | 7335 | return *(signal (0, 0)) (0) == 1; |
503d2be0 AS |
7336 | ; |
7337 | return 0; | |
7338 | } | |
7339 | _ACEOF | |
98418dba | 7340 | rm -f conftest.$ac_objext |
ca81d7a0 JD |
7341 | if { (ac_try="$ac_compile" |
7342 | case "(($ac_try" in | |
7343 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7344 | *) ac_try_echo=$ac_try;; | |
7345 | esac | |
7346 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7347 | (eval "$ac_compile") 2>conftest.er1 | |
503d2be0 | 7348 | ac_status=$? |
edfaf76d LK |
7349 | grep -v '^ *+' conftest.er1 >conftest.err |
7350 | rm -f conftest.er1 | |
7351 | cat conftest.err >&5 | |
c0d27fcc | 7352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
7353 | (exit $ac_status); } && { |
7354 | test -z "$ac_c_werror_flag" || | |
7355 | test ! -s conftest.err | |
7356 | } && test -s conftest.$ac_objext; then | |
ca81d7a0 | 7357 | ac_cv_type_signal=int |
503d2be0 AS |
7358 | else |
7359 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
7360 | sed 's/^/| /' conftest.$ac_ext >&5 |
7361 | ||
ca81d7a0 | 7362 | ac_cv_type_signal=void |
503d2be0 | 7363 | fi |
ca81d7a0 JD |
7364 | |
7365 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7397acc4 | 7366 | fi |
ca81d7a0 JD |
7367 | { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
7368 | echo "${ECHO_T}$ac_cv_type_signal" >&6; } | |
7397acc4 | 7369 | |
c0d27fcc | 7370 | cat >>confdefs.h <<_ACEOF |
98418dba | 7371 | #define RETSIGTYPE $ac_cv_type_signal |
c0d27fcc MR |
7372 | _ACEOF |
7373 | ||
503d2be0 | 7374 | |
c0d27fcc | 7375 | |
ca81d7a0 JD |
7376 | { echo "$as_me:$LINENO: checking for speed_t" >&5 |
7377 | echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; } | |
98418dba CW |
7378 | if test "${emacs_cv_speed_t+set}" = set; then |
7379 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7397acc4 | 7380 | else |
98418dba | 7381 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
7382 | /* confdefs.h. */ |
7383 | _ACEOF | |
7384 | cat confdefs.h >>conftest.$ac_ext | |
7385 | cat >>conftest.$ac_ext <<_ACEOF | |
7386 | /* end confdefs.h. */ | |
98418dba | 7387 | #include <termios.h> |
98418dba CW |
7388 | int |
7389 | main () | |
7390 | { | |
7391 | speed_t x = 1; | |
7392 | ; | |
7393 | return 0; | |
7394 | } | |
7395 | _ACEOF | |
7396 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
7397 | if { (ac_try="$ac_compile" |
7398 | case "(($ac_try" in | |
7399 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7400 | *) ac_try_echo=$ac_try;; | |
7401 | esac | |
7402 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7403 | (eval "$ac_compile") 2>conftest.er1 | |
98418dba | 7404 | ac_status=$? |
edfaf76d LK |
7405 | grep -v '^ *+' conftest.er1 >conftest.err |
7406 | rm -f conftest.er1 | |
7407 | cat conftest.err >&5 | |
c0d27fcc | 7408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
7409 | (exit $ac_status); } && { |
7410 | test -z "$ac_c_werror_flag" || | |
7411 | test ! -s conftest.err | |
7412 | } && test -s conftest.$ac_objext; then | |
98418dba CW |
7413 | emacs_cv_speed_t=yes |
7414 | else | |
7415 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
7416 | sed 's/^/| /' conftest.$ac_ext >&5 |
7417 | ||
ca81d7a0 | 7418 | emacs_cv_speed_t=no |
98418dba | 7419 | fi |
ca81d7a0 JD |
7420 | |
7421 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
98418dba | 7422 | fi |
ca81d7a0 JD |
7423 | { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5 |
7424 | echo "${ECHO_T}$emacs_cv_speed_t" >&6; } | |
98418dba | 7425 | if test $emacs_cv_speed_t = yes; then |
b936fae4 | 7426 | |
c0d27fcc | 7427 | cat >>confdefs.h <<\_ACEOF |
98418dba | 7428 | #define HAVE_SPEED_T 1 |
c0d27fcc | 7429 | _ACEOF |
98418dba | 7430 | |
7397acc4 DL |
7431 | fi |
7432 | ||
ca81d7a0 JD |
7433 | { echo "$as_me:$LINENO: checking for struct timeval" >&5 |
7434 | echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; } | |
98418dba | 7435 | if test "${emacs_cv_struct_timeval+set}" = set; then |
503d2be0 | 7436 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7397acc4 | 7437 | else |
503d2be0 | 7438 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
7439 | /* confdefs.h. */ |
7440 | _ACEOF | |
7441 | cat confdefs.h >>conftest.$ac_ext | |
7442 | cat >>conftest.$ac_ext <<_ACEOF | |
7443 | /* end confdefs.h. */ | |
98418dba CW |
7444 | #ifdef TIME_WITH_SYS_TIME |
7445 | #include <sys/time.h> | |
7446 | #include <time.h> | |
7447 | #else | |
7448 | #ifdef HAVE_SYS_TIME_H | |
7449 | #include <sys/time.h> | |
7450 | #else | |
7451 | #include <time.h> | |
7452 | #endif | |
7453 | #endif | |
503d2be0 AS |
7454 | int |
7455 | main () | |
7456 | { | |
98418dba | 7457 | static struct timeval x; x.tv_sec = x.tv_usec; |
503d2be0 AS |
7458 | ; |
7459 | return 0; | |
7460 | } | |
7461 | _ACEOF | |
7462 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
7463 | if { (ac_try="$ac_compile" |
7464 | case "(($ac_try" in | |
7465 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7466 | *) ac_try_echo=$ac_try;; | |
7467 | esac | |
7468 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7469 | (eval "$ac_compile") 2>conftest.er1 | |
503d2be0 | 7470 | ac_status=$? |
edfaf76d LK |
7471 | grep -v '^ *+' conftest.er1 >conftest.err |
7472 | rm -f conftest.er1 | |
7473 | cat conftest.err >&5 | |
c0d27fcc | 7474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
7475 | (exit $ac_status); } && { |
7476 | test -z "$ac_c_werror_flag" || | |
7477 | test ! -s conftest.err | |
7478 | } && test -s conftest.$ac_objext; then | |
edfaf76d LK |
7479 | emacs_cv_struct_timeval=yes |
7480 | else | |
503d2be0 | 7481 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
7482 | sed 's/^/| /' conftest.$ac_ext >&5 |
7483 | ||
ca81d7a0 | 7484 | emacs_cv_struct_timeval=no |
7397acc4 | 7485 | fi |
ca81d7a0 JD |
7486 | |
7487 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7397acc4 | 7488 | fi |
ca81d7a0 JD |
7489 | { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5 |
7490 | echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; } | |
98418dba CW |
7491 | HAVE_TIMEVAL=$emacs_cv_struct_timeval |
7492 | if test $emacs_cv_struct_timeval = yes; then | |
b936fae4 | 7493 | |
c0d27fcc | 7494 | cat >>confdefs.h <<\_ACEOF |
98418dba | 7495 | #define HAVE_TIMEVAL 1 |
c0d27fcc | 7496 | _ACEOF |
7397acc4 DL |
7497 | |
7498 | fi | |
7499 | ||
ca81d7a0 JD |
7500 | { echo "$as_me:$LINENO: checking for struct exception" >&5 |
7501 | echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; } | |
98418dba | 7502 | if test "${emacs_cv_struct_exception+set}" = set; then |
503d2be0 | 7503 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 7504 | else |
503d2be0 | 7505 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
7506 | /* confdefs.h. */ |
7507 | _ACEOF | |
7508 | cat confdefs.h >>conftest.$ac_ext | |
7509 | cat >>conftest.$ac_ext <<_ACEOF | |
7510 | /* end confdefs.h. */ | |
98418dba | 7511 | #include <math.h> |
503d2be0 AS |
7512 | int |
7513 | main () | |
7514 | { | |
98418dba | 7515 | static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1; |
503d2be0 AS |
7516 | ; |
7517 | return 0; | |
ba4481b5 | 7518 | } |
503d2be0 AS |
7519 | _ACEOF |
7520 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
7521 | if { (ac_try="$ac_compile" |
7522 | case "(($ac_try" in | |
7523 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7524 | *) ac_try_echo=$ac_try;; | |
7525 | esac | |
7526 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7527 | (eval "$ac_compile") 2>conftest.er1 | |
503d2be0 | 7528 | ac_status=$? |
edfaf76d LK |
7529 | grep -v '^ *+' conftest.er1 >conftest.err |
7530 | rm -f conftest.er1 | |
7531 | cat conftest.err >&5 | |
c0d27fcc | 7532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
7533 | (exit $ac_status); } && { |
7534 | test -z "$ac_c_werror_flag" || | |
7535 | test ! -s conftest.err | |
7536 | } && test -s conftest.$ac_objext; then | |
98418dba | 7537 | emacs_cv_struct_exception=yes |
ba4481b5 | 7538 | else |
503d2be0 | 7539 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
7540 | sed 's/^/| /' conftest.$ac_ext >&5 |
7541 | ||
ca81d7a0 | 7542 | emacs_cv_struct_exception=no |
ba4481b5 | 7543 | fi |
ca81d7a0 JD |
7544 | |
7545 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ba4481b5 | 7546 | fi |
ca81d7a0 JD |
7547 | { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5 |
7548 | echo "${ECHO_T}$emacs_cv_struct_exception" >&6; } | |
98418dba CW |
7549 | HAVE_EXCEPTION=$emacs_cv_struct_exception |
7550 | if test $emacs_cv_struct_exception != yes; then | |
b936fae4 | 7551 | |
c0d27fcc | 7552 | cat >>confdefs.h <<\_ACEOF |
98418dba | 7553 | #define NO_MATHERR 1 |
c0d27fcc | 7554 | _ACEOF |
ba4481b5 DL |
7555 | |
7556 | fi | |
7557 | ||
7862d3a8 AS |
7558 | |
7559 | for ac_header in sys/socket.h | |
7560 | do | |
7561 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
ca81d7a0 JD |
7562 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
7563 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7564 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7565 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
7862d3a8 AS |
7566 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7567 | fi | |
ca81d7a0 JD |
7568 | ac_res=`eval echo '${'$as_ac_Header'}'` |
7569 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7570 | echo "${ECHO_T}$ac_res" >&6; } | |
7862d3a8 AS |
7571 | else |
7572 | # Is the header compilable? | |
ca81d7a0 JD |
7573 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7574 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
7862d3a8 AS |
7575 | cat >conftest.$ac_ext <<_ACEOF |
7576 | /* confdefs.h. */ | |
7577 | _ACEOF | |
7578 | cat confdefs.h >>conftest.$ac_ext | |
7579 | cat >>conftest.$ac_ext <<_ACEOF | |
7580 | /* end confdefs.h. */ | |
7581 | $ac_includes_default | |
7582 | #include <$ac_header> | |
7583 | _ACEOF | |
7584 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
7585 | if { (ac_try="$ac_compile" |
7586 | case "(($ac_try" in | |
7587 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7588 | *) ac_try_echo=$ac_try;; | |
7589 | esac | |
7590 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7591 | (eval "$ac_compile") 2>conftest.er1 | |
7862d3a8 | 7592 | ac_status=$? |
edfaf76d LK |
7593 | grep -v '^ *+' conftest.er1 >conftest.err |
7594 | rm -f conftest.er1 | |
7595 | cat conftest.err >&5 | |
7862d3a8 | 7596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
7597 | (exit $ac_status); } && { |
7598 | test -z "$ac_c_werror_flag" || | |
7599 | test ! -s conftest.err | |
7600 | } && test -s conftest.$ac_objext; then | |
7862d3a8 AS |
7601 | ac_header_compiler=yes |
7602 | else | |
7603 | echo "$as_me: failed program was:" >&5 | |
7604 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7605 | ||
ca81d7a0 | 7606 | ac_header_compiler=no |
7862d3a8 | 7607 | fi |
ca81d7a0 JD |
7608 | |
7609 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7610 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
7611 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
7862d3a8 AS |
7612 | |
7613 | # Is the header present? | |
ca81d7a0 JD |
7614 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7615 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
7862d3a8 AS |
7616 | cat >conftest.$ac_ext <<_ACEOF |
7617 | /* confdefs.h. */ | |
7618 | _ACEOF | |
7619 | cat confdefs.h >>conftest.$ac_ext | |
7620 | cat >>conftest.$ac_ext <<_ACEOF | |
7621 | /* end confdefs.h. */ | |
7622 | #include <$ac_header> | |
7623 | _ACEOF | |
ca81d7a0 JD |
7624 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7625 | case "(($ac_try" in | |
7626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7627 | *) ac_try_echo=$ac_try;; | |
7628 | esac | |
7629 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7630 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
7862d3a8 AS |
7631 | ac_status=$? |
7632 | grep -v '^ *+' conftest.er1 >conftest.err | |
7633 | rm -f conftest.er1 | |
7634 | cat conftest.err >&5 | |
7635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f053c89f CY |
7636 | (exit $ac_status); } >/dev/null && { |
7637 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7638 | test ! -s conftest.err | |
7639 | }; then | |
7862d3a8 AS |
7640 | ac_header_preproc=yes |
7641 | else | |
7642 | echo "$as_me: failed program was:" >&5 | |
7643 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7644 | ||
7645 | ac_header_preproc=no | |
7646 | fi | |
ca81d7a0 | 7647 | |
7862d3a8 | 7648 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
7649 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7650 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
7862d3a8 AS |
7651 | |
7652 | # So? What about this header? | |
edfaf76d LK |
7653 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
7654 | yes:no: ) | |
7862d3a8 AS |
7655 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
7656 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
7657 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
7658 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
7659 | ac_header_preproc=yes | |
7862d3a8 | 7660 | ;; |
edfaf76d | 7661 | no:yes:* ) |
7862d3a8 AS |
7662 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
7663 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
edfaf76d LK |
7664 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
7665 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7666 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7667 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7668 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7669 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7862d3a8 AS |
7670 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
7671 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
edfaf76d LK |
7672 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
7673 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 7674 | |
7862d3a8 AS |
7675 | ;; |
7676 | esac | |
ca81d7a0 JD |
7677 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7678 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7679 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
7862d3a8 AS |
7680 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7681 | else | |
edfaf76d | 7682 | eval "$as_ac_Header=\$ac_header_preproc" |
7862d3a8 | 7683 | fi |
ca81d7a0 JD |
7684 | ac_res=`eval echo '${'$as_ac_Header'}'` |
7685 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7686 | echo "${ECHO_T}$ac_res" >&6; } | |
7862d3a8 AS |
7687 | |
7688 | fi | |
7689 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
7690 | cat >>confdefs.h <<_ACEOF | |
7691 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7692 | _ACEOF | |
7693 | ||
7694 | fi | |
7695 | ||
7696 | done | |
7697 | ||
7698 | ||
7699 | for ac_header in net/if.h | |
7700 | do | |
7701 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
ca81d7a0 JD |
7702 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7703 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7704 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
7862d3a8 AS |
7705 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7706 | else | |
7707 | cat >conftest.$ac_ext <<_ACEOF | |
7708 | /* confdefs.h. */ | |
7709 | _ACEOF | |
7710 | cat confdefs.h >>conftest.$ac_ext | |
7711 | cat >>conftest.$ac_ext <<_ACEOF | |
7712 | /* end confdefs.h. */ | |
7713 | $ac_includes_default | |
7714 | #if HAVE_SYS_SOCKET_H | |
7715 | #include <sys/socket.h> | |
7716 | #endif | |
7717 | ||
7718 | #include <$ac_header> | |
7719 | _ACEOF | |
7720 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
7721 | if { (ac_try="$ac_compile" |
7722 | case "(($ac_try" in | |
7723 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7724 | *) ac_try_echo=$ac_try;; | |
7725 | esac | |
7726 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7727 | (eval "$ac_compile") 2>conftest.er1 | |
7862d3a8 | 7728 | ac_status=$? |
edfaf76d LK |
7729 | grep -v '^ *+' conftest.er1 >conftest.err |
7730 | rm -f conftest.er1 | |
7731 | cat conftest.err >&5 | |
7862d3a8 | 7732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
7733 | (exit $ac_status); } && { |
7734 | test -z "$ac_c_werror_flag" || | |
7735 | test ! -s conftest.err | |
7736 | } && test -s conftest.$ac_objext; then | |
7862d3a8 AS |
7737 | eval "$as_ac_Header=yes" |
7738 | else | |
7739 | echo "$as_me: failed program was:" >&5 | |
7740 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7741 | ||
ca81d7a0 | 7742 | eval "$as_ac_Header=no" |
7862d3a8 | 7743 | fi |
ca81d7a0 JD |
7744 | |
7745 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7862d3a8 | 7746 | fi |
ca81d7a0 JD |
7747 | ac_res=`eval echo '${'$as_ac_Header'}'` |
7748 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7749 | echo "${ECHO_T}$ac_res" >&6; } | |
7862d3a8 AS |
7750 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
7751 | cat >>confdefs.h <<_ACEOF | |
7752 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7753 | _ACEOF | |
7754 | ||
7755 | fi | |
7756 | ||
7757 | done | |
7758 | ||
7759 | ||
ca81d7a0 JD |
7760 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
7761 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } | |
98418dba | 7762 | if test "${ac_cv_struct_tm+set}" = set; then |
503d2be0 | 7763 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7397acc4 | 7764 | else |
503d2be0 | 7765 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
7766 | /* confdefs.h. */ |
7767 | _ACEOF | |
7768 | cat confdefs.h >>conftest.$ac_ext | |
7769 | cat >>conftest.$ac_ext <<_ACEOF | |
7770 | /* end confdefs.h. */ | |
98418dba CW |
7771 | #include <sys/types.h> |
7772 | #include <time.h> | |
7397acc4 | 7773 | |
503d2be0 AS |
7774 | int |
7775 | main () | |
7776 | { | |
f053c89f CY |
7777 | struct tm tm; |
7778 | int *p = &tm.tm_sec; | |
7779 | return !p; | |
503d2be0 AS |
7780 | ; |
7781 | return 0; | |
7782 | } | |
7783 | _ACEOF | |
7784 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
7785 | if { (ac_try="$ac_compile" |
7786 | case "(($ac_try" in | |
7787 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7788 | *) ac_try_echo=$ac_try;; | |
7789 | esac | |
7790 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7791 | (eval "$ac_compile") 2>conftest.er1 | |
503d2be0 | 7792 | ac_status=$? |
edfaf76d LK |
7793 | grep -v '^ *+' conftest.er1 >conftest.err |
7794 | rm -f conftest.er1 | |
7795 | cat conftest.err >&5 | |
c0d27fcc | 7796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
7797 | (exit $ac_status); } && { |
7798 | test -z "$ac_c_werror_flag" || | |
7799 | test ! -s conftest.err | |
7800 | } && test -s conftest.$ac_objext; then | |
35996d22 AS |
7801 | ac_cv_struct_tm=time.h |
7802 | else | |
503d2be0 | 7803 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
7804 | sed 's/^/| /' conftest.$ac_ext >&5 |
7805 | ||
ca81d7a0 | 7806 | ac_cv_struct_tm=sys/time.h |
7397acc4 | 7807 | fi |
ca81d7a0 JD |
7808 | |
7809 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7397acc4 | 7810 | fi |
ca81d7a0 JD |
7811 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
7812 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; } | |
98418dba | 7813 | if test $ac_cv_struct_tm = sys/time.h; then |
7397acc4 | 7814 | |
c0d27fcc | 7815 | cat >>confdefs.h <<\_ACEOF |
98418dba | 7816 | #define TM_IN_SYS_TIME 1 |
c0d27fcc | 7817 | _ACEOF |
7397acc4 DL |
7818 | |
7819 | fi | |
ba4481b5 | 7820 | |
ca81d7a0 JD |
7821 | { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
7822 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; } | |
98418dba | 7823 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
503d2be0 | 7824 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 7825 | else |
98418dba | 7826 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
7827 | /* confdefs.h. */ |
7828 | _ACEOF | |
7829 | cat confdefs.h >>conftest.$ac_ext | |
7830 | cat >>conftest.$ac_ext <<_ACEOF | |
7831 | /* end confdefs.h. */ | |
98418dba CW |
7832 | #include <sys/types.h> |
7833 | #include <$ac_cv_struct_tm> | |
ba4481b5 | 7834 | |
c0d27fcc | 7835 | |
98418dba CW |
7836 | int |
7837 | main () | |
7838 | { | |
7839 | static struct tm ac_aggr; | |
7840 | if (ac_aggr.tm_zone) | |
7841 | return 0; | |
7842 | ; | |
7843 | return 0; | |
7844 | } | |
7845 | _ACEOF | |
7846 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
7847 | if { (ac_try="$ac_compile" |
7848 | case "(($ac_try" in | |
7849 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7850 | *) ac_try_echo=$ac_try;; | |
7851 | esac | |
7852 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7853 | (eval "$ac_compile") 2>conftest.er1 | |
98418dba | 7854 | ac_status=$? |
edfaf76d LK |
7855 | grep -v '^ *+' conftest.er1 >conftest.err |
7856 | rm -f conftest.er1 | |
7857 | cat conftest.err >&5 | |
c0d27fcc | 7858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
7859 | (exit $ac_status); } && { |
7860 | test -z "$ac_c_werror_flag" || | |
7861 | test ! -s conftest.err | |
7862 | } && test -s conftest.$ac_objext; then | |
98418dba | 7863 | ac_cv_member_struct_tm_tm_zone=yes |
ba4481b5 | 7864 | else |
98418dba | 7865 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
7866 | sed 's/^/| /' conftest.$ac_ext >&5 |
7867 | ||
ca81d7a0 | 7868 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
7869 | /* confdefs.h. */ |
7870 | _ACEOF | |
7871 | cat confdefs.h >>conftest.$ac_ext | |
7872 | cat >>conftest.$ac_ext <<_ACEOF | |
7873 | /* end confdefs.h. */ | |
6bae0ccf DL |
7874 | #include <sys/types.h> |
7875 | #include <$ac_cv_struct_tm> | |
7876 | ||
7877 | ||
7878 | int | |
7879 | main () | |
7880 | { | |
7881 | static struct tm ac_aggr; | |
7882 | if (sizeof ac_aggr.tm_zone) | |
7883 | return 0; | |
7884 | ; | |
7885 | return 0; | |
7886 | } | |
7887 | _ACEOF | |
7888 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
7889 | if { (ac_try="$ac_compile" |
7890 | case "(($ac_try" in | |
7891 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7892 | *) ac_try_echo=$ac_try;; | |
7893 | esac | |
7894 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7895 | (eval "$ac_compile") 2>conftest.er1 | |
6bae0ccf | 7896 | ac_status=$? |
edfaf76d LK |
7897 | grep -v '^ *+' conftest.er1 >conftest.err |
7898 | rm -f conftest.er1 | |
7899 | cat conftest.err >&5 | |
6bae0ccf | 7900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
7901 | (exit $ac_status); } && { |
7902 | test -z "$ac_c_werror_flag" || | |
7903 | test ! -s conftest.err | |
7904 | } && test -s conftest.$ac_objext; then | |
6bae0ccf DL |
7905 | ac_cv_member_struct_tm_tm_zone=yes |
7906 | else | |
7907 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
7908 | sed 's/^/| /' conftest.$ac_ext >&5 |
7909 | ||
ca81d7a0 | 7910 | ac_cv_member_struct_tm_tm_zone=no |
ba4481b5 | 7911 | fi |
ca81d7a0 JD |
7912 | |
7913 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ba4481b5 | 7914 | fi |
ca81d7a0 JD |
7915 | |
7916 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6bae0ccf | 7917 | fi |
ca81d7a0 JD |
7918 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
7919 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; } | |
98418dba | 7920 | if test $ac_cv_member_struct_tm_tm_zone = yes; then |
503d2be0 | 7921 | |
c0d27fcc | 7922 | cat >>confdefs.h <<_ACEOF |
98418dba | 7923 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
c0d27fcc MR |
7924 | _ACEOF |
7925 | ||
ba4481b5 | 7926 | |
98418dba | 7927 | fi |
ba4481b5 | 7928 | |
98418dba | 7929 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
ba4481b5 | 7930 | |
c0d27fcc | 7931 | cat >>confdefs.h <<\_ACEOF |
98418dba | 7932 | #define HAVE_TM_ZONE 1 |
c0d27fcc | 7933 | _ACEOF |
ba4481b5 | 7934 | |
ba4481b5 | 7935 | else |
ca81d7a0 JD |
7936 | { echo "$as_me:$LINENO: checking whether tzname is declared" >&5 |
7937 | echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; } | |
7938 | if test "${ac_cv_have_decl_tzname+set}" = set; then | |
503d2be0 | 7939 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 7940 | else |
98418dba | 7941 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
7942 | /* confdefs.h. */ |
7943 | _ACEOF | |
7944 | cat confdefs.h >>conftest.$ac_ext | |
7945 | cat >>conftest.$ac_ext <<_ACEOF | |
7946 | /* end confdefs.h. */ | |
98418dba | 7947 | #include <time.h> |
98418dba | 7948 | |
98418dba CW |
7949 | int |
7950 | main () | |
7951 | { | |
ca81d7a0 | 7952 | #ifndef tzname |
f053c89f | 7953 | (void) tzname; |
ca81d7a0 JD |
7954 | #endif |
7955 | ||
6bae0ccf DL |
7956 | ; |
7957 | return 0; | |
7958 | } | |
7959 | _ACEOF | |
7960 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
7961 | if { (ac_try="$ac_compile" |
7962 | case "(($ac_try" in | |
7963 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7964 | *) ac_try_echo=$ac_try;; | |
7965 | esac | |
7966 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7967 | (eval "$ac_compile") 2>conftest.er1 | |
6bae0ccf | 7968 | ac_status=$? |
edfaf76d LK |
7969 | grep -v '^ *+' conftest.er1 >conftest.err |
7970 | rm -f conftest.er1 | |
7971 | cat conftest.err >&5 | |
6bae0ccf | 7972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
7973 | (exit $ac_status); } && { |
7974 | test -z "$ac_c_werror_flag" || | |
7975 | test ! -s conftest.err | |
7976 | } && test -s conftest.$ac_objext; then | |
ca81d7a0 | 7977 | ac_cv_have_decl_tzname=yes |
6bae0ccf DL |
7978 | else |
7979 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
7980 | sed 's/^/| /' conftest.$ac_ext >&5 |
7981 | ||
ca81d7a0 | 7982 | ac_cv_have_decl_tzname=no |
ba4481b5 | 7983 | fi |
ca81d7a0 JD |
7984 | |
7985 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6bae0ccf | 7986 | fi |
ca81d7a0 JD |
7987 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5 |
7988 | echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; } | |
7989 | if test $ac_cv_have_decl_tzname = yes; then | |
503d2be0 | 7990 | |
c0d27fcc | 7991 | cat >>confdefs.h <<_ACEOF |
ca81d7a0 | 7992 | #define HAVE_DECL_TZNAME 1 |
c0d27fcc MR |
7993 | _ACEOF |
7994 | ||
ba4481b5 | 7995 | |
ca81d7a0 JD |
7996 | else |
7997 | cat >>confdefs.h <<_ACEOF | |
7998 | #define HAVE_DECL_TZNAME 0 | |
7999 | _ACEOF | |
ba4481b5 | 8000 | |
ba4481b5 | 8001 | |
98418dba | 8002 | fi |
ba4481b5 | 8003 | |
ca81d7a0 JD |
8004 | |
8005 | { echo "$as_me:$LINENO: checking for tzname" >&5 | |
8006 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6; } | |
98418dba | 8007 | if test "${ac_cv_var_tzname+set}" = set; then |
503d2be0 | 8008 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 8009 | else |
98418dba | 8010 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
8011 | /* confdefs.h. */ |
8012 | _ACEOF | |
8013 | cat confdefs.h >>conftest.$ac_ext | |
8014 | cat >>conftest.$ac_ext <<_ACEOF | |
8015 | /* end confdefs.h. */ | |
98418dba | 8016 | #include <time.h> |
ca81d7a0 JD |
8017 | #if !HAVE_DECL_TZNAME |
8018 | extern char *tzname[]; | |
98418dba CW |
8019 | #endif |
8020 | ||
98418dba CW |
8021 | int |
8022 | main () | |
8023 | { | |
ca81d7a0 | 8024 | return tzname[0][0]; |
98418dba CW |
8025 | ; |
8026 | return 0; | |
8027 | } | |
8028 | _ACEOF | |
8029 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
8030 | if { (ac_try="$ac_link" |
8031 | case "(($ac_try" in | |
8032 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8033 | *) ac_try_echo=$ac_try;; | |
8034 | esac | |
8035 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8036 | (eval "$ac_link") 2>conftest.er1 | |
98418dba | 8037 | ac_status=$? |
edfaf76d LK |
8038 | grep -v '^ *+' conftest.er1 >conftest.err |
8039 | rm -f conftest.er1 | |
8040 | cat conftest.err >&5 | |
c0d27fcc | 8041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
8042 | (exit $ac_status); } && { |
8043 | test -z "$ac_c_werror_flag" || | |
8044 | test ! -s conftest.err | |
8045 | } && test -s conftest$ac_exeext && | |
8046 | $as_test_x conftest$ac_exeext; then | |
98418dba CW |
8047 | ac_cv_var_tzname=yes |
8048 | else | |
8049 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
8050 | sed 's/^/| /' conftest.$ac_ext >&5 |
8051 | ||
ca81d7a0 | 8052 | ac_cv_var_tzname=no |
ba4481b5 | 8053 | fi |
6bae0ccf | 8054 | |
f053c89f | 8055 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 8056 | conftest$ac_exeext conftest.$ac_ext |
98418dba | 8057 | fi |
ca81d7a0 JD |
8058 | { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
8059 | echo "${ECHO_T}$ac_cv_var_tzname" >&6; } | |
98418dba | 8060 | if test $ac_cv_var_tzname = yes; then |
ba4481b5 | 8061 | |
c0d27fcc | 8062 | cat >>confdefs.h <<\_ACEOF |
98418dba | 8063 | #define HAVE_TZNAME 1 |
c0d27fcc | 8064 | _ACEOF |
503d2be0 | 8065 | |
98418dba CW |
8066 | fi |
8067 | fi | |
503d2be0 | 8068 | |
ca81d7a0 JD |
8069 | { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5 |
8070 | echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; } | |
b936fae4 | 8071 | if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then |
98418dba CW |
8072 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8073 | else | |
8074 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
8075 | /* confdefs.h. */ |
8076 | _ACEOF | |
8077 | cat confdefs.h >>conftest.$ac_ext | |
8078 | cat >>conftest.$ac_ext <<_ACEOF | |
8079 | /* end confdefs.h. */ | |
98418dba | 8080 | #include <time.h> |
b936fae4 | 8081 | |
98418dba CW |
8082 | int |
8083 | main () | |
8084 | { | |
b936fae4 AS |
8085 | static struct tm ac_aggr; |
8086 | if (ac_aggr.tm_gmtoff) | |
8087 | return 0; | |
98418dba CW |
8088 | ; |
8089 | return 0; | |
8090 | } | |
8091 | _ACEOF | |
b936fae4 | 8092 | rm -f conftest.$ac_objext |
ca81d7a0 JD |
8093 | if { (ac_try="$ac_compile" |
8094 | case "(($ac_try" in | |
8095 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8096 | *) ac_try_echo=$ac_try;; | |
8097 | esac | |
8098 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8099 | (eval "$ac_compile") 2>conftest.er1 | |
98418dba | 8100 | ac_status=$? |
edfaf76d LK |
8101 | grep -v '^ *+' conftest.er1 >conftest.err |
8102 | rm -f conftest.er1 | |
8103 | cat conftest.err >&5 | |
c0d27fcc | 8104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
8105 | (exit $ac_status); } && { |
8106 | test -z "$ac_c_werror_flag" || | |
8107 | test ! -s conftest.err | |
8108 | } && test -s conftest.$ac_objext; then | |
b936fae4 | 8109 | ac_cv_member_struct_tm_tm_gmtoff=yes |
98418dba CW |
8110 | else |
8111 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
8112 | sed 's/^/| /' conftest.$ac_ext >&5 |
8113 | ||
ca81d7a0 | 8114 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
8115 | /* confdefs.h. */ |
8116 | _ACEOF | |
8117 | cat confdefs.h >>conftest.$ac_ext | |
8118 | cat >>conftest.$ac_ext <<_ACEOF | |
8119 | /* end confdefs.h. */ | |
6bae0ccf DL |
8120 | #include <time.h> |
8121 | ||
8799b3e4 CW |
8122 | int |
8123 | main () | |
8124 | { | |
6bae0ccf DL |
8125 | static struct tm ac_aggr; |
8126 | if (sizeof ac_aggr.tm_gmtoff) | |
8127 | return 0; | |
8799b3e4 CW |
8128 | ; |
8129 | return 0; | |
8130 | } | |
8131 | _ACEOF | |
6bae0ccf | 8132 | rm -f conftest.$ac_objext |
ca81d7a0 JD |
8133 | if { (ac_try="$ac_compile" |
8134 | case "(($ac_try" in | |
8135 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8136 | *) ac_try_echo=$ac_try;; | |
8137 | esac | |
8138 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8139 | (eval "$ac_compile") 2>conftest.er1 | |
8799b3e4 | 8140 | ac_status=$? |
edfaf76d LK |
8141 | grep -v '^ *+' conftest.er1 >conftest.err |
8142 | rm -f conftest.er1 | |
8143 | cat conftest.err >&5 | |
c0d27fcc | 8144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
8145 | (exit $ac_status); } && { |
8146 | test -z "$ac_c_werror_flag" || | |
8147 | test ! -s conftest.err | |
8148 | } && test -s conftest.$ac_objext; then | |
6bae0ccf | 8149 | ac_cv_member_struct_tm_tm_gmtoff=yes |
8799b3e4 CW |
8150 | else |
8151 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
8152 | sed 's/^/| /' conftest.$ac_ext >&5 |
8153 | ||
ca81d7a0 | 8154 | ac_cv_member_struct_tm_tm_gmtoff=no |
8799b3e4 | 8155 | fi |
ca81d7a0 JD |
8156 | |
8157 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6bae0ccf | 8158 | fi |
ca81d7a0 JD |
8159 | |
8160 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8799b3e4 | 8161 | fi |
ca81d7a0 JD |
8162 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5 |
8163 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; } | |
6bae0ccf DL |
8164 | if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then |
8165 | ||
8166 | cat >>confdefs.h <<\_ACEOF | |
8167 | #define HAVE_TM_GMTOFF 1 | |
8168 | _ACEOF | |
8169 | ||
8170 | fi | |
8171 | ||
ca81d7a0 JD |
8172 | { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5 |
8173 | echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; } | |
96f3a036 DL |
8174 | if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then |
8175 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8176 | else | |
8177 | cat >conftest.$ac_ext <<_ACEOF | |
96f3a036 DL |
8178 | /* confdefs.h. */ |
8179 | _ACEOF | |
8180 | cat confdefs.h >>conftest.$ac_ext | |
8181 | cat >>conftest.$ac_ext <<_ACEOF | |
8182 | /* end confdefs.h. */ | |
7862d3a8 AS |
8183 | $ac_includes_default |
8184 | #if HAVE_SYS_SOCKET_H | |
8185 | #include <sys/socket.h> | |
8186 | #endif | |
8187 | #if HAVE_NET_IF_H | |
96f3a036 | 8188 | #include <net/if.h> |
7862d3a8 | 8189 | #endif |
96f3a036 DL |
8190 | |
8191 | int | |
8192 | main () | |
8193 | { | |
8194 | static struct ifreq ac_aggr; | |
8195 | if (ac_aggr.ifr_flags) | |
8196 | return 0; | |
8197 | ; | |
8198 | return 0; | |
8199 | } | |
8200 | _ACEOF | |
8201 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
8202 | if { (ac_try="$ac_compile" |
8203 | case "(($ac_try" in | |
8204 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8205 | *) ac_try_echo=$ac_try;; | |
8206 | esac | |
8207 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8208 | (eval "$ac_compile") 2>conftest.er1 | |
96f3a036 | 8209 | ac_status=$? |
edfaf76d LK |
8210 | grep -v '^ *+' conftest.er1 >conftest.err |
8211 | rm -f conftest.er1 | |
8212 | cat conftest.err >&5 | |
96f3a036 | 8213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
8214 | (exit $ac_status); } && { |
8215 | test -z "$ac_c_werror_flag" || | |
8216 | test ! -s conftest.err | |
8217 | } && test -s conftest.$ac_objext; then | |
96f3a036 DL |
8218 | ac_cv_member_struct_ifreq_ifr_flags=yes |
8219 | else | |
8220 | echo "$as_me: failed program was:" >&5 | |
8221 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8222 | ||
ca81d7a0 | 8223 | cat >conftest.$ac_ext <<_ACEOF |
96f3a036 DL |
8224 | /* confdefs.h. */ |
8225 | _ACEOF | |
8226 | cat confdefs.h >>conftest.$ac_ext | |
8227 | cat >>conftest.$ac_ext <<_ACEOF | |
8228 | /* end confdefs.h. */ | |
7862d3a8 AS |
8229 | $ac_includes_default |
8230 | #if HAVE_SYS_SOCKET_H | |
8231 | #include <sys/socket.h> | |
8232 | #endif | |
8233 | #if HAVE_NET_IF_H | |
96f3a036 | 8234 | #include <net/if.h> |
7862d3a8 | 8235 | #endif |
96f3a036 DL |
8236 | |
8237 | int | |
8238 | main () | |
8239 | { | |
8240 | static struct ifreq ac_aggr; | |
8241 | if (sizeof ac_aggr.ifr_flags) | |
8242 | return 0; | |
8243 | ; | |
8244 | return 0; | |
8245 | } | |
8246 | _ACEOF | |
8247 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
8248 | if { (ac_try="$ac_compile" |
8249 | case "(($ac_try" in | |
8250 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8251 | *) ac_try_echo=$ac_try;; | |
8252 | esac | |
8253 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8254 | (eval "$ac_compile") 2>conftest.er1 | |
96f3a036 | 8255 | ac_status=$? |
edfaf76d LK |
8256 | grep -v '^ *+' conftest.er1 >conftest.err |
8257 | rm -f conftest.er1 | |
8258 | cat conftest.err >&5 | |
96f3a036 | 8259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
8260 | (exit $ac_status); } && { |
8261 | test -z "$ac_c_werror_flag" || | |
8262 | test ! -s conftest.err | |
8263 | } && test -s conftest.$ac_objext; then | |
96f3a036 DL |
8264 | ac_cv_member_struct_ifreq_ifr_flags=yes |
8265 | else | |
8266 | echo "$as_me: failed program was:" >&5 | |
8267 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8268 | ||
ca81d7a0 | 8269 | ac_cv_member_struct_ifreq_ifr_flags=no |
96f3a036 | 8270 | fi |
ca81d7a0 JD |
8271 | |
8272 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
96f3a036 | 8273 | fi |
ca81d7a0 JD |
8274 | |
8275 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
96f3a036 | 8276 | fi |
ca81d7a0 JD |
8277 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5 |
8278 | echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; } | |
96f3a036 DL |
8279 | if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then |
8280 | ||
8281 | cat >>confdefs.h <<_ACEOF | |
8282 | #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1 | |
8283 | _ACEOF | |
8284 | ||
8285 | ||
8286 | fi | |
ca81d7a0 JD |
8287 | { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5 |
8288 | echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; } | |
96f3a036 DL |
8289 | if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then |
8290 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8291 | else | |
8292 | cat >conftest.$ac_ext <<_ACEOF | |
96f3a036 DL |
8293 | /* confdefs.h. */ |
8294 | _ACEOF | |
8295 | cat confdefs.h >>conftest.$ac_ext | |
8296 | cat >>conftest.$ac_ext <<_ACEOF | |
8297 | /* end confdefs.h. */ | |
7862d3a8 AS |
8298 | $ac_includes_default |
8299 | #if HAVE_SYS_SOCKET_H | |
8300 | #include <sys/socket.h> | |
8301 | #endif | |
8302 | #if HAVE_NET_IF_H | |
96f3a036 | 8303 | #include <net/if.h> |
7862d3a8 | 8304 | #endif |
96f3a036 DL |
8305 | |
8306 | int | |
8307 | main () | |
8308 | { | |
8309 | static struct ifreq ac_aggr; | |
8310 | if (ac_aggr.ifr_hwaddr) | |
8311 | return 0; | |
8312 | ; | |
8313 | return 0; | |
8314 | } | |
8315 | _ACEOF | |
8316 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
8317 | if { (ac_try="$ac_compile" |
8318 | case "(($ac_try" in | |
8319 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8320 | *) ac_try_echo=$ac_try;; | |
8321 | esac | |
8322 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8323 | (eval "$ac_compile") 2>conftest.er1 | |
96f3a036 | 8324 | ac_status=$? |
edfaf76d LK |
8325 | grep -v '^ *+' conftest.er1 >conftest.err |
8326 | rm -f conftest.er1 | |
8327 | cat conftest.err >&5 | |
96f3a036 | 8328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
8329 | (exit $ac_status); } && { |
8330 | test -z "$ac_c_werror_flag" || | |
8331 | test ! -s conftest.err | |
8332 | } && test -s conftest.$ac_objext; then | |
96f3a036 DL |
8333 | ac_cv_member_struct_ifreq_ifr_hwaddr=yes |
8334 | else | |
8335 | echo "$as_me: failed program was:" >&5 | |
8336 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8337 | ||
ca81d7a0 | 8338 | cat >conftest.$ac_ext <<_ACEOF |
96f3a036 DL |
8339 | /* confdefs.h. */ |
8340 | _ACEOF | |
8341 | cat confdefs.h >>conftest.$ac_ext | |
8342 | cat >>conftest.$ac_ext <<_ACEOF | |
8343 | /* end confdefs.h. */ | |
7862d3a8 AS |
8344 | $ac_includes_default |
8345 | #if HAVE_SYS_SOCKET_H | |
8346 | #include <sys/socket.h> | |
8347 | #endif | |
8348 | #if HAVE_NET_IF_H | |
96f3a036 | 8349 | #include <net/if.h> |
7862d3a8 | 8350 | #endif |
96f3a036 DL |
8351 | |
8352 | int | |
8353 | main () | |
8354 | { | |
8355 | static struct ifreq ac_aggr; | |
8356 | if (sizeof ac_aggr.ifr_hwaddr) | |
8357 | return 0; | |
8358 | ; | |
8359 | return 0; | |
8360 | } | |
8361 | _ACEOF | |
8362 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
8363 | if { (ac_try="$ac_compile" |
8364 | case "(($ac_try" in | |
8365 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8366 | *) ac_try_echo=$ac_try;; | |
8367 | esac | |
8368 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8369 | (eval "$ac_compile") 2>conftest.er1 | |
96f3a036 | 8370 | ac_status=$? |
edfaf76d LK |
8371 | grep -v '^ *+' conftest.er1 >conftest.err |
8372 | rm -f conftest.er1 | |
8373 | cat conftest.err >&5 | |
96f3a036 | 8374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
8375 | (exit $ac_status); } && { |
8376 | test -z "$ac_c_werror_flag" || | |
8377 | test ! -s conftest.err | |
8378 | } && test -s conftest.$ac_objext; then | |
96f3a036 DL |
8379 | ac_cv_member_struct_ifreq_ifr_hwaddr=yes |
8380 | else | |
8381 | echo "$as_me: failed program was:" >&5 | |
8382 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8383 | ||
ca81d7a0 | 8384 | ac_cv_member_struct_ifreq_ifr_hwaddr=no |
96f3a036 | 8385 | fi |
ca81d7a0 JD |
8386 | |
8387 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
96f3a036 | 8388 | fi |
ca81d7a0 JD |
8389 | |
8390 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
96f3a036 | 8391 | fi |
ca81d7a0 JD |
8392 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5 |
8393 | echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; } | |
96f3a036 DL |
8394 | if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then |
8395 | ||
8396 | cat >>confdefs.h <<_ACEOF | |
8397 | #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1 | |
8398 | _ACEOF | |
8399 | ||
8400 | ||
8401 | fi | |
ca81d7a0 JD |
8402 | { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5 |
8403 | echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; } | |
96f3a036 DL |
8404 | if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then |
8405 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8406 | else | |
8407 | cat >conftest.$ac_ext <<_ACEOF | |
96f3a036 DL |
8408 | /* confdefs.h. */ |
8409 | _ACEOF | |
8410 | cat confdefs.h >>conftest.$ac_ext | |
8411 | cat >>conftest.$ac_ext <<_ACEOF | |
8412 | /* end confdefs.h. */ | |
7862d3a8 AS |
8413 | $ac_includes_default |
8414 | #if HAVE_SYS_SOCKET_H | |
8415 | #include <sys/socket.h> | |
8416 | #endif | |
8417 | #if HAVE_NET_IF_H | |
96f3a036 | 8418 | #include <net/if.h> |
7862d3a8 | 8419 | #endif |
96f3a036 DL |
8420 | |
8421 | int | |
8422 | main () | |
8423 | { | |
8424 | static struct ifreq ac_aggr; | |
8425 | if (ac_aggr.ifr_netmask) | |
8426 | return 0; | |
8427 | ; | |
8428 | return 0; | |
8429 | } | |
8430 | _ACEOF | |
8431 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
8432 | if { (ac_try="$ac_compile" |
8433 | case "(($ac_try" in | |
8434 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8435 | *) ac_try_echo=$ac_try;; | |
8436 | esac | |
8437 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8438 | (eval "$ac_compile") 2>conftest.er1 | |
96f3a036 | 8439 | ac_status=$? |
edfaf76d LK |
8440 | grep -v '^ *+' conftest.er1 >conftest.err |
8441 | rm -f conftest.er1 | |
8442 | cat conftest.err >&5 | |
96f3a036 | 8443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
8444 | (exit $ac_status); } && { |
8445 | test -z "$ac_c_werror_flag" || | |
8446 | test ! -s conftest.err | |
8447 | } && test -s conftest.$ac_objext; then | |
96f3a036 DL |
8448 | ac_cv_member_struct_ifreq_ifr_netmask=yes |
8449 | else | |
8450 | echo "$as_me: failed program was:" >&5 | |
8451 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8452 | ||
ca81d7a0 | 8453 | cat >conftest.$ac_ext <<_ACEOF |
96f3a036 DL |
8454 | /* confdefs.h. */ |
8455 | _ACEOF | |
8456 | cat confdefs.h >>conftest.$ac_ext | |
8457 | cat >>conftest.$ac_ext <<_ACEOF | |
8458 | /* end confdefs.h. */ | |
7862d3a8 AS |
8459 | $ac_includes_default |
8460 | #if HAVE_SYS_SOCKET_H | |
8461 | #include <sys/socket.h> | |
8462 | #endif | |
8463 | #if HAVE_NET_IF_H | |
96f3a036 | 8464 | #include <net/if.h> |
7862d3a8 | 8465 | #endif |
96f3a036 DL |
8466 | |
8467 | int | |
8468 | main () | |
8469 | { | |
8470 | static struct ifreq ac_aggr; | |
8471 | if (sizeof ac_aggr.ifr_netmask) | |
8472 | return 0; | |
8473 | ; | |
8474 | return 0; | |
8475 | } | |
8476 | _ACEOF | |
8477 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
8478 | if { (ac_try="$ac_compile" |
8479 | case "(($ac_try" in | |
8480 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8481 | *) ac_try_echo=$ac_try;; | |
8482 | esac | |
8483 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8484 | (eval "$ac_compile") 2>conftest.er1 | |
96f3a036 | 8485 | ac_status=$? |
edfaf76d LK |
8486 | grep -v '^ *+' conftest.er1 >conftest.err |
8487 | rm -f conftest.er1 | |
8488 | cat conftest.err >&5 | |
96f3a036 | 8489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
8490 | (exit $ac_status); } && { |
8491 | test -z "$ac_c_werror_flag" || | |
8492 | test ! -s conftest.err | |
8493 | } && test -s conftest.$ac_objext; then | |
96f3a036 DL |
8494 | ac_cv_member_struct_ifreq_ifr_netmask=yes |
8495 | else | |
8496 | echo "$as_me: failed program was:" >&5 | |
8497 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8498 | ||
ca81d7a0 | 8499 | ac_cv_member_struct_ifreq_ifr_netmask=no |
96f3a036 | 8500 | fi |
ca81d7a0 JD |
8501 | |
8502 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
96f3a036 | 8503 | fi |
ca81d7a0 JD |
8504 | |
8505 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
96f3a036 | 8506 | fi |
ca81d7a0 JD |
8507 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5 |
8508 | echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; } | |
96f3a036 DL |
8509 | if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then |
8510 | ||
8511 | cat >>confdefs.h <<_ACEOF | |
8512 | #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1 | |
8513 | _ACEOF | |
8514 | ||
8515 | ||
8516 | fi | |
ca81d7a0 JD |
8517 | { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5 |
8518 | echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; } | |
96f3a036 DL |
8519 | if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then |
8520 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8521 | else | |
8522 | cat >conftest.$ac_ext <<_ACEOF | |
96f3a036 DL |
8523 | /* confdefs.h. */ |
8524 | _ACEOF | |
8525 | cat confdefs.h >>conftest.$ac_ext | |
8526 | cat >>conftest.$ac_ext <<_ACEOF | |
8527 | /* end confdefs.h. */ | |
7862d3a8 AS |
8528 | $ac_includes_default |
8529 | #if HAVE_SYS_SOCKET_H | |
8530 | #include <sys/socket.h> | |
8531 | #endif | |
8532 | #if HAVE_NET_IF_H | |
96f3a036 | 8533 | #include <net/if.h> |
7862d3a8 | 8534 | #endif |
96f3a036 DL |
8535 | |
8536 | int | |
8537 | main () | |
8538 | { | |
8539 | static struct ifreq ac_aggr; | |
8540 | if (ac_aggr.ifr_broadaddr) | |
8541 | return 0; | |
8542 | ; | |
8543 | return 0; | |
8544 | } | |
8545 | _ACEOF | |
8546 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
8547 | if { (ac_try="$ac_compile" |
8548 | case "(($ac_try" in | |
8549 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8550 | *) ac_try_echo=$ac_try;; | |
8551 | esac | |
8552 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8553 | (eval "$ac_compile") 2>conftest.er1 | |
96f3a036 | 8554 | ac_status=$? |
edfaf76d LK |
8555 | grep -v '^ *+' conftest.er1 >conftest.err |
8556 | rm -f conftest.er1 | |
8557 | cat conftest.err >&5 | |
96f3a036 | 8558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
8559 | (exit $ac_status); } && { |
8560 | test -z "$ac_c_werror_flag" || | |
8561 | test ! -s conftest.err | |
8562 | } && test -s conftest.$ac_objext; then | |
96f3a036 DL |
8563 | ac_cv_member_struct_ifreq_ifr_broadaddr=yes |
8564 | else | |
8565 | echo "$as_me: failed program was:" >&5 | |
8566 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8567 | ||
ca81d7a0 | 8568 | cat >conftest.$ac_ext <<_ACEOF |
96f3a036 DL |
8569 | /* confdefs.h. */ |
8570 | _ACEOF | |
8571 | cat confdefs.h >>conftest.$ac_ext | |
8572 | cat >>conftest.$ac_ext <<_ACEOF | |
8573 | /* end confdefs.h. */ | |
7862d3a8 AS |
8574 | $ac_includes_default |
8575 | #if HAVE_SYS_SOCKET_H | |
8576 | #include <sys/socket.h> | |
8577 | #endif | |
8578 | #if HAVE_NET_IF_H | |
96f3a036 | 8579 | #include <net/if.h> |
7862d3a8 | 8580 | #endif |
96f3a036 DL |
8581 | |
8582 | int | |
8583 | main () | |
8584 | { | |
8585 | static struct ifreq ac_aggr; | |
8586 | if (sizeof ac_aggr.ifr_broadaddr) | |
8587 | return 0; | |
8588 | ; | |
8589 | return 0; | |
8590 | } | |
8591 | _ACEOF | |
8592 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
8593 | if { (ac_try="$ac_compile" |
8594 | case "(($ac_try" in | |
8595 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8596 | *) ac_try_echo=$ac_try;; | |
8597 | esac | |
8598 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8599 | (eval "$ac_compile") 2>conftest.er1 | |
96f3a036 | 8600 | ac_status=$? |
edfaf76d LK |
8601 | grep -v '^ *+' conftest.er1 >conftest.err |
8602 | rm -f conftest.er1 | |
8603 | cat conftest.err >&5 | |
96f3a036 | 8604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
8605 | (exit $ac_status); } && { |
8606 | test -z "$ac_c_werror_flag" || | |
8607 | test ! -s conftest.err | |
8608 | } && test -s conftest.$ac_objext; then | |
96f3a036 DL |
8609 | ac_cv_member_struct_ifreq_ifr_broadaddr=yes |
8610 | else | |
8611 | echo "$as_me: failed program was:" >&5 | |
8612 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8613 | ||
ca81d7a0 | 8614 | ac_cv_member_struct_ifreq_ifr_broadaddr=no |
96f3a036 | 8615 | fi |
ca81d7a0 JD |
8616 | |
8617 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
96f3a036 | 8618 | fi |
ca81d7a0 JD |
8619 | |
8620 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
96f3a036 | 8621 | fi |
ca81d7a0 JD |
8622 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5 |
8623 | echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; } | |
96f3a036 DL |
8624 | if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then |
8625 | ||
8626 | cat >>confdefs.h <<_ACEOF | |
8627 | #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1 | |
8628 | _ACEOF | |
8629 | ||
8630 | ||
8631 | fi | |
ca81d7a0 JD |
8632 | { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5 |
8633 | echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; } | |
96f3a036 DL |
8634 | if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then |
8635 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8636 | else | |
8637 | cat >conftest.$ac_ext <<_ACEOF | |
96f3a036 DL |
8638 | /* confdefs.h. */ |
8639 | _ACEOF | |
8640 | cat confdefs.h >>conftest.$ac_ext | |
8641 | cat >>conftest.$ac_ext <<_ACEOF | |
8642 | /* end confdefs.h. */ | |
7862d3a8 AS |
8643 | $ac_includes_default |
8644 | #if HAVE_SYS_SOCKET_H | |
8645 | #include <sys/socket.h> | |
8646 | #endif | |
8647 | #if HAVE_NET_IF_H | |
96f3a036 | 8648 | #include <net/if.h> |
7862d3a8 | 8649 | #endif |
96f3a036 DL |
8650 | |
8651 | int | |
8652 | main () | |
8653 | { | |
8654 | static struct ifreq ac_aggr; | |
8655 | if (ac_aggr.ifr_addr) | |
8656 | return 0; | |
8657 | ; | |
8658 | return 0; | |
8659 | } | |
8660 | _ACEOF | |
8661 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
8662 | if { (ac_try="$ac_compile" |
8663 | case "(($ac_try" in | |
8664 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8665 | *) ac_try_echo=$ac_try;; | |
8666 | esac | |
8667 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8668 | (eval "$ac_compile") 2>conftest.er1 | |
96f3a036 | 8669 | ac_status=$? |
edfaf76d LK |
8670 | grep -v '^ *+' conftest.er1 >conftest.err |
8671 | rm -f conftest.er1 | |
8672 | cat conftest.err >&5 | |
96f3a036 | 8673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
8674 | (exit $ac_status); } && { |
8675 | test -z "$ac_c_werror_flag" || | |
8676 | test ! -s conftest.err | |
8677 | } && test -s conftest.$ac_objext; then | |
96f3a036 DL |
8678 | ac_cv_member_struct_ifreq_ifr_addr=yes |
8679 | else | |
8680 | echo "$as_me: failed program was:" >&5 | |
8681 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8682 | ||
ca81d7a0 | 8683 | cat >conftest.$ac_ext <<_ACEOF |
96f3a036 DL |
8684 | /* confdefs.h. */ |
8685 | _ACEOF | |
8686 | cat confdefs.h >>conftest.$ac_ext | |
8687 | cat >>conftest.$ac_ext <<_ACEOF | |
8688 | /* end confdefs.h. */ | |
7862d3a8 AS |
8689 | $ac_includes_default |
8690 | #if HAVE_SYS_SOCKET_H | |
8691 | #include <sys/socket.h> | |
8692 | #endif | |
8693 | #if HAVE_NET_IF_H | |
96f3a036 | 8694 | #include <net/if.h> |
7862d3a8 | 8695 | #endif |
96f3a036 DL |
8696 | |
8697 | int | |
8698 | main () | |
8699 | { | |
8700 | static struct ifreq ac_aggr; | |
8701 | if (sizeof ac_aggr.ifr_addr) | |
8702 | return 0; | |
8703 | ; | |
8704 | return 0; | |
8705 | } | |
8706 | _ACEOF | |
8707 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
8708 | if { (ac_try="$ac_compile" |
8709 | case "(($ac_try" in | |
8710 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8711 | *) ac_try_echo=$ac_try;; | |
8712 | esac | |
8713 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8714 | (eval "$ac_compile") 2>conftest.er1 | |
96f3a036 | 8715 | ac_status=$? |
edfaf76d LK |
8716 | grep -v '^ *+' conftest.er1 >conftest.err |
8717 | rm -f conftest.er1 | |
8718 | cat conftest.err >&5 | |
96f3a036 | 8719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
8720 | (exit $ac_status); } && { |
8721 | test -z "$ac_c_werror_flag" || | |
8722 | test ! -s conftest.err | |
8723 | } && test -s conftest.$ac_objext; then | |
96f3a036 DL |
8724 | ac_cv_member_struct_ifreq_ifr_addr=yes |
8725 | else | |
8726 | echo "$as_me: failed program was:" >&5 | |
8727 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8728 | ||
ca81d7a0 | 8729 | ac_cv_member_struct_ifreq_ifr_addr=no |
96f3a036 | 8730 | fi |
ca81d7a0 JD |
8731 | |
8732 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
96f3a036 | 8733 | fi |
ca81d7a0 JD |
8734 | |
8735 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
96f3a036 | 8736 | fi |
ca81d7a0 JD |
8737 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5 |
8738 | echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; } | |
96f3a036 DL |
8739 | if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then |
8740 | ||
8741 | cat >>confdefs.h <<_ACEOF | |
8742 | #define HAVE_STRUCT_IFREQ_IFR_ADDR 1 | |
8743 | _ACEOF | |
8744 | ||
8745 | ||
8746 | fi | |
8747 | ||
8799b3e4 | 8748 | |
8799b3e4 | 8749 | |
ca81d7a0 JD |
8750 | { echo "$as_me:$LINENO: checking for function prototypes" >&5 |
8751 | echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; } | |
8752 | if test "$ac_cv_prog_cc_c89" != no; then | |
8753 | { echo "$as_me:$LINENO: result: yes" >&5 | |
8754 | echo "${ECHO_T}yes" >&6; } | |
98418dba | 8755 | |
c0d27fcc | 8756 | cat >>confdefs.h <<\_ACEOF |
98418dba | 8757 | #define PROTOTYPES 1 |
c0d27fcc MR |
8758 | _ACEOF |
8759 | ||
8760 | ||
8761 | cat >>confdefs.h <<\_ACEOF | |
8762 | #define __PROTOTYPES 1 | |
8763 | _ACEOF | |
98418dba CW |
8764 | |
8765 | else | |
ca81d7a0 JD |
8766 | { echo "$as_me:$LINENO: result: no" >&5 |
8767 | echo "${ECHO_T}no" >&6; } | |
98418dba CW |
8768 | fi |
8769 | ||
ca81d7a0 JD |
8770 | { echo "$as_me:$LINENO: checking for working volatile" >&5 |
8771 | echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; } | |
98418dba CW |
8772 | if test "${ac_cv_c_volatile+set}" = set; then |
8773 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8774 | else | |
8775 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
8776 | /* confdefs.h. */ |
8777 | _ACEOF | |
8778 | cat confdefs.h >>conftest.$ac_ext | |
8779 | cat >>conftest.$ac_ext <<_ACEOF | |
8780 | /* end confdefs.h. */ | |
98418dba | 8781 | |
98418dba CW |
8782 | int |
8783 | main () | |
8784 | { | |
8785 | ||
8786 | volatile int x; | |
ca81d7a0 JD |
8787 | int * volatile y = (int *) 0; |
8788 | return !x && !y; | |
98418dba CW |
8789 | ; |
8790 | return 0; | |
8791 | } | |
8792 | _ACEOF | |
8793 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
8794 | if { (ac_try="$ac_compile" |
8795 | case "(($ac_try" in | |
8796 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8797 | *) ac_try_echo=$ac_try;; | |
8798 | esac | |
8799 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8800 | (eval "$ac_compile") 2>conftest.er1 | |
98418dba | 8801 | ac_status=$? |
edfaf76d LK |
8802 | grep -v '^ *+' conftest.er1 >conftest.err |
8803 | rm -f conftest.er1 | |
8804 | cat conftest.err >&5 | |
c0d27fcc | 8805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
8806 | (exit $ac_status); } && { |
8807 | test -z "$ac_c_werror_flag" || | |
8808 | test ! -s conftest.err | |
8809 | } && test -s conftest.$ac_objext; then | |
98418dba CW |
8810 | ac_cv_c_volatile=yes |
8811 | else | |
8812 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
8813 | sed 's/^/| /' conftest.$ac_ext >&5 |
8814 | ||
ca81d7a0 | 8815 | ac_cv_c_volatile=no |
98418dba | 8816 | fi |
ca81d7a0 JD |
8817 | |
8818 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
98418dba | 8819 | fi |
ca81d7a0 JD |
8820 | { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5 |
8821 | echo "${ECHO_T}$ac_cv_c_volatile" >&6; } | |
98418dba CW |
8822 | if test $ac_cv_c_volatile = no; then |
8823 | ||
c0d27fcc | 8824 | cat >>confdefs.h <<\_ACEOF |
98418dba | 8825 | #define volatile |
c0d27fcc | 8826 | _ACEOF |
98418dba CW |
8827 | |
8828 | fi | |
8829 | ||
ca81d7a0 JD |
8830 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
8831 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } | |
98418dba CW |
8832 | if test "${ac_cv_c_const+set}" = set; then |
8833 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8834 | else | |
8835 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
8836 | /* confdefs.h. */ |
8837 | _ACEOF | |
8838 | cat confdefs.h >>conftest.$ac_ext | |
8839 | cat >>conftest.$ac_ext <<_ACEOF | |
8840 | /* end confdefs.h. */ | |
98418dba | 8841 | |
98418dba CW |
8842 | int |
8843 | main () | |
8844 | { | |
8845 | /* FIXME: Include the comments suggested by Paul. */ | |
8846 | #ifndef __cplusplus | |
8847 | /* Ultrix mips cc rejects this. */ | |
8848 | typedef int charset[2]; | |
f053c89f | 8849 | const charset cs; |
98418dba | 8850 | /* SunOS 4.1.1 cc rejects this. */ |
f053c89f CY |
8851 | char const *const *pcpcc; |
8852 | char **ppc; | |
98418dba CW |
8853 | /* NEC SVR4.0.2 mips cc rejects this. */ |
8854 | struct point {int x, y;}; | |
8855 | static struct point const zero = {0,0}; | |
8856 | /* AIX XL C 1.02.0.0 rejects this. | |
8857 | It does not let you subtract one const X* pointer from another in | |
8858 | an arm of an if-expression whose if-part is not a constant | |
8859 | expression */ | |
8860 | const char *g = "string"; | |
f053c89f | 8861 | pcpcc = &g + (g ? g-g : 0); |
98418dba | 8862 | /* HPUX 7.0 cc rejects these. */ |
f053c89f CY |
8863 | ++pcpcc; |
8864 | ppc = (char**) pcpcc; | |
8865 | pcpcc = (char const *const *) ppc; | |
98418dba CW |
8866 | { /* SCO 3.2v4 cc rejects this. */ |
8867 | char *t; | |
8868 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
8869 | ||
8870 | *t++ = 0; | |
ca81d7a0 | 8871 | if (s) return 0; |
98418dba CW |
8872 | } |
8873 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
8874 | int x[] = {25, 17}; | |
8875 | const int *foo = &x[0]; | |
8876 | ++foo; | |
8877 | } | |
8878 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
8879 | typedef const int *iptr; | |
8880 | iptr p = 0; | |
8881 | ++p; | |
8882 | } | |
8883 | { /* AIX XL C 1.02.0.0 rejects this saying | |
8884 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
8885 | struct s { int j; const int *ap[3]; }; | |
8886 | struct s *b; b->j = 5; | |
8887 | } | |
8888 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
8889 | const int foo = 10; | |
ca81d7a0 | 8890 | if (!foo) return 0; |
98418dba | 8891 | } |
f053c89f | 8892 | return !cs[0] && !zero.x; |
98418dba CW |
8893 | #endif |
8894 | ||
8895 | ; | |
8896 | return 0; | |
8897 | } | |
8898 | _ACEOF | |
8899 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
8900 | if { (ac_try="$ac_compile" |
8901 | case "(($ac_try" in | |
8902 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8903 | *) ac_try_echo=$ac_try;; | |
8904 | esac | |
8905 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8906 | (eval "$ac_compile") 2>conftest.er1 | |
98418dba | 8907 | ac_status=$? |
edfaf76d LK |
8908 | grep -v '^ *+' conftest.er1 >conftest.err |
8909 | rm -f conftest.er1 | |
8910 | cat conftest.err >&5 | |
c0d27fcc | 8911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
8912 | (exit $ac_status); } && { |
8913 | test -z "$ac_c_werror_flag" || | |
8914 | test ! -s conftest.err | |
8915 | } && test -s conftest.$ac_objext; then | |
98418dba CW |
8916 | ac_cv_c_const=yes |
8917 | else | |
8918 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
8919 | sed 's/^/| /' conftest.$ac_ext >&5 |
8920 | ||
ca81d7a0 | 8921 | ac_cv_c_const=no |
98418dba | 8922 | fi |
ca81d7a0 JD |
8923 | |
8924 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
98418dba | 8925 | fi |
ca81d7a0 JD |
8926 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
8927 | echo "${ECHO_T}$ac_cv_c_const" >&6; } | |
98418dba CW |
8928 | if test $ac_cv_c_const = no; then |
8929 | ||
c0d27fcc | 8930 | cat >>confdefs.h <<\_ACEOF |
98418dba | 8931 | #define const |
c0d27fcc | 8932 | _ACEOF |
98418dba CW |
8933 | |
8934 | fi | |
8935 | ||
ca81d7a0 JD |
8936 | { echo "$as_me:$LINENO: checking for void * support" >&5 |
8937 | echo $ECHO_N "checking for void * support... $ECHO_C" >&6; } | |
98418dba CW |
8938 | if test "${emacs_cv_void_star+set}" = set; then |
8939 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8940 | else | |
8941 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
8942 | /* confdefs.h. */ |
8943 | _ACEOF | |
8944 | cat confdefs.h >>conftest.$ac_ext | |
8945 | cat >>conftest.$ac_ext <<_ACEOF | |
8946 | /* end confdefs.h. */ | |
98418dba | 8947 | |
98418dba CW |
8948 | int |
8949 | main () | |
8950 | { | |
8951 | void * foo; | |
8952 | ; | |
8953 | return 0; | |
8954 | } | |
8955 | _ACEOF | |
8956 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
8957 | if { (ac_try="$ac_compile" |
8958 | case "(($ac_try" in | |
8959 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8960 | *) ac_try_echo=$ac_try;; | |
8961 | esac | |
8962 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8963 | (eval "$ac_compile") 2>conftest.er1 | |
98418dba | 8964 | ac_status=$? |
edfaf76d LK |
8965 | grep -v '^ *+' conftest.er1 >conftest.err |
8966 | rm -f conftest.er1 | |
8967 | cat conftest.err >&5 | |
c0d27fcc | 8968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
8969 | (exit $ac_status); } && { |
8970 | test -z "$ac_c_werror_flag" || | |
8971 | test ! -s conftest.err | |
8972 | } && test -s conftest.$ac_objext; then | |
98418dba CW |
8973 | emacs_cv_void_star=yes |
8974 | else | |
8975 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
8976 | sed 's/^/| /' conftest.$ac_ext >&5 |
8977 | ||
ca81d7a0 | 8978 | emacs_cv_void_star=no |
98418dba | 8979 | fi |
ca81d7a0 JD |
8980 | |
8981 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
98418dba | 8982 | fi |
ca81d7a0 JD |
8983 | { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5 |
8984 | echo "${ECHO_T}$emacs_cv_void_star" >&6; } | |
98418dba | 8985 | if test $emacs_cv_void_star = yes; then |
c0d27fcc | 8986 | cat >>confdefs.h <<\_ACEOF |
98418dba | 8987 | #define POINTER_TYPE void |
c0d27fcc | 8988 | _ACEOF |
98418dba CW |
8989 | |
8990 | else | |
c0d27fcc | 8991 | cat >>confdefs.h <<\_ACEOF |
98418dba | 8992 | #define POINTER_TYPE char |
c0d27fcc | 8993 | _ACEOF |
98418dba CW |
8994 | |
8995 | fi | |
8996 | ||
c0d27fcc | 8997 | |
4494a266 JD |
8998 | |
8999 | ||
cd958eb3 | 9000 | |
ca81d7a0 JD |
9001 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
9002 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } | |
9003 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
9004 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then | |
98418dba CW |
9005 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9006 | else | |
c0d27fcc | 9007 | cat >conftest.make <<\_ACEOF |
ca81d7a0 | 9008 | SHELL = /bin/sh |
98418dba | 9009 | all: |
ca81d7a0 | 9010 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
c0d27fcc | 9011 | _ACEOF |
98418dba | 9012 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
ca81d7a0 JD |
9013 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
9014 | *@@@%%%=?*=@@@%%%*) | |
9015 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
9016 | *) | |
9017 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
9018 | esac | |
98418dba CW |
9019 | rm -f conftest.make |
9020 | fi | |
ca81d7a0 JD |
9021 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
9022 | { echo "$as_me:$LINENO: result: yes" >&5 | |
9023 | echo "${ECHO_T}yes" >&6; } | |
98418dba CW |
9024 | SET_MAKE= |
9025 | else | |
ca81d7a0 JD |
9026 | { echo "$as_me:$LINENO: result: no" >&5 |
9027 | echo "${ECHO_T}no" >&6; } | |
98418dba CW |
9028 | SET_MAKE="MAKE=${MAKE-make}" |
9029 | fi | |
9030 | ||
c0d27fcc | 9031 | |
ca81d7a0 JD |
9032 | { echo "$as_me:$LINENO: checking for long file names" >&5 |
9033 | echo $ECHO_N "checking for long file names... $ECHO_C" >&6; } | |
98418dba CW |
9034 | if test "${ac_cv_sys_long_file_names+set}" = set; then |
9035 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9036 | else | |
9037 | ac_cv_sys_long_file_names=yes | |
9038 | # Test for long file names in all the places we know might matter: | |
9039 | # . the current directory, where building will happen | |
9040 | # $prefix/lib where we will be installing things | |
9041 | # $exec_prefix/lib likewise | |
98418dba | 9042 | # $TMPDIR if set, where it might want to write temporary files |
98418dba CW |
9043 | # /tmp where it might want to write temporary files |
9044 | # /var/tmp likewise | |
9045 | # /usr/tmp likewise | |
ca81d7a0 JD |
9046 | for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do |
9047 | # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib | |
9048 | # in the usual case where exec_prefix is '${prefix}'. | |
9049 | case $ac_dir in #( | |
9050 | . | /* | ?:[\\/]*) ;; #( | |
9051 | *) continue;; | |
9052 | esac | |
9053 | test -w "$ac_dir/." || continue # It is less confusing to not echo anything here. | |
98418dba | 9054 | ac_xdir=$ac_dir/cf$$ |
ca81d7a0 | 9055 | (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue |
98418dba CW |
9056 | ac_tf1=$ac_xdir/conftest9012345 |
9057 | ac_tf2=$ac_xdir/conftest9012346 | |
ca81d7a0 | 9058 | touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" || |
98418dba | 9059 | ac_cv_sys_long_file_names=no |
ca81d7a0 JD |
9060 | rm -f -r "$ac_xdir" 2>/dev/null |
9061 | test $ac_cv_sys_long_file_names = no && break | |
98418dba CW |
9062 | done |
9063 | fi | |
ca81d7a0 JD |
9064 | { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5 |
9065 | echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; } | |
98418dba CW |
9066 | if test $ac_cv_sys_long_file_names = yes; then |
9067 | ||
c0d27fcc | 9068 | cat >>confdefs.h <<\_ACEOF |
98418dba | 9069 | #define HAVE_LONG_FILE_NAMES 1 |
c0d27fcc | 9070 | _ACEOF |
98418dba CW |
9071 | |
9072 | fi | |
9073 | ||
c0d27fcc | 9074 | |
98418dba CW |
9075 | #### Choose a window system. |
9076 | ||
ca81d7a0 JD |
9077 | { echo "$as_me:$LINENO: checking for X" >&5 |
9078 | echo $ECHO_N "checking for X... $ECHO_C" >&6; } | |
98418dba | 9079 | |
c0d27fcc | 9080 | |
ca81d7a0 | 9081 | # Check whether --with-x was given. |
98418dba | 9082 | if test "${with_x+set}" = set; then |
ca81d7a0 JD |
9083 | withval=$with_x; |
9084 | fi | |
98418dba | 9085 | |
98418dba CW |
9086 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
9087 | if test "x$with_x" = xno; then | |
9088 | # The user explicitly disabled X. | |
9089 | have_x=disabled | |
9090 | else | |
ca81d7a0 JD |
9091 | case $x_includes,$x_libraries in #( |
9092 | *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5 | |
9093 | echo "$as_me: error: Cannot use X directory names containing '" >&2;} | |
9094 | { (exit 1); exit 1; }; };; #( | |
9095 | *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then | |
98418dba CW |
9096 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9097 | else | |
9098 | # One or both of the vars are not set, and there is no cached value. | |
9099 | ac_x_includes=no ac_x_libraries=no | |
ca81d7a0 | 9100 | rm -f -r conftest.dir |
98418dba CW |
9101 | if mkdir conftest.dir; then |
9102 | cd conftest.dir | |
c0d27fcc | 9103 | cat >Imakefile <<'_ACEOF' |
ca81d7a0 JD |
9104 | incroot: |
9105 | @echo incroot='${INCROOT}' | |
9106 | usrlibdir: | |
9107 | @echo usrlibdir='${USRLIBDIR}' | |
9108 | libdir: | |
9109 | @echo libdir='${LIBDIR}' | |
9110 | _ACEOF | |
9111 | if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then | |
98418dba | 9112 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
ca81d7a0 JD |
9113 | for ac_var in incroot usrlibdir libdir; do |
9114 | eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" | |
9115 | done | |
98418dba CW |
9116 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
9117 | for ac_extension in a so sl; do | |
ca81d7a0 JD |
9118 | if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && |
9119 | test -f "$ac_im_libdir/libX11.$ac_extension"; then | |
edfaf76d | 9120 | ac_im_usrlibdir=$ac_im_libdir; break |
98418dba CW |
9121 | fi |
9122 | done | |
9123 | # Screen out bogus values from the imake configuration. They are | |
9124 | # bogus both because they are the default anyway, and because | |
9125 | # using them would break gcc on systems where it needs fixed includes. | |
9126 | case $ac_im_incroot in | |
ca81d7a0 | 9127 | /usr/include) ac_x_includes= ;; |
98418dba CW |
9128 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
9129 | esac | |
9130 | case $ac_im_usrlibdir in | |
9131 | /usr/lib | /lib) ;; | |
9132 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; | |
9133 | esac | |
9134 | fi | |
9135 | cd .. | |
ca81d7a0 | 9136 | rm -f -r conftest.dir |
98418dba CW |
9137 | fi |
9138 | ||
9139 | # Standard set of common directories for X headers. | |
9140 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
9141 | ac_x_header_dirs=' | |
9142 | /usr/X11/include | |
9143 | /usr/X11R6/include | |
9144 | /usr/X11R5/include | |
9145 | /usr/X11R4/include | |
9146 | ||
9147 | /usr/include/X11 | |
9148 | /usr/include/X11R6 | |
9149 | /usr/include/X11R5 | |
9150 | /usr/include/X11R4 | |
9151 | ||
9152 | /usr/local/X11/include | |
9153 | /usr/local/X11R6/include | |
9154 | /usr/local/X11R5/include | |
9155 | /usr/local/X11R4/include | |
9156 | ||
9157 | /usr/local/include/X11 | |
9158 | /usr/local/include/X11R6 | |
9159 | /usr/local/include/X11R5 | |
9160 | /usr/local/include/X11R4 | |
9161 | ||
9162 | /usr/X386/include | |
9163 | /usr/x386/include | |
9164 | /usr/XFree86/include/X11 | |
9165 | ||
9166 | /usr/include | |
9167 | /usr/local/include | |
9168 | /usr/unsupported/include | |
9169 | /usr/athena/include | |
9170 | /usr/local/x11r5/include | |
9171 | /usr/lpp/Xamples/include | |
9172 | ||
9173 | /usr/openwin/include | |
9174 | /usr/openwin/share/include' | |
9175 | ||
9176 | if test "$ac_x_includes" = no; then | |
ca81d7a0 | 9177 | # Guess where to find include files, by looking for Xlib.h. |
98418dba CW |
9178 | # First, try using that file with no special directory specified. |
9179 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
9180 | /* confdefs.h. */ |
9181 | _ACEOF | |
9182 | cat confdefs.h >>conftest.$ac_ext | |
9183 | cat >>conftest.$ac_ext <<_ACEOF | |
9184 | /* end confdefs.h. */ | |
ca81d7a0 | 9185 | #include <X11/Xlib.h> |
98418dba | 9186 | _ACEOF |
ca81d7a0 JD |
9187 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
9188 | case "(($ac_try" in | |
9189 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9190 | *) ac_try_echo=$ac_try;; | |
9191 | esac | |
9192 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9193 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
98418dba | 9194 | ac_status=$? |
6bae0ccf | 9195 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
9196 | rm -f conftest.er1 |
9197 | cat conftest.err >&5 | |
c0d27fcc | 9198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
9199 | (exit $ac_status); } >/dev/null && { |
9200 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9201 | test ! -s conftest.err | |
9202 | }; then | |
98418dba CW |
9203 | # We can compile using X headers with no special include directory. |
9204 | ac_x_includes= | |
9205 | else | |
9206 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
9207 | sed 's/^/| /' conftest.$ac_ext >&5 |
9208 | ||
98418dba | 9209 | for ac_dir in $ac_x_header_dirs; do |
ca81d7a0 | 9210 | if test -r "$ac_dir/X11/Xlib.h"; then |
98418dba CW |
9211 | ac_x_includes=$ac_dir |
9212 | break | |
9213 | fi | |
9214 | done | |
9215 | fi | |
ca81d7a0 | 9216 | |
98418dba CW |
9217 | rm -f conftest.err conftest.$ac_ext |
9218 | fi # $ac_x_includes = no | |
9219 | ||
9220 | if test "$ac_x_libraries" = no; then | |
9221 | # Check for the libraries. | |
9222 | # See if we find them without any special options. | |
9223 | # Don't add to $LIBS permanently. | |
9224 | ac_save_LIBS=$LIBS | |
f053c89f | 9225 | LIBS="-lX11 $LIBS" |
98418dba | 9226 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
9227 | /* confdefs.h. */ |
9228 | _ACEOF | |
9229 | cat confdefs.h >>conftest.$ac_ext | |
9230 | cat >>conftest.$ac_ext <<_ACEOF | |
9231 | /* end confdefs.h. */ | |
ca81d7a0 | 9232 | #include <X11/Xlib.h> |
98418dba CW |
9233 | int |
9234 | main () | |
9235 | { | |
ca81d7a0 | 9236 | XrmInitialize () |
98418dba CW |
9237 | ; |
9238 | return 0; | |
9239 | } | |
9240 | _ACEOF | |
9241 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
9242 | if { (ac_try="$ac_link" |
9243 | case "(($ac_try" in | |
9244 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9245 | *) ac_try_echo=$ac_try;; | |
9246 | esac | |
9247 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9248 | (eval "$ac_link") 2>conftest.er1 | |
98418dba | 9249 | ac_status=$? |
edfaf76d LK |
9250 | grep -v '^ *+' conftest.er1 >conftest.err |
9251 | rm -f conftest.er1 | |
9252 | cat conftest.err >&5 | |
c0d27fcc | 9253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
9254 | (exit $ac_status); } && { |
9255 | test -z "$ac_c_werror_flag" || | |
9256 | test ! -s conftest.err | |
9257 | } && test -s conftest$ac_exeext && | |
9258 | $as_test_x conftest$ac_exeext; then | |
98418dba CW |
9259 | LIBS=$ac_save_LIBS |
9260 | # We can link X programs with no special library path. | |
9261 | ac_x_libraries= | |
9262 | else | |
9263 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
9264 | sed 's/^/| /' conftest.$ac_ext >&5 |
9265 | ||
ca81d7a0 | 9266 | LIBS=$ac_save_LIBS |
98418dba CW |
9267 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
9268 | do | |
9269 | # Don't even attempt the hair of trying to link an X program! | |
9270 | for ac_extension in a so sl; do | |
f053c89f | 9271 | if test -r "$ac_dir/libX11.$ac_extension"; then |
98418dba CW |
9272 | ac_x_libraries=$ac_dir |
9273 | break 2 | |
9274 | fi | |
9275 | done | |
9276 | done | |
9277 | fi | |
ca81d7a0 | 9278 | |
f053c89f | 9279 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 9280 | conftest$ac_exeext conftest.$ac_ext |
98418dba CW |
9281 | fi # $ac_x_libraries = no |
9282 | ||
ca81d7a0 JD |
9283 | case $ac_x_includes,$ac_x_libraries in #( |
9284 | no,* | *,no | *\'*) | |
9285 | # Didn't find X, or a directory has "'" in its name. | |
9286 | ac_cv_have_x="have_x=no";; #( | |
9287 | *) | |
9288 | # Record where we found X for the cache. | |
9289 | ac_cv_have_x="have_x=yes\ | |
9290 | ac_x_includes='$ac_x_includes'\ | |
9291 | ac_x_libraries='$ac_x_libraries'" | |
9292 | esac | |
98418dba | 9293 | fi |
ca81d7a0 JD |
9294 | ;; #( |
9295 | *) have_x=yes;; | |
9296 | esac | |
98418dba CW |
9297 | eval "$ac_cv_have_x" |
9298 | fi # $with_x != no | |
9299 | ||
9300 | if test "$have_x" != yes; then | |
ca81d7a0 JD |
9301 | { echo "$as_me:$LINENO: result: $have_x" >&5 |
9302 | echo "${ECHO_T}$have_x" >&6; } | |
98418dba CW |
9303 | no_x=yes |
9304 | else | |
9305 | # If each of the values was on the command line, it overrides each guess. | |
9306 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
9307 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
9308 | # Update the cache value to reflect the command line values. | |
ca81d7a0 JD |
9309 | ac_cv_have_x="have_x=yes\ |
9310 | ac_x_includes='$x_includes'\ | |
9311 | ac_x_libraries='$x_libraries'" | |
9312 | { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 | |
9313 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; } | |
98418dba CW |
9314 | fi |
9315 | ||
9316 | if test "$no_x" = yes; then | |
9317 | window_system=none | |
9318 | else | |
9319 | window_system=x11 | |
9320 | fi | |
9321 | ||
a8cd2496 GM |
9322 | ## Workaround for bug in autoconf <= 2.62. |
9323 | ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html | |
9324 | ## No need to do anything special for these standard directories. | |
921fbdf0 | 9325 | ## This is an experiment, take it out if it causes problems. |
a8cd2496 GM |
9326 | if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then |
9327 | ||
9328 | x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'` | |
9329 | ||
9330 | fi | |
9331 | ||
92d1ccf4 AS |
9332 | if test "${x_libraries}" != NONE; then |
9333 | if test -n "${x_libraries}"; then | |
9334 | LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"` | |
9335 | LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"` | |
9336 | fi | |
98418dba | 9337 | x_default_search_path="" |
92d1ccf4 AS |
9338 | x_search_path=${x_libraries} |
9339 | if test -z "${x_search_path}"; then | |
9340 | x_search_path=/usr/lib | |
9341 | fi | |
9342 | for x_library in `echo ${x_search_path}: | \ | |
9343 | sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do | |
98418dba CW |
9344 | x_search_path="\ |
9345 | ${x_library}/X11/%L/%T/%N%C%S:\ | |
9346 | ${x_library}/X11/%l/%T/%N%C%S:\ | |
9347 | ${x_library}/X11/%T/%N%C%S:\ | |
9348 | ${x_library}/X11/%L/%T/%N%S:\ | |
9349 | ${x_library}/X11/%l/%T/%N%S:\ | |
9350 | ${x_library}/X11/%T/%N%S" | |
9351 | if test x"${x_default_search_path}" = x; then | |
9352 | x_default_search_path=${x_search_path} | |
9353 | else | |
9354 | x_default_search_path="${x_search_path}:${x_default_search_path}" | |
9355 | fi | |
9356 | done | |
9357 | fi | |
9358 | if test "${x_includes}" != NONE && test -n "${x_includes}"; then | |
9359 | C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"` | |
9360 | fi | |
9361 | ||
9362 | if test x"${x_includes}" = x; then | |
9363 | bitmapdir=/usr/include/X11/bitmaps | |
9364 | else | |
9365 | # accumulate include directories that have X11 bitmap subdirectories | |
9366 | bmd_acc="dummyval" | |
9367 | for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do | |
9368 | if test -d "${bmd}/X11/bitmaps"; then | |
9369 | bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps" | |
9370 | fi | |
9371 | if test -d "${bmd}/bitmaps"; then | |
9372 | bmd_acc="${bmd_acc}:${bmd}/bitmaps" | |
9373 | fi | |
9374 | done | |
9375 | if test ${bmd_acc} != "dummyval"; then | |
9376 | bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"` | |
9377 | fi | |
9378 | fi | |
9379 | ||
5d6da11e | 9380 | HAVE_CARBON=no |
1d4d5604 YM |
9381 | if test "${with_carbon}" != no; then |
9382 | if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then | |
ca81d7a0 JD |
9383 | { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5 |
9384 | echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; } | |
5d6da11e YM |
9385 | if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then |
9386 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9387 | fi | |
ca81d7a0 JD |
9388 | { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5 |
9389 | echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; } | |
5d6da11e YM |
9390 | else |
9391 | # Is the header compilable? | |
ca81d7a0 JD |
9392 | { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5 |
9393 | echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; } | |
5d6da11e YM |
9394 | cat >conftest.$ac_ext <<_ACEOF |
9395 | /* confdefs.h. */ | |
9396 | _ACEOF | |
9397 | cat confdefs.h >>conftest.$ac_ext | |
9398 | cat >>conftest.$ac_ext <<_ACEOF | |
9399 | /* end confdefs.h. */ | |
9400 | $ac_includes_default | |
9401 | #include <Carbon/Carbon.h> | |
9402 | _ACEOF | |
9403 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
9404 | if { (ac_try="$ac_compile" |
9405 | case "(($ac_try" in | |
9406 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9407 | *) ac_try_echo=$ac_try;; | |
9408 | esac | |
9409 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9410 | (eval "$ac_compile") 2>conftest.er1 | |
5d6da11e | 9411 | ac_status=$? |
edfaf76d LK |
9412 | grep -v '^ *+' conftest.er1 >conftest.err |
9413 | rm -f conftest.er1 | |
9414 | cat conftest.err >&5 | |
5d6da11e | 9415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
9416 | (exit $ac_status); } && { |
9417 | test -z "$ac_c_werror_flag" || | |
9418 | test ! -s conftest.err | |
9419 | } && test -s conftest.$ac_objext; then | |
5d6da11e YM |
9420 | ac_header_compiler=yes |
9421 | else | |
9422 | echo "$as_me: failed program was:" >&5 | |
9423 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9424 | ||
ca81d7a0 | 9425 | ac_header_compiler=no |
5d6da11e | 9426 | fi |
ca81d7a0 JD |
9427 | |
9428 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9429 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9430 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
5d6da11e YM |
9431 | |
9432 | # Is the header present? | |
ca81d7a0 JD |
9433 | { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5 |
9434 | echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; } | |
5d6da11e YM |
9435 | cat >conftest.$ac_ext <<_ACEOF |
9436 | /* confdefs.h. */ | |
9437 | _ACEOF | |
9438 | cat confdefs.h >>conftest.$ac_ext | |
9439 | cat >>conftest.$ac_ext <<_ACEOF | |
9440 | /* end confdefs.h. */ | |
9441 | #include <Carbon/Carbon.h> | |
9442 | _ACEOF | |
ca81d7a0 JD |
9443 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
9444 | case "(($ac_try" in | |
9445 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9446 | *) ac_try_echo=$ac_try;; | |
9447 | esac | |
9448 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9449 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
5d6da11e YM |
9450 | ac_status=$? |
9451 | grep -v '^ *+' conftest.er1 >conftest.err | |
9452 | rm -f conftest.er1 | |
9453 | cat conftest.err >&5 | |
9454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f053c89f CY |
9455 | (exit $ac_status); } >/dev/null && { |
9456 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9457 | test ! -s conftest.err | |
9458 | }; then | |
5d6da11e YM |
9459 | ac_header_preproc=yes |
9460 | else | |
9461 | echo "$as_me: failed program was:" >&5 | |
9462 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9463 | ||
9464 | ac_header_preproc=no | |
9465 | fi | |
ca81d7a0 | 9466 | |
5d6da11e | 9467 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
9468 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9469 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
5d6da11e YM |
9470 | |
9471 | # So? What about this header? | |
edfaf76d LK |
9472 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
9473 | yes:no: ) | |
5d6da11e YM |
9474 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
9475 | echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
9476 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5 |
9477 | echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;} | |
9478 | ac_header_preproc=yes | |
5d6da11e | 9479 | ;; |
edfaf76d | 9480 | no:yes:* ) |
5d6da11e YM |
9481 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5 |
9482 | echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;} | |
edfaf76d LK |
9483 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5 |
9484 | echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;} | |
9485 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5 | |
9486 | echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;} | |
9487 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5 | |
9488 | echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
5d6da11e YM |
9489 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5 |
9490 | echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;} | |
edfaf76d LK |
9491 | { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5 |
9492 | echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 9493 | |
5d6da11e YM |
9494 | ;; |
9495 | esac | |
ca81d7a0 JD |
9496 | { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5 |
9497 | echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; } | |
5d6da11e YM |
9498 | if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then |
9499 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9500 | else | |
9501 | ac_cv_header_Carbon_Carbon_h=$ac_header_preproc | |
9502 | fi | |
ca81d7a0 JD |
9503 | { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5 |
9504 | echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; } | |
5d6da11e YM |
9505 | |
9506 | fi | |
9507 | if test $ac_cv_header_Carbon_Carbon_h = yes; then | |
9508 | HAVE_CARBON=yes | |
9509 | fi | |
9510 | ||
9511 | ||
1d4d5604 YM |
9512 | fi |
9513 | if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then | |
9514 | if test "${with_carbon+set}" != set \ | |
9515 | && test "${carbon_appdir_x+set}" != set; then | |
9d2818d6 | 9516 | for var in with_x with_x_toolkit with_xim \ |
ec8fcb10 YM |
9517 | with_xpm with_jpeg with_tiff with_gif with_png; do |
9518 | if eval test \"\${$var+set}\" = set; then | |
9519 | HAVE_CARBON=no | |
9520 | break | |
9521 | fi | |
9522 | done | |
5d6da11e YM |
9523 | fi |
9524 | fi | |
1d4d5604 YM |
9525 | if test "${HAVE_CARBON}" = yes; then |
9526 | window_system=mac | |
9527 | fi | |
9528 | ||
9529 | case "${window_system}" in | |
9530 | x11 ) | |
9531 | HAVE_X_WINDOWS=yes | |
9532 | HAVE_X11=yes | |
9533 | case "${with_x_toolkit}" in | |
9534 | athena | lucid ) USE_X_TOOLKIT=LUCID ;; | |
9535 | motif ) USE_X_TOOLKIT=MOTIF ;; | |
9536 | gtk ) with_gtk=yes | |
9537 | USE_X_TOOLKIT=none ;; | |
9538 | no ) USE_X_TOOLKIT=none ;; | |
9d2818d6 | 9539 | * ) USE_X_TOOLKIT=maybe ;; |
1d4d5604 YM |
9540 | esac |
9541 | ;; | |
9542 | mac | none ) | |
9543 | HAVE_X_WINDOWS=no | |
9544 | HAVE_X11=no | |
9545 | USE_X_TOOLKIT=none | |
9546 | ;; | |
9547 | esac | |
9548 | ||
cfe440b8 JD |
9549 | if test "$window_system" = none && test "X$with_x" != "Xno"; then |
9550 | # Extract the first word of "X", so it can be a program name with args. | |
9551 | set dummy X; ac_word=$2 | |
9552 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9553 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
9554 | if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then | |
9555 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9556 | else | |
9557 | if test -n "$HAVE_XSERVER"; then | |
9558 | ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test. | |
9559 | else | |
9560 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9561 | for as_dir in $PATH | |
9562 | do | |
9563 | IFS=$as_save_IFS | |
9564 | test -z "$as_dir" && as_dir=. | |
9565 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9566 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9567 | ac_cv_prog_HAVE_XSERVER="true" | |
9568 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9569 | break 2 | |
9570 | fi | |
9571 | done | |
9572 | done | |
9573 | IFS=$as_save_IFS | |
9574 | ||
9575 | test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false" | |
9576 | fi | |
9577 | fi | |
9578 | HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER | |
9579 | if test -n "$HAVE_XSERVER"; then | |
9580 | { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5 | |
9581 | echo "${ECHO_T}$HAVE_XSERVER" >&6; } | |
9582 | else | |
9583 | { echo "$as_me:$LINENO: result: no" >&5 | |
9584 | echo "${ECHO_T}no" >&6; } | |
9585 | fi | |
9586 | ||
9587 | ||
9588 | if test "$HAVE_XSERVER" = true || | |
9589 | test -n "$DISPLAY" || | |
9590 | test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then | |
9591 | { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries | |
9bdeb5e9 MB |
9592 | were found. You should install the relevant development files for X |
9593 | and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make | |
cfe440b8 JD |
9594 | sure you have development files for image handling, i.e. |
9595 | tiff, gif, jpeg, png and xpm. | |
9596 | If you are sure you want Emacs compiled without X window support, pass | |
9597 | --without-x | |
9598 | to configure." >&5 | |
9599 | echo "$as_me: error: You seem to be running X, but no X development libraries | |
9bdeb5e9 MB |
9600 | were found. You should install the relevant development files for X |
9601 | and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make | |
cfe440b8 JD |
9602 | sure you have development files for image handling, i.e. |
9603 | tiff, gif, jpeg, png and xpm. | |
9604 | If you are sure you want Emacs compiled without X window support, pass | |
9605 | --without-x | |
9606 | to configure." >&2;} | |
9607 | { (exit 1); exit 1; }; } | |
9608 | fi | |
9609 | fi | |
9610 | ||
1d4d5604 YM |
9611 | ### If we're using X11, we should use the X menu package. |
9612 | HAVE_MENUS=no | |
9613 | case ${HAVE_X11} in | |
9614 | yes ) HAVE_MENUS=yes ;; | |
9615 | esac | |
9616 | ||
98418dba CW |
9617 | ### Compute the unexec source name from the object name. |
9618 | UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`" | |
9619 | ||
9620 | # Do the opsystem or machine files prohibit the use of the GNU malloc? | |
9621 | # Assume not, until told otherwise. | |
9622 | GNU_MALLOC=yes | |
9623 | doug_lea_malloc=yes | |
ca81d7a0 JD |
9624 | { echo "$as_me:$LINENO: checking for malloc_get_state" >&5 |
9625 | echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; } | |
98418dba CW |
9626 | if test "${ac_cv_func_malloc_get_state+set}" = set; then |
9627 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9628 | else | |
9629 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
9630 | /* confdefs.h. */ |
9631 | _ACEOF | |
9632 | cat confdefs.h >>conftest.$ac_ext | |
9633 | cat >>conftest.$ac_ext <<_ACEOF | |
9634 | /* end confdefs.h. */ | |
edfaf76d LK |
9635 | /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state. |
9636 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9637 | #define malloc_get_state innocuous_malloc_get_state | |
9638 | ||
98418dba | 9639 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
9640 | which can conflict with char malloc_get_state (); below. |
9641 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9642 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 9643 | |
19650fd6 AS |
9644 | #ifdef __STDC__ |
9645 | # include <limits.h> | |
9646 | #else | |
9647 | # include <assert.h> | |
9648 | #endif | |
edfaf76d LK |
9649 | |
9650 | #undef malloc_get_state | |
9651 | ||
ca81d7a0 JD |
9652 | /* Override any GCC internal prototype to avoid an error. |
9653 | Use char because int might match the return type of a GCC | |
9654 | builtin and then its argument prototype would still apply. */ | |
98418dba CW |
9655 | #ifdef __cplusplus |
9656 | extern "C" | |
9657 | #endif | |
98418dba | 9658 | char malloc_get_state (); |
98418dba CW |
9659 | /* The GNU C library defines this for functions which it implements |
9660 | to always fail with ENOSYS. Some functions are actually named | |
9661 | something starting with __ and the normal name is an alias. */ | |
ca81d7a0 | 9662 | #if defined __stub_malloc_get_state || defined __stub___malloc_get_state |
98418dba | 9663 | choke me |
98418dba CW |
9664 | #endif |
9665 | ||
19650fd6 AS |
9666 | int |
9667 | main () | |
9668 | { | |
ca81d7a0 | 9669 | return malloc_get_state (); |
98418dba CW |
9670 | ; |
9671 | return 0; | |
9672 | } | |
9673 | _ACEOF | |
9674 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
9675 | if { (ac_try="$ac_link" |
9676 | case "(($ac_try" in | |
9677 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9678 | *) ac_try_echo=$ac_try;; | |
9679 | esac | |
9680 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9681 | (eval "$ac_link") 2>conftest.er1 | |
98418dba | 9682 | ac_status=$? |
edfaf76d LK |
9683 | grep -v '^ *+' conftest.er1 >conftest.err |
9684 | rm -f conftest.er1 | |
9685 | cat conftest.err >&5 | |
c0d27fcc | 9686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
9687 | (exit $ac_status); } && { |
9688 | test -z "$ac_c_werror_flag" || | |
9689 | test ! -s conftest.err | |
9690 | } && test -s conftest$ac_exeext && | |
9691 | $as_test_x conftest$ac_exeext; then | |
98418dba CW |
9692 | ac_cv_func_malloc_get_state=yes |
9693 | else | |
9694 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
9695 | sed 's/^/| /' conftest.$ac_ext >&5 |
9696 | ||
ca81d7a0 | 9697 | ac_cv_func_malloc_get_state=no |
98418dba | 9698 | fi |
ca81d7a0 | 9699 | |
f053c89f | 9700 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 9701 | conftest$ac_exeext conftest.$ac_ext |
98418dba | 9702 | fi |
ca81d7a0 JD |
9703 | { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5 |
9704 | echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; } | |
98418dba CW |
9705 | if test $ac_cv_func_malloc_get_state = yes; then |
9706 | : | |
9707 | else | |
9708 | doug_lea_malloc=no | |
9709 | fi | |
9710 | ||
ca81d7a0 JD |
9711 | { echo "$as_me:$LINENO: checking for malloc_set_state" >&5 |
9712 | echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; } | |
98418dba CW |
9713 | if test "${ac_cv_func_malloc_set_state+set}" = set; then |
9714 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9715 | else | |
9716 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
9717 | /* confdefs.h. */ |
9718 | _ACEOF | |
9719 | cat confdefs.h >>conftest.$ac_ext | |
9720 | cat >>conftest.$ac_ext <<_ACEOF | |
9721 | /* end confdefs.h. */ | |
edfaf76d LK |
9722 | /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state. |
9723 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9724 | #define malloc_set_state innocuous_malloc_set_state | |
9725 | ||
98418dba | 9726 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
9727 | which can conflict with char malloc_set_state (); below. |
9728 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9729 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 9730 | |
19650fd6 AS |
9731 | #ifdef __STDC__ |
9732 | # include <limits.h> | |
9733 | #else | |
9734 | # include <assert.h> | |
9735 | #endif | |
edfaf76d LK |
9736 | |
9737 | #undef malloc_set_state | |
9738 | ||
ca81d7a0 JD |
9739 | /* Override any GCC internal prototype to avoid an error. |
9740 | Use char because int might match the return type of a GCC | |
9741 | builtin and then its argument prototype would still apply. */ | |
98418dba CW |
9742 | #ifdef __cplusplus |
9743 | extern "C" | |
9744 | #endif | |
98418dba | 9745 | char malloc_set_state (); |
98418dba CW |
9746 | /* The GNU C library defines this for functions which it implements |
9747 | to always fail with ENOSYS. Some functions are actually named | |
9748 | something starting with __ and the normal name is an alias. */ | |
ca81d7a0 | 9749 | #if defined __stub_malloc_set_state || defined __stub___malloc_set_state |
98418dba | 9750 | choke me |
98418dba CW |
9751 | #endif |
9752 | ||
19650fd6 AS |
9753 | int |
9754 | main () | |
9755 | { | |
ca81d7a0 | 9756 | return malloc_set_state (); |
98418dba CW |
9757 | ; |
9758 | return 0; | |
9759 | } | |
9760 | _ACEOF | |
9761 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
9762 | if { (ac_try="$ac_link" |
9763 | case "(($ac_try" in | |
9764 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9765 | *) ac_try_echo=$ac_try;; | |
9766 | esac | |
9767 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9768 | (eval "$ac_link") 2>conftest.er1 | |
98418dba | 9769 | ac_status=$? |
edfaf76d LK |
9770 | grep -v '^ *+' conftest.er1 >conftest.err |
9771 | rm -f conftest.er1 | |
9772 | cat conftest.err >&5 | |
c0d27fcc | 9773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
9774 | (exit $ac_status); } && { |
9775 | test -z "$ac_c_werror_flag" || | |
9776 | test ! -s conftest.err | |
9777 | } && test -s conftest$ac_exeext && | |
9778 | $as_test_x conftest$ac_exeext; then | |
98418dba CW |
9779 | ac_cv_func_malloc_set_state=yes |
9780 | else | |
9781 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
9782 | sed 's/^/| /' conftest.$ac_ext >&5 |
9783 | ||
ca81d7a0 | 9784 | ac_cv_func_malloc_set_state=no |
98418dba | 9785 | fi |
ca81d7a0 | 9786 | |
f053c89f | 9787 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 9788 | conftest$ac_exeext conftest.$ac_ext |
98418dba | 9789 | fi |
ca81d7a0 JD |
9790 | { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5 |
9791 | echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; } | |
98418dba CW |
9792 | if test $ac_cv_func_malloc_set_state = yes; then |
9793 | : | |
9794 | else | |
9795 | doug_lea_malloc=no | |
9796 | fi | |
9797 | ||
ca81d7a0 JD |
9798 | { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5 |
9799 | echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; } | |
98418dba CW |
9800 | if test "${emacs_cv_var___after_morecore_hook+set}" = set; then |
9801 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9802 | else | |
9803 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
9804 | /* confdefs.h. */ |
9805 | _ACEOF | |
9806 | cat confdefs.h >>conftest.$ac_ext | |
9807 | cat >>conftest.$ac_ext <<_ACEOF | |
9808 | /* end confdefs.h. */ | |
98418dba | 9809 | extern void (* __after_morecore_hook)(); |
98418dba CW |
9810 | int |
9811 | main () | |
9812 | { | |
9813 | __after_morecore_hook = 0 | |
9814 | ; | |
9815 | return 0; | |
9816 | } | |
9817 | _ACEOF | |
9818 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
9819 | if { (ac_try="$ac_link" |
9820 | case "(($ac_try" in | |
9821 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9822 | *) ac_try_echo=$ac_try;; | |
9823 | esac | |
9824 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9825 | (eval "$ac_link") 2>conftest.er1 | |
98418dba | 9826 | ac_status=$? |
edfaf76d LK |
9827 | grep -v '^ *+' conftest.er1 >conftest.err |
9828 | rm -f conftest.er1 | |
9829 | cat conftest.err >&5 | |
c0d27fcc | 9830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
9831 | (exit $ac_status); } && { |
9832 | test -z "$ac_c_werror_flag" || | |
9833 | test ! -s conftest.err | |
9834 | } && test -s conftest$ac_exeext && | |
9835 | $as_test_x conftest$ac_exeext; then | |
98418dba CW |
9836 | emacs_cv_var___after_morecore_hook=yes |
9837 | else | |
9838 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
9839 | sed 's/^/| /' conftest.$ac_ext >&5 |
9840 | ||
ca81d7a0 | 9841 | emacs_cv_var___after_morecore_hook=no |
98418dba | 9842 | fi |
ca81d7a0 | 9843 | |
f053c89f | 9844 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 9845 | conftest$ac_exeext conftest.$ac_ext |
98418dba | 9846 | fi |
ca81d7a0 JD |
9847 | { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5 |
9848 | echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; } | |
98418dba CW |
9849 | if test $emacs_cv_var___after_morecore_hook = no; then |
9850 | doug_lea_malloc=no | |
9851 | fi | |
9852 | if test "${system_malloc}" = "yes"; then | |
9853 | GNU_MALLOC=no | |
9854 | GNU_MALLOC_reason=" | |
9855 | (The GNU allocators don't work with this system configuration.)" | |
9856 | fi | |
9857 | if test "$doug_lea_malloc" = "yes" ; then | |
9858 | if test "$GNU_MALLOC" = yes ; then | |
9859 | GNU_MALLOC_reason=" | |
9860 | (Using Doug Lea's new malloc from the GNU C Library.)" | |
9861 | fi | |
b936fae4 | 9862 | |
c0d27fcc | 9863 | cat >>confdefs.h <<\_ACEOF |
98418dba | 9864 | #define DOUG_LEA_MALLOC 1 |
c0d27fcc | 9865 | _ACEOF |
98418dba CW |
9866 | |
9867 | fi | |
9868 | ||
9869 | if test x"${REL_ALLOC}" = x; then | |
9870 | REL_ALLOC=${GNU_MALLOC} | |
9871 | fi | |
9872 | ||
9873 | ||
c0d27fcc MR |
9874 | |
9875 | ||
9876 | for ac_header in stdlib.h unistd.h | |
98418dba CW |
9877 | do |
9878 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
ca81d7a0 JD |
9879 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
9880 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9881 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
9882 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
98418dba | 9883 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc | 9884 | fi |
ca81d7a0 JD |
9885 | ac_res=`eval echo '${'$as_ac_Header'}'` |
9886 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9887 | echo "${ECHO_T}$ac_res" >&6; } | |
98418dba | 9888 | else |
c0d27fcc | 9889 | # Is the header compilable? |
ca81d7a0 JD |
9890 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9891 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
c0d27fcc | 9892 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
9893 | /* confdefs.h. */ |
9894 | _ACEOF | |
9895 | cat confdefs.h >>conftest.$ac_ext | |
9896 | cat >>conftest.$ac_ext <<_ACEOF | |
9897 | /* end confdefs.h. */ | |
98418dba CW |
9898 | $ac_includes_default |
9899 | #include <$ac_header> | |
9900 | _ACEOF | |
9901 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
9902 | if { (ac_try="$ac_compile" |
9903 | case "(($ac_try" in | |
9904 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9905 | *) ac_try_echo=$ac_try;; | |
9906 | esac | |
9907 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9908 | (eval "$ac_compile") 2>conftest.er1 | |
98418dba | 9909 | ac_status=$? |
edfaf76d LK |
9910 | grep -v '^ *+' conftest.er1 >conftest.err |
9911 | rm -f conftest.er1 | |
9912 | cat conftest.err >&5 | |
c0d27fcc | 9913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
9914 | (exit $ac_status); } && { |
9915 | test -z "$ac_c_werror_flag" || | |
9916 | test ! -s conftest.err | |
9917 | } && test -s conftest.$ac_objext; then | |
c0d27fcc | 9918 | ac_header_compiler=yes |
98418dba CW |
9919 | else |
9920 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
9921 | sed 's/^/| /' conftest.$ac_ext >&5 |
9922 | ||
ca81d7a0 | 9923 | ac_header_compiler=no |
98418dba | 9924 | fi |
ca81d7a0 JD |
9925 | |
9926 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9927 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9928 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
98418dba | 9929 | |
c0d27fcc | 9930 | # Is the header present? |
ca81d7a0 JD |
9931 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9932 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
c0d27fcc | 9933 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
9934 | /* confdefs.h. */ |
9935 | _ACEOF | |
9936 | cat confdefs.h >>conftest.$ac_ext | |
9937 | cat >>conftest.$ac_ext <<_ACEOF | |
9938 | /* end confdefs.h. */ | |
98418dba CW |
9939 | #include <$ac_header> |
9940 | _ACEOF | |
ca81d7a0 JD |
9941 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
9942 | case "(($ac_try" in | |
9943 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9944 | *) ac_try_echo=$ac_try;; | |
9945 | esac | |
9946 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9947 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
98418dba | 9948 | ac_status=$? |
6bae0ccf | 9949 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
9950 | rm -f conftest.er1 |
9951 | cat conftest.err >&5 | |
c0d27fcc | 9952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
9953 | (exit $ac_status); } >/dev/null && { |
9954 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
9955 | test ! -s conftest.err | |
9956 | }; then | |
c0d27fcc | 9957 | ac_header_preproc=yes |
98418dba CW |
9958 | else |
9959 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
9960 | sed 's/^/| /' conftest.$ac_ext >&5 |
9961 | ||
c0d27fcc | 9962 | ac_header_preproc=no |
98418dba | 9963 | fi |
ca81d7a0 | 9964 | |
98418dba | 9965 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
9966 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9967 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
9968 | |
9969 | # So? What about this header? | |
edfaf76d LK |
9970 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
9971 | yes:no: ) | |
c0d27fcc MR |
9972 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
9973 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
9974 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
9975 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9976 | ac_header_preproc=yes | |
9977 | ;; | |
9978 | no:yes:* ) | |
9979 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9980 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9981 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9982 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9983 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9984 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9985 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9986 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7c9e5167 JD |
9987 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
9988 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
edfaf76d LK |
9989 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
9990 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 9991 | |
19650fd6 | 9992 | ;; |
c0d27fcc | 9993 | esac |
ca81d7a0 JD |
9994 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9995 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
9996 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
c0d27fcc MR |
9997 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9998 | else | |
edfaf76d | 9999 | eval "$as_ac_Header=\$ac_header_preproc" |
98418dba | 10000 | fi |
ca81d7a0 JD |
10001 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10002 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10003 | echo "${ECHO_T}$ac_res" >&6; } | |
c0d27fcc MR |
10004 | |
10005 | fi | |
98418dba | 10006 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 10007 | cat >>confdefs.h <<_ACEOF |
98418dba | 10008 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 10009 | _ACEOF |
98418dba CW |
10010 | |
10011 | fi | |
c0d27fcc | 10012 | |
98418dba CW |
10013 | done |
10014 | ||
c0d27fcc | 10015 | |
98418dba CW |
10016 | for ac_func in getpagesize |
10017 | do | |
10018 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
ca81d7a0 JD |
10019 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
10020 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
10021 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
98418dba CW |
10022 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10023 | else | |
10024 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
10025 | /* confdefs.h. */ |
10026 | _ACEOF | |
10027 | cat confdefs.h >>conftest.$ac_ext | |
10028 | cat >>conftest.$ac_ext <<_ACEOF | |
10029 | /* end confdefs.h. */ | |
edfaf76d LK |
10030 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
10031 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10032 | #define $ac_func innocuous_$ac_func | |
10033 | ||
98418dba | 10034 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
10035 | which can conflict with char $ac_func (); below. |
10036 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10037 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 10038 | |
19650fd6 AS |
10039 | #ifdef __STDC__ |
10040 | # include <limits.h> | |
10041 | #else | |
10042 | # include <assert.h> | |
10043 | #endif | |
edfaf76d LK |
10044 | |
10045 | #undef $ac_func | |
10046 | ||
ca81d7a0 JD |
10047 | /* Override any GCC internal prototype to avoid an error. |
10048 | Use char because int might match the return type of a GCC | |
10049 | builtin and then its argument prototype would still apply. */ | |
98418dba CW |
10050 | #ifdef __cplusplus |
10051 | extern "C" | |
10052 | #endif | |
98418dba | 10053 | char $ac_func (); |
98418dba CW |
10054 | /* The GNU C library defines this for functions which it implements |
10055 | to always fail with ENOSYS. Some functions are actually named | |
10056 | something starting with __ and the normal name is an alias. */ | |
ca81d7a0 | 10057 | #if defined __stub_$ac_func || defined __stub___$ac_func |
98418dba | 10058 | choke me |
98418dba CW |
10059 | #endif |
10060 | ||
19650fd6 AS |
10061 | int |
10062 | main () | |
10063 | { | |
ca81d7a0 | 10064 | return $ac_func (); |
98418dba CW |
10065 | ; |
10066 | return 0; | |
10067 | } | |
10068 | _ACEOF | |
10069 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
10070 | if { (ac_try="$ac_link" |
10071 | case "(($ac_try" in | |
10072 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10073 | *) ac_try_echo=$ac_try;; | |
10074 | esac | |
10075 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10076 | (eval "$ac_link") 2>conftest.er1 | |
98418dba | 10077 | ac_status=$? |
edfaf76d LK |
10078 | grep -v '^ *+' conftest.er1 >conftest.err |
10079 | rm -f conftest.er1 | |
10080 | cat conftest.err >&5 | |
c0d27fcc | 10081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
10082 | (exit $ac_status); } && { |
10083 | test -z "$ac_c_werror_flag" || | |
10084 | test ! -s conftest.err | |
10085 | } && test -s conftest$ac_exeext && | |
10086 | $as_test_x conftest$ac_exeext; then | |
98418dba CW |
10087 | eval "$as_ac_var=yes" |
10088 | else | |
10089 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10090 | sed 's/^/| /' conftest.$ac_ext >&5 |
10091 | ||
ca81d7a0 | 10092 | eval "$as_ac_var=no" |
98418dba | 10093 | fi |
ca81d7a0 | 10094 | |
f053c89f | 10095 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 10096 | conftest$ac_exeext conftest.$ac_ext |
98418dba | 10097 | fi |
ca81d7a0 JD |
10098 | ac_res=`eval echo '${'$as_ac_var'}'` |
10099 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10100 | echo "${ECHO_T}$ac_res" >&6; } | |
98418dba | 10101 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
c0d27fcc | 10102 | cat >>confdefs.h <<_ACEOF |
98418dba | 10103 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 10104 | _ACEOF |
98418dba CW |
10105 | |
10106 | fi | |
10107 | done | |
10108 | ||
ca81d7a0 JD |
10109 | { echo "$as_me:$LINENO: checking for working mmap" >&5 |
10110 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; } | |
98418dba CW |
10111 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
10112 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10113 | else | |
10114 | if test "$cross_compiling" = yes; then | |
10115 | ac_cv_func_mmap_fixed_mapped=no | |
10116 | else | |
10117 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
10118 | /* confdefs.h. */ |
10119 | _ACEOF | |
10120 | cat confdefs.h >>conftest.$ac_ext | |
10121 | cat >>conftest.$ac_ext <<_ACEOF | |
10122 | /* end confdefs.h. */ | |
98418dba | 10123 | $ac_includes_default |
c0d27fcc MR |
10124 | /* malloc might have been renamed as rpl_malloc. */ |
10125 | #undef malloc | |
10126 | ||
98418dba CW |
10127 | /* Thanks to Mike Haertel and Jim Avera for this test. |
10128 | Here is a matrix of mmap possibilities: | |
10129 | mmap private not fixed | |
10130 | mmap private fixed at somewhere currently unmapped | |
10131 | mmap private fixed at somewhere already mapped | |
10132 | mmap shared not fixed | |
10133 | mmap shared fixed at somewhere currently unmapped | |
10134 | mmap shared fixed at somewhere already mapped | |
10135 | For private mappings, we should verify that changes cannot be read() | |
10136 | back from the file, nor mmap's back from the file at a different | |
10137 | address. (There have been systems where private was not correctly | |
10138 | implemented like the infamous i386 svr4.0, and systems where the | |
10139 | VM page cache was not coherent with the file system buffer cache | |
10140 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
10141 | For shared mappings, we should conversely verify that changes get | |
c0d27fcc | 10142 | propagated back to all the places they're supposed to be. |
98418dba CW |
10143 | |
10144 | Grep wants private fixed already mapped. | |
10145 | The main things grep needs to know about mmap are: | |
10146 | * does it exist and is it safe to write into the mmap'd area | |
10147 | * how to use it (BSD variants) */ | |
10148 | ||
10149 | #include <fcntl.h> | |
10150 | #include <sys/mman.h> | |
10151 | ||
f053c89f | 10152 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
98418dba CW |
10153 | char *malloc (); |
10154 | #endif | |
10155 | ||
10156 | /* This mess was copied from the GNU getpagesize.h. */ | |
f053c89f | 10157 | #ifndef HAVE_GETPAGESIZE |
98418dba | 10158 | /* Assume that all systems that can run configure have sys/param.h. */ |
f053c89f | 10159 | # ifndef HAVE_SYS_PARAM_H |
98418dba CW |
10160 | # define HAVE_SYS_PARAM_H 1 |
10161 | # endif | |
10162 | ||
10163 | # ifdef _SC_PAGESIZE | |
10164 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
10165 | # else /* no _SC_PAGESIZE */ | |
f053c89f | 10166 | # ifdef HAVE_SYS_PARAM_H |
98418dba CW |
10167 | # include <sys/param.h> |
10168 | # ifdef EXEC_PAGESIZE | |
10169 | # define getpagesize() EXEC_PAGESIZE | |
10170 | # else /* no EXEC_PAGESIZE */ | |
10171 | # ifdef NBPG | |
10172 | # define getpagesize() NBPG * CLSIZE | |
10173 | # ifndef CLSIZE | |
10174 | # define CLSIZE 1 | |
10175 | # endif /* no CLSIZE */ | |
10176 | # else /* no NBPG */ | |
10177 | # ifdef NBPC | |
10178 | # define getpagesize() NBPC | |
10179 | # else /* no NBPC */ | |
10180 | # ifdef PAGESIZE | |
10181 | # define getpagesize() PAGESIZE | |
10182 | # endif /* PAGESIZE */ | |
10183 | # endif /* no NBPC */ | |
10184 | # endif /* no NBPG */ | |
10185 | # endif /* no EXEC_PAGESIZE */ | |
10186 | # else /* no HAVE_SYS_PARAM_H */ | |
10187 | # define getpagesize() 8192 /* punt totally */ | |
10188 | # endif /* no HAVE_SYS_PARAM_H */ | |
10189 | # endif /* no _SC_PAGESIZE */ | |
10190 | ||
10191 | #endif /* no HAVE_GETPAGESIZE */ | |
10192 | ||
10193 | int | |
10194 | main () | |
10195 | { | |
10196 | char *data, *data2, *data3; | |
10197 | int i, pagesize; | |
10198 | int fd; | |
10199 | ||
10200 | pagesize = getpagesize (); | |
10201 | ||
10202 | /* First, make a file with some known garbage in it. */ | |
10203 | data = (char *) malloc (pagesize); | |
10204 | if (!data) | |
ca81d7a0 | 10205 | return 1; |
98418dba CW |
10206 | for (i = 0; i < pagesize; ++i) |
10207 | *(data + i) = rand (); | |
10208 | umask (0); | |
10209 | fd = creat ("conftest.mmap", 0600); | |
10210 | if (fd < 0) | |
ca81d7a0 | 10211 | return 1; |
98418dba | 10212 | if (write (fd, data, pagesize) != pagesize) |
ca81d7a0 | 10213 | return 1; |
98418dba CW |
10214 | close (fd); |
10215 | ||
10216 | /* Next, try to mmap the file at a fixed address which already has | |
10217 | something else allocated at it. If we can, also make sure that | |
10218 | we see the same garbage. */ | |
10219 | fd = open ("conftest.mmap", O_RDWR); | |
10220 | if (fd < 0) | |
ca81d7a0 | 10221 | return 1; |
98418dba CW |
10222 | data2 = (char *) malloc (2 * pagesize); |
10223 | if (!data2) | |
ca81d7a0 JD |
10224 | return 1; |
10225 | data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); | |
98418dba | 10226 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
edfaf76d | 10227 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
ca81d7a0 | 10228 | return 1; |
98418dba CW |
10229 | for (i = 0; i < pagesize; ++i) |
10230 | if (*(data + i) != *(data2 + i)) | |
ca81d7a0 | 10231 | return 1; |
98418dba CW |
10232 | |
10233 | /* Finally, make sure that changes to the mapped area do not | |
10234 | percolate back to the file as seen by read(). (This is a bug on | |
10235 | some variants of i386 svr4.0.) */ | |
10236 | for (i = 0; i < pagesize; ++i) | |
10237 | *(data2 + i) = *(data2 + i) + 1; | |
10238 | data3 = (char *) malloc (pagesize); | |
10239 | if (!data3) | |
ca81d7a0 | 10240 | return 1; |
98418dba | 10241 | if (read (fd, data3, pagesize) != pagesize) |
ca81d7a0 | 10242 | return 1; |
98418dba CW |
10243 | for (i = 0; i < pagesize; ++i) |
10244 | if (*(data + i) != *(data3 + i)) | |
ca81d7a0 | 10245 | return 1; |
98418dba | 10246 | close (fd); |
ca81d7a0 | 10247 | return 0; |
98418dba CW |
10248 | } |
10249 | _ACEOF | |
10250 | rm -f conftest$ac_exeext | |
ca81d7a0 JD |
10251 | if { (ac_try="$ac_link" |
10252 | case "(($ac_try" in | |
10253 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10254 | *) ac_try_echo=$ac_try;; | |
10255 | esac | |
10256 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10257 | (eval "$ac_link") 2>&5 | |
98418dba | 10258 | ac_status=$? |
c0d27fcc | 10259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 10260 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
ca81d7a0 JD |
10261 | { (case "(($ac_try" in |
10262 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10263 | *) ac_try_echo=$ac_try;; | |
10264 | esac | |
10265 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10266 | (eval "$ac_try") 2>&5 | |
98418dba | 10267 | ac_status=$? |
c0d27fcc | 10268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba CW |
10269 | (exit $ac_status); }; }; then |
10270 | ac_cv_func_mmap_fixed_mapped=yes | |
10271 | else | |
10272 | echo "$as_me: program exited with status $ac_status" >&5 | |
10273 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10274 | sed 's/^/| /' conftest.$ac_ext >&5 |
10275 | ||
c0d27fcc | 10276 | ( exit $ac_status ) |
98418dba CW |
10277 | ac_cv_func_mmap_fixed_mapped=no |
10278 | fi | |
ca81d7a0 | 10279 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
98418dba | 10280 | fi |
ca81d7a0 JD |
10281 | |
10282 | ||
98418dba | 10283 | fi |
ca81d7a0 JD |
10284 | { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
10285 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; } | |
98418dba CW |
10286 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
10287 | ||
c0d27fcc | 10288 | cat >>confdefs.h <<\_ACEOF |
98418dba | 10289 | #define HAVE_MMAP 1 |
c0d27fcc | 10290 | _ACEOF |
98418dba CW |
10291 | |
10292 | fi | |
10293 | rm -f conftest.mmap | |
10294 | ||
10295 | if test $use_mmap_for_buffers = yes; then | |
10296 | REL_ALLOC=no | |
10297 | fi | |
10298 | ||
10299 | LIBS="$libsrc_libs $LIBS" | |
10300 | ||
c0d27fcc | 10301 | |
ca81d7a0 JD |
10302 | { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 |
10303 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; } | |
98418dba CW |
10304 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then |
10305 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10306 | else | |
10307 | ac_check_lib_save_LIBS=$LIBS | |
10308 | LIBS="-ldnet $LIBS" | |
10309 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
10310 | /* confdefs.h. */ |
10311 | _ACEOF | |
10312 | cat confdefs.h >>conftest.$ac_ext | |
10313 | cat >>conftest.$ac_ext <<_ACEOF | |
10314 | /* end confdefs.h. */ | |
98418dba | 10315 | |
ca81d7a0 JD |
10316 | /* Override any GCC internal prototype to avoid an error. |
10317 | Use char because int might match the return type of a GCC | |
10318 | builtin and then its argument prototype would still apply. */ | |
98418dba CW |
10319 | #ifdef __cplusplus |
10320 | extern "C" | |
10321 | #endif | |
98418dba | 10322 | char dnet_ntoa (); |
98418dba CW |
10323 | int |
10324 | main () | |
10325 | { | |
ca81d7a0 | 10326 | return dnet_ntoa (); |
98418dba CW |
10327 | ; |
10328 | return 0; | |
10329 | } | |
10330 | _ACEOF | |
10331 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
10332 | if { (ac_try="$ac_link" |
10333 | case "(($ac_try" in | |
10334 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10335 | *) ac_try_echo=$ac_try;; | |
10336 | esac | |
10337 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10338 | (eval "$ac_link") 2>conftest.er1 | |
98418dba | 10339 | ac_status=$? |
edfaf76d LK |
10340 | grep -v '^ *+' conftest.er1 >conftest.err |
10341 | rm -f conftest.er1 | |
10342 | cat conftest.err >&5 | |
c0d27fcc | 10343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
10344 | (exit $ac_status); } && { |
10345 | test -z "$ac_c_werror_flag" || | |
10346 | test ! -s conftest.err | |
10347 | } && test -s conftest$ac_exeext && | |
10348 | $as_test_x conftest$ac_exeext; then | |
98418dba CW |
10349 | ac_cv_lib_dnet_dnet_ntoa=yes |
10350 | else | |
10351 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10352 | sed 's/^/| /' conftest.$ac_ext >&5 |
10353 | ||
ca81d7a0 | 10354 | ac_cv_lib_dnet_dnet_ntoa=no |
98418dba | 10355 | fi |
ca81d7a0 | 10356 | |
f053c89f | 10357 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 10358 | conftest$ac_exeext conftest.$ac_ext |
98418dba CW |
10359 | LIBS=$ac_check_lib_save_LIBS |
10360 | fi | |
ca81d7a0 JD |
10361 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 |
10362 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; } | |
98418dba | 10363 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then |
c0d27fcc | 10364 | cat >>confdefs.h <<_ACEOF |
98418dba | 10365 | #define HAVE_LIBDNET 1 |
c0d27fcc | 10366 | _ACEOF |
98418dba CW |
10367 | |
10368 | LIBS="-ldnet $LIBS" | |
10369 | ||
10370 | fi | |
10371 | ||
c0d27fcc | 10372 | |
ca81d7a0 JD |
10373 | { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5 |
10374 | echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; } | |
98418dba CW |
10375 | if test "${ac_cv_lib_Xbsd_main+set}" = set; then |
10376 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10377 | else | |
10378 | ac_check_lib_save_LIBS=$LIBS | |
10379 | LIBS="-lXbsd $LIBS" | |
10380 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
10381 | /* confdefs.h. */ |
10382 | _ACEOF | |
10383 | cat confdefs.h >>conftest.$ac_ext | |
10384 | cat >>conftest.$ac_ext <<_ACEOF | |
10385 | /* end confdefs.h. */ | |
98418dba | 10386 | |
c0d27fcc | 10387 | |
98418dba CW |
10388 | int |
10389 | main () | |
10390 | { | |
ca81d7a0 | 10391 | return main (); |
98418dba CW |
10392 | ; |
10393 | return 0; | |
10394 | } | |
10395 | _ACEOF | |
10396 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
10397 | if { (ac_try="$ac_link" |
10398 | case "(($ac_try" in | |
10399 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10400 | *) ac_try_echo=$ac_try;; | |
10401 | esac | |
10402 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10403 | (eval "$ac_link") 2>conftest.er1 | |
98418dba | 10404 | ac_status=$? |
edfaf76d LK |
10405 | grep -v '^ *+' conftest.er1 >conftest.err |
10406 | rm -f conftest.er1 | |
10407 | cat conftest.err >&5 | |
c0d27fcc | 10408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
10409 | (exit $ac_status); } && { |
10410 | test -z "$ac_c_werror_flag" || | |
10411 | test ! -s conftest.err | |
10412 | } && test -s conftest$ac_exeext && | |
10413 | $as_test_x conftest$ac_exeext; then | |
98418dba CW |
10414 | ac_cv_lib_Xbsd_main=yes |
10415 | else | |
10416 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10417 | sed 's/^/| /' conftest.$ac_ext >&5 |
10418 | ||
ca81d7a0 | 10419 | ac_cv_lib_Xbsd_main=no |
98418dba | 10420 | fi |
ca81d7a0 | 10421 | |
f053c89f | 10422 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 10423 | conftest$ac_exeext conftest.$ac_ext |
98418dba CW |
10424 | LIBS=$ac_check_lib_save_LIBS |
10425 | fi | |
ca81d7a0 JD |
10426 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5 |
10427 | echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; } | |
98418dba CW |
10428 | if test $ac_cv_lib_Xbsd_main = yes; then |
10429 | LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd" | |
10430 | fi | |
10431 | ||
c0d27fcc MR |
10432 | |
10433 | ||
ca81d7a0 JD |
10434 | { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5 |
10435 | echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; } | |
98418dba CW |
10436 | if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then |
10437 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10438 | else | |
10439 | ac_check_lib_save_LIBS=$LIBS | |
10440 | LIBS="-lpthreads $LIBS" | |
10441 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
10442 | /* confdefs.h. */ |
10443 | _ACEOF | |
10444 | cat confdefs.h >>conftest.$ac_ext | |
10445 | cat >>conftest.$ac_ext <<_ACEOF | |
10446 | /* end confdefs.h. */ | |
98418dba | 10447 | |
ca81d7a0 JD |
10448 | /* Override any GCC internal prototype to avoid an error. |
10449 | Use char because int might match the return type of a GCC | |
10450 | builtin and then its argument prototype would still apply. */ | |
98418dba CW |
10451 | #ifdef __cplusplus |
10452 | extern "C" | |
10453 | #endif | |
98418dba | 10454 | char cma_open (); |
98418dba CW |
10455 | int |
10456 | main () | |
10457 | { | |
ca81d7a0 | 10458 | return cma_open (); |
98418dba CW |
10459 | ; |
10460 | return 0; | |
10461 | } | |
10462 | _ACEOF | |
10463 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
10464 | if { (ac_try="$ac_link" |
10465 | case "(($ac_try" in | |
10466 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10467 | *) ac_try_echo=$ac_try;; | |
10468 | esac | |
10469 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10470 | (eval "$ac_link") 2>conftest.er1 | |
98418dba | 10471 | ac_status=$? |
edfaf76d LK |
10472 | grep -v '^ *+' conftest.er1 >conftest.err |
10473 | rm -f conftest.er1 | |
10474 | cat conftest.err >&5 | |
c0d27fcc | 10475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
10476 | (exit $ac_status); } && { |
10477 | test -z "$ac_c_werror_flag" || | |
10478 | test ! -s conftest.err | |
10479 | } && test -s conftest$ac_exeext && | |
10480 | $as_test_x conftest$ac_exeext; then | |
98418dba CW |
10481 | ac_cv_lib_pthreads_cma_open=yes |
10482 | else | |
10483 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10484 | sed 's/^/| /' conftest.$ac_ext >&5 |
10485 | ||
ca81d7a0 | 10486 | ac_cv_lib_pthreads_cma_open=no |
98418dba | 10487 | fi |
ca81d7a0 | 10488 | |
f053c89f | 10489 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 10490 | conftest$ac_exeext conftest.$ac_ext |
98418dba CW |
10491 | LIBS=$ac_check_lib_save_LIBS |
10492 | fi | |
ca81d7a0 JD |
10493 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5 |
10494 | echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; } | |
98418dba | 10495 | if test $ac_cv_lib_pthreads_cma_open = yes; then |
c0d27fcc | 10496 | cat >>confdefs.h <<_ACEOF |
98418dba | 10497 | #define HAVE_LIBPTHREADS 1 |
c0d27fcc | 10498 | _ACEOF |
98418dba CW |
10499 | |
10500 | LIBS="-lpthreads $LIBS" | |
10501 | ||
10502 | fi | |
10503 | ||
c0d27fcc | 10504 | |
55597d70 DL |
10505 | |
10506 | case ${host_os} in | |
10507 | aix*) | |
ca81d7a0 JD |
10508 | { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5 |
10509 | echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; } | |
55597d70 DL |
10510 | if test "${gdb_cv_bigtoc+set}" = set; then |
10511 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10512 | else | |
10513 | ||
10514 | case $GCC in | |
10515 | yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;; | |
10516 | *) gdb_cv_bigtoc=-bbigtoc ;; | |
10517 | esac | |
10518 | ||
10519 | LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc | |
10520 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
10521 | /* confdefs.h. */ |
10522 | _ACEOF | |
10523 | cat confdefs.h >>conftest.$ac_ext | |
10524 | cat >>conftest.$ac_ext <<_ACEOF | |
10525 | /* end confdefs.h. */ | |
55597d70 DL |
10526 | |
10527 | int | |
10528 | main () | |
10529 | { | |
10530 | int i; | |
10531 | ; | |
10532 | return 0; | |
10533 | } | |
10534 | _ACEOF | |
10535 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
10536 | if { (ac_try="$ac_link" |
10537 | case "(($ac_try" in | |
10538 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10539 | *) ac_try_echo=$ac_try;; | |
10540 | esac | |
10541 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10542 | (eval "$ac_link") 2>conftest.er1 | |
55597d70 | 10543 | ac_status=$? |
edfaf76d LK |
10544 | grep -v '^ *+' conftest.er1 >conftest.err |
10545 | rm -f conftest.er1 | |
10546 | cat conftest.err >&5 | |
55597d70 | 10547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
10548 | (exit $ac_status); } && { |
10549 | test -z "$ac_c_werror_flag" || | |
10550 | test ! -s conftest.err | |
10551 | } && test -s conftest$ac_exeext && | |
10552 | $as_test_x conftest$ac_exeext; then | |
55597d70 DL |
10553 | : |
10554 | else | |
10555 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10556 | sed 's/^/| /' conftest.$ac_ext >&5 |
10557 | ||
ca81d7a0 | 10558 | gdb_cv_bigtoc= |
55597d70 | 10559 | fi |
ca81d7a0 | 10560 | |
f053c89f | 10561 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 10562 | conftest$ac_exeext conftest.$ac_ext |
55597d70 DL |
10563 | |
10564 | fi | |
ca81d7a0 JD |
10565 | { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5 |
10566 | echo "${ECHO_T}$gdb_cv_bigtoc" >&6; } | |
55597d70 DL |
10567 | ;; |
10568 | esac | |
10569 | ||
ae1a998c RS |
10570 | # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets |
10571 | # used for the tests that follow. We set them back to REAL_CFLAGS and | |
10572 | # REAL_CPPFLAGS later on. | |
98418dba CW |
10573 | |
10574 | REAL_CPPFLAGS="$CPPFLAGS" | |
10575 | ||
10576 | if test "${HAVE_X11}" = "yes"; then | |
10577 | DEFS="$C_SWITCH_X_SITE $DEFS" | |
10578 | LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE" | |
10579 | LIBS="$LIBX $LIBS" | |
10580 | CFLAGS="$C_SWITCH_X_SITE $CFLAGS" | |
10581 | CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS" | |
10582 | ||
10583 | # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests. | |
10584 | # This is handled by LD_SWITCH_X_SITE_AUX during the real build, | |
10585 | # but it's more convenient here to set LD_RUN_PATH | |
10586 | # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX. | |
10587 | if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then | |
10588 | LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH | |
10589 | export LD_RUN_PATH | |
10590 | fi | |
10591 | ||
10592 | if test "${opsys}" = "gnu-linux"; then | |
ca81d7a0 JD |
10593 | { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5 |
10594 | echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; } | |
98418dba | 10595 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
10596 | /* confdefs.h. */ |
10597 | _ACEOF | |
10598 | cat confdefs.h >>conftest.$ac_ext | |
10599 | cat >>conftest.$ac_ext <<_ACEOF | |
10600 | /* end confdefs.h. */ | |
98418dba | 10601 | |
98418dba CW |
10602 | int |
10603 | main () | |
10604 | { | |
10605 | XOpenDisplay ("foo"); | |
10606 | ; | |
10607 | return 0; | |
10608 | } | |
10609 | _ACEOF | |
10610 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
10611 | if { (ac_try="$ac_link" |
10612 | case "(($ac_try" in | |
10613 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10614 | *) ac_try_echo=$ac_try;; | |
10615 | esac | |
10616 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10617 | (eval "$ac_link") 2>conftest.er1 | |
98418dba | 10618 | ac_status=$? |
edfaf76d LK |
10619 | grep -v '^ *+' conftest.er1 >conftest.err |
10620 | rm -f conftest.er1 | |
10621 | cat conftest.err >&5 | |
c0d27fcc | 10622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
10623 | (exit $ac_status); } && { |
10624 | test -z "$ac_c_werror_flag" || | |
10625 | test ! -s conftest.err | |
10626 | } && test -s conftest$ac_exeext && | |
10627 | $as_test_x conftest$ac_exeext; then | |
35996d22 | 10628 | xlinux_first_failure=no |
98418dba CW |
10629 | else |
10630 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10631 | sed 's/^/| /' conftest.$ac_ext >&5 |
10632 | ||
ca81d7a0 | 10633 | xlinux_first_failure=yes |
98418dba | 10634 | fi |
ca81d7a0 | 10635 | |
f053c89f | 10636 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 10637 | conftest$ac_exeext conftest.$ac_ext |
98418dba CW |
10638 | if test "${xlinux_first_failure}" = "yes"; then |
10639 | OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE" | |
10640 | OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE" | |
10641 | OLD_CPPFLAGS="$CPPFLAGS" | |
10642 | OLD_LIBS="$LIBS" | |
10643 | LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout" | |
10644 | C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout" | |
10645 | CPPFLAGS="$CPPFLAGS -b i486-linuxaout" | |
10646 | LIBS="$LIBS -b i486-linuxaout" | |
10647 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
10648 | /* confdefs.h. */ |
10649 | _ACEOF | |
10650 | cat confdefs.h >>conftest.$ac_ext | |
10651 | cat >>conftest.$ac_ext <<_ACEOF | |
10652 | /* end confdefs.h. */ | |
98418dba | 10653 | |
98418dba CW |
10654 | int |
10655 | main () | |
10656 | { | |
10657 | XOpenDisplay ("foo"); | |
10658 | ; | |
10659 | return 0; | |
10660 | } | |
10661 | _ACEOF | |
10662 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
10663 | if { (ac_try="$ac_link" |
10664 | case "(($ac_try" in | |
10665 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10666 | *) ac_try_echo=$ac_try;; | |
10667 | esac | |
10668 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10669 | (eval "$ac_link") 2>conftest.er1 | |
98418dba | 10670 | ac_status=$? |
edfaf76d LK |
10671 | grep -v '^ *+' conftest.er1 >conftest.err |
10672 | rm -f conftest.er1 | |
10673 | cat conftest.err >&5 | |
c0d27fcc | 10674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
10675 | (exit $ac_status); } && { |
10676 | test -z "$ac_c_werror_flag" || | |
10677 | test ! -s conftest.err | |
10678 | } && test -s conftest$ac_exeext && | |
10679 | $as_test_x conftest$ac_exeext; then | |
98418dba CW |
10680 | xlinux_second_failure=no |
10681 | else | |
10682 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10683 | sed 's/^/| /' conftest.$ac_ext >&5 |
10684 | ||
ca81d7a0 | 10685 | xlinux_second_failure=yes |
98418dba | 10686 | fi |
ca81d7a0 | 10687 | |
f053c89f | 10688 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 10689 | conftest$ac_exeext conftest.$ac_ext |
98418dba CW |
10690 | if test "${xlinux_second_failure}" = "yes"; then |
10691 | # If we get the same failure with -b, there is no use adding -b. | |
10692 | # So take it out. This plays safe. | |
10693 | LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE" | |
10694 | C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE" | |
10695 | CPPFLAGS="$OLD_CPPFLAGS" | |
10696 | LIBS="$OLD_LIBS" | |
ca81d7a0 JD |
10697 | { echo "$as_me:$LINENO: result: no" >&5 |
10698 | echo "${ECHO_T}no" >&6; } | |
98418dba | 10699 | else |
ca81d7a0 JD |
10700 | { echo "$as_me:$LINENO: result: yes" >&5 |
10701 | echo "${ECHO_T}yes" >&6; } | |
98418dba CW |
10702 | fi |
10703 | else | |
ca81d7a0 JD |
10704 | { echo "$as_me:$LINENO: result: no" >&5 |
10705 | echo "${ECHO_T}no" >&6; } | |
98418dba CW |
10706 | fi |
10707 | fi | |
10708 | ||
10709 | # Reportedly, some broken Solaris systems have XKBlib.h but are missing | |
10710 | # header files included from there. | |
ca81d7a0 JD |
10711 | { echo "$as_me:$LINENO: checking for Xkb" >&5 |
10712 | echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; } | |
98418dba | 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 CW |
10719 | #include <X11/Xlib.h> |
10720 | #include <X11/XKBlib.h> | |
98418dba CW |
10721 | int |
10722 | main () | |
10723 | { | |
10724 | XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd); | |
10725 | ; | |
10726 | return 0; | |
10727 | } | |
10728 | _ACEOF | |
10729 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
10730 | if { (ac_try="$ac_link" |
10731 | case "(($ac_try" in | |
10732 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10733 | *) ac_try_echo=$ac_try;; | |
10734 | esac | |
10735 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10736 | (eval "$ac_link") 2>conftest.er1 | |
98418dba | 10737 | ac_status=$? |
edfaf76d LK |
10738 | grep -v '^ *+' conftest.er1 >conftest.err |
10739 | rm -f conftest.er1 | |
10740 | cat conftest.err >&5 | |
c0d27fcc | 10741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
10742 | (exit $ac_status); } && { |
10743 | test -z "$ac_c_werror_flag" || | |
10744 | test ! -s conftest.err | |
10745 | } && test -s conftest$ac_exeext && | |
10746 | $as_test_x conftest$ac_exeext; then | |
98418dba CW |
10747 | emacs_xkb=yes |
10748 | else | |
10749 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10750 | sed 's/^/| /' conftest.$ac_ext >&5 |
10751 | ||
ca81d7a0 | 10752 | emacs_xkb=no |
98418dba | 10753 | fi |
ca81d7a0 | 10754 | |
f053c89f | 10755 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 10756 | conftest$ac_exeext conftest.$ac_ext |
ca81d7a0 JD |
10757 | { echo "$as_me:$LINENO: result: $emacs_xkb" >&5 |
10758 | echo "${ECHO_T}$emacs_xkb" >&6; } | |
98418dba | 10759 | if test $emacs_xkb = yes; then |
b936fae4 | 10760 | |
c0d27fcc | 10761 | cat >>confdefs.h <<\_ACEOF |
98418dba | 10762 | #define HAVE_XKBGETKEYBOARD 1 |
c0d27fcc | 10763 | _ACEOF |
98418dba CW |
10764 | |
10765 | fi | |
10766 | ||
c0d27fcc MR |
10767 | |
10768 | ||
10769 | ||
10770 | ||
98418dba CW |
10771 | for ac_func in XrmSetDatabase XScreenResourceString \ |
10772 | XScreenNumberOfScreen XSetWMProtocols | |
10773 | do | |
10774 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
ca81d7a0 JD |
10775 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
10776 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
10777 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
98418dba CW |
10778 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10779 | else | |
10780 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
10781 | /* confdefs.h. */ |
10782 | _ACEOF | |
10783 | cat confdefs.h >>conftest.$ac_ext | |
10784 | cat >>conftest.$ac_ext <<_ACEOF | |
10785 | /* end confdefs.h. */ | |
edfaf76d LK |
10786 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
10787 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10788 | #define $ac_func innocuous_$ac_func | |
10789 | ||
98418dba | 10790 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
10791 | which can conflict with char $ac_func (); below. |
10792 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10793 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 10794 | |
19650fd6 AS |
10795 | #ifdef __STDC__ |
10796 | # include <limits.h> | |
10797 | #else | |
10798 | # include <assert.h> | |
10799 | #endif | |
edfaf76d LK |
10800 | |
10801 | #undef $ac_func | |
10802 | ||
ca81d7a0 JD |
10803 | /* Override any GCC internal prototype to avoid an error. |
10804 | Use char because int might match the return type of a GCC | |
10805 | builtin and then its argument prototype would still apply. */ | |
98418dba CW |
10806 | #ifdef __cplusplus |
10807 | extern "C" | |
10808 | #endif | |
98418dba | 10809 | char $ac_func (); |
98418dba CW |
10810 | /* The GNU C library defines this for functions which it implements |
10811 | to always fail with ENOSYS. Some functions are actually named | |
10812 | something starting with __ and the normal name is an alias. */ | |
ca81d7a0 | 10813 | #if defined __stub_$ac_func || defined __stub___$ac_func |
98418dba | 10814 | choke me |
98418dba CW |
10815 | #endif |
10816 | ||
19650fd6 AS |
10817 | int |
10818 | main () | |
10819 | { | |
ca81d7a0 | 10820 | return $ac_func (); |
98418dba CW |
10821 | ; |
10822 | return 0; | |
10823 | } | |
10824 | _ACEOF | |
10825 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
10826 | if { (ac_try="$ac_link" |
10827 | case "(($ac_try" in | |
10828 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10829 | *) ac_try_echo=$ac_try;; | |
10830 | esac | |
10831 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10832 | (eval "$ac_link") 2>conftest.er1 | |
98418dba | 10833 | ac_status=$? |
edfaf76d LK |
10834 | grep -v '^ *+' conftest.er1 >conftest.err |
10835 | rm -f conftest.er1 | |
10836 | cat conftest.err >&5 | |
c0d27fcc | 10837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
10838 | (exit $ac_status); } && { |
10839 | test -z "$ac_c_werror_flag" || | |
10840 | test ! -s conftest.err | |
10841 | } && test -s conftest$ac_exeext && | |
10842 | $as_test_x conftest$ac_exeext; then | |
98418dba CW |
10843 | eval "$as_ac_var=yes" |
10844 | else | |
10845 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10846 | sed 's/^/| /' conftest.$ac_ext >&5 |
10847 | ||
ca81d7a0 | 10848 | eval "$as_ac_var=no" |
98418dba | 10849 | fi |
ca81d7a0 | 10850 | |
f053c89f | 10851 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 10852 | conftest$ac_exeext conftest.$ac_ext |
98418dba | 10853 | fi |
ca81d7a0 JD |
10854 | ac_res=`eval echo '${'$as_ac_var'}'` |
10855 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10856 | echo "${ECHO_T}$ac_res" >&6; } | |
98418dba | 10857 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
c0d27fcc | 10858 | cat >>confdefs.h <<_ACEOF |
98418dba | 10859 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 10860 | _ACEOF |
98418dba CW |
10861 | |
10862 | fi | |
10863 | done | |
10864 | ||
10865 | fi | |
10866 | ||
10867 | if test "${window_system}" = "x11"; then | |
ca81d7a0 JD |
10868 | { echo "$as_me:$LINENO: checking X11 version 6" >&5 |
10869 | echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; } | |
98418dba CW |
10870 | if test "${emacs_cv_x11_version_6+set}" = set; then |
10871 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10872 | else | |
10873 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
10874 | /* confdefs.h. */ |
10875 | _ACEOF | |
10876 | cat confdefs.h >>conftest.$ac_ext | |
10877 | cat >>conftest.$ac_ext <<_ACEOF | |
10878 | /* end confdefs.h. */ | |
98418dba | 10879 | #include <X11/Xlib.h> |
98418dba CW |
10880 | int |
10881 | main () | |
10882 | { | |
10883 | #if XlibSpecificationRelease < 6 | |
10884 | fail; | |
10885 | #endif | |
10886 | ||
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 | emacs_cv_x11_version_6=yes |
10910 | else | |
10911 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
10912 | sed 's/^/| /' conftest.$ac_ext >&5 |
10913 | ||
ca81d7a0 | 10914 | emacs_cv_x11_version_6=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 CW |
10919 | fi |
10920 | ||
10921 | if test $emacs_cv_x11_version_6 = yes; then | |
ca81d7a0 JD |
10922 | { echo "$as_me:$LINENO: result: 6 or newer" >&5 |
10923 | echo "${ECHO_T}6 or newer" >&6; } | |
b936fae4 | 10924 | |
c0d27fcc | 10925 | cat >>confdefs.h <<\_ACEOF |
98418dba | 10926 | #define HAVE_X11R6 1 |
c0d27fcc | 10927 | _ACEOF |
98418dba CW |
10928 | |
10929 | else | |
ca81d7a0 JD |
10930 | { echo "$as_me:$LINENO: result: before 6" >&5 |
10931 | echo "${ECHO_T}before 6" >&6; } | |
98418dba CW |
10932 | fi |
10933 | fi | |
10934 | ||
98418dba | 10935 | |
0cfc0546 GM |
10936 | ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified. |
10937 | HAVE_RSVG=no | |
ae0476ed | 10938 | if test "${HAVE_X11}" = "yes" || test "${HAVE_CARBON}" = "yes"; then |
0cfc0546 | 10939 | if test "${with_rsvg}" != "no"; then |
0cfc0546 GM |
10940 | RSVG_REQUIRED=2.0.0 |
10941 | RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED" | |
10942 | ||
10943 | ||
10944 | succeeded=no | |
10945 | ||
00b9c927 | 10946 | # Extract the first word of "pkg-config", so it can be a program name with args. |
0cfc0546 GM |
10947 | set dummy pkg-config; ac_word=$2 |
10948 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10949 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
10950 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
10951 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10952 | else | |
10953 | case $PKG_CONFIG in | |
10954 | [\\/]* | ?:[\\/]*) | |
10955 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
10956 | ;; | |
10957 | *) | |
10958 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10959 | for as_dir in $PATH | |
10960 | do | |
10961 | IFS=$as_save_IFS | |
10962 | test -z "$as_dir" && as_dir=. | |
10963 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10964 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10965 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
10966 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10967 | break 2 | |
10968 | fi | |
10969 | done | |
10970 | done | |
10971 | IFS=$as_save_IFS | |
10972 | ||
10973 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
10974 | ;; | |
10975 | esac | |
10976 | fi | |
10977 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
10978 | if test -n "$PKG_CONFIG"; then | |
10979 | { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
10980 | echo "${ECHO_T}$PKG_CONFIG" >&6; } | |
10981 | else | |
10982 | { echo "$as_me:$LINENO: result: no" >&5 | |
10983 | echo "${ECHO_T}no" >&6; } | |
10984 | fi | |
10985 | ||
10986 | ||
0cfc0546 GM |
10987 | |
10988 | if test "$PKG_CONFIG" = "no" ; then | |
10989 | : | |
10990 | else | |
10991 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
10992 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
10993 | { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5 | |
10994 | echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; } | |
10995 | ||
10996 | if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then | |
10997 | { echo "$as_me:$LINENO: result: yes" >&5 | |
10998 | echo "${ECHO_T}yes" >&6; } | |
10999 | succeeded=yes | |
11000 | ||
11001 | { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5 | |
11002 | echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; } | |
11003 | RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'` | |
11004 | { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5 | |
11005 | echo "${ECHO_T}$RSVG_CFLAGS" >&6; } | |
11006 | ||
11007 | { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5 | |
11008 | echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; } | |
11009 | RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'` | |
11010 | { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5 | |
11011 | echo "${ECHO_T}$RSVG_LIBS" >&6; } | |
11012 | else | |
11013 | { echo "$as_me:$LINENO: result: no" >&5 | |
11014 | echo "${ECHO_T}no" >&6; } | |
11015 | RSVG_CFLAGS="" | |
11016 | RSVG_LIBS="" | |
11017 | ## If we have a custom action on failure, don't print errors, but | |
11018 | ## do set a variable so people can do so. | |
11019 | RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"` | |
11020 | ||
11021 | fi | |
11022 | ||
11023 | ||
11024 | ||
11025 | else | |
11026 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
11027 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
11028 | fi | |
11029 | fi | |
11030 | ||
11031 | if test $succeeded = yes; then | |
11032 | : | |
11033 | else | |
11034 | : | |
11035 | fi | |
11036 | ||
11037 | ||
11038 | ||
11039 | ||
11040 | if test ".${RSVG_CFLAGS}" != "."; then | |
11041 | HAVE_RSVG=yes | |
11042 | ||
11043 | cat >>confdefs.h <<\_ACEOF | |
11044 | #define HAVE_RSVG 1 | |
11045 | _ACEOF | |
11046 | ||
11047 | CFLAGS="$CFLAGS $RSVG_CFLAGS" | |
11048 | LIBS="$RSVG_LIBS $LIBS" | |
11049 | fi | |
11050 | fi | |
11051 | fi | |
11052 | ||
11053 | ||
488dd4c4 | 11054 | HAVE_GTK=no |
9d2818d6 | 11055 | if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then |
787eb67d JD |
11056 | GLIB_REQUIRED=2.6 |
11057 | GTK_REQUIRED=2.6 | |
488dd4c4 JD |
11058 | GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED" |
11059 | ||
488dd4c4 JD |
11060 | |
11061 | succeeded=no | |
11062 | ||
00b9c927 | 11063 | # Extract the first word of "pkg-config", so it can be a program name with args. |
488dd4c4 | 11064 | set dummy pkg-config; ac_word=$2 |
ca81d7a0 JD |
11065 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11066 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
488dd4c4 JD |
11067 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
11068 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11069 | else | |
11070 | case $PKG_CONFIG in | |
11071 | [\\/]* | ?:[\\/]*) | |
11072 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
11073 | ;; | |
11074 | *) | |
11075 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11076 | for as_dir in $PATH | |
11077 | do | |
11078 | IFS=$as_save_IFS | |
11079 | test -z "$as_dir" && as_dir=. | |
11080 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f053c89f | 11081 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
488dd4c4 JD |
11082 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
11083 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11084 | break 2 | |
11085 | fi | |
11086 | done | |
11087 | done | |
ca81d7a0 | 11088 | IFS=$as_save_IFS |
488dd4c4 JD |
11089 | |
11090 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
11091 | ;; | |
11092 | esac | |
11093 | fi | |
11094 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
488dd4c4 | 11095 | if test -n "$PKG_CONFIG"; then |
ca81d7a0 JD |
11096 | { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
11097 | echo "${ECHO_T}$PKG_CONFIG" >&6; } | |
488dd4c4 | 11098 | else |
ca81d7a0 JD |
11099 | { echo "$as_me:$LINENO: result: no" >&5 |
11100 | echo "${ECHO_T}no" >&6; } | |
488dd4c4 JD |
11101 | fi |
11102 | ||
ca81d7a0 | 11103 | |
488dd4c4 JD |
11104 | |
11105 | if test "$PKG_CONFIG" = "no" ; then | |
089a966d | 11106 | pkg_check_gtk=no |
488dd4c4 JD |
11107 | else |
11108 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
11109 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
ca81d7a0 JD |
11110 | { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5 |
11111 | echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; } | |
488dd4c4 | 11112 | |
67db6aa2 | 11113 | if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then |
ca81d7a0 JD |
11114 | { echo "$as_me:$LINENO: result: yes" >&5 |
11115 | echo "${ECHO_T}yes" >&6; } | |
488dd4c4 JD |
11116 | succeeded=yes |
11117 | ||
ca81d7a0 JD |
11118 | { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5 |
11119 | echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; } | |
94315858 | 11120 | GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'` |
ca81d7a0 JD |
11121 | { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5 |
11122 | echo "${ECHO_T}$GTK_CFLAGS" >&6; } | |
488dd4c4 | 11123 | |
ca81d7a0 JD |
11124 | { echo "$as_me:$LINENO: checking GTK_LIBS" >&5 |
11125 | echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; } | |
94315858 | 11126 | GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'` |
ca81d7a0 JD |
11127 | { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5 |
11128 | echo "${ECHO_T}$GTK_LIBS" >&6; } | |
488dd4c4 | 11129 | else |
ca81d7a0 JD |
11130 | { echo "$as_me:$LINENO: result: no" >&5 |
11131 | echo "${ECHO_T}no" >&6; } | |
488dd4c4 JD |
11132 | GTK_CFLAGS="" |
11133 | GTK_LIBS="" | |
11134 | ## If we have a custom action on failure, don't print errors, but | |
11135 | ## do set a variable so people can do so. | |
11136 | GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"` | |
089a966d | 11137 | |
488dd4c4 JD |
11138 | fi |
11139 | ||
11140 | ||
11141 | ||
11142 | else | |
11143 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
11144 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
11145 | fi | |
11146 | fi | |
11147 | ||
11148 | if test $succeeded = yes; then | |
089a966d | 11149 | pkg_check_gtk=yes |
488dd4c4 | 11150 | else |
089a966d GM |
11151 | pkg_check_gtk=no |
11152 | fi | |
11153 | ||
11154 | if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then | |
11155 | { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5 | |
11156 | echo "$as_me: error: $GTK_PKG_ERRORS" >&2;} | |
488dd4c4 JD |
11157 | { (exit 1); exit 1; }; } |
11158 | fi | |
089a966d GM |
11159 | fi |
11160 | ||
11161 | ||
11162 | if test x"$pkg_check_gtk" = xyes; then | |
488dd4c4 JD |
11163 | |
11164 | ||
11165 | ||
11166 | C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS" | |
57669b57 JD |
11167 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
11168 | LIBS="$GTK_LIBS $LIBS" | |
8eeae1c9 | 11169 | GTK_COMPILES=no |
57669b57 | 11170 | |
8eeae1c9 | 11171 | for ac_func in gtk_main |
57669b57 JD |
11172 | do |
11173 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
ca81d7a0 JD |
11174 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
11175 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
11176 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
57669b57 JD |
11177 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11178 | else | |
11179 | cat >conftest.$ac_ext <<_ACEOF | |
57669b57 JD |
11180 | /* confdefs.h. */ |
11181 | _ACEOF | |
11182 | cat confdefs.h >>conftest.$ac_ext | |
11183 | cat >>conftest.$ac_ext <<_ACEOF | |
11184 | /* end confdefs.h. */ | |
edfaf76d LK |
11185 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
11186 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11187 | #define $ac_func innocuous_$ac_func | |
11188 | ||
57669b57 JD |
11189 | /* System header to define __stub macros and hopefully few prototypes, |
11190 | which can conflict with char $ac_func (); below. | |
11191 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11192 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 11193 | |
57669b57 JD |
11194 | #ifdef __STDC__ |
11195 | # include <limits.h> | |
11196 | #else | |
11197 | # include <assert.h> | |
11198 | #endif | |
edfaf76d LK |
11199 | |
11200 | #undef $ac_func | |
11201 | ||
ca81d7a0 JD |
11202 | /* Override any GCC internal prototype to avoid an error. |
11203 | Use char because int might match the return type of a GCC | |
11204 | builtin and then its argument prototype would still apply. */ | |
57669b57 JD |
11205 | #ifdef __cplusplus |
11206 | extern "C" | |
57669b57 | 11207 | #endif |
57669b57 JD |
11208 | char $ac_func (); |
11209 | /* The GNU C library defines this for functions which it implements | |
11210 | to always fail with ENOSYS. Some functions are actually named | |
11211 | something starting with __ and the normal name is an alias. */ | |
ca81d7a0 | 11212 | #if defined __stub_$ac_func || defined __stub___$ac_func |
57669b57 | 11213 | choke me |
57669b57 JD |
11214 | #endif |
11215 | ||
11216 | int | |
11217 | main () | |
11218 | { | |
ca81d7a0 | 11219 | return $ac_func (); |
57669b57 JD |
11220 | ; |
11221 | return 0; | |
11222 | } | |
11223 | _ACEOF | |
11224 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
11225 | if { (ac_try="$ac_link" |
11226 | case "(($ac_try" in | |
11227 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11228 | *) ac_try_echo=$ac_try;; | |
11229 | esac | |
11230 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11231 | (eval "$ac_link") 2>conftest.er1 | |
57669b57 | 11232 | ac_status=$? |
edfaf76d LK |
11233 | grep -v '^ *+' conftest.er1 >conftest.err |
11234 | rm -f conftest.er1 | |
11235 | cat conftest.err >&5 | |
57669b57 | 11236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
11237 | (exit $ac_status); } && { |
11238 | test -z "$ac_c_werror_flag" || | |
11239 | test ! -s conftest.err | |
11240 | } && test -s conftest$ac_exeext && | |
11241 | $as_test_x conftest$ac_exeext; then | |
57669b57 JD |
11242 | eval "$as_ac_var=yes" |
11243 | else | |
11244 | echo "$as_me: failed program was:" >&5 | |
11245 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11246 | ||
ca81d7a0 | 11247 | eval "$as_ac_var=no" |
57669b57 | 11248 | fi |
ca81d7a0 | 11249 | |
f053c89f | 11250 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 11251 | conftest$ac_exeext conftest.$ac_ext |
57669b57 | 11252 | fi |
ca81d7a0 JD |
11253 | ac_res=`eval echo '${'$as_ac_var'}'` |
11254 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11255 | echo "${ECHO_T}$ac_res" >&6; } | |
57669b57 JD |
11256 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
11257 | cat >>confdefs.h <<_ACEOF | |
11258 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
11259 | _ACEOF | |
8eeae1c9 | 11260 | GTK_COMPILES=yes |
57669b57 JD |
11261 | fi |
11262 | done | |
11263 | ||
8eeae1c9 | 11264 | if test "${GTK_COMPILES}" != "yes"; then |
089a966d GM |
11265 | if test "$USE_X_TOOLKIT" != "maybe"; then |
11266 | { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5 | |
8eeae1c9 JD |
11267 | echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;} |
11268 | { (exit 1); exit 1; }; }; | |
089a966d GM |
11269 | fi |
11270 | else | |
11271 | HAVE_GTK=yes | |
488dd4c4 JD |
11272 | |
11273 | cat >>confdefs.h <<\_ACEOF | |
a51f4969 | 11274 | #define USE_GTK 1 |
488dd4c4 JD |
11275 | _ACEOF |
11276 | ||
089a966d | 11277 | USE_X_TOOLKIT=none |
f60c93db JD |
11278 | if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then |
11279 | : | |
11280 | else | |
11281 | { echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with | |
11282 | closing open displays. This is no problem if you just use | |
11283 | one display, but if you use more than one and close one of them | |
11284 | Emacs may crash." >&5 | |
11285 | echo "$as_me: WARNING: Your version of Gtk+ will have problems with | |
11286 | closing open displays. This is no problem if you just use | |
11287 | one display, but if you use more than one and close one of them | |
11288 | Emacs may crash." >&2;} | |
11289 | sleep 3 | |
11290 | fi | |
089a966d GM |
11291 | fi |
11292 | ||
11293 | fi | |
11294 | ||
11295 | ||
11296 | if test "${HAVE_GTK}" = "yes"; then | |
488dd4c4 | 11297 | |
d0a80c21 JD |
11298 | if test "$with_toolkit_scroll_bars" != no; then |
11299 | with_toolkit_scroll_bars=yes | |
11300 | fi | |
57669b57 JD |
11301 | |
11302 | HAVE_GTK_MULTIDISPLAY=no | |
11303 | ||
11304 | for ac_func in gdk_display_open | |
11305 | do | |
11306 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
ca81d7a0 JD |
11307 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
11308 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
11309 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
57669b57 JD |
11310 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11311 | else | |
11312 | cat >conftest.$ac_ext <<_ACEOF | |
57669b57 JD |
11313 | /* confdefs.h. */ |
11314 | _ACEOF | |
11315 | cat confdefs.h >>conftest.$ac_ext | |
11316 | cat >>conftest.$ac_ext <<_ACEOF | |
11317 | /* end confdefs.h. */ | |
edfaf76d LK |
11318 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
11319 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11320 | #define $ac_func innocuous_$ac_func | |
11321 | ||
57669b57 JD |
11322 | /* System header to define __stub macros and hopefully few prototypes, |
11323 | which can conflict with char $ac_func (); below. | |
11324 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11325 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 11326 | |
57669b57 JD |
11327 | #ifdef __STDC__ |
11328 | # include <limits.h> | |
11329 | #else | |
11330 | # include <assert.h> | |
11331 | #endif | |
edfaf76d LK |
11332 | |
11333 | #undef $ac_func | |
11334 | ||
ca81d7a0 JD |
11335 | /* Override any GCC internal prototype to avoid an error. |
11336 | Use char because int might match the return type of a GCC | |
11337 | builtin and then its argument prototype would still apply. */ | |
57669b57 JD |
11338 | #ifdef __cplusplus |
11339 | extern "C" | |
57669b57 | 11340 | #endif |
57669b57 JD |
11341 | char $ac_func (); |
11342 | /* The GNU C library defines this for functions which it implements | |
11343 | to always fail with ENOSYS. Some functions are actually named | |
11344 | something starting with __ and the normal name is an alias. */ | |
ca81d7a0 | 11345 | #if defined __stub_$ac_func || defined __stub___$ac_func |
57669b57 | 11346 | choke me |
57669b57 JD |
11347 | #endif |
11348 | ||
11349 | int | |
11350 | main () | |
11351 | { | |
ca81d7a0 | 11352 | return $ac_func (); |
57669b57 JD |
11353 | ; |
11354 | return 0; | |
11355 | } | |
11356 | _ACEOF | |
11357 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
11358 | if { (ac_try="$ac_link" |
11359 | case "(($ac_try" in | |
11360 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11361 | *) ac_try_echo=$ac_try;; | |
11362 | esac | |
11363 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11364 | (eval "$ac_link") 2>conftest.er1 | |
57669b57 | 11365 | ac_status=$? |
edfaf76d LK |
11366 | grep -v '^ *+' conftest.er1 >conftest.err |
11367 | rm -f conftest.er1 | |
11368 | cat conftest.err >&5 | |
57669b57 | 11369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
11370 | (exit $ac_status); } && { |
11371 | test -z "$ac_c_werror_flag" || | |
11372 | test ! -s conftest.err | |
11373 | } && test -s conftest$ac_exeext && | |
11374 | $as_test_x conftest$ac_exeext; then | |
57669b57 JD |
11375 | eval "$as_ac_var=yes" |
11376 | else | |
11377 | echo "$as_me: failed program was:" >&5 | |
11378 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11379 | ||
ca81d7a0 | 11380 | eval "$as_ac_var=no" |
57669b57 | 11381 | fi |
ca81d7a0 | 11382 | |
f053c89f | 11383 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 11384 | conftest$ac_exeext conftest.$ac_ext |
57669b57 | 11385 | fi |
ca81d7a0 JD |
11386 | ac_res=`eval echo '${'$as_ac_var'}'` |
11387 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11388 | echo "${ECHO_T}$ac_res" >&6; } | |
57669b57 JD |
11389 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
11390 | cat >>confdefs.h <<_ACEOF | |
11391 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
11392 | _ACEOF | |
11393 | HAVE_GTK_MULTIDISPLAY=yes | |
11394 | fi | |
11395 | done | |
11396 | ||
11397 | if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then | |
11398 | ||
11399 | cat >>confdefs.h <<\_ACEOF | |
11400 | #define HAVE_GTK_MULTIDISPLAY 1 | |
572a3cc2 JD |
11401 | _ACEOF |
11402 | ||
11403 | fi | |
57669b57 | 11404 | |
572a3cc2 JD |
11405 | HAVE_GTK_FILE_SELECTION=no |
11406 | ||
11407 | for ac_func in gtk_file_selection_new | |
11408 | do | |
11409 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
ca81d7a0 JD |
11410 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
11411 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
11412 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
572a3cc2 JD |
11413 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11414 | else | |
11415 | cat >conftest.$ac_ext <<_ACEOF | |
11416 | /* confdefs.h. */ | |
11417 | _ACEOF | |
11418 | cat confdefs.h >>conftest.$ac_ext | |
11419 | cat >>conftest.$ac_ext <<_ACEOF | |
11420 | /* end confdefs.h. */ | |
edfaf76d LK |
11421 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
11422 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11423 | #define $ac_func innocuous_$ac_func | |
11424 | ||
572a3cc2 JD |
11425 | /* System header to define __stub macros and hopefully few prototypes, |
11426 | which can conflict with char $ac_func (); below. | |
11427 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11428 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 11429 | |
572a3cc2 JD |
11430 | #ifdef __STDC__ |
11431 | # include <limits.h> | |
11432 | #else | |
11433 | # include <assert.h> | |
11434 | #endif | |
edfaf76d LK |
11435 | |
11436 | #undef $ac_func | |
11437 | ||
ca81d7a0 JD |
11438 | /* Override any GCC internal prototype to avoid an error. |
11439 | Use char because int might match the return type of a GCC | |
11440 | builtin and then its argument prototype would still apply. */ | |
572a3cc2 JD |
11441 | #ifdef __cplusplus |
11442 | extern "C" | |
572a3cc2 | 11443 | #endif |
572a3cc2 JD |
11444 | char $ac_func (); |
11445 | /* The GNU C library defines this for functions which it implements | |
11446 | to always fail with ENOSYS. Some functions are actually named | |
11447 | something starting with __ and the normal name is an alias. */ | |
ca81d7a0 | 11448 | #if defined __stub_$ac_func || defined __stub___$ac_func |
572a3cc2 | 11449 | choke me |
572a3cc2 JD |
11450 | #endif |
11451 | ||
11452 | int | |
11453 | main () | |
11454 | { | |
ca81d7a0 | 11455 | return $ac_func (); |
572a3cc2 JD |
11456 | ; |
11457 | return 0; | |
11458 | } | |
11459 | _ACEOF | |
11460 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
11461 | if { (ac_try="$ac_link" |
11462 | case "(($ac_try" in | |
11463 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11464 | *) ac_try_echo=$ac_try;; | |
11465 | esac | |
11466 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11467 | (eval "$ac_link") 2>conftest.er1 | |
572a3cc2 | 11468 | ac_status=$? |
edfaf76d LK |
11469 | grep -v '^ *+' conftest.er1 >conftest.err |
11470 | rm -f conftest.er1 | |
11471 | cat conftest.err >&5 | |
572a3cc2 | 11472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
11473 | (exit $ac_status); } && { |
11474 | test -z "$ac_c_werror_flag" || | |
11475 | test ! -s conftest.err | |
11476 | } && test -s conftest$ac_exeext && | |
11477 | $as_test_x conftest$ac_exeext; then | |
572a3cc2 JD |
11478 | eval "$as_ac_var=yes" |
11479 | else | |
11480 | echo "$as_me: failed program was:" >&5 | |
11481 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11482 | ||
ca81d7a0 | 11483 | eval "$as_ac_var=no" |
572a3cc2 | 11484 | fi |
ca81d7a0 | 11485 | |
f053c89f | 11486 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 11487 | conftest$ac_exeext conftest.$ac_ext |
572a3cc2 | 11488 | fi |
ca81d7a0 JD |
11489 | ac_res=`eval echo '${'$as_ac_var'}'` |
11490 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11491 | echo "${ECHO_T}$ac_res" >&6; } | |
572a3cc2 JD |
11492 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
11493 | cat >>confdefs.h <<_ACEOF | |
11494 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
11495 | _ACEOF | |
11496 | HAVE_GTK_FILE_SELECTION=yes | |
11497 | fi | |
11498 | done | |
11499 | ||
11500 | ||
11501 | HAVE_GTK_FILE_CHOOSER=no | |
11502 | ||
11503 | for ac_func in gtk_file_chooser_dialog_new | |
11504 | do | |
11505 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
ca81d7a0 JD |
11506 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
11507 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
11508 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
572a3cc2 JD |
11509 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11510 | else | |
11511 | cat >conftest.$ac_ext <<_ACEOF | |
11512 | /* confdefs.h. */ | |
11513 | _ACEOF | |
11514 | cat confdefs.h >>conftest.$ac_ext | |
11515 | cat >>conftest.$ac_ext <<_ACEOF | |
11516 | /* end confdefs.h. */ | |
edfaf76d LK |
11517 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
11518 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11519 | #define $ac_func innocuous_$ac_func | |
11520 | ||
572a3cc2 JD |
11521 | /* System header to define __stub macros and hopefully few prototypes, |
11522 | which can conflict with char $ac_func (); below. | |
11523 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11524 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 11525 | |
572a3cc2 JD |
11526 | #ifdef __STDC__ |
11527 | # include <limits.h> | |
11528 | #else | |
11529 | # include <assert.h> | |
11530 | #endif | |
edfaf76d LK |
11531 | |
11532 | #undef $ac_func | |
11533 | ||
ca81d7a0 JD |
11534 | /* Override any GCC internal prototype to avoid an error. |
11535 | Use char because int might match the return type of a GCC | |
11536 | builtin and then its argument prototype would still apply. */ | |
572a3cc2 JD |
11537 | #ifdef __cplusplus |
11538 | extern "C" | |
572a3cc2 | 11539 | #endif |
572a3cc2 JD |
11540 | char $ac_func (); |
11541 | /* The GNU C library defines this for functions which it implements | |
11542 | to always fail with ENOSYS. Some functions are actually named | |
11543 | something starting with __ and the normal name is an alias. */ | |
ca81d7a0 | 11544 | #if defined __stub_$ac_func || defined __stub___$ac_func |
572a3cc2 | 11545 | choke me |
572a3cc2 JD |
11546 | #endif |
11547 | ||
11548 | int | |
11549 | main () | |
11550 | { | |
ca81d7a0 | 11551 | return $ac_func (); |
572a3cc2 JD |
11552 | ; |
11553 | return 0; | |
11554 | } | |
11555 | _ACEOF | |
11556 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
11557 | if { (ac_try="$ac_link" |
11558 | case "(($ac_try" in | |
11559 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11560 | *) ac_try_echo=$ac_try;; | |
11561 | esac | |
11562 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11563 | (eval "$ac_link") 2>conftest.er1 | |
572a3cc2 | 11564 | ac_status=$? |
edfaf76d LK |
11565 | grep -v '^ *+' conftest.er1 >conftest.err |
11566 | rm -f conftest.er1 | |
11567 | cat conftest.err >&5 | |
572a3cc2 | 11568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
11569 | (exit $ac_status); } && { |
11570 | test -z "$ac_c_werror_flag" || | |
11571 | test ! -s conftest.err | |
11572 | } && test -s conftest$ac_exeext && | |
11573 | $as_test_x conftest$ac_exeext; then | |
572a3cc2 JD |
11574 | eval "$as_ac_var=yes" |
11575 | else | |
11576 | echo "$as_me: failed program was:" >&5 | |
11577 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11578 | ||
ca81d7a0 | 11579 | eval "$as_ac_var=no" |
572a3cc2 | 11580 | fi |
ca81d7a0 | 11581 | |
f053c89f | 11582 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 11583 | conftest$ac_exeext conftest.$ac_ext |
572a3cc2 | 11584 | fi |
ca81d7a0 JD |
11585 | ac_res=`eval echo '${'$as_ac_var'}'` |
11586 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11587 | echo "${ECHO_T}$ac_res" >&6; } | |
572a3cc2 JD |
11588 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
11589 | cat >>confdefs.h <<_ACEOF | |
11590 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
11591 | _ACEOF | |
11592 | HAVE_GTK_FILE_CHOOSER=yes | |
11593 | fi | |
11594 | done | |
11595 | ||
11596 | ||
11597 | if test "$HAVE_GTK_FILE_SELECTION" = yes \ | |
11598 | && test "$HAVE_GTK_FILE_CHOOSER" = yes; then | |
11599 | ||
11600 | cat >>confdefs.h <<\_ACEOF | |
11601 | #define HAVE_GTK_FILE_BOTH 1 | |
57669b57 JD |
11602 | _ACEOF |
11603 | ||
b8bdffbe JD |
11604 | fi |
11605 | ||
11606 | if test "$HAVE_GTK_FILE_CHOOSER" = yes; then | |
11607 | HAVE_GTK_AND_PTHREAD=no | |
11608 | ||
11609 | for ac_header in pthread.h | |
11610 | do | |
11611 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
ca81d7a0 JD |
11612 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
11613 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11614 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
11615 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
b8bdffbe JD |
11616 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11617 | fi | |
ca81d7a0 JD |
11618 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11619 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11620 | echo "${ECHO_T}$ac_res" >&6; } | |
b8bdffbe JD |
11621 | else |
11622 | # Is the header compilable? | |
ca81d7a0 JD |
11623 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11624 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
b8bdffbe JD |
11625 | cat >conftest.$ac_ext <<_ACEOF |
11626 | /* confdefs.h. */ | |
11627 | _ACEOF | |
11628 | cat confdefs.h >>conftest.$ac_ext | |
11629 | cat >>conftest.$ac_ext <<_ACEOF | |
11630 | /* end confdefs.h. */ | |
11631 | $ac_includes_default | |
11632 | #include <$ac_header> | |
11633 | _ACEOF | |
11634 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
11635 | if { (ac_try="$ac_compile" |
11636 | case "(($ac_try" in | |
11637 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11638 | *) ac_try_echo=$ac_try;; | |
11639 | esac | |
11640 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11641 | (eval "$ac_compile") 2>conftest.er1 | |
b8bdffbe | 11642 | ac_status=$? |
edfaf76d LK |
11643 | grep -v '^ *+' conftest.er1 >conftest.err |
11644 | rm -f conftest.er1 | |
11645 | cat conftest.err >&5 | |
b8bdffbe | 11646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
11647 | (exit $ac_status); } && { |
11648 | test -z "$ac_c_werror_flag" || | |
11649 | test ! -s conftest.err | |
11650 | } && test -s conftest.$ac_objext; then | |
b8bdffbe JD |
11651 | ac_header_compiler=yes |
11652 | else | |
11653 | echo "$as_me: failed program was:" >&5 | |
11654 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11655 | ||
ca81d7a0 | 11656 | ac_header_compiler=no |
b8bdffbe | 11657 | fi |
ca81d7a0 JD |
11658 | |
11659 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11660 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11661 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
b8bdffbe JD |
11662 | |
11663 | # Is the header present? | |
ca81d7a0 JD |
11664 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11665 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
b8bdffbe JD |
11666 | cat >conftest.$ac_ext <<_ACEOF |
11667 | /* confdefs.h. */ | |
11668 | _ACEOF | |
11669 | cat confdefs.h >>conftest.$ac_ext | |
11670 | cat >>conftest.$ac_ext <<_ACEOF | |
11671 | /* end confdefs.h. */ | |
11672 | #include <$ac_header> | |
11673 | _ACEOF | |
ca81d7a0 JD |
11674 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11675 | case "(($ac_try" in | |
11676 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11677 | *) ac_try_echo=$ac_try;; | |
11678 | esac | |
11679 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11680 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
b8bdffbe JD |
11681 | ac_status=$? |
11682 | grep -v '^ *+' conftest.er1 >conftest.err | |
11683 | rm -f conftest.er1 | |
11684 | cat conftest.err >&5 | |
11685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f053c89f CY |
11686 | (exit $ac_status); } >/dev/null && { |
11687 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
11688 | test ! -s conftest.err | |
11689 | }; then | |
b8bdffbe JD |
11690 | ac_header_preproc=yes |
11691 | else | |
11692 | echo "$as_me: failed program was:" >&5 | |
11693 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11694 | ||
11695 | ac_header_preproc=no | |
11696 | fi | |
ca81d7a0 | 11697 | |
b8bdffbe | 11698 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
11699 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11700 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
b8bdffbe JD |
11701 | |
11702 | # So? What about this header? | |
edfaf76d LK |
11703 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11704 | yes:no: ) | |
b8bdffbe JD |
11705 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
11706 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
11707 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
11708 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11709 | ac_header_preproc=yes | |
b8bdffbe | 11710 | ;; |
edfaf76d | 11711 | no:yes:* ) |
b8bdffbe JD |
11712 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
11713 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
edfaf76d LK |
11714 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
11715 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11716 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11717 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11718 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11719 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
b8bdffbe JD |
11720 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
11721 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
edfaf76d LK |
11722 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
11723 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 11724 | |
b8bdffbe JD |
11725 | ;; |
11726 | esac | |
ca81d7a0 JD |
11727 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11728 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
11729 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
b8bdffbe JD |
11730 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11731 | else | |
edfaf76d | 11732 | eval "$as_ac_Header=\$ac_header_preproc" |
b8bdffbe | 11733 | fi |
ca81d7a0 JD |
11734 | ac_res=`eval echo '${'$as_ac_Header'}'` |
11735 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11736 | echo "${ECHO_T}$ac_res" >&6; } | |
b8bdffbe JD |
11737 | |
11738 | fi | |
11739 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
11740 | cat >>confdefs.h <<_ACEOF | |
11741 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11742 | _ACEOF | |
11743 | ||
11744 | fi | |
11745 | ||
11746 | done | |
11747 | ||
11748 | if test "$ac_cv_header_pthread_h"; then | |
ca81d7a0 JD |
11749 | { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5 |
11750 | echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; } | |
b8bdffbe JD |
11751 | if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then |
11752 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11753 | else | |
11754 | ac_check_lib_save_LIBS=$LIBS | |
11755 | LIBS="-lpthread $LIBS" | |
11756 | cat >conftest.$ac_ext <<_ACEOF | |
11757 | /* confdefs.h. */ | |
11758 | _ACEOF | |
11759 | cat confdefs.h >>conftest.$ac_ext | |
11760 | cat >>conftest.$ac_ext <<_ACEOF | |
11761 | /* end confdefs.h. */ | |
11762 | ||
ca81d7a0 JD |
11763 | /* Override any GCC internal prototype to avoid an error. |
11764 | Use char because int might match the return type of a GCC | |
11765 | builtin and then its argument prototype would still apply. */ | |
b8bdffbe JD |
11766 | #ifdef __cplusplus |
11767 | extern "C" | |
11768 | #endif | |
b8bdffbe JD |
11769 | char pthread_self (); |
11770 | int | |
11771 | main () | |
11772 | { | |
ca81d7a0 | 11773 | return pthread_self (); |
b8bdffbe JD |
11774 | ; |
11775 | return 0; | |
11776 | } | |
11777 | _ACEOF | |
11778 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
11779 | if { (ac_try="$ac_link" |
11780 | case "(($ac_try" in | |
11781 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11782 | *) ac_try_echo=$ac_try;; | |
11783 | esac | |
11784 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11785 | (eval "$ac_link") 2>conftest.er1 | |
b8bdffbe | 11786 | ac_status=$? |
edfaf76d LK |
11787 | grep -v '^ *+' conftest.er1 >conftest.err |
11788 | rm -f conftest.er1 | |
11789 | cat conftest.err >&5 | |
b8bdffbe | 11790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
11791 | (exit $ac_status); } && { |
11792 | test -z "$ac_c_werror_flag" || | |
11793 | test ! -s conftest.err | |
11794 | } && test -s conftest$ac_exeext && | |
11795 | $as_test_x conftest$ac_exeext; then | |
b8bdffbe JD |
11796 | ac_cv_lib_pthread_pthread_self=yes |
11797 | else | |
11798 | echo "$as_me: failed program was:" >&5 | |
11799 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11800 | ||
ca81d7a0 | 11801 | ac_cv_lib_pthread_pthread_self=no |
b8bdffbe | 11802 | fi |
ca81d7a0 | 11803 | |
f053c89f | 11804 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 11805 | conftest$ac_exeext conftest.$ac_ext |
b8bdffbe JD |
11806 | LIBS=$ac_check_lib_save_LIBS |
11807 | fi | |
ca81d7a0 JD |
11808 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5 |
11809 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; } | |
b8bdffbe JD |
11810 | if test $ac_cv_lib_pthread_pthread_self = yes; then |
11811 | HAVE_GTK_AND_PTHREAD=yes | |
11812 | fi | |
11813 | ||
11814 | fi | |
11815 | if test "$HAVE_GTK_AND_PTHREAD" = yes; then | |
846d1b3e JD |
11816 | case "${canonical}" in |
11817 | *-hpux*) ;; | |
11818 | *) GTK_LIBS="$GTK_LIBS -lpthread" ;; | |
11819 | esac | |
b8bdffbe JD |
11820 | |
11821 | cat >>confdefs.h <<\_ACEOF | |
11822 | #define HAVE_GTK_AND_PTHREAD 1 | |
11823 | _ACEOF | |
11824 | ||
11825 | fi | |
57669b57 | 11826 | fi |
488dd4c4 JD |
11827 | fi |
11828 | ||
131e4133 MA |
11829 | HAVE_DBUS=no |
11830 | if test "${with_dbus}" = "yes"; then | |
cffe4909 MH |
11831 | |
11832 | succeeded=no | |
11833 | ||
00b9c927 | 11834 | # Extract the first word of "pkg-config", so it can be a program name with args. |
cffe4909 MH |
11835 | set dummy pkg-config; ac_word=$2 |
11836 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11837 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
11838 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
131e4133 MA |
11839 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11840 | else | |
cffe4909 MH |
11841 | case $PKG_CONFIG in |
11842 | [\\/]* | ?:[\\/]*) | |
11843 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
11844 | ;; | |
11845 | *) | |
11846 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11847 | for as_dir in $PATH | |
11848 | do | |
11849 | IFS=$as_save_IFS | |
11850 | test -z "$as_dir" && as_dir=. | |
11851 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11852 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
11853 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
11854 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11855 | break 2 | |
11856 | fi | |
11857 | done | |
11858 | done | |
11859 | IFS=$as_save_IFS | |
131e4133 | 11860 | |
cffe4909 MH |
11861 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
11862 | ;; | |
131e4133 | 11863 | esac |
cffe4909 MH |
11864 | fi |
11865 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
11866 | if test -n "$PKG_CONFIG"; then | |
11867 | { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
11868 | echo "${ECHO_T}$PKG_CONFIG" >&6; } | |
131e4133 | 11869 | else |
cffe4909 MH |
11870 | { echo "$as_me:$LINENO: result: no" >&5 |
11871 | echo "${ECHO_T}no" >&6; } | |
131e4133 MA |
11872 | fi |
11873 | ||
cffe4909 | 11874 | |
cffe4909 MH |
11875 | |
11876 | if test "$PKG_CONFIG" = "no" ; then | |
11877 | HAVE_DBUS=no | |
11878 | else | |
11879 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
11880 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
11881 | { echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5 | |
11882 | echo $ECHO_N "checking for dbus-1 >= 1.0... $ECHO_C" >&6; } | |
11883 | ||
11884 | if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then | |
11885 | { echo "$as_me:$LINENO: result: yes" >&5 | |
11886 | echo "${ECHO_T}yes" >&6; } | |
11887 | succeeded=yes | |
11888 | ||
11889 | { echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5 | |
11890 | echo $ECHO_N "checking DBUS_CFLAGS... $ECHO_C" >&6; } | |
11891 | DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'` | |
11892 | { echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5 | |
11893 | echo "${ECHO_T}$DBUS_CFLAGS" >&6; } | |
11894 | ||
11895 | { echo "$as_me:$LINENO: checking DBUS_LIBS" >&5 | |
11896 | echo $ECHO_N "checking DBUS_LIBS... $ECHO_C" >&6; } | |
11897 | DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'` | |
11898 | { echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5 | |
11899 | echo "${ECHO_T}$DBUS_LIBS" >&6; } | |
11900 | else | |
11901 | { echo "$as_me:$LINENO: result: no" >&5 | |
11902 | echo "${ECHO_T}no" >&6; } | |
11903 | DBUS_CFLAGS="" | |
11904 | DBUS_LIBS="" | |
11905 | ## If we have a custom action on failure, don't print errors, but | |
11906 | ## do set a variable so people can do so. | |
11907 | DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"` | |
11908 | ||
11909 | fi | |
11910 | ||
11911 | ||
11912 | ||
11913 | else | |
11914 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
11915 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
11916 | fi | |
11917 | fi | |
11918 | ||
11919 | if test $succeeded = yes; then | |
11920 | HAVE_DBUS=yes | |
11921 | else | |
11922 | HAVE_DBUS=no | |
11923 | fi | |
131e4133 MA |
11924 | |
11925 | if test "$HAVE_DBUS" = yes; then | |
11926 | ||
11927 | cat >>confdefs.h <<\_ACEOF | |
11928 | #define HAVE_DBUS 1 | |
11929 | _ACEOF | |
11930 | ||
131e4133 MA |
11931 | fi |
11932 | fi | |
11933 | ||
b3615392 | 11934 | HAVE_XAW3D=no |
991a7602 | 11935 | if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then |
f23d76bd MB |
11936 | if test "$with_xaw3d" != no; then |
11937 | { echo "$as_me:$LINENO: checking for xaw3d" >&5 | |
b3615392 | 11938 | echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; } |
f23d76bd | 11939 | if test "${emacs_cv_xaw3d+set}" = set; then |
98418dba CW |
11940 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11941 | else | |
11942 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
11943 | /* confdefs.h. */ |
11944 | _ACEOF | |
11945 | cat confdefs.h >>conftest.$ac_ext | |
11946 | cat >>conftest.$ac_ext <<_ACEOF | |
11947 | /* end confdefs.h. */ | |
98418dba CW |
11948 | |
11949 | #include <X11/Intrinsic.h> | |
b3615392 | 11950 | #include <X11/Xaw3d/Simple.h> |
98418dba CW |
11951 | int |
11952 | main () | |
11953 | { | |
11954 | ||
11955 | ; | |
11956 | return 0; | |
11957 | } | |
11958 | _ACEOF | |
11959 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
11960 | if { (ac_try="$ac_link" |
11961 | case "(($ac_try" in | |
11962 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11963 | *) ac_try_echo=$ac_try;; | |
11964 | esac | |
11965 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11966 | (eval "$ac_link") 2>conftest.er1 | |
98418dba | 11967 | ac_status=$? |
edfaf76d LK |
11968 | grep -v '^ *+' conftest.er1 >conftest.err |
11969 | rm -f conftest.er1 | |
11970 | cat conftest.err >&5 | |
c0d27fcc | 11971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
11972 | (exit $ac_status); } && { |
11973 | test -z "$ac_c_werror_flag" || | |
11974 | test ! -s conftest.err | |
11975 | } && test -s conftest$ac_exeext && | |
11976 | $as_test_x conftest$ac_exeext; then | |
b3615392 | 11977 | emacs_cv_xaw3d=yes |
98418dba CW |
11978 | else |
11979 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
11980 | sed 's/^/| /' conftest.$ac_ext >&5 |
11981 | ||
b3615392 | 11982 | emacs_cv_xaw3d=no |
98418dba | 11983 | fi |
ca81d7a0 | 11984 | |
f053c89f | 11985 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 11986 | conftest$ac_exeext conftest.$ac_ext |
98418dba CW |
11987 | fi |
11988 | ||
9d89ffd0 | 11989 | else |
f23d76bd | 11990 | emacs_cv_xaw3d=no |
9d89ffd0 | 11991 | fi |
f23d76bd MB |
11992 | if test $emacs_cv_xaw3d = yes; then |
11993 | { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5 | |
b3615392 | 11994 | echo "${ECHO_T}yes; using Lucid toolkit" >&6; } |
f23d76bd MB |
11995 | USE_X_TOOLKIT=LUCID |
11996 | HAVE_XAW3D=yes | |
9d89ffd0 | 11997 | |
b3615392 MB |
11998 | cat >>confdefs.h <<\_ACEOF |
11999 | #define HAVE_XAW3D 1 | |
12000 | _ACEOF | |
9d89ffd0 | 12001 | |
f23d76bd MB |
12002 | else |
12003 | { echo "$as_me:$LINENO: result: no" >&5 | |
9d89ffd0 | 12004 | echo "${ECHO_T}no" >&6; } |
f23d76bd | 12005 | { echo "$as_me:$LINENO: checking for libXaw" >&5 |
b3615392 | 12006 | echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; } |
f23d76bd | 12007 | if test "${emacs_cv_xaw+set}" = set; then |
9d89ffd0 | 12008 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9d89ffd0 | 12009 | else |
b3615392 | 12010 | cat >conftest.$ac_ext <<_ACEOF |
9d89ffd0 JD |
12011 | /* confdefs.h. */ |
12012 | _ACEOF | |
12013 | cat confdefs.h >>conftest.$ac_ext | |
12014 | cat >>conftest.$ac_ext <<_ACEOF | |
12015 | /* end confdefs.h. */ | |
b3615392 MB |
12016 | |
12017 | #include <X11/Intrinsic.h> | |
12018 | #include <X11/Xaw/Simple.h> | |
12019 | int | |
12020 | main () | |
12021 | { | |
12022 | ||
12023 | ; | |
12024 | return 0; | |
12025 | } | |
9d89ffd0 | 12026 | _ACEOF |
b3615392 MB |
12027 | rm -f conftest.$ac_objext conftest$ac_exeext |
12028 | if { (ac_try="$ac_link" | |
9d89ffd0 JD |
12029 | case "(($ac_try" in |
12030 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12031 | *) ac_try_echo=$ac_try;; | |
12032 | esac | |
12033 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
b3615392 | 12034 | (eval "$ac_link") 2>conftest.er1 |
9d89ffd0 JD |
12035 | ac_status=$? |
12036 | grep -v '^ *+' conftest.er1 >conftest.err | |
12037 | rm -f conftest.er1 | |
12038 | cat conftest.err >&5 | |
12039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12040 | (exit $ac_status); } && { | |
12041 | test -z "$ac_c_werror_flag" || | |
12042 | test ! -s conftest.err | |
b3615392 MB |
12043 | } && test -s conftest$ac_exeext && |
12044 | $as_test_x conftest$ac_exeext; then | |
12045 | emacs_cv_xaw=yes | |
9d89ffd0 JD |
12046 | else |
12047 | echo "$as_me: failed program was:" >&5 | |
12048 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12049 | ||
b3615392 | 12050 | emacs_cv_xaw=no |
9d89ffd0 JD |
12051 | fi |
12052 | ||
b3615392 MB |
12053 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
12054 | conftest$ac_exeext conftest.$ac_ext | |
12055 | fi | |
9d89ffd0 | 12056 | |
f23d76bd MB |
12057 | if test $emacs_cv_xaw = yes; then |
12058 | { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5 | |
b3615392 | 12059 | echo "${ECHO_T}yes; using Lucid toolkit" >&6; } |
f23d76bd MB |
12060 | USE_X_TOOLKIT=LUCID |
12061 | elif test x"${USE_X_TOOLKIT}" = xLUCID; then | |
12062 | { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5 | |
991a7602 MB |
12063 | echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;} |
12064 | { (exit 1); exit 1; }; } | |
f23d76bd MB |
12065 | else |
12066 | { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5 | |
b3615392 | 12067 | echo "${ECHO_T}no; do not use toolkit by default" >&6; } |
f23d76bd | 12068 | USE_X_TOOLKIT=none |
98418dba | 12069 | fi |
98418dba CW |
12070 | fi |
12071 | fi | |
12072 | ||
12073 | X_TOOLKIT_TYPE=$USE_X_TOOLKIT | |
12074 | ||
12075 | if test "${USE_X_TOOLKIT}" != "none"; then | |
ca81d7a0 JD |
12076 | { echo "$as_me:$LINENO: checking X11 toolkit version" >&5 |
12077 | echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; } | |
98418dba CW |
12078 | if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then |
12079 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12080 | else | |
12081 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
12082 | /* confdefs.h. */ |
12083 | _ACEOF | |
12084 | cat confdefs.h >>conftest.$ac_ext | |
12085 | cat >>conftest.$ac_ext <<_ACEOF | |
12086 | /* end confdefs.h. */ | |
98418dba | 12087 | #include <X11/Intrinsic.h> |
98418dba CW |
12088 | int |
12089 | main () | |
12090 | { | |
12091 | #if XtSpecificationRelease < 6 | |
12092 | fail; | |
12093 | #endif | |
12094 | ||
12095 | ; | |
12096 | return 0; | |
12097 | } | |
12098 | _ACEOF | |
12099 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
12100 | if { (ac_try="$ac_link" |
12101 | case "(($ac_try" in | |
12102 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12103 | *) ac_try_echo=$ac_try;; | |
12104 | esac | |
12105 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12106 | (eval "$ac_link") 2>conftest.er1 | |
98418dba | 12107 | ac_status=$? |
edfaf76d LK |
12108 | grep -v '^ *+' conftest.er1 >conftest.err |
12109 | rm -f conftest.er1 | |
12110 | cat conftest.err >&5 | |
c0d27fcc | 12111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
12112 | (exit $ac_status); } && { |
12113 | test -z "$ac_c_werror_flag" || | |
12114 | test ! -s conftest.err | |
12115 | } && test -s conftest$ac_exeext && | |
12116 | $as_test_x conftest$ac_exeext; then | |
98418dba CW |
12117 | emacs_cv_x11_toolkit_version_6=yes |
12118 | else | |
12119 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
12120 | sed 's/^/| /' conftest.$ac_ext >&5 |
12121 | ||
ca81d7a0 | 12122 | emacs_cv_x11_toolkit_version_6=no |
98418dba | 12123 | fi |
ca81d7a0 | 12124 | |
f053c89f | 12125 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 12126 | conftest$ac_exeext conftest.$ac_ext |
98418dba CW |
12127 | fi |
12128 | ||
12129 | HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6 | |
12130 | if test $emacs_cv_x11_toolkit_version_6 = yes; then | |
ca81d7a0 JD |
12131 | { echo "$as_me:$LINENO: result: 6 or newer" >&5 |
12132 | echo "${ECHO_T}6 or newer" >&6; } | |
b936fae4 | 12133 | |
c0d27fcc | 12134 | cat >>confdefs.h <<\_ACEOF |
98418dba | 12135 | #define HAVE_X11XTR6 1 |
c0d27fcc | 12136 | _ACEOF |
98418dba CW |
12137 | |
12138 | else | |
ca81d7a0 JD |
12139 | { echo "$as_me:$LINENO: result: before 6" >&5 |
12140 | echo "${ECHO_T}before 6" >&6; } | |
98418dba CW |
12141 | fi |
12142 | ||
12143 | OLDLIBS="$LIBS" | |
12144 | if test x$HAVE_X11XTR6 = xyes; then | |
12145 | LIBS="-lXt -lSM -lICE $LIBS" | |
12146 | else | |
12147 | LIBS="-lXt $LIBS" | |
12148 | fi | |
12149 | ||
ca81d7a0 JD |
12150 | { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5 |
12151 | echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; } | |
98418dba CW |
12152 | if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then |
12153 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12154 | else | |
12155 | ac_check_lib_save_LIBS=$LIBS | |
12156 | LIBS="-lXmu $LIBS" | |
12157 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
12158 | /* confdefs.h. */ |
12159 | _ACEOF | |
12160 | cat confdefs.h >>conftest.$ac_ext | |
12161 | cat >>conftest.$ac_ext <<_ACEOF | |
12162 | /* end confdefs.h. */ | |
98418dba | 12163 | |
ca81d7a0 JD |
12164 | /* Override any GCC internal prototype to avoid an error. |
12165 | Use char because int might match the return type of a GCC | |
12166 | builtin and then its argument prototype would still apply. */ | |
98418dba CW |
12167 | #ifdef __cplusplus |
12168 | extern "C" | |
12169 | #endif | |
98418dba | 12170 | char XmuConvertStandardSelection (); |
98418dba CW |
12171 | int |
12172 | main () | |
12173 | { | |
ca81d7a0 | 12174 | return XmuConvertStandardSelection (); |
98418dba CW |
12175 | ; |
12176 | return 0; | |
12177 | } | |
12178 | _ACEOF | |
12179 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
12180 | if { (ac_try="$ac_link" |
12181 | case "(($ac_try" in | |
12182 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12183 | *) ac_try_echo=$ac_try;; | |
12184 | esac | |
12185 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12186 | (eval "$ac_link") 2>conftest.er1 | |
98418dba | 12187 | ac_status=$? |
edfaf76d LK |
12188 | grep -v '^ *+' conftest.er1 >conftest.err |
12189 | rm -f conftest.er1 | |
12190 | cat conftest.err >&5 | |
c0d27fcc | 12191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
12192 | (exit $ac_status); } && { |
12193 | test -z "$ac_c_werror_flag" || | |
12194 | test ! -s conftest.err | |
12195 | } && test -s conftest$ac_exeext && | |
12196 | $as_test_x conftest$ac_exeext; then | |
98418dba CW |
12197 | ac_cv_lib_Xmu_XmuConvertStandardSelection=yes |
12198 | else | |
12199 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
12200 | sed 's/^/| /' conftest.$ac_ext >&5 |
12201 | ||
ca81d7a0 | 12202 | ac_cv_lib_Xmu_XmuConvertStandardSelection=no |
98418dba | 12203 | fi |
ca81d7a0 | 12204 | |
f053c89f | 12205 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 12206 | conftest$ac_exeext conftest.$ac_ext |
98418dba CW |
12207 | LIBS=$ac_check_lib_save_LIBS |
12208 | fi | |
ca81d7a0 JD |
12209 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5 |
12210 | echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; } | |
98418dba | 12211 | if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then |
c0d27fcc | 12212 | cat >>confdefs.h <<_ACEOF |
98418dba | 12213 | #define HAVE_LIBXMU 1 |
c0d27fcc | 12214 | _ACEOF |
98418dba CW |
12215 | |
12216 | LIBS="-lXmu $LIBS" | |
12217 | ||
12218 | fi | |
12219 | ||
12220 | test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS" | |
12221 | fi | |
12222 | ||
12223 | # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D. | |
12224 | if test "${HAVE_X11}" = "yes"; then | |
12225 | if test "${USE_X_TOOLKIT}" != "none"; then | |
12226 | ||
ca81d7a0 JD |
12227 | { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 |
12228 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; } | |
98418dba CW |
12229 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then |
12230 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12231 | else | |
12232 | ac_check_lib_save_LIBS=$LIBS | |
12233 | LIBS="-lXext $LIBS" | |
12234 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
12235 | /* confdefs.h. */ |
12236 | _ACEOF | |
12237 | cat confdefs.h >>conftest.$ac_ext | |
12238 | cat >>conftest.$ac_ext <<_ACEOF | |
12239 | /* end confdefs.h. */ | |
98418dba | 12240 | |
ca81d7a0 JD |
12241 | /* Override any GCC internal prototype to avoid an error. |
12242 | Use char because int might match the return type of a GCC | |
12243 | builtin and then its argument prototype would still apply. */ | |
98418dba CW |
12244 | #ifdef __cplusplus |
12245 | extern "C" | |
12246 | #endif | |
98418dba | 12247 | char XShapeQueryExtension (); |
98418dba CW |
12248 | int |
12249 | main () | |
12250 | { | |
ca81d7a0 | 12251 | return XShapeQueryExtension (); |
98418dba CW |
12252 | ; |
12253 | return 0; | |
12254 | } | |
12255 | _ACEOF | |
12256 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
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 | |
98418dba | 12264 | ac_status=$? |
edfaf76d LK |
12265 | grep -v '^ *+' conftest.er1 >conftest.err |
12266 | rm -f conftest.er1 | |
12267 | cat conftest.err >&5 | |
c0d27fcc | 12268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
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 | |
98418dba CW |
12274 | ac_cv_lib_Xext_XShapeQueryExtension=yes |
12275 | else | |
12276 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
12277 | sed 's/^/| /' conftest.$ac_ext >&5 |
12278 | ||
ca81d7a0 | 12279 | ac_cv_lib_Xext_XShapeQueryExtension=no |
98418dba | 12280 | fi |
ca81d7a0 | 12281 | |
f053c89f | 12282 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 12283 | conftest$ac_exeext conftest.$ac_ext |
98418dba CW |
12284 | LIBS=$ac_check_lib_save_LIBS |
12285 | fi | |
ca81d7a0 JD |
12286 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 |
12287 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; } | |
98418dba | 12288 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then |
c0d27fcc | 12289 | cat >>confdefs.h <<_ACEOF |
98418dba | 12290 | #define HAVE_LIBXEXT 1 |
c0d27fcc | 12291 | _ACEOF |
98418dba CW |
12292 | |
12293 | LIBS="-lXext $LIBS" | |
12294 | ||
12295 | fi | |
12296 | ||
12297 | fi | |
12298 | fi | |
12299 | ||
12300 | if test "${USE_X_TOOLKIT}" = "MOTIF"; then | |
ca81d7a0 JD |
12301 | { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5 |
12302 | echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; } | |
98418dba CW |
12303 | if test "${emacs_cv_motif_version_2_1+set}" = set; then |
12304 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12305 | else | |
12306 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
12307 | /* confdefs.h. */ |
12308 | _ACEOF | |
12309 | cat confdefs.h >>conftest.$ac_ext | |
12310 | cat >>conftest.$ac_ext <<_ACEOF | |
12311 | /* end confdefs.h. */ | |
98418dba | 12312 | #include <Xm/Xm.h> |
98418dba CW |
12313 | int |
12314 | main () | |
12315 | { | |
12316 | #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1) | |
12317 | int x = 5; | |
12318 | #else | |
12319 | Motif version prior to 2.1. | |
12320 | #endif | |
12321 | ; | |
12322 | return 0; | |
12323 | } | |
12324 | _ACEOF | |
12325 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
12326 | if { (ac_try="$ac_compile" |
12327 | case "(($ac_try" in | |
12328 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12329 | *) ac_try_echo=$ac_try;; | |
12330 | esac | |
12331 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12332 | (eval "$ac_compile") 2>conftest.er1 | |
98418dba | 12333 | ac_status=$? |
edfaf76d LK |
12334 | grep -v '^ *+' conftest.er1 >conftest.err |
12335 | rm -f conftest.er1 | |
12336 | cat conftest.err >&5 | |
c0d27fcc | 12337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
12338 | (exit $ac_status); } && { |
12339 | test -z "$ac_c_werror_flag" || | |
12340 | test ! -s conftest.err | |
12341 | } && test -s conftest.$ac_objext; then | |
98418dba CW |
12342 | emacs_cv_motif_version_2_1=yes |
12343 | else | |
12344 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
12345 | sed 's/^/| /' conftest.$ac_ext >&5 |
12346 | ||
ca81d7a0 | 12347 | emacs_cv_motif_version_2_1=no |
98418dba | 12348 | fi |
ca81d7a0 JD |
12349 | |
12350 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
98418dba | 12351 | fi |
ca81d7a0 JD |
12352 | { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5 |
12353 | echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; } | |
98418dba CW |
12354 | HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1 |
12355 | if test $emacs_cv_motif_version_2_1 = yes; then | |
12356 | HAVE_LIBXP=no | |
b936fae4 | 12357 | |
c0d27fcc | 12358 | cat >>confdefs.h <<\_ACEOF |
98418dba | 12359 | #define HAVE_MOTIF_2_1 1 |
c0d27fcc | 12360 | _ACEOF |
98418dba | 12361 | |
ca81d7a0 JD |
12362 | { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5 |
12363 | echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; } | |
98418dba CW |
12364 | if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then |
12365 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12366 | else | |
12367 | ac_check_lib_save_LIBS=$LIBS | |
12368 | LIBS="-lXp $LIBS" | |
12369 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
12370 | /* confdefs.h. */ |
12371 | _ACEOF | |
12372 | cat confdefs.h >>conftest.$ac_ext | |
12373 | cat >>conftest.$ac_ext <<_ACEOF | |
12374 | /* end confdefs.h. */ | |
98418dba | 12375 | |
ca81d7a0 JD |
12376 | /* Override any GCC internal prototype to avoid an error. |
12377 | Use char because int might match the return type of a GCC | |
12378 | builtin and then its argument prototype would still apply. */ | |
98418dba CW |
12379 | #ifdef __cplusplus |
12380 | extern "C" | |
12381 | #endif | |
98418dba | 12382 | char XpCreateContext (); |
98418dba CW |
12383 | int |
12384 | main () | |
12385 | { | |
ca81d7a0 | 12386 | return XpCreateContext (); |
98418dba CW |
12387 | ; |
12388 | return 0; | |
12389 | } | |
12390 | _ACEOF | |
12391 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
12392 | if { (ac_try="$ac_link" |
12393 | case "(($ac_try" in | |
12394 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12395 | *) ac_try_echo=$ac_try;; | |
12396 | esac | |
12397 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12398 | (eval "$ac_link") 2>conftest.er1 | |
98418dba | 12399 | ac_status=$? |
edfaf76d LK |
12400 | grep -v '^ *+' conftest.er1 >conftest.err |
12401 | rm -f conftest.er1 | |
12402 | cat conftest.err >&5 | |
c0d27fcc | 12403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
12404 | (exit $ac_status); } && { |
12405 | test -z "$ac_c_werror_flag" || | |
12406 | test ! -s conftest.err | |
12407 | } && test -s conftest$ac_exeext && | |
12408 | $as_test_x conftest$ac_exeext; then | |
98418dba CW |
12409 | ac_cv_lib_Xp_XpCreateContext=yes |
12410 | else | |
12411 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
12412 | sed 's/^/| /' conftest.$ac_ext >&5 |
12413 | ||
ca81d7a0 | 12414 | ac_cv_lib_Xp_XpCreateContext=no |
98418dba | 12415 | fi |
ca81d7a0 | 12416 | |
f053c89f | 12417 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 12418 | conftest$ac_exeext conftest.$ac_ext |
98418dba CW |
12419 | LIBS=$ac_check_lib_save_LIBS |
12420 | fi | |
ca81d7a0 JD |
12421 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5 |
12422 | echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; } | |
98418dba CW |
12423 | if test $ac_cv_lib_Xp_XpCreateContext = yes; then |
12424 | HAVE_LIBXP=yes | |
12425 | fi | |
503d2be0 | 12426 | |
98418dba | 12427 | if test ${HAVE_LIBXP} = yes; then |
b936fae4 | 12428 | |
c0d27fcc | 12429 | cat >>confdefs.h <<\_ACEOF |
98418dba | 12430 | #define HAVE_LIBXP 1 |
c0d27fcc | 12431 | _ACEOF |
503d2be0 | 12432 | |
98418dba | 12433 | fi |
4693dbc9 | 12434 | else |
ca81d7a0 JD |
12435 | { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5 |
12436 | echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; } | |
4693dbc9 SM |
12437 | if test "${emacs_cv_lesstif+set}" = set; then |
12438 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12439 | else | |
12440 | # We put this in CFLAGS temporarily to precede other -I options | |
12441 | # that might be in CFLAGS temporarily. | |
12442 | # We put this in CPPFLAGS where it precedes the other -I options. | |
12443 | OLD_CPPFLAGS=$CPPFLAGS | |
12444 | OLD_CFLAGS=$CFLAGS | |
12445 | CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS" | |
12446 | CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS" | |
12447 | cat >conftest.$ac_ext <<_ACEOF | |
12448 | /* confdefs.h. */ | |
12449 | _ACEOF | |
12450 | cat confdefs.h >>conftest.$ac_ext | |
12451 | cat >>conftest.$ac_ext <<_ACEOF | |
12452 | /* end confdefs.h. */ | |
12453 | #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h> | |
12454 | int | |
12455 | main () | |
12456 | { | |
12457 | int x = 5; | |
12458 | ; | |
12459 | return 0; | |
12460 | } | |
12461 | _ACEOF | |
12462 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
12463 | if { (ac_try="$ac_compile" |
12464 | case "(($ac_try" in | |
12465 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12466 | *) ac_try_echo=$ac_try;; | |
12467 | esac | |
12468 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12469 | (eval "$ac_compile") 2>conftest.er1 | |
4693dbc9 | 12470 | ac_status=$? |
edfaf76d LK |
12471 | grep -v '^ *+' conftest.er1 >conftest.err |
12472 | rm -f conftest.er1 | |
12473 | cat conftest.err >&5 | |
4693dbc9 | 12474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
12475 | (exit $ac_status); } && { |
12476 | test -z "$ac_c_werror_flag" || | |
12477 | test ! -s conftest.err | |
12478 | } && test -s conftest.$ac_objext; then | |
4693dbc9 SM |
12479 | emacs_cv_lesstif=yes |
12480 | else | |
12481 | echo "$as_me: failed program was:" >&5 | |
12482 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12483 | ||
ca81d7a0 | 12484 | emacs_cv_lesstif=no |
4693dbc9 | 12485 | fi |
ca81d7a0 JD |
12486 | |
12487 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4693dbc9 | 12488 | fi |
ca81d7a0 JD |
12489 | { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5 |
12490 | echo "${ECHO_T}$emacs_cv_lesstif" >&6; } | |
4693dbc9 SM |
12491 | if test $emacs_cv_lesstif = yes; then |
12492 | # Make sure this -I option remains in CPPFLAGS after it is set | |
12493 | # back to REAL_CPPFLAGS. | |
12494 | # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not | |
12495 | # have those other -I options anyway. Ultimately, having this | |
12496 | # directory ultimately in CPPFLAGS will be enough. | |
12497 | REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS" | |
12498 | LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS" | |
12499 | else | |
12500 | CFLAGS=$OLD_CFLAGS | |
12501 | CPPFLAGS=$OLD_CPPFLAGS | |
12502 | fi | |
98418dba CW |
12503 | fi |
12504 | fi | |
12505 | ||
c0d27fcc MR |
12506 | |
12507 | ||
98418dba CW |
12508 | USE_TOOLKIT_SCROLL_BARS=no |
12509 | if test "${with_toolkit_scroll_bars}" != "no"; then | |
12510 | if test "${USE_X_TOOLKIT}" != "none"; then | |
12511 | if test "${USE_X_TOOLKIT}" = "MOTIF"; then | |
c0d27fcc | 12512 | cat >>confdefs.h <<\_ACEOF |
98418dba | 12513 | #define USE_TOOLKIT_SCROLL_BARS 1 |
c0d27fcc | 12514 | _ACEOF |
98418dba CW |
12515 | |
12516 | HAVE_XAW3D=no | |
12517 | USE_TOOLKIT_SCROLL_BARS=yes | |
12518 | elif test "${HAVE_XAW3D}" = "yes"; then | |
c0d27fcc | 12519 | cat >>confdefs.h <<\_ACEOF |
98418dba | 12520 | #define USE_TOOLKIT_SCROLL_BARS 1 |
c0d27fcc | 12521 | _ACEOF |
98418dba CW |
12522 | |
12523 | USE_TOOLKIT_SCROLL_BARS=yes | |
ba4481b5 | 12524 | fi |
488dd4c4 JD |
12525 | elif test "${HAVE_GTK}" = "yes"; then |
12526 | cat >>confdefs.h <<\_ACEOF | |
12527 | #define USE_TOOLKIT_SCROLL_BARS 1 | |
5d6da11e YM |
12528 | _ACEOF |
12529 | ||
12530 | USE_TOOLKIT_SCROLL_BARS=yes | |
12531 | elif test "${HAVE_CARBON}" = "yes"; then | |
12532 | cat >>confdefs.h <<\_ACEOF | |
12533 | #define USE_TOOLKIT_SCROLL_BARS 1 | |
488dd4c4 JD |
12534 | _ACEOF |
12535 | ||
12536 | USE_TOOLKIT_SCROLL_BARS=yes | |
ba4481b5 DL |
12537 | fi |
12538 | fi | |
12539 | ||
abd39b57 | 12540 | cat >conftest.$ac_ext <<_ACEOF |
abd39b57 AC |
12541 | /* confdefs.h. */ |
12542 | _ACEOF | |
12543 | cat confdefs.h >>conftest.$ac_ext | |
12544 | cat >>conftest.$ac_ext <<_ACEOF | |
12545 | /* end confdefs.h. */ | |
12546 | ||
12547 | #include <X11/Xlib.h> | |
12548 | #include <X11/Xresource.h> | |
12549 | int | |
12550 | main () | |
12551 | { | |
12552 | XIMProc callback; | |
12553 | ; | |
12554 | return 0; | |
12555 | } | |
12556 | _ACEOF | |
12557 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
12558 | if { (ac_try="$ac_compile" |
12559 | case "(($ac_try" in | |
12560 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12561 | *) ac_try_echo=$ac_try;; | |
12562 | esac | |
12563 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12564 | (eval "$ac_compile") 2>conftest.er1 | |
abd39b57 | 12565 | ac_status=$? |
edfaf76d LK |
12566 | grep -v '^ *+' conftest.er1 >conftest.err |
12567 | rm -f conftest.er1 | |
12568 | cat conftest.err >&5 | |
abd39b57 | 12569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
12570 | (exit $ac_status); } && { |
12571 | test -z "$ac_c_werror_flag" || | |
12572 | test ! -s conftest.err | |
12573 | } && test -s conftest.$ac_objext; then | |
abd39b57 AC |
12574 | HAVE_XIM=yes |
12575 | ||
12576 | cat >>confdefs.h <<\_ACEOF | |
12577 | #define HAVE_XIM 1 | |
12578 | _ACEOF | |
12579 | ||
12580 | else | |
12581 | echo "$as_me: failed program was:" >&5 | |
12582 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12583 | ||
ca81d7a0 | 12584 | HAVE_XIM=no |
abd39b57 | 12585 | fi |
ca81d7a0 JD |
12586 | |
12587 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
abd39b57 | 12588 | |
c0d27fcc | 12589 | |
98418dba | 12590 | if test "${with_xim}" != "no"; then |
b936fae4 | 12591 | |
c0d27fcc | 12592 | cat >>confdefs.h <<\_ACEOF |
98418dba | 12593 | #define USE_XIM 1 |
c0d27fcc | 12594 | _ACEOF |
98418dba | 12595 | |
793fa0d7 | 12596 | fi |
abd39b57 AC |
12597 | |
12598 | ||
12599 | if test "${HAVE_XIM}" != "no"; then | |
849d80cf DL |
12600 | late_CFLAGS=$CFLAGS |
12601 | if test "$GCC" = yes; then | |
12602 | CFLAGS="$CFLAGS --pedantic-errors" | |
12603 | fi | |
cffcede7 | 12604 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
12605 | /* confdefs.h. */ |
12606 | _ACEOF | |
12607 | cat confdefs.h >>conftest.$ac_ext | |
12608 | cat >>conftest.$ac_ext <<_ACEOF | |
12609 | /* end confdefs.h. */ | |
cffcede7 JD |
12610 | |
12611 | #include <X11/Xlib.h> | |
12612 | #include <X11/Xresource.h> | |
12613 | int | |
12614 | main () | |
12615 | { | |
12616 | Display *display; | |
12617 | XrmDatabase db; | |
12618 | char *res_name; | |
12619 | char *res_class; | |
12620 | XIMProc callback; | |
12621 | XPointer *client_data; | |
849d80cf DL |
12622 | #ifndef __GNUC__ |
12623 | /* If we're not using GCC, it's probably not XFree86, and this is | |
12624 | probably right, but we can't use something like --pedantic-errors. */ | |
12625 | extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*, | |
12626 | char*, XIMProc, XPointer*); | |
12627 | #endif | |
cffcede7 JD |
12628 | (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback, |
12629 | client_data); | |
12630 | ; | |
12631 | return 0; | |
12632 | } | |
12633 | _ACEOF | |
12634 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
12635 | if { (ac_try="$ac_compile" |
12636 | case "(($ac_try" in | |
12637 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12638 | *) ac_try_echo=$ac_try;; | |
12639 | esac | |
12640 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12641 | (eval "$ac_compile") 2>conftest.er1 | |
cffcede7 | 12642 | ac_status=$? |
edfaf76d LK |
12643 | grep -v '^ *+' conftest.er1 >conftest.err |
12644 | rm -f conftest.er1 | |
12645 | cat conftest.err >&5 | |
cffcede7 | 12646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
12647 | (exit $ac_status); } && { |
12648 | test -z "$ac_c_werror_flag" || | |
12649 | test ! -s conftest.err | |
12650 | } && test -s conftest.$ac_objext; then | |
cffcede7 JD |
12651 | emacs_cv_arg6_star=yes |
12652 | else | |
12653 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
12654 | sed 's/^/| /' conftest.$ac_ext >&5 |
12655 | ||
ca81d7a0 | 12656 | |
cffcede7 | 12657 | fi |
ca81d7a0 JD |
12658 | |
12659 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
cffcede7 JD |
12660 | |
12661 | if test "$emacs_cv_arg6_star" = yes; then | |
f57bd967 | 12662 | cat >>confdefs.h <<\_ACEOF |
cffcede7 JD |
12663 | #define XRegisterIMInstantiateCallback_arg6 XPointer* |
12664 | _ACEOF | |
12665 | ||
12666 | else | |
f57bd967 | 12667 | cat >>confdefs.h <<\_ACEOF |
cffcede7 JD |
12668 | #define XRegisterIMInstantiateCallback_arg6 XPointer |
12669 | _ACEOF | |
12670 | ||
12671 | fi | |
849d80cf | 12672 | CFLAGS=$late_CFLAGS |
45a4b03e KH |
12673 | fi |
12674 | ||
77dfeef5 GM |
12675 | ### Start of font-backend section. |
12676 | if test "${HAVE_X11}" != "yes"; then | |
12677 | USE_FONT_BACKEND=no | |
12678 | fi | |
45a4b03e | 12679 | |
77dfeef5 | 12680 | if test "${USE_FONT_BACKEND}" = "yes"; then |
45a4b03e KH |
12681 | |
12682 | cat >>confdefs.h <<\_ACEOF | |
12683 | #define USE_FONT_BACKEND 1 | |
12684 | _ACEOF | |
12685 | ||
12686 | ||
77dfeef5 GM |
12687 | ## Use -lXft if available, unless `--with-freetype=no' nor `--with-xft=no'. |
12688 | HAVE_XFT=maybe | |
45a4b03e KH |
12689 | if test "x${with_freetype}" = "xno"; then |
12690 | with_xft="no"; | |
12691 | fi | |
12692 | if test "x${with_xft}" != "xno"; then | |
12693 | ||
45a4b03e KH |
12694 | |
12695 | succeeded=no | |
12696 | ||
d235ca2f | 12697 | # Extract the first word of "pkg-config", so it can be a program name with args. |
45a4b03e | 12698 | set dummy pkg-config; ac_word=$2 |
c24fa7dc MB |
12699 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
12700 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
45a4b03e KH |
12701 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
12702 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12703 | else | |
12704 | case $PKG_CONFIG in | |
12705 | [\\/]* | ?:[\\/]*) | |
12706 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
12707 | ;; | |
12708 | *) | |
12709 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12710 | for as_dir in $PATH | |
12711 | do | |
12712 | IFS=$as_save_IFS | |
12713 | test -z "$as_dir" && as_dir=. | |
12714 | for ac_exec_ext in '' $ac_executable_extensions; do | |
c24fa7dc | 12715 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
45a4b03e KH |
12716 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
12717 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12718 | break 2 | |
12719 | fi | |
12720 | done | |
12721 | done | |
c24fa7dc | 12722 | IFS=$as_save_IFS |
45a4b03e KH |
12723 | |
12724 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
12725 | ;; | |
12726 | esac | |
12727 | fi | |
12728 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
45a4b03e | 12729 | if test -n "$PKG_CONFIG"; then |
c24fa7dc MB |
12730 | { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
12731 | echo "${ECHO_T}$PKG_CONFIG" >&6; } | |
45a4b03e | 12732 | else |
c24fa7dc MB |
12733 | { echo "$as_me:$LINENO: result: no" >&5 |
12734 | echo "${ECHO_T}no" >&6; } | |
45a4b03e KH |
12735 | fi |
12736 | ||
c24fa7dc | 12737 | |
45a4b03e KH |
12738 | |
12739 | if test "$PKG_CONFIG" = "no" ; then | |
c24fa7dc | 12740 | HAVE_XFT=no |
45a4b03e KH |
12741 | else |
12742 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
12743 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
c24fa7dc MB |
12744 | { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5 |
12745 | echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; } | |
45a4b03e | 12746 | |
c24fa7dc MB |
12747 | if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then |
12748 | { echo "$as_me:$LINENO: result: yes" >&5 | |
12749 | echo "${ECHO_T}yes" >&6; } | |
45a4b03e KH |
12750 | succeeded=yes |
12751 | ||
c24fa7dc MB |
12752 | { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5 |
12753 | echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; } | |
18c36727 | 12754 | XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'` |
c24fa7dc MB |
12755 | { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5 |
12756 | echo "${ECHO_T}$XFT_CFLAGS" >&6; } | |
45a4b03e | 12757 | |
c24fa7dc MB |
12758 | { echo "$as_me:$LINENO: checking XFT_LIBS" >&5 |
12759 | echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; } | |
18c36727 | 12760 | XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'` |
c24fa7dc MB |
12761 | { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5 |
12762 | echo "${ECHO_T}$XFT_LIBS" >&6; } | |
45a4b03e | 12763 | else |
c24fa7dc MB |
12764 | { echo "$as_me:$LINENO: result: no" >&5 |
12765 | echo "${ECHO_T}no" >&6; } | |
45a4b03e KH |
12766 | XFT_CFLAGS="" |
12767 | XFT_LIBS="" | |
12768 | ## If we have a custom action on failure, don't print errors, but | |
12769 | ## do set a variable so people can do so. | |
12770 | XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"` | |
12771 | ||
12772 | fi | |
12773 | ||
12774 | ||
12775 | ||
12776 | else | |
12777 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
12778 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
12779 | fi | |
12780 | fi | |
12781 | ||
12782 | if test $succeeded = yes; then | |
12783 | : | |
12784 | else | |
12785 | HAVE_XFT=no | |
12786 | fi | |
12787 | ||
12788 | if test "$HAVE_XFT" != no; then | |
12789 | OLD_CPPFLAGS="$CPPFLAGS" | |
12790 | OLD_CFLAGS="$CFLAGS" | |
12791 | OLD_LIBS="$LIBS" | |
12792 | CPPFLAGS="$CPPFLAGS $XFT_CFLAGS" | |
12793 | CFLAGS="$CFLAGS $XFT_CFLAGS" | |
12794 | LIBS="$XFT_LIBS $LIBS" | |
12795 | if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then | |
c24fa7dc MB |
12796 | { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5 |
12797 | echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; } | |
45a4b03e KH |
12798 | if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then |
12799 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12800 | fi | |
c24fa7dc MB |
12801 | { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5 |
12802 | echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; } | |
45a4b03e KH |
12803 | else |
12804 | # Is the header compilable? | |
c24fa7dc MB |
12805 | { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5 |
12806 | echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; } | |
45a4b03e KH |
12807 | cat >conftest.$ac_ext <<_ACEOF |
12808 | /* confdefs.h. */ | |
12809 | _ACEOF | |
12810 | cat confdefs.h >>conftest.$ac_ext | |
12811 | cat >>conftest.$ac_ext <<_ACEOF | |
12812 | /* end confdefs.h. */ | |
12813 | $ac_includes_default | |
12814 | #include <X11/Xft/Xft.h> | |
12815 | _ACEOF | |
12816 | rm -f conftest.$ac_objext | |
c24fa7dc MB |
12817 | if { (ac_try="$ac_compile" |
12818 | case "(($ac_try" in | |
12819 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12820 | *) ac_try_echo=$ac_try;; | |
12821 | esac | |
12822 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12823 | (eval "$ac_compile") 2>conftest.er1 | |
45a4b03e KH |
12824 | ac_status=$? |
12825 | grep -v '^ *+' conftest.er1 >conftest.err | |
12826 | rm -f conftest.er1 | |
12827 | cat conftest.err >&5 | |
12828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
c24fa7dc MB |
12829 | (exit $ac_status); } && { |
12830 | test -z "$ac_c_werror_flag" || | |
12831 | test ! -s conftest.err | |
12832 | } && test -s conftest.$ac_objext; then | |
45a4b03e KH |
12833 | ac_header_compiler=yes |
12834 | else | |
12835 | echo "$as_me: failed program was:" >&5 | |
12836 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12837 | ||
c24fa7dc | 12838 | ac_header_compiler=no |
45a4b03e | 12839 | fi |
c24fa7dc MB |
12840 | |
12841 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12842 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12843 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
45a4b03e KH |
12844 | |
12845 | # Is the header present? | |
c24fa7dc MB |
12846 | { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5 |
12847 | echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; } | |
45a4b03e KH |
12848 | cat >conftest.$ac_ext <<_ACEOF |
12849 | /* confdefs.h. */ | |
12850 | _ACEOF | |
12851 | cat confdefs.h >>conftest.$ac_ext | |
12852 | cat >>conftest.$ac_ext <<_ACEOF | |
12853 | /* end confdefs.h. */ | |
12854 | #include <X11/Xft/Xft.h> | |
12855 | _ACEOF | |
c24fa7dc MB |
12856 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
12857 | case "(($ac_try" in | |
12858 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12859 | *) ac_try_echo=$ac_try;; | |
12860 | esac | |
12861 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12862 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
45a4b03e KH |
12863 | ac_status=$? |
12864 | grep -v '^ *+' conftest.er1 >conftest.err | |
12865 | rm -f conftest.er1 | |
12866 | cat conftest.err >&5 | |
12867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
c24fa7dc MB |
12868 | (exit $ac_status); } >/dev/null && { |
12869 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
12870 | test ! -s conftest.err | |
12871 | }; then | |
45a4b03e KH |
12872 | ac_header_preproc=yes |
12873 | else | |
12874 | echo "$as_me: failed program was:" >&5 | |
12875 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12876 | ||
12877 | ac_header_preproc=no | |
12878 | fi | |
c24fa7dc | 12879 | |
45a4b03e | 12880 | rm -f conftest.err conftest.$ac_ext |
c24fa7dc MB |
12881 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
12882 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
45a4b03e KH |
12883 | |
12884 | # So? What about this header? | |
12885 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12886 | yes:no: ) | |
12887 | { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12888 | echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12889 | { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5 | |
12890 | echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;} | |
12891 | ac_header_preproc=yes | |
12892 | ;; | |
12893 | no:yes:* ) | |
12894 | { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5 | |
12895 | echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;} | |
12896 | { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5 | |
12897 | echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;} | |
12898 | { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5 | |
12899 | echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;} | |
12900 | { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5 | |
12901 | echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
12902 | { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5 | |
12903 | echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;} | |
12904 | { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5 | |
12905 | echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;} | |
c24fa7dc | 12906 | |
45a4b03e KH |
12907 | ;; |
12908 | esac | |
c24fa7dc MB |
12909 | { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5 |
12910 | echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; } | |
45a4b03e KH |
12911 | if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then |
12912 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12913 | else | |
12914 | ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc | |
12915 | fi | |
c24fa7dc MB |
12916 | { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5 |
12917 | echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; } | |
45a4b03e KH |
12918 | |
12919 | fi | |
12920 | if test $ac_cv_header_X11_Xft_Xft_h = yes; then | |
c24fa7dc MB |
12921 | { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5 |
12922 | echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; } | |
45a4b03e KH |
12923 | if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then |
12924 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12925 | else | |
12926 | ac_check_lib_save_LIBS=$LIBS | |
12927 | LIBS="-lXft $XFT_LIBS $LIBS" | |
12928 | cat >conftest.$ac_ext <<_ACEOF | |
12929 | /* confdefs.h. */ | |
12930 | _ACEOF | |
12931 | cat confdefs.h >>conftest.$ac_ext | |
12932 | cat >>conftest.$ac_ext <<_ACEOF | |
12933 | /* end confdefs.h. */ | |
12934 | ||
c24fa7dc MB |
12935 | /* Override any GCC internal prototype to avoid an error. |
12936 | Use char because int might match the return type of a GCC | |
12937 | builtin and then its argument prototype would still apply. */ | |
45a4b03e KH |
12938 | #ifdef __cplusplus |
12939 | extern "C" | |
12940 | #endif | |
45a4b03e KH |
12941 | char XftFontOpen (); |
12942 | int | |
12943 | main () | |
12944 | { | |
c24fa7dc | 12945 | return XftFontOpen (); |
45a4b03e KH |
12946 | ; |
12947 | return 0; | |
12948 | } | |
12949 | _ACEOF | |
12950 | rm -f conftest.$ac_objext conftest$ac_exeext | |
c24fa7dc MB |
12951 | if { (ac_try="$ac_link" |
12952 | case "(($ac_try" in | |
12953 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12954 | *) ac_try_echo=$ac_try;; | |
12955 | esac | |
12956 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12957 | (eval "$ac_link") 2>conftest.er1 | |
45a4b03e KH |
12958 | ac_status=$? |
12959 | grep -v '^ *+' conftest.er1 >conftest.err | |
12960 | rm -f conftest.er1 | |
12961 | cat conftest.err >&5 | |
12962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
c24fa7dc MB |
12963 | (exit $ac_status); } && { |
12964 | test -z "$ac_c_werror_flag" || | |
12965 | test ! -s conftest.err | |
12966 | } && test -s conftest$ac_exeext && | |
12967 | $as_test_x conftest$ac_exeext; then | |
45a4b03e KH |
12968 | ac_cv_lib_Xft_XftFontOpen=yes |
12969 | else | |
12970 | echo "$as_me: failed program was:" >&5 | |
12971 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12972 | ||
c24fa7dc | 12973 | ac_cv_lib_Xft_XftFontOpen=no |
45a4b03e | 12974 | fi |
c24fa7dc MB |
12975 | |
12976 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
45a4b03e KH |
12977 | conftest$ac_exeext conftest.$ac_ext |
12978 | LIBS=$ac_check_lib_save_LIBS | |
12979 | fi | |
c24fa7dc MB |
12980 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5 |
12981 | echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; } | |
45a4b03e KH |
12982 | if test $ac_cv_lib_Xft_XftFontOpen = yes; then |
12983 | HAVE_XFT=yes | |
12984 | fi | |
12985 | ||
12986 | fi | |
12987 | ||
12988 | ||
12989 | ||
12990 | if test "${HAVE_XFT}" = "yes"; then | |
12991 | ||
12992 | cat >>confdefs.h <<\_ACEOF | |
12993 | #define HAVE_XFT 1 | |
12994 | _ACEOF | |
12995 | ||
12996 | ||
12997 | C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS" | |
12998 | else | |
e70b2110 | 12999 | CPPFLAGS="$OLD_CPPFLAGS" |
45a4b03e KH |
13000 | CFLAGS="$OLD_CFLAGS" |
13001 | LIBS="$OLD_LIBS" | |
77dfeef5 GM |
13002 | fi # "${HAVE_XFT}" = "yes" |
13003 | fi # "$HAVE_XFT" != no | |
13004 | fi # "x${with_xft}" != "xno" | |
13005 | ||
13006 | if test "$HAVE_XFT" != "yes"; then | |
13007 | HAVE_XFT=no | |
45a4b03e | 13008 | fi |
2ee27f27 | 13009 | |
45a4b03e | 13010 | |
77dfeef5 GM |
13011 | HAVE_FREETYPE=no |
13012 | ### Use -lfreetype if available, unless `--with-freetype=no'. | |
13013 | if test "${HAVE_XFT}" = "yes"; then | |
13014 | HAVE_FREETYPE=yes | |
13015 | elif test "x${with_freetype}" != "xno"; then | |
45a4b03e | 13016 | |
d235ca2f | 13017 | |
45a4b03e KH |
13018 | succeeded=no |
13019 | ||
d235ca2f | 13020 | # Extract the first word of "pkg-config", so it can be a program name with args. |
45a4b03e | 13021 | set dummy pkg-config; ac_word=$2 |
c24fa7dc MB |
13022 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
13023 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
45a4b03e KH |
13024 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
13025 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13026 | else | |
13027 | case $PKG_CONFIG in | |
13028 | [\\/]* | ?:[\\/]*) | |
13029 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
13030 | ;; | |
13031 | *) | |
13032 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13033 | for as_dir in $PATH | |
13034 | do | |
13035 | IFS=$as_save_IFS | |
13036 | test -z "$as_dir" && as_dir=. | |
13037 | for ac_exec_ext in '' $ac_executable_extensions; do | |
c24fa7dc | 13038 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
45a4b03e KH |
13039 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
13040 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13041 | break 2 | |
13042 | fi | |
13043 | done | |
13044 | done | |
c24fa7dc | 13045 | IFS=$as_save_IFS |
45a4b03e KH |
13046 | |
13047 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
13048 | ;; | |
13049 | esac | |
13050 | fi | |
13051 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
45a4b03e | 13052 | if test -n "$PKG_CONFIG"; then |
c24fa7dc MB |
13053 | { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
13054 | echo "${ECHO_T}$PKG_CONFIG" >&6; } | |
45a4b03e | 13055 | else |
c24fa7dc MB |
13056 | { echo "$as_me:$LINENO: result: no" >&5 |
13057 | echo "${ECHO_T}no" >&6; } | |
45a4b03e KH |
13058 | fi |
13059 | ||
c24fa7dc | 13060 | |
45a4b03e KH |
13061 | |
13062 | if test "$PKG_CONFIG" = "no" ; then | |
c24fa7dc | 13063 | HAVE_FREETYPE=no |
45a4b03e KH |
13064 | else |
13065 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
13066 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
c24fa7dc MB |
13067 | { echo "$as_me:$LINENO: checking for freetype2" >&5 |
13068 | echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; } | |
45a4b03e | 13069 | |
c24fa7dc MB |
13070 | if $PKG_CONFIG --exists "freetype2" 2>&5; then |
13071 | { echo "$as_me:$LINENO: result: yes" >&5 | |
13072 | echo "${ECHO_T}yes" >&6; } | |
45a4b03e KH |
13073 | succeeded=yes |
13074 | ||
c24fa7dc MB |
13075 | { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5 |
13076 | echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; } | |
991a7602 | 13077 | FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'` |
c24fa7dc MB |
13078 | { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5 |
13079 | echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; } | |
45a4b03e | 13080 | |
c24fa7dc MB |
13081 | { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5 |
13082 | echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; } | |
991a7602 | 13083 | FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'` |
c24fa7dc MB |
13084 | { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5 |
13085 | echo "${ECHO_T}$FREETYPE_LIBS" >&6; } | |
45a4b03e | 13086 | else |
c24fa7dc MB |
13087 | { echo "$as_me:$LINENO: result: no" >&5 |
13088 | echo "${ECHO_T}no" >&6; } | |
45a4b03e KH |
13089 | FREETYPE_CFLAGS="" |
13090 | FREETYPE_LIBS="" | |
13091 | ## If we have a custom action on failure, don't print errors, but | |
13092 | ## do set a variable so people can do so. | |
13093 | FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"` | |
13094 | ||
13095 | fi | |
13096 | ||
13097 | ||
13098 | ||
13099 | else | |
13100 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
13101 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
13102 | fi | |
13103 | fi | |
13104 | ||
13105 | if test $succeeded = yes; then | |
13106 | HAVE_FREETYPE=yes | |
13107 | else | |
13108 | HAVE_FREETYPE=no | |
13109 | fi | |
13110 | ||
77dfeef5 | 13111 | if test "${HAVE_FREETYPE}" = "yes"; then |
45a4b03e KH |
13112 | |
13113 | succeeded=no | |
13114 | ||
d235ca2f | 13115 | # Extract the first word of "pkg-config", so it can be a program name with args. |
45a4b03e | 13116 | set dummy pkg-config; ac_word=$2 |
c24fa7dc MB |
13117 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
13118 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
45a4b03e KH |
13119 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
13120 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13121 | else | |
13122 | case $PKG_CONFIG in | |
13123 | [\\/]* | ?:[\\/]*) | |
13124 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
13125 | ;; | |
13126 | *) | |
13127 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13128 | for as_dir in $PATH | |
13129 | do | |
13130 | IFS=$as_save_IFS | |
13131 | test -z "$as_dir" && as_dir=. | |
13132 | for ac_exec_ext in '' $ac_executable_extensions; do | |
c24fa7dc | 13133 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
45a4b03e KH |
13134 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
13135 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13136 | break 2 | |
13137 | fi | |
13138 | done | |
13139 | done | |
c24fa7dc | 13140 | IFS=$as_save_IFS |
45a4b03e KH |
13141 | |
13142 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
13143 | ;; | |
13144 | esac | |
13145 | fi | |
13146 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
45a4b03e | 13147 | if test -n "$PKG_CONFIG"; then |
c24fa7dc MB |
13148 | { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
13149 | echo "${ECHO_T}$PKG_CONFIG" >&6; } | |
45a4b03e | 13150 | else |
c24fa7dc MB |
13151 | { echo "$as_me:$LINENO: result: no" >&5 |
13152 | echo "${ECHO_T}no" >&6; } | |
45a4b03e KH |
13153 | fi |
13154 | ||
c24fa7dc | 13155 | |
45a4b03e KH |
13156 | |
13157 | if test "$PKG_CONFIG" = "no" ; then | |
c24fa7dc | 13158 | HAVE_FC=no |
45a4b03e KH |
13159 | else |
13160 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
13161 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
c24fa7dc MB |
13162 | { echo "$as_me:$LINENO: checking for fontconfig" >&5 |
13163 | echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6; } | |
45a4b03e | 13164 | |
c24fa7dc MB |
13165 | if $PKG_CONFIG --exists "fontconfig" 2>&5; then |
13166 | { echo "$as_me:$LINENO: result: yes" >&5 | |
13167 | echo "${ECHO_T}yes" >&6; } | |
45a4b03e KH |
13168 | succeeded=yes |
13169 | ||
c24fa7dc MB |
13170 | { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5 |
13171 | echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; } | |
991a7602 | 13172 | FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig"|sed -e 's,///*,/,g'` |
c24fa7dc MB |
13173 | { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5 |
13174 | echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; } | |
45a4b03e | 13175 | |
c24fa7dc MB |
13176 | { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5 |
13177 | echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; } | |
991a7602 | 13178 | FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig"|sed -e 's,///*,/,g'` |
c24fa7dc MB |
13179 | { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5 |
13180 | echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; } | |
45a4b03e | 13181 | else |
c24fa7dc MB |
13182 | { echo "$as_me:$LINENO: result: no" >&5 |
13183 | echo "${ECHO_T}no" >&6; } | |
45a4b03e KH |
13184 | FONTCONFIG_CFLAGS="" |
13185 | FONTCONFIG_LIBS="" | |
13186 | ## If we have a custom action on failure, don't print errors, but | |
13187 | ## do set a variable so people can do so. | |
13188 | FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"` | |
13189 | ||
13190 | fi | |
13191 | ||
13192 | ||
13193 | ||
13194 | else | |
13195 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
13196 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
13197 | fi | |
13198 | fi | |
13199 | ||
13200 | if test $succeeded = yes; then | |
13201 | HAVE_FC=yes | |
13202 | else | |
13203 | HAVE_FC=no | |
13204 | fi | |
13205 | ||
77dfeef5 GM |
13206 | if test "${HAVE_FC}" = "no"; then |
13207 | HAVE_FREETYPE=no | |
13208 | fi | |
45a4b03e KH |
13209 | fi |
13210 | fi | |
e70b2110 | 13211 | |
77dfeef5 GM |
13212 | HAVE_LIBOTF=no |
13213 | if test "${HAVE_FREETYPE}" = "yes"; then | |
45a4b03e KH |
13214 | |
13215 | cat >>confdefs.h <<\_ACEOF | |
13216 | #define HAVE_FREETYPE 1 | |
13217 | _ACEOF | |
13218 | ||
77dfeef5 | 13219 | if test "${with_libotf}" != "no"; then |
e70b2110 KH |
13220 | |
13221 | succeeded=no | |
13222 | ||
d235ca2f | 13223 | # Extract the first word of "pkg-config", so it can be a program name with args. |
e70b2110 | 13224 | set dummy pkg-config; ac_word=$2 |
c24fa7dc MB |
13225 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
13226 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
e70b2110 | 13227 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
45a4b03e KH |
13228 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13229 | else | |
e70b2110 KH |
13230 | case $PKG_CONFIG in |
13231 | [\\/]* | ?:[\\/]*) | |
13232 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
13233 | ;; | |
13234 | *) | |
13235 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45a4b03e KH |
13236 | for as_dir in $PATH |
13237 | do | |
13238 | IFS=$as_save_IFS | |
13239 | test -z "$as_dir" && as_dir=. | |
13240 | for ac_exec_ext in '' $ac_executable_extensions; do | |
c24fa7dc | 13241 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
e70b2110 | 13242 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
45a4b03e KH |
13243 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
13244 | break 2 | |
13245 | fi | |
13246 | done | |
13247 | done | |
c24fa7dc | 13248 | IFS=$as_save_IFS |
45a4b03e | 13249 | |
e70b2110 KH |
13250 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
13251 | ;; | |
13252 | esac | |
45a4b03e | 13253 | fi |
e70b2110 KH |
13254 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
13255 | if test -n "$PKG_CONFIG"; then | |
13256 | { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
13257 | echo "${ECHO_T}$PKG_CONFIG" >&6; } | |
45a4b03e | 13258 | else |
c24fa7dc MB |
13259 | { echo "$as_me:$LINENO: result: no" >&5 |
13260 | echo "${ECHO_T}no" >&6; } | |
45a4b03e KH |
13261 | fi |
13262 | ||
c24fa7dc | 13263 | |
45a4b03e | 13264 | |
e70b2110 | 13265 | if test "$PKG_CONFIG" = "no" ; then |
435f8bc5 | 13266 | HAVE_LIBOTF=no |
e70b2110 KH |
13267 | else |
13268 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
13269 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
13270 | { echo "$as_me:$LINENO: checking for libotf" >&5 | |
13271 | echo $ECHO_N "checking for libotf... $ECHO_C" >&6; } | |
6ed29d7b | 13272 | |
e70b2110 KH |
13273 | if $PKG_CONFIG --exists "libotf" 2>&5; then |
13274 | { echo "$as_me:$LINENO: result: yes" >&5 | |
13275 | echo "${ECHO_T}yes" >&6; } | |
13276 | succeeded=yes | |
6ed29d7b | 13277 | |
e70b2110 KH |
13278 | { echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5 |
13279 | echo $ECHO_N "checking LIBOTF_CFLAGS... $ECHO_C" >&6; } | |
13280 | LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'` | |
13281 | { echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5 | |
13282 | echo "${ECHO_T}$LIBOTF_CFLAGS" >&6; } | |
13283 | ||
13284 | { echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5 | |
13285 | echo $ECHO_N "checking LIBOTF_LIBS... $ECHO_C" >&6; } | |
13286 | LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'` | |
13287 | { echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5 | |
13288 | echo "${ECHO_T}$LIBOTF_LIBS" >&6; } | |
13289 | else | |
13290 | { echo "$as_me:$LINENO: result: no" >&5 | |
13291 | echo "${ECHO_T}no" >&6; } | |
13292 | LIBOTF_CFLAGS="" | |
13293 | LIBOTF_LIBS="" | |
13294 | ## If we have a custom action on failure, don't print errors, but | |
13295 | ## do set a variable so people can do so. | |
13296 | LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"` | |
6ed29d7b | 13297 | |
e70b2110 | 13298 | fi |
6ed29d7b | 13299 | |
6ed29d7b | 13300 | |
6ed29d7b | 13301 | |
e70b2110 KH |
13302 | else |
13303 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
13304 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
13305 | fi | |
13306 | fi | |
13307 | ||
13308 | if test $succeeded = yes; then | |
435f8bc5 | 13309 | HAVE_LIBOTF=yes |
e70b2110 | 13310 | else |
435f8bc5 | 13311 | HAVE_LIBOTF=no |
e70b2110 KH |
13312 | fi |
13313 | ||
77dfeef5 | 13314 | if test "$HAVE_LIBOTF" = "yes"; then |
6ed29d7b | 13315 | |
45a4b03e KH |
13316 | cat >>confdefs.h <<\_ACEOF |
13317 | #define HAVE_LIBOTF 1 | |
13318 | _ACEOF | |
13319 | ||
77dfeef5 | 13320 | fi |
6ed29d7b | 13321 | fi |
45a4b03e | 13322 | fi |
45a4b03e | 13323 | |
77dfeef5 GM |
13324 | HAVE_M17N_FLT=no |
13325 | if test "${with_m17n_flt}" != "no"; then | |
7f0942ba KH |
13326 | |
13327 | succeeded=no | |
13328 | ||
d235ca2f | 13329 | # Extract the first word of "pkg-config", so it can be a program name with args. |
7f0942ba KH |
13330 | set dummy pkg-config; ac_word=$2 |
13331 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
13332 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
13333 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
13334 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13335 | else | |
13336 | case $PKG_CONFIG in | |
13337 | [\\/]* | ?:[\\/]*) | |
13338 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
13339 | ;; | |
13340 | *) | |
13341 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13342 | for as_dir in $PATH | |
13343 | do | |
13344 | IFS=$as_save_IFS | |
13345 | test -z "$as_dir" && as_dir=. | |
13346 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13347 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
13348 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
13349 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13350 | break 2 | |
13351 | fi | |
13352 | done | |
13353 | done | |
13354 | IFS=$as_save_IFS | |
13355 | ||
13356 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
13357 | ;; | |
13358 | esac | |
13359 | fi | |
13360 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
13361 | if test -n "$PKG_CONFIG"; then | |
13362 | { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
13363 | echo "${ECHO_T}$PKG_CONFIG" >&6; } | |
13364 | else | |
13365 | { echo "$as_me:$LINENO: result: no" >&5 | |
13366 | echo "${ECHO_T}no" >&6; } | |
13367 | fi | |
13368 | ||
13369 | ||
7f0942ba KH |
13370 | |
13371 | if test "$PKG_CONFIG" = "no" ; then | |
435f8bc5 | 13372 | HAVE_M17N_FLT=no |
7f0942ba KH |
13373 | else |
13374 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
13375 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
13376 | { echo "$as_me:$LINENO: checking for m17n-flt" >&5 | |
13377 | echo $ECHO_N "checking for m17n-flt... $ECHO_C" >&6; } | |
13378 | ||
13379 | if $PKG_CONFIG --exists "m17n-flt" 2>&5; then | |
13380 | { echo "$as_me:$LINENO: result: yes" >&5 | |
13381 | echo "${ECHO_T}yes" >&6; } | |
13382 | succeeded=yes | |
13383 | ||
13384 | { echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5 | |
13385 | echo $ECHO_N "checking M17N_FLT_CFLAGS... $ECHO_C" >&6; } | |
13386 | M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'` | |
13387 | { echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5 | |
13388 | echo "${ECHO_T}$M17N_FLT_CFLAGS" >&6; } | |
13389 | ||
13390 | { echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5 | |
13391 | echo $ECHO_N "checking M17N_FLT_LIBS... $ECHO_C" >&6; } | |
13392 | M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'` | |
13393 | { echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5 | |
13394 | echo "${ECHO_T}$M17N_FLT_LIBS" >&6; } | |
13395 | else | |
13396 | { echo "$as_me:$LINENO: result: no" >&5 | |
13397 | echo "${ECHO_T}no" >&6; } | |
13398 | M17N_FLT_CFLAGS="" | |
13399 | M17N_FLT_LIBS="" | |
13400 | ## If we have a custom action on failure, don't print errors, but | |
13401 | ## do set a variable so people can do so. | |
13402 | M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"` | |
13403 | ||
13404 | fi | |
13405 | ||
13406 | ||
13407 | ||
13408 | else | |
13409 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
13410 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
13411 | fi | |
13412 | fi | |
13413 | ||
13414 | if test $succeeded = yes; then | |
435f8bc5 | 13415 | HAVE_M17N_FLT=yes |
7f0942ba | 13416 | else |
435f8bc5 | 13417 | HAVE_M17N_FLT=no |
7f0942ba KH |
13418 | fi |
13419 | ||
77dfeef5 | 13420 | if test "$HAVE_M17N_FLT" = "yes"; then |
7f0942ba KH |
13421 | |
13422 | cat >>confdefs.h <<\_ACEOF | |
13423 | #define HAVE_M17N_FLT 1 | |
13424 | _ACEOF | |
13425 | ||
77dfeef5 | 13426 | fi |
e70b2110 | 13427 | fi |
e70b2110 KH |
13428 | |
13429 | ||
13430 | ||
13431 | ||
13432 | ||
13433 | ||
13434 | ||
7f0942ba KH |
13435 | |
13436 | ||
7f0942ba | 13437 | |
77dfeef5 GM |
13438 | fi # "${USE_FONT_BACKEND}" = "yes" |
13439 | ### End of font-backend section. | |
98418dba CW |
13440 | |
13441 | ### Use -lXpm if available, unless `--with-xpm=no'. | |
13442 | HAVE_XPM=no | |
13443 | if test "${HAVE_X11}" = "yes"; then | |
13444 | if test "${with_xpm}" != "no"; then | |
c0d27fcc | 13445 | if test "${ac_cv_header_X11_xpm_h+set}" = set; then |
4c34eeee MB |
13446 | { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 |
13447 | echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; } | |
98418dba CW |
13448 | if test "${ac_cv_header_X11_xpm_h+set}" = set; then |
13449 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc | 13450 | fi |
4c34eeee MB |
13451 | { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5 |
13452 | echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; } | |
98418dba | 13453 | else |
c0d27fcc | 13454 | # Is the header compilable? |
4c34eeee MB |
13455 | { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5 |
13456 | echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; } | |
c0d27fcc | 13457 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
13458 | /* confdefs.h. */ |
13459 | _ACEOF | |
13460 | cat confdefs.h >>conftest.$ac_ext | |
13461 | cat >>conftest.$ac_ext <<_ACEOF | |
13462 | /* end confdefs.h. */ | |
c0d27fcc MR |
13463 | $ac_includes_default |
13464 | #include <X11/xpm.h> | |
13465 | _ACEOF | |
13466 | rm -f conftest.$ac_objext | |
4c34eeee MB |
13467 | if { (ac_try="$ac_compile" |
13468 | case "(($ac_try" in | |
13469 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13470 | *) ac_try_echo=$ac_try;; | |
13471 | esac | |
13472 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13473 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 13474 | ac_status=$? |
edfaf76d LK |
13475 | grep -v '^ *+' conftest.er1 >conftest.err |
13476 | rm -f conftest.er1 | |
13477 | cat conftest.err >&5 | |
c0d27fcc | 13478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4c34eeee MB |
13479 | (exit $ac_status); } && { |
13480 | test -z "$ac_c_werror_flag" || | |
13481 | test ! -s conftest.err | |
13482 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
13483 | ac_header_compiler=yes |
13484 | else | |
13485 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
13486 | sed 's/^/| /' conftest.$ac_ext >&5 |
13487 | ||
4c34eeee | 13488 | ac_header_compiler=no |
c0d27fcc | 13489 | fi |
4c34eeee MB |
13490 | |
13491 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13492 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13493 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
13494 | |
13495 | # Is the header present? | |
4c34eeee MB |
13496 | { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5 |
13497 | echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; } | |
c0d27fcc | 13498 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
13499 | /* confdefs.h. */ |
13500 | _ACEOF | |
13501 | cat confdefs.h >>conftest.$ac_ext | |
13502 | cat >>conftest.$ac_ext <<_ACEOF | |
13503 | /* end confdefs.h. */ | |
98418dba CW |
13504 | #include <X11/xpm.h> |
13505 | _ACEOF | |
4c34eeee MB |
13506 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
13507 | case "(($ac_try" in | |
13508 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13509 | *) ac_try_echo=$ac_try;; | |
13510 | esac | |
13511 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13512 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
98418dba | 13513 | ac_status=$? |
6bae0ccf | 13514 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
13515 | rm -f conftest.er1 |
13516 | cat conftest.err >&5 | |
c0d27fcc | 13517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4c34eeee MB |
13518 | (exit $ac_status); } >/dev/null && { |
13519 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
13520 | test ! -s conftest.err | |
13521 | }; then | |
c0d27fcc | 13522 | ac_header_preproc=yes |
98418dba CW |
13523 | else |
13524 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
13525 | sed 's/^/| /' conftest.$ac_ext >&5 |
13526 | ||
c0d27fcc | 13527 | ac_header_preproc=no |
98418dba | 13528 | fi |
4c34eeee | 13529 | |
98418dba | 13530 | rm -f conftest.err conftest.$ac_ext |
4c34eeee MB |
13531 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13532 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
13533 | |
13534 | # So? What about this header? | |
edfaf76d LK |
13535 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13536 | yes:no: ) | |
c0d27fcc MR |
13537 | { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
13538 | echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
13539 | { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5 |
13540 | echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;} | |
13541 | ac_header_preproc=yes | |
13542 | ;; | |
13543 | no:yes:* ) | |
13544 | { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5 | |
13545 | echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;} | |
13546 | { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5 | |
13547 | echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;} | |
13548 | { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5 | |
13549 | echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;} | |
13550 | { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5 | |
13551 | echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
7c9e5167 JD |
13552 | { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5 |
13553 | echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;} | |
edfaf76d LK |
13554 | { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5 |
13555 | echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;} | |
4c34eeee | 13556 | |
19650fd6 | 13557 | ;; |
c0d27fcc | 13558 | esac |
4c34eeee MB |
13559 | { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 |
13560 | echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; } | |
c0d27fcc MR |
13561 | if test "${ac_cv_header_X11_xpm_h+set}" = set; then |
13562 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13563 | else | |
13564 | ac_cv_header_X11_xpm_h=$ac_header_preproc | |
ba4481b5 | 13565 | fi |
4c34eeee MB |
13566 | { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5 |
13567 | echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; } | |
c0d27fcc MR |
13568 | |
13569 | fi | |
98418dba | 13570 | if test $ac_cv_header_X11_xpm_h = yes; then |
4c34eeee MB |
13571 | { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5 |
13572 | echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; } | |
98418dba | 13573 | if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then |
503d2be0 | 13574 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 13575 | else |
98418dba CW |
13576 | ac_check_lib_save_LIBS=$LIBS |
13577 | LIBS="-lXpm -lX11 $LIBS" | |
13578 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
13579 | /* confdefs.h. */ |
13580 | _ACEOF | |
13581 | cat confdefs.h >>conftest.$ac_ext | |
13582 | cat >>conftest.$ac_ext <<_ACEOF | |
13583 | /* end confdefs.h. */ | |
98418dba | 13584 | |
4c34eeee MB |
13585 | /* Override any GCC internal prototype to avoid an error. |
13586 | Use char because int might match the return type of a GCC | |
13587 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
13588 | #ifdef __cplusplus |
13589 | extern "C" | |
13590 | #endif | |
98418dba | 13591 | char XpmReadFileToPixmap (); |
503d2be0 AS |
13592 | int |
13593 | main () | |
13594 | { | |
4c34eeee | 13595 | return XpmReadFileToPixmap (); |
503d2be0 AS |
13596 | ; |
13597 | return 0; | |
13598 | } | |
13599 | _ACEOF | |
13600 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4c34eeee MB |
13601 | if { (ac_try="$ac_link" |
13602 | case "(($ac_try" in | |
13603 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13604 | *) ac_try_echo=$ac_try;; | |
13605 | esac | |
13606 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13607 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 13608 | ac_status=$? |
edfaf76d LK |
13609 | grep -v '^ *+' conftest.er1 >conftest.err |
13610 | rm -f conftest.er1 | |
13611 | cat conftest.err >&5 | |
c0d27fcc | 13612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4c34eeee MB |
13613 | (exit $ac_status); } && { |
13614 | test -z "$ac_c_werror_flag" || | |
13615 | test ! -s conftest.err | |
13616 | } && test -s conftest$ac_exeext && | |
13617 | $as_test_x conftest$ac_exeext; then | |
98418dba | 13618 | ac_cv_lib_Xpm_XpmReadFileToPixmap=yes |
503d2be0 AS |
13619 | else |
13620 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
13621 | sed 's/^/| /' conftest.$ac_ext >&5 |
13622 | ||
4c34eeee | 13623 | ac_cv_lib_Xpm_XpmReadFileToPixmap=no |
503d2be0 | 13624 | fi |
4c34eeee MB |
13625 | |
13626 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
edfaf76d | 13627 | conftest$ac_exeext conftest.$ac_ext |
98418dba | 13628 | LIBS=$ac_check_lib_save_LIBS |
503d2be0 | 13629 | fi |
4c34eeee MB |
13630 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5 |
13631 | echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; } | |
98418dba CW |
13632 | if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then |
13633 | HAVE_XPM=yes | |
ba4481b5 DL |
13634 | fi |
13635 | ||
98418dba CW |
13636 | fi |
13637 | ||
c0d27fcc | 13638 | |
98418dba | 13639 | if test "${HAVE_XPM}" = "yes"; then |
4c34eeee MB |
13640 | { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5 |
13641 | echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; } | |
98418dba | 13642 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
13643 | /* confdefs.h. */ |
13644 | _ACEOF | |
13645 | cat confdefs.h >>conftest.$ac_ext | |
13646 | cat >>conftest.$ac_ext <<_ACEOF | |
13647 | /* end confdefs.h. */ | |
98418dba CW |
13648 | #include "X11/xpm.h" |
13649 | #ifndef XpmReturnAllocPixels | |
13650 | no_return_alloc_pixels | |
503d2be0 | 13651 | #endif |
ba4481b5 | 13652 | |
98418dba CW |
13653 | _ACEOF |
13654 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6bae0ccf | 13655 | $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then |
98418dba CW |
13656 | HAVE_XPM=no |
13657 | else | |
13658 | HAVE_XPM=yes | |
13659 | fi | |
13660 | rm -f conftest* | |
ba4481b5 | 13661 | |
c0d27fcc | 13662 | |
98418dba | 13663 | if test "${HAVE_XPM}" = "yes"; then |
4c34eeee MB |
13664 | { echo "$as_me:$LINENO: result: yes" >&5 |
13665 | echo "${ECHO_T}yes" >&6; } | |
98418dba | 13666 | else |
4c34eeee MB |
13667 | { echo "$as_me:$LINENO: result: no" >&5 |
13668 | echo "${ECHO_T}no" >&6; } | |
98418dba CW |
13669 | fi |
13670 | fi | |
13671 | fi | |
13672 | ||
13673 | if test "${HAVE_XPM}" = "yes"; then | |
b936fae4 | 13674 | |
c0d27fcc | 13675 | cat >>confdefs.h <<\_ACEOF |
98418dba | 13676 | #define HAVE_XPM 1 |
c0d27fcc | 13677 | _ACEOF |
98418dba CW |
13678 | |
13679 | fi | |
13680 | fi | |
13681 | ||
13682 | ### Use -ljpeg if available, unless `--with-jpeg=no'. | |
13683 | HAVE_JPEG=no | |
13684 | if test "${HAVE_X11}" = "yes"; then | |
13685 | if test "${with_jpeg}" != "no"; then | |
c0d27fcc | 13686 | if test "${ac_cv_header_jerror_h+set}" = set; then |
4c34eeee MB |
13687 | { echo "$as_me:$LINENO: checking for jerror.h" >&5 |
13688 | echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; } | |
98418dba CW |
13689 | if test "${ac_cv_header_jerror_h+set}" = set; then |
13690 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc | 13691 | fi |
ca81d7a0 JD |
13692 | { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5 |
13693 | echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; } | |
503d2be0 | 13694 | else |
c0d27fcc | 13695 | # Is the header compilable? |
ca81d7a0 JD |
13696 | { echo "$as_me:$LINENO: checking jerror.h usability" >&5 |
13697 | echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; } | |
c0d27fcc | 13698 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
13699 | /* confdefs.h. */ |
13700 | _ACEOF | |
13701 | cat confdefs.h >>conftest.$ac_ext | |
13702 | cat >>conftest.$ac_ext <<_ACEOF | |
13703 | /* end confdefs.h. */ | |
c0d27fcc MR |
13704 | $ac_includes_default |
13705 | #include <jerror.h> | |
13706 | _ACEOF | |
13707 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
13708 | if { (ac_try="$ac_compile" |
13709 | case "(($ac_try" in | |
13710 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13711 | *) ac_try_echo=$ac_try;; | |
13712 | esac | |
13713 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13714 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 13715 | ac_status=$? |
edfaf76d LK |
13716 | grep -v '^ *+' conftest.er1 >conftest.err |
13717 | rm -f conftest.er1 | |
13718 | cat conftest.err >&5 | |
c0d27fcc | 13719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
13720 | (exit $ac_status); } && { |
13721 | test -z "$ac_c_werror_flag" || | |
13722 | test ! -s conftest.err | |
13723 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
13724 | ac_header_compiler=yes |
13725 | else | |
13726 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
13727 | sed 's/^/| /' conftest.$ac_ext >&5 |
13728 | ||
ca81d7a0 | 13729 | ac_header_compiler=no |
c0d27fcc | 13730 | fi |
ca81d7a0 JD |
13731 | |
13732 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13733 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13734 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
13735 | |
13736 | # Is the header present? | |
ca81d7a0 JD |
13737 | { echo "$as_me:$LINENO: checking jerror.h presence" >&5 |
13738 | echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; } | |
c0d27fcc | 13739 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
13740 | /* confdefs.h. */ |
13741 | _ACEOF | |
13742 | cat confdefs.h >>conftest.$ac_ext | |
13743 | cat >>conftest.$ac_ext <<_ACEOF | |
13744 | /* end confdefs.h. */ | |
98418dba CW |
13745 | #include <jerror.h> |
13746 | _ACEOF | |
ca81d7a0 JD |
13747 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
13748 | case "(($ac_try" in | |
13749 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13750 | *) ac_try_echo=$ac_try;; | |
13751 | esac | |
13752 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13753 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
98418dba | 13754 | ac_status=$? |
6bae0ccf | 13755 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
13756 | rm -f conftest.er1 |
13757 | cat conftest.err >&5 | |
c0d27fcc | 13758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
13759 | (exit $ac_status); } >/dev/null && { |
13760 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
13761 | test ! -s conftest.err | |
13762 | }; then | |
c0d27fcc | 13763 | ac_header_preproc=yes |
ba4481b5 | 13764 | else |
98418dba | 13765 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
13766 | sed 's/^/| /' conftest.$ac_ext >&5 |
13767 | ||
c0d27fcc | 13768 | ac_header_preproc=no |
98418dba | 13769 | fi |
ca81d7a0 | 13770 | |
98418dba | 13771 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
13772 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
13773 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
13774 | |
13775 | # So? What about this header? | |
edfaf76d LK |
13776 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
13777 | yes:no: ) | |
c0d27fcc MR |
13778 | { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
13779 | echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
13780 | { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5 |
13781 | echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;} | |
13782 | ac_header_preproc=yes | |
19650fd6 | 13783 | ;; |
edfaf76d | 13784 | no:yes:* ) |
c0d27fcc MR |
13785 | { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5 |
13786 | echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;} | |
edfaf76d LK |
13787 | { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5 |
13788 | echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;} | |
13789 | { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5 | |
13790 | echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;} | |
13791 | { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5 | |
13792 | echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 13793 | { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 13794 | echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
13795 | { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5 |
13796 | echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 13797 | |
19650fd6 | 13798 | ;; |
c0d27fcc | 13799 | esac |
ca81d7a0 JD |
13800 | { echo "$as_me:$LINENO: checking for jerror.h" >&5 |
13801 | echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; } | |
c0d27fcc MR |
13802 | if test "${ac_cv_header_jerror_h+set}" = set; then |
13803 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13804 | else | |
13805 | ac_cv_header_jerror_h=$ac_header_preproc | |
ba4481b5 | 13806 | fi |
ca81d7a0 JD |
13807 | { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5 |
13808 | echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; } | |
c0d27fcc MR |
13809 | |
13810 | fi | |
98418dba | 13811 | if test $ac_cv_header_jerror_h = yes; then |
ca81d7a0 JD |
13812 | { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5 |
13813 | echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; } | |
98418dba | 13814 | if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then |
503d2be0 | 13815 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 13816 | else |
98418dba CW |
13817 | ac_check_lib_save_LIBS=$LIBS |
13818 | LIBS="-ljpeg $LIBS" | |
13819 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
13820 | /* confdefs.h. */ |
13821 | _ACEOF | |
13822 | cat confdefs.h >>conftest.$ac_ext | |
13823 | cat >>conftest.$ac_ext <<_ACEOF | |
13824 | /* end confdefs.h. */ | |
98418dba | 13825 | |
ca81d7a0 JD |
13826 | /* Override any GCC internal prototype to avoid an error. |
13827 | Use char because int might match the return type of a GCC | |
13828 | builtin and then its argument prototype would still apply. */ | |
98418dba CW |
13829 | #ifdef __cplusplus |
13830 | extern "C" | |
13831 | #endif | |
98418dba | 13832 | char jpeg_destroy_compress (); |
503d2be0 AS |
13833 | int |
13834 | main () | |
13835 | { | |
ca81d7a0 | 13836 | return jpeg_destroy_compress (); |
503d2be0 AS |
13837 | ; |
13838 | return 0; | |
13839 | } | |
13840 | _ACEOF | |
13841 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
13842 | if { (ac_try="$ac_link" |
13843 | case "(($ac_try" in | |
13844 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13845 | *) ac_try_echo=$ac_try;; | |
13846 | esac | |
13847 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13848 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 13849 | ac_status=$? |
edfaf76d LK |
13850 | grep -v '^ *+' conftest.er1 >conftest.err |
13851 | rm -f conftest.er1 | |
13852 | cat conftest.err >&5 | |
c0d27fcc | 13853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
13854 | (exit $ac_status); } && { |
13855 | test -z "$ac_c_werror_flag" || | |
13856 | test ! -s conftest.err | |
13857 | } && test -s conftest$ac_exeext && | |
13858 | $as_test_x conftest$ac_exeext; then | |
98418dba | 13859 | ac_cv_lib_jpeg_jpeg_destroy_compress=yes |
ba4481b5 | 13860 | else |
503d2be0 | 13861 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
13862 | sed 's/^/| /' conftest.$ac_ext >&5 |
13863 | ||
ca81d7a0 | 13864 | ac_cv_lib_jpeg_jpeg_destroy_compress=no |
ba4481b5 | 13865 | fi |
ca81d7a0 | 13866 | |
f053c89f | 13867 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 13868 | conftest$ac_exeext conftest.$ac_ext |
98418dba | 13869 | LIBS=$ac_check_lib_save_LIBS |
ba4481b5 | 13870 | fi |
ca81d7a0 JD |
13871 | { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5 |
13872 | echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; } | |
98418dba CW |
13873 | if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then |
13874 | HAVE_JPEG=yes | |
ba4481b5 | 13875 | fi |
98418dba | 13876 | |
ba4481b5 | 13877 | fi |
98418dba | 13878 | |
c0d27fcc | 13879 | |
ba4481b5 | 13880 | fi |
ba4481b5 | 13881 | |
c0d27fcc | 13882 | |
98418dba | 13883 | if test "${HAVE_JPEG}" = "yes"; then |
c0d27fcc | 13884 | cat >>confdefs.h <<\_ACEOF |
98418dba | 13885 | #define HAVE_JPEG 1 |
c0d27fcc | 13886 | _ACEOF |
98418dba CW |
13887 | |
13888 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
13889 | /* confdefs.h. */ |
13890 | _ACEOF | |
13891 | cat confdefs.h >>conftest.$ac_ext | |
13892 | cat >>conftest.$ac_ext <<_ACEOF | |
13893 | /* end confdefs.h. */ | |
22044edf | 13894 | #include <jpeglib.h> |
98418dba CW |
13895 | version=JPEG_LIB_VERSION |
13896 | ||
13897 | _ACEOF | |
13898 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6bae0ccf | 13899 | $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then |
c0d27fcc | 13900 | cat >>confdefs.h <<\_ACEOF |
98418dba | 13901 | #define HAVE_JPEG 1 |
c0d27fcc | 13902 | _ACEOF |
ba4481b5 | 13903 | |
98418dba | 13904 | else |
c0d27fcc | 13905 | { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5 |
98418dba CW |
13906 | echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;} |
13907 | HAVE_JPEG=no | |
ba4481b5 | 13908 | fi |
98418dba | 13909 | rm -f conftest* |
ba4481b5 | 13910 | |
98418dba CW |
13911 | fi |
13912 | fi | |
503d2be0 | 13913 | |
98418dba CW |
13914 | ### Use -lpng if available, unless `--with-png=no'. |
13915 | HAVE_PNG=no | |
13916 | if test "${HAVE_X11}" = "yes"; then | |
13917 | if test "${with_png}" != "no"; then | |
f57bd967 DL |
13918 | # Debian unstable as of July 2003 has multiple libpngs, and puts png.h |
13919 | # in /usr/include/libpng. | |
13920 | ||
13921 | ||
13922 | for ac_header in png.h libpng/png.h | |
13923 | do | |
13924 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
ca81d7a0 JD |
13925 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
13926 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13927 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
13928 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 13929 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc | 13930 | fi |
ca81d7a0 JD |
13931 | ac_res=`eval echo '${'$as_ac_Header'}'` |
13932 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13933 | echo "${ECHO_T}$ac_res" >&6; } | |
503d2be0 | 13934 | else |
c0d27fcc | 13935 | # Is the header compilable? |
ca81d7a0 JD |
13936 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
13937 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
c0d27fcc | 13938 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
13939 | /* confdefs.h. */ |
13940 | _ACEOF | |
13941 | cat confdefs.h >>conftest.$ac_ext | |
13942 | cat >>conftest.$ac_ext <<_ACEOF | |
13943 | /* end confdefs.h. */ | |
c0d27fcc | 13944 | $ac_includes_default |
f57bd967 | 13945 | #include <$ac_header> |
c0d27fcc MR |
13946 | _ACEOF |
13947 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
13948 | if { (ac_try="$ac_compile" |
13949 | case "(($ac_try" in | |
13950 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13951 | *) ac_try_echo=$ac_try;; | |
13952 | esac | |
13953 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13954 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 13955 | ac_status=$? |
edfaf76d LK |
13956 | grep -v '^ *+' conftest.er1 >conftest.err |
13957 | rm -f conftest.er1 | |
13958 | cat conftest.err >&5 | |
c0d27fcc | 13959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
13960 | (exit $ac_status); } && { |
13961 | test -z "$ac_c_werror_flag" || | |
13962 | test ! -s conftest.err | |
13963 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
13964 | ac_header_compiler=yes |
13965 | else | |
13966 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
13967 | sed 's/^/| /' conftest.$ac_ext >&5 |
13968 | ||
ca81d7a0 | 13969 | ac_header_compiler=no |
c0d27fcc | 13970 | fi |
ca81d7a0 JD |
13971 | |
13972 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13973 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13974 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
13975 | |
13976 | # Is the header present? | |
ca81d7a0 JD |
13977 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
13978 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
c0d27fcc | 13979 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
13980 | /* confdefs.h. */ |
13981 | _ACEOF | |
13982 | cat confdefs.h >>conftest.$ac_ext | |
13983 | cat >>conftest.$ac_ext <<_ACEOF | |
13984 | /* end confdefs.h. */ | |
f57bd967 | 13985 | #include <$ac_header> |
503d2be0 | 13986 | _ACEOF |
ca81d7a0 JD |
13987 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
13988 | case "(($ac_try" in | |
13989 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13990 | *) ac_try_echo=$ac_try;; | |
13991 | esac | |
13992 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13993 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 13994 | ac_status=$? |
6bae0ccf | 13995 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
13996 | rm -f conftest.er1 |
13997 | cat conftest.err >&5 | |
c0d27fcc | 13998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
13999 | (exit $ac_status); } >/dev/null && { |
14000 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
14001 | test ! -s conftest.err | |
14002 | }; then | |
c0d27fcc | 14003 | ac_header_preproc=yes |
503d2be0 AS |
14004 | else |
14005 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
14006 | sed 's/^/| /' conftest.$ac_ext >&5 |
14007 | ||
c0d27fcc | 14008 | ac_header_preproc=no |
ba4481b5 | 14009 | fi |
ca81d7a0 | 14010 | |
503d2be0 | 14011 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
14012 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
14013 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
14014 | |
14015 | # So? What about this header? | |
edfaf76d LK |
14016 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14017 | yes:no: ) | |
f57bd967 DL |
14018 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
14019 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
14020 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
14021 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14022 | ac_header_preproc=yes | |
19650fd6 | 14023 | ;; |
edfaf76d | 14024 | no:yes:* ) |
f57bd967 DL |
14025 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
14026 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
edfaf76d LK |
14027 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
14028 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14029 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14030 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14031 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14032 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
f57bd967 | 14033 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 14034 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
14035 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
14036 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 14037 | |
19650fd6 | 14038 | ;; |
c0d27fcc | 14039 | esac |
ca81d7a0 JD |
14040 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
14041 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
14042 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
c0d27fcc MR |
14043 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14044 | else | |
edfaf76d | 14045 | eval "$as_ac_Header=\$ac_header_preproc" |
f57bd967 | 14046 | fi |
ca81d7a0 JD |
14047 | ac_res=`eval echo '${'$as_ac_Header'}'` |
14048 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
14049 | echo "${ECHO_T}$ac_res" >&6; } | |
f57bd967 | 14050 | |
ba4481b5 | 14051 | fi |
f57bd967 DL |
14052 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
14053 | cat >>confdefs.h <<_ACEOF | |
14054 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14055 | _ACEOF | |
c0d27fcc MR |
14056 | |
14057 | fi | |
f57bd967 DL |
14058 | |
14059 | done | |
14060 | ||
14061 | if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then | |
ca81d7a0 JD |
14062 | { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5 |
14063 | echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; } | |
98418dba | 14064 | if test "${ac_cv_lib_png_png_get_channels+set}" = set; then |
503d2be0 | 14065 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 14066 | else |
98418dba CW |
14067 | ac_check_lib_save_LIBS=$LIBS |
14068 | LIBS="-lpng -lz -lm $LIBS" | |
14069 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
14070 | /* confdefs.h. */ |
14071 | _ACEOF | |
14072 | cat confdefs.h >>conftest.$ac_ext | |
14073 | cat >>conftest.$ac_ext <<_ACEOF | |
14074 | /* end confdefs.h. */ | |
98418dba | 14075 | |
ca81d7a0 JD |
14076 | /* Override any GCC internal prototype to avoid an error. |
14077 | Use char because int might match the return type of a GCC | |
14078 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
14079 | #ifdef __cplusplus |
14080 | extern "C" | |
14081 | #endif | |
98418dba | 14082 | char png_get_channels (); |
503d2be0 AS |
14083 | int |
14084 | main () | |
14085 | { | |
ca81d7a0 | 14086 | return png_get_channels (); |
503d2be0 AS |
14087 | ; |
14088 | return 0; | |
14089 | } | |
14090 | _ACEOF | |
14091 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
14092 | if { (ac_try="$ac_link" |
14093 | case "(($ac_try" in | |
14094 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14095 | *) ac_try_echo=$ac_try;; | |
14096 | esac | |
14097 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14098 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 14099 | ac_status=$? |
edfaf76d LK |
14100 | grep -v '^ *+' conftest.er1 >conftest.err |
14101 | rm -f conftest.er1 | |
14102 | cat conftest.err >&5 | |
c0d27fcc | 14103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
14104 | (exit $ac_status); } && { |
14105 | test -z "$ac_c_werror_flag" || | |
14106 | test ! -s conftest.err | |
14107 | } && test -s conftest$ac_exeext && | |
14108 | $as_test_x conftest$ac_exeext; then | |
98418dba | 14109 | ac_cv_lib_png_png_get_channels=yes |
73b77ee5 | 14110 | else |
98418dba | 14111 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
14112 | sed 's/^/| /' conftest.$ac_ext >&5 |
14113 | ||
ca81d7a0 | 14114 | ac_cv_lib_png_png_get_channels=no |
73b77ee5 | 14115 | fi |
ca81d7a0 | 14116 | |
f053c89f | 14117 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 14118 | conftest$ac_exeext conftest.$ac_ext |
98418dba | 14119 | LIBS=$ac_check_lib_save_LIBS |
73b77ee5 | 14120 | fi |
ca81d7a0 JD |
14121 | { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5 |
14122 | echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; } | |
98418dba CW |
14123 | if test $ac_cv_lib_png_png_get_channels = yes; then |
14124 | HAVE_PNG=yes | |
73b77ee5 | 14125 | fi |
503d2be0 | 14126 | |
f57bd967 | 14127 | fi |
98418dba CW |
14128 | fi |
14129 | ||
14130 | if test "${HAVE_PNG}" = "yes"; then | |
b936fae4 | 14131 | |
c0d27fcc | 14132 | cat >>confdefs.h <<\_ACEOF |
98418dba | 14133 | #define HAVE_PNG 1 |
c0d27fcc | 14134 | _ACEOF |
73b77ee5 | 14135 | |
98418dba | 14136 | fi |
73b77ee5 GM |
14137 | fi |
14138 | ||
98418dba CW |
14139 | ### Use -ltiff if available, unless `--with-tiff=no'. |
14140 | HAVE_TIFF=no | |
14141 | if test "${HAVE_X11}" = "yes"; then | |
14142 | if test "${with_tiff}" != "no"; then | |
c0d27fcc | 14143 | if test "${ac_cv_header_tiffio_h+set}" = set; then |
ca81d7a0 JD |
14144 | { echo "$as_me:$LINENO: checking for tiffio.h" >&5 |
14145 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; } | |
98418dba CW |
14146 | if test "${ac_cv_header_tiffio_h+set}" = set; then |
14147 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc | 14148 | fi |
ca81d7a0 JD |
14149 | { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 |
14150 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; } | |
98418dba | 14151 | else |
c0d27fcc | 14152 | # Is the header compilable? |
ca81d7a0 JD |
14153 | { echo "$as_me:$LINENO: checking tiffio.h usability" >&5 |
14154 | echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; } | |
c0d27fcc | 14155 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
14156 | /* confdefs.h. */ |
14157 | _ACEOF | |
14158 | cat confdefs.h >>conftest.$ac_ext | |
14159 | cat >>conftest.$ac_ext <<_ACEOF | |
14160 | /* end confdefs.h. */ | |
c0d27fcc MR |
14161 | $ac_includes_default |
14162 | #include <tiffio.h> | |
14163 | _ACEOF | |
14164 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
14165 | if { (ac_try="$ac_compile" |
14166 | case "(($ac_try" in | |
14167 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14168 | *) ac_try_echo=$ac_try;; | |
14169 | esac | |
14170 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14171 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 14172 | ac_status=$? |
edfaf76d LK |
14173 | grep -v '^ *+' conftest.er1 >conftest.err |
14174 | rm -f conftest.er1 | |
14175 | cat conftest.err >&5 | |
c0d27fcc | 14176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
14177 | (exit $ac_status); } && { |
14178 | test -z "$ac_c_werror_flag" || | |
14179 | test ! -s conftest.err | |
14180 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
14181 | ac_header_compiler=yes |
14182 | else | |
14183 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
14184 | sed 's/^/| /' conftest.$ac_ext >&5 |
14185 | ||
ca81d7a0 | 14186 | ac_header_compiler=no |
c0d27fcc | 14187 | fi |
ca81d7a0 JD |
14188 | |
14189 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14190 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
14191 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
14192 | |
14193 | # Is the header present? | |
ca81d7a0 JD |
14194 | { echo "$as_me:$LINENO: checking tiffio.h presence" >&5 |
14195 | echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; } | |
c0d27fcc | 14196 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
14197 | /* confdefs.h. */ |
14198 | _ACEOF | |
14199 | cat confdefs.h >>conftest.$ac_ext | |
14200 | cat >>conftest.$ac_ext <<_ACEOF | |
14201 | /* end confdefs.h. */ | |
98418dba CW |
14202 | #include <tiffio.h> |
14203 | _ACEOF | |
ca81d7a0 JD |
14204 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
14205 | case "(($ac_try" in | |
14206 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14207 | *) ac_try_echo=$ac_try;; | |
14208 | esac | |
14209 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14210 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
98418dba | 14211 | ac_status=$? |
6bae0ccf | 14212 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
14213 | rm -f conftest.er1 |
14214 | cat conftest.err >&5 | |
c0d27fcc | 14215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
14216 | (exit $ac_status); } >/dev/null && { |
14217 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
14218 | test ! -s conftest.err | |
14219 | }; then | |
c0d27fcc | 14220 | ac_header_preproc=yes |
98418dba CW |
14221 | else |
14222 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
14223 | sed 's/^/| /' conftest.$ac_ext >&5 |
14224 | ||
c0d27fcc | 14225 | ac_header_preproc=no |
98418dba | 14226 | fi |
ca81d7a0 | 14227 | |
98418dba | 14228 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
14229 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
14230 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
14231 | |
14232 | # So? What about this header? | |
edfaf76d LK |
14233 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14234 | yes:no: ) | |
c0d27fcc MR |
14235 | { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
14236 | echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
14237 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5 |
14238 | echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;} | |
14239 | ac_header_preproc=yes | |
19650fd6 | 14240 | ;; |
edfaf76d | 14241 | no:yes:* ) |
c0d27fcc MR |
14242 | { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5 |
14243 | echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;} | |
edfaf76d LK |
14244 | { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5 |
14245 | echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;} | |
14246 | { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5 | |
14247 | echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;} | |
14248 | { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5 | |
14249 | echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 14250 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 14251 | echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
14252 | { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5 |
14253 | echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 14254 | |
19650fd6 | 14255 | ;; |
c0d27fcc | 14256 | esac |
ca81d7a0 JD |
14257 | { echo "$as_me:$LINENO: checking for tiffio.h" >&5 |
14258 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; } | |
c0d27fcc MR |
14259 | if test "${ac_cv_header_tiffio_h+set}" = set; then |
14260 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14261 | else | |
14262 | ac_cv_header_tiffio_h=$ac_header_preproc | |
98418dba | 14263 | fi |
ca81d7a0 JD |
14264 | { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 |
14265 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; } | |
c0d27fcc MR |
14266 | |
14267 | fi | |
98418dba CW |
14268 | if test $ac_cv_header_tiffio_h = yes; then |
14269 | tifflibs="-lz -lm" | |
14270 | # At least one tiff package requires the jpeg library. | |
14271 | if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi | |
ca81d7a0 JD |
14272 | { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5 |
14273 | echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; } | |
98418dba | 14274 | if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then |
503d2be0 | 14275 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
73b77ee5 | 14276 | else |
503d2be0 | 14277 | ac_check_lib_save_LIBS=$LIBS |
98418dba | 14278 | LIBS="-ltiff $tifflibs $LIBS" |
503d2be0 | 14279 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
14280 | /* confdefs.h. */ |
14281 | _ACEOF | |
14282 | cat confdefs.h >>conftest.$ac_ext | |
14283 | cat >>conftest.$ac_ext <<_ACEOF | |
14284 | /* end confdefs.h. */ | |
503d2be0 | 14285 | |
ca81d7a0 JD |
14286 | /* Override any GCC internal prototype to avoid an error. |
14287 | Use char because int might match the return type of a GCC | |
14288 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
14289 | #ifdef __cplusplus |
14290 | extern "C" | |
14291 | #endif | |
98418dba | 14292 | char TIFFGetVersion (); |
503d2be0 AS |
14293 | int |
14294 | main () | |
14295 | { | |
ca81d7a0 | 14296 | return TIFFGetVersion (); |
503d2be0 AS |
14297 | ; |
14298 | return 0; | |
14299 | } | |
14300 | _ACEOF | |
14301 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
14302 | if { (ac_try="$ac_link" |
14303 | case "(($ac_try" in | |
14304 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14305 | *) ac_try_echo=$ac_try;; | |
14306 | esac | |
14307 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14308 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 14309 | ac_status=$? |
edfaf76d LK |
14310 | grep -v '^ *+' conftest.er1 >conftest.err |
14311 | rm -f conftest.er1 | |
14312 | cat conftest.err >&5 | |
c0d27fcc | 14313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
14314 | (exit $ac_status); } && { |
14315 | test -z "$ac_c_werror_flag" || | |
14316 | test ! -s conftest.err | |
14317 | } && test -s conftest$ac_exeext && | |
14318 | $as_test_x conftest$ac_exeext; then | |
98418dba | 14319 | ac_cv_lib_tiff_TIFFGetVersion=yes |
503d2be0 AS |
14320 | else |
14321 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
14322 | sed 's/^/| /' conftest.$ac_ext >&5 |
14323 | ||
ca81d7a0 | 14324 | ac_cv_lib_tiff_TIFFGetVersion=no |
503d2be0 | 14325 | fi |
ca81d7a0 | 14326 | |
f053c89f | 14327 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 14328 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 AS |
14329 | LIBS=$ac_check_lib_save_LIBS |
14330 | fi | |
ca81d7a0 JD |
14331 | { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5 |
14332 | echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; } | |
98418dba CW |
14333 | if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then |
14334 | HAVE_TIFF=yes | |
14335 | fi | |
14336 | ||
14337 | fi | |
73b77ee5 | 14338 | |
c0d27fcc | 14339 | |
98418dba CW |
14340 | fi |
14341 | ||
14342 | if test "${HAVE_TIFF}" = "yes"; then | |
b936fae4 | 14343 | |
c0d27fcc | 14344 | cat >>confdefs.h <<\_ACEOF |
98418dba | 14345 | #define HAVE_TIFF 1 |
c0d27fcc | 14346 | _ACEOF |
98418dba CW |
14347 | |
14348 | fi | |
73b77ee5 GM |
14349 | fi |
14350 | ||
9aeb8aaa | 14351 | ### Use -lgif or -lungif if available, unless `--with-gif=no'. |
98418dba | 14352 | HAVE_GIF=no |
9aeb8aaa GM |
14353 | if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then |
14354 | if test "${ac_cv_header_gif_lib_h+set}" = set; then | |
ca81d7a0 JD |
14355 | { echo "$as_me:$LINENO: checking for gif_lib.h" >&5 |
14356 | echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; } | |
98418dba CW |
14357 | if test "${ac_cv_header_gif_lib_h+set}" = set; then |
14358 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc | 14359 | fi |
ca81d7a0 JD |
14360 | { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5 |
14361 | echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; } | |
98418dba | 14362 | else |
c0d27fcc | 14363 | # Is the header compilable? |
ca81d7a0 JD |
14364 | { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5 |
14365 | echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; } | |
c0d27fcc | 14366 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
14367 | /* confdefs.h. */ |
14368 | _ACEOF | |
14369 | cat confdefs.h >>conftest.$ac_ext | |
14370 | cat >>conftest.$ac_ext <<_ACEOF | |
14371 | /* end confdefs.h. */ | |
c0d27fcc MR |
14372 | $ac_includes_default |
14373 | #include <gif_lib.h> | |
14374 | _ACEOF | |
14375 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
14376 | if { (ac_try="$ac_compile" |
14377 | case "(($ac_try" in | |
14378 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14379 | *) ac_try_echo=$ac_try;; | |
14380 | esac | |
14381 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14382 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 14383 | ac_status=$? |
edfaf76d LK |
14384 | grep -v '^ *+' conftest.er1 >conftest.err |
14385 | rm -f conftest.er1 | |
14386 | cat conftest.err >&5 | |
c0d27fcc | 14387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
14388 | (exit $ac_status); } && { |
14389 | test -z "$ac_c_werror_flag" || | |
14390 | test ! -s conftest.err | |
14391 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
14392 | ac_header_compiler=yes |
14393 | else | |
14394 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
14395 | sed 's/^/| /' conftest.$ac_ext >&5 |
14396 | ||
ca81d7a0 | 14397 | ac_header_compiler=no |
c0d27fcc | 14398 | fi |
ca81d7a0 JD |
14399 | |
14400 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14401 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
14402 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
14403 | |
14404 | # Is the header present? | |
ca81d7a0 JD |
14405 | { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5 |
14406 | echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; } | |
c0d27fcc | 14407 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
14408 | /* confdefs.h. */ |
14409 | _ACEOF | |
14410 | cat confdefs.h >>conftest.$ac_ext | |
14411 | cat >>conftest.$ac_ext <<_ACEOF | |
14412 | /* end confdefs.h. */ | |
98418dba CW |
14413 | #include <gif_lib.h> |
14414 | _ACEOF | |
ca81d7a0 JD |
14415 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
14416 | case "(($ac_try" in | |
14417 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14418 | *) ac_try_echo=$ac_try;; | |
14419 | esac | |
14420 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14421 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
98418dba | 14422 | ac_status=$? |
6bae0ccf | 14423 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
14424 | rm -f conftest.er1 |
14425 | cat conftest.err >&5 | |
c0d27fcc | 14426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
14427 | (exit $ac_status); } >/dev/null && { |
14428 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
14429 | test ! -s conftest.err | |
14430 | }; then | |
c0d27fcc | 14431 | ac_header_preproc=yes |
98418dba CW |
14432 | else |
14433 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
14434 | sed 's/^/| /' conftest.$ac_ext >&5 |
14435 | ||
c0d27fcc | 14436 | ac_header_preproc=no |
98418dba | 14437 | fi |
ca81d7a0 | 14438 | |
98418dba | 14439 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
14440 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
14441 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
14442 | |
14443 | # So? What about this header? | |
edfaf76d LK |
14444 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14445 | yes:no: ) | |
c0d27fcc MR |
14446 | { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
14447 | echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
14448 | { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5 |
14449 | echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;} | |
14450 | ac_header_preproc=yes | |
19650fd6 | 14451 | ;; |
edfaf76d | 14452 | no:yes:* ) |
c0d27fcc MR |
14453 | { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5 |
14454 | echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;} | |
edfaf76d LK |
14455 | { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5 |
14456 | echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;} | |
14457 | { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5 | |
14458 | echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;} | |
14459 | { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5 | |
14460 | echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 14461 | { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 14462 | echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
14463 | { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5 |
14464 | echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 14465 | |
19650fd6 | 14466 | ;; |
c0d27fcc | 14467 | esac |
ca81d7a0 JD |
14468 | { echo "$as_me:$LINENO: checking for gif_lib.h" >&5 |
14469 | echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; } | |
c0d27fcc MR |
14470 | if test "${ac_cv_header_gif_lib_h+set}" = set; then |
14471 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14472 | else | |
14473 | ac_cv_header_gif_lib_h=$ac_header_preproc | |
98418dba | 14474 | fi |
ca81d7a0 JD |
14475 | { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5 |
14476 | echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; } | |
c0d27fcc MR |
14477 | |
14478 | fi | |
98418dba CW |
14479 | if test $ac_cv_header_gif_lib_h = yes; then |
14480 | # EGifPutExtensionLast only exists from version libungif-4.1.0b1. | |
14481 | # Earlier versions can crash Emacs. | |
63175cd2 GM |
14482 | { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5 |
14483 | echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; } | |
14484 | if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then | |
503d2be0 | 14485 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
73b77ee5 | 14486 | else |
503d2be0 | 14487 | ac_check_lib_save_LIBS=$LIBS |
63175cd2 | 14488 | LIBS="-lgif $LIBS" |
503d2be0 | 14489 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
14490 | /* confdefs.h. */ |
14491 | _ACEOF | |
14492 | cat confdefs.h >>conftest.$ac_ext | |
14493 | cat >>conftest.$ac_ext <<_ACEOF | |
14494 | /* end confdefs.h. */ | |
73b77ee5 | 14495 | |
ca81d7a0 JD |
14496 | /* Override any GCC internal prototype to avoid an error. |
14497 | Use char because int might match the return type of a GCC | |
14498 | builtin and then its argument prototype would still apply. */ | |
98418dba CW |
14499 | #ifdef __cplusplus |
14500 | extern "C" | |
14501 | #endif | |
98418dba | 14502 | char EGifPutExtensionLast (); |
503d2be0 AS |
14503 | int |
14504 | main () | |
14505 | { | |
ca81d7a0 | 14506 | return EGifPutExtensionLast (); |
503d2be0 AS |
14507 | ; |
14508 | return 0; | |
14509 | } | |
14510 | _ACEOF | |
14511 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
14512 | if { (ac_try="$ac_link" |
14513 | case "(($ac_try" in | |
14514 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14515 | *) ac_try_echo=$ac_try;; | |
14516 | esac | |
14517 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14518 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 14519 | ac_status=$? |
edfaf76d LK |
14520 | grep -v '^ *+' conftest.er1 >conftest.err |
14521 | rm -f conftest.er1 | |
14522 | cat conftest.err >&5 | |
c0d27fcc | 14523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
14524 | (exit $ac_status); } && { |
14525 | test -z "$ac_c_werror_flag" || | |
14526 | test ! -s conftest.err | |
14527 | } && test -s conftest$ac_exeext && | |
14528 | $as_test_x conftest$ac_exeext; then | |
63175cd2 | 14529 | ac_cv_lib_gif_EGifPutExtensionLast=yes |
35996d22 | 14530 | else |
98418dba | 14531 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
14532 | sed 's/^/| /' conftest.$ac_ext >&5 |
14533 | ||
63175cd2 | 14534 | ac_cv_lib_gif_EGifPutExtensionLast=no |
98418dba | 14535 | fi |
ca81d7a0 | 14536 | |
f053c89f | 14537 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 14538 | conftest$ac_exeext conftest.$ac_ext |
98418dba CW |
14539 | LIBS=$ac_check_lib_save_LIBS |
14540 | fi | |
63175cd2 GM |
14541 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5 |
14542 | echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; } | |
14543 | if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then | |
98418dba | 14544 | HAVE_GIF=yes |
9aeb8aaa | 14545 | else |
63175cd2 | 14546 | try_libungif=yes |
98418dba CW |
14547 | fi |
14548 | ||
14549 | fi | |
14550 | ||
c0d27fcc | 14551 | |
9aeb8aaa GM |
14552 | |
14553 | if test "$HAVE_GIF" = yes; then | |
63175cd2 | 14554 | ac_gif_lib_name="-lgif" |
9aeb8aaa GM |
14555 | fi |
14556 | ||
63175cd2 GM |
14557 | # If gif_lib.h but no libgif, try libungif. |
14558 | if test x"$try_libungif" = xyes; then | |
14559 | { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5 | |
14560 | echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; } | |
14561 | if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then | |
9aeb8aaa GM |
14562 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14563 | else | |
14564 | ac_check_lib_save_LIBS=$LIBS | |
63175cd2 | 14565 | LIBS="-lungif $LIBS" |
9aeb8aaa GM |
14566 | cat >conftest.$ac_ext <<_ACEOF |
14567 | /* confdefs.h. */ | |
14568 | _ACEOF | |
14569 | cat confdefs.h >>conftest.$ac_ext | |
14570 | cat >>conftest.$ac_ext <<_ACEOF | |
14571 | /* end confdefs.h. */ | |
14572 | ||
14573 | /* Override any GCC internal prototype to avoid an error. | |
14574 | Use char because int might match the return type of a GCC | |
14575 | builtin and then its argument prototype would still apply. */ | |
14576 | #ifdef __cplusplus | |
14577 | extern "C" | |
14578 | #endif | |
14579 | char EGifPutExtensionLast (); | |
14580 | int | |
14581 | main () | |
14582 | { | |
14583 | return EGifPutExtensionLast (); | |
14584 | ; | |
14585 | return 0; | |
14586 | } | |
14587 | _ACEOF | |
14588 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14589 | if { (ac_try="$ac_link" | |
14590 | case "(($ac_try" in | |
14591 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14592 | *) ac_try_echo=$ac_try;; | |
14593 | esac | |
14594 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14595 | (eval "$ac_link") 2>conftest.er1 | |
14596 | ac_status=$? | |
14597 | grep -v '^ *+' conftest.er1 >conftest.err | |
14598 | rm -f conftest.er1 | |
14599 | cat conftest.err >&5 | |
14600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14601 | (exit $ac_status); } && { | |
14602 | test -z "$ac_c_werror_flag" || | |
14603 | test ! -s conftest.err | |
14604 | } && test -s conftest$ac_exeext && | |
14605 | $as_test_x conftest$ac_exeext; then | |
63175cd2 | 14606 | ac_cv_lib_ungif_EGifPutExtensionLast=yes |
9aeb8aaa GM |
14607 | else |
14608 | echo "$as_me: failed program was:" >&5 | |
14609 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14610 | ||
63175cd2 | 14611 | ac_cv_lib_ungif_EGifPutExtensionLast=no |
98418dba CW |
14612 | fi |
14613 | ||
9aeb8aaa GM |
14614 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
14615 | conftest$ac_exeext conftest.$ac_ext | |
14616 | LIBS=$ac_check_lib_save_LIBS | |
14617 | fi | |
63175cd2 GM |
14618 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5 |
14619 | echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; } | |
14620 | if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then | |
9aeb8aaa | 14621 | HAVE_GIF=yes |
98418dba CW |
14622 | fi |
14623 | ||
c0d27fcc | 14624 | |
9aeb8aaa GM |
14625 | if test "$HAVE_GIF" = yes; then |
14626 | ||
14627 | cat >>confdefs.h <<\_ACEOF | |
63175cd2 | 14628 | #define LIBGIF -lungif |
9aeb8aaa GM |
14629 | _ACEOF |
14630 | ||
63175cd2 | 14631 | ac_gif_lib_name="-lungif" |
9aeb8aaa | 14632 | fi |
98418dba CW |
14633 | fi |
14634 | ||
14635 | if test "${HAVE_GIF}" = "yes"; then | |
b936fae4 | 14636 | |
c0d27fcc | 14637 | cat >>confdefs.h <<\_ACEOF |
98418dba | 14638 | #define HAVE_GIF 1 |
c0d27fcc | 14639 | _ACEOF |
98418dba CW |
14640 | |
14641 | fi | |
14642 | fi | |
14643 | ||
5afbeb22 JD |
14644 | if test "${HAVE_X11}" = "yes"; then |
14645 | MISSING="" | |
14646 | WITH_NO="" | |
14647 | test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" && | |
14648 | MISSING="libXpm" && WITH_NO="--with-xpm=no" | |
14649 | test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" && | |
14650 | MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no" | |
14651 | test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" && | |
14652 | MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no" | |
14653 | test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" && | |
14654 | MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no" | |
14655 | test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" && | |
14656 | MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no" | |
14657 | ||
14658 | if test "X${MISSING}" != X; then | |
1bb9a689 | 14659 | { { echo "$as_me:$LINENO: error: The following required libraries were not found: |
5afbeb22 | 14660 | $MISSING |
86e73516 | 14661 | Maybe some development libraries/packages are missing? |
5afbeb22 JD |
14662 | If you don't want to link with them give |
14663 | $WITH_NO | |
14664 | as options to configure" >&5 | |
1bb9a689 | 14665 | echo "$as_me: error: The following required libraries were not found: |
5afbeb22 | 14666 | $MISSING |
86e73516 | 14667 | Maybe some development libraries/packages are missing? |
5afbeb22 JD |
14668 | If you don't want to link with them give |
14669 | $WITH_NO | |
14670 | as options to configure" >&2;} | |
86e73516 | 14671 | { (exit 1); exit 1; }; } |
98418dba CW |
14672 | fi |
14673 | fi | |
14674 | ||
79011b82 NR |
14675 | ### Use -lgpm if available, unless `--with-gpm=no'. |
14676 | HAVE_GPM=no | |
14677 | if test "${with_gpm}" != "no"; then | |
14678 | if test "${ac_cv_header_gpm_h+set}" = set; then | |
14679 | { echo "$as_me:$LINENO: checking for gpm.h" >&5 | |
14680 | echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; } | |
14681 | if test "${ac_cv_header_gpm_h+set}" = set; then | |
14682 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14683 | fi | |
14684 | { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5 | |
14685 | echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; } | |
14686 | else | |
14687 | # Is the header compilable? | |
14688 | { echo "$as_me:$LINENO: checking gpm.h usability" >&5 | |
14689 | echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; } | |
14690 | cat >conftest.$ac_ext <<_ACEOF | |
14691 | /* confdefs.h. */ | |
14692 | _ACEOF | |
14693 | cat confdefs.h >>conftest.$ac_ext | |
14694 | cat >>conftest.$ac_ext <<_ACEOF | |
14695 | /* end confdefs.h. */ | |
14696 | $ac_includes_default | |
14697 | #include <gpm.h> | |
14698 | _ACEOF | |
14699 | rm -f conftest.$ac_objext | |
14700 | if { (ac_try="$ac_compile" | |
14701 | case "(($ac_try" in | |
14702 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14703 | *) ac_try_echo=$ac_try;; | |
14704 | esac | |
14705 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14706 | (eval "$ac_compile") 2>conftest.er1 | |
14707 | ac_status=$? | |
14708 | grep -v '^ *+' conftest.er1 >conftest.err | |
14709 | rm -f conftest.er1 | |
14710 | cat conftest.err >&5 | |
14711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14712 | (exit $ac_status); } && { | |
14713 | test -z "$ac_c_werror_flag" || | |
14714 | test ! -s conftest.err | |
14715 | } && test -s conftest.$ac_objext; then | |
14716 | ac_header_compiler=yes | |
14717 | else | |
14718 | echo "$as_me: failed program was:" >&5 | |
14719 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14720 | ||
14721 | ac_header_compiler=no | |
14722 | fi | |
14723 | ||
14724 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14725 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
14726 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
14727 | ||
14728 | # Is the header present? | |
14729 | { echo "$as_me:$LINENO: checking gpm.h presence" >&5 | |
14730 | echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; } | |
14731 | cat >conftest.$ac_ext <<_ACEOF | |
14732 | /* confdefs.h. */ | |
14733 | _ACEOF | |
14734 | cat confdefs.h >>conftest.$ac_ext | |
14735 | cat >>conftest.$ac_ext <<_ACEOF | |
14736 | /* end confdefs.h. */ | |
14737 | #include <gpm.h> | |
14738 | _ACEOF | |
14739 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
14740 | case "(($ac_try" in | |
14741 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14742 | *) ac_try_echo=$ac_try;; | |
14743 | esac | |
14744 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14745 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
14746 | ac_status=$? | |
14747 | grep -v '^ *+' conftest.er1 >conftest.err | |
14748 | rm -f conftest.er1 | |
14749 | cat conftest.err >&5 | |
14750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14751 | (exit $ac_status); } >/dev/null && { | |
14752 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
14753 | test ! -s conftest.err | |
14754 | }; then | |
14755 | ac_header_preproc=yes | |
14756 | else | |
14757 | echo "$as_me: failed program was:" >&5 | |
14758 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14759 | ||
14760 | ac_header_preproc=no | |
14761 | fi | |
14762 | ||
14763 | rm -f conftest.err conftest.$ac_ext | |
14764 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14765 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
14766 | ||
14767 | # So? What about this header? | |
14768 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
14769 | yes:no: ) | |
14770 | { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
14771 | echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14772 | { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5 | |
14773 | echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;} | |
14774 | ac_header_preproc=yes | |
14775 | ;; | |
14776 | no:yes:* ) | |
14777 | { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5 | |
14778 | echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;} | |
14779 | { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5 | |
14780 | echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;} | |
14781 | { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5 | |
14782 | echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;} | |
14783 | { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5 | |
14784 | echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
14785 | { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5 | |
14786 | echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;} | |
14787 | { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5 | |
14788 | echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;} | |
14789 | ||
14790 | ;; | |
14791 | esac | |
14792 | { echo "$as_me:$LINENO: checking for gpm.h" >&5 | |
14793 | echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; } | |
14794 | if test "${ac_cv_header_gpm_h+set}" = set; then | |
14795 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14796 | else | |
14797 | ac_cv_header_gpm_h=$ac_header_preproc | |
14798 | fi | |
14799 | { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5 | |
14800 | echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; } | |
14801 | ||
14802 | fi | |
14803 | if test $ac_cv_header_gpm_h = yes; then | |
14804 | { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5 | |
14805 | echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; } | |
14806 | if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then | |
14807 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14808 | else | |
14809 | ac_check_lib_save_LIBS=$LIBS | |
14810 | LIBS="-lgpm $LIBS" | |
14811 | cat >conftest.$ac_ext <<_ACEOF | |
14812 | /* confdefs.h. */ | |
14813 | _ACEOF | |
14814 | cat confdefs.h >>conftest.$ac_ext | |
14815 | cat >>conftest.$ac_ext <<_ACEOF | |
14816 | /* end confdefs.h. */ | |
14817 | ||
14818 | /* Override any GCC internal prototype to avoid an error. | |
14819 | Use char because int might match the return type of a GCC | |
14820 | builtin and then its argument prototype would still apply. */ | |
14821 | #ifdef __cplusplus | |
14822 | extern "C" | |
14823 | #endif | |
14824 | char Gpm_Open (); | |
14825 | int | |
14826 | main () | |
14827 | { | |
14828 | return Gpm_Open (); | |
14829 | ; | |
14830 | return 0; | |
14831 | } | |
14832 | _ACEOF | |
14833 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14834 | if { (ac_try="$ac_link" | |
14835 | case "(($ac_try" in | |
14836 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14837 | *) ac_try_echo=$ac_try;; | |
14838 | esac | |
14839 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14840 | (eval "$ac_link") 2>conftest.er1 | |
14841 | ac_status=$? | |
14842 | grep -v '^ *+' conftest.er1 >conftest.err | |
14843 | rm -f conftest.er1 | |
14844 | cat conftest.err >&5 | |
14845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14846 | (exit $ac_status); } && { | |
14847 | test -z "$ac_c_werror_flag" || | |
14848 | test ! -s conftest.err | |
14849 | } && test -s conftest$ac_exeext && | |
14850 | $as_test_x conftest$ac_exeext; then | |
14851 | ac_cv_lib_gpm_Gpm_Open=yes | |
14852 | else | |
14853 | echo "$as_me: failed program was:" >&5 | |
14854 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14855 | ||
14856 | ac_cv_lib_gpm_Gpm_Open=no | |
14857 | fi | |
14858 | ||
14859 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
14860 | conftest$ac_exeext conftest.$ac_ext | |
14861 | LIBS=$ac_check_lib_save_LIBS | |
14862 | fi | |
14863 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5 | |
14864 | echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; } | |
14865 | if test $ac_cv_lib_gpm_Gpm_Open = yes; then | |
14866 | HAVE_GPM=yes | |
14867 | fi | |
14868 | ||
14869 | fi | |
14870 | ||
14871 | ||
14872 | fi | |
14873 | ||
14874 | if test "${HAVE_GPM}" = "yes"; then | |
14875 | ||
14876 | cat >>confdefs.h <<\_ACEOF | |
14877 | #define HAVE_GPM 1 | |
14878 | _ACEOF | |
14879 | ||
14880 | fi | |
14881 | ||
cef11da2 | 14882 | if test "${ac_cv_header_malloc_malloc_h+set}" = set; then |
ca81d7a0 JD |
14883 | { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5 |
14884 | echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; } | |
cef11da2 ST |
14885 | if test "${ac_cv_header_malloc_malloc_h+set}" = set; then |
14886 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14887 | fi | |
ca81d7a0 JD |
14888 | { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5 |
14889 | echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; } | |
cef11da2 ST |
14890 | else |
14891 | # Is the header compilable? | |
ca81d7a0 JD |
14892 | { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5 |
14893 | echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; } | |
cef11da2 ST |
14894 | cat >conftest.$ac_ext <<_ACEOF |
14895 | /* confdefs.h. */ | |
14896 | _ACEOF | |
14897 | cat confdefs.h >>conftest.$ac_ext | |
14898 | cat >>conftest.$ac_ext <<_ACEOF | |
14899 | /* end confdefs.h. */ | |
14900 | $ac_includes_default | |
14901 | #include <malloc/malloc.h> | |
14902 | _ACEOF | |
14903 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
14904 | if { (ac_try="$ac_compile" |
14905 | case "(($ac_try" in | |
14906 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14907 | *) ac_try_echo=$ac_try;; | |
14908 | esac | |
14909 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14910 | (eval "$ac_compile") 2>conftest.er1 | |
cef11da2 | 14911 | ac_status=$? |
edfaf76d LK |
14912 | grep -v '^ *+' conftest.er1 >conftest.err |
14913 | rm -f conftest.er1 | |
14914 | cat conftest.err >&5 | |
cef11da2 | 14915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
c24fa7dc MB |
14916 | (exit $ac_status); } && { |
14917 | test -z "$ac_c_werror_flag" || | |
14918 | test ! -s conftest.err | |
14919 | } && test -s conftest.$ac_objext; then | |
cef11da2 ST |
14920 | ac_header_compiler=yes |
14921 | else | |
14922 | echo "$as_me: failed program was:" >&5 | |
14923 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14924 | ||
ca81d7a0 | 14925 | ac_header_compiler=no |
cef11da2 | 14926 | fi |
ca81d7a0 JD |
14927 | |
14928 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14929 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
14930 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
cef11da2 ST |
14931 | |
14932 | # Is the header present? | |
ca81d7a0 JD |
14933 | { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5 |
14934 | echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; } | |
cef11da2 ST |
14935 | cat >conftest.$ac_ext <<_ACEOF |
14936 | /* confdefs.h. */ | |
14937 | _ACEOF | |
14938 | cat confdefs.h >>conftest.$ac_ext | |
14939 | cat >>conftest.$ac_ext <<_ACEOF | |
14940 | /* end confdefs.h. */ | |
14941 | #include <malloc/malloc.h> | |
14942 | _ACEOF | |
ca81d7a0 JD |
14943 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
14944 | case "(($ac_try" in | |
14945 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14946 | *) ac_try_echo=$ac_try;; | |
14947 | esac | |
14948 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14949 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
cef11da2 ST |
14950 | ac_status=$? |
14951 | grep -v '^ *+' conftest.er1 >conftest.err | |
14952 | rm -f conftest.er1 | |
14953 | cat conftest.err >&5 | |
14954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f053c89f CY |
14955 | (exit $ac_status); } >/dev/null && { |
14956 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
14957 | test ! -s conftest.err | |
14958 | }; then | |
cef11da2 ST |
14959 | ac_header_preproc=yes |
14960 | else | |
14961 | echo "$as_me: failed program was:" >&5 | |
14962 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14963 | ||
14964 | ac_header_preproc=no | |
14965 | fi | |
ca81d7a0 | 14966 | |
cef11da2 | 14967 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
14968 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
14969 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
cef11da2 ST |
14970 | |
14971 | # So? What about this header? | |
edfaf76d LK |
14972 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
14973 | yes:no: ) | |
cef11da2 ST |
14974 | { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
14975 | echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
14976 | { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5 |
14977 | echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;} | |
14978 | ac_header_preproc=yes | |
cef11da2 | 14979 | ;; |
edfaf76d | 14980 | no:yes:* ) |
cef11da2 ST |
14981 | { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5 |
14982 | echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;} | |
edfaf76d LK |
14983 | { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5 |
14984 | echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;} | |
14985 | { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5 | |
14986 | echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;} | |
14987 | { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5 | |
14988 | echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
cef11da2 ST |
14989 | { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5 |
14990 | echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;} | |
edfaf76d LK |
14991 | { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5 |
14992 | echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 14993 | |
cef11da2 ST |
14994 | ;; |
14995 | esac | |
ca81d7a0 JD |
14996 | { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5 |
14997 | echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; } | |
cef11da2 ST |
14998 | if test "${ac_cv_header_malloc_malloc_h+set}" = set; then |
14999 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15000 | else | |
15001 | ac_cv_header_malloc_malloc_h=$ac_header_preproc | |
7c9e5167 | 15002 | fi |
ca81d7a0 JD |
15003 | { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5 |
15004 | echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; } | |
cef11da2 | 15005 | |
7c9e5167 | 15006 | fi |
cef11da2 ST |
15007 | if test $ac_cv_header_malloc_malloc_h = yes; then |
15008 | ||
15009 | cat >>confdefs.h <<\_ACEOF | |
15010 | #define HAVE_MALLOC_MALLOC_H 1 | |
15011 | _ACEOF | |
15012 | ||
7c9e5167 JD |
15013 | fi |
15014 | ||
cef11da2 ST |
15015 | |
15016 | ||
5d6da11e | 15017 | ### Use Mac OS X Carbon API to implement GUI. |
e0f712ba | 15018 | if test "${HAVE_CARBON}" = "yes"; then |
7c9e5167 JD |
15019 | |
15020 | cat >>confdefs.h <<\_ACEOF | |
e0f712ba | 15021 | #define HAVE_CARBON 1 |
7c9e5167 JD |
15022 | _ACEOF |
15023 | ||
dbdbca09 YM |
15024 | |
15025 | for ac_header in AvailabilityMacros.h | |
15026 | do | |
15027 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15028 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
15029 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15030 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
15031 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
15032 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15033 | fi | |
15034 | ac_res=`eval echo '${'$as_ac_Header'}'` | |
15035 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15036 | echo "${ECHO_T}$ac_res" >&6; } | |
15037 | else | |
15038 | # Is the header compilable? | |
15039 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15040 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
15041 | cat >conftest.$ac_ext <<_ACEOF | |
15042 | /* confdefs.h. */ | |
15043 | _ACEOF | |
15044 | cat confdefs.h >>conftest.$ac_ext | |
15045 | cat >>conftest.$ac_ext <<_ACEOF | |
15046 | /* end confdefs.h. */ | |
15047 | $ac_includes_default | |
15048 | #include <$ac_header> | |
15049 | _ACEOF | |
15050 | rm -f conftest.$ac_objext | |
15051 | if { (ac_try="$ac_compile" | |
15052 | case "(($ac_try" in | |
15053 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15054 | *) ac_try_echo=$ac_try;; | |
15055 | esac | |
15056 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15057 | (eval "$ac_compile") 2>conftest.er1 | |
15058 | ac_status=$? | |
15059 | grep -v '^ *+' conftest.er1 >conftest.err | |
15060 | rm -f conftest.er1 | |
15061 | cat conftest.err >&5 | |
15062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15063 | (exit $ac_status); } && { | |
15064 | test -z "$ac_c_werror_flag" || | |
15065 | test ! -s conftest.err | |
15066 | } && test -s conftest.$ac_objext; then | |
15067 | ac_header_compiler=yes | |
15068 | else | |
15069 | echo "$as_me: failed program was:" >&5 | |
15070 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15071 | ||
15072 | ac_header_compiler=no | |
15073 | fi | |
15074 | ||
15075 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15076 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
15077 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
15078 | ||
15079 | # Is the header present? | |
15080 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15081 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
15082 | cat >conftest.$ac_ext <<_ACEOF | |
15083 | /* confdefs.h. */ | |
15084 | _ACEOF | |
15085 | cat confdefs.h >>conftest.$ac_ext | |
15086 | cat >>conftest.$ac_ext <<_ACEOF | |
15087 | /* end confdefs.h. */ | |
15088 | #include <$ac_header> | |
15089 | _ACEOF | |
15090 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
15091 | case "(($ac_try" in | |
15092 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15093 | *) ac_try_echo=$ac_try;; | |
15094 | esac | |
15095 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15096 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
15097 | ac_status=$? | |
15098 | grep -v '^ *+' conftest.er1 >conftest.err | |
15099 | rm -f conftest.er1 | |
15100 | cat conftest.err >&5 | |
15101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15102 | (exit $ac_status); } >/dev/null && { | |
15103 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
15104 | test ! -s conftest.err | |
15105 | }; then | |
15106 | ac_header_preproc=yes | |
15107 | else | |
15108 | echo "$as_me: failed program was:" >&5 | |
15109 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15110 | ||
15111 | ac_header_preproc=no | |
15112 | fi | |
15113 | ||
15114 | rm -f conftest.err conftest.$ac_ext | |
15115 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15116 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
15117 | ||
15118 | # So? What about this header? | |
15119 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
15120 | yes:no: ) | |
15121 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
15122 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15123 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
15124 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15125 | ac_header_preproc=yes | |
15126 | ;; | |
15127 | no:yes:* ) | |
15128 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
15129 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15130 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15131 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15132 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15133 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15134 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15135 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
15136 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15137 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
15138 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
15139 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
15140 | ||
15141 | ;; | |
15142 | esac | |
15143 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15144 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
15145 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
15146 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15147 | else | |
15148 | eval "$as_ac_Header=\$ac_header_preproc" | |
15149 | fi | |
15150 | ac_res=`eval echo '${'$as_ac_Header'}'` | |
15151 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15152 | echo "${ECHO_T}$ac_res" >&6; } | |
15153 | ||
15154 | fi | |
15155 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
15156 | cat >>confdefs.h <<_ACEOF | |
15157 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15158 | _ACEOF | |
15159 | ||
15160 | fi | |
15161 | ||
15162 | done | |
15163 | ||
6a3a24fa JD |
15164 | ## Specify the install directory |
15165 | carbon_appdir= | |
15166 | if test "${carbon_appdir_x}" != ""; then | |
15167 | case ${carbon_appdir_x} in | |
15168 | y | ye | yes) carbon_appdir=/Applications ;; | |
15169 | * ) carbon_appdir=${carbon_appdir_x} ;; | |
15170 | esac | |
7c9e5167 | 15171 | fi |
8f417b3b AS |
15172 | # We also have mouse menus. |
15173 | HAVE_MENUS=yes | |
e0f712ba AC |
15174 | fi |
15175 | ||
98418dba CW |
15176 | ### Use session management (-lSM -lICE) if available |
15177 | HAVE_X_SM=no | |
15178 | if test "${HAVE_X11}" = "yes"; then | |
c0d27fcc | 15179 | if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then |
ca81d7a0 JD |
15180 | { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5 |
15181 | echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; } | |
98418dba CW |
15182 | if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then |
15183 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc | 15184 | fi |
ca81d7a0 JD |
15185 | { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5 |
15186 | echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; } | |
503d2be0 | 15187 | else |
c0d27fcc | 15188 | # Is the header compilable? |
ca81d7a0 JD |
15189 | { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5 |
15190 | echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; } | |
c0d27fcc | 15191 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
15192 | /* confdefs.h. */ |
15193 | _ACEOF | |
15194 | cat confdefs.h >>conftest.$ac_ext | |
15195 | cat >>conftest.$ac_ext <<_ACEOF | |
15196 | /* end confdefs.h. */ | |
c0d27fcc MR |
15197 | $ac_includes_default |
15198 | #include <X11/SM/SMlib.h> | |
15199 | _ACEOF | |
15200 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
15201 | if { (ac_try="$ac_compile" |
15202 | case "(($ac_try" in | |
15203 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15204 | *) ac_try_echo=$ac_try;; | |
15205 | esac | |
15206 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15207 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 15208 | ac_status=$? |
edfaf76d LK |
15209 | grep -v '^ *+' conftest.er1 >conftest.err |
15210 | rm -f conftest.er1 | |
15211 | cat conftest.err >&5 | |
c0d27fcc | 15212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
15213 | (exit $ac_status); } && { |
15214 | test -z "$ac_c_werror_flag" || | |
15215 | test ! -s conftest.err | |
15216 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
15217 | ac_header_compiler=yes |
15218 | else | |
15219 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15220 | sed 's/^/| /' conftest.$ac_ext >&5 |
15221 | ||
ca81d7a0 | 15222 | ac_header_compiler=no |
c0d27fcc | 15223 | fi |
ca81d7a0 JD |
15224 | |
15225 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15226 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
15227 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
15228 | |
15229 | # Is the header present? | |
ca81d7a0 JD |
15230 | { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5 |
15231 | echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; } | |
c0d27fcc | 15232 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
15233 | /* confdefs.h. */ |
15234 | _ACEOF | |
15235 | cat confdefs.h >>conftest.$ac_ext | |
15236 | cat >>conftest.$ac_ext <<_ACEOF | |
15237 | /* end confdefs.h. */ | |
98418dba CW |
15238 | #include <X11/SM/SMlib.h> |
15239 | _ACEOF | |
ca81d7a0 JD |
15240 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
15241 | case "(($ac_try" in | |
15242 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15243 | *) ac_try_echo=$ac_try;; | |
15244 | esac | |
15245 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15246 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
98418dba | 15247 | ac_status=$? |
6bae0ccf | 15248 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
15249 | rm -f conftest.er1 |
15250 | cat conftest.err >&5 | |
c0d27fcc | 15251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
15252 | (exit $ac_status); } >/dev/null && { |
15253 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
15254 | test ! -s conftest.err | |
15255 | }; then | |
c0d27fcc | 15256 | ac_header_preproc=yes |
98418dba CW |
15257 | else |
15258 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15259 | sed 's/^/| /' conftest.$ac_ext >&5 |
15260 | ||
c0d27fcc | 15261 | ac_header_preproc=no |
98418dba | 15262 | fi |
ca81d7a0 | 15263 | |
98418dba | 15264 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
15265 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15266 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
15267 | |
15268 | # So? What about this header? | |
edfaf76d LK |
15269 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15270 | yes:no: ) | |
c0d27fcc MR |
15271 | { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
15272 | echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
15273 | { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5 |
15274 | echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;} | |
15275 | ac_header_preproc=yes | |
19650fd6 | 15276 | ;; |
edfaf76d | 15277 | no:yes:* ) |
c0d27fcc MR |
15278 | { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5 |
15279 | echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;} | |
edfaf76d LK |
15280 | { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5 |
15281 | echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;} | |
15282 | { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5 | |
15283 | echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;} | |
15284 | { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5 | |
15285 | echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 15286 | { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 15287 | echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
15288 | { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5 |
15289 | echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 15290 | |
19650fd6 | 15291 | ;; |
c0d27fcc | 15292 | esac |
ca81d7a0 JD |
15293 | { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5 |
15294 | echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; } | |
c0d27fcc MR |
15295 | if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then |
15296 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15297 | else | |
15298 | ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc | |
73b77ee5 | 15299 | fi |
ca81d7a0 JD |
15300 | { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5 |
15301 | echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; } | |
c0d27fcc MR |
15302 | |
15303 | fi | |
98418dba | 15304 | if test $ac_cv_header_X11_SM_SMlib_h = yes; then |
ca81d7a0 JD |
15305 | { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5 |
15306 | echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; } | |
98418dba | 15307 | if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then |
503d2be0 | 15308 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
73b77ee5 | 15309 | else |
503d2be0 | 15310 | ac_check_lib_save_LIBS=$LIBS |
1660500f | 15311 | LIBS="-lSM -lICE $LIBS" |
503d2be0 | 15312 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
15313 | /* confdefs.h. */ |
15314 | _ACEOF | |
15315 | cat confdefs.h >>conftest.$ac_ext | |
15316 | cat >>conftest.$ac_ext <<_ACEOF | |
15317 | /* end confdefs.h. */ | |
503d2be0 | 15318 | |
ca81d7a0 JD |
15319 | /* Override any GCC internal prototype to avoid an error. |
15320 | Use char because int might match the return type of a GCC | |
15321 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
15322 | #ifdef __cplusplus |
15323 | extern "C" | |
15324 | #endif | |
98418dba | 15325 | char SmcOpenConnection (); |
503d2be0 AS |
15326 | int |
15327 | main () | |
15328 | { | |
ca81d7a0 | 15329 | return SmcOpenConnection (); |
503d2be0 AS |
15330 | ; |
15331 | return 0; | |
15332 | } | |
15333 | _ACEOF | |
15334 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
15335 | if { (ac_try="$ac_link" |
15336 | case "(($ac_try" in | |
15337 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15338 | *) ac_try_echo=$ac_try;; | |
15339 | esac | |
15340 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15341 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 15342 | ac_status=$? |
edfaf76d LK |
15343 | grep -v '^ *+' conftest.er1 >conftest.err |
15344 | rm -f conftest.er1 | |
15345 | cat conftest.err >&5 | |
c0d27fcc | 15346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
15347 | (exit $ac_status); } && { |
15348 | test -z "$ac_c_werror_flag" || | |
15349 | test ! -s conftest.err | |
15350 | } && test -s conftest$ac_exeext && | |
15351 | $as_test_x conftest$ac_exeext; then | |
98418dba | 15352 | ac_cv_lib_SM_SmcOpenConnection=yes |
503d2be0 AS |
15353 | else |
15354 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15355 | sed 's/^/| /' conftest.$ac_ext >&5 |
15356 | ||
ca81d7a0 | 15357 | ac_cv_lib_SM_SmcOpenConnection=no |
503d2be0 | 15358 | fi |
ca81d7a0 | 15359 | |
f053c89f | 15360 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 15361 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 AS |
15362 | LIBS=$ac_check_lib_save_LIBS |
15363 | fi | |
ca81d7a0 JD |
15364 | { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5 |
15365 | echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; } | |
98418dba CW |
15366 | if test $ac_cv_lib_SM_SmcOpenConnection = yes; then |
15367 | HAVE_X_SM=yes | |
73b77ee5 GM |
15368 | fi |
15369 | ||
73b77ee5 | 15370 | fi |
73b77ee5 | 15371 | |
c0d27fcc MR |
15372 | |
15373 | ||
98418dba | 15374 | if test "${HAVE_X_SM}" = "yes"; then |
b936fae4 | 15375 | |
c0d27fcc | 15376 | cat >>confdefs.h <<\_ACEOF |
98418dba | 15377 | #define HAVE_X_SM 1 |
c0d27fcc | 15378 | _ACEOF |
73b77ee5 | 15379 | |
98418dba CW |
15380 | case "$LIBS" in |
15381 | *-lSM*) ;; | |
15382 | *) LIBS="-lSM -lICE $LIBS" ;; | |
15383 | esac | |
73b77ee5 | 15384 | fi |
98418dba | 15385 | fi |
73b77ee5 | 15386 | |
98418dba | 15387 | # If netdb.h doesn't declare h_errno, we must declare it by hand. |
ca81d7a0 JD |
15388 | { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5 |
15389 | echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; } | |
98418dba CW |
15390 | if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then |
15391 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15392 | else | |
15393 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
15394 | /* confdefs.h. */ |
15395 | _ACEOF | |
15396 | cat confdefs.h >>conftest.$ac_ext | |
15397 | cat >>conftest.$ac_ext <<_ACEOF | |
15398 | /* end confdefs.h. */ | |
98418dba | 15399 | #include <netdb.h> |
503d2be0 AS |
15400 | int |
15401 | main () | |
15402 | { | |
98418dba | 15403 | return h_errno; |
503d2be0 AS |
15404 | ; |
15405 | return 0; | |
15406 | } | |
15407 | _ACEOF | |
15408 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
15409 | if { (ac_try="$ac_link" |
15410 | case "(($ac_try" in | |
15411 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15412 | *) ac_try_echo=$ac_try;; | |
15413 | esac | |
15414 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15415 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 15416 | ac_status=$? |
edfaf76d LK |
15417 | grep -v '^ *+' conftest.er1 >conftest.err |
15418 | rm -f conftest.er1 | |
15419 | cat conftest.err >&5 | |
c0d27fcc | 15420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
15421 | (exit $ac_status); } && { |
15422 | test -z "$ac_c_werror_flag" || | |
15423 | test ! -s conftest.err | |
15424 | } && test -s conftest$ac_exeext && | |
15425 | $as_test_x conftest$ac_exeext; then | |
98418dba | 15426 | emacs_cv_netdb_declares_h_errno=yes |
73b77ee5 | 15427 | else |
503d2be0 | 15428 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
15429 | sed 's/^/| /' conftest.$ac_ext >&5 |
15430 | ||
ca81d7a0 | 15431 | emacs_cv_netdb_declares_h_errno=no |
73b77ee5 | 15432 | fi |
ca81d7a0 | 15433 | |
f053c89f | 15434 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 15435 | conftest$ac_exeext conftest.$ac_ext |
98418dba | 15436 | fi |
ca81d7a0 JD |
15437 | { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5 |
15438 | echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; } | |
98418dba | 15439 | if test $emacs_cv_netdb_declares_h_errno = yes; then |
b936fae4 | 15440 | |
c0d27fcc | 15441 | cat >>confdefs.h <<\_ACEOF |
98418dba | 15442 | #define HAVE_H_ERRNO 1 |
c0d27fcc | 15443 | _ACEOF |
73b77ee5 | 15444 | |
98418dba CW |
15445 | fi |
15446 | ||
15447 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
15448 | # for constant arguments. Useless! | |
ca81d7a0 JD |
15449 | { echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
15450 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; } | |
98418dba CW |
15451 | if test "${ac_cv_working_alloca_h+set}" = set; then |
15452 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15453 | else | |
15454 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
15455 | /* confdefs.h. */ |
15456 | _ACEOF | |
15457 | cat confdefs.h >>conftest.$ac_ext | |
15458 | cat >>conftest.$ac_ext <<_ACEOF | |
15459 | /* end confdefs.h. */ | |
98418dba | 15460 | #include <alloca.h> |
503d2be0 AS |
15461 | int |
15462 | main () | |
15463 | { | |
98418dba | 15464 | char *p = (char *) alloca (2 * sizeof (int)); |
ca81d7a0 | 15465 | if (p) return 0; |
503d2be0 AS |
15466 | ; |
15467 | return 0; | |
15468 | } | |
15469 | _ACEOF | |
15470 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
15471 | if { (ac_try="$ac_link" |
15472 | case "(($ac_try" in | |
15473 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15474 | *) ac_try_echo=$ac_try;; | |
15475 | esac | |
15476 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15477 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 15478 | ac_status=$? |
edfaf76d LK |
15479 | grep -v '^ *+' conftest.er1 >conftest.err |
15480 | rm -f conftest.er1 | |
15481 | cat conftest.err >&5 | |
c0d27fcc | 15482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
15483 | (exit $ac_status); } && { |
15484 | test -z "$ac_c_werror_flag" || | |
15485 | test ! -s conftest.err | |
15486 | } && test -s conftest$ac_exeext && | |
15487 | $as_test_x conftest$ac_exeext; then | |
98418dba | 15488 | ac_cv_working_alloca_h=yes |
73b77ee5 | 15489 | else |
503d2be0 | 15490 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
15491 | sed 's/^/| /' conftest.$ac_ext >&5 |
15492 | ||
ca81d7a0 | 15493 | ac_cv_working_alloca_h=no |
73b77ee5 | 15494 | fi |
ca81d7a0 | 15495 | |
f053c89f | 15496 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 15497 | conftest$ac_exeext conftest.$ac_ext |
98418dba | 15498 | fi |
ca81d7a0 JD |
15499 | { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
15500 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; } | |
98418dba | 15501 | if test $ac_cv_working_alloca_h = yes; then |
73b77ee5 | 15502 | |
c0d27fcc | 15503 | cat >>confdefs.h <<\_ACEOF |
98418dba | 15504 | #define HAVE_ALLOCA_H 1 |
c0d27fcc | 15505 | _ACEOF |
98418dba CW |
15506 | |
15507 | fi | |
15508 | ||
ca81d7a0 JD |
15509 | { echo "$as_me:$LINENO: checking for alloca" >&5 |
15510 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6; } | |
98418dba CW |
15511 | if test "${ac_cv_func_alloca_works+set}" = set; then |
15512 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15513 | else | |
503d2be0 | 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. */ | |
98418dba CW |
15520 | #ifdef __GNUC__ |
15521 | # define alloca __builtin_alloca | |
15522 | #else | |
15523 | # ifdef _MSC_VER | |
15524 | # include <malloc.h> | |
15525 | # define alloca _alloca | |
15526 | # else | |
f053c89f | 15527 | # ifdef HAVE_ALLOCA_H |
98418dba CW |
15528 | # include <alloca.h> |
15529 | # else | |
15530 | # ifdef _AIX | |
15531 | #pragma alloca | |
15532 | # else | |
15533 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
15534 | char *alloca (); | |
15535 | # endif | |
15536 | # endif | |
15537 | # endif | |
15538 | # endif | |
15539 | #endif | |
15540 | ||
503d2be0 AS |
15541 | int |
15542 | main () | |
15543 | { | |
98418dba | 15544 | char *p = (char *) alloca (1); |
ca81d7a0 | 15545 | if (p) return 0; |
503d2be0 AS |
15546 | ; |
15547 | return 0; | |
15548 | } | |
15549 | _ACEOF | |
15550 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
15551 | if { (ac_try="$ac_link" |
15552 | case "(($ac_try" in | |
15553 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15554 | *) ac_try_echo=$ac_try;; | |
15555 | esac | |
15556 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15557 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 15558 | ac_status=$? |
edfaf76d LK |
15559 | grep -v '^ *+' conftest.er1 >conftest.err |
15560 | rm -f conftest.er1 | |
15561 | cat conftest.err >&5 | |
c0d27fcc | 15562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
15563 | (exit $ac_status); } && { |
15564 | test -z "$ac_c_werror_flag" || | |
15565 | test ! -s conftest.err | |
15566 | } && test -s conftest$ac_exeext && | |
15567 | $as_test_x conftest$ac_exeext; then | |
98418dba | 15568 | ac_cv_func_alloca_works=yes |
ac95a621 | 15569 | else |
503d2be0 | 15570 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
15571 | sed 's/^/| /' conftest.$ac_ext >&5 |
15572 | ||
ca81d7a0 | 15573 | ac_cv_func_alloca_works=no |
ac95a621 | 15574 | fi |
ca81d7a0 | 15575 | |
f053c89f | 15576 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 15577 | conftest$ac_exeext conftest.$ac_ext |
98418dba | 15578 | fi |
ca81d7a0 JD |
15579 | { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
15580 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; } | |
ac95a621 | 15581 | |
98418dba CW |
15582 | if test $ac_cv_func_alloca_works = yes; then |
15583 | ||
c0d27fcc | 15584 | cat >>confdefs.h <<\_ACEOF |
98418dba | 15585 | #define HAVE_ALLOCA 1 |
c0d27fcc | 15586 | _ACEOF |
98418dba CW |
15587 | |
15588 | else | |
15589 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
15590 | # that cause trouble. Some versions do not even contain alloca or | |
15591 | # contain a buggy version. If you still want to use their alloca, | |
15592 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
15593 | ||
ca81d7a0 | 15594 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
98418dba | 15595 | |
c0d27fcc | 15596 | cat >>confdefs.h <<\_ACEOF |
98418dba | 15597 | #define C_ALLOCA 1 |
c0d27fcc | 15598 | _ACEOF |
98418dba | 15599 | |
c0d27fcc | 15600 | |
ca81d7a0 JD |
15601 | { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
15602 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; } | |
98418dba CW |
15603 | if test "${ac_cv_os_cray+set}" = set; then |
15604 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15605 | else | |
15606 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
15607 | /* confdefs.h. */ |
15608 | _ACEOF | |
15609 | cat confdefs.h >>conftest.$ac_ext | |
15610 | cat >>conftest.$ac_ext <<_ACEOF | |
15611 | /* end confdefs.h. */ | |
ca81d7a0 | 15612 | #if defined CRAY && ! defined CRAY2 |
98418dba CW |
15613 | webecray |
15614 | #else | |
15615 | wenotbecray | |
15616 | #endif | |
15617 | ||
15618 | _ACEOF | |
15619 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6bae0ccf | 15620 | $EGREP "webecray" >/dev/null 2>&1; then |
98418dba CW |
15621 | ac_cv_os_cray=yes |
15622 | else | |
15623 | ac_cv_os_cray=no | |
15624 | fi | |
15625 | rm -f conftest* | |
ac95a621 | 15626 | |
98418dba | 15627 | fi |
ca81d7a0 JD |
15628 | { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
15629 | echo "${ECHO_T}$ac_cv_os_cray" >&6; } | |
98418dba CW |
15630 | if test $ac_cv_os_cray = yes; then |
15631 | for ac_func in _getb67 GETB67 getb67; do | |
15632 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
ca81d7a0 JD |
15633 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
15634 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
15635 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 15636 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
73b77ee5 | 15637 | else |
503d2be0 | 15638 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
15639 | /* confdefs.h. */ |
15640 | _ACEOF | |
15641 | cat confdefs.h >>conftest.$ac_ext | |
15642 | cat >>conftest.$ac_ext <<_ACEOF | |
15643 | /* end confdefs.h. */ | |
edfaf76d LK |
15644 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
15645 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
15646 | #define $ac_func innocuous_$ac_func | |
15647 | ||
73b77ee5 | 15648 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
15649 | which can conflict with char $ac_func (); below. |
15650 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
15651 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 15652 | |
19650fd6 AS |
15653 | #ifdef __STDC__ |
15654 | # include <limits.h> | |
15655 | #else | |
15656 | # include <assert.h> | |
15657 | #endif | |
edfaf76d LK |
15658 | |
15659 | #undef $ac_func | |
15660 | ||
ca81d7a0 JD |
15661 | /* Override any GCC internal prototype to avoid an error. |
15662 | Use char because int might match the return type of a GCC | |
15663 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
15664 | #ifdef __cplusplus |
15665 | extern "C" | |
15666 | #endif | |
503d2be0 | 15667 | char $ac_func (); |
73b77ee5 GM |
15668 | /* The GNU C library defines this for functions which it implements |
15669 | to always fail with ENOSYS. Some functions are actually named | |
15670 | something starting with __ and the normal name is an alias. */ | |
ca81d7a0 | 15671 | #if defined __stub_$ac_func || defined __stub___$ac_func |
73b77ee5 | 15672 | choke me |
73b77ee5 GM |
15673 | #endif |
15674 | ||
19650fd6 AS |
15675 | int |
15676 | main () | |
15677 | { | |
ca81d7a0 | 15678 | return $ac_func (); |
503d2be0 AS |
15679 | ; |
15680 | return 0; | |
15681 | } | |
15682 | _ACEOF | |
15683 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
15684 | if { (ac_try="$ac_link" |
15685 | case "(($ac_try" in | |
15686 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15687 | *) ac_try_echo=$ac_try;; | |
15688 | esac | |
15689 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15690 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 15691 | ac_status=$? |
edfaf76d LK |
15692 | grep -v '^ *+' conftest.er1 >conftest.err |
15693 | rm -f conftest.er1 | |
15694 | cat conftest.err >&5 | |
c0d27fcc | 15695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
15696 | (exit $ac_status); } && { |
15697 | test -z "$ac_c_werror_flag" || | |
15698 | test ! -s conftest.err | |
15699 | } && test -s conftest$ac_exeext && | |
15700 | $as_test_x conftest$ac_exeext; then | |
503d2be0 AS |
15701 | eval "$as_ac_var=yes" |
15702 | else | |
15703 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15704 | sed 's/^/| /' conftest.$ac_ext >&5 |
15705 | ||
ca81d7a0 | 15706 | eval "$as_ac_var=no" |
503d2be0 | 15707 | fi |
ca81d7a0 | 15708 | |
f053c89f | 15709 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 15710 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 | 15711 | fi |
ca81d7a0 JD |
15712 | ac_res=`eval echo '${'$as_ac_var'}'` |
15713 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15714 | echo "${ECHO_T}$ac_res" >&6; } | |
503d2be0 | 15715 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
73b77ee5 | 15716 | |
c0d27fcc | 15717 | cat >>confdefs.h <<_ACEOF |
98418dba | 15718 | #define CRAY_STACKSEG_END $ac_func |
c0d27fcc | 15719 | _ACEOF |
98418dba CW |
15720 | |
15721 | break | |
73b77ee5 | 15722 | fi |
73b77ee5 | 15723 | |
98418dba | 15724 | done |
73b77ee5 GM |
15725 | fi |
15726 | ||
ca81d7a0 JD |
15727 | { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
15728 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; } | |
98418dba | 15729 | if test "${ac_cv_c_stack_direction+set}" = set; then |
503d2be0 | 15730 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
98418dba CW |
15731 | else |
15732 | if test "$cross_compiling" = yes; then | |
15733 | ac_cv_c_stack_direction=0 | |
73b77ee5 | 15734 | else |
503d2be0 | 15735 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
15736 | /* confdefs.h. */ |
15737 | _ACEOF | |
15738 | cat confdefs.h >>conftest.$ac_ext | |
15739 | cat >>conftest.$ac_ext <<_ACEOF | |
15740 | /* end confdefs.h. */ | |
ca81d7a0 | 15741 | $ac_includes_default |
503d2be0 | 15742 | int |
98418dba | 15743 | find_stack_direction () |
503d2be0 | 15744 | { |
98418dba CW |
15745 | static char *addr = 0; |
15746 | auto char dummy; | |
15747 | if (addr == 0) | |
15748 | { | |
15749 | addr = &dummy; | |
15750 | return find_stack_direction (); | |
15751 | } | |
73b77ee5 | 15752 | else |
98418dba CW |
15753 | return (&dummy > addr) ? 1 : -1; |
15754 | } | |
ba4481b5 | 15755 | |
503d2be0 AS |
15756 | int |
15757 | main () | |
15758 | { | |
ca81d7a0 | 15759 | return find_stack_direction () < 0; |
503d2be0 AS |
15760 | } |
15761 | _ACEOF | |
98418dba | 15762 | rm -f conftest$ac_exeext |
ca81d7a0 JD |
15763 | if { (ac_try="$ac_link" |
15764 | case "(($ac_try" in | |
15765 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15766 | *) ac_try_echo=$ac_try;; | |
15767 | esac | |
15768 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15769 | (eval "$ac_link") 2>&5 | |
503d2be0 | 15770 | ac_status=$? |
c0d27fcc | 15771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 15772 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
ca81d7a0 JD |
15773 | { (case "(($ac_try" in |
15774 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15775 | *) ac_try_echo=$ac_try;; | |
15776 | esac | |
15777 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15778 | (eval "$ac_try") 2>&5 | |
503d2be0 | 15779 | ac_status=$? |
c0d27fcc | 15780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 15781 | (exit $ac_status); }; }; then |
98418dba | 15782 | ac_cv_c_stack_direction=1 |
ba4481b5 | 15783 | else |
98418dba CW |
15784 | echo "$as_me: program exited with status $ac_status" >&5 |
15785 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
15786 | sed 's/^/| /' conftest.$ac_ext >&5 |
15787 | ||
c0d27fcc | 15788 | ( exit $ac_status ) |
98418dba | 15789 | ac_cv_c_stack_direction=-1 |
ba4481b5 | 15790 | fi |
ca81d7a0 | 15791 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 15792 | fi |
ca81d7a0 JD |
15793 | |
15794 | ||
98418dba | 15795 | fi |
ca81d7a0 JD |
15796 | { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
15797 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; } | |
98418dba | 15798 | |
c0d27fcc | 15799 | cat >>confdefs.h <<_ACEOF |
98418dba | 15800 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
c0d27fcc MR |
15801 | _ACEOF |
15802 | ||
ba4481b5 | 15803 | |
ba4481b5 DL |
15804 | fi |
15805 | ||
c0d27fcc | 15806 | |
611adb3e GM |
15807 | if test x"$ac_cv_func_alloca_works" != xyes; then |
15808 | { { echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5 | |
15809 | echo "$as_me: error: a system implementation of alloca is required " >&2;} | |
15810 | { (exit 1); exit 1; }; } | |
15811 | fi | |
15812 | ||
98418dba CW |
15813 | # fmod, logb, and frexp are found in -lm on most systems. |
15814 | # On HPUX 9.01, -lm does not contain logb, so check for sqrt. | |
15815 | ||
ca81d7a0 JD |
15816 | { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5 |
15817 | echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; } | |
98418dba | 15818 | if test "${ac_cv_lib_m_sqrt+set}" = set; then |
503d2be0 | 15819 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 15820 | else |
98418dba CW |
15821 | ac_check_lib_save_LIBS=$LIBS |
15822 | LIBS="-lm $LIBS" | |
15823 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
15824 | /* confdefs.h. */ |
15825 | _ACEOF | |
15826 | cat confdefs.h >>conftest.$ac_ext | |
15827 | cat >>conftest.$ac_ext <<_ACEOF | |
15828 | /* end confdefs.h. */ | |
ba4481b5 | 15829 | |
ca81d7a0 JD |
15830 | /* Override any GCC internal prototype to avoid an error. |
15831 | Use char because int might match the return type of a GCC | |
15832 | builtin and then its argument prototype would still apply. */ | |
98418dba CW |
15833 | #ifdef __cplusplus |
15834 | extern "C" | |
15835 | #endif | |
98418dba | 15836 | char sqrt (); |
503d2be0 AS |
15837 | int |
15838 | main () | |
15839 | { | |
ca81d7a0 | 15840 | return sqrt (); |
503d2be0 AS |
15841 | ; |
15842 | return 0; | |
15843 | } | |
15844 | _ACEOF | |
15845 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
15846 | if { (ac_try="$ac_link" |
15847 | case "(($ac_try" in | |
15848 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15849 | *) ac_try_echo=$ac_try;; | |
15850 | esac | |
15851 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15852 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 15853 | ac_status=$? |
edfaf76d LK |
15854 | grep -v '^ *+' conftest.er1 >conftest.err |
15855 | rm -f conftest.er1 | |
15856 | cat conftest.err >&5 | |
c0d27fcc | 15857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
15858 | (exit $ac_status); } && { |
15859 | test -z "$ac_c_werror_flag" || | |
15860 | test ! -s conftest.err | |
15861 | } && test -s conftest$ac_exeext && | |
15862 | $as_test_x conftest$ac_exeext; then | |
98418dba | 15863 | ac_cv_lib_m_sqrt=yes |
ba4481b5 | 15864 | else |
503d2be0 | 15865 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
15866 | sed 's/^/| /' conftest.$ac_ext >&5 |
15867 | ||
ca81d7a0 | 15868 | ac_cv_lib_m_sqrt=no |
ba4481b5 | 15869 | fi |
ca81d7a0 | 15870 | |
f053c89f | 15871 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 15872 | conftest$ac_exeext conftest.$ac_ext |
98418dba | 15873 | LIBS=$ac_check_lib_save_LIBS |
ba4481b5 | 15874 | fi |
ca81d7a0 JD |
15875 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5 |
15876 | echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; } | |
98418dba | 15877 | if test $ac_cv_lib_m_sqrt = yes; then |
c0d27fcc | 15878 | cat >>confdefs.h <<_ACEOF |
98418dba | 15879 | #define HAVE_LIBM 1 |
c0d27fcc | 15880 | _ACEOF |
98418dba CW |
15881 | |
15882 | LIBS="-lm $LIBS" | |
ba4481b5 | 15883 | |
ba4481b5 DL |
15884 | fi |
15885 | ||
c0d27fcc | 15886 | |
55597d70 DL |
15887 | # Check for mail-locking functions in a "mail" library. Probably this should |
15888 | # have the same check as for liblockfile below. | |
98418dba | 15889 | |
ca81d7a0 JD |
15890 | { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5 |
15891 | echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; } | |
98418dba | 15892 | if test "${ac_cv_lib_mail_maillock+set}" = set; then |
503d2be0 | 15893 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 15894 | else |
98418dba CW |
15895 | ac_check_lib_save_LIBS=$LIBS |
15896 | LIBS="-lmail $LIBS" | |
15897 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
15898 | /* confdefs.h. */ |
15899 | _ACEOF | |
15900 | cat confdefs.h >>conftest.$ac_ext | |
15901 | cat >>conftest.$ac_ext <<_ACEOF | |
15902 | /* end confdefs.h. */ | |
98418dba | 15903 | |
ca81d7a0 JD |
15904 | /* Override any GCC internal prototype to avoid an error. |
15905 | Use char because int might match the return type of a GCC | |
15906 | builtin and then its argument prototype would still apply. */ | |
98418dba CW |
15907 | #ifdef __cplusplus |
15908 | extern "C" | |
15909 | #endif | |
98418dba | 15910 | char maillock (); |
503d2be0 AS |
15911 | int |
15912 | main () | |
15913 | { | |
ca81d7a0 | 15914 | return maillock (); |
503d2be0 AS |
15915 | ; |
15916 | return 0; | |
15917 | } | |
15918 | _ACEOF | |
15919 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
15920 | if { (ac_try="$ac_link" |
15921 | case "(($ac_try" in | |
15922 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15923 | *) ac_try_echo=$ac_try;; | |
15924 | esac | |
15925 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15926 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 15927 | ac_status=$? |
edfaf76d LK |
15928 | grep -v '^ *+' conftest.er1 >conftest.err |
15929 | rm -f conftest.er1 | |
15930 | cat conftest.err >&5 | |
c0d27fcc | 15931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
15932 | (exit $ac_status); } && { |
15933 | test -z "$ac_c_werror_flag" || | |
15934 | test ! -s conftest.err | |
15935 | } && test -s conftest$ac_exeext && | |
15936 | $as_test_x conftest$ac_exeext; then | |
98418dba | 15937 | ac_cv_lib_mail_maillock=yes |
ba4481b5 | 15938 | else |
503d2be0 | 15939 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
15940 | sed 's/^/| /' conftest.$ac_ext >&5 |
15941 | ||
ca81d7a0 | 15942 | ac_cv_lib_mail_maillock=no |
ba4481b5 | 15943 | fi |
ca81d7a0 | 15944 | |
f053c89f | 15945 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 15946 | conftest$ac_exeext conftest.$ac_ext |
98418dba | 15947 | LIBS=$ac_check_lib_save_LIBS |
ba4481b5 | 15948 | fi |
ca81d7a0 JD |
15949 | { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5 |
15950 | echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; } | |
98418dba | 15951 | if test $ac_cv_lib_mail_maillock = yes; then |
c0d27fcc | 15952 | cat >>confdefs.h <<_ACEOF |
98418dba | 15953 | #define HAVE_LIBMAIL 1 |
c0d27fcc | 15954 | _ACEOF |
ba4481b5 | 15955 | |
98418dba | 15956 | LIBS="-lmail $LIBS" |
ba4481b5 | 15957 | |
98418dba | 15958 | fi |
ba4481b5 | 15959 | |
c0d27fcc | 15960 | |
ca81d7a0 JD |
15961 | { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5 |
15962 | echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; } | |
98418dba | 15963 | if test "${ac_cv_lib_lockfile_maillock+set}" = set; then |
503d2be0 | 15964 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 15965 | else |
503d2be0 | 15966 | ac_check_lib_save_LIBS=$LIBS |
98418dba | 15967 | LIBS="-llockfile $LIBS" |
503d2be0 | 15968 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
15969 | /* confdefs.h. */ |
15970 | _ACEOF | |
15971 | cat confdefs.h >>conftest.$ac_ext | |
15972 | cat >>conftest.$ac_ext <<_ACEOF | |
15973 | /* end confdefs.h. */ | |
503d2be0 | 15974 | |
ca81d7a0 JD |
15975 | /* Override any GCC internal prototype to avoid an error. |
15976 | Use char because int might match the return type of a GCC | |
15977 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
15978 | #ifdef __cplusplus |
15979 | extern "C" | |
15980 | #endif | |
98418dba | 15981 | char maillock (); |
503d2be0 AS |
15982 | int |
15983 | main () | |
15984 | { | |
ca81d7a0 | 15985 | return maillock (); |
503d2be0 AS |
15986 | ; |
15987 | return 0; | |
15988 | } | |
15989 | _ACEOF | |
15990 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
15991 | if { (ac_try="$ac_link" |
15992 | case "(($ac_try" in | |
15993 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15994 | *) ac_try_echo=$ac_try;; | |
15995 | esac | |
15996 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15997 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 15998 | ac_status=$? |
edfaf76d LK |
15999 | grep -v '^ *+' conftest.er1 >conftest.err |
16000 | rm -f conftest.er1 | |
16001 | cat conftest.err >&5 | |
c0d27fcc | 16002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
16003 | (exit $ac_status); } && { |
16004 | test -z "$ac_c_werror_flag" || | |
16005 | test ! -s conftest.err | |
16006 | } && test -s conftest$ac_exeext && | |
16007 | $as_test_x conftest$ac_exeext; then | |
98418dba | 16008 | ac_cv_lib_lockfile_maillock=yes |
503d2be0 AS |
16009 | else |
16010 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16011 | sed 's/^/| /' conftest.$ac_ext >&5 |
16012 | ||
ca81d7a0 | 16013 | ac_cv_lib_lockfile_maillock=no |
98418dba | 16014 | fi |
ca81d7a0 | 16015 | |
f053c89f | 16016 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 16017 | conftest$ac_exeext conftest.$ac_ext |
98418dba CW |
16018 | LIBS=$ac_check_lib_save_LIBS |
16019 | fi | |
ca81d7a0 JD |
16020 | { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5 |
16021 | echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; } | |
98418dba | 16022 | if test $ac_cv_lib_lockfile_maillock = yes; then |
c0d27fcc | 16023 | cat >>confdefs.h <<_ACEOF |
98418dba | 16024 | #define HAVE_LIBLOCKFILE 1 |
c0d27fcc | 16025 | _ACEOF |
98418dba CW |
16026 | |
16027 | LIBS="-llockfile $LIBS" | |
16028 | ||
16029 | fi | |
16030 | ||
16031 | # If we have the shared liblockfile, assume we must use it for mail | |
16032 | # locking (e.g. Debian). If we couldn't link against liblockfile | |
16033 | # (no liblockfile.a installed), ensure that we don't need to. | |
16034 | if test "$ac_cv_lib_lockfile_maillock" = no; then | |
16035 | # Extract the first word of "liblockfile.so", so it can be a program name with args. | |
16036 | set dummy liblockfile.so; ac_word=$2 | |
ca81d7a0 JD |
16037 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
16038 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
98418dba CW |
16039 | if test "${ac_cv_prog_liblockfile+set}" = set; then |
16040 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16041 | else | |
16042 | if test -n "$liblockfile"; then | |
16043 | ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test. | |
16044 | else | |
c0d27fcc | 16045 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6bae0ccf DL |
16046 | as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH" |
16047 | for as_dir in $as_dummy | |
c0d27fcc MR |
16048 | do |
16049 | IFS=$as_save_IFS | |
16050 | test -z "$as_dir" && as_dir=. | |
16051 | for ac_exec_ext in '' $ac_executable_extensions; do | |
f053c89f | 16052 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
c0d27fcc MR |
16053 | ac_cv_prog_liblockfile="yes" |
16054 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16055 | break 2 | |
16056 | fi | |
16057 | done | |
98418dba | 16058 | done |
ca81d7a0 | 16059 | IFS=$as_save_IFS |
98418dba CW |
16060 | |
16061 | test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no" | |
503d2be0 | 16062 | fi |
503d2be0 | 16063 | fi |
98418dba CW |
16064 | liblockfile=$ac_cv_prog_liblockfile |
16065 | if test -n "$liblockfile"; then | |
ca81d7a0 JD |
16066 | { echo "$as_me:$LINENO: result: $liblockfile" >&5 |
16067 | echo "${ECHO_T}$liblockfile" >&6; } | |
98418dba | 16068 | else |
ca81d7a0 JD |
16069 | { echo "$as_me:$LINENO: result: no" >&5 |
16070 | echo "${ECHO_T}no" >&6; } | |
ba4481b5 DL |
16071 | fi |
16072 | ||
ca81d7a0 | 16073 | |
98418dba | 16074 | if test $ac_cv_prog_liblockfile = yes; then |
c0d27fcc | 16075 | { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it. |
98418dba CW |
16076 | This probably means that movemail could lose mail. |
16077 | There may be a \`development' package to install containing liblockfile." >&5 | |
16078 | echo "$as_me: error: Shared liblockfile found but can't link against it. | |
16079 | This probably means that movemail could lose mail. | |
16080 | There may be a \`development' package to install containing liblockfile." >&2;} | |
16081 | { (exit 1); exit 1; }; } | |
98418dba | 16082 | else : |
55597d70 | 16083 | fi |
98418dba | 16084 | fi |
503d2be0 | 16085 | |
98418dba CW |
16086 | for ac_func in touchlock |
16087 | do | |
16088 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
ca81d7a0 JD |
16089 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
16090 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
16091 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 16092 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
457b792c | 16093 | else |
98418dba | 16094 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
16095 | /* confdefs.h. */ |
16096 | _ACEOF | |
16097 | cat confdefs.h >>conftest.$ac_ext | |
16098 | cat >>conftest.$ac_ext <<_ACEOF | |
16099 | /* end confdefs.h. */ | |
edfaf76d LK |
16100 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
16101 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16102 | #define $ac_func innocuous_$ac_func | |
16103 | ||
98418dba | 16104 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
16105 | which can conflict with char $ac_func (); below. |
16106 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16107 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 16108 | |
19650fd6 AS |
16109 | #ifdef __STDC__ |
16110 | # include <limits.h> | |
16111 | #else | |
16112 | # include <assert.h> | |
16113 | #endif | |
edfaf76d LK |
16114 | |
16115 | #undef $ac_func | |
16116 | ||
ca81d7a0 JD |
16117 | /* Override any GCC internal prototype to avoid an error. |
16118 | Use char because int might match the return type of a GCC | |
16119 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
16120 | #ifdef __cplusplus |
16121 | extern "C" | |
16122 | #endif | |
98418dba | 16123 | char $ac_func (); |
98418dba CW |
16124 | /* The GNU C library defines this for functions which it implements |
16125 | to always fail with ENOSYS. Some functions are actually named | |
16126 | something starting with __ and the normal name is an alias. */ | |
ca81d7a0 | 16127 | #if defined __stub_$ac_func || defined __stub___$ac_func |
98418dba | 16128 | choke me |
cd958eb3 MB |
16129 | #endif |
16130 | ||
19650fd6 AS |
16131 | int |
16132 | main () | |
16133 | { | |
ca81d7a0 | 16134 | return $ac_func (); |
503d2be0 AS |
16135 | ; |
16136 | return 0; | |
16137 | } | |
16138 | _ACEOF | |
16139 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
16140 | if { (ac_try="$ac_link" |
16141 | case "(($ac_try" in | |
16142 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16143 | *) ac_try_echo=$ac_try;; | |
16144 | esac | |
16145 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16146 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 16147 | ac_status=$? |
edfaf76d LK |
16148 | grep -v '^ *+' conftest.er1 >conftest.err |
16149 | rm -f conftest.er1 | |
16150 | cat conftest.err >&5 | |
c0d27fcc | 16151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
16152 | (exit $ac_status); } && { |
16153 | test -z "$ac_c_werror_flag" || | |
16154 | test ! -s conftest.err | |
16155 | } && test -s conftest$ac_exeext && | |
16156 | $as_test_x conftest$ac_exeext; then | |
98418dba | 16157 | eval "$as_ac_var=yes" |
503d2be0 AS |
16158 | else |
16159 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16160 | sed 's/^/| /' conftest.$ac_ext >&5 |
16161 | ||
ca81d7a0 | 16162 | eval "$as_ac_var=no" |
503d2be0 | 16163 | fi |
ca81d7a0 | 16164 | |
f053c89f | 16165 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 16166 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 | 16167 | fi |
ca81d7a0 JD |
16168 | ac_res=`eval echo '${'$as_ac_var'}'` |
16169 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16170 | echo "${ECHO_T}$ac_res" >&6; } | |
98418dba | 16171 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
c0d27fcc | 16172 | cat >>confdefs.h <<_ACEOF |
98418dba | 16173 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 16174 | _ACEOF |
457b792c | 16175 | |
457b792c | 16176 | fi |
98418dba | 16177 | done |
457b792c | 16178 | |
c0d27fcc | 16179 | |
98418dba CW |
16180 | for ac_header in maillock.h |
16181 | do | |
16182 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
ca81d7a0 JD |
16183 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
16184 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16185 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
16186 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 16187 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc | 16188 | fi |
ca81d7a0 JD |
16189 | ac_res=`eval echo '${'$as_ac_Header'}'` |
16190 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16191 | echo "${ECHO_T}$ac_res" >&6; } | |
ba4481b5 | 16192 | else |
c0d27fcc | 16193 | # Is the header compilable? |
ca81d7a0 JD |
16194 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
16195 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
c0d27fcc | 16196 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
16197 | /* confdefs.h. */ |
16198 | _ACEOF | |
16199 | cat confdefs.h >>conftest.$ac_ext | |
16200 | cat >>conftest.$ac_ext <<_ACEOF | |
16201 | /* end confdefs.h. */ | |
c0d27fcc MR |
16202 | $ac_includes_default |
16203 | #include <$ac_header> | |
16204 | _ACEOF | |
16205 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
16206 | if { (ac_try="$ac_compile" |
16207 | case "(($ac_try" in | |
16208 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16209 | *) ac_try_echo=$ac_try;; | |
16210 | esac | |
16211 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16212 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 16213 | ac_status=$? |
edfaf76d LK |
16214 | grep -v '^ *+' conftest.er1 >conftest.err |
16215 | rm -f conftest.er1 | |
16216 | cat conftest.err >&5 | |
c0d27fcc | 16217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
16218 | (exit $ac_status); } && { |
16219 | test -z "$ac_c_werror_flag" || | |
16220 | test ! -s conftest.err | |
16221 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
16222 | ac_header_compiler=yes |
16223 | else | |
16224 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16225 | sed 's/^/| /' conftest.$ac_ext >&5 |
16226 | ||
ca81d7a0 | 16227 | ac_header_compiler=no |
c0d27fcc | 16228 | fi |
ca81d7a0 JD |
16229 | |
16230 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16231 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
16232 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
16233 | |
16234 | # Is the header present? | |
ca81d7a0 JD |
16235 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
16236 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
c0d27fcc | 16237 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
16238 | /* confdefs.h. */ |
16239 | _ACEOF | |
16240 | cat confdefs.h >>conftest.$ac_ext | |
16241 | cat >>conftest.$ac_ext <<_ACEOF | |
16242 | /* end confdefs.h. */ | |
98418dba | 16243 | #include <$ac_header> |
503d2be0 | 16244 | _ACEOF |
ca81d7a0 JD |
16245 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
16246 | case "(($ac_try" in | |
16247 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16248 | *) ac_try_echo=$ac_try;; | |
16249 | esac | |
16250 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16251 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 16252 | ac_status=$? |
6bae0ccf | 16253 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
16254 | rm -f conftest.er1 |
16255 | cat conftest.err >&5 | |
c0d27fcc | 16256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
16257 | (exit $ac_status); } >/dev/null && { |
16258 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
16259 | test ! -s conftest.err | |
16260 | }; then | |
c0d27fcc | 16261 | ac_header_preproc=yes |
98418dba CW |
16262 | else |
16263 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16264 | sed 's/^/| /' conftest.$ac_ext >&5 |
16265 | ||
c0d27fcc | 16266 | ac_header_preproc=no |
503d2be0 | 16267 | fi |
ca81d7a0 | 16268 | |
98418dba | 16269 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
16270 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
16271 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
16272 | |
16273 | # So? What about this header? | |
edfaf76d LK |
16274 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
16275 | yes:no: ) | |
c0d27fcc MR |
16276 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16277 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
16278 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
16279 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
16280 | ac_header_preproc=yes | |
19650fd6 | 16281 | ;; |
edfaf76d | 16282 | no:yes:* ) |
c0d27fcc MR |
16283 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16284 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
edfaf76d LK |
16285 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
16286 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16287 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16288 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16289 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16290 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 16291 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 16292 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
16293 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
16294 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 16295 | |
19650fd6 | 16296 | ;; |
c0d27fcc | 16297 | esac |
ca81d7a0 JD |
16298 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16299 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
16300 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
c0d27fcc MR |
16301 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16302 | else | |
edfaf76d | 16303 | eval "$as_ac_Header=\$ac_header_preproc" |
ba4481b5 | 16304 | fi |
ca81d7a0 JD |
16305 | ac_res=`eval echo '${'$as_ac_Header'}'` |
16306 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16307 | echo "${ECHO_T}$ac_res" >&6; } | |
c0d27fcc MR |
16308 | |
16309 | fi | |
98418dba | 16310 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 16311 | cat >>confdefs.h <<_ACEOF |
98418dba | 16312 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 16313 | _ACEOF |
48d4b120 | 16314 | |
ba4481b5 | 16315 | fi |
c0d27fcc | 16316 | |
98418dba CW |
16317 | done |
16318 | ||
c0d27fcc MR |
16319 | |
16320 | ||
16321 | ||
16322 | ||
16323 | ||
16324 | ||
16325 | ||
16326 | ||
16327 | ||
16328 | ||
16329 | ||
16330 | ||
16331 | ||
16332 | ||
16333 | ||
16334 | ||
16335 | ||
16336 | ||
16337 | ||
16338 | ||
16339 | ||
16340 | ||
16341 | ||
16342 | ||
16343 | ||
16344 | ||
16345 | ||
16346 | ||
16347 | ||
16348 | ||
16349 | ||
16350 | ||
16351 | ||
16352 | ||
16353 | ||
16354 | ||
16355 | ||
16356 | ||
16357 | ||
16358 | ||
16359 | ||
16360 | ||
16361 | ||
16362 | ||
16363 | ||
16364 | ||
16365 | ||
16366 | ||
16367 | ||
16368 | ||
16369 | ||
16370 | ||
16371 | ||
16372 | ||
16373 | ||
22044edf DL |
16374 | |
16375 | ||
c0d27fcc | 16376 | |
b0e44248 RB |
16377 | |
16378 | ||
973a76b1 DL |
16379 | |
16380 | ||
16381 | ||
cd958eb3 | 16382 | |
25ca0bca | 16383 | |
ea92fc9f | 16384 | |
e2fcf543 | 16385 | |
c0d27fcc MR |
16386 | |
16387 | ||
98418dba | 16388 | for ac_func in gethostname getdomainname dup2 \ |
e2fcf543 | 16389 | rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \ |
bc3512d0 | 16390 | random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \ |
98418dba | 16391 | strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \ |
973a76b1 | 16392 | utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \ |
98418dba CW |
16393 | __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \ |
16394 | sendto recvfrom getsockopt setsockopt getsockname getpeername \ | |
190956b3 | 16395 | gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \ |
4489ece2 | 16396 | memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign |
98418dba CW |
16397 | do |
16398 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
ca81d7a0 JD |
16399 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
16400 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
16401 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 16402 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 16403 | else |
503d2be0 | 16404 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
16405 | /* confdefs.h. */ |
16406 | _ACEOF | |
16407 | cat confdefs.h >>conftest.$ac_ext | |
16408 | cat >>conftest.$ac_ext <<_ACEOF | |
16409 | /* end confdefs.h. */ | |
edfaf76d LK |
16410 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
16411 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16412 | #define $ac_func innocuous_$ac_func | |
16413 | ||
98418dba | 16414 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
16415 | which can conflict with char $ac_func (); below. |
16416 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16417 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 16418 | |
19650fd6 AS |
16419 | #ifdef __STDC__ |
16420 | # include <limits.h> | |
16421 | #else | |
16422 | # include <assert.h> | |
16423 | #endif | |
edfaf76d LK |
16424 | |
16425 | #undef $ac_func | |
16426 | ||
ca81d7a0 JD |
16427 | /* Override any GCC internal prototype to avoid an error. |
16428 | Use char because int might match the return type of a GCC | |
16429 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
16430 | #ifdef __cplusplus |
16431 | extern "C" | |
16432 | #endif | |
98418dba | 16433 | char $ac_func (); |
98418dba CW |
16434 | /* The GNU C library defines this for functions which it implements |
16435 | to always fail with ENOSYS. Some functions are actually named | |
16436 | something starting with __ and the normal name is an alias. */ | |
ca81d7a0 | 16437 | #if defined __stub_$ac_func || defined __stub___$ac_func |
98418dba | 16438 | choke me |
98418dba CW |
16439 | #endif |
16440 | ||
19650fd6 AS |
16441 | int |
16442 | main () | |
16443 | { | |
ca81d7a0 | 16444 | return $ac_func (); |
503d2be0 AS |
16445 | ; |
16446 | return 0; | |
16447 | } | |
16448 | _ACEOF | |
16449 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
16450 | if { (ac_try="$ac_link" |
16451 | case "(($ac_try" in | |
16452 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16453 | *) ac_try_echo=$ac_try;; | |
16454 | esac | |
16455 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16456 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 16457 | ac_status=$? |
edfaf76d LK |
16458 | grep -v '^ *+' conftest.er1 >conftest.err |
16459 | rm -f conftest.er1 | |
16460 | cat conftest.err >&5 | |
c0d27fcc | 16461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
16462 | (exit $ac_status); } && { |
16463 | test -z "$ac_c_werror_flag" || | |
16464 | test ! -s conftest.err | |
16465 | } && test -s conftest$ac_exeext && | |
16466 | $as_test_x conftest$ac_exeext; then | |
98418dba | 16467 | eval "$as_ac_var=yes" |
503d2be0 AS |
16468 | else |
16469 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16470 | sed 's/^/| /' conftest.$ac_ext >&5 |
16471 | ||
ca81d7a0 | 16472 | eval "$as_ac_var=no" |
503d2be0 | 16473 | fi |
ca81d7a0 | 16474 | |
f053c89f | 16475 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 16476 | conftest$ac_exeext conftest.$ac_ext |
ba4481b5 | 16477 | fi |
ca81d7a0 JD |
16478 | ac_res=`eval echo '${'$as_ac_var'}'` |
16479 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16480 | echo "${ECHO_T}$ac_res" >&6; } | |
98418dba | 16481 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
c0d27fcc | 16482 | cat >>confdefs.h <<_ACEOF |
98418dba | 16483 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 16484 | _ACEOF |
ba4481b5 | 16485 | |
ba4481b5 | 16486 | fi |
98418dba | 16487 | done |
ba4481b5 | 16488 | |
c0d27fcc MR |
16489 | |
16490 | ||
98418dba CW |
16491 | for ac_header in sys/un.h |
16492 | do | |
16493 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
ca81d7a0 JD |
16494 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
16495 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16496 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
16497 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
98418dba | 16498 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc | 16499 | fi |
ca81d7a0 JD |
16500 | ac_res=`eval echo '${'$as_ac_Header'}'` |
16501 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16502 | echo "${ECHO_T}$ac_res" >&6; } | |
98418dba | 16503 | else |
c0d27fcc | 16504 | # Is the header compilable? |
ca81d7a0 JD |
16505 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
16506 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
c0d27fcc | 16507 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
16508 | /* confdefs.h. */ |
16509 | _ACEOF | |
16510 | cat confdefs.h >>conftest.$ac_ext | |
16511 | cat >>conftest.$ac_ext <<_ACEOF | |
16512 | /* end confdefs.h. */ | |
c0d27fcc MR |
16513 | $ac_includes_default |
16514 | #include <$ac_header> | |
16515 | _ACEOF | |
16516 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
16517 | if { (ac_try="$ac_compile" |
16518 | case "(($ac_try" in | |
16519 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16520 | *) ac_try_echo=$ac_try;; | |
16521 | esac | |
16522 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16523 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 16524 | ac_status=$? |
edfaf76d LK |
16525 | grep -v '^ *+' conftest.er1 >conftest.err |
16526 | rm -f conftest.er1 | |
16527 | cat conftest.err >&5 | |
c0d27fcc | 16528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
c24fa7dc MB |
16529 | (exit $ac_status); } && { |
16530 | test -z "$ac_c_werror_flag" || | |
16531 | test ! -s conftest.err | |
16532 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
16533 | ac_header_compiler=yes |
16534 | else | |
16535 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16536 | sed 's/^/| /' conftest.$ac_ext >&5 |
16537 | ||
ca81d7a0 | 16538 | ac_header_compiler=no |
c0d27fcc | 16539 | fi |
ca81d7a0 JD |
16540 | |
16541 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16542 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
16543 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
16544 | |
16545 | # Is the header present? | |
ca81d7a0 JD |
16546 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
16547 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
c0d27fcc | 16548 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
16549 | /* confdefs.h. */ |
16550 | _ACEOF | |
16551 | cat confdefs.h >>conftest.$ac_ext | |
16552 | cat >>conftest.$ac_ext <<_ACEOF | |
16553 | /* end confdefs.h. */ | |
98418dba | 16554 | #include <$ac_header> |
503d2be0 | 16555 | _ACEOF |
ca81d7a0 JD |
16556 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
16557 | case "(($ac_try" in | |
16558 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16559 | *) ac_try_echo=$ac_try;; | |
16560 | esac | |
16561 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16562 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 16563 | ac_status=$? |
6bae0ccf | 16564 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
16565 | rm -f conftest.er1 |
16566 | cat conftest.err >&5 | |
c0d27fcc | 16567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
16568 | (exit $ac_status); } >/dev/null && { |
16569 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
16570 | test ! -s conftest.err | |
16571 | }; then | |
c0d27fcc | 16572 | ac_header_preproc=yes |
ba4481b5 | 16573 | else |
503d2be0 | 16574 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
16575 | sed 's/^/| /' conftest.$ac_ext >&5 |
16576 | ||
c0d27fcc | 16577 | ac_header_preproc=no |
ba4481b5 | 16578 | fi |
ca81d7a0 | 16579 | |
503d2be0 | 16580 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
16581 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
16582 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
16583 | |
16584 | # So? What about this header? | |
edfaf76d LK |
16585 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
16586 | yes:no: ) | |
c0d27fcc MR |
16587 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16588 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
16589 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
16590 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
16591 | ac_header_preproc=yes | |
19650fd6 | 16592 | ;; |
edfaf76d | 16593 | no:yes:* ) |
c0d27fcc MR |
16594 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16595 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
edfaf76d LK |
16596 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
16597 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16598 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16599 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16600 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16601 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 16602 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 16603 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
16604 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
16605 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 16606 | |
19650fd6 | 16607 | ;; |
c0d27fcc | 16608 | esac |
ca81d7a0 JD |
16609 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16610 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
16611 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
c0d27fcc MR |
16612 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16613 | else | |
edfaf76d | 16614 | eval "$as_ac_Header=\$ac_header_preproc" |
ba4481b5 | 16615 | fi |
ca81d7a0 JD |
16616 | ac_res=`eval echo '${'$as_ac_Header'}'` |
16617 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16618 | echo "${ECHO_T}$ac_res" >&6; } | |
c0d27fcc MR |
16619 | |
16620 | fi | |
925c2f3f | 16621 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 16622 | cat >>confdefs.h <<_ACEOF |
925c2f3f | 16623 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 16624 | _ACEOF |
503d2be0 | 16625 | |
925c2f3f | 16626 | fi |
c0d27fcc | 16627 | |
925c2f3f EZ |
16628 | done |
16629 | ||
c0d27fcc MR |
16630 | |
16631 | ||
16632 | ||
edfaf76d | 16633 | |
f053c89f CY |
16634 | |
16635 | for ac_header in $ac_header_list | |
925c2f3f EZ |
16636 | do |
16637 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
ca81d7a0 JD |
16638 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
16639 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16640 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
16641 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
925c2f3f | 16642 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc | 16643 | fi |
ca81d7a0 JD |
16644 | ac_res=`eval echo '${'$as_ac_Header'}'` |
16645 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16646 | echo "${ECHO_T}$ac_res" >&6; } | |
925c2f3f | 16647 | else |
c0d27fcc | 16648 | # Is the header compilable? |
ca81d7a0 JD |
16649 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
16650 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
c0d27fcc | 16651 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
16652 | /* confdefs.h. */ |
16653 | _ACEOF | |
16654 | cat confdefs.h >>conftest.$ac_ext | |
16655 | cat >>conftest.$ac_ext <<_ACEOF | |
16656 | /* end confdefs.h. */ | |
c0d27fcc MR |
16657 | $ac_includes_default |
16658 | #include <$ac_header> | |
16659 | _ACEOF | |
16660 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
16661 | if { (ac_try="$ac_compile" |
16662 | case "(($ac_try" in | |
16663 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16664 | *) ac_try_echo=$ac_try;; | |
16665 | esac | |
16666 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16667 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 16668 | ac_status=$? |
edfaf76d LK |
16669 | grep -v '^ *+' conftest.er1 >conftest.err |
16670 | rm -f conftest.er1 | |
16671 | cat conftest.err >&5 | |
c0d27fcc | 16672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
16673 | (exit $ac_status); } && { |
16674 | test -z "$ac_c_werror_flag" || | |
16675 | test ! -s conftest.err | |
16676 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
16677 | ac_header_compiler=yes |
16678 | else | |
16679 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16680 | sed 's/^/| /' conftest.$ac_ext >&5 |
16681 | ||
ca81d7a0 | 16682 | ac_header_compiler=no |
c0d27fcc | 16683 | fi |
ca81d7a0 JD |
16684 | |
16685 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16686 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
16687 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
16688 | |
16689 | # Is the header present? | |
ca81d7a0 JD |
16690 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
16691 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
c0d27fcc | 16692 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
16693 | /* confdefs.h. */ |
16694 | _ACEOF | |
16695 | cat confdefs.h >>conftest.$ac_ext | |
16696 | cat >>conftest.$ac_ext <<_ACEOF | |
16697 | /* end confdefs.h. */ | |
98418dba | 16698 | #include <$ac_header> |
503d2be0 | 16699 | _ACEOF |
ca81d7a0 JD |
16700 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
16701 | case "(($ac_try" in | |
16702 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16703 | *) ac_try_echo=$ac_try;; | |
16704 | esac | |
16705 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16706 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 16707 | ac_status=$? |
6bae0ccf | 16708 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
16709 | rm -f conftest.er1 |
16710 | cat conftest.err >&5 | |
c0d27fcc | 16711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
16712 | (exit $ac_status); } >/dev/null && { |
16713 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
16714 | test ! -s conftest.err | |
16715 | }; then | |
c0d27fcc | 16716 | ac_header_preproc=yes |
98418dba CW |
16717 | else |
16718 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16719 | sed 's/^/| /' conftest.$ac_ext >&5 |
16720 | ||
c0d27fcc | 16721 | ac_header_preproc=no |
98418dba | 16722 | fi |
ca81d7a0 | 16723 | |
98418dba | 16724 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
16725 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
16726 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
16727 | |
16728 | # So? What about this header? | |
edfaf76d LK |
16729 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
16730 | yes:no: ) | |
c0d27fcc MR |
16731 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16732 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
16733 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
16734 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
16735 | ac_header_preproc=yes | |
19650fd6 | 16736 | ;; |
edfaf76d | 16737 | no:yes:* ) |
c0d27fcc MR |
16738 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16739 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
edfaf76d LK |
16740 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
16741 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16742 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16743 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16744 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16745 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 16746 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 16747 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
16748 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
16749 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 16750 | |
19650fd6 | 16751 | ;; |
c0d27fcc | 16752 | esac |
ca81d7a0 JD |
16753 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16754 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
16755 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
c0d27fcc MR |
16756 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16757 | else | |
edfaf76d | 16758 | eval "$as_ac_Header=\$ac_header_preproc" |
ffe36136 | 16759 | fi |
ca81d7a0 JD |
16760 | ac_res=`eval echo '${'$as_ac_Header'}'` |
16761 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16762 | echo "${ECHO_T}$ac_res" >&6; } | |
c0d27fcc MR |
16763 | |
16764 | fi | |
98418dba | 16765 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 16766 | cat >>confdefs.h <<_ACEOF |
98418dba | 16767 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 16768 | _ACEOF |
98418dba CW |
16769 | |
16770 | fi | |
c0d27fcc | 16771 | |
98418dba CW |
16772 | done |
16773 | ||
c0d27fcc | 16774 | |
f053c89f CY |
16775 | |
16776 | ||
16777 | ||
16778 | ||
16779 | ||
16780 | ||
16781 | ||
16782 | for ac_func in $ac_func_list | |
98418dba CW |
16783 | do |
16784 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
ca81d7a0 JD |
16785 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
16786 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
16787 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 16788 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 16789 | else |
98418dba | 16790 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
16791 | /* confdefs.h. */ |
16792 | _ACEOF | |
16793 | cat confdefs.h >>conftest.$ac_ext | |
16794 | cat >>conftest.$ac_ext <<_ACEOF | |
16795 | /* end confdefs.h. */ | |
edfaf76d LK |
16796 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
16797 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16798 | #define $ac_func innocuous_$ac_func | |
16799 | ||
98418dba | 16800 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
16801 | which can conflict with char $ac_func (); below. |
16802 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16803 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 16804 | |
19650fd6 AS |
16805 | #ifdef __STDC__ |
16806 | # include <limits.h> | |
16807 | #else | |
16808 | # include <assert.h> | |
16809 | #endif | |
edfaf76d LK |
16810 | |
16811 | #undef $ac_func | |
16812 | ||
ca81d7a0 JD |
16813 | /* Override any GCC internal prototype to avoid an error. |
16814 | Use char because int might match the return type of a GCC | |
16815 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
16816 | #ifdef __cplusplus |
16817 | extern "C" | |
16818 | #endif | |
98418dba | 16819 | char $ac_func (); |
98418dba CW |
16820 | /* The GNU C library defines this for functions which it implements |
16821 | to always fail with ENOSYS. Some functions are actually named | |
16822 | something starting with __ and the normal name is an alias. */ | |
ca81d7a0 | 16823 | #if defined __stub_$ac_func || defined __stub___$ac_func |
98418dba | 16824 | choke me |
98418dba CW |
16825 | #endif |
16826 | ||
19650fd6 AS |
16827 | int |
16828 | main () | |
16829 | { | |
ca81d7a0 | 16830 | return $ac_func (); |
503d2be0 AS |
16831 | ; |
16832 | return 0; | |
16833 | } | |
16834 | _ACEOF | |
16835 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
16836 | if { (ac_try="$ac_link" |
16837 | case "(($ac_try" in | |
16838 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16839 | *) ac_try_echo=$ac_try;; | |
16840 | esac | |
16841 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16842 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 16843 | ac_status=$? |
edfaf76d LK |
16844 | grep -v '^ *+' conftest.er1 >conftest.err |
16845 | rm -f conftest.er1 | |
16846 | cat conftest.err >&5 | |
c0d27fcc | 16847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
16848 | (exit $ac_status); } && { |
16849 | test -z "$ac_c_werror_flag" || | |
16850 | test ! -s conftest.err | |
16851 | } && test -s conftest$ac_exeext && | |
16852 | $as_test_x conftest$ac_exeext; then | |
98418dba | 16853 | eval "$as_ac_var=yes" |
503d2be0 AS |
16854 | else |
16855 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
16856 | sed 's/^/| /' conftest.$ac_ext >&5 |
16857 | ||
ca81d7a0 | 16858 | eval "$as_ac_var=no" |
503d2be0 | 16859 | fi |
ca81d7a0 | 16860 | |
f053c89f | 16861 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 16862 | conftest$ac_exeext conftest.$ac_ext |
ffe36136 | 16863 | fi |
ca81d7a0 JD |
16864 | ac_res=`eval echo '${'$as_ac_var'}'` |
16865 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
16866 | echo "${ECHO_T}$ac_res" >&6; } | |
98418dba | 16867 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
c0d27fcc | 16868 | cat >>confdefs.h <<_ACEOF |
98418dba | 16869 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 16870 | _ACEOF |
ffe36136 | 16871 | |
ba4481b5 | 16872 | fi |
98418dba | 16873 | done |
ba4481b5 | 16874 | |
f053c89f CY |
16875 | |
16876 | ||
16877 | ||
16878 | ||
16879 | ||
16880 | ||
16881 | ||
16882 | ||
16883 | ||
16884 | ||
16885 | ||
16886 | ||
16887 | ||
16888 | ||
16889 | ||
16890 | ||
ca81d7a0 JD |
16891 | { echo "$as_me:$LINENO: checking for working mktime" >&5 |
16892 | echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; } | |
98418dba CW |
16893 | if test "${ac_cv_func_working_mktime+set}" = set; then |
16894 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16895 | else | |
16896 | if test "$cross_compiling" = yes; then | |
16897 | ac_cv_func_working_mktime=no | |
16898 | else | |
16899 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
16900 | /* confdefs.h. */ |
16901 | _ACEOF | |
16902 | cat confdefs.h >>conftest.$ac_ext | |
16903 | cat >>conftest.$ac_ext <<_ACEOF | |
16904 | /* end confdefs.h. */ | |
98418dba | 16905 | /* Test program from Paul Eggert and Tony Leneis. */ |
f053c89f | 16906 | #ifdef TIME_WITH_SYS_TIME |
98418dba CW |
16907 | # include <sys/time.h> |
16908 | # include <time.h> | |
16909 | #else | |
f053c89f | 16910 | # ifdef HAVE_SYS_TIME_H |
98418dba CW |
16911 | # include <sys/time.h> |
16912 | # else | |
16913 | # include <time.h> | |
16914 | # endif | |
16915 | #endif | |
ba4481b5 | 16916 | |
f053c89f | 16917 | #include <stdlib.h> |
edfaf76d | 16918 | |
f053c89f | 16919 | #ifdef HAVE_UNISTD_H |
98418dba CW |
16920 | # include <unistd.h> |
16921 | #endif | |
ba4481b5 | 16922 | |
f053c89f | 16923 | #ifndef HAVE_ALARM |
98418dba CW |
16924 | # define alarm(X) /* empty */ |
16925 | #endif | |
df645f7c | 16926 | |
98418dba CW |
16927 | /* Work around redefinition to rpl_putenv by other config tests. */ |
16928 | #undef putenv | |
df645f7c | 16929 | |
98418dba | 16930 | static time_t time_t_max; |
edfaf76d | 16931 | static time_t time_t_min; |
df645f7c | 16932 | |
98418dba | 16933 | /* Values we'll use to set the TZ environment variable. */ |
edfaf76d LK |
16934 | static char *tz_strings[] = { |
16935 | (char *) 0, "TZ=GMT0", "TZ=JST-9", | |
98418dba CW |
16936 | "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00" |
16937 | }; | |
16938 | #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0])) | |
503d2be0 | 16939 | |
ca81d7a0 | 16940 | /* Return 0 if mktime fails to convert a date in the spring-forward gap. |
98418dba | 16941 | Based on a problem report from Andreas Jaeger. */ |
ca81d7a0 | 16942 | static int |
98418dba CW |
16943 | spring_forward_gap () |
16944 | { | |
16945 | /* glibc (up to about 1998-10-07) failed this test. */ | |
16946 | struct tm tm; | |
16947 | ||
16948 | /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" | |
16949 | instead of "TZ=America/Vancouver" in order to detect the bug even | |
16950 | on systems that don't support the Olson extension, or don't have the | |
16951 | full zoneinfo tables installed. */ | |
16952 | putenv ("TZ=PST8PDT,M4.1.0,M10.5.0"); | |
16953 | ||
16954 | tm.tm_year = 98; | |
16955 | tm.tm_mon = 3; | |
16956 | tm.tm_mday = 5; | |
16957 | tm.tm_hour = 2; | |
16958 | tm.tm_min = 0; | |
16959 | tm.tm_sec = 0; | |
16960 | tm.tm_isdst = -1; | |
ca81d7a0 | 16961 | return mktime (&tm) != (time_t) -1; |
98418dba CW |
16962 | } |
16963 | ||
ca81d7a0 | 16964 | static int |
edfaf76d | 16965 | mktime_test1 (now) |
98418dba CW |
16966 | time_t now; |
16967 | { | |
16968 | struct tm *lt; | |
ca81d7a0 | 16969 | return ! (lt = localtime (&now)) || mktime (lt) == now; |
edfaf76d LK |
16970 | } |
16971 | ||
ca81d7a0 | 16972 | static int |
edfaf76d LK |
16973 | mktime_test (now) |
16974 | time_t now; | |
16975 | { | |
ca81d7a0 JD |
16976 | return (mktime_test1 (now) |
16977 | && mktime_test1 ((time_t) (time_t_max - now)) | |
16978 | && mktime_test1 ((time_t) (time_t_min + now))); | |
98418dba CW |
16979 | } |
16980 | ||
ca81d7a0 | 16981 | static int |
98418dba CW |
16982 | irix_6_4_bug () |
16983 | { | |
16984 | /* Based on code from Ariel Faigon. */ | |
16985 | struct tm tm; | |
16986 | tm.tm_year = 96; | |
16987 | tm.tm_mon = 3; | |
16988 | tm.tm_mday = 0; | |
16989 | tm.tm_hour = 0; | |
16990 | tm.tm_min = 0; | |
16991 | tm.tm_sec = 0; | |
16992 | tm.tm_isdst = -1; | |
16993 | mktime (&tm); | |
ca81d7a0 | 16994 | return tm.tm_mon == 2 && tm.tm_mday == 31; |
98418dba CW |
16995 | } |
16996 | ||
ca81d7a0 | 16997 | static int |
98418dba CW |
16998 | bigtime_test (j) |
16999 | int j; | |
17000 | { | |
17001 | struct tm tm; | |
17002 | time_t now; | |
17003 | tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j; | |
17004 | now = mktime (&tm); | |
17005 | if (now != (time_t) -1) | |
17006 | { | |
17007 | struct tm *lt = localtime (&now); | |
17008 | if (! (lt | |
17009 | && lt->tm_year == tm.tm_year | |
17010 | && lt->tm_mon == tm.tm_mon | |
17011 | && lt->tm_mday == tm.tm_mday | |
17012 | && lt->tm_hour == tm.tm_hour | |
17013 | && lt->tm_min == tm.tm_min | |
17014 | && lt->tm_sec == tm.tm_sec | |
17015 | && lt->tm_yday == tm.tm_yday | |
17016 | && lt->tm_wday == tm.tm_wday | |
17017 | && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst) | |
17018 | == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst)))) | |
ca81d7a0 | 17019 | return 0; |
98418dba | 17020 | } |
ca81d7a0 | 17021 | return 1; |
98418dba CW |
17022 | } |
17023 | ||
f053c89f CY |
17024 | static int |
17025 | year_2050_test () | |
17026 | { | |
17027 | /* The correct answer for 2050-02-01 00:00:00 in Pacific time, | |
17028 | ignoring leap seconds. */ | |
17029 | unsigned long int answer = 2527315200UL; | |
17030 | ||
17031 | struct tm tm; | |
17032 | time_t t; | |
17033 | tm.tm_year = 2050 - 1900; | |
17034 | tm.tm_mon = 2 - 1; | |
17035 | tm.tm_mday = 1; | |
17036 | tm.tm_hour = tm.tm_min = tm.tm_sec = 0; | |
17037 | tm.tm_isdst = -1; | |
17038 | ||
17039 | /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" | |
17040 | instead of "TZ=America/Vancouver" in order to detect the bug even | |
17041 | on systems that don't support the Olson extension, or don't have the | |
17042 | full zoneinfo tables installed. */ | |
17043 | putenv ("TZ=PST8PDT,M4.1.0,M10.5.0"); | |
17044 | ||
17045 | t = mktime (&tm); | |
17046 | ||
17047 | /* Check that the result is either a failure, or close enough | |
17048 | to the correct answer that we can assume the discrepancy is | |
17049 | due to leap seconds. */ | |
17050 | return (t == (time_t) -1 | |
17051 | || (0 < t && answer - 120 <= t && t <= answer + 120)); | |
98418dba CW |
17052 | } |
17053 | ||
17054 | int | |
17055 | main () | |
17056 | { | |
17057 | time_t t, delta; | |
17058 | int i, j; | |
17059 | ||
17060 | /* This test makes some buggy mktime implementations loop. | |
17061 | Give up after 60 seconds; a mktime slower than that | |
17062 | isn't worth using anyway. */ | |
17063 | alarm (60); | |
17064 | ||
73d798d5 SM |
17065 | for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2) |
17066 | continue; | |
17067 | time_t_max--; | |
17068 | if ((time_t) -1 < 0) | |
17069 | for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2) | |
17070 | continue; | |
98418dba CW |
17071 | delta = time_t_max / 997; /* a suitable prime number */ |
17072 | for (i = 0; i < N_STRINGS; i++) | |
17073 | { | |
17074 | if (tz_strings[i]) | |
17075 | putenv (tz_strings[i]); | |
503d2be0 | 17076 | |
98418dba | 17077 | for (t = 0; t <= time_t_max - delta; t += delta) |
ca81d7a0 JD |
17078 | if (! mktime_test (t)) |
17079 | return 1; | |
17080 | if (! (mktime_test ((time_t) 1) | |
17081 | && mktime_test ((time_t) (60 * 60)) | |
17082 | && mktime_test ((time_t) (60 * 60 * 24)))) | |
17083 | return 1; | |
98418dba | 17084 | |
73d798d5 | 17085 | for (j = 1; 0 < j; j *= 2) |
ca81d7a0 JD |
17086 | if (! bigtime_test (j)) |
17087 | return 1; | |
73d798d5 | 17088 | if (! bigtime_test (j - 1)) |
ca81d7a0 | 17089 | return 1; |
98418dba | 17090 | } |
f053c89f | 17091 | return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ()); |
503d2be0 AS |
17092 | } |
17093 | _ACEOF | |
98418dba | 17094 | rm -f conftest$ac_exeext |
ca81d7a0 JD |
17095 | if { (ac_try="$ac_link" |
17096 | case "(($ac_try" in | |
17097 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17098 | *) ac_try_echo=$ac_try;; | |
17099 | esac | |
17100 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17101 | (eval "$ac_link") 2>&5 | |
503d2be0 | 17102 | ac_status=$? |
c0d27fcc | 17103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
98418dba | 17104 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
ca81d7a0 JD |
17105 | { (case "(($ac_try" in |
17106 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17107 | *) ac_try_echo=$ac_try;; | |
17108 | esac | |
17109 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17110 | (eval "$ac_try") 2>&5 | |
503d2be0 | 17111 | ac_status=$? |
c0d27fcc | 17112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 17113 | (exit $ac_status); }; }; then |
98418dba | 17114 | ac_cv_func_working_mktime=yes |
503d2be0 | 17115 | else |
98418dba CW |
17116 | echo "$as_me: program exited with status $ac_status" >&5 |
17117 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17118 | sed 's/^/| /' conftest.$ac_ext >&5 |
17119 | ||
c0d27fcc | 17120 | ( exit $ac_status ) |
98418dba | 17121 | ac_cv_func_working_mktime=no |
503d2be0 | 17122 | fi |
ca81d7a0 | 17123 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
503d2be0 | 17124 | fi |
ca81d7a0 JD |
17125 | |
17126 | ||
ba4481b5 | 17127 | fi |
ca81d7a0 JD |
17128 | { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5 |
17129 | echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; } | |
98418dba | 17130 | if test $ac_cv_func_working_mktime = no; then |
ca81d7a0 | 17131 | case " $LIBOBJS " in |
edfaf76d | 17132 | *" mktime.$ac_objext "* ) ;; |
ca81d7a0 JD |
17133 | *) LIBOBJS="$LIBOBJS mktime.$ac_objext" |
17134 | ;; | |
edfaf76d LK |
17135 | esac |
17136 | ||
ba4481b5 DL |
17137 | fi |
17138 | ||
98418dba | 17139 | if test "$ac_cv_func_working_mktime" = no; then |
b936fae4 | 17140 | |
c0d27fcc | 17141 | cat >>confdefs.h <<\_ACEOF |
98418dba | 17142 | #define BROKEN_MKTIME 1 |
c0d27fcc | 17143 | _ACEOF |
ba4481b5 | 17144 | |
ba4481b5 | 17145 | fi |
503d2be0 | 17146 | |
98418dba CW |
17147 | ac_have_func=no # yes means we've found a way to get the load average. |
17148 | ||
6bae0ccf DL |
17149 | # Make sure getloadavg.c is where it belongs, at configure-time. |
17150 | test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" || | |
17151 | { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5 | |
17152 | echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;} | |
17153 | { (exit 1); exit 1; }; } | |
17154 | ||
98418dba CW |
17155 | ac_save_LIBS=$LIBS |
17156 | ||
17157 | # Check for getloadavg, but be sure not to touch the cache variable. | |
ca81d7a0 JD |
17158 | ({ echo "$as_me:$LINENO: checking for getloadavg" >&5 |
17159 | echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; } | |
98418dba | 17160 | if test "${ac_cv_func_getloadavg+set}" = set; then |
503d2be0 | 17161 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 17162 | else |
503d2be0 | 17163 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
17164 | /* confdefs.h. */ |
17165 | _ACEOF | |
17166 | cat confdefs.h >>conftest.$ac_ext | |
17167 | cat >>conftest.$ac_ext <<_ACEOF | |
17168 | /* end confdefs.h. */ | |
edfaf76d LK |
17169 | /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg. |
17170 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17171 | #define getloadavg innocuous_getloadavg | |
17172 | ||
98418dba | 17173 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
17174 | which can conflict with char getloadavg (); below. |
17175 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17176 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 17177 | |
19650fd6 AS |
17178 | #ifdef __STDC__ |
17179 | # include <limits.h> | |
17180 | #else | |
17181 | # include <assert.h> | |
17182 | #endif | |
edfaf76d LK |
17183 | |
17184 | #undef getloadavg | |
17185 | ||
ca81d7a0 JD |
17186 | /* Override any GCC internal prototype to avoid an error. |
17187 | Use char because int might match the return type of a GCC | |
17188 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
17189 | #ifdef __cplusplus |
17190 | extern "C" | |
17191 | #endif | |
98418dba | 17192 | char getloadavg (); |
98418dba CW |
17193 | /* The GNU C library defines this for functions which it implements |
17194 | to always fail with ENOSYS. Some functions are actually named | |
17195 | something starting with __ and the normal name is an alias. */ | |
ca81d7a0 | 17196 | #if defined __stub_getloadavg || defined __stub___getloadavg |
98418dba | 17197 | choke me |
cd958eb3 MB |
17198 | #endif |
17199 | ||
19650fd6 AS |
17200 | int |
17201 | main () | |
17202 | { | |
ca81d7a0 | 17203 | return getloadavg (); |
503d2be0 AS |
17204 | ; |
17205 | return 0; | |
17206 | } | |
17207 | _ACEOF | |
17208 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
17209 | if { (ac_try="$ac_link" |
17210 | case "(($ac_try" in | |
17211 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17212 | *) ac_try_echo=$ac_try;; | |
17213 | esac | |
17214 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17215 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 17216 | ac_status=$? |
edfaf76d LK |
17217 | grep -v '^ *+' conftest.er1 >conftest.err |
17218 | rm -f conftest.er1 | |
17219 | cat conftest.err >&5 | |
c0d27fcc | 17220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
17221 | (exit $ac_status); } && { |
17222 | test -z "$ac_c_werror_flag" || | |
17223 | test ! -s conftest.err | |
17224 | } && test -s conftest$ac_exeext && | |
17225 | $as_test_x conftest$ac_exeext; then | |
98418dba | 17226 | ac_cv_func_getloadavg=yes |
503d2be0 AS |
17227 | else |
17228 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17229 | sed 's/^/| /' conftest.$ac_ext >&5 |
17230 | ||
ca81d7a0 | 17231 | ac_cv_func_getloadavg=no |
503d2be0 | 17232 | fi |
ca81d7a0 | 17233 | |
f053c89f | 17234 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 17235 | conftest$ac_exeext conftest.$ac_ext |
ba4481b5 | 17236 | fi |
ca81d7a0 JD |
17237 | { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5 |
17238 | echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; } | |
98418dba CW |
17239 | if test $ac_cv_func_getloadavg = yes; then |
17240 | exit 0 | |
17241 | else | |
17242 | exit 1 | |
ba4481b5 | 17243 | fi |
98418dba | 17244 | ) && ac_have_func=yes |
ba4481b5 | 17245 | |
98418dba | 17246 | # On HPUX9, an unprivileged user can get load averages through this function. |
503d2be0 | 17247 | |
98418dba CW |
17248 | for ac_func in pstat_getdynamic |
17249 | do | |
17250 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
ca81d7a0 JD |
17251 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
17252 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
17253 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 17254 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 17255 | else |
503d2be0 | 17256 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
17257 | /* confdefs.h. */ |
17258 | _ACEOF | |
17259 | cat confdefs.h >>conftest.$ac_ext | |
17260 | cat >>conftest.$ac_ext <<_ACEOF | |
17261 | /* end confdefs.h. */ | |
edfaf76d LK |
17262 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
17263 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17264 | #define $ac_func innocuous_$ac_func | |
17265 | ||
98418dba | 17266 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
17267 | which can conflict with char $ac_func (); below. |
17268 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17269 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 17270 | |
19650fd6 AS |
17271 | #ifdef __STDC__ |
17272 | # include <limits.h> | |
17273 | #else | |
17274 | # include <assert.h> | |
17275 | #endif | |
edfaf76d LK |
17276 | |
17277 | #undef $ac_func | |
17278 | ||
ca81d7a0 JD |
17279 | /* Override any GCC internal prototype to avoid an error. |
17280 | Use char because int might match the return type of a GCC | |
17281 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
17282 | #ifdef __cplusplus |
17283 | extern "C" | |
17284 | #endif | |
98418dba | 17285 | char $ac_func (); |
98418dba CW |
17286 | /* The GNU C library defines this for functions which it implements |
17287 | to always fail with ENOSYS. Some functions are actually named | |
17288 | something starting with __ and the normal name is an alias. */ | |
ca81d7a0 | 17289 | #if defined __stub_$ac_func || defined __stub___$ac_func |
98418dba | 17290 | choke me |
98418dba CW |
17291 | #endif |
17292 | ||
19650fd6 AS |
17293 | int |
17294 | main () | |
17295 | { | |
ca81d7a0 | 17296 | return $ac_func (); |
98418dba CW |
17297 | ; |
17298 | return 0; | |
17299 | } | |
f21fadcc | 17300 | _ACEOF |
98418dba | 17301 | rm -f conftest.$ac_objext conftest$ac_exeext |
ca81d7a0 JD |
17302 | if { (ac_try="$ac_link" |
17303 | case "(($ac_try" in | |
17304 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17305 | *) ac_try_echo=$ac_try;; | |
17306 | esac | |
17307 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17308 | (eval "$ac_link") 2>conftest.er1 | |
f21fadcc | 17309 | ac_status=$? |
edfaf76d LK |
17310 | grep -v '^ *+' conftest.er1 >conftest.err |
17311 | rm -f conftest.er1 | |
17312 | cat conftest.err >&5 | |
c0d27fcc | 17313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
c24fa7dc MB |
17314 | (exit $ac_status); } && { |
17315 | test -z "$ac_c_werror_flag" || | |
17316 | test ! -s conftest.err | |
17317 | } && test -s conftest$ac_exeext && | |
17318 | $as_test_x conftest$ac_exeext; then | |
98418dba | 17319 | eval "$as_ac_var=yes" |
f21fadcc JD |
17320 | else |
17321 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17322 | sed 's/^/| /' conftest.$ac_ext >&5 |
17323 | ||
ca81d7a0 | 17324 | eval "$as_ac_var=no" |
f21fadcc | 17325 | fi |
ca81d7a0 | 17326 | |
f053c89f | 17327 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 17328 | conftest$ac_exeext conftest.$ac_ext |
f21fadcc | 17329 | fi |
ca81d7a0 JD |
17330 | ac_res=`eval echo '${'$as_ac_var'}'` |
17331 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17332 | echo "${ECHO_T}$ac_res" >&6; } | |
98418dba | 17333 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
c0d27fcc | 17334 | cat >>confdefs.h <<_ACEOF |
98418dba | 17335 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 17336 | _ACEOF |
98418dba CW |
17337 | |
17338 | fi | |
17339 | done | |
17340 | ||
c0d27fcc | 17341 | |
98418dba CW |
17342 | # Solaris has libkstat which does not require root. |
17343 | ||
ca81d7a0 JD |
17344 | { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5 |
17345 | echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; } | |
98418dba | 17346 | if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then |
f21fadcc JD |
17347 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17348 | else | |
17349 | ac_check_lib_save_LIBS=$LIBS | |
98418dba | 17350 | LIBS="-lkstat $LIBS" |
f21fadcc | 17351 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
17352 | /* confdefs.h. */ |
17353 | _ACEOF | |
17354 | cat confdefs.h >>conftest.$ac_ext | |
17355 | cat >>conftest.$ac_ext <<_ACEOF | |
17356 | /* end confdefs.h. */ | |
f21fadcc | 17357 | |
ca81d7a0 JD |
17358 | /* Override any GCC internal prototype to avoid an error. |
17359 | Use char because int might match the return type of a GCC | |
17360 | builtin and then its argument prototype would still apply. */ | |
f21fadcc JD |
17361 | #ifdef __cplusplus |
17362 | extern "C" | |
17363 | #endif | |
98418dba | 17364 | char kstat_open (); |
f21fadcc JD |
17365 | int |
17366 | main () | |
17367 | { | |
ca81d7a0 | 17368 | return kstat_open (); |
f21fadcc JD |
17369 | ; |
17370 | return 0; | |
17371 | } | |
17372 | _ACEOF | |
17373 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
17374 | if { (ac_try="$ac_link" |
17375 | case "(($ac_try" in | |
17376 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17377 | *) ac_try_echo=$ac_try;; | |
17378 | esac | |
17379 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17380 | (eval "$ac_link") 2>conftest.er1 | |
f21fadcc | 17381 | ac_status=$? |
edfaf76d LK |
17382 | grep -v '^ *+' conftest.er1 >conftest.err |
17383 | rm -f conftest.er1 | |
17384 | cat conftest.err >&5 | |
c0d27fcc | 17385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
17386 | (exit $ac_status); } && { |
17387 | test -z "$ac_c_werror_flag" || | |
17388 | test ! -s conftest.err | |
17389 | } && test -s conftest$ac_exeext && | |
17390 | $as_test_x conftest$ac_exeext; then | |
98418dba | 17391 | ac_cv_lib_kstat_kstat_open=yes |
f21fadcc JD |
17392 | else |
17393 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17394 | sed 's/^/| /' conftest.$ac_ext >&5 |
17395 | ||
ca81d7a0 | 17396 | ac_cv_lib_kstat_kstat_open=no |
f21fadcc | 17397 | fi |
ca81d7a0 | 17398 | |
f053c89f | 17399 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 17400 | conftest$ac_exeext conftest.$ac_ext |
f21fadcc JD |
17401 | LIBS=$ac_check_lib_save_LIBS |
17402 | fi | |
ca81d7a0 JD |
17403 | { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5 |
17404 | echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; } | |
98418dba | 17405 | if test $ac_cv_lib_kstat_kstat_open = yes; then |
c0d27fcc | 17406 | cat >>confdefs.h <<_ACEOF |
98418dba | 17407 | #define HAVE_LIBKSTAT 1 |
c0d27fcc | 17408 | _ACEOF |
f21fadcc | 17409 | |
98418dba | 17410 | LIBS="-lkstat $LIBS" |
f21fadcc | 17411 | |
f21fadcc JD |
17412 | fi |
17413 | ||
98418dba CW |
17414 | test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes |
17415 | ||
17416 | # Some systems with -lutil have (and need) -lkvm as well, some do not. | |
17417 | # On Solaris, -lkvm requires nlist from -lelf, so check that first | |
17418 | # to get the right answer into the cache. | |
17419 | # For kstat on solaris, we need libelf to force the definition of SVR4 below. | |
17420 | if test $ac_have_func = no; then | |
ca81d7a0 JD |
17421 | { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5 |
17422 | echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; } | |
98418dba | 17423 | if test "${ac_cv_lib_elf_elf_begin+set}" = set; then |
503d2be0 | 17424 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 17425 | else |
98418dba CW |
17426 | ac_check_lib_save_LIBS=$LIBS |
17427 | LIBS="-lelf $LIBS" | |
17428 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
17429 | /* confdefs.h. */ |
17430 | _ACEOF | |
17431 | cat confdefs.h >>conftest.$ac_ext | |
17432 | cat >>conftest.$ac_ext <<_ACEOF | |
17433 | /* end confdefs.h. */ | |
98418dba | 17434 | |
ca81d7a0 JD |
17435 | /* Override any GCC internal prototype to avoid an error. |
17436 | Use char because int might match the return type of a GCC | |
17437 | builtin and then its argument prototype would still apply. */ | |
98418dba CW |
17438 | #ifdef __cplusplus |
17439 | extern "C" | |
17440 | #endif | |
98418dba | 17441 | char elf_begin (); |
503d2be0 AS |
17442 | int |
17443 | main () | |
17444 | { | |
ca81d7a0 | 17445 | return elf_begin (); |
503d2be0 AS |
17446 | ; |
17447 | return 0; | |
17448 | } | |
17449 | _ACEOF | |
17450 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
17451 | if { (ac_try="$ac_link" |
17452 | case "(($ac_try" in | |
17453 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17454 | *) ac_try_echo=$ac_try;; | |
17455 | esac | |
17456 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17457 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 17458 | ac_status=$? |
edfaf76d LK |
17459 | grep -v '^ *+' conftest.er1 >conftest.err |
17460 | rm -f conftest.er1 | |
17461 | cat conftest.err >&5 | |
c0d27fcc | 17462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
c24fa7dc MB |
17463 | (exit $ac_status); } && { |
17464 | test -z "$ac_c_werror_flag" || | |
17465 | test ! -s conftest.err | |
17466 | } && test -s conftest$ac_exeext && | |
17467 | $as_test_x conftest$ac_exeext; then | |
98418dba | 17468 | ac_cv_lib_elf_elf_begin=yes |
ba4481b5 | 17469 | else |
503d2be0 | 17470 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
17471 | sed 's/^/| /' conftest.$ac_ext >&5 |
17472 | ||
ca81d7a0 | 17473 | ac_cv_lib_elf_elf_begin=no |
ba4481b5 | 17474 | fi |
ca81d7a0 | 17475 | |
f053c89f | 17476 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 17477 | conftest$ac_exeext conftest.$ac_ext |
98418dba | 17478 | LIBS=$ac_check_lib_save_LIBS |
ba4481b5 | 17479 | fi |
ca81d7a0 JD |
17480 | { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5 |
17481 | echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; } | |
98418dba CW |
17482 | if test $ac_cv_lib_elf_elf_begin = yes; then |
17483 | LIBS="-lelf $LIBS" | |
ba4481b5 DL |
17484 | fi |
17485 | ||
98418dba CW |
17486 | fi |
17487 | if test $ac_have_func = no; then | |
ca81d7a0 JD |
17488 | { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5 |
17489 | echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; } | |
98418dba | 17490 | if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then |
503d2be0 | 17491 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 17492 | else |
98418dba CW |
17493 | ac_check_lib_save_LIBS=$LIBS |
17494 | LIBS="-lkvm $LIBS" | |
17495 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
17496 | /* confdefs.h. */ |
17497 | _ACEOF | |
17498 | cat confdefs.h >>conftest.$ac_ext | |
17499 | cat >>conftest.$ac_ext <<_ACEOF | |
17500 | /* end confdefs.h. */ | |
98418dba | 17501 | |
ca81d7a0 JD |
17502 | /* Override any GCC internal prototype to avoid an error. |
17503 | Use char because int might match the return type of a GCC | |
17504 | builtin and then its argument prototype would still apply. */ | |
98418dba CW |
17505 | #ifdef __cplusplus |
17506 | extern "C" | |
17507 | #endif | |
98418dba | 17508 | char kvm_open (); |
503d2be0 AS |
17509 | int |
17510 | main () | |
17511 | { | |
ca81d7a0 | 17512 | return kvm_open (); |
503d2be0 AS |
17513 | ; |
17514 | return 0; | |
17515 | } | |
17516 | _ACEOF | |
17517 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
17518 | if { (ac_try="$ac_link" |
17519 | case "(($ac_try" in | |
17520 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17521 | *) ac_try_echo=$ac_try;; | |
17522 | esac | |
17523 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17524 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 17525 | ac_status=$? |
edfaf76d LK |
17526 | grep -v '^ *+' conftest.er1 >conftest.err |
17527 | rm -f conftest.er1 | |
17528 | cat conftest.err >&5 | |
c0d27fcc | 17529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
c24fa7dc MB |
17530 | (exit $ac_status); } && { |
17531 | test -z "$ac_c_werror_flag" || | |
17532 | test ! -s conftest.err | |
17533 | } && test -s conftest$ac_exeext && | |
17534 | $as_test_x conftest$ac_exeext; then | |
98418dba | 17535 | ac_cv_lib_kvm_kvm_open=yes |
503d2be0 AS |
17536 | else |
17537 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17538 | sed 's/^/| /' conftest.$ac_ext >&5 |
17539 | ||
ca81d7a0 | 17540 | ac_cv_lib_kvm_kvm_open=no |
503d2be0 | 17541 | fi |
ca81d7a0 | 17542 | |
f053c89f | 17543 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 17544 | conftest$ac_exeext conftest.$ac_ext |
98418dba | 17545 | LIBS=$ac_check_lib_save_LIBS |
503d2be0 | 17546 | fi |
ca81d7a0 JD |
17547 | { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5 |
17548 | echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; } | |
98418dba CW |
17549 | if test $ac_cv_lib_kvm_kvm_open = yes; then |
17550 | LIBS="-lkvm $LIBS" | |
ba4481b5 DL |
17551 | fi |
17552 | ||
98418dba | 17553 | # Check for the 4.4BSD definition of getloadavg. |
ca81d7a0 JD |
17554 | { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5 |
17555 | echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; } | |
98418dba | 17556 | if test "${ac_cv_lib_util_getloadavg+set}" = set; then |
503d2be0 | 17557 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 17558 | else |
98418dba CW |
17559 | ac_check_lib_save_LIBS=$LIBS |
17560 | LIBS="-lutil $LIBS" | |
17561 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
17562 | /* confdefs.h. */ |
17563 | _ACEOF | |
17564 | cat confdefs.h >>conftest.$ac_ext | |
17565 | cat >>conftest.$ac_ext <<_ACEOF | |
17566 | /* end confdefs.h. */ | |
98418dba | 17567 | |
ca81d7a0 JD |
17568 | /* Override any GCC internal prototype to avoid an error. |
17569 | Use char because int might match the return type of a GCC | |
17570 | builtin and then its argument prototype would still apply. */ | |
98418dba CW |
17571 | #ifdef __cplusplus |
17572 | extern "C" | |
17573 | #endif | |
98418dba | 17574 | char getloadavg (); |
503d2be0 AS |
17575 | int |
17576 | main () | |
17577 | { | |
ca81d7a0 | 17578 | return getloadavg (); |
503d2be0 AS |
17579 | ; |
17580 | return 0; | |
17581 | } | |
17582 | _ACEOF | |
17583 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
17584 | if { (ac_try="$ac_link" |
17585 | case "(($ac_try" in | |
17586 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17587 | *) ac_try_echo=$ac_try;; | |
17588 | esac | |
17589 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17590 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 17591 | ac_status=$? |
edfaf76d LK |
17592 | grep -v '^ *+' conftest.er1 >conftest.err |
17593 | rm -f conftest.er1 | |
17594 | cat conftest.err >&5 | |
c0d27fcc | 17595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
c24fa7dc MB |
17596 | (exit $ac_status); } && { |
17597 | test -z "$ac_c_werror_flag" || | |
17598 | test ! -s conftest.err | |
17599 | } && test -s conftest$ac_exeext && | |
17600 | $as_test_x conftest$ac_exeext; then | |
35996d22 AS |
17601 | ac_cv_lib_util_getloadavg=yes |
17602 | else | |
503d2be0 | 17603 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
17604 | sed 's/^/| /' conftest.$ac_ext >&5 |
17605 | ||
ca81d7a0 | 17606 | ac_cv_lib_util_getloadavg=no |
ba4481b5 | 17607 | fi |
ca81d7a0 | 17608 | |
f053c89f | 17609 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 17610 | conftest$ac_exeext conftest.$ac_ext |
98418dba CW |
17611 | LIBS=$ac_check_lib_save_LIBS |
17612 | fi | |
ca81d7a0 JD |
17613 | { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5 |
17614 | echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; } | |
98418dba CW |
17615 | if test $ac_cv_lib_util_getloadavg = yes; then |
17616 | LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes | |
ba4481b5 | 17617 | fi |
503d2be0 | 17618 | |
98418dba | 17619 | fi |
ba4481b5 | 17620 | |
98418dba CW |
17621 | if test $ac_have_func = no; then |
17622 | # There is a commonly available library for RS/6000 AIX. | |
17623 | # Since it is not a standard part of AIX, it might be installed locally. | |
17624 | ac_getloadavg_LIBS=$LIBS | |
17625 | LIBS="-L/usr/local/lib $LIBS" | |
ca81d7a0 JD |
17626 | { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5 |
17627 | echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; } | |
98418dba | 17628 | if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then |
503d2be0 | 17629 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 17630 | else |
98418dba CW |
17631 | ac_check_lib_save_LIBS=$LIBS |
17632 | LIBS="-lgetloadavg $LIBS" | |
17633 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
17634 | /* confdefs.h. */ |
17635 | _ACEOF | |
17636 | cat confdefs.h >>conftest.$ac_ext | |
17637 | cat >>conftest.$ac_ext <<_ACEOF | |
17638 | /* end confdefs.h. */ | |
ba4481b5 | 17639 | |
ca81d7a0 JD |
17640 | /* Override any GCC internal prototype to avoid an error. |
17641 | Use char because int might match the return type of a GCC | |
17642 | builtin and then its argument prototype would still apply. */ | |
98418dba CW |
17643 | #ifdef __cplusplus |
17644 | extern "C" | |
17645 | #endif | |
98418dba | 17646 | char getloadavg (); |
98418dba CW |
17647 | int |
17648 | main () | |
17649 | { | |
ca81d7a0 | 17650 | return getloadavg (); |
98418dba CW |
17651 | ; |
17652 | return 0; | |
17653 | } | |
503d2be0 | 17654 | _ACEOF |
98418dba | 17655 | rm -f conftest.$ac_objext conftest$ac_exeext |
ca81d7a0 JD |
17656 | if { (ac_try="$ac_link" |
17657 | case "(($ac_try" in | |
17658 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17659 | *) ac_try_echo=$ac_try;; | |
17660 | esac | |
17661 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17662 | (eval "$ac_link") 2>conftest.er1 | |
98418dba | 17663 | ac_status=$? |
edfaf76d LK |
17664 | grep -v '^ *+' conftest.er1 >conftest.err |
17665 | rm -f conftest.er1 | |
17666 | cat conftest.err >&5 | |
c0d27fcc | 17667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
17668 | (exit $ac_status); } && { |
17669 | test -z "$ac_c_werror_flag" || | |
17670 | test ! -s conftest.err | |
17671 | } && test -s conftest$ac_exeext && | |
17672 | $as_test_x conftest$ac_exeext; then | |
98418dba | 17673 | ac_cv_lib_getloadavg_getloadavg=yes |
ba4481b5 | 17674 | else |
98418dba | 17675 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
17676 | sed 's/^/| /' conftest.$ac_ext >&5 |
17677 | ||
ca81d7a0 | 17678 | ac_cv_lib_getloadavg_getloadavg=no |
98418dba | 17679 | fi |
ca81d7a0 | 17680 | |
f053c89f | 17681 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 17682 | conftest$ac_exeext conftest.$ac_ext |
98418dba CW |
17683 | LIBS=$ac_check_lib_save_LIBS |
17684 | fi | |
ca81d7a0 JD |
17685 | { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5 |
17686 | echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; } | |
98418dba CW |
17687 | if test $ac_cv_lib_getloadavg_getloadavg = yes; then |
17688 | LIBS="-lgetloadavg $LIBS" | |
17689 | else | |
17690 | LIBS=$ac_getloadavg_LIBS | |
ba4481b5 | 17691 | fi |
ba4481b5 DL |
17692 | |
17693 | fi | |
98418dba CW |
17694 | |
17695 | # Make sure it is really in the library, if we think we found it, | |
17696 | # otherwise set up the replacement function. | |
17697 | ||
17698 | for ac_func in getloadavg | |
17699 | do | |
17700 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
ca81d7a0 JD |
17701 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
17702 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
17703 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 17704 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 17705 | else |
503d2be0 | 17706 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
17707 | /* confdefs.h. */ |
17708 | _ACEOF | |
17709 | cat confdefs.h >>conftest.$ac_ext | |
17710 | cat >>conftest.$ac_ext <<_ACEOF | |
17711 | /* end confdefs.h. */ | |
edfaf76d LK |
17712 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
17713 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17714 | #define $ac_func innocuous_$ac_func | |
17715 | ||
ba4481b5 | 17716 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
17717 | which can conflict with char $ac_func (); below. |
17718 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17719 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 17720 | |
19650fd6 AS |
17721 | #ifdef __STDC__ |
17722 | # include <limits.h> | |
17723 | #else | |
17724 | # include <assert.h> | |
17725 | #endif | |
edfaf76d LK |
17726 | |
17727 | #undef $ac_func | |
17728 | ||
ca81d7a0 JD |
17729 | /* Override any GCC internal prototype to avoid an error. |
17730 | Use char because int might match the return type of a GCC | |
17731 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
17732 | #ifdef __cplusplus |
17733 | extern "C" | |
17734 | #endif | |
503d2be0 | 17735 | char $ac_func (); |
ba4481b5 DL |
17736 | /* The GNU C library defines this for functions which it implements |
17737 | to always fail with ENOSYS. Some functions are actually named | |
17738 | something starting with __ and the normal name is an alias. */ | |
ca81d7a0 | 17739 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ba4481b5 | 17740 | choke me |
cd958eb3 MB |
17741 | #endif |
17742 | ||
19650fd6 AS |
17743 | int |
17744 | main () | |
17745 | { | |
ca81d7a0 | 17746 | return $ac_func (); |
503d2be0 AS |
17747 | ; |
17748 | return 0; | |
17749 | } | |
17750 | _ACEOF | |
17751 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
17752 | if { (ac_try="$ac_link" |
17753 | case "(($ac_try" in | |
17754 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17755 | *) ac_try_echo=$ac_try;; | |
17756 | esac | |
17757 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17758 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 17759 | ac_status=$? |
edfaf76d LK |
17760 | grep -v '^ *+' conftest.er1 >conftest.err |
17761 | rm -f conftest.er1 | |
17762 | cat conftest.err >&5 | |
c0d27fcc | 17763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
17764 | (exit $ac_status); } && { |
17765 | test -z "$ac_c_werror_flag" || | |
17766 | test ! -s conftest.err | |
17767 | } && test -s conftest$ac_exeext && | |
17768 | $as_test_x conftest$ac_exeext; then | |
503d2be0 AS |
17769 | eval "$as_ac_var=yes" |
17770 | else | |
17771 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17772 | sed 's/^/| /' conftest.$ac_ext >&5 |
17773 | ||
ca81d7a0 | 17774 | eval "$as_ac_var=no" |
503d2be0 | 17775 | fi |
ca81d7a0 | 17776 | |
f053c89f | 17777 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 17778 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 | 17779 | fi |
ca81d7a0 JD |
17780 | ac_res=`eval echo '${'$as_ac_var'}'` |
17781 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
17782 | echo "${ECHO_T}$ac_res" >&6; } | |
503d2be0 | 17783 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
c0d27fcc | 17784 | cat >>confdefs.h <<_ACEOF |
98418dba | 17785 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 17786 | _ACEOF |
503d2be0 | 17787 | |
98418dba | 17788 | else |
ca81d7a0 | 17789 | case " $LIBOBJS " in |
edfaf76d | 17790 | *" getloadavg.$ac_objext "* ) ;; |
ca81d7a0 JD |
17791 | *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" |
17792 | ;; | |
edfaf76d LK |
17793 | esac |
17794 | ||
ba4481b5 | 17795 | |
c0d27fcc | 17796 | cat >>confdefs.h <<\_ACEOF |
98418dba | 17797 | #define C_GETLOADAVG 1 |
c0d27fcc | 17798 | _ACEOF |
ba4481b5 | 17799 | |
98418dba CW |
17800 | # Figure out what our getloadavg.c needs. |
17801 | ac_have_func=no | |
c0d27fcc | 17802 | if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then |
ca81d7a0 JD |
17803 | { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5 |
17804 | echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; } | |
98418dba | 17805 | if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then |
503d2be0 | 17806 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc | 17807 | fi |
ca81d7a0 JD |
17808 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5 |
17809 | echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; } | |
ba4481b5 | 17810 | else |
c0d27fcc | 17811 | # Is the header compilable? |
ca81d7a0 JD |
17812 | { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5 |
17813 | echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; } | |
c0d27fcc | 17814 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
17815 | /* confdefs.h. */ |
17816 | _ACEOF | |
17817 | cat confdefs.h >>conftest.$ac_ext | |
17818 | cat >>conftest.$ac_ext <<_ACEOF | |
17819 | /* end confdefs.h. */ | |
c0d27fcc MR |
17820 | $ac_includes_default |
17821 | #include <sys/dg_sys_info.h> | |
17822 | _ACEOF | |
17823 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
17824 | if { (ac_try="$ac_compile" |
17825 | case "(($ac_try" in | |
17826 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17827 | *) ac_try_echo=$ac_try;; | |
17828 | esac | |
17829 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17830 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 17831 | ac_status=$? |
edfaf76d LK |
17832 | grep -v '^ *+' conftest.er1 >conftest.err |
17833 | rm -f conftest.er1 | |
17834 | cat conftest.err >&5 | |
c0d27fcc | 17835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
17836 | (exit $ac_status); } && { |
17837 | test -z "$ac_c_werror_flag" || | |
17838 | test ! -s conftest.err | |
17839 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
17840 | ac_header_compiler=yes |
17841 | else | |
17842 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17843 | sed 's/^/| /' conftest.$ac_ext >&5 |
17844 | ||
ca81d7a0 | 17845 | ac_header_compiler=no |
c0d27fcc | 17846 | fi |
ca81d7a0 JD |
17847 | |
17848 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17849 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
17850 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
17851 | |
17852 | # Is the header present? | |
ca81d7a0 JD |
17853 | { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5 |
17854 | echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; } | |
c0d27fcc | 17855 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
17856 | /* confdefs.h. */ |
17857 | _ACEOF | |
17858 | cat confdefs.h >>conftest.$ac_ext | |
17859 | cat >>conftest.$ac_ext <<_ACEOF | |
17860 | /* end confdefs.h. */ | |
98418dba CW |
17861 | #include <sys/dg_sys_info.h> |
17862 | _ACEOF | |
ca81d7a0 JD |
17863 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
17864 | case "(($ac_try" in | |
17865 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17866 | *) ac_try_echo=$ac_try;; | |
17867 | esac | |
17868 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17869 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
98418dba | 17870 | ac_status=$? |
6bae0ccf | 17871 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
17872 | rm -f conftest.er1 |
17873 | cat conftest.err >&5 | |
c0d27fcc | 17874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
17875 | (exit $ac_status); } >/dev/null && { |
17876 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
17877 | test ! -s conftest.err | |
17878 | }; then | |
c0d27fcc | 17879 | ac_header_preproc=yes |
98418dba CW |
17880 | else |
17881 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17882 | sed 's/^/| /' conftest.$ac_ext >&5 |
17883 | ||
c0d27fcc | 17884 | ac_header_preproc=no |
ba4481b5 | 17885 | fi |
ca81d7a0 | 17886 | |
98418dba | 17887 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
17888 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
17889 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
17890 | |
17891 | # So? What about this header? | |
edfaf76d LK |
17892 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
17893 | yes:no: ) | |
c0d27fcc MR |
17894 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
17895 | echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
17896 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5 |
17897 | echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;} | |
17898 | ac_header_preproc=yes | |
19650fd6 | 17899 | ;; |
edfaf76d | 17900 | no:yes:* ) |
c0d27fcc MR |
17901 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5 |
17902 | echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;} | |
edfaf76d LK |
17903 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5 |
17904 | echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;} | |
17905 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5 | |
17906 | echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;} | |
17907 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5 | |
17908 | echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 17909 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 17910 | echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
17911 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5 |
17912 | echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 17913 | |
19650fd6 | 17914 | ;; |
c0d27fcc | 17915 | esac |
ca81d7a0 JD |
17916 | { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5 |
17917 | echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; } | |
c0d27fcc MR |
17918 | if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then |
17919 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17920 | else | |
17921 | ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc | |
98418dba | 17922 | fi |
ca81d7a0 JD |
17923 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5 |
17924 | echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; } | |
c0d27fcc MR |
17925 | |
17926 | fi | |
98418dba CW |
17927 | if test $ac_cv_header_sys_dg_sys_info_h = yes; then |
17928 | ac_have_func=yes | |
ba4481b5 | 17929 | |
c0d27fcc | 17930 | cat >>confdefs.h <<\_ACEOF |
98418dba | 17931 | #define DGUX 1 |
c0d27fcc MR |
17932 | _ACEOF |
17933 | ||
503d2be0 | 17934 | |
ca81d7a0 JD |
17935 | { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5 |
17936 | echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; } | |
98418dba | 17937 | if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then |
503d2be0 | 17938 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 17939 | else |
503d2be0 | 17940 | ac_check_lib_save_LIBS=$LIBS |
98418dba | 17941 | LIBS="-ldgc $LIBS" |
503d2be0 | 17942 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
17943 | /* confdefs.h. */ |
17944 | _ACEOF | |
17945 | cat confdefs.h >>conftest.$ac_ext | |
17946 | cat >>conftest.$ac_ext <<_ACEOF | |
17947 | /* end confdefs.h. */ | |
503d2be0 | 17948 | |
ca81d7a0 JD |
17949 | /* Override any GCC internal prototype to avoid an error. |
17950 | Use char because int might match the return type of a GCC | |
17951 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
17952 | #ifdef __cplusplus |
17953 | extern "C" | |
17954 | #endif | |
98418dba | 17955 | char dg_sys_info (); |
503d2be0 AS |
17956 | int |
17957 | main () | |
17958 | { | |
ca81d7a0 | 17959 | return dg_sys_info (); |
503d2be0 AS |
17960 | ; |
17961 | return 0; | |
17962 | } | |
17963 | _ACEOF | |
17964 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
17965 | if { (ac_try="$ac_link" |
17966 | case "(($ac_try" in | |
17967 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17968 | *) ac_try_echo=$ac_try;; | |
17969 | esac | |
17970 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17971 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 17972 | ac_status=$? |
edfaf76d LK |
17973 | grep -v '^ *+' conftest.er1 >conftest.err |
17974 | rm -f conftest.er1 | |
17975 | cat conftest.err >&5 | |
c0d27fcc | 17976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
17977 | (exit $ac_status); } && { |
17978 | test -z "$ac_c_werror_flag" || | |
17979 | test ! -s conftest.err | |
17980 | } && test -s conftest$ac_exeext && | |
17981 | $as_test_x conftest$ac_exeext; then | |
98418dba | 17982 | ac_cv_lib_dgc_dg_sys_info=yes |
503d2be0 AS |
17983 | else |
17984 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
17985 | sed 's/^/| /' conftest.$ac_ext >&5 |
17986 | ||
ca81d7a0 | 17987 | ac_cv_lib_dgc_dg_sys_info=no |
503d2be0 | 17988 | fi |
ca81d7a0 | 17989 | |
f053c89f | 17990 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 17991 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 AS |
17992 | LIBS=$ac_check_lib_save_LIBS |
17993 | fi | |
ca81d7a0 JD |
17994 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5 |
17995 | echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; } | |
98418dba | 17996 | if test $ac_cv_lib_dgc_dg_sys_info = yes; then |
c0d27fcc | 17997 | cat >>confdefs.h <<_ACEOF |
98418dba | 17998 | #define HAVE_LIBDGC 1 |
c0d27fcc | 17999 | _ACEOF |
ba4481b5 | 18000 | |
98418dba | 18001 | LIBS="-ldgc $LIBS" |
ba4481b5 | 18002 | |
ba4481b5 DL |
18003 | fi |
18004 | ||
98418dba | 18005 | fi |
503d2be0 | 18006 | |
c0d27fcc MR |
18007 | |
18008 | ||
18009 | if test "${ac_cv_header_locale_h+set}" = set; then | |
ca81d7a0 JD |
18010 | { echo "$as_me:$LINENO: checking for locale.h" >&5 |
18011 | echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; } | |
98418dba | 18012 | if test "${ac_cv_header_locale_h+set}" = set; then |
503d2be0 | 18013 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc | 18014 | fi |
ca81d7a0 JD |
18015 | { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5 |
18016 | echo "${ECHO_T}$ac_cv_header_locale_h" >&6; } | |
503d2be0 | 18017 | else |
c0d27fcc | 18018 | # Is the header compilable? |
ca81d7a0 JD |
18019 | { echo "$as_me:$LINENO: checking locale.h usability" >&5 |
18020 | echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; } | |
c0d27fcc | 18021 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
18022 | /* confdefs.h. */ |
18023 | _ACEOF | |
18024 | cat confdefs.h >>conftest.$ac_ext | |
18025 | cat >>conftest.$ac_ext <<_ACEOF | |
18026 | /* end confdefs.h. */ | |
c0d27fcc MR |
18027 | $ac_includes_default |
18028 | #include <locale.h> | |
18029 | _ACEOF | |
18030 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
18031 | if { (ac_try="$ac_compile" |
18032 | case "(($ac_try" in | |
18033 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18034 | *) ac_try_echo=$ac_try;; | |
18035 | esac | |
18036 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
18037 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 18038 | ac_status=$? |
edfaf76d LK |
18039 | grep -v '^ *+' conftest.er1 >conftest.err |
18040 | rm -f conftest.er1 | |
18041 | cat conftest.err >&5 | |
c0d27fcc | 18042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
18043 | (exit $ac_status); } && { |
18044 | test -z "$ac_c_werror_flag" || | |
18045 | test ! -s conftest.err | |
18046 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
18047 | ac_header_compiler=yes |
18048 | else | |
18049 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18050 | sed 's/^/| /' conftest.$ac_ext >&5 |
18051 | ||
ca81d7a0 | 18052 | ac_header_compiler=no |
c0d27fcc | 18053 | fi |
ca81d7a0 JD |
18054 | |
18055 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18056 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
18057 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
18058 | |
18059 | # Is the header present? | |
ca81d7a0 JD |
18060 | { echo "$as_me:$LINENO: checking locale.h presence" >&5 |
18061 | echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; } | |
c0d27fcc | 18062 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
18063 | /* confdefs.h. */ |
18064 | _ACEOF | |
18065 | cat confdefs.h >>conftest.$ac_ext | |
18066 | cat >>conftest.$ac_ext <<_ACEOF | |
18067 | /* end confdefs.h. */ | |
98418dba | 18068 | #include <locale.h> |
503d2be0 | 18069 | _ACEOF |
ca81d7a0 JD |
18070 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
18071 | case "(($ac_try" in | |
18072 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18073 | *) ac_try_echo=$ac_try;; | |
18074 | esac | |
18075 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
18076 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 18077 | ac_status=$? |
6bae0ccf | 18078 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
18079 | rm -f conftest.er1 |
18080 | cat conftest.err >&5 | |
c0d27fcc | 18081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
18082 | (exit $ac_status); } >/dev/null && { |
18083 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
18084 | test ! -s conftest.err | |
18085 | }; then | |
c0d27fcc | 18086 | ac_header_preproc=yes |
98418dba CW |
18087 | else |
18088 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18089 | sed 's/^/| /' conftest.$ac_ext >&5 |
18090 | ||
c0d27fcc | 18091 | ac_header_preproc=no |
ba4481b5 | 18092 | fi |
ca81d7a0 | 18093 | |
98418dba | 18094 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
18095 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
18096 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
18097 | |
18098 | # So? What about this header? | |
edfaf76d LK |
18099 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
18100 | yes:no: ) | |
c0d27fcc MR |
18101 | { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
18102 | echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
18103 | { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5 |
18104 | echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;} | |
18105 | ac_header_preproc=yes | |
19650fd6 | 18106 | ;; |
edfaf76d | 18107 | no:yes:* ) |
c0d27fcc MR |
18108 | { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5 |
18109 | echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;} | |
edfaf76d LK |
18110 | { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5 |
18111 | echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;} | |
18112 | { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5 | |
18113 | echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;} | |
18114 | { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5 | |
18115 | echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 18116 | { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 18117 | echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
18118 | { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5 |
18119 | echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 18120 | |
19650fd6 | 18121 | ;; |
c0d27fcc | 18122 | esac |
ca81d7a0 JD |
18123 | { echo "$as_me:$LINENO: checking for locale.h" >&5 |
18124 | echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; } | |
c0d27fcc MR |
18125 | if test "${ac_cv_header_locale_h+set}" = set; then |
18126 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18127 | else | |
18128 | ac_cv_header_locale_h=$ac_header_preproc | |
ba4481b5 | 18129 | fi |
ca81d7a0 JD |
18130 | { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5 |
18131 | echo "${ECHO_T}$ac_cv_header_locale_h" >&6; } | |
98418dba | 18132 | |
c0d27fcc MR |
18133 | fi |
18134 | ||
18135 | ||
18136 | ||
98418dba | 18137 | for ac_func in setlocale |
ba4481b5 | 18138 | do |
503d2be0 | 18139 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
ca81d7a0 JD |
18140 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
18141 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
18142 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 18143 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ba4481b5 | 18144 | else |
503d2be0 | 18145 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
18146 | /* confdefs.h. */ |
18147 | _ACEOF | |
18148 | cat confdefs.h >>conftest.$ac_ext | |
18149 | cat >>conftest.$ac_ext <<_ACEOF | |
18150 | /* end confdefs.h. */ | |
edfaf76d LK |
18151 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
18152 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
18153 | #define $ac_func innocuous_$ac_func | |
18154 | ||
ba4481b5 | 18155 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
18156 | which can conflict with char $ac_func (); below. |
18157 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18158 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 18159 | |
19650fd6 AS |
18160 | #ifdef __STDC__ |
18161 | # include <limits.h> | |
18162 | #else | |
18163 | # include <assert.h> | |
18164 | #endif | |
edfaf76d LK |
18165 | |
18166 | #undef $ac_func | |
18167 | ||
ca81d7a0 JD |
18168 | /* Override any GCC internal prototype to avoid an error. |
18169 | Use char because int might match the return type of a GCC | |
18170 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
18171 | #ifdef __cplusplus |
18172 | extern "C" | |
18173 | #endif | |
503d2be0 | 18174 | char $ac_func (); |
ba4481b5 DL |
18175 | /* The GNU C library defines this for functions which it implements |
18176 | to always fail with ENOSYS. Some functions are actually named | |
18177 | something starting with __ and the normal name is an alias. */ | |
ca81d7a0 | 18178 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ba4481b5 | 18179 | choke me |
ba4481b5 DL |
18180 | #endif |
18181 | ||
19650fd6 AS |
18182 | int |
18183 | main () | |
18184 | { | |
ca81d7a0 | 18185 | return $ac_func (); |
503d2be0 AS |
18186 | ; |
18187 | return 0; | |
18188 | } | |
18189 | _ACEOF | |
18190 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
18191 | if { (ac_try="$ac_link" |
18192 | case "(($ac_try" in | |
18193 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18194 | *) ac_try_echo=$ac_try;; | |
18195 | esac | |
18196 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
18197 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 18198 | ac_status=$? |
edfaf76d LK |
18199 | grep -v '^ *+' conftest.er1 >conftest.err |
18200 | rm -f conftest.er1 | |
18201 | cat conftest.err >&5 | |
c0d27fcc | 18202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
18203 | (exit $ac_status); } && { |
18204 | test -z "$ac_c_werror_flag" || | |
18205 | test ! -s conftest.err | |
18206 | } && test -s conftest$ac_exeext && | |
18207 | $as_test_x conftest$ac_exeext; then | |
503d2be0 AS |
18208 | eval "$as_ac_var=yes" |
18209 | else | |
18210 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18211 | sed 's/^/| /' conftest.$ac_ext >&5 |
18212 | ||
ca81d7a0 | 18213 | eval "$as_ac_var=no" |
503d2be0 | 18214 | fi |
ca81d7a0 | 18215 | |
f053c89f | 18216 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 18217 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 | 18218 | fi |
ca81d7a0 JD |
18219 | ac_res=`eval echo '${'$as_ac_var'}'` |
18220 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
18221 | echo "${ECHO_T}$ac_res" >&6; } | |
503d2be0 | 18222 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
c0d27fcc | 18223 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 18224 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 18225 | _ACEOF |
ba4481b5 | 18226 | |
ba4481b5 DL |
18227 | fi |
18228 | done | |
18229 | ||
c0d27fcc | 18230 | |
98418dba CW |
18231 | # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it |
18232 | # uses stabs), but it is still SVR4. We cannot check for <elf.h> because | |
18233 | # Irix 4.0.5F has the header but not the library. | |
18234 | if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then | |
18235 | ac_have_func=yes | |
18236 | ||
c0d27fcc | 18237 | cat >>confdefs.h <<\_ACEOF |
98418dba | 18238 | #define SVR4 1 |
c0d27fcc | 18239 | _ACEOF |
98418dba CW |
18240 | |
18241 | fi | |
18242 | ||
18243 | if test $ac_have_func = no; then | |
c0d27fcc | 18244 | if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then |
ca81d7a0 JD |
18245 | { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5 |
18246 | echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; } | |
98418dba | 18247 | if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then |
503d2be0 | 18248 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc | 18249 | fi |
ca81d7a0 JD |
18250 | { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5 |
18251 | echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; } | |
98418dba | 18252 | else |
c0d27fcc | 18253 | # Is the header compilable? |
ca81d7a0 JD |
18254 | { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5 |
18255 | echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; } | |
c0d27fcc | 18256 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
18257 | /* confdefs.h. */ |
18258 | _ACEOF | |
18259 | cat confdefs.h >>conftest.$ac_ext | |
18260 | cat >>conftest.$ac_ext <<_ACEOF | |
18261 | /* end confdefs.h. */ | |
c0d27fcc MR |
18262 | $ac_includes_default |
18263 | #include <inq_stats/cpustats.h> | |
18264 | _ACEOF | |
18265 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
18266 | if { (ac_try="$ac_compile" |
18267 | case "(($ac_try" in | |
18268 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18269 | *) ac_try_echo=$ac_try;; | |
18270 | esac | |
18271 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
18272 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 18273 | ac_status=$? |
edfaf76d LK |
18274 | grep -v '^ *+' conftest.er1 >conftest.err |
18275 | rm -f conftest.er1 | |
18276 | cat conftest.err >&5 | |
c0d27fcc | 18277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
18278 | (exit $ac_status); } && { |
18279 | test -z "$ac_c_werror_flag" || | |
18280 | test ! -s conftest.err | |
18281 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
18282 | ac_header_compiler=yes |
18283 | else | |
18284 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18285 | sed 's/^/| /' conftest.$ac_ext >&5 |
18286 | ||
ca81d7a0 | 18287 | ac_header_compiler=no |
c0d27fcc | 18288 | fi |
ca81d7a0 JD |
18289 | |
18290 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18291 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
18292 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
18293 | |
18294 | # Is the header present? | |
ca81d7a0 JD |
18295 | { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5 |
18296 | echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; } | |
c0d27fcc | 18297 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
18298 | /* confdefs.h. */ |
18299 | _ACEOF | |
18300 | cat confdefs.h >>conftest.$ac_ext | |
18301 | cat >>conftest.$ac_ext <<_ACEOF | |
18302 | /* end confdefs.h. */ | |
98418dba | 18303 | #include <inq_stats/cpustats.h> |
503d2be0 | 18304 | _ACEOF |
ca81d7a0 JD |
18305 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
18306 | case "(($ac_try" in | |
18307 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18308 | *) ac_try_echo=$ac_try;; | |
18309 | esac | |
18310 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
18311 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 18312 | ac_status=$? |
6bae0ccf | 18313 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
18314 | rm -f conftest.er1 |
18315 | cat conftest.err >&5 | |
c0d27fcc | 18316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
18317 | (exit $ac_status); } >/dev/null && { |
18318 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
18319 | test ! -s conftest.err | |
18320 | }; then | |
c0d27fcc | 18321 | ac_header_preproc=yes |
503d2be0 AS |
18322 | else |
18323 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18324 | sed 's/^/| /' conftest.$ac_ext >&5 |
18325 | ||
c0d27fcc | 18326 | ac_header_preproc=no |
ba4481b5 | 18327 | fi |
ca81d7a0 | 18328 | |
503d2be0 | 18329 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
18330 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
18331 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
18332 | |
18333 | # So? What about this header? | |
edfaf76d LK |
18334 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
18335 | yes:no: ) | |
c0d27fcc MR |
18336 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
18337 | echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
18338 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5 |
18339 | echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;} | |
18340 | ac_header_preproc=yes | |
19650fd6 | 18341 | ;; |
edfaf76d | 18342 | no:yes:* ) |
c0d27fcc MR |
18343 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5 |
18344 | echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;} | |
edfaf76d LK |
18345 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5 |
18346 | echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;} | |
18347 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5 | |
18348 | echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;} | |
18349 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5 | |
18350 | echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 18351 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 18352 | echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
18353 | { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5 |
18354 | echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 18355 | |
19650fd6 | 18356 | ;; |
c0d27fcc | 18357 | esac |
ca81d7a0 JD |
18358 | { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5 |
18359 | echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; } | |
c0d27fcc MR |
18360 | if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then |
18361 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18362 | else | |
18363 | ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc | |
ba4481b5 | 18364 | fi |
ca81d7a0 JD |
18365 | { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5 |
18366 | echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; } | |
c0d27fcc MR |
18367 | |
18368 | fi | |
98418dba CW |
18369 | if test $ac_cv_header_inq_stats_cpustats_h = yes; then |
18370 | ac_have_func=yes | |
ba4481b5 | 18371 | |
c0d27fcc | 18372 | cat >>confdefs.h <<\_ACEOF |
98418dba | 18373 | #define UMAX 1 |
c0d27fcc | 18374 | _ACEOF |
98418dba | 18375 | |
c0d27fcc MR |
18376 | |
18377 | cat >>confdefs.h <<\_ACEOF | |
98418dba | 18378 | #define UMAX4_3 1 |
c0d27fcc | 18379 | _ACEOF |
98418dba CW |
18380 | |
18381 | fi | |
18382 | ||
c0d27fcc | 18383 | |
98418dba CW |
18384 | fi |
18385 | ||
18386 | if test $ac_have_func = no; then | |
c0d27fcc | 18387 | if test "${ac_cv_header_sys_cpustats_h+set}" = set; then |
ca81d7a0 JD |
18388 | { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5 |
18389 | echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; } | |
98418dba | 18390 | if test "${ac_cv_header_sys_cpustats_h+set}" = set; then |
503d2be0 | 18391 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc | 18392 | fi |
ca81d7a0 JD |
18393 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5 |
18394 | echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; } | |
503d2be0 | 18395 | else |
c0d27fcc | 18396 | # Is the header compilable? |
ca81d7a0 JD |
18397 | { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5 |
18398 | echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; } | |
c0d27fcc | 18399 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
18400 | /* confdefs.h. */ |
18401 | _ACEOF | |
18402 | cat confdefs.h >>conftest.$ac_ext | |
18403 | cat >>conftest.$ac_ext <<_ACEOF | |
18404 | /* end confdefs.h. */ | |
c0d27fcc MR |
18405 | $ac_includes_default |
18406 | #include <sys/cpustats.h> | |
18407 | _ACEOF | |
18408 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
18409 | if { (ac_try="$ac_compile" |
18410 | case "(($ac_try" in | |
18411 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18412 | *) ac_try_echo=$ac_try;; | |
18413 | esac | |
18414 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
18415 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 18416 | ac_status=$? |
edfaf76d LK |
18417 | grep -v '^ *+' conftest.er1 >conftest.err |
18418 | rm -f conftest.er1 | |
18419 | cat conftest.err >&5 | |
c0d27fcc | 18420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
18421 | (exit $ac_status); } && { |
18422 | test -z "$ac_c_werror_flag" || | |
18423 | test ! -s conftest.err | |
18424 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
18425 | ac_header_compiler=yes |
18426 | else | |
18427 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18428 | sed 's/^/| /' conftest.$ac_ext >&5 |
18429 | ||
ca81d7a0 | 18430 | ac_header_compiler=no |
c0d27fcc | 18431 | fi |
ca81d7a0 JD |
18432 | |
18433 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18434 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
18435 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
18436 | |
18437 | # Is the header present? | |
ca81d7a0 JD |
18438 | { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5 |
18439 | echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; } | |
c0d27fcc | 18440 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
18441 | /* confdefs.h. */ |
18442 | _ACEOF | |
18443 | cat confdefs.h >>conftest.$ac_ext | |
18444 | cat >>conftest.$ac_ext <<_ACEOF | |
18445 | /* end confdefs.h. */ | |
98418dba CW |
18446 | #include <sys/cpustats.h> |
18447 | _ACEOF | |
ca81d7a0 JD |
18448 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
18449 | case "(($ac_try" in | |
18450 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18451 | *) ac_try_echo=$ac_try;; | |
18452 | esac | |
18453 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
18454 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
98418dba | 18455 | ac_status=$? |
6bae0ccf | 18456 | grep -v '^ *+' conftest.er1 >conftest.err |
98418dba CW |
18457 | rm -f conftest.er1 |
18458 | cat conftest.err >&5 | |
c0d27fcc | 18459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
18460 | (exit $ac_status); } >/dev/null && { |
18461 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
18462 | test ! -s conftest.err | |
18463 | }; then | |
c0d27fcc | 18464 | ac_header_preproc=yes |
98418dba CW |
18465 | else |
18466 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18467 | sed 's/^/| /' conftest.$ac_ext >&5 |
18468 | ||
c0d27fcc | 18469 | ac_header_preproc=no |
98418dba | 18470 | fi |
ca81d7a0 | 18471 | |
98418dba | 18472 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
18473 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
18474 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
18475 | |
18476 | # So? What about this header? | |
edfaf76d LK |
18477 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
18478 | yes:no: ) | |
c0d27fcc MR |
18479 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
18480 | echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
18481 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5 |
18482 | echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;} | |
18483 | ac_header_preproc=yes | |
19650fd6 | 18484 | ;; |
edfaf76d | 18485 | no:yes:* ) |
c0d27fcc MR |
18486 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5 |
18487 | echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;} | |
edfaf76d LK |
18488 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5 |
18489 | echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;} | |
18490 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5 | |
18491 | echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;} | |
18492 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5 | |
18493 | echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 18494 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 18495 | echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
18496 | { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5 |
18497 | echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 18498 | |
19650fd6 | 18499 | ;; |
c0d27fcc | 18500 | esac |
ca81d7a0 JD |
18501 | { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5 |
18502 | echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; } | |
c0d27fcc MR |
18503 | if test "${ac_cv_header_sys_cpustats_h+set}" = set; then |
18504 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18505 | else | |
18506 | ac_cv_header_sys_cpustats_h=$ac_header_preproc | |
98418dba | 18507 | fi |
ca81d7a0 JD |
18508 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5 |
18509 | echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; } | |
c0d27fcc MR |
18510 | |
18511 | fi | |
98418dba | 18512 | if test $ac_cv_header_sys_cpustats_h = yes; then |
c0d27fcc | 18513 | ac_have_func=yes; cat >>confdefs.h <<\_ACEOF |
98418dba | 18514 | #define UMAX 1 |
c0d27fcc | 18515 | _ACEOF |
ba4481b5 | 18516 | |
98418dba CW |
18517 | fi |
18518 | ||
c0d27fcc | 18519 | |
98418dba CW |
18520 | fi |
18521 | ||
18522 | if test $ac_have_func = no; then | |
18523 | ||
18524 | for ac_header in mach/mach.h | |
2c9dccc9 PJ |
18525 | do |
18526 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
ca81d7a0 JD |
18527 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
18528 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
18529 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
18530 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
2c9dccc9 | 18531 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc | 18532 | fi |
ca81d7a0 JD |
18533 | ac_res=`eval echo '${'$as_ac_Header'}'` |
18534 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
18535 | echo "${ECHO_T}$ac_res" >&6; } | |
98418dba | 18536 | else |
c0d27fcc | 18537 | # Is the header compilable? |
ca81d7a0 JD |
18538 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
18539 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
c0d27fcc | 18540 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
18541 | /* confdefs.h. */ |
18542 | _ACEOF | |
18543 | cat confdefs.h >>conftest.$ac_ext | |
18544 | cat >>conftest.$ac_ext <<_ACEOF | |
18545 | /* end confdefs.h. */ | |
c0d27fcc MR |
18546 | $ac_includes_default |
18547 | #include <$ac_header> | |
18548 | _ACEOF | |
18549 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
18550 | if { (ac_try="$ac_compile" |
18551 | case "(($ac_try" in | |
18552 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18553 | *) ac_try_echo=$ac_try;; | |
18554 | esac | |
18555 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
18556 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 18557 | ac_status=$? |
edfaf76d LK |
18558 | grep -v '^ *+' conftest.er1 >conftest.err |
18559 | rm -f conftest.er1 | |
18560 | cat conftest.err >&5 | |
c0d27fcc | 18561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
18562 | (exit $ac_status); } && { |
18563 | test -z "$ac_c_werror_flag" || | |
18564 | test ! -s conftest.err | |
18565 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
18566 | ac_header_compiler=yes |
18567 | else | |
18568 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18569 | sed 's/^/| /' conftest.$ac_ext >&5 |
18570 | ||
ca81d7a0 | 18571 | ac_header_compiler=no |
c0d27fcc | 18572 | fi |
ca81d7a0 JD |
18573 | |
18574 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18575 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
18576 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
18577 | |
18578 | # Is the header present? | |
ca81d7a0 JD |
18579 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
18580 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
c0d27fcc | 18581 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
18582 | /* confdefs.h. */ |
18583 | _ACEOF | |
18584 | cat confdefs.h >>conftest.$ac_ext | |
18585 | cat >>conftest.$ac_ext <<_ACEOF | |
18586 | /* end confdefs.h. */ | |
2c9dccc9 PJ |
18587 | #include <$ac_header> |
18588 | _ACEOF | |
ca81d7a0 JD |
18589 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
18590 | case "(($ac_try" in | |
18591 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18592 | *) ac_try_echo=$ac_try;; | |
18593 | esac | |
18594 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
18595 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
2c9dccc9 | 18596 | ac_status=$? |
6bae0ccf | 18597 | grep -v '^ *+' conftest.er1 >conftest.err |
2c9dccc9 PJ |
18598 | rm -f conftest.er1 |
18599 | cat conftest.err >&5 | |
c0d27fcc | 18600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
18601 | (exit $ac_status); } >/dev/null && { |
18602 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
18603 | test ! -s conftest.err | |
18604 | }; then | |
c0d27fcc MR |
18605 | ac_header_preproc=yes |
18606 | else | |
18607 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18608 | sed 's/^/| /' conftest.$ac_ext >&5 |
18609 | ||
c0d27fcc MR |
18610 | ac_header_preproc=no |
18611 | fi | |
ca81d7a0 | 18612 | |
c0d27fcc | 18613 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
18614 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
18615 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
18616 | |
18617 | # So? What about this header? | |
edfaf76d LK |
18618 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
18619 | yes:no: ) | |
c0d27fcc MR |
18620 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
18621 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
18622 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
18623 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
18624 | ac_header_preproc=yes | |
19650fd6 | 18625 | ;; |
edfaf76d | 18626 | no:yes:* ) |
c0d27fcc MR |
18627 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
18628 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
edfaf76d LK |
18629 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
18630 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
18631 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
18632 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
18633 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
18634 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 18635 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 18636 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
18637 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
18638 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 18639 | |
19650fd6 | 18640 | ;; |
c0d27fcc | 18641 | esac |
ca81d7a0 JD |
18642 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
18643 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
18644 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
c0d27fcc MR |
18645 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18646 | else | |
edfaf76d | 18647 | eval "$as_ac_Header=\$ac_header_preproc" |
c0d27fcc | 18648 | fi |
ca81d7a0 JD |
18649 | ac_res=`eval echo '${'$as_ac_Header'}'` |
18650 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
18651 | echo "${ECHO_T}$ac_res" >&6; } | |
c0d27fcc MR |
18652 | |
18653 | fi | |
18654 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
18655 | cat >>confdefs.h <<_ACEOF | |
18656 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
18657 | _ACEOF | |
18658 | ||
18659 | fi | |
18660 | ||
18661 | done | |
18662 | ||
18663 | fi | |
18664 | ||
18665 | ||
18666 | for ac_header in nlist.h | |
18667 | do | |
18668 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
ca81d7a0 JD |
18669 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
18670 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
18671 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
18672 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
c0d27fcc MR |
18673 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18674 | fi | |
ca81d7a0 JD |
18675 | ac_res=`eval echo '${'$as_ac_Header'}'` |
18676 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
18677 | echo "${ECHO_T}$ac_res" >&6; } | |
c0d27fcc MR |
18678 | else |
18679 | # Is the header compilable? | |
ca81d7a0 JD |
18680 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
18681 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
c0d27fcc | 18682 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
18683 | /* confdefs.h. */ |
18684 | _ACEOF | |
18685 | cat confdefs.h >>conftest.$ac_ext | |
18686 | cat >>conftest.$ac_ext <<_ACEOF | |
18687 | /* end confdefs.h. */ | |
c0d27fcc MR |
18688 | $ac_includes_default |
18689 | #include <$ac_header> | |
18690 | _ACEOF | |
18691 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
18692 | if { (ac_try="$ac_compile" |
18693 | case "(($ac_try" in | |
18694 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18695 | *) ac_try_echo=$ac_try;; | |
18696 | esac | |
18697 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
18698 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 18699 | ac_status=$? |
edfaf76d LK |
18700 | grep -v '^ *+' conftest.er1 >conftest.err |
18701 | rm -f conftest.er1 | |
18702 | cat conftest.err >&5 | |
c0d27fcc | 18703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
18704 | (exit $ac_status); } && { |
18705 | test -z "$ac_c_werror_flag" || | |
18706 | test ! -s conftest.err | |
18707 | } && test -s conftest.$ac_objext; then | |
c0d27fcc | 18708 | ac_header_compiler=yes |
2c9dccc9 PJ |
18709 | else |
18710 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18711 | sed 's/^/| /' conftest.$ac_ext >&5 |
18712 | ||
ca81d7a0 | 18713 | ac_header_compiler=no |
98418dba | 18714 | fi |
ca81d7a0 JD |
18715 | |
18716 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18717 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
18718 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
98418dba | 18719 | |
c0d27fcc | 18720 | # Is the header present? |
ca81d7a0 JD |
18721 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
18722 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
c0d27fcc | 18723 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
18724 | /* confdefs.h. */ |
18725 | _ACEOF | |
18726 | cat confdefs.h >>conftest.$ac_ext | |
18727 | cat >>conftest.$ac_ext <<_ACEOF | |
18728 | /* end confdefs.h. */ | |
503d2be0 AS |
18729 | #include <$ac_header> |
18730 | _ACEOF | |
ca81d7a0 JD |
18731 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
18732 | case "(($ac_try" in | |
18733 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18734 | *) ac_try_echo=$ac_try;; | |
18735 | esac | |
18736 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
18737 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 18738 | ac_status=$? |
6bae0ccf | 18739 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
18740 | rm -f conftest.er1 |
18741 | cat conftest.err >&5 | |
c0d27fcc | 18742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
18743 | (exit $ac_status); } >/dev/null && { |
18744 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
18745 | test ! -s conftest.err | |
18746 | }; then | |
c0d27fcc | 18747 | ac_header_preproc=yes |
503d2be0 AS |
18748 | else |
18749 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18750 | sed 's/^/| /' conftest.$ac_ext >&5 |
18751 | ||
c0d27fcc | 18752 | ac_header_preproc=no |
b5de8dc0 | 18753 | fi |
ca81d7a0 | 18754 | |
503d2be0 | 18755 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
18756 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
18757 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
18758 | |
18759 | # So? What about this header? | |
edfaf76d LK |
18760 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
18761 | yes:no: ) | |
c0d27fcc MR |
18762 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
18763 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
18764 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
18765 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
18766 | ac_header_preproc=yes | |
19650fd6 | 18767 | ;; |
edfaf76d | 18768 | no:yes:* ) |
c0d27fcc MR |
18769 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
18770 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
edfaf76d LK |
18771 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
18772 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
18773 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
18774 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
18775 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
18776 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 18777 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 18778 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
18779 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
18780 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 18781 | |
19650fd6 | 18782 | ;; |
c0d27fcc | 18783 | esac |
ca81d7a0 JD |
18784 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
18785 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
18786 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
c0d27fcc MR |
18787 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18788 | else | |
edfaf76d | 18789 | eval "$as_ac_Header=\$ac_header_preproc" |
b5de8dc0 | 18790 | fi |
ca81d7a0 JD |
18791 | ac_res=`eval echo '${'$as_ac_Header'}'` |
18792 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
18793 | echo "${ECHO_T}$ac_res" >&6; } | |
c0d27fcc MR |
18794 | |
18795 | fi | |
98418dba | 18796 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 18797 | cat >>confdefs.h <<_ACEOF |
98418dba | 18798 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 18799 | _ACEOF |
ca81d7a0 JD |
18800 | { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5 |
18801 | echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; } | |
98418dba | 18802 | if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then |
503d2be0 | 18803 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
b5de8dc0 | 18804 | else |
503d2be0 | 18805 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
18806 | /* confdefs.h. */ |
18807 | _ACEOF | |
18808 | cat confdefs.h >>conftest.$ac_ext | |
18809 | cat >>conftest.$ac_ext <<_ACEOF | |
18810 | /* end confdefs.h. */ | |
98418dba | 18811 | #include <nlist.h> |
b5de8dc0 | 18812 | |
503d2be0 AS |
18813 | int |
18814 | main () | |
18815 | { | |
98418dba CW |
18816 | static struct nlist ac_aggr; |
18817 | if (ac_aggr.n_un.n_name) | |
18818 | return 0; | |
503d2be0 AS |
18819 | ; |
18820 | return 0; | |
18821 | } | |
18822 | _ACEOF | |
98418dba | 18823 | rm -f conftest.$ac_objext |
ca81d7a0 JD |
18824 | if { (ac_try="$ac_compile" |
18825 | case "(($ac_try" in | |
18826 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18827 | *) ac_try_echo=$ac_try;; | |
18828 | esac | |
18829 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
18830 | (eval "$ac_compile") 2>conftest.er1 | |
503d2be0 | 18831 | ac_status=$? |
edfaf76d LK |
18832 | grep -v '^ *+' conftest.er1 >conftest.err |
18833 | rm -f conftest.er1 | |
18834 | cat conftest.err >&5 | |
c0d27fcc | 18835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
18836 | (exit $ac_status); } && { |
18837 | test -z "$ac_c_werror_flag" || | |
18838 | test ! -s conftest.err | |
18839 | } && test -s conftest.$ac_objext; then | |
edfaf76d | 18840 | ac_cv_member_struct_nlist_n_un_n_name=yes |
503d2be0 AS |
18841 | else |
18842 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18843 | sed 's/^/| /' conftest.$ac_ext >&5 |
18844 | ||
ca81d7a0 | 18845 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
18846 | /* confdefs.h. */ |
18847 | _ACEOF | |
18848 | cat confdefs.h >>conftest.$ac_ext | |
18849 | cat >>conftest.$ac_ext <<_ACEOF | |
18850 | /* end confdefs.h. */ | |
6bae0ccf DL |
18851 | #include <nlist.h> |
18852 | ||
18853 | int | |
18854 | main () | |
18855 | { | |
18856 | static struct nlist ac_aggr; | |
18857 | if (sizeof ac_aggr.n_un.n_name) | |
18858 | return 0; | |
18859 | ; | |
18860 | return 0; | |
18861 | } | |
18862 | _ACEOF | |
18863 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
18864 | if { (ac_try="$ac_compile" |
18865 | case "(($ac_try" in | |
18866 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18867 | *) ac_try_echo=$ac_try;; | |
18868 | esac | |
18869 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
18870 | (eval "$ac_compile") 2>conftest.er1 | |
6bae0ccf | 18871 | ac_status=$? |
edfaf76d LK |
18872 | grep -v '^ *+' conftest.er1 >conftest.err |
18873 | rm -f conftest.er1 | |
18874 | cat conftest.err >&5 | |
6bae0ccf | 18875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
c24fa7dc MB |
18876 | (exit $ac_status); } && { |
18877 | test -z "$ac_c_werror_flag" || | |
18878 | test ! -s conftest.err | |
18879 | } && test -s conftest.$ac_objext; then | |
6bae0ccf DL |
18880 | ac_cv_member_struct_nlist_n_un_n_name=yes |
18881 | else | |
18882 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
18883 | sed 's/^/| /' conftest.$ac_ext >&5 |
18884 | ||
ca81d7a0 | 18885 | ac_cv_member_struct_nlist_n_un_n_name=no |
503d2be0 | 18886 | fi |
ca81d7a0 JD |
18887 | |
18888 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
b5de8dc0 | 18889 | fi |
ca81d7a0 JD |
18890 | |
18891 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6bae0ccf | 18892 | fi |
ca81d7a0 JD |
18893 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5 |
18894 | echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; } | |
98418dba | 18895 | if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then |
b5de8dc0 | 18896 | |
c0d27fcc | 18897 | cat >>confdefs.h <<_ACEOF |
98418dba | 18898 | #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1 |
c0d27fcc | 18899 | _ACEOF |
b5de8dc0 | 18900 | |
c0d27fcc MR |
18901 | |
18902 | cat >>confdefs.h <<\_ACEOF | |
98418dba | 18903 | #define NLIST_NAME_UNION 1 |
c0d27fcc | 18904 | _ACEOF |
b5de8dc0 | 18905 | |
98418dba | 18906 | fi |
b5de8dc0 | 18907 | |
c0d27fcc | 18908 | |
98418dba | 18909 | fi |
c0d27fcc | 18910 | |
98418dba | 18911 | done |
b5de8dc0 | 18912 | |
98418dba CW |
18913 | fi |
18914 | done | |
b5de8dc0 | 18915 | |
c0d27fcc | 18916 | |
98418dba | 18917 | # Some definitions of getloadavg require that the program be installed setgid. |
ca81d7a0 JD |
18918 | { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5 |
18919 | echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; } | |
98418dba CW |
18920 | if test "${ac_cv_func_getloadavg_setgid+set}" = set; then |
18921 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18922 | else | |
18923 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
18924 | /* confdefs.h. */ |
18925 | _ACEOF | |
18926 | cat confdefs.h >>conftest.$ac_ext | |
18927 | cat >>conftest.$ac_ext <<_ACEOF | |
18928 | /* end confdefs.h. */ | |
6bae0ccf | 18929 | #include "$srcdir/$ac_config_libobj_dir/getloadavg.c" |
98418dba CW |
18930 | #ifdef LDAV_PRIVILEGED |
18931 | Yowza Am I SETGID yet | |
18932 | #endif | |
18933 | _ACEOF | |
18934 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6bae0ccf | 18935 | $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then |
98418dba CW |
18936 | ac_cv_func_getloadavg_setgid=yes |
18937 | else | |
18938 | ac_cv_func_getloadavg_setgid=no | |
18939 | fi | |
18940 | rm -f conftest* | |
b5de8dc0 | 18941 | |
98418dba | 18942 | fi |
ca81d7a0 JD |
18943 | { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5 |
18944 | echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; } | |
98418dba CW |
18945 | if test $ac_cv_func_getloadavg_setgid = yes; then |
18946 | NEED_SETGID=true | |
b5de8dc0 | 18947 | |
c0d27fcc | 18948 | cat >>confdefs.h <<\_ACEOF |
98418dba | 18949 | #define GETLOADAVG_PRIVILEGED 1 |
c0d27fcc | 18950 | _ACEOF |
98418dba | 18951 | |
b5de8dc0 | 18952 | else |
98418dba | 18953 | NEED_SETGID=false |
b5de8dc0 | 18954 | fi |
98418dba CW |
18955 | |
18956 | if test $ac_cv_func_getloadavg_setgid = yes; then | |
ca81d7a0 JD |
18957 | { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5 |
18958 | echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; } | |
98418dba CW |
18959 | if test "${ac_cv_group_kmem+set}" = set; then |
18960 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18961 | else | |
18962 | # On Solaris, /dev/kmem is a symlink. Get info on the real file. | |
18963 | ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null` | |
18964 | # If we got an error (system does not support symlinks), try without -L. | |
18965 | test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem` | |
18966 | ac_cv_group_kmem=`echo $ac_ls_output \ | |
edfaf76d | 18967 | | sed -ne 's/[ ][ ]*/ /g; |
98418dba CW |
18968 | s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/; |
18969 | / /s/.* //;p;'` | |
18970 | ||
b5de8dc0 | 18971 | fi |
ca81d7a0 JD |
18972 | { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5 |
18973 | echo "${ECHO_T}$ac_cv_group_kmem" >&6; } | |
98418dba | 18974 | KMEM_GROUP=$ac_cv_group_kmem |
b5de8dc0 | 18975 | fi |
98418dba CW |
18976 | if test "x$ac_save_LIBS" = x; then |
18977 | GETLOADAVG_LIBS=$LIBS | |
18978 | else | |
18979 | GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"` | |
b5de8dc0 | 18980 | fi |
98418dba | 18981 | LIBS=$ac_save_LIBS |
b5de8dc0 | 18982 | |
c0d27fcc MR |
18983 | |
18984 | ||
ca81d7a0 JD |
18985 | { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5 |
18986 | echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; } | |
b936fae4 | 18987 | if test "${ac_cv_sys_largefile_source+set}" = set; then |
503d2be0 | 18988 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4c343001 | 18989 | else |
b936fae4 | 18990 | while :; do |
503d2be0 | 18991 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
18992 | /* confdefs.h. */ |
18993 | _ACEOF | |
18994 | cat confdefs.h >>conftest.$ac_ext | |
18995 | cat >>conftest.$ac_ext <<_ACEOF | |
18996 | /* end confdefs.h. */ | |
73d798d5 | 18997 | #include <stdio.h> |
503d2be0 AS |
18998 | int |
18999 | main () | |
19000 | { | |
73d798d5 | 19001 | return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0); |
b936fae4 AS |
19002 | ; |
19003 | return 0; | |
19004 | } | |
19005 | _ACEOF | |
f053c89f CY |
19006 | rm -f conftest.$ac_objext conftest$ac_exeext |
19007 | if { (ac_try="$ac_link" | |
ca81d7a0 JD |
19008 | case "(($ac_try" in |
19009 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19010 | *) ac_try_echo=$ac_try;; | |
19011 | esac | |
19012 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
f053c89f | 19013 | (eval "$ac_link") 2>conftest.er1 |
b936fae4 | 19014 | ac_status=$? |
edfaf76d LK |
19015 | grep -v '^ *+' conftest.er1 >conftest.err |
19016 | rm -f conftest.er1 | |
19017 | cat conftest.err >&5 | |
c0d27fcc | 19018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
19019 | (exit $ac_status); } && { |
19020 | test -z "$ac_c_werror_flag" || | |
19021 | test ! -s conftest.err | |
19022 | } && test -s conftest$ac_exeext && | |
19023 | $as_test_x conftest$ac_exeext; then | |
19024 | ac_cv_sys_largefile_source=no; break | |
b936fae4 AS |
19025 | else |
19026 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
19027 | sed 's/^/| /' conftest.$ac_ext >&5 |
19028 | ||
ca81d7a0 | 19029 | |
b936fae4 | 19030 | fi |
ca81d7a0 | 19031 | |
f053c89f CY |
19032 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
19033 | conftest$ac_exeext conftest.$ac_ext | |
b936fae4 | 19034 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
19035 | /* confdefs.h. */ |
19036 | _ACEOF | |
19037 | cat confdefs.h >>conftest.$ac_ext | |
19038 | cat >>conftest.$ac_ext <<_ACEOF | |
19039 | /* end confdefs.h. */ | |
b936fae4 | 19040 | #define _LARGEFILE_SOURCE 1 |
73d798d5 | 19041 | #include <stdio.h> |
b936fae4 AS |
19042 | int |
19043 | main () | |
19044 | { | |
73d798d5 | 19045 | return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0); |
b936fae4 AS |
19046 | ; |
19047 | return 0; | |
19048 | } | |
19049 | _ACEOF | |
f053c89f CY |
19050 | rm -f conftest.$ac_objext conftest$ac_exeext |
19051 | if { (ac_try="$ac_link" | |
ca81d7a0 JD |
19052 | case "(($ac_try" in |
19053 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19054 | *) ac_try_echo=$ac_try;; | |
19055 | esac | |
19056 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
f053c89f | 19057 | (eval "$ac_link") 2>conftest.er1 |
b936fae4 | 19058 | ac_status=$? |
edfaf76d LK |
19059 | grep -v '^ *+' conftest.er1 >conftest.err |
19060 | rm -f conftest.er1 | |
19061 | cat conftest.err >&5 | |
c0d27fcc | 19062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
19063 | (exit $ac_status); } && { |
19064 | test -z "$ac_c_werror_flag" || | |
19065 | test ! -s conftest.err | |
19066 | } && test -s conftest$ac_exeext && | |
19067 | $as_test_x conftest$ac_exeext; then | |
b936fae4 AS |
19068 | ac_cv_sys_largefile_source=1; break |
19069 | else | |
19070 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
19071 | sed 's/^/| /' conftest.$ac_ext >&5 |
19072 | ||
ca81d7a0 | 19073 | |
b936fae4 | 19074 | fi |
ca81d7a0 | 19075 | |
f053c89f CY |
19076 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
19077 | conftest$ac_exeext conftest.$ac_ext | |
19078 | ac_cv_sys_largefile_source=unknown | |
b936fae4 AS |
19079 | break |
19080 | done | |
19081 | fi | |
ca81d7a0 JD |
19082 | { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5 |
19083 | echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; } | |
f053c89f CY |
19084 | case $ac_cv_sys_largefile_source in #( |
19085 | no | unknown) ;; | |
19086 | *) | |
c0d27fcc | 19087 | cat >>confdefs.h <<_ACEOF |
b936fae4 | 19088 | #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source |
c0d27fcc | 19089 | _ACEOF |
f053c89f CY |
19090 | ;; |
19091 | esac | |
b936fae4 | 19092 | rm -f conftest* |
4c343001 | 19093 | |
b936fae4 AS |
19094 | # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug |
19095 | # in glibc 2.1.3, but that breaks too many other things. | |
19096 | # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. | |
c24fa7dc | 19097 | if test $ac_cv_sys_largefile_source != unknown; then |
b936fae4 | 19098 | |
c0d27fcc | 19099 | cat >>confdefs.h <<\_ACEOF |
b936fae4 | 19100 | #define HAVE_FSEEKO 1 |
c0d27fcc | 19101 | _ACEOF |
b936fae4 | 19102 | |
4c343001 DL |
19103 | fi |
19104 | ||
c0d27fcc | 19105 | |
52dbaac8 PE |
19106 | # Configure getopt. |
19107 | # getopt.m4 serial 10 | |
19108 | ||
19109 | # The getopt module assume you want GNU getopt, with getopt_long etc, | |
19110 | # rather than vanilla POSIX getopt. This means your your code should | |
19111 | # always include <getopt.h> for the getopt prototypes. | |
19112 | ||
19113 | ||
19114 | ||
19115 | ||
19116 | ||
19117 | ||
19118 | ||
19119 | ||
19120 | ||
19121 | ||
19122 | ||
19123 | # Prerequisites of lib/getopt*. | |
19124 | ||
19125 | ||
19126 | ||
10a3b1a1 | 19127 | |
52dbaac8 PE |
19128 | GETOPT_H= |
19129 | ||
19130 | for ac_header in getopt.h | |
19131 | do | |
19132 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
ca81d7a0 JD |
19133 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
19134 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
19135 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
19136 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
52dbaac8 PE |
19137 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19138 | fi | |
ca81d7a0 JD |
19139 | ac_res=`eval echo '${'$as_ac_Header'}'` |
19140 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
19141 | echo "${ECHO_T}$ac_res" >&6; } | |
52dbaac8 PE |
19142 | else |
19143 | # Is the header compilable? | |
ca81d7a0 JD |
19144 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
19145 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
52dbaac8 PE |
19146 | cat >conftest.$ac_ext <<_ACEOF |
19147 | /* confdefs.h. */ | |
19148 | _ACEOF | |
19149 | cat confdefs.h >>conftest.$ac_ext | |
19150 | cat >>conftest.$ac_ext <<_ACEOF | |
19151 | /* end confdefs.h. */ | |
19152 | $ac_includes_default | |
19153 | #include <$ac_header> | |
19154 | _ACEOF | |
19155 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
19156 | if { (ac_try="$ac_compile" |
19157 | case "(($ac_try" in | |
19158 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19159 | *) ac_try_echo=$ac_try;; | |
19160 | esac | |
19161 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19162 | (eval "$ac_compile") 2>conftest.er1 | |
52dbaac8 PE |
19163 | ac_status=$? |
19164 | grep -v '^ *+' conftest.er1 >conftest.err | |
19165 | rm -f conftest.er1 | |
19166 | cat conftest.err >&5 | |
19167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f053c89f CY |
19168 | (exit $ac_status); } && { |
19169 | test -z "$ac_c_werror_flag" || | |
19170 | test ! -s conftest.err | |
19171 | } && test -s conftest.$ac_objext; then | |
52dbaac8 PE |
19172 | ac_header_compiler=yes |
19173 | else | |
19174 | echo "$as_me: failed program was:" >&5 | |
19175 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19176 | ||
ca81d7a0 | 19177 | ac_header_compiler=no |
52dbaac8 | 19178 | fi |
ca81d7a0 JD |
19179 | |
19180 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
19181 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
19182 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
52dbaac8 PE |
19183 | |
19184 | # Is the header present? | |
ca81d7a0 JD |
19185 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
19186 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
52dbaac8 PE |
19187 | cat >conftest.$ac_ext <<_ACEOF |
19188 | /* confdefs.h. */ | |
19189 | _ACEOF | |
19190 | cat confdefs.h >>conftest.$ac_ext | |
19191 | cat >>conftest.$ac_ext <<_ACEOF | |
19192 | /* end confdefs.h. */ | |
19193 | #include <$ac_header> | |
19194 | _ACEOF | |
ca81d7a0 JD |
19195 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
19196 | case "(($ac_try" in | |
19197 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19198 | *) ac_try_echo=$ac_try;; | |
19199 | esac | |
19200 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19201 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
52dbaac8 PE |
19202 | ac_status=$? |
19203 | grep -v '^ *+' conftest.er1 >conftest.err | |
19204 | rm -f conftest.er1 | |
19205 | cat conftest.err >&5 | |
19206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f053c89f CY |
19207 | (exit $ac_status); } >/dev/null && { |
19208 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
19209 | test ! -s conftest.err | |
19210 | }; then | |
52dbaac8 PE |
19211 | ac_header_preproc=yes |
19212 | else | |
19213 | echo "$as_me: failed program was:" >&5 | |
19214 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19215 | ||
19216 | ac_header_preproc=no | |
19217 | fi | |
ca81d7a0 | 19218 | |
52dbaac8 | 19219 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
19220 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
19221 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
52dbaac8 PE |
19222 | |
19223 | # So? What about this header? | |
19224 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
19225 | yes:no: ) | |
19226 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
19227 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
19228 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
19229 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
19230 | ac_header_preproc=yes | |
19231 | ;; | |
19232 | no:yes:* ) | |
19233 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
19234 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
19235 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
19236 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
19237 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
19238 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
19239 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
19240 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
19241 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
19242 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
19243 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
19244 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 19245 | |
52dbaac8 PE |
19246 | ;; |
19247 | esac | |
ca81d7a0 JD |
19248 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
19249 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
19250 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
52dbaac8 PE |
19251 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19252 | else | |
19253 | eval "$as_ac_Header=\$ac_header_preproc" | |
19254 | fi | |
ca81d7a0 JD |
19255 | ac_res=`eval echo '${'$as_ac_Header'}'` |
19256 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
19257 | echo "${ECHO_T}$ac_res" >&6; } | |
52dbaac8 PE |
19258 | |
19259 | fi | |
19260 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
19261 | cat >>confdefs.h <<_ACEOF | |
19262 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
19263 | _ACEOF | |
19264 | ||
19265 | else | |
19266 | GETOPT_H=getopt.h | |
19267 | fi | |
19268 | ||
19269 | done | |
19270 | ||
19271 | if test -z "$GETOPT_H"; then | |
19272 | ||
19273 | for ac_func in getopt_long_only | |
19274 | do | |
19275 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
ca81d7a0 JD |
19276 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
19277 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
19278 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
52dbaac8 PE |
19279 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19280 | else | |
19281 | cat >conftest.$ac_ext <<_ACEOF | |
19282 | /* confdefs.h. */ | |
19283 | _ACEOF | |
19284 | cat confdefs.h >>conftest.$ac_ext | |
19285 | cat >>conftest.$ac_ext <<_ACEOF | |
19286 | /* end confdefs.h. */ | |
19287 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
19288 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
19289 | #define $ac_func innocuous_$ac_func | |
19290 | ||
19291 | /* System header to define __stub macros and hopefully few prototypes, | |
19292 | which can conflict with char $ac_func (); below. | |
19293 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
19294 | <limits.h> exists even on freestanding compilers. */ | |
19295 | ||
19296 | #ifdef __STDC__ | |
19297 | # include <limits.h> | |
19298 | #else | |
19299 | # include <assert.h> | |
19300 | #endif | |
19301 | ||
19302 | #undef $ac_func | |
19303 | ||
ca81d7a0 JD |
19304 | /* Override any GCC internal prototype to avoid an error. |
19305 | Use char because int might match the return type of a GCC | |
19306 | builtin and then its argument prototype would still apply. */ | |
52dbaac8 PE |
19307 | #ifdef __cplusplus |
19308 | extern "C" | |
52dbaac8 | 19309 | #endif |
52dbaac8 PE |
19310 | char $ac_func (); |
19311 | /* The GNU C library defines this for functions which it implements | |
19312 | to always fail with ENOSYS. Some functions are actually named | |
19313 | something starting with __ and the normal name is an alias. */ | |
ca81d7a0 | 19314 | #if defined __stub_$ac_func || defined __stub___$ac_func |
52dbaac8 | 19315 | choke me |
52dbaac8 PE |
19316 | #endif |
19317 | ||
19318 | int | |
19319 | main () | |
19320 | { | |
ca81d7a0 | 19321 | return $ac_func (); |
52dbaac8 PE |
19322 | ; |
19323 | return 0; | |
19324 | } | |
19325 | _ACEOF | |
19326 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
19327 | if { (ac_try="$ac_link" |
19328 | case "(($ac_try" in | |
19329 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19330 | *) ac_try_echo=$ac_try;; | |
19331 | esac | |
19332 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19333 | (eval "$ac_link") 2>conftest.er1 | |
52dbaac8 PE |
19334 | ac_status=$? |
19335 | grep -v '^ *+' conftest.er1 >conftest.err | |
19336 | rm -f conftest.er1 | |
19337 | cat conftest.err >&5 | |
19338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f053c89f CY |
19339 | (exit $ac_status); } && { |
19340 | test -z "$ac_c_werror_flag" || | |
19341 | test ! -s conftest.err | |
19342 | } && test -s conftest$ac_exeext && | |
19343 | $as_test_x conftest$ac_exeext; then | |
52dbaac8 PE |
19344 | eval "$as_ac_var=yes" |
19345 | else | |
19346 | echo "$as_me: failed program was:" >&5 | |
19347 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19348 | ||
ca81d7a0 | 19349 | eval "$as_ac_var=no" |
52dbaac8 | 19350 | fi |
ca81d7a0 | 19351 | |
f053c89f | 19352 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
52dbaac8 PE |
19353 | conftest$ac_exeext conftest.$ac_ext |
19354 | fi | |
ca81d7a0 JD |
19355 | ac_res=`eval echo '${'$as_ac_var'}'` |
19356 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
19357 | echo "${ECHO_T}$ac_res" >&6; } | |
52dbaac8 PE |
19358 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
19359 | cat >>confdefs.h <<_ACEOF | |
19360 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
19361 | _ACEOF | |
19362 | ||
19363 | else | |
19364 | GETOPT_H=getopt.h | |
19365 | fi | |
19366 | done | |
19367 | ||
19368 | fi | |
19369 | ||
19370 | if test -z "$GETOPT_H"; then | |
ca81d7a0 JD |
19371 | { echo "$as_me:$LINENO: checking whether optreset is declared" >&5 |
19372 | echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; } | |
52dbaac8 PE |
19373 | if test "${ac_cv_have_decl_optreset+set}" = set; then |
19374 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19375 | else | |
19376 | cat >conftest.$ac_ext <<_ACEOF | |
19377 | /* confdefs.h. */ | |
19378 | _ACEOF | |
19379 | cat confdefs.h >>conftest.$ac_ext | |
19380 | cat >>conftest.$ac_ext <<_ACEOF | |
19381 | /* end confdefs.h. */ | |
19382 | #include <getopt.h> | |
19383 | ||
19384 | int | |
19385 | main () | |
19386 | { | |
19387 | #ifndef optreset | |
f053c89f | 19388 | (void) optreset; |
52dbaac8 PE |
19389 | #endif |
19390 | ||
19391 | ; | |
19392 | return 0; | |
19393 | } | |
19394 | _ACEOF | |
19395 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
19396 | if { (ac_try="$ac_compile" |
19397 | case "(($ac_try" in | |
19398 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19399 | *) ac_try_echo=$ac_try;; | |
19400 | esac | |
19401 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19402 | (eval "$ac_compile") 2>conftest.er1 | |
52dbaac8 PE |
19403 | ac_status=$? |
19404 | grep -v '^ *+' conftest.er1 >conftest.err | |
19405 | rm -f conftest.er1 | |
19406 | cat conftest.err >&5 | |
19407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
c24fa7dc MB |
19408 | (exit $ac_status); } && { |
19409 | test -z "$ac_c_werror_flag" || | |
19410 | test ! -s conftest.err | |
19411 | } && test -s conftest.$ac_objext; then | |
52dbaac8 PE |
19412 | ac_cv_have_decl_optreset=yes |
19413 | else | |
19414 | echo "$as_me: failed program was:" >&5 | |
19415 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19416 | ||
ca81d7a0 | 19417 | ac_cv_have_decl_optreset=no |
52dbaac8 | 19418 | fi |
ca81d7a0 JD |
19419 | |
19420 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
52dbaac8 | 19421 | fi |
ca81d7a0 JD |
19422 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5 |
19423 | echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; } | |
52dbaac8 PE |
19424 | if test $ac_cv_have_decl_optreset = yes; then |
19425 | GETOPT_H=getopt.h | |
19426 | fi | |
19427 | ||
19428 | fi | |
19429 | ||
19430 | if test -z "$GETOPT_H"; then | |
ca81d7a0 JD |
19431 | { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5 |
19432 | echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; } | |
52dbaac8 PE |
19433 | if test "${gl_cv_func_gnu_getopt+set}" = set; then |
19434 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19435 | else | |
19436 | if test "$cross_compiling" = yes; then | |
ca81d7a0 JD |
19437 | { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5 |
19438 | echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; } | |
52dbaac8 PE |
19439 | if test "${ac_cv_have_decl_getopt_clip+set}" = set; then |
19440 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19441 | else | |
19442 | cat >conftest.$ac_ext <<_ACEOF | |
19443 | /* confdefs.h. */ | |
19444 | _ACEOF | |
19445 | cat confdefs.h >>conftest.$ac_ext | |
19446 | cat >>conftest.$ac_ext <<_ACEOF | |
19447 | /* end confdefs.h. */ | |
19448 | #include <getopt.h> | |
19449 | ||
19450 | int | |
19451 | main () | |
19452 | { | |
19453 | #ifndef getopt_clip | |
f053c89f | 19454 | (void) getopt_clip; |
52dbaac8 PE |
19455 | #endif |
19456 | ||
19457 | ; | |
19458 | return 0; | |
19459 | } | |
19460 | _ACEOF | |
19461 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
19462 | if { (ac_try="$ac_compile" |
19463 | case "(($ac_try" in | |
19464 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19465 | *) ac_try_echo=$ac_try;; | |
19466 | esac | |
19467 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19468 | (eval "$ac_compile") 2>conftest.er1 | |
52dbaac8 PE |
19469 | ac_status=$? |
19470 | grep -v '^ *+' conftest.er1 >conftest.err | |
19471 | rm -f conftest.er1 | |
19472 | cat conftest.err >&5 | |
19473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f053c89f CY |
19474 | (exit $ac_status); } && { |
19475 | test -z "$ac_c_werror_flag" || | |
19476 | test ! -s conftest.err | |
19477 | } && test -s conftest.$ac_objext; then | |
52dbaac8 PE |
19478 | ac_cv_have_decl_getopt_clip=yes |
19479 | else | |
19480 | echo "$as_me: failed program was:" >&5 | |
19481 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19482 | ||
ca81d7a0 | 19483 | ac_cv_have_decl_getopt_clip=no |
52dbaac8 | 19484 | fi |
ca81d7a0 JD |
19485 | |
19486 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
52dbaac8 | 19487 | fi |
ca81d7a0 JD |
19488 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5 |
19489 | echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; } | |
52dbaac8 PE |
19490 | if test $ac_cv_have_decl_getopt_clip = yes; then |
19491 | gl_cv_func_gnu_getopt=no | |
19492 | else | |
19493 | gl_cv_func_gnu_getopt=yes | |
19494 | fi | |
19495 | ||
19496 | else | |
19497 | cat >conftest.$ac_ext <<_ACEOF | |
19498 | /* confdefs.h. */ | |
19499 | _ACEOF | |
19500 | cat confdefs.h >>conftest.$ac_ext | |
19501 | cat >>conftest.$ac_ext <<_ACEOF | |
19502 | /* end confdefs.h. */ | |
19503 | #include <getopt.h> | |
19504 | int | |
19505 | main () | |
19506 | { | |
19507 | ||
19508 | char *myargv[3]; | |
19509 | myargv[0] = "conftest"; | |
19510 | myargv[1] = "-+"; | |
19511 | myargv[2] = 0; | |
19512 | return getopt (2, myargv, "+a") != '?'; | |
19513 | ||
19514 | ; | |
19515 | return 0; | |
19516 | } | |
19517 | _ACEOF | |
19518 | rm -f conftest$ac_exeext | |
ca81d7a0 JD |
19519 | if { (ac_try="$ac_link" |
19520 | case "(($ac_try" in | |
19521 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19522 | *) ac_try_echo=$ac_try;; | |
19523 | esac | |
19524 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19525 | (eval "$ac_link") 2>&5 | |
52dbaac8 PE |
19526 | ac_status=$? |
19527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19528 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
ca81d7a0 JD |
19529 | { (case "(($ac_try" in |
19530 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19531 | *) ac_try_echo=$ac_try;; | |
19532 | esac | |
19533 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19534 | (eval "$ac_try") 2>&5 | |
52dbaac8 PE |
19535 | ac_status=$? |
19536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19537 | (exit $ac_status); }; }; then | |
19538 | gl_cv_func_gnu_getopt=yes | |
19539 | else | |
19540 | echo "$as_me: program exited with status $ac_status" >&5 | |
19541 | echo "$as_me: failed program was:" >&5 | |
19542 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19543 | ||
19544 | ( exit $ac_status ) | |
19545 | gl_cv_func_gnu_getopt=no | |
19546 | fi | |
ca81d7a0 | 19547 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
52dbaac8 | 19548 | fi |
ca81d7a0 JD |
19549 | |
19550 | ||
52dbaac8 | 19551 | fi |
ca81d7a0 JD |
19552 | { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5 |
19553 | echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; } | |
52dbaac8 PE |
19554 | if test "$gl_cv_func_gnu_getopt" = "no"; then |
19555 | GETOPT_H=getopt.h | |
19556 | fi | |
19557 | fi | |
19558 | ||
19559 | ||
19560 | ||
19561 | if test -n "$GETOPT_H"; then | |
19562 | ||
19563 | ||
19564 | GETOPT_H=getopt.h | |
19565 | ||
19566 | cat >>confdefs.h <<\_ACEOF | |
19567 | #define __GETOPT_PREFIX rpl_ | |
19568 | _ACEOF | |
19569 | ||
19570 | ||
19571 | ||
19572 | : | |
19573 | GETOPTOBJS='getopt.o getopt1.o' | |
19574 | ||
19575 | fi | |
19576 | ||
19577 | ||
19578 | ||
19579 | ||
ca81d7a0 JD |
19580 | { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5 |
19581 | echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; } | |
cd958eb3 MB |
19582 | if test "${ac_cv_func_getpgrp_void+set}" = set; then |
19583 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19584 | else | |
19585 | # Use it with a single arg. | |
19586 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
19587 | /* confdefs.h. */ |
19588 | _ACEOF | |
19589 | cat confdefs.h >>conftest.$ac_ext | |
19590 | cat >>conftest.$ac_ext <<_ACEOF | |
19591 | /* end confdefs.h. */ | |
cd958eb3 MB |
19592 | $ac_includes_default |
19593 | int | |
19594 | main () | |
19595 | { | |
19596 | getpgrp (0); | |
19597 | ; | |
19598 | return 0; | |
19599 | } | |
19600 | _ACEOF | |
19601 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
19602 | if { (ac_try="$ac_compile" |
19603 | case "(($ac_try" in | |
19604 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19605 | *) ac_try_echo=$ac_try;; | |
19606 | esac | |
19607 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19608 | (eval "$ac_compile") 2>conftest.er1 | |
cd958eb3 | 19609 | ac_status=$? |
edfaf76d LK |
19610 | grep -v '^ *+' conftest.er1 >conftest.err |
19611 | rm -f conftest.er1 | |
19612 | cat conftest.err >&5 | |
cd958eb3 | 19613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
19614 | (exit $ac_status); } && { |
19615 | test -z "$ac_c_werror_flag" || | |
19616 | test ! -s conftest.err | |
19617 | } && test -s conftest.$ac_objext; then | |
cd958eb3 MB |
19618 | ac_cv_func_getpgrp_void=no |
19619 | else | |
19620 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
19621 | sed 's/^/| /' conftest.$ac_ext >&5 |
19622 | ||
ca81d7a0 | 19623 | ac_cv_func_getpgrp_void=yes |
cd958eb3 | 19624 | fi |
ca81d7a0 JD |
19625 | |
19626 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
cd958eb3 MB |
19627 | |
19628 | fi | |
ca81d7a0 JD |
19629 | { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5 |
19630 | echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; } | |
cd958eb3 MB |
19631 | if test $ac_cv_func_getpgrp_void = yes; then |
19632 | ||
19633 | cat >>confdefs.h <<\_ACEOF | |
19634 | #define GETPGRP_VOID 1 | |
19635 | _ACEOF | |
19636 | ||
19637 | fi | |
19638 | ||
19639 | ||
973a76b1 DL |
19640 | |
19641 | for ac_func in strftime | |
19642 | do | |
19643 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
ca81d7a0 JD |
19644 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
19645 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
19646 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
973a76b1 DL |
19647 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19648 | else | |
19649 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
19650 | /* confdefs.h. */ |
19651 | _ACEOF | |
19652 | cat confdefs.h >>conftest.$ac_ext | |
19653 | cat >>conftest.$ac_ext <<_ACEOF | |
19654 | /* end confdefs.h. */ | |
edfaf76d LK |
19655 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
19656 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
19657 | #define $ac_func innocuous_$ac_func | |
19658 | ||
973a76b1 | 19659 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
19660 | which can conflict with char $ac_func (); below. |
19661 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
19662 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 19663 | |
19650fd6 AS |
19664 | #ifdef __STDC__ |
19665 | # include <limits.h> | |
19666 | #else | |
19667 | # include <assert.h> | |
19668 | #endif | |
edfaf76d LK |
19669 | |
19670 | #undef $ac_func | |
19671 | ||
ca81d7a0 JD |
19672 | /* Override any GCC internal prototype to avoid an error. |
19673 | Use char because int might match the return type of a GCC | |
19674 | builtin and then its argument prototype would still apply. */ | |
973a76b1 DL |
19675 | #ifdef __cplusplus |
19676 | extern "C" | |
973a76b1 | 19677 | #endif |
973a76b1 DL |
19678 | char $ac_func (); |
19679 | /* The GNU C library defines this for functions which it implements | |
19680 | to always fail with ENOSYS. Some functions are actually named | |
19681 | something starting with __ and the normal name is an alias. */ | |
ca81d7a0 | 19682 | #if defined __stub_$ac_func || defined __stub___$ac_func |
973a76b1 | 19683 | choke me |
973a76b1 DL |
19684 | #endif |
19685 | ||
19650fd6 AS |
19686 | int |
19687 | main () | |
19688 | { | |
ca81d7a0 | 19689 | return $ac_func (); |
973a76b1 DL |
19690 | ; |
19691 | return 0; | |
19692 | } | |
19693 | _ACEOF | |
19694 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
19695 | if { (ac_try="$ac_link" |
19696 | case "(($ac_try" in | |
19697 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19698 | *) ac_try_echo=$ac_try;; | |
19699 | esac | |
19700 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19701 | (eval "$ac_link") 2>conftest.er1 | |
973a76b1 | 19702 | ac_status=$? |
edfaf76d LK |
19703 | grep -v '^ *+' conftest.er1 >conftest.err |
19704 | rm -f conftest.er1 | |
19705 | cat conftest.err >&5 | |
973a76b1 | 19706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
19707 | (exit $ac_status); } && { |
19708 | test -z "$ac_c_werror_flag" || | |
19709 | test ! -s conftest.err | |
19710 | } && test -s conftest$ac_exeext && | |
19711 | $as_test_x conftest$ac_exeext; then | |
973a76b1 DL |
19712 | eval "$as_ac_var=yes" |
19713 | else | |
19714 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
19715 | sed 's/^/| /' conftest.$ac_ext >&5 |
19716 | ||
ca81d7a0 | 19717 | eval "$as_ac_var=no" |
973a76b1 | 19718 | fi |
ca81d7a0 | 19719 | |
f053c89f | 19720 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 19721 | conftest$ac_exeext conftest.$ac_ext |
973a76b1 | 19722 | fi |
ca81d7a0 JD |
19723 | ac_res=`eval echo '${'$as_ac_var'}'` |
19724 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
19725 | echo "${ECHO_T}$ac_res" >&6; } | |
973a76b1 DL |
19726 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
19727 | cat >>confdefs.h <<_ACEOF | |
19728 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
19729 | _ACEOF | |
19730 | ||
19731 | else | |
19732 | # strftime is in -lintl on SCO UNIX. | |
ca81d7a0 JD |
19733 | { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5 |
19734 | echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; } | |
973a76b1 DL |
19735 | if test "${ac_cv_lib_intl_strftime+set}" = set; then |
19736 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19737 | else | |
19738 | ac_check_lib_save_LIBS=$LIBS | |
19739 | LIBS="-lintl $LIBS" | |
19740 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
19741 | /* confdefs.h. */ |
19742 | _ACEOF | |
19743 | cat confdefs.h >>conftest.$ac_ext | |
19744 | cat >>conftest.$ac_ext <<_ACEOF | |
19745 | /* end confdefs.h. */ | |
973a76b1 | 19746 | |
ca81d7a0 JD |
19747 | /* Override any GCC internal prototype to avoid an error. |
19748 | Use char because int might match the return type of a GCC | |
19749 | builtin and then its argument prototype would still apply. */ | |
973a76b1 DL |
19750 | #ifdef __cplusplus |
19751 | extern "C" | |
19752 | #endif | |
973a76b1 DL |
19753 | char strftime (); |
19754 | int | |
19755 | main () | |
19756 | { | |
ca81d7a0 | 19757 | return strftime (); |
973a76b1 DL |
19758 | ; |
19759 | return 0; | |
19760 | } | |
19761 | _ACEOF | |
19762 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
19763 | if { (ac_try="$ac_link" |
19764 | case "(($ac_try" in | |
19765 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19766 | *) ac_try_echo=$ac_try;; | |
19767 | esac | |
19768 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19769 | (eval "$ac_link") 2>conftest.er1 | |
973a76b1 | 19770 | ac_status=$? |
edfaf76d LK |
19771 | grep -v '^ *+' conftest.er1 >conftest.err |
19772 | rm -f conftest.er1 | |
19773 | cat conftest.err >&5 | |
973a76b1 | 19774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
c24fa7dc MB |
19775 | (exit $ac_status); } && { |
19776 | test -z "$ac_c_werror_flag" || | |
19777 | test ! -s conftest.err | |
19778 | } && test -s conftest$ac_exeext && | |
19779 | $as_test_x conftest$ac_exeext; then | |
973a76b1 DL |
19780 | ac_cv_lib_intl_strftime=yes |
19781 | else | |
19782 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
19783 | sed 's/^/| /' conftest.$ac_ext >&5 |
19784 | ||
ca81d7a0 | 19785 | ac_cv_lib_intl_strftime=no |
973a76b1 | 19786 | fi |
ca81d7a0 | 19787 | |
f053c89f | 19788 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 19789 | conftest$ac_exeext conftest.$ac_ext |
973a76b1 DL |
19790 | LIBS=$ac_check_lib_save_LIBS |
19791 | fi | |
ca81d7a0 JD |
19792 | { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5 |
19793 | echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; } | |
973a76b1 DL |
19794 | if test $ac_cv_lib_intl_strftime = yes; then |
19795 | cat >>confdefs.h <<\_ACEOF | |
19796 | #define HAVE_STRFTIME 1 | |
19797 | _ACEOF | |
19798 | ||
19799 | LIBS="-lintl $LIBS" | |
19800 | fi | |
19801 | ||
19802 | fi | |
19803 | done | |
19804 | ||
19805 | ||
b936fae4 AS |
19806 | # UNIX98 PTYs. |
19807 | ||
19808 | for ac_func in grantpt | |
503d2be0 AS |
19809 | do |
19810 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
ca81d7a0 JD |
19811 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
19812 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
19813 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 19814 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4c343001 | 19815 | else |
503d2be0 | 19816 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
19817 | /* confdefs.h. */ |
19818 | _ACEOF | |
19819 | cat confdefs.h >>conftest.$ac_ext | |
19820 | cat >>conftest.$ac_ext <<_ACEOF | |
19821 | /* end confdefs.h. */ | |
edfaf76d LK |
19822 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
19823 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
19824 | #define $ac_func innocuous_$ac_func | |
19825 | ||
503d2be0 | 19826 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
19827 | which can conflict with char $ac_func (); below. |
19828 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
19829 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 19830 | |
19650fd6 AS |
19831 | #ifdef __STDC__ |
19832 | # include <limits.h> | |
19833 | #else | |
19834 | # include <assert.h> | |
19835 | #endif | |
edfaf76d LK |
19836 | |
19837 | #undef $ac_func | |
19838 | ||
ca81d7a0 JD |
19839 | /* Override any GCC internal prototype to avoid an error. |
19840 | Use char because int might match the return type of a GCC | |
19841 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
19842 | #ifdef __cplusplus |
19843 | extern "C" | |
19844 | #endif | |
503d2be0 | 19845 | char $ac_func (); |
503d2be0 AS |
19846 | /* The GNU C library defines this for functions which it implements |
19847 | to always fail with ENOSYS. Some functions are actually named | |
19848 | something starting with __ and the normal name is an alias. */ | |
ca81d7a0 | 19849 | #if defined __stub_$ac_func || defined __stub___$ac_func |
503d2be0 | 19850 | choke me |
503d2be0 | 19851 | #endif |
4c343001 | 19852 | |
19650fd6 AS |
19853 | int |
19854 | main () | |
19855 | { | |
ca81d7a0 | 19856 | return $ac_func (); |
503d2be0 AS |
19857 | ; |
19858 | return 0; | |
19859 | } | |
19860 | _ACEOF | |
19861 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
19862 | if { (ac_try="$ac_link" |
19863 | case "(($ac_try" in | |
19864 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19865 | *) ac_try_echo=$ac_try;; | |
19866 | esac | |
19867 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19868 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 19869 | ac_status=$? |
edfaf76d LK |
19870 | grep -v '^ *+' conftest.er1 >conftest.err |
19871 | rm -f conftest.er1 | |
19872 | cat conftest.err >&5 | |
c0d27fcc | 19873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
19874 | (exit $ac_status); } && { |
19875 | test -z "$ac_c_werror_flag" || | |
19876 | test ! -s conftest.err | |
19877 | } && test -s conftest$ac_exeext && | |
19878 | $as_test_x conftest$ac_exeext; then | |
503d2be0 AS |
19879 | eval "$as_ac_var=yes" |
19880 | else | |
19881 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
19882 | sed 's/^/| /' conftest.$ac_ext >&5 |
19883 | ||
ca81d7a0 | 19884 | eval "$as_ac_var=no" |
503d2be0 | 19885 | fi |
ca81d7a0 | 19886 | |
f053c89f | 19887 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 19888 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 | 19889 | fi |
ca81d7a0 JD |
19890 | ac_res=`eval echo '${'$as_ac_var'}'` |
19891 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
19892 | echo "${ECHO_T}$ac_res" >&6; } | |
503d2be0 | 19893 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
c0d27fcc | 19894 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 19895 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 19896 | _ACEOF |
4c343001 DL |
19897 | |
19898 | fi | |
503d2be0 AS |
19899 | done |
19900 | ||
c0d27fcc | 19901 | |
b936fae4 | 19902 | # PTY-related GNU extensions. |
4c343001 | 19903 | |
b936fae4 AS |
19904 | for ac_func in getpt |
19905 | do | |
19906 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
ca81d7a0 JD |
19907 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
19908 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
19909 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 19910 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4c343001 | 19911 | else |
b936fae4 | 19912 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
19913 | /* confdefs.h. */ |
19914 | _ACEOF | |
19915 | cat confdefs.h >>conftest.$ac_ext | |
19916 | cat >>conftest.$ac_ext <<_ACEOF | |
19917 | /* end confdefs.h. */ | |
edfaf76d LK |
19918 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
19919 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
19920 | #define $ac_func innocuous_$ac_func | |
19921 | ||
087121cc | 19922 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
19923 | which can conflict with char $ac_func (); below. |
19924 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
19925 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 19926 | |
19650fd6 AS |
19927 | #ifdef __STDC__ |
19928 | # include <limits.h> | |
19929 | #else | |
19930 | # include <assert.h> | |
19931 | #endif | |
edfaf76d LK |
19932 | |
19933 | #undef $ac_func | |
19934 | ||
ca81d7a0 JD |
19935 | /* Override any GCC internal prototype to avoid an error. |
19936 | Use char because int might match the return type of a GCC | |
19937 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
19938 | #ifdef __cplusplus |
19939 | extern "C" | |
19940 | #endif | |
503d2be0 | 19941 | char $ac_func (); |
087121cc GM |
19942 | /* The GNU C library defines this for functions which it implements |
19943 | to always fail with ENOSYS. Some functions are actually named | |
19944 | something starting with __ and the normal name is an alias. */ | |
ca81d7a0 | 19945 | #if defined __stub_$ac_func || defined __stub___$ac_func |
087121cc | 19946 | choke me |
087121cc GM |
19947 | #endif |
19948 | ||
19650fd6 AS |
19949 | int |
19950 | main () | |
19951 | { | |
ca81d7a0 | 19952 | return $ac_func (); |
503d2be0 AS |
19953 | ; |
19954 | return 0; | |
19955 | } | |
19956 | _ACEOF | |
19957 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
19958 | if { (ac_try="$ac_link" |
19959 | case "(($ac_try" in | |
19960 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19961 | *) ac_try_echo=$ac_try;; | |
19962 | esac | |
19963 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
f053c89f | 19964 | (eval "$ac_link") 2>conftest.er1 |
503d2be0 | 19965 | ac_status=$? |
edfaf76d LK |
19966 | grep -v '^ *+' conftest.er1 >conftest.err |
19967 | rm -f conftest.er1 | |
19968 | cat conftest.err >&5 | |
c0d27fcc | 19969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
19970 | (exit $ac_status); } && { |
19971 | test -z "$ac_c_werror_flag" || | |
19972 | test ! -s conftest.err | |
19973 | } && test -s conftest$ac_exeext && | |
19974 | $as_test_x conftest$ac_exeext; then | |
503d2be0 AS |
19975 | eval "$as_ac_var=yes" |
19976 | else | |
19977 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
19978 | sed 's/^/| /' conftest.$ac_ext >&5 |
19979 | ||
ca81d7a0 | 19980 | eval "$as_ac_var=no" |
503d2be0 | 19981 | fi |
ca81d7a0 | 19982 | |
f053c89f | 19983 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 19984 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 | 19985 | fi |
ca81d7a0 JD |
19986 | ac_res=`eval echo '${'$as_ac_var'}'` |
19987 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
19988 | echo "${ECHO_T}$ac_res" >&6; } | |
503d2be0 | 19989 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
c0d27fcc | 19990 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 19991 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 19992 | _ACEOF |
087121cc | 19993 | |
087121cc GM |
19994 | fi |
19995 | done | |
19996 | ||
c0d27fcc | 19997 | |
ba4481b5 DL |
19998 | # Check this now, so that we will NOT find the above functions in ncurses. |
19999 | # That is because we have not set up to link ncurses in lib-src. | |
20000 | # It's better to believe a function is not available | |
20001 | # than to expect to find it in ncurses. | |
503d2be0 | 20002 | |
ca81d7a0 JD |
20003 | { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5 |
20004 | echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; } | |
503d2be0 AS |
20005 | if test "${ac_cv_lib_ncurses_tparm+set}" = set; then |
20006 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 20007 | else |
503d2be0 | 20008 | ac_check_lib_save_LIBS=$LIBS |
ba4481b5 | 20009 | LIBS="-lncurses $LIBS" |
503d2be0 | 20010 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
20011 | /* confdefs.h. */ |
20012 | _ACEOF | |
20013 | cat confdefs.h >>conftest.$ac_ext | |
20014 | cat >>conftest.$ac_ext <<_ACEOF | |
20015 | /* end confdefs.h. */ | |
503d2be0 | 20016 | |
ca81d7a0 JD |
20017 | /* Override any GCC internal prototype to avoid an error. |
20018 | Use char because int might match the return type of a GCC | |
20019 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
20020 | #ifdef __cplusplus |
20021 | extern "C" | |
20022 | #endif | |
503d2be0 AS |
20023 | char tparm (); |
20024 | int | |
20025 | main () | |
20026 | { | |
ca81d7a0 | 20027 | return tparm (); |
503d2be0 AS |
20028 | ; |
20029 | return 0; | |
20030 | } | |
20031 | _ACEOF | |
20032 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
20033 | if { (ac_try="$ac_link" |
20034 | case "(($ac_try" in | |
20035 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20036 | *) ac_try_echo=$ac_try;; | |
20037 | esac | |
20038 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20039 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 20040 | ac_status=$? |
edfaf76d LK |
20041 | grep -v '^ *+' conftest.er1 >conftest.err |
20042 | rm -f conftest.er1 | |
20043 | cat conftest.err >&5 | |
c0d27fcc | 20044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
20045 | (exit $ac_status); } && { |
20046 | test -z "$ac_c_werror_flag" || | |
20047 | test ! -s conftest.err | |
20048 | } && test -s conftest$ac_exeext && | |
20049 | $as_test_x conftest$ac_exeext; then | |
503d2be0 AS |
20050 | ac_cv_lib_ncurses_tparm=yes |
20051 | else | |
20052 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
20053 | sed 's/^/| /' conftest.$ac_ext >&5 |
20054 | ||
ca81d7a0 | 20055 | ac_cv_lib_ncurses_tparm=no |
503d2be0 | 20056 | fi |
ca81d7a0 | 20057 | |
f053c89f | 20058 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 20059 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 AS |
20060 | LIBS=$ac_check_lib_save_LIBS |
20061 | fi | |
ca81d7a0 JD |
20062 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5 |
20063 | echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; } | |
503d2be0 | 20064 | if test $ac_cv_lib_ncurses_tparm = yes; then |
c0d27fcc | 20065 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 20066 | #define HAVE_LIBNCURSES 1 |
c0d27fcc | 20067 | _ACEOF |
ba4481b5 DL |
20068 | |
20069 | LIBS="-lncurses $LIBS" | |
20070 | ||
ba4481b5 DL |
20071 | fi |
20072 | ||
c0d27fcc | 20073 | |
bc3512d0 CY |
20074 | # Do we have res_init, for detecting changes in /etc/resolv.conf? |
20075 | ||
20076 | resolv=no | |
074767f2 | 20077 | cat >conftest.$ac_ext <<_ACEOF |
bc3512d0 CY |
20078 | /* confdefs.h. */ |
20079 | _ACEOF | |
20080 | cat confdefs.h >>conftest.$ac_ext | |
20081 | cat >>conftest.$ac_ext <<_ACEOF | |
20082 | /* end confdefs.h. */ | |
074767f2 AS |
20083 | #include <netinet/in.h> |
20084 | #include <arpa/nameser.h> | |
20085 | #include <resolv.h> | |
bc3512d0 CY |
20086 | int |
20087 | main () | |
20088 | { | |
074767f2 | 20089 | return res_init(); |
bc3512d0 CY |
20090 | ; |
20091 | return 0; | |
20092 | } | |
20093 | _ACEOF | |
20094 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20095 | if { (ac_try="$ac_link" | |
20096 | case "(($ac_try" in | |
20097 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20098 | *) ac_try_echo=$ac_try;; | |
20099 | esac | |
20100 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20101 | (eval "$ac_link") 2>conftest.er1 | |
20102 | ac_status=$? | |
20103 | grep -v '^ *+' conftest.er1 >conftest.err | |
20104 | rm -f conftest.er1 | |
20105 | cat conftest.err >&5 | |
20106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20107 | (exit $ac_status); } && { | |
20108 | test -z "$ac_c_werror_flag" || | |
20109 | test ! -s conftest.err | |
20110 | } && test -s conftest$ac_exeext && | |
20111 | $as_test_x conftest$ac_exeext; then | |
074767f2 | 20112 | have_res_init=yes |
bc3512d0 CY |
20113 | else |
20114 | echo "$as_me: failed program was:" >&5 | |
20115 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20116 | ||
074767f2 | 20117 | have_res_init=no |
bc3512d0 CY |
20118 | fi |
20119 | ||
20120 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
20121 | conftest$ac_exeext conftest.$ac_ext | |
bc3512d0 CY |
20122 | if test "$have_res_init" = no; then |
20123 | OLIBS="$LIBS" | |
20124 | LIBS="$LIBS -lresolv" | |
20125 | { echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5 | |
20126 | echo $ECHO_N "checking for res_init with -lresolv... $ECHO_C" >&6; } | |
20127 | cat >conftest.$ac_ext <<_ACEOF | |
20128 | /* confdefs.h. */ | |
20129 | _ACEOF | |
20130 | cat confdefs.h >>conftest.$ac_ext | |
20131 | cat >>conftest.$ac_ext <<_ACEOF | |
20132 | /* end confdefs.h. */ | |
20133 | #include <netinet/in.h> | |
20134 | #include <arpa/nameser.h> | |
20135 | #include <resolv.h> | |
20136 | int | |
20137 | main () | |
20138 | { | |
074767f2 | 20139 | return res_init(); |
bc3512d0 CY |
20140 | ; |
20141 | return 0; | |
20142 | } | |
20143 | _ACEOF | |
20144 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20145 | if { (ac_try="$ac_link" | |
20146 | case "(($ac_try" in | |
20147 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20148 | *) ac_try_echo=$ac_try;; | |
20149 | esac | |
20150 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20151 | (eval "$ac_link") 2>conftest.er1 | |
20152 | ac_status=$? | |
20153 | grep -v '^ *+' conftest.er1 >conftest.err | |
20154 | rm -f conftest.er1 | |
20155 | cat conftest.err >&5 | |
20156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20157 | (exit $ac_status); } && { | |
20158 | test -z "$ac_c_werror_flag" || | |
20159 | test ! -s conftest.err | |
20160 | } && test -s conftest$ac_exeext && | |
20161 | $as_test_x conftest$ac_exeext; then | |
20162 | have_res_init=yes | |
20163 | else | |
20164 | echo "$as_me: failed program was:" >&5 | |
20165 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20166 | ||
20167 | have_res_init=no | |
20168 | fi | |
20169 | ||
20170 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
20171 | conftest$ac_exeext conftest.$ac_ext | |
20172 | { echo "$as_me:$LINENO: result: $have_res_init" >&5 | |
20173 | echo "${ECHO_T}$have_res_init" >&6; } | |
20174 | if test "$have_res_init" = yes ; then | |
20175 | resolv=yes | |
20176 | fi | |
20177 | LIBS="$OLIBS" | |
20178 | fi | |
20179 | ||
20180 | if test "$have_res_init" = yes; then | |
20181 | ||
20182 | cat >>confdefs.h <<\_ACEOF | |
20183 | #define HAVE_RES_INIT 1 | |
20184 | _ACEOF | |
20185 | ||
20186 | fi | |
20187 | ||
84e70f78 KR |
20188 | # Do we need the Hesiod library to provide the support routines? |
20189 | if test "$with_hesiod" = yes ; then | |
20190 | # Don't set $LIBS here -- see comments above. | |
ca81d7a0 JD |
20191 | { echo "$as_me:$LINENO: checking for res_send" >&5 |
20192 | echo $ECHO_N "checking for res_send... $ECHO_C" >&6; } | |
84e70f78 KR |
20193 | if test "${ac_cv_func_res_send+set}" = set; then |
20194 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20195 | else | |
20196 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
20197 | /* confdefs.h. */ |
20198 | _ACEOF | |
20199 | cat confdefs.h >>conftest.$ac_ext | |
20200 | cat >>conftest.$ac_ext <<_ACEOF | |
20201 | /* end confdefs.h. */ | |
edfaf76d LK |
20202 | /* Define res_send to an innocuous variant, in case <limits.h> declares res_send. |
20203 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
20204 | #define res_send innocuous_res_send | |
20205 | ||
84e70f78 | 20206 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
20207 | which can conflict with char res_send (); below. |
20208 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
20209 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 20210 | |
19650fd6 AS |
20211 | #ifdef __STDC__ |
20212 | # include <limits.h> | |
20213 | #else | |
20214 | # include <assert.h> | |
20215 | #endif | |
edfaf76d LK |
20216 | |
20217 | #undef res_send | |
20218 | ||
ca81d7a0 JD |
20219 | /* Override any GCC internal prototype to avoid an error. |
20220 | Use char because int might match the return type of a GCC | |
20221 | builtin and then its argument prototype would still apply. */ | |
84e70f78 KR |
20222 | #ifdef __cplusplus |
20223 | extern "C" | |
20224 | #endif | |
84e70f78 | 20225 | char res_send (); |
84e70f78 KR |
20226 | /* The GNU C library defines this for functions which it implements |
20227 | to always fail with ENOSYS. Some functions are actually named | |
20228 | something starting with __ and the normal name is an alias. */ | |
ca81d7a0 | 20229 | #if defined __stub_res_send || defined __stub___res_send |
84e70f78 | 20230 | choke me |
cd958eb3 MB |
20231 | #endif |
20232 | ||
19650fd6 AS |
20233 | int |
20234 | main () | |
20235 | { | |
ca81d7a0 | 20236 | return res_send (); |
84e70f78 KR |
20237 | ; |
20238 | return 0; | |
20239 | } | |
20240 | _ACEOF | |
20241 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
20242 | if { (ac_try="$ac_link" |
20243 | case "(($ac_try" in | |
20244 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20245 | *) ac_try_echo=$ac_try;; | |
20246 | esac | |
20247 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20248 | (eval "$ac_link") 2>conftest.er1 | |
84e70f78 | 20249 | ac_status=$? |
edfaf76d LK |
20250 | grep -v '^ *+' conftest.er1 >conftest.err |
20251 | rm -f conftest.er1 | |
20252 | cat conftest.err >&5 | |
c0d27fcc | 20253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
20254 | (exit $ac_status); } && { |
20255 | test -z "$ac_c_werror_flag" || | |
20256 | test ! -s conftest.err | |
20257 | } && test -s conftest$ac_exeext && | |
20258 | $as_test_x conftest$ac_exeext; then | |
84e70f78 KR |
20259 | ac_cv_func_res_send=yes |
20260 | else | |
20261 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
20262 | sed 's/^/| /' conftest.$ac_ext >&5 |
20263 | ||
ca81d7a0 | 20264 | ac_cv_func_res_send=no |
84e70f78 | 20265 | fi |
ca81d7a0 | 20266 | |
f053c89f | 20267 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 20268 | conftest$ac_exeext conftest.$ac_ext |
84e70f78 | 20269 | fi |
ca81d7a0 JD |
20270 | { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5 |
20271 | echo "${ECHO_T}$ac_cv_func_res_send" >&6; } | |
84e70f78 KR |
20272 | if test $ac_cv_func_res_send = yes; then |
20273 | : | |
20274 | else | |
ca81d7a0 JD |
20275 | { echo "$as_me:$LINENO: checking for __res_send" >&5 |
20276 | echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; } | |
84e70f78 KR |
20277 | if test "${ac_cv_func___res_send+set}" = set; then |
20278 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20279 | else | |
20280 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
20281 | /* confdefs.h. */ |
20282 | _ACEOF | |
20283 | cat confdefs.h >>conftest.$ac_ext | |
20284 | cat >>conftest.$ac_ext <<_ACEOF | |
20285 | /* end confdefs.h. */ | |
edfaf76d LK |
20286 | /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send. |
20287 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
20288 | #define __res_send innocuous___res_send | |
20289 | ||
84e70f78 | 20290 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
20291 | which can conflict with char __res_send (); below. |
20292 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
20293 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 20294 | |
19650fd6 AS |
20295 | #ifdef __STDC__ |
20296 | # include <limits.h> | |
20297 | #else | |
20298 | # include <assert.h> | |
20299 | #endif | |
edfaf76d LK |
20300 | |
20301 | #undef __res_send | |
20302 | ||
ca81d7a0 JD |
20303 | /* Override any GCC internal prototype to avoid an error. |
20304 | Use char because int might match the return type of a GCC | |
20305 | builtin and then its argument prototype would still apply. */ | |
84e70f78 KR |
20306 | #ifdef __cplusplus |
20307 | extern "C" | |
20308 | #endif | |
84e70f78 | 20309 | char __res_send (); |
84e70f78 KR |
20310 | /* The GNU C library defines this for functions which it implements |
20311 | to always fail with ENOSYS. Some functions are actually named | |
20312 | something starting with __ and the normal name is an alias. */ | |
ca81d7a0 | 20313 | #if defined __stub___res_send || defined __stub_____res_send |
84e70f78 | 20314 | choke me |
84e70f78 KR |
20315 | #endif |
20316 | ||
19650fd6 AS |
20317 | int |
20318 | main () | |
20319 | { | |
ca81d7a0 | 20320 | return __res_send (); |
84e70f78 KR |
20321 | ; |
20322 | return 0; | |
20323 | } | |
20324 | _ACEOF | |
20325 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
20326 | if { (ac_try="$ac_link" |
20327 | case "(($ac_try" in | |
20328 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20329 | *) ac_try_echo=$ac_try;; | |
20330 | esac | |
20331 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20332 | (eval "$ac_link") 2>conftest.er1 | |
84e70f78 | 20333 | ac_status=$? |
edfaf76d LK |
20334 | grep -v '^ *+' conftest.er1 >conftest.err |
20335 | rm -f conftest.er1 | |
20336 | cat conftest.err >&5 | |
c0d27fcc | 20337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
c24fa7dc MB |
20338 | (exit $ac_status); } && { |
20339 | test -z "$ac_c_werror_flag" || | |
20340 | test ! -s conftest.err | |
20341 | } && test -s conftest$ac_exeext && | |
20342 | $as_test_x conftest$ac_exeext; then | |
84e70f78 KR |
20343 | ac_cv_func___res_send=yes |
20344 | else | |
20345 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
20346 | sed 's/^/| /' conftest.$ac_ext >&5 |
20347 | ||
ca81d7a0 | 20348 | ac_cv_func___res_send=no |
84e70f78 | 20349 | fi |
ca81d7a0 | 20350 | |
f053c89f | 20351 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 20352 | conftest$ac_exeext conftest.$ac_ext |
84e70f78 | 20353 | fi |
ca81d7a0 JD |
20354 | { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5 |
20355 | echo "${ECHO_T}$ac_cv_func___res_send" >&6; } | |
84e70f78 KR |
20356 | if test $ac_cv_func___res_send = yes; then |
20357 | : | |
20358 | else | |
ca81d7a0 JD |
20359 | { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5 |
20360 | echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; } | |
84e70f78 KR |
20361 | if test "${ac_cv_lib_resolv_res_send+set}" = set; then |
20362 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20363 | else | |
20364 | ac_check_lib_save_LIBS=$LIBS | |
20365 | LIBS="-lresolv $LIBS" | |
20366 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
20367 | /* confdefs.h. */ |
20368 | _ACEOF | |
20369 | cat confdefs.h >>conftest.$ac_ext | |
20370 | cat >>conftest.$ac_ext <<_ACEOF | |
20371 | /* end confdefs.h. */ | |
84e70f78 | 20372 | |
ca81d7a0 JD |
20373 | /* Override any GCC internal prototype to avoid an error. |
20374 | Use char because int might match the return type of a GCC | |
20375 | builtin and then its argument prototype would still apply. */ | |
84e70f78 KR |
20376 | #ifdef __cplusplus |
20377 | extern "C" | |
20378 | #endif | |
84e70f78 KR |
20379 | char res_send (); |
20380 | int | |
20381 | main () | |
20382 | { | |
ca81d7a0 | 20383 | return res_send (); |
84e70f78 KR |
20384 | ; |
20385 | return 0; | |
20386 | } | |
20387 | _ACEOF | |
20388 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
20389 | if { (ac_try="$ac_link" |
20390 | case "(($ac_try" in | |
20391 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20392 | *) ac_try_echo=$ac_try;; | |
20393 | esac | |
20394 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20395 | (eval "$ac_link") 2>conftest.er1 | |
84e70f78 | 20396 | ac_status=$? |
edfaf76d LK |
20397 | grep -v '^ *+' conftest.er1 >conftest.err |
20398 | rm -f conftest.er1 | |
20399 | cat conftest.err >&5 | |
c0d27fcc | 20400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
20401 | (exit $ac_status); } && { |
20402 | test -z "$ac_c_werror_flag" || | |
20403 | test ! -s conftest.err | |
20404 | } && test -s conftest$ac_exeext && | |
20405 | $as_test_x conftest$ac_exeext; then | |
84e70f78 KR |
20406 | ac_cv_lib_resolv_res_send=yes |
20407 | else | |
20408 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
20409 | sed 's/^/| /' conftest.$ac_ext >&5 |
20410 | ||
ca81d7a0 | 20411 | ac_cv_lib_resolv_res_send=no |
84e70f78 | 20412 | fi |
ca81d7a0 | 20413 | |
f053c89f | 20414 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 20415 | conftest$ac_exeext conftest.$ac_ext |
84e70f78 KR |
20416 | LIBS=$ac_check_lib_save_LIBS |
20417 | fi | |
ca81d7a0 JD |
20418 | { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5 |
20419 | echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; } | |
84e70f78 KR |
20420 | if test $ac_cv_lib_resolv_res_send = yes; then |
20421 | resolv=yes | |
20422 | else | |
ca81d7a0 JD |
20423 | { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5 |
20424 | echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; } | |
84e70f78 KR |
20425 | if test "${ac_cv_lib_resolv___res_send+set}" = set; then |
20426 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20427 | else | |
20428 | ac_check_lib_save_LIBS=$LIBS | |
20429 | LIBS="-lresolv $LIBS" | |
20430 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
20431 | /* confdefs.h. */ |
20432 | _ACEOF | |
20433 | cat confdefs.h >>conftest.$ac_ext | |
20434 | cat >>conftest.$ac_ext <<_ACEOF | |
20435 | /* end confdefs.h. */ | |
84e70f78 | 20436 | |
ca81d7a0 JD |
20437 | /* Override any GCC internal prototype to avoid an error. |
20438 | Use char because int might match the return type of a GCC | |
20439 | builtin and then its argument prototype would still apply. */ | |
84e70f78 KR |
20440 | #ifdef __cplusplus |
20441 | extern "C" | |
20442 | #endif | |
84e70f78 KR |
20443 | char __res_send (); |
20444 | int | |
20445 | main () | |
20446 | { | |
ca81d7a0 | 20447 | return __res_send (); |
84e70f78 KR |
20448 | ; |
20449 | return 0; | |
20450 | } | |
20451 | _ACEOF | |
20452 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
20453 | if { (ac_try="$ac_link" |
20454 | case "(($ac_try" in | |
20455 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20456 | *) ac_try_echo=$ac_try;; | |
20457 | esac | |
20458 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20459 | (eval "$ac_link") 2>conftest.er1 | |
84e70f78 | 20460 | ac_status=$? |
edfaf76d LK |
20461 | grep -v '^ *+' conftest.er1 >conftest.err |
20462 | rm -f conftest.er1 | |
20463 | cat conftest.err >&5 | |
c0d27fcc | 20464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
20465 | (exit $ac_status); } && { |
20466 | test -z "$ac_c_werror_flag" || | |
20467 | test ! -s conftest.err | |
20468 | } && test -s conftest$ac_exeext && | |
20469 | $as_test_x conftest$ac_exeext; then | |
84e70f78 KR |
20470 | ac_cv_lib_resolv___res_send=yes |
20471 | else | |
20472 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
20473 | sed 's/^/| /' conftest.$ac_ext >&5 |
20474 | ||
ca81d7a0 | 20475 | ac_cv_lib_resolv___res_send=no |
84e70f78 | 20476 | fi |
ca81d7a0 | 20477 | |
f053c89f | 20478 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 20479 | conftest$ac_exeext conftest.$ac_ext |
84e70f78 KR |
20480 | LIBS=$ac_check_lib_save_LIBS |
20481 | fi | |
ca81d7a0 JD |
20482 | { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5 |
20483 | echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; } | |
84e70f78 KR |
20484 | if test $ac_cv_lib_resolv___res_send = yes; then |
20485 | resolv=yes | |
20486 | fi | |
20487 | ||
20488 | fi | |
20489 | ||
20490 | fi | |
20491 | ||
20492 | fi | |
20493 | ||
20494 | if test "$resolv" = yes ; then | |
20495 | RESOLVLIB=-lresolv | |
84e70f78 KR |
20496 | else |
20497 | RESOLVLIB= | |
20498 | fi | |
ca81d7a0 JD |
20499 | { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5 |
20500 | echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; } | |
84e70f78 KR |
20501 | if test "${ac_cv_func_hes_getmailhost+set}" = set; then |
20502 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20503 | else | |
20504 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
20505 | /* confdefs.h. */ |
20506 | _ACEOF | |
20507 | cat confdefs.h >>conftest.$ac_ext | |
20508 | cat >>conftest.$ac_ext <<_ACEOF | |
20509 | /* end confdefs.h. */ | |
edfaf76d LK |
20510 | /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost. |
20511 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
20512 | #define hes_getmailhost innocuous_hes_getmailhost | |
20513 | ||
84e70f78 | 20514 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
20515 | which can conflict with char hes_getmailhost (); below. |
20516 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
20517 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 20518 | |
19650fd6 AS |
20519 | #ifdef __STDC__ |
20520 | # include <limits.h> | |
20521 | #else | |
20522 | # include <assert.h> | |
20523 | #endif | |
edfaf76d LK |
20524 | |
20525 | #undef hes_getmailhost | |
20526 | ||
ca81d7a0 JD |
20527 | /* Override any GCC internal prototype to avoid an error. |
20528 | Use char because int might match the return type of a GCC | |
20529 | builtin and then its argument prototype would still apply. */ | |
84e70f78 KR |
20530 | #ifdef __cplusplus |
20531 | extern "C" | |
20532 | #endif | |
84e70f78 | 20533 | char hes_getmailhost (); |
84e70f78 KR |
20534 | /* The GNU C library defines this for functions which it implements |
20535 | to always fail with ENOSYS. Some functions are actually named | |
20536 | something starting with __ and the normal name is an alias. */ | |
ca81d7a0 | 20537 | #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost |
84e70f78 | 20538 | choke me |
cd958eb3 MB |
20539 | #endif |
20540 | ||
19650fd6 AS |
20541 | int |
20542 | main () | |
20543 | { | |
ca81d7a0 | 20544 | return hes_getmailhost (); |
84e70f78 KR |
20545 | ; |
20546 | return 0; | |
20547 | } | |
20548 | _ACEOF | |
20549 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
20550 | if { (ac_try="$ac_link" |
20551 | case "(($ac_try" in | |
20552 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20553 | *) ac_try_echo=$ac_try;; | |
20554 | esac | |
20555 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20556 | (eval "$ac_link") 2>conftest.er1 | |
84e70f78 | 20557 | ac_status=$? |
edfaf76d LK |
20558 | grep -v '^ *+' conftest.er1 >conftest.err |
20559 | rm -f conftest.er1 | |
20560 | cat conftest.err >&5 | |
c0d27fcc | 20561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
20562 | (exit $ac_status); } && { |
20563 | test -z "$ac_c_werror_flag" || | |
20564 | test ! -s conftest.err | |
20565 | } && test -s conftest$ac_exeext && | |
20566 | $as_test_x conftest$ac_exeext; then | |
84e70f78 KR |
20567 | ac_cv_func_hes_getmailhost=yes |
20568 | else | |
20569 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
20570 | sed 's/^/| /' conftest.$ac_ext >&5 |
20571 | ||
ca81d7a0 | 20572 | ac_cv_func_hes_getmailhost=no |
84e70f78 | 20573 | fi |
ca81d7a0 | 20574 | |
f053c89f | 20575 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 20576 | conftest$ac_exeext conftest.$ac_ext |
84e70f78 | 20577 | fi |
ca81d7a0 JD |
20578 | { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5 |
20579 | echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; } | |
84e70f78 KR |
20580 | if test $ac_cv_func_hes_getmailhost = yes; then |
20581 | : | |
20582 | else | |
ca81d7a0 JD |
20583 | { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5 |
20584 | echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; } | |
84e70f78 KR |
20585 | if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then |
20586 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20587 | else | |
20588 | ac_check_lib_save_LIBS=$LIBS | |
20589 | LIBS="-lhesiod $RESOLVLIB $LIBS" | |
20590 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
20591 | /* confdefs.h. */ |
20592 | _ACEOF | |
20593 | cat confdefs.h >>conftest.$ac_ext | |
20594 | cat >>conftest.$ac_ext <<_ACEOF | |
20595 | /* end confdefs.h. */ | |
84e70f78 | 20596 | |
ca81d7a0 JD |
20597 | /* Override any GCC internal prototype to avoid an error. |
20598 | Use char because int might match the return type of a GCC | |
20599 | builtin and then its argument prototype would still apply. */ | |
84e70f78 KR |
20600 | #ifdef __cplusplus |
20601 | extern "C" | |
20602 | #endif | |
84e70f78 KR |
20603 | char hes_getmailhost (); |
20604 | int | |
20605 | main () | |
20606 | { | |
ca81d7a0 | 20607 | return hes_getmailhost (); |
84e70f78 KR |
20608 | ; |
20609 | return 0; | |
20610 | } | |
20611 | _ACEOF | |
20612 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
20613 | if { (ac_try="$ac_link" |
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_link") 2>conftest.er1 | |
84e70f78 | 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 |
c24fa7dc MB |
20625 | (exit $ac_status); } && { |
20626 | test -z "$ac_c_werror_flag" || | |
20627 | test ! -s conftest.err | |
20628 | } && test -s conftest$ac_exeext && | |
20629 | $as_test_x conftest$ac_exeext; then | |
84e70f78 KR |
20630 | ac_cv_lib_hesiod_hes_getmailhost=yes |
20631 | else | |
20632 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
20633 | sed 's/^/| /' conftest.$ac_ext >&5 |
20634 | ||
ca81d7a0 | 20635 | ac_cv_lib_hesiod_hes_getmailhost=no |
84e70f78 | 20636 | fi |
ca81d7a0 | 20637 | |
f053c89f | 20638 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 20639 | conftest$ac_exeext conftest.$ac_ext |
84e70f78 KR |
20640 | LIBS=$ac_check_lib_save_LIBS |
20641 | fi | |
ca81d7a0 JD |
20642 | { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5 |
20643 | echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; } | |
84e70f78 | 20644 | if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then |
b936fae4 | 20645 | |
c0d27fcc | 20646 | cat >>confdefs.h <<\_ACEOF |
84e70f78 | 20647 | #define HAVE_LIBHESIOD 1 |
c0d27fcc | 20648 | _ACEOF |
84e70f78 KR |
20649 | |
20650 | else | |
20651 | : | |
20652 | fi | |
20653 | ||
20654 | fi | |
20655 | ||
20656 | fi | |
20657 | ||
bc3512d0 CY |
20658 | # Do we need libresolv (due to res_init or Hesiod)? |
20659 | if test "$resolv" = yes ; then | |
20660 | ||
20661 | cat >>confdefs.h <<\_ACEOF | |
20662 | #define HAVE_LIBRESOLV 1 | |
20663 | _ACEOF | |
20664 | ||
20665 | fi | |
20666 | ||
a21616bd KR |
20667 | # These tell us which Kerberos-related libraries to use. |
20668 | if test "${with_kerberos+set}" = set; then | |
503d2be0 | 20669 | |
ca81d7a0 JD |
20670 | { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5 |
20671 | echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; } | |
503d2be0 AS |
20672 | if test "${ac_cv_lib_com_err_com_err+set}" = set; then |
20673 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 20674 | else |
503d2be0 | 20675 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 20676 | LIBS="-lcom_err $LIBS" |
503d2be0 | 20677 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
20678 | /* confdefs.h. */ |
20679 | _ACEOF | |
20680 | cat confdefs.h >>conftest.$ac_ext | |
20681 | cat >>conftest.$ac_ext <<_ACEOF | |
20682 | /* end confdefs.h. */ | |
503d2be0 | 20683 | |
ca81d7a0 JD |
20684 | /* Override any GCC internal prototype to avoid an error. |
20685 | Use char because int might match the return type of a GCC | |
20686 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
20687 | #ifdef __cplusplus |
20688 | extern "C" | |
20689 | #endif | |
503d2be0 AS |
20690 | char com_err (); |
20691 | int | |
20692 | main () | |
20693 | { | |
ca81d7a0 | 20694 | return com_err (); |
503d2be0 AS |
20695 | ; |
20696 | return 0; | |
20697 | } | |
20698 | _ACEOF | |
20699 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
20700 | if { (ac_try="$ac_link" |
20701 | case "(($ac_try" in | |
20702 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20703 | *) ac_try_echo=$ac_try;; | |
20704 | esac | |
20705 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20706 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 20707 | ac_status=$? |
edfaf76d LK |
20708 | grep -v '^ *+' conftest.er1 >conftest.err |
20709 | rm -f conftest.er1 | |
20710 | cat conftest.err >&5 | |
c0d27fcc | 20711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
20712 | (exit $ac_status); } && { |
20713 | test -z "$ac_c_werror_flag" || | |
20714 | test ! -s conftest.err | |
20715 | } && test -s conftest$ac_exeext && | |
20716 | $as_test_x conftest$ac_exeext; then | |
503d2be0 AS |
20717 | ac_cv_lib_com_err_com_err=yes |
20718 | else | |
20719 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
20720 | sed 's/^/| /' conftest.$ac_ext >&5 |
20721 | ||
ca81d7a0 | 20722 | ac_cv_lib_com_err_com_err=no |
503d2be0 | 20723 | fi |
ca81d7a0 | 20724 | |
f053c89f | 20725 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 20726 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 AS |
20727 | LIBS=$ac_check_lib_save_LIBS |
20728 | fi | |
ca81d7a0 JD |
20729 | { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5 |
20730 | echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; } | |
503d2be0 | 20731 | if test $ac_cv_lib_com_err_com_err = yes; then |
c0d27fcc | 20732 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 20733 | #define HAVE_LIBCOM_ERR 1 |
c0d27fcc | 20734 | _ACEOF |
a21616bd KR |
20735 | |
20736 | LIBS="-lcom_err $LIBS" | |
20737 | ||
a21616bd KR |
20738 | fi |
20739 | ||
c0d27fcc | 20740 | |
ca81d7a0 JD |
20741 | { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5 |
20742 | echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; } | |
503d2be0 AS |
20743 | if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then |
20744 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 20745 | else |
503d2be0 | 20746 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 20747 | LIBS="-lk5crypto $LIBS" |
503d2be0 | 20748 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
20749 | /* confdefs.h. */ |
20750 | _ACEOF | |
20751 | cat confdefs.h >>conftest.$ac_ext | |
20752 | cat >>conftest.$ac_ext <<_ACEOF | |
20753 | /* end confdefs.h. */ | |
503d2be0 | 20754 | |
ca81d7a0 JD |
20755 | /* Override any GCC internal prototype to avoid an error. |
20756 | Use char because int might match the return type of a GCC | |
20757 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
20758 | #ifdef __cplusplus |
20759 | extern "C" | |
20760 | #endif | |
503d2be0 AS |
20761 | char mit_des_cbc_encrypt (); |
20762 | int | |
20763 | main () | |
20764 | { | |
ca81d7a0 | 20765 | return mit_des_cbc_encrypt (); |
503d2be0 AS |
20766 | ; |
20767 | return 0; | |
20768 | } | |
20769 | _ACEOF | |
20770 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
20771 | if { (ac_try="$ac_link" |
20772 | case "(($ac_try" in | |
20773 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20774 | *) ac_try_echo=$ac_try;; | |
20775 | esac | |
20776 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20777 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 20778 | ac_status=$? |
edfaf76d LK |
20779 | grep -v '^ *+' conftest.er1 >conftest.err |
20780 | rm -f conftest.er1 | |
20781 | cat conftest.err >&5 | |
c0d27fcc | 20782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
20783 | (exit $ac_status); } && { |
20784 | test -z "$ac_c_werror_flag" || | |
20785 | test ! -s conftest.err | |
20786 | } && test -s conftest$ac_exeext && | |
20787 | $as_test_x conftest$ac_exeext; then | |
503d2be0 AS |
20788 | ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes |
20789 | else | |
20790 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
20791 | sed 's/^/| /' conftest.$ac_ext >&5 |
20792 | ||
ca81d7a0 | 20793 | ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no |
503d2be0 | 20794 | fi |
ca81d7a0 | 20795 | |
f053c89f | 20796 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 20797 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 AS |
20798 | LIBS=$ac_check_lib_save_LIBS |
20799 | fi | |
ca81d7a0 JD |
20800 | { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5 |
20801 | echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; } | |
503d2be0 | 20802 | if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then |
c0d27fcc | 20803 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 20804 | #define HAVE_LIBK5CRYPTO 1 |
c0d27fcc | 20805 | _ACEOF |
a21616bd KR |
20806 | |
20807 | LIBS="-lk5crypto $LIBS" | |
20808 | ||
a21616bd KR |
20809 | fi |
20810 | ||
c0d27fcc | 20811 | |
ca81d7a0 JD |
20812 | { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5 |
20813 | echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; } | |
503d2be0 AS |
20814 | if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then |
20815 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 20816 | else |
503d2be0 | 20817 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 20818 | LIBS="-lcrypto $LIBS" |
503d2be0 | 20819 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
20820 | /* confdefs.h. */ |
20821 | _ACEOF | |
20822 | cat confdefs.h >>conftest.$ac_ext | |
20823 | cat >>conftest.$ac_ext <<_ACEOF | |
20824 | /* end confdefs.h. */ | |
503d2be0 | 20825 | |
ca81d7a0 JD |
20826 | /* Override any GCC internal prototype to avoid an error. |
20827 | Use char because int might match the return type of a GCC | |
20828 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
20829 | #ifdef __cplusplus |
20830 | extern "C" | |
20831 | #endif | |
503d2be0 AS |
20832 | char mit_des_cbc_encrypt (); |
20833 | int | |
20834 | main () | |
20835 | { | |
ca81d7a0 | 20836 | return mit_des_cbc_encrypt (); |
503d2be0 AS |
20837 | ; |
20838 | return 0; | |
20839 | } | |
20840 | _ACEOF | |
20841 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
20842 | if { (ac_try="$ac_link" |
20843 | case "(($ac_try" in | |
20844 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20845 | *) ac_try_echo=$ac_try;; | |
20846 | esac | |
20847 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20848 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 20849 | ac_status=$? |
edfaf76d LK |
20850 | grep -v '^ *+' conftest.er1 >conftest.err |
20851 | rm -f conftest.er1 | |
20852 | cat conftest.err >&5 | |
c0d27fcc | 20853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
20854 | (exit $ac_status); } && { |
20855 | test -z "$ac_c_werror_flag" || | |
20856 | test ! -s conftest.err | |
20857 | } && test -s conftest$ac_exeext && | |
20858 | $as_test_x conftest$ac_exeext; then | |
503d2be0 AS |
20859 | ac_cv_lib_crypto_mit_des_cbc_encrypt=yes |
20860 | else | |
20861 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
20862 | sed 's/^/| /' conftest.$ac_ext >&5 |
20863 | ||
ca81d7a0 | 20864 | ac_cv_lib_crypto_mit_des_cbc_encrypt=no |
503d2be0 | 20865 | fi |
ca81d7a0 | 20866 | |
f053c89f | 20867 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 20868 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 AS |
20869 | LIBS=$ac_check_lib_save_LIBS |
20870 | fi | |
ca81d7a0 JD |
20871 | { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5 |
20872 | echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; } | |
503d2be0 | 20873 | if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then |
c0d27fcc | 20874 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 20875 | #define HAVE_LIBCRYPTO 1 |
c0d27fcc | 20876 | _ACEOF |
a21616bd KR |
20877 | |
20878 | LIBS="-lcrypto $LIBS" | |
20879 | ||
a21616bd KR |
20880 | fi |
20881 | ||
c0d27fcc | 20882 | |
ca81d7a0 JD |
20883 | { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5 |
20884 | echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; } | |
503d2be0 AS |
20885 | if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then |
20886 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 20887 | else |
503d2be0 | 20888 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 20889 | LIBS="-lkrb5 $LIBS" |
503d2be0 | 20890 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
20891 | /* confdefs.h. */ |
20892 | _ACEOF | |
20893 | cat confdefs.h >>conftest.$ac_ext | |
20894 | cat >>conftest.$ac_ext <<_ACEOF | |
20895 | /* end confdefs.h. */ | |
a21616bd | 20896 | |
ca81d7a0 JD |
20897 | /* Override any GCC internal prototype to avoid an error. |
20898 | Use char because int might match the return type of a GCC | |
20899 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
20900 | #ifdef __cplusplus |
20901 | extern "C" | |
20902 | #endif | |
503d2be0 AS |
20903 | char krb5_init_context (); |
20904 | int | |
20905 | main () | |
20906 | { | |
ca81d7a0 | 20907 | return krb5_init_context (); |
503d2be0 AS |
20908 | ; |
20909 | return 0; | |
20910 | } | |
20911 | _ACEOF | |
20912 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
20913 | if { (ac_try="$ac_link" |
20914 | case "(($ac_try" in | |
20915 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20916 | *) ac_try_echo=$ac_try;; | |
20917 | esac | |
20918 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20919 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 20920 | ac_status=$? |
edfaf76d LK |
20921 | grep -v '^ *+' conftest.er1 >conftest.err |
20922 | rm -f conftest.er1 | |
20923 | cat conftest.err >&5 | |
c0d27fcc | 20924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
20925 | (exit $ac_status); } && { |
20926 | test -z "$ac_c_werror_flag" || | |
20927 | test ! -s conftest.err | |
20928 | } && test -s conftest$ac_exeext && | |
20929 | $as_test_x conftest$ac_exeext; then | |
503d2be0 AS |
20930 | ac_cv_lib_krb5_krb5_init_context=yes |
20931 | else | |
20932 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
20933 | sed 's/^/| /' conftest.$ac_ext >&5 |
20934 | ||
ca81d7a0 | 20935 | ac_cv_lib_krb5_krb5_init_context=no |
503d2be0 | 20936 | fi |
ca81d7a0 | 20937 | |
f053c89f | 20938 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 20939 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 AS |
20940 | LIBS=$ac_check_lib_save_LIBS |
20941 | fi | |
ca81d7a0 JD |
20942 | { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5 |
20943 | echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; } | |
503d2be0 | 20944 | if test $ac_cv_lib_krb5_krb5_init_context = yes; then |
c0d27fcc | 20945 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 20946 | #define HAVE_LIBKRB5 1 |
c0d27fcc | 20947 | _ACEOF |
a21616bd KR |
20948 | |
20949 | LIBS="-lkrb5 $LIBS" | |
20950 | ||
a21616bd KR |
20951 | fi |
20952 | ||
20953 | if test "${with_kerberos5+set}" != set; then | |
503d2be0 | 20954 | |
ca81d7a0 JD |
20955 | { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5 |
20956 | echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; } | |
503d2be0 AS |
20957 | if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then |
20958 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 20959 | else |
503d2be0 | 20960 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 20961 | LIBS="-ldes425 $LIBS" |
503d2be0 | 20962 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
20963 | /* confdefs.h. */ |
20964 | _ACEOF | |
20965 | cat confdefs.h >>conftest.$ac_ext | |
20966 | cat >>conftest.$ac_ext <<_ACEOF | |
20967 | /* end confdefs.h. */ | |
503d2be0 | 20968 | |
ca81d7a0 JD |
20969 | /* Override any GCC internal prototype to avoid an error. |
20970 | Use char because int might match the return type of a GCC | |
20971 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
20972 | #ifdef __cplusplus |
20973 | extern "C" | |
20974 | #endif | |
503d2be0 AS |
20975 | char des_cbc_encrypt (); |
20976 | int | |
20977 | main () | |
20978 | { | |
ca81d7a0 | 20979 | return des_cbc_encrypt (); |
503d2be0 AS |
20980 | ; |
20981 | return 0; | |
20982 | } | |
20983 | _ACEOF | |
20984 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
20985 | if { (ac_try="$ac_link" |
20986 | case "(($ac_try" in | |
20987 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20988 | *) ac_try_echo=$ac_try;; | |
20989 | esac | |
20990 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20991 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 20992 | ac_status=$? |
edfaf76d LK |
20993 | grep -v '^ *+' conftest.er1 >conftest.err |
20994 | rm -f conftest.er1 | |
20995 | cat conftest.err >&5 | |
c0d27fcc | 20996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
20997 | (exit $ac_status); } && { |
20998 | test -z "$ac_c_werror_flag" || | |
20999 | test ! -s conftest.err | |
21000 | } && test -s conftest$ac_exeext && | |
21001 | $as_test_x conftest$ac_exeext; then | |
503d2be0 AS |
21002 | ac_cv_lib_des425_des_cbc_encrypt=yes |
21003 | else | |
21004 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
21005 | sed 's/^/| /' conftest.$ac_ext >&5 |
21006 | ||
ca81d7a0 | 21007 | ac_cv_lib_des425_des_cbc_encrypt=no |
503d2be0 | 21008 | fi |
ca81d7a0 | 21009 | |
f053c89f | 21010 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 21011 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 AS |
21012 | LIBS=$ac_check_lib_save_LIBS |
21013 | fi | |
ca81d7a0 JD |
21014 | { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5 |
21015 | echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; } | |
503d2be0 | 21016 | if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then |
c0d27fcc | 21017 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 21018 | #define HAVE_LIBDES425 1 |
c0d27fcc | 21019 | _ACEOF |
a21616bd KR |
21020 | |
21021 | LIBS="-ldes425 $LIBS" | |
21022 | ||
21023 | else | |
503d2be0 | 21024 | |
ca81d7a0 JD |
21025 | { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5 |
21026 | echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; } | |
503d2be0 AS |
21027 | if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then |
21028 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 21029 | else |
503d2be0 | 21030 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 21031 | LIBS="-ldes $LIBS" |
503d2be0 | 21032 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
21033 | /* confdefs.h. */ |
21034 | _ACEOF | |
21035 | cat confdefs.h >>conftest.$ac_ext | |
21036 | cat >>conftest.$ac_ext <<_ACEOF | |
21037 | /* end confdefs.h. */ | |
503d2be0 | 21038 | |
ca81d7a0 JD |
21039 | /* Override any GCC internal prototype to avoid an error. |
21040 | Use char because int might match the return type of a GCC | |
21041 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
21042 | #ifdef __cplusplus |
21043 | extern "C" | |
21044 | #endif | |
503d2be0 AS |
21045 | char des_cbc_encrypt (); |
21046 | int | |
21047 | main () | |
21048 | { | |
ca81d7a0 | 21049 | return des_cbc_encrypt (); |
503d2be0 AS |
21050 | ; |
21051 | return 0; | |
21052 | } | |
21053 | _ACEOF | |
21054 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
21055 | if { (ac_try="$ac_link" |
21056 | case "(($ac_try" in | |
21057 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21058 | *) ac_try_echo=$ac_try;; | |
21059 | esac | |
21060 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21061 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 21062 | ac_status=$? |
edfaf76d LK |
21063 | grep -v '^ *+' conftest.er1 >conftest.err |
21064 | rm -f conftest.er1 | |
21065 | cat conftest.err >&5 | |
c0d27fcc | 21066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
21067 | (exit $ac_status); } && { |
21068 | test -z "$ac_c_werror_flag" || | |
21069 | test ! -s conftest.err | |
21070 | } && test -s conftest$ac_exeext && | |
21071 | $as_test_x conftest$ac_exeext; then | |
503d2be0 AS |
21072 | ac_cv_lib_des_des_cbc_encrypt=yes |
21073 | else | |
21074 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
21075 | sed 's/^/| /' conftest.$ac_ext >&5 |
21076 | ||
ca81d7a0 | 21077 | ac_cv_lib_des_des_cbc_encrypt=no |
503d2be0 | 21078 | fi |
ca81d7a0 | 21079 | |
f053c89f | 21080 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 21081 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 AS |
21082 | LIBS=$ac_check_lib_save_LIBS |
21083 | fi | |
ca81d7a0 JD |
21084 | { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5 |
21085 | echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; } | |
503d2be0 | 21086 | if test $ac_cv_lib_des_des_cbc_encrypt = yes; then |
c0d27fcc | 21087 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 21088 | #define HAVE_LIBDES 1 |
c0d27fcc | 21089 | _ACEOF |
a21616bd KR |
21090 | |
21091 | LIBS="-ldes $LIBS" | |
21092 | ||
a21616bd KR |
21093 | fi |
21094 | ||
21095 | fi | |
21096 | ||
c0d27fcc | 21097 | |
ca81d7a0 JD |
21098 | { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5 |
21099 | echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; } | |
503d2be0 AS |
21100 | if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then |
21101 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 21102 | else |
503d2be0 | 21103 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 21104 | LIBS="-lkrb4 $LIBS" |
503d2be0 | 21105 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
21106 | /* confdefs.h. */ |
21107 | _ACEOF | |
21108 | cat confdefs.h >>conftest.$ac_ext | |
21109 | cat >>conftest.$ac_ext <<_ACEOF | |
21110 | /* end confdefs.h. */ | |
503d2be0 | 21111 | |
ca81d7a0 JD |
21112 | /* Override any GCC internal prototype to avoid an error. |
21113 | Use char because int might match the return type of a GCC | |
21114 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
21115 | #ifdef __cplusplus |
21116 | extern "C" | |
21117 | #endif | |
503d2be0 AS |
21118 | char krb_get_cred (); |
21119 | int | |
21120 | main () | |
21121 | { | |
f053c89f | 21122 | return krb_get_cred (); |
503d2be0 AS |
21123 | ; |
21124 | return 0; | |
21125 | } | |
21126 | _ACEOF | |
21127 | rm -f conftest.$ac_objext conftest$ac_exeext | |
f053c89f CY |
21128 | if { (ac_try="$ac_link" |
21129 | case "(($ac_try" in | |
ca81d7a0 JD |
21130 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
21131 | *) ac_try_echo=$ac_try;; | |
21132 | esac | |
21133 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
f053c89f | 21134 | (eval "$ac_link") 2>conftest.er1 |
503d2be0 | 21135 | ac_status=$? |
edfaf76d LK |
21136 | grep -v '^ *+' conftest.er1 >conftest.err |
21137 | rm -f conftest.er1 | |
21138 | cat conftest.err >&5 | |
c0d27fcc | 21139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
21140 | (exit $ac_status); } && { |
21141 | test -z "$ac_c_werror_flag" || | |
21142 | test ! -s conftest.err | |
21143 | } && test -s conftest$ac_exeext && | |
21144 | $as_test_x conftest$ac_exeext; then | |
503d2be0 AS |
21145 | ac_cv_lib_krb4_krb_get_cred=yes |
21146 | else | |
21147 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
21148 | sed 's/^/| /' conftest.$ac_ext >&5 |
21149 | ||
ca81d7a0 | 21150 | ac_cv_lib_krb4_krb_get_cred=no |
503d2be0 | 21151 | fi |
ca81d7a0 | 21152 | |
f053c89f | 21153 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 21154 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 AS |
21155 | LIBS=$ac_check_lib_save_LIBS |
21156 | fi | |
ca81d7a0 JD |
21157 | { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5 |
21158 | echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; } | |
503d2be0 | 21159 | if test $ac_cv_lib_krb4_krb_get_cred = yes; then |
c0d27fcc | 21160 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 21161 | #define HAVE_LIBKRB4 1 |
c0d27fcc | 21162 | _ACEOF |
a21616bd KR |
21163 | |
21164 | LIBS="-lkrb4 $LIBS" | |
21165 | ||
21166 | else | |
503d2be0 | 21167 | |
ca81d7a0 JD |
21168 | { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5 |
21169 | echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; } | |
503d2be0 AS |
21170 | if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then |
21171 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a21616bd | 21172 | else |
503d2be0 | 21173 | ac_check_lib_save_LIBS=$LIBS |
a21616bd | 21174 | LIBS="-lkrb $LIBS" |
503d2be0 | 21175 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
21176 | /* confdefs.h. */ |
21177 | _ACEOF | |
21178 | cat confdefs.h >>conftest.$ac_ext | |
21179 | cat >>conftest.$ac_ext <<_ACEOF | |
21180 | /* end confdefs.h. */ | |
503d2be0 | 21181 | |
ca81d7a0 JD |
21182 | /* Override any GCC internal prototype to avoid an error. |
21183 | Use char because int might match the return type of a GCC | |
21184 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
21185 | #ifdef __cplusplus |
21186 | extern "C" | |
21187 | #endif | |
503d2be0 AS |
21188 | char krb_get_cred (); |
21189 | int | |
21190 | main () | |
21191 | { | |
ca81d7a0 | 21192 | return krb_get_cred (); |
503d2be0 AS |
21193 | ; |
21194 | return 0; | |
21195 | } | |
21196 | _ACEOF | |
21197 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
21198 | if { (ac_try="$ac_link" |
21199 | case "(($ac_try" in | |
21200 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21201 | *) ac_try_echo=$ac_try;; | |
21202 | esac | |
21203 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21204 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 21205 | ac_status=$? |
edfaf76d LK |
21206 | grep -v '^ *+' conftest.er1 >conftest.err |
21207 | rm -f conftest.er1 | |
21208 | cat conftest.err >&5 | |
c0d27fcc | 21209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
21210 | (exit $ac_status); } && { |
21211 | test -z "$ac_c_werror_flag" || | |
21212 | test ! -s conftest.err | |
21213 | } && test -s conftest$ac_exeext && | |
21214 | $as_test_x conftest$ac_exeext; then | |
503d2be0 AS |
21215 | ac_cv_lib_krb_krb_get_cred=yes |
21216 | else | |
21217 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
21218 | sed 's/^/| /' conftest.$ac_ext >&5 |
21219 | ||
ca81d7a0 | 21220 | ac_cv_lib_krb_krb_get_cred=no |
503d2be0 | 21221 | fi |
ca81d7a0 | 21222 | |
f053c89f | 21223 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 21224 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 AS |
21225 | LIBS=$ac_check_lib_save_LIBS |
21226 | fi | |
ca81d7a0 JD |
21227 | { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5 |
21228 | echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; } | |
503d2be0 | 21229 | if test $ac_cv_lib_krb_krb_get_cred = yes; then |
c0d27fcc | 21230 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 21231 | #define HAVE_LIBKRB 1 |
c0d27fcc | 21232 | _ACEOF |
a21616bd KR |
21233 | |
21234 | LIBS="-lkrb $LIBS" | |
21235 | ||
a21616bd KR |
21236 | fi |
21237 | ||
21238 | fi | |
21239 | ||
21240 | fi | |
21241 | ||
21242 | if test "${with_kerberos5+set}" = set; then | |
503d2be0 AS |
21243 | |
21244 | for ac_header in krb5.h | |
a21616bd | 21245 | do |
503d2be0 | 21246 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
ca81d7a0 JD |
21247 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
21248 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
21249 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
21250 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 21251 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc | 21252 | fi |
ca81d7a0 JD |
21253 | ac_res=`eval echo '${'$as_ac_Header'}'` |
21254 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
21255 | echo "${ECHO_T}$ac_res" >&6; } | |
98418dba | 21256 | else |
c0d27fcc | 21257 | # Is the header compilable? |
ca81d7a0 JD |
21258 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
21259 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
c0d27fcc | 21260 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
21261 | /* confdefs.h. */ |
21262 | _ACEOF | |
21263 | cat confdefs.h >>conftest.$ac_ext | |
21264 | cat >>conftest.$ac_ext <<_ACEOF | |
21265 | /* end confdefs.h. */ | |
c0d27fcc MR |
21266 | $ac_includes_default |
21267 | #include <$ac_header> | |
21268 | _ACEOF | |
21269 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
21270 | if { (ac_try="$ac_compile" |
21271 | case "(($ac_try" in | |
21272 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21273 | *) ac_try_echo=$ac_try;; | |
21274 | esac | |
21275 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21276 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 21277 | ac_status=$? |
edfaf76d LK |
21278 | grep -v '^ *+' conftest.er1 >conftest.err |
21279 | rm -f conftest.er1 | |
21280 | cat conftest.err >&5 | |
c0d27fcc | 21281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
21282 | (exit $ac_status); } && { |
21283 | test -z "$ac_c_werror_flag" || | |
21284 | test ! -s conftest.err | |
21285 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
21286 | ac_header_compiler=yes |
21287 | else | |
21288 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
21289 | sed 's/^/| /' conftest.$ac_ext >&5 |
21290 | ||
ca81d7a0 | 21291 | ac_header_compiler=no |
c0d27fcc | 21292 | fi |
ca81d7a0 JD |
21293 | |
21294 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
21295 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
21296 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
21297 | |
21298 | # Is the header present? | |
ca81d7a0 JD |
21299 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
21300 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
c0d27fcc | 21301 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
21302 | /* confdefs.h. */ |
21303 | _ACEOF | |
21304 | cat confdefs.h >>conftest.$ac_ext | |
21305 | cat >>conftest.$ac_ext <<_ACEOF | |
21306 | /* end confdefs.h. */ | |
503d2be0 AS |
21307 | #include <$ac_header> |
21308 | _ACEOF | |
ca81d7a0 JD |
21309 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
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_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 21316 | ac_status=$? |
6bae0ccf | 21317 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
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); } >/dev/null && { |
21322 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
21323 | test ! -s conftest.err | |
21324 | }; then | |
c0d27fcc | 21325 | ac_header_preproc=yes |
503d2be0 AS |
21326 | else |
21327 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
21328 | sed 's/^/| /' conftest.$ac_ext >&5 |
21329 | ||
c0d27fcc | 21330 | ac_header_preproc=no |
a21616bd | 21331 | fi |
ca81d7a0 | 21332 | |
503d2be0 | 21333 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
21334 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
21335 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
21336 | |
21337 | # So? What about this header? | |
edfaf76d LK |
21338 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21339 | yes:no: ) | |
c0d27fcc MR |
21340 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
21341 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
21342 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
21343 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
21344 | ac_header_preproc=yes | |
19650fd6 | 21345 | ;; |
edfaf76d | 21346 | no:yes:* ) |
c0d27fcc MR |
21347 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
21348 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
edfaf76d LK |
21349 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
21350 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
21351 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
21352 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
21353 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
21354 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 21355 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 21356 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
21357 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
21358 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 21359 | |
19650fd6 | 21360 | ;; |
c0d27fcc | 21361 | esac |
ca81d7a0 JD |
21362 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
21363 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
21364 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
c0d27fcc MR |
21365 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21366 | else | |
edfaf76d | 21367 | eval "$as_ac_Header=\$ac_header_preproc" |
a21616bd | 21368 | fi |
ca81d7a0 JD |
21369 | ac_res=`eval echo '${'$as_ac_Header'}'` |
21370 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
21371 | echo "${ECHO_T}$ac_res" >&6; } | |
c0d27fcc MR |
21372 | |
21373 | fi | |
503d2be0 | 21374 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 21375 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 21376 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 21377 | _ACEOF |
503d2be0 | 21378 | |
a21616bd | 21379 | fi |
c0d27fcc | 21380 | |
a21616bd KR |
21381 | done |
21382 | ||
21383 | else | |
503d2be0 AS |
21384 | |
21385 | for ac_header in des.h | |
a21616bd | 21386 | do |
503d2be0 | 21387 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
ca81d7a0 JD |
21388 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
21389 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
21390 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
21391 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 21392 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc | 21393 | fi |
ca81d7a0 JD |
21394 | ac_res=`eval echo '${'$as_ac_Header'}'` |
21395 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
21396 | echo "${ECHO_T}$ac_res" >&6; } | |
98418dba | 21397 | else |
c0d27fcc | 21398 | # Is the header compilable? |
ca81d7a0 JD |
21399 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
21400 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
c0d27fcc | 21401 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
21402 | /* confdefs.h. */ |
21403 | _ACEOF | |
21404 | cat confdefs.h >>conftest.$ac_ext | |
21405 | cat >>conftest.$ac_ext <<_ACEOF | |
21406 | /* end confdefs.h. */ | |
c0d27fcc MR |
21407 | $ac_includes_default |
21408 | #include <$ac_header> | |
21409 | _ACEOF | |
21410 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
21411 | if { (ac_try="$ac_compile" |
21412 | case "(($ac_try" in | |
21413 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21414 | *) ac_try_echo=$ac_try;; | |
21415 | esac | |
21416 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21417 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 21418 | ac_status=$? |
edfaf76d LK |
21419 | grep -v '^ *+' conftest.er1 >conftest.err |
21420 | rm -f conftest.er1 | |
21421 | cat conftest.err >&5 | |
c0d27fcc | 21422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
21423 | (exit $ac_status); } && { |
21424 | test -z "$ac_c_werror_flag" || | |
21425 | test ! -s conftest.err | |
21426 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
21427 | ac_header_compiler=yes |
21428 | else | |
21429 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
21430 | sed 's/^/| /' conftest.$ac_ext >&5 |
21431 | ||
ca81d7a0 | 21432 | ac_header_compiler=no |
c0d27fcc | 21433 | fi |
ca81d7a0 JD |
21434 | |
21435 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
21436 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
21437 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
21438 | |
21439 | # Is the header present? | |
ca81d7a0 JD |
21440 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
21441 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
c0d27fcc | 21442 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
21443 | /* confdefs.h. */ |
21444 | _ACEOF | |
21445 | cat confdefs.h >>conftest.$ac_ext | |
21446 | cat >>conftest.$ac_ext <<_ACEOF | |
21447 | /* end confdefs.h. */ | |
503d2be0 AS |
21448 | #include <$ac_header> |
21449 | _ACEOF | |
ca81d7a0 JD |
21450 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
21451 | case "(($ac_try" in | |
21452 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21453 | *) ac_try_echo=$ac_try;; | |
21454 | esac | |
21455 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21456 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 21457 | ac_status=$? |
6bae0ccf | 21458 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
21459 | rm -f conftest.er1 |
21460 | cat conftest.err >&5 | |
c0d27fcc | 21461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
21462 | (exit $ac_status); } >/dev/null && { |
21463 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
21464 | test ! -s conftest.err | |
21465 | }; then | |
c0d27fcc | 21466 | ac_header_preproc=yes |
503d2be0 AS |
21467 | else |
21468 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
21469 | sed 's/^/| /' conftest.$ac_ext >&5 |
21470 | ||
c0d27fcc | 21471 | ac_header_preproc=no |
a21616bd | 21472 | fi |
ca81d7a0 | 21473 | |
503d2be0 | 21474 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
21475 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
21476 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
21477 | |
21478 | # So? What about this header? | |
edfaf76d LK |
21479 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21480 | yes:no: ) | |
c0d27fcc MR |
21481 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
21482 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
21483 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
21484 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
21485 | ac_header_preproc=yes | |
19650fd6 | 21486 | ;; |
edfaf76d | 21487 | no:yes:* ) |
c0d27fcc MR |
21488 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
21489 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
edfaf76d LK |
21490 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
21491 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
21492 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
21493 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
21494 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
21495 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 21496 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 21497 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
21498 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
21499 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 21500 | |
19650fd6 | 21501 | ;; |
c0d27fcc | 21502 | esac |
ca81d7a0 JD |
21503 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
21504 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
21505 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
c0d27fcc MR |
21506 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21507 | else | |
edfaf76d | 21508 | eval "$as_ac_Header=\$ac_header_preproc" |
a21616bd | 21509 | fi |
ca81d7a0 JD |
21510 | ac_res=`eval echo '${'$as_ac_Header'}'` |
21511 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
21512 | echo "${ECHO_T}$ac_res" >&6; } | |
c0d27fcc MR |
21513 | |
21514 | fi | |
503d2be0 | 21515 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 21516 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 21517 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 21518 | _ACEOF |
503d2be0 | 21519 | |
a21616bd | 21520 | else |
503d2be0 AS |
21521 | |
21522 | for ac_header in kerberosIV/des.h | |
a21616bd | 21523 | do |
503d2be0 | 21524 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
ca81d7a0 JD |
21525 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
21526 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
21527 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
21528 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 21529 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc | 21530 | fi |
ca81d7a0 JD |
21531 | ac_res=`eval echo '${'$as_ac_Header'}'` |
21532 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
21533 | echo "${ECHO_T}$ac_res" >&6; } | |
98418dba | 21534 | else |
c0d27fcc | 21535 | # Is the header compilable? |
ca81d7a0 JD |
21536 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
21537 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
c0d27fcc | 21538 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
21539 | /* confdefs.h. */ |
21540 | _ACEOF | |
21541 | cat confdefs.h >>conftest.$ac_ext | |
21542 | cat >>conftest.$ac_ext <<_ACEOF | |
21543 | /* end confdefs.h. */ | |
c0d27fcc MR |
21544 | $ac_includes_default |
21545 | #include <$ac_header> | |
21546 | _ACEOF | |
21547 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
21548 | if { (ac_try="$ac_compile" |
21549 | case "(($ac_try" in | |
21550 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21551 | *) ac_try_echo=$ac_try;; | |
21552 | esac | |
21553 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21554 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 21555 | ac_status=$? |
edfaf76d LK |
21556 | grep -v '^ *+' conftest.er1 >conftest.err |
21557 | rm -f conftest.er1 | |
21558 | cat conftest.err >&5 | |
c0d27fcc | 21559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
21560 | (exit $ac_status); } && { |
21561 | test -z "$ac_c_werror_flag" || | |
21562 | test ! -s conftest.err | |
21563 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
21564 | ac_header_compiler=yes |
21565 | else | |
21566 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
21567 | sed 's/^/| /' conftest.$ac_ext >&5 |
21568 | ||
ca81d7a0 | 21569 | ac_header_compiler=no |
c0d27fcc | 21570 | fi |
ca81d7a0 JD |
21571 | |
21572 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
21573 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
21574 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
21575 | |
21576 | # Is the header present? | |
ca81d7a0 JD |
21577 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
21578 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
c0d27fcc | 21579 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
21580 | /* confdefs.h. */ |
21581 | _ACEOF | |
21582 | cat confdefs.h >>conftest.$ac_ext | |
21583 | cat >>conftest.$ac_ext <<_ACEOF | |
21584 | /* end confdefs.h. */ | |
503d2be0 AS |
21585 | #include <$ac_header> |
21586 | _ACEOF | |
ca81d7a0 JD |
21587 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
21588 | case "(($ac_try" in | |
21589 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21590 | *) ac_try_echo=$ac_try;; | |
21591 | esac | |
21592 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21593 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 21594 | ac_status=$? |
6bae0ccf | 21595 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
21596 | rm -f conftest.er1 |
21597 | cat conftest.err >&5 | |
c0d27fcc | 21598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
21599 | (exit $ac_status); } >/dev/null && { |
21600 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
21601 | test ! -s conftest.err | |
21602 | }; then | |
c0d27fcc | 21603 | ac_header_preproc=yes |
503d2be0 AS |
21604 | else |
21605 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
21606 | sed 's/^/| /' conftest.$ac_ext >&5 |
21607 | ||
c0d27fcc | 21608 | ac_header_preproc=no |
a21616bd | 21609 | fi |
ca81d7a0 | 21610 | |
503d2be0 | 21611 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
21612 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
21613 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
21614 | |
21615 | # So? What about this header? | |
edfaf76d LK |
21616 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21617 | yes:no: ) | |
c0d27fcc MR |
21618 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
21619 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
21620 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
21621 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
21622 | ac_header_preproc=yes | |
19650fd6 | 21623 | ;; |
edfaf76d | 21624 | no:yes:* ) |
c0d27fcc MR |
21625 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
21626 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
edfaf76d LK |
21627 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
21628 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
21629 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
21630 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
21631 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
21632 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 21633 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 21634 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
21635 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
21636 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 21637 | |
19650fd6 | 21638 | ;; |
c0d27fcc | 21639 | esac |
ca81d7a0 JD |
21640 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
21641 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
21642 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
c0d27fcc MR |
21643 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21644 | else | |
edfaf76d | 21645 | eval "$as_ac_Header=\$ac_header_preproc" |
a21616bd | 21646 | fi |
ca81d7a0 JD |
21647 | ac_res=`eval echo '${'$as_ac_Header'}'` |
21648 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
21649 | echo "${ECHO_T}$ac_res" >&6; } | |
c0d27fcc MR |
21650 | |
21651 | fi | |
503d2be0 | 21652 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 21653 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 21654 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 21655 | _ACEOF |
503d2be0 | 21656 | |
a21616bd | 21657 | else |
503d2be0 AS |
21658 | |
21659 | for ac_header in kerberos/des.h | |
a21616bd | 21660 | do |
503d2be0 | 21661 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
ca81d7a0 JD |
21662 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
21663 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
21664 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
21665 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 21666 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc | 21667 | fi |
ca81d7a0 JD |
21668 | ac_res=`eval echo '${'$as_ac_Header'}'` |
21669 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
21670 | echo "${ECHO_T}$ac_res" >&6; } | |
98418dba | 21671 | else |
c0d27fcc | 21672 | # Is the header compilable? |
ca81d7a0 JD |
21673 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
21674 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
c0d27fcc | 21675 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
21676 | /* confdefs.h. */ |
21677 | _ACEOF | |
21678 | cat confdefs.h >>conftest.$ac_ext | |
21679 | cat >>conftest.$ac_ext <<_ACEOF | |
21680 | /* end confdefs.h. */ | |
c0d27fcc MR |
21681 | $ac_includes_default |
21682 | #include <$ac_header> | |
21683 | _ACEOF | |
21684 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
21685 | if { (ac_try="$ac_compile" |
21686 | case "(($ac_try" in | |
21687 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21688 | *) ac_try_echo=$ac_try;; | |
21689 | esac | |
21690 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21691 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 21692 | ac_status=$? |
edfaf76d LK |
21693 | grep -v '^ *+' conftest.er1 >conftest.err |
21694 | rm -f conftest.er1 | |
21695 | cat conftest.err >&5 | |
c0d27fcc | 21696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
21697 | (exit $ac_status); } && { |
21698 | test -z "$ac_c_werror_flag" || | |
21699 | test ! -s conftest.err | |
21700 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
21701 | ac_header_compiler=yes |
21702 | else | |
21703 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
21704 | sed 's/^/| /' conftest.$ac_ext >&5 |
21705 | ||
ca81d7a0 | 21706 | ac_header_compiler=no |
c0d27fcc | 21707 | fi |
ca81d7a0 JD |
21708 | |
21709 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
21710 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
21711 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
21712 | |
21713 | # Is the header present? | |
ca81d7a0 JD |
21714 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
21715 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
c0d27fcc | 21716 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
21717 | /* confdefs.h. */ |
21718 | _ACEOF | |
21719 | cat confdefs.h >>conftest.$ac_ext | |
21720 | cat >>conftest.$ac_ext <<_ACEOF | |
21721 | /* end confdefs.h. */ | |
503d2be0 AS |
21722 | #include <$ac_header> |
21723 | _ACEOF | |
ca81d7a0 JD |
21724 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
21725 | case "(($ac_try" in | |
21726 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21727 | *) ac_try_echo=$ac_try;; | |
21728 | esac | |
21729 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21730 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 21731 | ac_status=$? |
6bae0ccf | 21732 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
21733 | rm -f conftest.er1 |
21734 | cat conftest.err >&5 | |
c0d27fcc | 21735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
21736 | (exit $ac_status); } >/dev/null && { |
21737 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
21738 | test ! -s conftest.err | |
21739 | }; then | |
c0d27fcc | 21740 | ac_header_preproc=yes |
503d2be0 AS |
21741 | else |
21742 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
21743 | sed 's/^/| /' conftest.$ac_ext >&5 |
21744 | ||
c0d27fcc | 21745 | ac_header_preproc=no |
a21616bd | 21746 | fi |
ca81d7a0 | 21747 | |
503d2be0 | 21748 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
21749 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
21750 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
21751 | |
21752 | # So? What about this header? | |
edfaf76d LK |
21753 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21754 | yes:no: ) | |
c0d27fcc MR |
21755 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
21756 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
21757 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
21758 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
21759 | ac_header_preproc=yes | |
19650fd6 | 21760 | ;; |
edfaf76d | 21761 | no:yes:* ) |
c0d27fcc MR |
21762 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
21763 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
edfaf76d LK |
21764 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
21765 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
21766 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
21767 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
21768 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
21769 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 21770 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 21771 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
21772 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
21773 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 21774 | |
19650fd6 | 21775 | ;; |
c0d27fcc | 21776 | esac |
ca81d7a0 JD |
21777 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
21778 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
21779 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
c0d27fcc MR |
21780 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21781 | else | |
edfaf76d | 21782 | eval "$as_ac_Header=\$ac_header_preproc" |
a21616bd | 21783 | fi |
ca81d7a0 JD |
21784 | ac_res=`eval echo '${'$as_ac_Header'}'` |
21785 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
21786 | echo "${ECHO_T}$ac_res" >&6; } | |
c0d27fcc MR |
21787 | |
21788 | fi | |
503d2be0 | 21789 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 21790 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 21791 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 21792 | _ACEOF |
a21616bd KR |
21793 | |
21794 | fi | |
c0d27fcc | 21795 | |
a21616bd KR |
21796 | done |
21797 | ||
98418dba | 21798 | fi |
c0d27fcc | 21799 | |
925c2f3f EZ |
21800 | done |
21801 | ||
98418dba | 21802 | fi |
c0d27fcc | 21803 | |
925c2f3f | 21804 | done |
98418dba | 21805 | |
c0d27fcc | 21806 | |
925c2f3f EZ |
21807 | for ac_header in krb.h |
21808 | do | |
21809 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
ca81d7a0 JD |
21810 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
21811 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
21812 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
21813 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
925c2f3f | 21814 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc | 21815 | fi |
ca81d7a0 JD |
21816 | ac_res=`eval echo '${'$as_ac_Header'}'` |
21817 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
21818 | echo "${ECHO_T}$ac_res" >&6; } | |
c0d27fcc MR |
21819 | else |
21820 | # Is the header compilable? | |
ca81d7a0 JD |
21821 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
21822 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
c0d27fcc | 21823 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
21824 | /* confdefs.h. */ |
21825 | _ACEOF | |
21826 | cat confdefs.h >>conftest.$ac_ext | |
21827 | cat >>conftest.$ac_ext <<_ACEOF | |
21828 | /* end confdefs.h. */ | |
c0d27fcc MR |
21829 | $ac_includes_default |
21830 | #include <$ac_header> | |
21831 | _ACEOF | |
21832 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
21833 | if { (ac_try="$ac_compile" |
21834 | case "(($ac_try" in | |
21835 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21836 | *) ac_try_echo=$ac_try;; | |
21837 | esac | |
21838 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21839 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 21840 | ac_status=$? |
edfaf76d LK |
21841 | grep -v '^ *+' conftest.er1 >conftest.err |
21842 | rm -f conftest.er1 | |
21843 | cat conftest.err >&5 | |
c0d27fcc | 21844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
21845 | (exit $ac_status); } && { |
21846 | test -z "$ac_c_werror_flag" || | |
21847 | test ! -s conftest.err | |
21848 | } && test -s conftest.$ac_objext; then | |
c0d27fcc | 21849 | ac_header_compiler=yes |
925c2f3f | 21850 | else |
c0d27fcc | 21851 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
21852 | sed 's/^/| /' conftest.$ac_ext >&5 |
21853 | ||
ca81d7a0 | 21854 | ac_header_compiler=no |
c0d27fcc | 21855 | fi |
ca81d7a0 JD |
21856 | |
21857 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
21858 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
21859 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
21860 | |
21861 | # Is the header present? | |
ca81d7a0 JD |
21862 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
21863 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
c0d27fcc | 21864 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
21865 | /* confdefs.h. */ |
21866 | _ACEOF | |
21867 | cat confdefs.h >>conftest.$ac_ext | |
21868 | cat >>conftest.$ac_ext <<_ACEOF | |
21869 | /* end confdefs.h. */ | |
503d2be0 AS |
21870 | #include <$ac_header> |
21871 | _ACEOF | |
ca81d7a0 JD |
21872 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
21873 | case "(($ac_try" in | |
21874 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21875 | *) ac_try_echo=$ac_try;; | |
21876 | esac | |
21877 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21878 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 21879 | ac_status=$? |
6bae0ccf | 21880 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
21881 | rm -f conftest.er1 |
21882 | cat conftest.err >&5 | |
c0d27fcc | 21883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
21884 | (exit $ac_status); } >/dev/null && { |
21885 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
21886 | test ! -s conftest.err | |
21887 | }; then | |
c0d27fcc | 21888 | ac_header_preproc=yes |
503d2be0 AS |
21889 | else |
21890 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
21891 | sed 's/^/| /' conftest.$ac_ext >&5 |
21892 | ||
c0d27fcc | 21893 | ac_header_preproc=no |
a21616bd | 21894 | fi |
ca81d7a0 | 21895 | |
503d2be0 | 21896 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
21897 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
21898 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
21899 | |
21900 | # So? What about this header? | |
edfaf76d LK |
21901 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21902 | yes:no: ) | |
c0d27fcc MR |
21903 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
21904 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
21905 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
21906 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
21907 | ac_header_preproc=yes | |
19650fd6 | 21908 | ;; |
edfaf76d | 21909 | no:yes:* ) |
c0d27fcc MR |
21910 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
21911 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
edfaf76d LK |
21912 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
21913 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
21914 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
21915 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
21916 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
21917 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 21918 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 21919 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
21920 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
21921 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 21922 | |
19650fd6 | 21923 | ;; |
c0d27fcc | 21924 | esac |
ca81d7a0 JD |
21925 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
21926 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
21927 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
c0d27fcc MR |
21928 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21929 | else | |
edfaf76d | 21930 | eval "$as_ac_Header=\$ac_header_preproc" |
a21616bd | 21931 | fi |
ca81d7a0 JD |
21932 | ac_res=`eval echo '${'$as_ac_Header'}'` |
21933 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
21934 | echo "${ECHO_T}$ac_res" >&6; } | |
c0d27fcc MR |
21935 | |
21936 | fi | |
503d2be0 | 21937 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 21938 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 21939 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 21940 | _ACEOF |
503d2be0 | 21941 | |
a21616bd | 21942 | else |
503d2be0 AS |
21943 | |
21944 | for ac_header in kerberosIV/krb.h | |
a21616bd | 21945 | do |
503d2be0 | 21946 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
ca81d7a0 JD |
21947 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
21948 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
21949 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
21950 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 21951 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc | 21952 | fi |
ca81d7a0 JD |
21953 | ac_res=`eval echo '${'$as_ac_Header'}'` |
21954 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
21955 | echo "${ECHO_T}$ac_res" >&6; } | |
98418dba | 21956 | else |
c0d27fcc | 21957 | # Is the header compilable? |
ca81d7a0 JD |
21958 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
21959 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
c0d27fcc | 21960 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
21961 | /* confdefs.h. */ |
21962 | _ACEOF | |
21963 | cat confdefs.h >>conftest.$ac_ext | |
21964 | cat >>conftest.$ac_ext <<_ACEOF | |
21965 | /* end confdefs.h. */ | |
c0d27fcc MR |
21966 | $ac_includes_default |
21967 | #include <$ac_header> | |
21968 | _ACEOF | |
21969 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
21970 | if { (ac_try="$ac_compile" |
21971 | case "(($ac_try" in | |
21972 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21973 | *) ac_try_echo=$ac_try;; | |
21974 | esac | |
21975 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21976 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 21977 | ac_status=$? |
edfaf76d LK |
21978 | grep -v '^ *+' conftest.er1 >conftest.err |
21979 | rm -f conftest.er1 | |
21980 | cat conftest.err >&5 | |
c0d27fcc | 21981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
21982 | (exit $ac_status); } && { |
21983 | test -z "$ac_c_werror_flag" || | |
21984 | test ! -s conftest.err | |
21985 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
21986 | ac_header_compiler=yes |
21987 | else | |
21988 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
21989 | sed 's/^/| /' conftest.$ac_ext >&5 |
21990 | ||
ca81d7a0 | 21991 | ac_header_compiler=no |
c0d27fcc | 21992 | fi |
ca81d7a0 JD |
21993 | |
21994 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
21995 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
21996 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
21997 | |
21998 | # Is the header present? | |
ca81d7a0 JD |
21999 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
22000 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
c0d27fcc | 22001 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
22002 | /* confdefs.h. */ |
22003 | _ACEOF | |
22004 | cat confdefs.h >>conftest.$ac_ext | |
22005 | cat >>conftest.$ac_ext <<_ACEOF | |
22006 | /* end confdefs.h. */ | |
503d2be0 AS |
22007 | #include <$ac_header> |
22008 | _ACEOF | |
ca81d7a0 JD |
22009 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
22010 | case "(($ac_try" in | |
22011 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22012 | *) ac_try_echo=$ac_try;; | |
22013 | esac | |
22014 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22015 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 22016 | ac_status=$? |
6bae0ccf | 22017 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
22018 | rm -f conftest.er1 |
22019 | cat conftest.err >&5 | |
c0d27fcc | 22020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
22021 | (exit $ac_status); } >/dev/null && { |
22022 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
22023 | test ! -s conftest.err | |
22024 | }; then | |
c0d27fcc | 22025 | ac_header_preproc=yes |
503d2be0 AS |
22026 | else |
22027 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
22028 | sed 's/^/| /' conftest.$ac_ext >&5 |
22029 | ||
c0d27fcc | 22030 | ac_header_preproc=no |
a21616bd | 22031 | fi |
ca81d7a0 | 22032 | |
503d2be0 | 22033 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
22034 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
22035 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
22036 | |
22037 | # So? What about this header? | |
edfaf76d LK |
22038 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
22039 | yes:no: ) | |
c0d27fcc MR |
22040 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
22041 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
22042 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
22043 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
22044 | ac_header_preproc=yes | |
19650fd6 | 22045 | ;; |
edfaf76d | 22046 | no:yes:* ) |
c0d27fcc MR |
22047 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
22048 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
edfaf76d LK |
22049 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
22050 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
22051 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
22052 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
22053 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
22054 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 22055 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 22056 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
22057 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
22058 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 22059 | |
19650fd6 | 22060 | ;; |
c0d27fcc | 22061 | esac |
ca81d7a0 JD |
22062 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
22063 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
22064 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
c0d27fcc MR |
22065 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22066 | else | |
edfaf76d | 22067 | eval "$as_ac_Header=\$ac_header_preproc" |
a21616bd | 22068 | fi |
ca81d7a0 JD |
22069 | ac_res=`eval echo '${'$as_ac_Header'}'` |
22070 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
22071 | echo "${ECHO_T}$ac_res" >&6; } | |
c0d27fcc MR |
22072 | |
22073 | fi | |
503d2be0 | 22074 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 22075 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 22076 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 22077 | _ACEOF |
503d2be0 | 22078 | |
a21616bd | 22079 | else |
503d2be0 AS |
22080 | |
22081 | for ac_header in kerberos/krb.h | |
a21616bd | 22082 | do |
503d2be0 | 22083 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
ca81d7a0 JD |
22084 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
22085 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
22086 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
22087 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 22088 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc | 22089 | fi |
ca81d7a0 JD |
22090 | ac_res=`eval echo '${'$as_ac_Header'}'` |
22091 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
22092 | echo "${ECHO_T}$ac_res" >&6; } | |
98418dba | 22093 | else |
c0d27fcc | 22094 | # Is the header compilable? |
ca81d7a0 JD |
22095 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
22096 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
c0d27fcc | 22097 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
22098 | /* confdefs.h. */ |
22099 | _ACEOF | |
22100 | cat confdefs.h >>conftest.$ac_ext | |
22101 | cat >>conftest.$ac_ext <<_ACEOF | |
22102 | /* end confdefs.h. */ | |
c0d27fcc MR |
22103 | $ac_includes_default |
22104 | #include <$ac_header> | |
22105 | _ACEOF | |
22106 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
22107 | if { (ac_try="$ac_compile" |
22108 | case "(($ac_try" in | |
22109 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22110 | *) ac_try_echo=$ac_try;; | |
22111 | esac | |
22112 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22113 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 22114 | ac_status=$? |
edfaf76d LK |
22115 | grep -v '^ *+' conftest.er1 >conftest.err |
22116 | rm -f conftest.er1 | |
22117 | cat conftest.err >&5 | |
c0d27fcc | 22118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
22119 | (exit $ac_status); } && { |
22120 | test -z "$ac_c_werror_flag" || | |
22121 | test ! -s conftest.err | |
22122 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
22123 | ac_header_compiler=yes |
22124 | else | |
22125 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
22126 | sed 's/^/| /' conftest.$ac_ext >&5 |
22127 | ||
ca81d7a0 | 22128 | ac_header_compiler=no |
c0d27fcc | 22129 | fi |
ca81d7a0 JD |
22130 | |
22131 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
22132 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
22133 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
22134 | |
22135 | # Is the header present? | |
ca81d7a0 JD |
22136 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
22137 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
c0d27fcc | 22138 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
22139 | /* confdefs.h. */ |
22140 | _ACEOF | |
22141 | cat confdefs.h >>conftest.$ac_ext | |
22142 | cat >>conftest.$ac_ext <<_ACEOF | |
22143 | /* end confdefs.h. */ | |
503d2be0 AS |
22144 | #include <$ac_header> |
22145 | _ACEOF | |
ca81d7a0 JD |
22146 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
22147 | case "(($ac_try" in | |
22148 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22149 | *) ac_try_echo=$ac_try;; | |
22150 | esac | |
22151 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22152 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 22153 | ac_status=$? |
6bae0ccf | 22154 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
22155 | rm -f conftest.er1 |
22156 | cat conftest.err >&5 | |
c0d27fcc | 22157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
22158 | (exit $ac_status); } >/dev/null && { |
22159 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
22160 | test ! -s conftest.err | |
22161 | }; then | |
c0d27fcc | 22162 | ac_header_preproc=yes |
503d2be0 AS |
22163 | else |
22164 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
22165 | sed 's/^/| /' conftest.$ac_ext >&5 |
22166 | ||
c0d27fcc | 22167 | ac_header_preproc=no |
a21616bd | 22168 | fi |
ca81d7a0 | 22169 | |
503d2be0 | 22170 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
22171 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
22172 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
35996d22 AS |
22173 | |
22174 | # So? What about this header? | |
edfaf76d LK |
22175 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
22176 | yes:no: ) | |
35996d22 AS |
22177 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
22178 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
22179 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
22180 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
22181 | ac_header_preproc=yes | |
19650fd6 | 22182 | ;; |
edfaf76d | 22183 | no:yes:* ) |
c0d27fcc MR |
22184 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
22185 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
edfaf76d LK |
22186 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
22187 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
22188 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
22189 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
22190 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
22191 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 22192 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 22193 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
22194 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
22195 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 22196 | |
19650fd6 | 22197 | ;; |
c0d27fcc | 22198 | esac |
ca81d7a0 JD |
22199 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
22200 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
22201 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
c0d27fcc MR |
22202 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22203 | else | |
edfaf76d | 22204 | eval "$as_ac_Header=\$ac_header_preproc" |
a21616bd | 22205 | fi |
ca81d7a0 JD |
22206 | ac_res=`eval echo '${'$as_ac_Header'}'` |
22207 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
22208 | echo "${ECHO_T}$ac_res" >&6; } | |
c0d27fcc MR |
22209 | |
22210 | fi | |
503d2be0 | 22211 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 22212 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 22213 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 22214 | _ACEOF |
503d2be0 | 22215 | |
a21616bd | 22216 | fi |
c0d27fcc | 22217 | |
a21616bd KR |
22218 | done |
22219 | ||
22220 | fi | |
c0d27fcc | 22221 | |
a21616bd KR |
22222 | done |
22223 | ||
22224 | fi | |
c0d27fcc | 22225 | |
a21616bd KR |
22226 | done |
22227 | ||
22228 | fi | |
503d2be0 AS |
22229 | |
22230 | for ac_header in com_err.h | |
a21616bd | 22231 | do |
503d2be0 | 22232 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
ca81d7a0 JD |
22233 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
22234 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
22235 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
22236 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 22237 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc | 22238 | fi |
ca81d7a0 JD |
22239 | ac_res=`eval echo '${'$as_ac_Header'}'` |
22240 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
22241 | echo "${ECHO_T}$ac_res" >&6; } | |
98418dba | 22242 | else |
c0d27fcc | 22243 | # Is the header compilable? |
ca81d7a0 JD |
22244 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
22245 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
c0d27fcc | 22246 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
22247 | /* confdefs.h. */ |
22248 | _ACEOF | |
22249 | cat confdefs.h >>conftest.$ac_ext | |
22250 | cat >>conftest.$ac_ext <<_ACEOF | |
22251 | /* end confdefs.h. */ | |
c0d27fcc MR |
22252 | $ac_includes_default |
22253 | #include <$ac_header> | |
22254 | _ACEOF | |
22255 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
22256 | if { (ac_try="$ac_compile" |
22257 | case "(($ac_try" in | |
22258 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22259 | *) ac_try_echo=$ac_try;; | |
22260 | esac | |
22261 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22262 | (eval "$ac_compile") 2>conftest.er1 | |
edfaf76d LK |
22263 | ac_status=$? |
22264 | grep -v '^ *+' conftest.er1 >conftest.err | |
22265 | rm -f conftest.er1 | |
22266 | cat conftest.err >&5 | |
22267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f053c89f CY |
22268 | (exit $ac_status); } && { |
22269 | test -z "$ac_c_werror_flag" || | |
22270 | test ! -s conftest.err | |
22271 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
22272 | ac_header_compiler=yes |
22273 | else | |
22274 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
22275 | sed 's/^/| /' conftest.$ac_ext >&5 |
22276 | ||
ca81d7a0 | 22277 | ac_header_compiler=no |
c0d27fcc | 22278 | fi |
ca81d7a0 JD |
22279 | |
22280 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
22281 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
22282 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
22283 | |
22284 | # Is the header present? | |
ca81d7a0 JD |
22285 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
22286 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
c0d27fcc | 22287 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
22288 | /* confdefs.h. */ |
22289 | _ACEOF | |
22290 | cat confdefs.h >>conftest.$ac_ext | |
22291 | cat >>conftest.$ac_ext <<_ACEOF | |
22292 | /* end confdefs.h. */ | |
503d2be0 AS |
22293 | #include <$ac_header> |
22294 | _ACEOF | |
ca81d7a0 JD |
22295 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
22296 | case "(($ac_try" in | |
22297 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22298 | *) ac_try_echo=$ac_try;; | |
22299 | esac | |
22300 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22301 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 22302 | ac_status=$? |
6bae0ccf | 22303 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
22304 | rm -f conftest.er1 |
22305 | cat conftest.err >&5 | |
c0d27fcc | 22306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
22307 | (exit $ac_status); } >/dev/null && { |
22308 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
22309 | test ! -s conftest.err | |
22310 | }; then | |
c0d27fcc | 22311 | ac_header_preproc=yes |
503d2be0 AS |
22312 | else |
22313 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
22314 | sed 's/^/| /' conftest.$ac_ext >&5 |
22315 | ||
c0d27fcc | 22316 | ac_header_preproc=no |
a21616bd | 22317 | fi |
ca81d7a0 | 22318 | |
503d2be0 | 22319 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
22320 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
22321 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
22322 | |
22323 | # So? What about this header? | |
edfaf76d LK |
22324 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
22325 | yes:no: ) | |
c0d27fcc MR |
22326 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
22327 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
22328 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
22329 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
22330 | ac_header_preproc=yes | |
19650fd6 | 22331 | ;; |
edfaf76d | 22332 | no:yes:* ) |
c0d27fcc MR |
22333 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
22334 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
edfaf76d LK |
22335 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
22336 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
22337 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
22338 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
22339 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
22340 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 22341 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 22342 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
22343 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
22344 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 22345 | |
19650fd6 | 22346 | ;; |
c0d27fcc | 22347 | esac |
ca81d7a0 JD |
22348 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
22349 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
22350 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
c0d27fcc MR |
22351 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22352 | else | |
edfaf76d | 22353 | eval "$as_ac_Header=\$ac_header_preproc" |
a21616bd | 22354 | fi |
ca81d7a0 JD |
22355 | ac_res=`eval echo '${'$as_ac_Header'}'` |
22356 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
22357 | echo "${ECHO_T}$ac_res" >&6; } | |
c0d27fcc MR |
22358 | |
22359 | fi | |
503d2be0 | 22360 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 22361 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 22362 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 22363 | _ACEOF |
503d2be0 | 22364 | |
a21616bd | 22365 | fi |
c0d27fcc | 22366 | |
a21616bd KR |
22367 | done |
22368 | ||
22369 | fi | |
22370 | ||
ba4481b5 DL |
22371 | # Solaris requires -lintl if you want strerror (which calls dgettext) |
22372 | # to return localized messages. | |
503d2be0 | 22373 | |
ca81d7a0 JD |
22374 | { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5 |
22375 | echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; } | |
503d2be0 AS |
22376 | if test "${ac_cv_lib_intl_dgettext+set}" = set; then |
22377 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 22378 | else |
503d2be0 | 22379 | ac_check_lib_save_LIBS=$LIBS |
ba4481b5 | 22380 | LIBS="-lintl $LIBS" |
503d2be0 | 22381 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
22382 | /* confdefs.h. */ |
22383 | _ACEOF | |
22384 | cat confdefs.h >>conftest.$ac_ext | |
22385 | cat >>conftest.$ac_ext <<_ACEOF | |
22386 | /* end confdefs.h. */ | |
503d2be0 | 22387 | |
ca81d7a0 JD |
22388 | /* Override any GCC internal prototype to avoid an error. |
22389 | Use char because int might match the return type of a GCC | |
22390 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
22391 | #ifdef __cplusplus |
22392 | extern "C" | |
22393 | #endif | |
503d2be0 AS |
22394 | char dgettext (); |
22395 | int | |
22396 | main () | |
22397 | { | |
ca81d7a0 | 22398 | return dgettext (); |
503d2be0 AS |
22399 | ; |
22400 | return 0; | |
22401 | } | |
22402 | _ACEOF | |
22403 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
22404 | if { (ac_try="$ac_link" |
22405 | case "(($ac_try" in | |
22406 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22407 | *) ac_try_echo=$ac_try;; | |
22408 | esac | |
22409 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22410 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 22411 | ac_status=$? |
edfaf76d LK |
22412 | grep -v '^ *+' conftest.er1 >conftest.err |
22413 | rm -f conftest.er1 | |
22414 | cat conftest.err >&5 | |
c0d27fcc | 22415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
22416 | (exit $ac_status); } && { |
22417 | test -z "$ac_c_werror_flag" || | |
22418 | test ! -s conftest.err | |
22419 | } && test -s conftest$ac_exeext && | |
22420 | $as_test_x conftest$ac_exeext; then | |
503d2be0 AS |
22421 | ac_cv_lib_intl_dgettext=yes |
22422 | else | |
22423 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
22424 | sed 's/^/| /' conftest.$ac_ext >&5 |
22425 | ||
ca81d7a0 | 22426 | ac_cv_lib_intl_dgettext=no |
503d2be0 | 22427 | fi |
ca81d7a0 | 22428 | |
f053c89f | 22429 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 22430 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 AS |
22431 | LIBS=$ac_check_lib_save_LIBS |
22432 | fi | |
ca81d7a0 JD |
22433 | { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5 |
22434 | echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; } | |
503d2be0 | 22435 | if test $ac_cv_lib_intl_dgettext = yes; then |
c0d27fcc | 22436 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 22437 | #define HAVE_LIBINTL 1 |
c0d27fcc | 22438 | _ACEOF |
ba4481b5 DL |
22439 | |
22440 | LIBS="-lintl $LIBS" | |
22441 | ||
ba4481b5 DL |
22442 | fi |
22443 | ||
c0d27fcc | 22444 | |
ca81d7a0 JD |
22445 | { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5 |
22446 | echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; } | |
503d2be0 AS |
22447 | if test "${emacs_cv_localtime_cache+set}" = set; then |
22448 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 DL |
22449 | else |
22450 | if test x$ac_cv_func_tzset = xyes; then | |
22451 | if test "$cross_compiling" = yes; then | |
22452 | # If we have tzset, assume the worst when cross-compiling. | |
22453 | emacs_cv_localtime_cache=yes | |
22454 | else | |
503d2be0 | 22455 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
22456 | /* confdefs.h. */ |
22457 | _ACEOF | |
22458 | cat confdefs.h >>conftest.$ac_ext | |
22459 | cat >>conftest.$ac_ext <<_ACEOF | |
22460 | /* end confdefs.h. */ | |
ba4481b5 | 22461 | #include <time.h> |
ba4481b5 DL |
22462 | extern char **environ; |
22463 | unset_TZ () | |
22464 | { | |
22465 | char **from, **to; | |
22466 | for (to = from = environ; (*to = *from); from++) | |
22467 | if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '=')) | |
22468 | to++; | |
22469 | } | |
22470 | char TZ_GMT0[] = "TZ=GMT0"; | |
22471 | char TZ_PST8[] = "TZ=PST8"; | |
22472 | main() | |
22473 | { | |
22474 | time_t now = time ((time_t *) 0); | |
22475 | int hour_GMT0, hour_unset; | |
22476 | if (putenv (TZ_GMT0) != 0) | |
22477 | exit (1); | |
22478 | hour_GMT0 = localtime (&now)->tm_hour; | |
22479 | unset_TZ (); | |
22480 | hour_unset = localtime (&now)->tm_hour; | |
22481 | if (putenv (TZ_PST8) != 0) | |
22482 | exit (1); | |
22483 | if (localtime (&now)->tm_hour == hour_GMT0) | |
22484 | exit (1); | |
22485 | unset_TZ (); | |
22486 | if (localtime (&now)->tm_hour != hour_unset) | |
22487 | exit (1); | |
22488 | exit (0); | |
22489 | } | |
503d2be0 AS |
22490 | _ACEOF |
22491 | rm -f conftest$ac_exeext | |
ca81d7a0 JD |
22492 | if { (ac_try="$ac_link" |
22493 | case "(($ac_try" in | |
22494 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22495 | *) ac_try_echo=$ac_try;; | |
22496 | esac | |
22497 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22498 | (eval "$ac_link") 2>&5 | |
503d2be0 | 22499 | ac_status=$? |
c0d27fcc | 22500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 22501 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
ca81d7a0 JD |
22502 | { (case "(($ac_try" in |
22503 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22504 | *) ac_try_echo=$ac_try;; | |
22505 | esac | |
22506 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22507 | (eval "$ac_try") 2>&5 | |
503d2be0 | 22508 | ac_status=$? |
c0d27fcc | 22509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 22510 | (exit $ac_status); }; }; then |
ba4481b5 DL |
22511 | emacs_cv_localtime_cache=no |
22512 | else | |
503d2be0 AS |
22513 | echo "$as_me: program exited with status $ac_status" >&5 |
22514 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
22515 | sed 's/^/| /' conftest.$ac_ext >&5 |
22516 | ||
c0d27fcc | 22517 | ( exit $ac_status ) |
503d2be0 | 22518 | emacs_cv_localtime_cache=yes |
ba4481b5 | 22519 | fi |
ca81d7a0 | 22520 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ba4481b5 | 22521 | fi |
ca81d7a0 JD |
22522 | |
22523 | ||
ba4481b5 DL |
22524 | else |
22525 | # If we lack tzset, report that localtime does not cache TZ, | |
22526 | # since we can't invalidate the cache if we don't have tzset. | |
22527 | emacs_cv_localtime_cache=no | |
22528 | fi | |
22529 | fi | |
ca81d7a0 JD |
22530 | { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5 |
22531 | echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; } | |
ba4481b5 | 22532 | if test $emacs_cv_localtime_cache = yes; then |
b936fae4 | 22533 | |
c0d27fcc | 22534 | cat >>confdefs.h <<\_ACEOF |
ba4481b5 | 22535 | #define LOCALTIME_CACHE 1 |
c0d27fcc | 22536 | _ACEOF |
ba4481b5 DL |
22537 | |
22538 | fi | |
22539 | ||
22540 | if test "x$HAVE_TIMEVAL" = xyes; then | |
503d2be0 AS |
22541 | |
22542 | for ac_func in gettimeofday | |
48d4b120 | 22543 | do |
503d2be0 | 22544 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
ca81d7a0 JD |
22545 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
22546 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
22547 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 22548 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
48d4b120 | 22549 | else |
503d2be0 | 22550 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
22551 | /* confdefs.h. */ |
22552 | _ACEOF | |
22553 | cat confdefs.h >>conftest.$ac_ext | |
22554 | cat >>conftest.$ac_ext <<_ACEOF | |
22555 | /* end confdefs.h. */ | |
edfaf76d LK |
22556 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
22557 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
22558 | #define $ac_func innocuous_$ac_func | |
22559 | ||
48d4b120 | 22560 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
22561 | which can conflict with char $ac_func (); below. |
22562 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
22563 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 22564 | |
19650fd6 AS |
22565 | #ifdef __STDC__ |
22566 | # include <limits.h> | |
22567 | #else | |
22568 | # include <assert.h> | |
22569 | #endif | |
edfaf76d LK |
22570 | |
22571 | #undef $ac_func | |
22572 | ||
ca81d7a0 JD |
22573 | /* Override any GCC internal prototype to avoid an error. |
22574 | Use char because int might match the return type of a GCC | |
22575 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
22576 | #ifdef __cplusplus |
22577 | extern "C" | |
22578 | #endif | |
503d2be0 | 22579 | char $ac_func (); |
48d4b120 DL |
22580 | /* The GNU C library defines this for functions which it implements |
22581 | to always fail with ENOSYS. Some functions are actually named | |
22582 | something starting with __ and the normal name is an alias. */ | |
ca81d7a0 | 22583 | #if defined __stub_$ac_func || defined __stub___$ac_func |
48d4b120 | 22584 | choke me |
cd958eb3 MB |
22585 | #endif |
22586 | ||
19650fd6 AS |
22587 | int |
22588 | main () | |
22589 | { | |
ca81d7a0 | 22590 | return $ac_func (); |
503d2be0 AS |
22591 | ; |
22592 | return 0; | |
22593 | } | |
22594 | _ACEOF | |
22595 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
22596 | if { (ac_try="$ac_link" |
22597 | case "(($ac_try" in | |
22598 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22599 | *) ac_try_echo=$ac_try;; | |
22600 | esac | |
22601 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22602 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 22603 | ac_status=$? |
edfaf76d LK |
22604 | grep -v '^ *+' conftest.er1 >conftest.err |
22605 | rm -f conftest.er1 | |
22606 | cat conftest.err >&5 | |
c0d27fcc | 22607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
22608 | (exit $ac_status); } && { |
22609 | test -z "$ac_c_werror_flag" || | |
22610 | test ! -s conftest.err | |
22611 | } && test -s conftest$ac_exeext && | |
22612 | $as_test_x conftest$ac_exeext; then | |
503d2be0 AS |
22613 | eval "$as_ac_var=yes" |
22614 | else | |
22615 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
22616 | sed 's/^/| /' conftest.$ac_ext >&5 |
22617 | ||
ca81d7a0 | 22618 | eval "$as_ac_var=no" |
503d2be0 | 22619 | fi |
ca81d7a0 | 22620 | |
f053c89f | 22621 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 22622 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 | 22623 | fi |
ca81d7a0 JD |
22624 | ac_res=`eval echo '${'$as_ac_var'}'` |
22625 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
22626 | echo "${ECHO_T}$ac_res" >&6; } | |
503d2be0 | 22627 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
c0d27fcc | 22628 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 22629 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 22630 | _ACEOF |
48d4b120 | 22631 | |
48d4b120 DL |
22632 | fi |
22633 | done | |
22634 | ||
b936fae4 | 22635 | if test $ac_cv_func_gettimeofday = yes; then |
ca81d7a0 JD |
22636 | { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5 |
22637 | echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; } | |
503d2be0 AS |
22638 | if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then |
22639 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 22640 | else |
503d2be0 | 22641 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
22642 | /* confdefs.h. */ |
22643 | _ACEOF | |
22644 | cat confdefs.h >>conftest.$ac_ext | |
22645 | cat >>conftest.$ac_ext <<_ACEOF | |
22646 | /* end confdefs.h. */ | |
ba4481b5 | 22647 | |
a3f08d9e DL |
22648 | #ifdef TIME_WITH_SYS_TIME |
22649 | #include <sys/time.h> | |
22650 | #include <time.h> | |
22651 | #else | |
22652 | #ifdef HAVE_SYS_TIME_H | |
22653 | #include <sys/time.h> | |
22654 | #else | |
22655 | #include <time.h> | |
22656 | #endif | |
22657 | #endif | |
503d2be0 AS |
22658 | int |
22659 | main () | |
22660 | { | |
a3f08d9e | 22661 | struct timeval time; |
b936fae4 | 22662 | gettimeofday (&time, 0); |
503d2be0 AS |
22663 | ; |
22664 | return 0; | |
22665 | } | |
22666 | _ACEOF | |
22667 | rm -f conftest.$ac_objext | |
f053c89f CY |
22668 | if { (ac_try="$ac_compile" |
22669 | case "(($ac_try" in | |
ca81d7a0 JD |
22670 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
22671 | *) ac_try_echo=$ac_try;; | |
22672 | esac | |
22673 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
f053c89f | 22674 | (eval "$ac_compile") 2>conftest.er1 |
503d2be0 | 22675 | ac_status=$? |
edfaf76d LK |
22676 | grep -v '^ *+' conftest.er1 >conftest.err |
22677 | rm -f conftest.er1 | |
22678 | cat conftest.err >&5 | |
c0d27fcc | 22679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
22680 | (exit $ac_status); } && { |
22681 | test -z "$ac_c_werror_flag" || | |
22682 | test ! -s conftest.err | |
22683 | } && test -s conftest.$ac_objext; then | |
ba4481b5 DL |
22684 | emacs_cv_gettimeofday_two_arguments=yes |
22685 | else | |
503d2be0 | 22686 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
22687 | sed 's/^/| /' conftest.$ac_ext >&5 |
22688 | ||
ca81d7a0 | 22689 | emacs_cv_gettimeofday_two_arguments=no |
ba4481b5 | 22690 | fi |
ca81d7a0 JD |
22691 | |
22692 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ba4481b5 | 22693 | fi |
ca81d7a0 JD |
22694 | { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5 |
22695 | echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; } | |
b936fae4 AS |
22696 | if test $emacs_cv_gettimeofday_two_arguments = no; then |
22697 | ||
c0d27fcc | 22698 | cat >>confdefs.h <<\_ACEOF |
ba4481b5 | 22699 | #define GETTIMEOFDAY_ONE_ARGUMENT 1 |
c0d27fcc | 22700 | _ACEOF |
ba4481b5 | 22701 | |
b936fae4 | 22702 | fi |
ba4481b5 DL |
22703 | fi |
22704 | fi | |
22705 | ||
22706 | ok_so_far=yes | |
ca81d7a0 JD |
22707 | { echo "$as_me:$LINENO: checking for socket" >&5 |
22708 | echo $ECHO_N "checking for socket... $ECHO_C" >&6; } | |
503d2be0 AS |
22709 | if test "${ac_cv_func_socket+set}" = set; then |
22710 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ba4481b5 | 22711 | else |
503d2be0 | 22712 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
22713 | /* confdefs.h. */ |
22714 | _ACEOF | |
22715 | cat confdefs.h >>conftest.$ac_ext | |
22716 | cat >>conftest.$ac_ext <<_ACEOF | |
22717 | /* end confdefs.h. */ | |
edfaf76d LK |
22718 | /* Define socket to an innocuous variant, in case <limits.h> declares socket. |
22719 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
22720 | #define socket innocuous_socket | |
22721 | ||
ba4481b5 | 22722 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
22723 | which can conflict with char socket (); below. |
22724 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
22725 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 22726 | |
19650fd6 AS |
22727 | #ifdef __STDC__ |
22728 | # include <limits.h> | |
22729 | #else | |
22730 | # include <assert.h> | |
22731 | #endif | |
edfaf76d LK |
22732 | |
22733 | #undef socket | |
22734 | ||
ca81d7a0 JD |
22735 | /* Override any GCC internal prototype to avoid an error. |
22736 | Use char because int might match the return type of a GCC | |
22737 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
22738 | #ifdef __cplusplus |
22739 | extern "C" | |
22740 | #endif | |
503d2be0 | 22741 | char socket (); |
ba4481b5 DL |
22742 | /* The GNU C library defines this for functions which it implements |
22743 | to always fail with ENOSYS. Some functions are actually named | |
22744 | something starting with __ and the normal name is an alias. */ | |
ca81d7a0 | 22745 | #if defined __stub_socket || defined __stub___socket |
ba4481b5 | 22746 | choke me |
cd958eb3 MB |
22747 | #endif |
22748 | ||
19650fd6 AS |
22749 | int |
22750 | main () | |
22751 | { | |
ca81d7a0 | 22752 | return socket (); |
503d2be0 AS |
22753 | ; |
22754 | return 0; | |
22755 | } | |
22756 | _ACEOF | |
22757 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
22758 | if { (ac_try="$ac_link" |
22759 | case "(($ac_try" in | |
22760 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22761 | *) ac_try_echo=$ac_try;; | |
22762 | esac | |
22763 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22764 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 22765 | ac_status=$? |
edfaf76d LK |
22766 | grep -v '^ *+' conftest.er1 >conftest.err |
22767 | rm -f conftest.er1 | |
22768 | cat conftest.err >&5 | |
c0d27fcc | 22769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
22770 | (exit $ac_status); } && { |
22771 | test -z "$ac_c_werror_flag" || | |
22772 | test ! -s conftest.err | |
22773 | } && test -s conftest$ac_exeext && | |
22774 | $as_test_x conftest$ac_exeext; then | |
503d2be0 AS |
22775 | ac_cv_func_socket=yes |
22776 | else | |
22777 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
22778 | sed 's/^/| /' conftest.$ac_ext >&5 |
22779 | ||
ca81d7a0 | 22780 | ac_cv_func_socket=no |
503d2be0 | 22781 | fi |
ca81d7a0 | 22782 | |
f053c89f | 22783 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 22784 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 | 22785 | fi |
ca81d7a0 JD |
22786 | { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 |
22787 | echo "${ECHO_T}$ac_cv_func_socket" >&6; } | |
503d2be0 | 22788 | if test $ac_cv_func_socket = yes; then |
ba4481b5 DL |
22789 | : |
22790 | else | |
503d2be0 | 22791 | ok_so_far=no |
ba4481b5 DL |
22792 | fi |
22793 | ||
22794 | if test $ok_so_far = yes; then | |
c0d27fcc | 22795 | if test "${ac_cv_header_netinet_in_h+set}" = set; then |
ca81d7a0 JD |
22796 | { echo "$as_me:$LINENO: checking for netinet/in.h" >&5 |
22797 | echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; } | |
503d2be0 AS |
22798 | if test "${ac_cv_header_netinet_in_h+set}" = set; then |
22799 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc | 22800 | fi |
ca81d7a0 JD |
22801 | { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5 |
22802 | echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; } | |
98418dba | 22803 | else |
c0d27fcc | 22804 | # Is the header compilable? |
ca81d7a0 JD |
22805 | { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5 |
22806 | echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; } | |
c0d27fcc | 22807 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
22808 | /* confdefs.h. */ |
22809 | _ACEOF | |
22810 | cat confdefs.h >>conftest.$ac_ext | |
22811 | cat >>conftest.$ac_ext <<_ACEOF | |
22812 | /* end confdefs.h. */ | |
c0d27fcc MR |
22813 | $ac_includes_default |
22814 | #include <netinet/in.h> | |
22815 | _ACEOF | |
22816 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
22817 | if { (ac_try="$ac_compile" |
22818 | case "(($ac_try" in | |
22819 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22820 | *) ac_try_echo=$ac_try;; | |
22821 | esac | |
22822 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22823 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 22824 | ac_status=$? |
edfaf76d LK |
22825 | grep -v '^ *+' conftest.er1 >conftest.err |
22826 | rm -f conftest.er1 | |
22827 | cat conftest.err >&5 | |
c0d27fcc | 22828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
c24fa7dc MB |
22829 | (exit $ac_status); } && { |
22830 | test -z "$ac_c_werror_flag" || | |
22831 | test ! -s conftest.err | |
22832 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
22833 | ac_header_compiler=yes |
22834 | else | |
22835 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
22836 | sed 's/^/| /' conftest.$ac_ext >&5 |
22837 | ||
ca81d7a0 | 22838 | ac_header_compiler=no |
c0d27fcc | 22839 | fi |
ca81d7a0 JD |
22840 | |
22841 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
22842 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
22843 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
22844 | |
22845 | # Is the header present? | |
ca81d7a0 JD |
22846 | { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5 |
22847 | echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; } | |
c0d27fcc | 22848 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
22849 | /* confdefs.h. */ |
22850 | _ACEOF | |
22851 | cat confdefs.h >>conftest.$ac_ext | |
22852 | cat >>conftest.$ac_ext <<_ACEOF | |
22853 | /* end confdefs.h. */ | |
ba4481b5 | 22854 | #include <netinet/in.h> |
503d2be0 | 22855 | _ACEOF |
ca81d7a0 JD |
22856 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
22857 | case "(($ac_try" in | |
22858 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22859 | *) ac_try_echo=$ac_try;; | |
22860 | esac | |
22861 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22862 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 22863 | ac_status=$? |
6bae0ccf | 22864 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
22865 | rm -f conftest.er1 |
22866 | cat conftest.err >&5 | |
c0d27fcc | 22867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
22868 | (exit $ac_status); } >/dev/null && { |
22869 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
22870 | test ! -s conftest.err | |
22871 | }; then | |
c0d27fcc | 22872 | ac_header_preproc=yes |
ba4481b5 | 22873 | else |
503d2be0 | 22874 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
22875 | sed 's/^/| /' conftest.$ac_ext >&5 |
22876 | ||
c0d27fcc | 22877 | ac_header_preproc=no |
ba4481b5 | 22878 | fi |
ca81d7a0 | 22879 | |
503d2be0 | 22880 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
22881 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
22882 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
22883 | |
22884 | # So? What about this header? | |
edfaf76d LK |
22885 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
22886 | yes:no: ) | |
c0d27fcc MR |
22887 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
22888 | echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
22889 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5 |
22890 | echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;} | |
22891 | ac_header_preproc=yes | |
19650fd6 | 22892 | ;; |
edfaf76d | 22893 | no:yes:* ) |
c0d27fcc MR |
22894 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5 |
22895 | echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;} | |
edfaf76d LK |
22896 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5 |
22897 | echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;} | |
22898 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5 | |
22899 | echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;} | |
22900 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5 | |
22901 | echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 22902 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 22903 | echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
22904 | { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5 |
22905 | echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 22906 | |
19650fd6 | 22907 | ;; |
c0d27fcc | 22908 | esac |
ca81d7a0 JD |
22909 | { echo "$as_me:$LINENO: checking for netinet/in.h" >&5 |
22910 | echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; } | |
c0d27fcc MR |
22911 | if test "${ac_cv_header_netinet_in_h+set}" = set; then |
22912 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22913 | else | |
22914 | ac_cv_header_netinet_in_h=$ac_header_preproc | |
ba4481b5 | 22915 | fi |
ca81d7a0 JD |
22916 | { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5 |
22917 | echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; } | |
c0d27fcc MR |
22918 | |
22919 | fi | |
503d2be0 | 22920 | if test $ac_cv_header_netinet_in_h = yes; then |
ba4481b5 DL |
22921 | : |
22922 | else | |
503d2be0 | 22923 | ok_so_far=no |
ba4481b5 DL |
22924 | fi |
22925 | ||
c0d27fcc | 22926 | |
ba4481b5 DL |
22927 | fi |
22928 | if test $ok_so_far = yes; then | |
c0d27fcc | 22929 | if test "${ac_cv_header_arpa_inet_h+set}" = set; then |
ca81d7a0 JD |
22930 | { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5 |
22931 | echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; } | |
503d2be0 AS |
22932 | if test "${ac_cv_header_arpa_inet_h+set}" = set; then |
22933 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c0d27fcc | 22934 | fi |
ca81d7a0 JD |
22935 | { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5 |
22936 | echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; } | |
98418dba | 22937 | else |
c0d27fcc | 22938 | # Is the header compilable? |
ca81d7a0 JD |
22939 | { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5 |
22940 | echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; } | |
c0d27fcc | 22941 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
22942 | /* confdefs.h. */ |
22943 | _ACEOF | |
22944 | cat confdefs.h >>conftest.$ac_ext | |
22945 | cat >>conftest.$ac_ext <<_ACEOF | |
22946 | /* end confdefs.h. */ | |
c0d27fcc MR |
22947 | $ac_includes_default |
22948 | #include <arpa/inet.h> | |
22949 | _ACEOF | |
22950 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
22951 | if { (ac_try="$ac_compile" |
22952 | case "(($ac_try" in | |
22953 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22954 | *) ac_try_echo=$ac_try;; | |
22955 | esac | |
22956 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22957 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 22958 | ac_status=$? |
edfaf76d LK |
22959 | grep -v '^ *+' conftest.er1 >conftest.err |
22960 | rm -f conftest.er1 | |
22961 | cat conftest.err >&5 | |
c0d27fcc | 22962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
22963 | (exit $ac_status); } && { |
22964 | test -z "$ac_c_werror_flag" || | |
22965 | test ! -s conftest.err | |
22966 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
22967 | ac_header_compiler=yes |
22968 | else | |
22969 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
22970 | sed 's/^/| /' conftest.$ac_ext >&5 |
22971 | ||
ca81d7a0 | 22972 | ac_header_compiler=no |
c0d27fcc | 22973 | fi |
ca81d7a0 JD |
22974 | |
22975 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
22976 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
22977 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
22978 | |
22979 | # Is the header present? | |
ca81d7a0 JD |
22980 | { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5 |
22981 | echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; } | |
c0d27fcc | 22982 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
22983 | /* confdefs.h. */ |
22984 | _ACEOF | |
22985 | cat confdefs.h >>conftest.$ac_ext | |
22986 | cat >>conftest.$ac_ext <<_ACEOF | |
22987 | /* end confdefs.h. */ | |
ba4481b5 | 22988 | #include <arpa/inet.h> |
503d2be0 | 22989 | _ACEOF |
ca81d7a0 JD |
22990 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
22991 | case "(($ac_try" in | |
22992 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22993 | *) ac_try_echo=$ac_try;; | |
22994 | esac | |
22995 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22996 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 22997 | ac_status=$? |
6bae0ccf | 22998 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
22999 | rm -f conftest.er1 |
23000 | cat conftest.err >&5 | |
c0d27fcc | 23001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
23002 | (exit $ac_status); } >/dev/null && { |
23003 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
23004 | test ! -s conftest.err | |
23005 | }; then | |
c0d27fcc | 23006 | ac_header_preproc=yes |
ba4481b5 | 23007 | else |
503d2be0 | 23008 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
23009 | sed 's/^/| /' conftest.$ac_ext >&5 |
23010 | ||
c0d27fcc | 23011 | ac_header_preproc=no |
ba4481b5 | 23012 | fi |
ca81d7a0 | 23013 | |
503d2be0 | 23014 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
23015 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
23016 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
23017 | |
23018 | # So? What about this header? | |
edfaf76d LK |
23019 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
23020 | yes:no: ) | |
c0d27fcc MR |
23021 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
23022 | echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
23023 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5 |
23024 | echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;} | |
23025 | ac_header_preproc=yes | |
19650fd6 | 23026 | ;; |
edfaf76d | 23027 | no:yes:* ) |
c0d27fcc MR |
23028 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5 |
23029 | echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;} | |
edfaf76d LK |
23030 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5 |
23031 | echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;} | |
23032 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5 | |
23033 | echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;} | |
23034 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5 | |
23035 | echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 23036 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5 |
19650fd6 | 23037 | echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
23038 | { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5 |
23039 | echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 23040 | |
19650fd6 | 23041 | ;; |
c0d27fcc | 23042 | esac |
ca81d7a0 JD |
23043 | { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5 |
23044 | echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; } | |
c0d27fcc MR |
23045 | if test "${ac_cv_header_arpa_inet_h+set}" = set; then |
23046 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23047 | else | |
23048 | ac_cv_header_arpa_inet_h=$ac_header_preproc | |
ba4481b5 | 23049 | fi |
ca81d7a0 JD |
23050 | { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5 |
23051 | echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; } | |
c0d27fcc MR |
23052 | |
23053 | fi | |
503d2be0 | 23054 | if test $ac_cv_header_arpa_inet_h = yes; then |
ba4481b5 DL |
23055 | : |
23056 | else | |
503d2be0 | 23057 | ok_so_far=no |
ba4481b5 DL |
23058 | fi |
23059 | ||
c0d27fcc | 23060 | |
ba4481b5 DL |
23061 | fi |
23062 | if test $ok_so_far = yes; then | |
b936fae4 | 23063 | |
c0d27fcc | 23064 | cat >>confdefs.h <<\_ACEOF |
ba4481b5 | 23065 | #define HAVE_INET_SOCKETS 1 |
c0d27fcc | 23066 | _ACEOF |
ba4481b5 DL |
23067 | |
23068 | fi | |
23069 | ||
2d2b6695 | 23070 | |
7862d3a8 | 23071 | for ac_header in sys/ioctl.h |
2d2b6695 KS |
23072 | do |
23073 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
ca81d7a0 JD |
23074 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
23075 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
23076 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
23077 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
2d2b6695 KS |
23078 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
23079 | fi | |
ca81d7a0 JD |
23080 | ac_res=`eval echo '${'$as_ac_Header'}'` |
23081 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
23082 | echo "${ECHO_T}$ac_res" >&6; } | |
2d2b6695 KS |
23083 | else |
23084 | # Is the header compilable? | |
ca81d7a0 JD |
23085 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
23086 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
2d2b6695 | 23087 | cat >conftest.$ac_ext <<_ACEOF |
2d2b6695 KS |
23088 | /* confdefs.h. */ |
23089 | _ACEOF | |
23090 | cat confdefs.h >>conftest.$ac_ext | |
23091 | cat >>conftest.$ac_ext <<_ACEOF | |
23092 | /* end confdefs.h. */ | |
23093 | $ac_includes_default | |
23094 | #include <$ac_header> | |
23095 | _ACEOF | |
23096 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
23097 | if { (ac_try="$ac_compile" |
23098 | case "(($ac_try" in | |
23099 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23100 | *) ac_try_echo=$ac_try;; | |
23101 | esac | |
23102 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
23103 | (eval "$ac_compile") 2>conftest.er1 | |
2d2b6695 | 23104 | ac_status=$? |
edfaf76d LK |
23105 | grep -v '^ *+' conftest.er1 >conftest.err |
23106 | rm -f conftest.er1 | |
23107 | cat conftest.err >&5 | |
2d2b6695 | 23108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
23109 | (exit $ac_status); } && { |
23110 | test -z "$ac_c_werror_flag" || | |
23111 | test ! -s conftest.err | |
23112 | } && test -s conftest.$ac_objext; then | |
2d2b6695 KS |
23113 | ac_header_compiler=yes |
23114 | else | |
23115 | echo "$as_me: failed program was:" >&5 | |
23116 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23117 | ||
ca81d7a0 | 23118 | ac_header_compiler=no |
2d2b6695 | 23119 | fi |
ca81d7a0 JD |
23120 | |
23121 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
23122 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
23123 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
2d2b6695 KS |
23124 | |
23125 | # Is the header present? | |
ca81d7a0 JD |
23126 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
23127 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
2d2b6695 | 23128 | cat >conftest.$ac_ext <<_ACEOF |
2d2b6695 KS |
23129 | /* confdefs.h. */ |
23130 | _ACEOF | |
23131 | cat confdefs.h >>conftest.$ac_ext | |
23132 | cat >>conftest.$ac_ext <<_ACEOF | |
23133 | /* end confdefs.h. */ | |
23134 | #include <$ac_header> | |
23135 | _ACEOF | |
ca81d7a0 JD |
23136 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
23137 | case "(($ac_try" in | |
23138 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23139 | *) ac_try_echo=$ac_try;; | |
23140 | esac | |
23141 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
23142 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
2d2b6695 KS |
23143 | ac_status=$? |
23144 | grep -v '^ *+' conftest.er1 >conftest.err | |
23145 | rm -f conftest.er1 | |
23146 | cat conftest.err >&5 | |
23147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
f053c89f CY |
23148 | (exit $ac_status); } >/dev/null && { |
23149 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
23150 | test ! -s conftest.err | |
23151 | }; then | |
2d2b6695 KS |
23152 | ac_header_preproc=yes |
23153 | else | |
23154 | echo "$as_me: failed program was:" >&5 | |
23155 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23156 | ||
23157 | ac_header_preproc=no | |
23158 | fi | |
ca81d7a0 | 23159 | |
2d2b6695 | 23160 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
23161 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
23162 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
2d2b6695 KS |
23163 | |
23164 | # So? What about this header? | |
edfaf76d LK |
23165 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
23166 | yes:no: ) | |
2d2b6695 KS |
23167 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
23168 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
23169 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
23170 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
23171 | ac_header_preproc=yes | |
2d2b6695 | 23172 | ;; |
edfaf76d | 23173 | no:yes:* ) |
2d2b6695 KS |
23174 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
23175 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
edfaf76d LK |
23176 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
23177 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
23178 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
23179 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
23180 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
23181 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
2d2b6695 KS |
23182 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
23183 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
edfaf76d LK |
23184 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
23185 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 23186 | |
2d2b6695 KS |
23187 | ;; |
23188 | esac | |
ca81d7a0 JD |
23189 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
23190 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
23191 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
2d2b6695 KS |
23192 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
23193 | else | |
edfaf76d | 23194 | eval "$as_ac_Header=\$ac_header_preproc" |
2d2b6695 | 23195 | fi |
ca81d7a0 JD |
23196 | ac_res=`eval echo '${'$as_ac_Header'}'` |
23197 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
23198 | echo "${ECHO_T}$ac_res" >&6; } | |
2d2b6695 KS |
23199 | |
23200 | fi | |
23201 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
23202 | cat >>confdefs.h <<_ACEOF | |
23203 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
23204 | _ACEOF | |
23205 | ||
23206 | fi | |
23207 | ||
23208 | done | |
23209 | ||
23210 | ||
ba4481b5 | 23211 | if test -f /usr/lpp/X11/bin/smt.exp; then |
b936fae4 | 23212 | |
c0d27fcc | 23213 | cat >>confdefs.h <<\_ACEOF |
ba4481b5 | 23214 | #define HAVE_AIX_SMT_EXP 1 |
c0d27fcc | 23215 | _ACEOF |
ba4481b5 DL |
23216 | |
23217 | fi | |
23218 | ||
ca81d7a0 JD |
23219 | { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5 |
23220 | echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; } | |
3d9fec71 | 23221 | if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then |
ca81d7a0 JD |
23222 | { echo "$as_me:$LINENO: result: yes" >&5 |
23223 | echo "${ECHO_T}yes" >&6; } | |
b936fae4 | 23224 | |
c0d27fcc | 23225 | cat >>confdefs.h <<\_ACEOF |
3d9fec71 | 23226 | #define HAVE_DEV_PTMX 1 |
c0d27fcc | 23227 | _ACEOF |
3d9fec71 DL |
23228 | |
23229 | else | |
ca81d7a0 JD |
23230 | { echo "$as_me:$LINENO: result: no" >&5 |
23231 | echo "${ECHO_T}no" >&6; } | |
3d9fec71 DL |
23232 | fi |
23233 | ||
ca81d7a0 JD |
23234 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
23235 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } | |
503d2be0 AS |
23236 | if test "${ac_cv_type_pid_t+set}" = set; then |
23237 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
647847ea | 23238 | else |
503d2be0 | 23239 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
23240 | /* confdefs.h. */ |
23241 | _ACEOF | |
23242 | cat confdefs.h >>conftest.$ac_ext | |
23243 | cat >>conftest.$ac_ext <<_ACEOF | |
23244 | /* end confdefs.h. */ | |
503d2be0 | 23245 | $ac_includes_default |
ca81d7a0 | 23246 | typedef pid_t ac__type_new_; |
503d2be0 AS |
23247 | int |
23248 | main () | |
23249 | { | |
ca81d7a0 | 23250 | if ((ac__type_new_ *) 0) |
503d2be0 | 23251 | return 0; |
ca81d7a0 | 23252 | if (sizeof (ac__type_new_)) |
503d2be0 AS |
23253 | return 0; |
23254 | ; | |
23255 | return 0; | |
23256 | } | |
23257 | _ACEOF | |
23258 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
23259 | if { (ac_try="$ac_compile" |
23260 | case "(($ac_try" in | |
23261 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23262 | *) ac_try_echo=$ac_try;; | |
23263 | esac | |
23264 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
23265 | (eval "$ac_compile") 2>conftest.er1 | |
503d2be0 | 23266 | ac_status=$? |
edfaf76d LK |
23267 | grep -v '^ *+' conftest.er1 >conftest.err |
23268 | rm -f conftest.er1 | |
23269 | cat conftest.err >&5 | |
c0d27fcc | 23270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
23271 | (exit $ac_status); } && { |
23272 | test -z "$ac_c_werror_flag" || | |
23273 | test ! -s conftest.err | |
23274 | } && test -s conftest.$ac_objext; then | |
647847ea DL |
23275 | ac_cv_type_pid_t=yes |
23276 | else | |
503d2be0 | 23277 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
23278 | sed 's/^/| /' conftest.$ac_ext >&5 |
23279 | ||
ca81d7a0 | 23280 | ac_cv_type_pid_t=no |
647847ea | 23281 | fi |
ca81d7a0 JD |
23282 | |
23283 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
647847ea | 23284 | fi |
ca81d7a0 JD |
23285 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
23286 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } | |
503d2be0 AS |
23287 | if test $ac_cv_type_pid_t = yes; then |
23288 | : | |
23289 | else | |
23290 | ||
c0d27fcc | 23291 | cat >>confdefs.h <<_ACEOF |
647847ea | 23292 | #define pid_t int |
c0d27fcc | 23293 | _ACEOF |
647847ea DL |
23294 | |
23295 | fi | |
23296 | ||
c0d27fcc | 23297 | |
ca81d7a0 | 23298 | for ac_header in vfork.h |
503d2be0 AS |
23299 | do |
23300 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
ca81d7a0 JD |
23301 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
23302 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
23303 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
23304 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 23305 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c0d27fcc | 23306 | fi |
ca81d7a0 JD |
23307 | ac_res=`eval echo '${'$as_ac_Header'}'` |
23308 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
23309 | echo "${ECHO_T}$ac_res" >&6; } | |
98418dba | 23310 | else |
c0d27fcc | 23311 | # Is the header compilable? |
ca81d7a0 JD |
23312 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
23313 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
c0d27fcc | 23314 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
23315 | /* confdefs.h. */ |
23316 | _ACEOF | |
23317 | cat confdefs.h >>conftest.$ac_ext | |
23318 | cat >>conftest.$ac_ext <<_ACEOF | |
23319 | /* end confdefs.h. */ | |
c0d27fcc MR |
23320 | $ac_includes_default |
23321 | #include <$ac_header> | |
23322 | _ACEOF | |
23323 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
23324 | if { (ac_try="$ac_compile" |
23325 | case "(($ac_try" in | |
23326 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23327 | *) ac_try_echo=$ac_try;; | |
23328 | esac | |
23329 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
23330 | (eval "$ac_compile") 2>conftest.er1 | |
c0d27fcc | 23331 | ac_status=$? |
edfaf76d LK |
23332 | grep -v '^ *+' conftest.er1 >conftest.err |
23333 | rm -f conftest.er1 | |
23334 | cat conftest.err >&5 | |
c0d27fcc | 23335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
23336 | (exit $ac_status); } && { |
23337 | test -z "$ac_c_werror_flag" || | |
23338 | test ! -s conftest.err | |
23339 | } && test -s conftest.$ac_objext; then | |
c0d27fcc MR |
23340 | ac_header_compiler=yes |
23341 | else | |
23342 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
23343 | sed 's/^/| /' conftest.$ac_ext >&5 |
23344 | ||
ca81d7a0 | 23345 | ac_header_compiler=no |
c0d27fcc | 23346 | fi |
ca81d7a0 JD |
23347 | |
23348 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
23349 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
23350 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
c0d27fcc MR |
23351 | |
23352 | # Is the header present? | |
ca81d7a0 JD |
23353 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
23354 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
c0d27fcc | 23355 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
23356 | /* confdefs.h. */ |
23357 | _ACEOF | |
23358 | cat confdefs.h >>conftest.$ac_ext | |
23359 | cat >>conftest.$ac_ext <<_ACEOF | |
23360 | /* end confdefs.h. */ | |
503d2be0 AS |
23361 | #include <$ac_header> |
23362 | _ACEOF | |
ca81d7a0 JD |
23363 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
23364 | case "(($ac_try" in | |
23365 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23366 | *) ac_try_echo=$ac_try;; | |
23367 | esac | |
23368 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
23369 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
503d2be0 | 23370 | ac_status=$? |
6bae0ccf | 23371 | grep -v '^ *+' conftest.er1 >conftest.err |
503d2be0 AS |
23372 | rm -f conftest.er1 |
23373 | cat conftest.err >&5 | |
c0d27fcc | 23374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
23375 | (exit $ac_status); } >/dev/null && { |
23376 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
23377 | test ! -s conftest.err | |
23378 | }; then | |
c0d27fcc | 23379 | ac_header_preproc=yes |
647847ea | 23380 | else |
503d2be0 | 23381 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
23382 | sed 's/^/| /' conftest.$ac_ext >&5 |
23383 | ||
c0d27fcc | 23384 | ac_header_preproc=no |
647847ea | 23385 | fi |
ca81d7a0 | 23386 | |
503d2be0 | 23387 | rm -f conftest.err conftest.$ac_ext |
ca81d7a0 JD |
23388 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
23389 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
c0d27fcc MR |
23390 | |
23391 | # So? What about this header? | |
edfaf76d LK |
23392 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
23393 | yes:no: ) | |
c0d27fcc MR |
23394 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
23395 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
edfaf76d LK |
23396 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
23397 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
23398 | ac_header_preproc=yes | |
19650fd6 | 23399 | ;; |
edfaf76d | 23400 | no:yes:* ) |
c0d27fcc MR |
23401 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
23402 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
edfaf76d LK |
23403 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
23404 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
23405 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
23406 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
23407 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
23408 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
c0d27fcc | 23409 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19650fd6 | 23410 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
edfaf76d LK |
23411 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
23412 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ca81d7a0 | 23413 | |
19650fd6 | 23414 | ;; |
c0d27fcc | 23415 | esac |
ca81d7a0 JD |
23416 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
23417 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
23418 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
c0d27fcc MR |
23419 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
23420 | else | |
edfaf76d | 23421 | eval "$as_ac_Header=\$ac_header_preproc" |
647847ea | 23422 | fi |
ca81d7a0 JD |
23423 | ac_res=`eval echo '${'$as_ac_Header'}'` |
23424 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
23425 | echo "${ECHO_T}$ac_res" >&6; } | |
c0d27fcc MR |
23426 | |
23427 | fi | |
503d2be0 | 23428 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
c0d27fcc | 23429 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 23430 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
c0d27fcc | 23431 | _ACEOF |
647847ea | 23432 | |
73b77ee5 | 23433 | fi |
c0d27fcc | 23434 | |
503d2be0 | 23435 | done |
73b77ee5 | 23436 | |
c0d27fcc MR |
23437 | |
23438 | ||
503d2be0 AS |
23439 | for ac_func in fork vfork |
23440 | do | |
23441 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
ca81d7a0 JD |
23442 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
23443 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
23444 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
503d2be0 | 23445 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
fa0b693c | 23446 | else |
503d2be0 | 23447 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
23448 | /* confdefs.h. */ |
23449 | _ACEOF | |
23450 | cat confdefs.h >>conftest.$ac_ext | |
23451 | cat >>conftest.$ac_ext <<_ACEOF | |
23452 | /* end confdefs.h. */ | |
edfaf76d LK |
23453 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
23454 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
23455 | #define $ac_func innocuous_$ac_func | |
23456 | ||
fa0b693c | 23457 | /* System header to define __stub macros and hopefully few prototypes, |
19650fd6 AS |
23458 | which can conflict with char $ac_func (); below. |
23459 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23460 | <limits.h> exists even on freestanding compilers. */ | |
edfaf76d | 23461 | |
19650fd6 AS |
23462 | #ifdef __STDC__ |
23463 | # include <limits.h> | |
23464 | #else | |
23465 | # include <assert.h> | |
23466 | #endif | |
edfaf76d LK |
23467 | |
23468 | #undef $ac_func | |
23469 | ||
ca81d7a0 JD |
23470 | /* Override any GCC internal prototype to avoid an error. |
23471 | Use char because int might match the return type of a GCC | |
23472 | builtin and then its argument prototype would still apply. */ | |
503d2be0 AS |
23473 | #ifdef __cplusplus |
23474 | extern "C" | |
23475 | #endif | |
503d2be0 | 23476 | char $ac_func (); |
fa0b693c GM |
23477 | /* The GNU C library defines this for functions which it implements |
23478 | to always fail with ENOSYS. Some functions are actually named | |
23479 | something starting with __ and the normal name is an alias. */ | |
ca81d7a0 | 23480 | #if defined __stub_$ac_func || defined __stub___$ac_func |
fa0b693c | 23481 | choke me |
fa0b693c GM |
23482 | #endif |
23483 | ||
19650fd6 AS |
23484 | int |
23485 | main () | |
23486 | { | |
ca81d7a0 | 23487 | return $ac_func (); |
503d2be0 AS |
23488 | ; |
23489 | return 0; | |
23490 | } | |
23491 | _ACEOF | |
23492 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
23493 | if { (ac_try="$ac_link" |
23494 | case "(($ac_try" in | |
23495 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23496 | *) ac_try_echo=$ac_try;; | |
23497 | esac | |
23498 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
23499 | (eval "$ac_link") 2>conftest.er1 | |
503d2be0 | 23500 | ac_status=$? |
edfaf76d LK |
23501 | grep -v '^ *+' conftest.er1 >conftest.err |
23502 | rm -f conftest.er1 | |
23503 | cat conftest.err >&5 | |
c0d27fcc | 23504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
23505 | (exit $ac_status); } && { |
23506 | test -z "$ac_c_werror_flag" || | |
23507 | test ! -s conftest.err | |
23508 | } && test -s conftest$ac_exeext && | |
23509 | $as_test_x conftest$ac_exeext; then | |
503d2be0 AS |
23510 | eval "$as_ac_var=yes" |
23511 | else | |
23512 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
23513 | sed 's/^/| /' conftest.$ac_ext >&5 |
23514 | ||
ca81d7a0 | 23515 | eval "$as_ac_var=no" |
503d2be0 | 23516 | fi |
ca81d7a0 | 23517 | |
f053c89f | 23518 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 23519 | conftest$ac_exeext conftest.$ac_ext |
503d2be0 | 23520 | fi |
ca81d7a0 JD |
23521 | ac_res=`eval echo '${'$as_ac_var'}'` |
23522 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
23523 | echo "${ECHO_T}$ac_res" >&6; } | |
503d2be0 | 23524 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
c0d27fcc | 23525 | cat >>confdefs.h <<_ACEOF |
503d2be0 | 23526 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
c0d27fcc | 23527 | _ACEOF |
503d2be0 | 23528 | |
fa0b693c | 23529 | fi |
503d2be0 | 23530 | done |
fa0b693c | 23531 | |
503d2be0 | 23532 | if test "x$ac_cv_func_fork" = xyes; then |
ca81d7a0 JD |
23533 | { echo "$as_me:$LINENO: checking for working fork" >&5 |
23534 | echo $ECHO_N "checking for working fork... $ECHO_C" >&6; } | |
503d2be0 AS |
23535 | if test "${ac_cv_func_fork_works+set}" = set; then |
23536 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fa0b693c | 23537 | else |
503d2be0 AS |
23538 | if test "$cross_compiling" = yes; then |
23539 | ac_cv_func_fork_works=cross | |
23540 | else | |
23541 | cat >conftest.$ac_ext <<_ACEOF | |
ca81d7a0 JD |
23542 | /* confdefs.h. */ |
23543 | _ACEOF | |
23544 | cat confdefs.h >>conftest.$ac_ext | |
23545 | cat >>conftest.$ac_ext <<_ACEOF | |
23546 | /* end confdefs.h. */ | |
23547 | $ac_includes_default | |
23548 | int | |
23549 | main () | |
23550 | { | |
23551 | ||
23552 | /* By Ruediger Kuhlmann. */ | |
23553 | return fork () < 0; | |
23554 | ||
23555 | ; | |
23556 | return 0; | |
23557 | } | |
503d2be0 AS |
23558 | _ACEOF |
23559 | rm -f conftest$ac_exeext | |
ca81d7a0 JD |
23560 | if { (ac_try="$ac_link" |
23561 | case "(($ac_try" in | |
23562 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23563 | *) ac_try_echo=$ac_try;; | |
23564 | esac | |
23565 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
23566 | (eval "$ac_link") 2>&5 | |
503d2be0 | 23567 | ac_status=$? |
c0d27fcc | 23568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 23569 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
ca81d7a0 JD |
23570 | { (case "(($ac_try" in |
23571 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23572 | *) ac_try_echo=$ac_try;; | |
23573 | esac | |
23574 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
23575 | (eval "$ac_try") 2>&5 | |
503d2be0 | 23576 | ac_status=$? |
c0d27fcc | 23577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 AS |
23578 | (exit $ac_status); }; }; then |
23579 | ac_cv_func_fork_works=yes | |
23580 | else | |
23581 | echo "$as_me: program exited with status $ac_status" >&5 | |
23582 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
23583 | sed 's/^/| /' conftest.$ac_ext >&5 |
23584 | ||
c0d27fcc | 23585 | ( exit $ac_status ) |
503d2be0 AS |
23586 | ac_cv_func_fork_works=no |
23587 | fi | |
ca81d7a0 | 23588 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
503d2be0 | 23589 | fi |
ca81d7a0 JD |
23590 | |
23591 | ||
503d2be0 | 23592 | fi |
ca81d7a0 JD |
23593 | { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 |
23594 | echo "${ECHO_T}$ac_cv_func_fork_works" >&6; } | |
503d2be0 | 23595 | |
6bae0ccf DL |
23596 | else |
23597 | ac_cv_func_fork_works=$ac_cv_func_fork | |
503d2be0 AS |
23598 | fi |
23599 | if test "x$ac_cv_func_fork_works" = xcross; then | |
23600 | case $host in | |
23601 | *-*-amigaos* | *-*-msdosdjgpp*) | |
23602 | # Override, as these systems have only a dummy fork() stub | |
23603 | ac_cv_func_fork_works=no | |
23604 | ;; | |
23605 | *) | |
23606 | ac_cv_func_fork_works=yes | |
23607 | ;; | |
23608 | esac | |
c0d27fcc MR |
23609 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 |
23610 | echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
fa0b693c | 23611 | fi |
73b77ee5 | 23612 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
503d2be0 | 23613 | if test "x$ac_cv_func_vfork" = xyes; then |
ca81d7a0 JD |
23614 | { echo "$as_me:$LINENO: checking for working vfork" >&5 |
23615 | echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; } | |
503d2be0 AS |
23616 | if test "${ac_cv_func_vfork_works+set}" = set; then |
23617 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23618 | else | |
23619 | if test "$cross_compiling" = yes; then | |
23620 | ac_cv_func_vfork_works=cross | |
fa0b693c | 23621 | else |
503d2be0 | 23622 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
23623 | /* confdefs.h. */ |
23624 | _ACEOF | |
23625 | cat confdefs.h >>conftest.$ac_ext | |
23626 | cat >>conftest.$ac_ext <<_ACEOF | |
23627 | /* end confdefs.h. */ | |
73b77ee5 | 23628 | /* Thanks to Paul Eggert for this test. */ |
ca81d7a0 | 23629 | $ac_includes_default |
19650fd6 | 23630 | #include <sys/wait.h> |
f053c89f | 23631 | #ifdef HAVE_VFORK_H |
503d2be0 | 23632 | # include <vfork.h> |
73b77ee5 GM |
23633 | #endif |
23634 | /* On some sparc systems, changes by the child to local and incoming | |
503d2be0 AS |
23635 | argument registers are propagated back to the parent. The compiler |
23636 | is told about this with #include <vfork.h>, but some compilers | |
23637 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
23638 | static variable whose address is put into a register that is | |
23639 | clobbered by the vfork. */ | |
19650fd6 | 23640 | static void |
fa0b693c | 23641 | #ifdef __cplusplus |
73b77ee5 | 23642 | sparc_address_test (int arg) |
503d2be0 | 23643 | # else |
73b77ee5 | 23644 | sparc_address_test (arg) int arg; |
fa0b693c | 23645 | #endif |
fa0b693c | 23646 | { |
73b77ee5 GM |
23647 | static pid_t child; |
23648 | if (!child) { | |
23649 | child = vfork (); | |
23650 | if (child < 0) { | |
23651 | perror ("vfork"); | |
23652 | _exit(2); | |
23653 | } | |
23654 | if (!child) { | |
23655 | arg = getpid(); | |
23656 | write(-1, "", 0); | |
23657 | _exit (arg); | |
23658 | } | |
23659 | } | |
23660 | } | |
503d2be0 AS |
23661 | |
23662 | int | |
23663 | main () | |
23664 | { | |
73b77ee5 GM |
23665 | pid_t parent = getpid (); |
23666 | pid_t child; | |
fa0b693c | 23667 | |
19650fd6 | 23668 | sparc_address_test (0); |
fa0b693c | 23669 | |
73b77ee5 | 23670 | child = vfork (); |
fa0b693c | 23671 | |
73b77ee5 | 23672 | if (child == 0) { |
503d2be0 AS |
23673 | /* Here is another test for sparc vfork register problems. This |
23674 | test uses lots of local variables, at least as many local | |
23675 | variables as main has allocated so far including compiler | |
23676 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
23677 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
23678 | reuse the register of parent for one of the local variables, | |
23679 | since it will think that parent can't possibly be used any more | |
23680 | in this routine. Assigning to the local variable will thus | |
23681 | munge parent in the parent process. */ | |
73b77ee5 GM |
23682 | pid_t |
23683 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
23684 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
23685 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
23686 | use the same hardware register for all 8 local variables. */ | |
23687 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
23688 | || p != p5 || p != p6 || p != p7) | |
23689 | _exit(1); | |
fa0b693c | 23690 | |
503d2be0 AS |
23691 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent |
23692 | from child file descriptors. If the child closes a descriptor | |
23693 | before it execs or exits, this munges the parent's descriptor | |
23694 | as well. Test for this by closing stdout in the child. */ | |
73b77ee5 GM |
23695 | _exit(close(fileno(stdout)) != 0); |
23696 | } else { | |
23697 | int status; | |
23698 | struct stat st; | |
23699 | ||
23700 | while (wait(&status) != child) | |
23701 | ; | |
ca81d7a0 | 23702 | return ( |
73b77ee5 GM |
23703 | /* Was there some problem with vforking? */ |
23704 | child < 0 | |
23705 | ||
23706 | /* Did the child fail? (This shouldn't happen.) */ | |
23707 | || status | |
23708 | ||
23709 | /* Did the vfork/compiler bug occur? */ | |
23710 | || parent != getpid() | |
fa0b693c | 23711 | |
73b77ee5 GM |
23712 | /* Did the file descriptor bug occur? */ |
23713 | || fstat(fileno(stdout), &st) != 0 | |
23714 | ); | |
23715 | } | |
23716 | } | |
503d2be0 AS |
23717 | _ACEOF |
23718 | rm -f conftest$ac_exeext | |
ca81d7a0 JD |
23719 | if { (ac_try="$ac_link" |
23720 | case "(($ac_try" in | |
23721 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23722 | *) ac_try_echo=$ac_try;; | |
23723 | esac | |
23724 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
23725 | (eval "$ac_link") 2>&5 | |
503d2be0 | 23726 | ac_status=$? |
c0d27fcc | 23727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 23728 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
ca81d7a0 JD |
23729 | { (case "(($ac_try" in |
23730 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23731 | *) ac_try_echo=$ac_try;; | |
23732 | esac | |
23733 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
23734 | (eval "$ac_try") 2>&5 | |
503d2be0 | 23735 | ac_status=$? |
c0d27fcc | 23736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
503d2be0 | 23737 | (exit $ac_status); }; }; then |
73b77ee5 | 23738 | ac_cv_func_vfork_works=yes |
fa0b693c | 23739 | else |
503d2be0 AS |
23740 | echo "$as_me: program exited with status $ac_status" >&5 |
23741 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
23742 | sed 's/^/| /' conftest.$ac_ext >&5 |
23743 | ||
c0d27fcc | 23744 | ( exit $ac_status ) |
503d2be0 AS |
23745 | ac_cv_func_vfork_works=no |
23746 | fi | |
ca81d7a0 | 23747 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
fa0b693c | 23748 | fi |
ca81d7a0 JD |
23749 | |
23750 | ||
fa0b693c | 23751 | fi |
ca81d7a0 JD |
23752 | { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 |
23753 | echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; } | |
fa0b693c | 23754 | |
503d2be0 AS |
23755 | fi; |
23756 | if test "x$ac_cv_func_fork_works" = xcross; then | |
edfaf76d | 23757 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
c0d27fcc MR |
23758 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 |
23759 | echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
fa0b693c GM |
23760 | fi |
23761 | ||
503d2be0 AS |
23762 | if test "x$ac_cv_func_vfork_works" = xyes; then |
23763 | ||
c0d27fcc | 23764 | cat >>confdefs.h <<\_ACEOF |
503d2be0 | 23765 | #define HAVE_WORKING_VFORK 1 |
c0d27fcc | 23766 | _ACEOF |
503d2be0 AS |
23767 | |
23768 | else | |
23769 | ||
c0d27fcc | 23770 | cat >>confdefs.h <<\_ACEOF |
73b77ee5 | 23771 | #define vfork fork |
c0d27fcc | 23772 | _ACEOF |
fa0b693c GM |
23773 | |
23774 | fi | |
503d2be0 AS |
23775 | if test "x$ac_cv_func_fork_works" = xyes; then |
23776 | ||
c0d27fcc | 23777 | cat >>confdefs.h <<\_ACEOF |
503d2be0 | 23778 | #define HAVE_WORKING_FORK 1 |
c0d27fcc | 23779 | _ACEOF |
fa0b693c | 23780 | |
503d2be0 | 23781 | fi |
647847ea | 23782 | |
c0d27fcc | 23783 | |
ca81d7a0 JD |
23784 | { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5 |
23785 | echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; } | |
6a3a24fa JD |
23786 | if test "${emacs_cv_langinfo_codeset+set}" = set; then |
23787 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23788 | else | |
23789 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
23790 | /* confdefs.h. */ |
23791 | _ACEOF | |
23792 | cat confdefs.h >>conftest.$ac_ext | |
23793 | cat >>conftest.$ac_ext <<_ACEOF | |
23794 | /* end confdefs.h. */ | |
6a3a24fa JD |
23795 | #include <langinfo.h> |
23796 | int | |
23797 | main () | |
23798 | { | |
23799 | char* cs = nl_langinfo(CODESET); | |
23800 | ; | |
23801 | return 0; | |
23802 | } | |
23803 | _ACEOF | |
23804 | rm -f conftest.$ac_objext conftest$ac_exeext | |
ca81d7a0 JD |
23805 | if { (ac_try="$ac_link" |
23806 | case "(($ac_try" in | |
23807 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23808 | *) ac_try_echo=$ac_try;; | |
23809 | esac | |
23810 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
23811 | (eval "$ac_link") 2>conftest.er1 | |
6a3a24fa | 23812 | ac_status=$? |
edfaf76d LK |
23813 | grep -v '^ *+' conftest.er1 >conftest.err |
23814 | rm -f conftest.er1 | |
23815 | cat conftest.err >&5 | |
6a3a24fa | 23816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
23817 | (exit $ac_status); } && { |
23818 | test -z "$ac_c_werror_flag" || | |
23819 | test ! -s conftest.err | |
23820 | } && test -s conftest$ac_exeext && | |
23821 | $as_test_x conftest$ac_exeext; then | |
6a3a24fa JD |
23822 | emacs_cv_langinfo_codeset=yes |
23823 | else | |
23824 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
23825 | sed 's/^/| /' conftest.$ac_ext >&5 |
23826 | ||
ca81d7a0 | 23827 | emacs_cv_langinfo_codeset=no |
6a3a24fa | 23828 | fi |
ca81d7a0 | 23829 | |
f053c89f | 23830 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
edfaf76d | 23831 | conftest$ac_exeext conftest.$ac_ext |
6a3a24fa JD |
23832 | |
23833 | fi | |
ca81d7a0 JD |
23834 | { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5 |
23835 | echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; } | |
6a3a24fa JD |
23836 | if test $emacs_cv_langinfo_codeset = yes; then |
23837 | ||
23838 | cat >>confdefs.h <<\_ACEOF | |
23839 | #define HAVE_LANGINFO_CODESET 1 | |
23840 | _ACEOF | |
23841 | ||
23842 | fi | |
23843 | ||
ca81d7a0 JD |
23844 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
23845 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } | |
503d2be0 AS |
23846 | if test "${ac_cv_type_size_t+set}" = set; then |
23847 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8730a8da | 23848 | else |
503d2be0 | 23849 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
23850 | /* confdefs.h. */ |
23851 | _ACEOF | |
23852 | cat confdefs.h >>conftest.$ac_ext | |
23853 | cat >>conftest.$ac_ext <<_ACEOF | |
23854 | /* end confdefs.h. */ | |
503d2be0 | 23855 | $ac_includes_default |
ca81d7a0 | 23856 | typedef size_t ac__type_new_; |
503d2be0 AS |
23857 | int |
23858 | main () | |
23859 | { | |
ca81d7a0 | 23860 | if ((ac__type_new_ *) 0) |
503d2be0 | 23861 | return 0; |
ca81d7a0 | 23862 | if (sizeof (ac__type_new_)) |
503d2be0 AS |
23863 | return 0; |
23864 | ; | |
23865 | return 0; | |
23866 | } | |
23867 | _ACEOF | |
23868 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
23869 | if { (ac_try="$ac_compile" |
23870 | case "(($ac_try" in | |
23871 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23872 | *) ac_try_echo=$ac_try;; | |
23873 | esac | |
23874 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
23875 | (eval "$ac_compile") 2>conftest.er1 | |
503d2be0 | 23876 | ac_status=$? |
edfaf76d LK |
23877 | grep -v '^ *+' conftest.er1 >conftest.err |
23878 | rm -f conftest.er1 | |
23879 | cat conftest.err >&5 | |
c0d27fcc | 23880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
c24fa7dc MB |
23881 | (exit $ac_status); } && { |
23882 | test -z "$ac_c_werror_flag" || | |
23883 | test ! -s conftest.err | |
23884 | } && test -s conftest.$ac_objext; then | |
8730a8da DL |
23885 | ac_cv_type_size_t=yes |
23886 | else | |
503d2be0 | 23887 | echo "$as_me: failed program was:" >&5 |
19650fd6 AS |
23888 | sed 's/^/| /' conftest.$ac_ext >&5 |
23889 | ||
ca81d7a0 | 23890 | ac_cv_type_size_t=no |
8730a8da | 23891 | fi |
ca81d7a0 JD |
23892 | |
23893 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8730a8da | 23894 | fi |
ca81d7a0 JD |
23895 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
23896 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } | |
503d2be0 | 23897 | if test $ac_cv_type_size_t = yes; then |
503d2be0 | 23898 | |
c0d27fcc MR |
23899 | cat >>confdefs.h <<_ACEOF |
23900 | #define HAVE_SIZE_T 1 | |
23901 | _ACEOF | |
23902 | ||
8730a8da DL |
23903 | |
23904 | fi | |
23905 | ||
c0d27fcc | 23906 | |
ca81d7a0 JD |
23907 | { echo "$as_me:$LINENO: checking for mbstate_t" >&5 |
23908 | echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; } | |
973a76b1 DL |
23909 | if test "${ac_cv_type_mbstate_t+set}" = set; then |
23910 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23911 | else | |
23912 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
23913 | /* confdefs.h. */ |
23914 | _ACEOF | |
23915 | cat confdefs.h >>conftest.$ac_ext | |
23916 | cat >>conftest.$ac_ext <<_ACEOF | |
23917 | /* end confdefs.h. */ | |
973a76b1 DL |
23918 | $ac_includes_default |
23919 | # include <wchar.h> | |
23920 | int | |
23921 | main () | |
23922 | { | |
23923 | mbstate_t x; return sizeof x; | |
23924 | ; | |
23925 | return 0; | |
23926 | } | |
23927 | _ACEOF | |
23928 | rm -f conftest.$ac_objext | |
ca81d7a0 JD |
23929 | if { (ac_try="$ac_compile" |
23930 | case "(($ac_try" in | |
23931 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23932 | *) ac_try_echo=$ac_try;; | |
23933 | esac | |
23934 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
23935 | (eval "$ac_compile") 2>conftest.er1 | |
973a76b1 | 23936 | ac_status=$? |
edfaf76d LK |
23937 | grep -v '^ *+' conftest.er1 >conftest.err |
23938 | rm -f conftest.er1 | |
23939 | cat conftest.err >&5 | |
973a76b1 | 23940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
c24fa7dc MB |
23941 | (exit $ac_status); } && { |
23942 | test -z "$ac_c_werror_flag" || | |
23943 | test ! -s conftest.err | |
23944 | } && test -s conftest.$ac_objext; then | |
973a76b1 DL |
23945 | ac_cv_type_mbstate_t=yes |
23946 | else | |
23947 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
23948 | sed 's/^/| /' conftest.$ac_ext >&5 |
23949 | ||
ca81d7a0 | 23950 | ac_cv_type_mbstate_t=no |
973a76b1 | 23951 | fi |
ca81d7a0 JD |
23952 | |
23953 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
973a76b1 | 23954 | fi |
ca81d7a0 JD |
23955 | { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5 |
23956 | echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; } | |
973a76b1 DL |
23957 | if test $ac_cv_type_mbstate_t = yes; then |
23958 | ||
23959 | cat >>confdefs.h <<\_ACEOF | |
23960 | #define HAVE_MBSTATE_T 1 | |
23961 | _ACEOF | |
23962 | ||
23963 | else | |
23964 | ||
23965 | cat >>confdefs.h <<\_ACEOF | |
23966 | #define mbstate_t int | |
23967 | _ACEOF | |
23968 | ||
23969 | fi | |
23970 | ||
ca81d7a0 JD |
23971 | { echo "$as_me:$LINENO: checking for C restrict keyword" >&5 |
23972 | echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; } | |
22044edf DL |
23973 | if test "${emacs_cv_c_restrict+set}" = set; then |
23974 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23975 | else | |
23976 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
23977 | /* confdefs.h. */ |
23978 | _ACEOF | |
23979 | cat confdefs.h >>conftest.$ac_ext | |
23980 | cat >>conftest.$ac_ext <<_ACEOF | |
23981 | /* end confdefs.h. */ | |
22044edf DL |
23982 | void fred (int *restrict x); |
23983 | int | |
23984 | main () | |
23985 | { | |
b936fae4 | 23986 | |
22044edf DL |
23987 | ; |
23988 | return 0; | |
23989 | } | |
c0d27fcc | 23990 | _ACEOF |
22044edf | 23991 | rm -f conftest.$ac_objext |
ca81d7a0 JD |
23992 | if { (ac_try="$ac_compile" |
23993 | case "(($ac_try" in | |
23994 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23995 | *) ac_try_echo=$ac_try;; | |
23996 | esac | |
23997 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
23998 | (eval "$ac_compile") 2>conftest.er1 | |
22044edf | 23999 | ac_status=$? |
edfaf76d LK |
24000 | grep -v '^ *+' conftest.er1 >conftest.err |
24001 | rm -f conftest.er1 | |
24002 | cat conftest.err >&5 | |
22044edf | 24003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
24004 | (exit $ac_status); } && { |
24005 | test -z "$ac_c_werror_flag" || | |
24006 | test ! -s conftest.err | |
24007 | } && test -s conftest.$ac_objext; then | |
22044edf DL |
24008 | emacs_cv_c_restrict=yes |
24009 | else | |
24010 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
24011 | sed 's/^/| /' conftest.$ac_ext >&5 |
24012 | ||
ca81d7a0 | 24013 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
24014 | /* confdefs.h. */ |
24015 | _ACEOF | |
24016 | cat confdefs.h >>conftest.$ac_ext | |
24017 | cat >>conftest.$ac_ext <<_ACEOF | |
24018 | /* end confdefs.h. */ | |
22044edf DL |
24019 | void fred (int *__restrict x); |
24020 | int | |
24021 | main () | |
24022 | { | |
c0d27fcc | 24023 | |
22044edf DL |
24024 | ; |
24025 | return 0; | |
24026 | } | |
c0d27fcc | 24027 | _ACEOF |
22044edf | 24028 | rm -f conftest.$ac_objext |
ca81d7a0 JD |
24029 | if { (ac_try="$ac_compile" |
24030 | case "(($ac_try" in | |
24031 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24032 | *) ac_try_echo=$ac_try;; | |
24033 | esac | |
24034 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
24035 | (eval "$ac_compile") 2>conftest.er1 | |
22044edf | 24036 | ac_status=$? |
edfaf76d LK |
24037 | grep -v '^ *+' conftest.er1 >conftest.err |
24038 | rm -f conftest.er1 | |
24039 | cat conftest.err >&5 | |
22044edf | 24040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
24041 | (exit $ac_status); } && { |
24042 | test -z "$ac_c_werror_flag" || | |
24043 | test ! -s conftest.err | |
24044 | } && test -s conftest.$ac_objext; then | |
22044edf DL |
24045 | emacs_cv_c_restrict=__restrict |
24046 | else | |
24047 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
24048 | sed 's/^/| /' conftest.$ac_ext >&5 |
24049 | ||
ca81d7a0 | 24050 | emacs_cv_c_restrict=no |
ba4481b5 | 24051 | fi |
ca81d7a0 JD |
24052 | |
24053 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ba4481b5 | 24054 | fi |
ca81d7a0 JD |
24055 | |
24056 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ba4481b5 | 24057 | fi |
ca81d7a0 JD |
24058 | { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5 |
24059 | echo "${ECHO_T}$emacs_cv_c_restrict" >&6; } | |
22044edf DL |
24060 | case "$emacs_cv_c_restrict" in |
24061 | yes) emacs_restrict=restrict;; | |
24062 | no) emacs_restrict="";; | |
24063 | *) emacs_restrict="$emacs_cv_c_restrict";; | |
24064 | esac | |
24065 | if test "$emacs_restrict" != __restrict; then | |
b936fae4 | 24066 | |
22044edf DL |
24067 | cat >>confdefs.h <<_ACEOF |
24068 | #define __restrict $emacs_restrict | |
c0d27fcc | 24069 | _ACEOF |
ba4481b5 DL |
24070 | |
24071 | fi | |
ba4481b5 | 24072 | |
ca81d7a0 JD |
24073 | { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5 |
24074 | echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; } | |
22044edf DL |
24075 | if test "${emacs_cv_c_restrict_arr+set}" = set; then |
24076 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24077 | else | |
24078 | cat >conftest.$ac_ext <<_ACEOF | |
19650fd6 AS |
24079 | /* confdefs.h. */ |
24080 | _ACEOF | |
24081 | cat confdefs.h >>conftest.$ac_ext | |
24082 | cat >>conftest.$ac_ext <<_ACEOF | |
24083 | /* end confdefs.h. */ | |
22044edf DL |
24084 | void fred (int x[__restrict]); |
24085 | int | |
24086 | main () | |
24087 | { | |
b936fae4 | 24088 | |
22044edf DL |
24089 | ; |
24090 | return 0; | |
24091 | } | |
c0d27fcc | 24092 | _ACEOF |
22044edf | 24093 | rm -f conftest.$ac_objext |
ca81d7a0 JD |
24094 | if { (ac_try="$ac_compile" |
24095 | case "(($ac_try" in | |
24096 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
24097 | *) ac_try_echo=$ac_try;; | |
24098 | esac | |
24099 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
24100 | (eval "$ac_compile") 2>conftest.er1 | |
22044edf | 24101 | ac_status=$? |
edfaf76d LK |
24102 | grep -v '^ *+' conftest.er1 >conftest.err |
24103 | rm -f conftest.er1 | |
24104 | cat conftest.err >&5 | |
22044edf | 24105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f053c89f CY |
24106 | (exit $ac_status); } && { |
24107 | test -z "$ac_c_werror_flag" || | |
24108 | test ! -s conftest.err | |
24109 | } && test -s conftest.$ac_objext; then | |
22044edf DL |
24110 | emacs_cv_c_restrict_arr=yes |
24111 | else | |
24112 | echo "$as_me: failed program was:" >&5 | |
19650fd6 AS |
24113 | sed 's/^/| /' conftest.$ac_ext >&5 |
24114 | ||
ca81d7a0 | 24115 | emacs_cv_c_restrict_arr=no |
ba4481b5 | 24116 | fi |
ca81d7a0 JD |
24117 | |
24118 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
22044edf | 24119 | fi |
ca81d7a0 JD |
24120 | { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5 |
24121 | echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; } | |
22044edf | 24122 | if test "$emacs_cv_c_restrict_arr" = yes; then |
b936fae4 | 24123 | |
c0d27fcc | 24124 | cat >>confdefs.h <<\_ACEOF |
22044edf | 24125 | #define __restrict_arr __restrict |
c0d27fcc | 24126 | _ACEOF |
ba4481b5 | 24127 | |
ba4481b5 DL |
24128 | fi |
24129 | ||
c0d27fcc | 24130 | |
c0d27fcc | 24131 | |
22044edf DL |
24132 | # Set up the CFLAGS for real compilation, so we can substitute it. |
24133 | CFLAGS="$REAL_CFLAGS" | |
24134 | CPPFLAGS="$REAL_CPPFLAGS" | |
24135 | ||
24136 | #### Find out which version of Emacs this is. | |
24137 | version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \ | |
24138 | | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'` | |
24139 | if test x"${version}" = x; then | |
24140 | { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5 | |
24141 | echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;} | |
24142 | { (exit 1); exit 1; }; } | |
24143 | fi | |
24144 | ||
24145 | ### Specify what sort of things we'll be editing into Makefile and config.h. | |
24146 | ### Use configuration here uncanonicalized to avoid exceeding size limits. | |
24147 | ||
24148 | ||
24149 | ||
24150 | ||
24151 | ||
24152 | ||
24153 | ||
24154 | ||
24155 | ||
24156 | ||
24157 | ||
24158 | ||
24159 | ||
24160 | ||
24161 | ||
24162 | ||
24163 | ||
24164 | ||
24165 | ||
24166 | ||
24167 | ||
24168 | ||
24169 | ||
24170 | ||
24171 | ||
24172 | ||
24173 | ||
24174 | ||
24175 | ||
24176 | ||
24177 | ||
24178 | ||
6a3a24fa | 24179 | |
22044edf DL |
24180 | |
24181 | ||
24182 | cat >>confdefs.h <<_ACEOF | |
24183 | #define EMACS_CONFIGURATION "${canonical}" | |
24184 | _ACEOF | |
24185 | ||
24186 | ||
24187 | cat >>confdefs.h <<_ACEOF | |
24188 | #define EMACS_CONFIG_OPTIONS "${ac_configure_args}" | |
24189 | _ACEOF | |
24190 | ||
24191 | ||
24192 | cat >>confdefs.h <<_ACEOF | |
24193 | #define config_machfile "${machfile}" | |
24194 | _ACEOF | |
24195 | ||
24196 | ||
24197 | cat >>confdefs.h <<_ACEOF | |
24198 | #define config_opsysfile "${opsysfile}" | |
24199 | _ACEOF | |
24200 | ||
24201 | ||
24202 | cat >>confdefs.h <<_ACEOF | |
24203 | #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE} | |
24204 | _ACEOF | |
24205 | ||
24206 | ||
24207 | cat >>confdefs.h <<_ACEOF | |
24208 | #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX} | |
24209 | _ACEOF | |
24210 | ||
24211 | ||
24212 | cat >>confdefs.h <<_ACEOF | |
24213 | #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE} | |
24214 | _ACEOF | |
24215 | ||
24216 | ||
24217 | cat >>confdefs.h <<_ACEOF | |
24218 | #define UNEXEC_SRC ${UNEXEC_SRC} | |
24219 | _ACEOF | |
24220 | ||
24221 | ||
24222 | if test "${HAVE_X_WINDOWS}" = "yes" ; then | |
24223 | ||
24224 | cat >>confdefs.h <<\_ACEOF | |
24225 | #define HAVE_X_WINDOWS 1 | |
24226 | _ACEOF | |
24227 | ||
24228 | fi | |
24229 | if test "${USE_X_TOOLKIT}" != "none" ; then | |
24230 | ||
24231 | cat >>confdefs.h <<\_ACEOF | |
24232 | #define USE_X_TOOLKIT 1 | |
24233 | _ACEOF | |
24234 | ||
73d798d5 SM |
24235 | if test "${USE_X_TOOLKIT}" == "LUCID"; then |
24236 | ||
24237 | cat >>confdefs.h <<\_ACEOF | |
24238 | #define USE_LUCID 1 | |
24239 | _ACEOF | |
24240 | ||
24241 | elif test "${USE_X_TOOLKIT}" == "MOTIF"; then | |
24242 | ||
24243 | cat >>confdefs.h <<\_ACEOF | |
24244 | #define USE_MOTIF 1 | |
24245 | _ACEOF | |
24246 | ||
24247 | fi | |
22044edf DL |
24248 | fi |
24249 | if test "${HAVE_X11}" = "yes" ; then | |
24250 | ||
24251 | cat >>confdefs.h <<\_ACEOF | |
24252 | #define HAVE_X11 1 | |
24253 | _ACEOF | |
24254 | ||
22044edf DL |
24255 | fi |
24256 | if test "${HAVE_MENUS}" = "yes" ; then | |
24257 | ||
24258 | cat >>confdefs.h <<\_ACEOF | |
24259 | #define HAVE_MENUS 1 | |
24260 | _ACEOF | |
24261 | ||
24262 | fi | |
24263 | if test "${GNU_MALLOC}" = "yes" ; then | |
24264 | ||
24265 | cat >>confdefs.h <<\_ACEOF | |
24266 | #define GNU_MALLOC 1 | |
24267 | _ACEOF | |
24268 | ||
24269 | fi | |
24270 | if test "${REL_ALLOC}" = "yes" ; then | |
24271 | ||
24272 | cat >>confdefs.h <<\_ACEOF | |
24273 | #define REL_ALLOC 1 | |
24274 | _ACEOF | |
24275 | ||
24276 | fi | |
24277 | ||
24278 | ||
24279 | ||
c0d27fcc MR |
24280 | |
24281 | ||
5afbeb22 | 24282 | |
ba4481b5 | 24283 | #### Report on what we decided to do. |
488dd4c4 JD |
24284 | #### Report GTK as a toolkit, even if it doesn't use Xt. |
24285 | #### It makes printing result more understandable as using GTK sets | |
24286 | #### toolkit_scroll_bars to yes by default. | |
24287 | if test "${HAVE_GTK}" = "yes"; then | |
24288 | USE_X_TOOLKIT=GTK | |
24289 | fi | |
24290 | ||
ba4481b5 DL |
24291 | echo " |
24292 | Configured for \`${canonical}'. | |
24293 | ||
24294 | Where should the build process find the source code? ${srcdir} | |
24295 | What operating system and machine description files should Emacs use? | |
24296 | \`${opsysfile}' and \`${machfile}' | |
24297 | What compiler should emacs be built with? ${CC} ${CFLAGS} | |
24298 | Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason} | |
73b77ee5 | 24299 | Should Emacs use a relocating allocator for buffers? ${REL_ALLOC} |
ef9e4345 | 24300 | Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers |
ba4481b5 | 24301 | What window system should Emacs use? ${window_system} |
8e967cf7 | 24302 | What toolkit should Emacs use? ${USE_X_TOOLKIT}" |
ba4481b5 DL |
24303 | |
24304 | if test -n "${x_includes}"; then | |
24305 | echo " Where do we find X Windows header files? ${x_includes}" | |
24306 | else | |
24307 | echo " Where do we find X Windows header files? Standard dirs" | |
24308 | fi | |
24309 | if test -n "${x_libraries}"; then | |
24310 | echo " Where do we find X Windows libraries? ${x_libraries}" | |
24311 | else | |
24312 | echo " Where do we find X Windows libraries? Standard dirs" | |
24313 | fi | |
24314 | ||
24315 | echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}" | |
24316 | echo " Does Emacs use -lXpm? ${HAVE_XPM}" | |
24317 | echo " Does Emacs use -ljpeg? ${HAVE_JPEG}" | |
24318 | echo " Does Emacs use -ltiff? ${HAVE_TIFF}" | |
9aeb8aaa | 24319 | echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name" |
ba4481b5 | 24320 | echo " Does Emacs use -lpng? ${HAVE_PNG}" |
0cfc0546 | 24321 | echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}" |
79011b82 | 24322 | echo " Does Emacs use -lgpm? ${HAVE_GPM}" |
409dd120 | 24323 | echo " Does Emacs use -ldbus? ${HAVE_DBUS}" |
2ee27f27 EZ |
24324 | echo " Does Emacs use a font backend? ${USE_FONT_BACKEND}" |
24325 | ||
24326 | if test "${USE_FONT_BACKEND}" = "yes"; then | |
24327 | echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}" | |
24328 | echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}" | |
24329 | echo " Does Emacs use -lotf? ${HAVE_LIBOTF}" | |
24330 | echo " Does Emacs use -lxft? ${HAVE_XFT}" | |
24331 | fi | |
ba4481b5 DL |
24332 | echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}" |
24333 | echo | |
24334 | ||
d0098f13 JD |
24335 | if test $USE_XASSERTS = yes; then |
24336 | echo " Compiling with asserts turned on." | |
d0098f13 | 24337 | CPPFLAGS="$CPPFLAGS -DXASSERTS=1" |
d0098f13 | 24338 | fi |
05cf15c6 | 24339 | |
ca34d75a JD |
24340 | echo |
24341 | ||
a2d3b5bd JD |
24342 | if test "$USE_X_TOOLKIT" = GTK; then |
24343 | case "$canonical" in | |
24344 | *cygwin*) | |
24345 | echo "There are known problems with Emacs and Gtk+ on cygwin, so you | |
24346 | will probably get a crash on startup. If this happens, please use another | |
24347 | toolkit for Emacs. See etc/PROBLEMS for more information." | |
24348 | ;; | |
24349 | esac | |
24350 | fi | |
24351 | ||
05cf15c6 | 24352 | |
f0e04acc GM |
24353 | if test "$HAVE_CARBON" = "yes"; then |
24354 | echo | |
24355 | echo "Warning: The Mac Carbon port is currently unsupported and has | |
24356 | known problems. It is not recommended for use by non-developers. | |
24357 | Read the emacs-devel archives for more information." | |
24358 | echo | |
24359 | fi | |
24360 | ||
131e4133 MA |
24361 | if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then |
24362 | echo "D-Bus integration has been tested for GNU/Linux only." | |
24363 | echo | |
24364 | fi | |
24365 | ||
05cf15c6 | 24366 | |
ba4481b5 DL |
24367 | # Remove any trailing slashes in these variables. |
24368 | test "${prefix}" != NONE && | |
24369 | prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'` | |
24370 | test "${exec_prefix}" != NONE && | |
24371 | exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'` | |
24372 | ||
d0e9bfd2 GM |
24373 | ## Check if the C preprocessor will convert `..' to `. .'. If so, set |
24374 | ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile | |
24375 | ## from Makefile.c can correctly provide the arg `-traditional' to the | |
24376 | ## C preprocessor. | |
24377 | ||
503d2be0 | 24378 | cat >conftest.$ac_ext <<_ACEOF |
19650fd6 AS |
24379 | /* confdefs.h. */ |
24380 | _ACEOF | |
24381 | cat confdefs.h >>conftest.$ac_ext | |
24382 | cat >>conftest.$ac_ext <<_ACEOF | |
24383 | /* end confdefs.h. */ | |
d0e9bfd2 | 24384 | yes..yes |
503d2be0 | 24385 | _ACEOF |
d0e9bfd2 | 24386 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
6bae0ccf | 24387 | $EGREP "yes..yes" >/dev/null 2>&1; then |
d0e9bfd2 GM |
24388 | CPP_NEED_TRADITIONAL=no |
24389 | else | |
d0e9bfd2 GM |
24390 | CPP_NEED_TRADITIONAL=yes |
24391 | fi | |
24392 | rm -f conftest* | |
24393 | ||
c0d27fcc | 24394 | |
f657c21b | 24395 | ac_config_files="$ac_config_files Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile doc/emacs/Makefile doc/misc/Makefile doc/lispintro/Makefile doc/lispref/Makefile src/Makefile.c:src/Makefile.in lwlib/Makefile lisp/Makefile leim/Makefile" |
ca81d7a0 JD |
24396 | |
24397 | ac_config_commands="$ac_config_commands default" | |
24398 | ||
503d2be0 | 24399 | cat >confcache <<\_ACEOF |
ba4481b5 DL |
24400 | # This file is a shell script that caches the results of configure |
24401 | # tests run on this system so they can be shared between configure | |
503d2be0 AS |
24402 | # scripts and configure runs, see configure's option --config-cache. |
24403 | # It is not useful on other systems. If it contains results you don't | |
24404 | # want to keep, you may remove or edit it. | |
ba4481b5 | 24405 | # |
503d2be0 AS |
24406 | # config.status only pays attention to the cache file if you give it |
24407 | # the --recheck option to rerun configure. | |
ba4481b5 | 24408 | # |
6bae0ccf | 24409 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
503d2be0 AS |
24410 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
24411 | # following values. | |
24412 | ||
24413 | _ACEOF | |
24414 | ||
ba4481b5 DL |
24415 | # The following way of writing the cache mishandles newlines in values, |
24416 | # but we know of no workaround that is simple, portable, and efficient. | |
ca81d7a0 | 24417 | # So, we kill variables containing newlines. |
ba4481b5 DL |
24418 | # Ultrix sh set writes to stderr and can't be redirected directly, |
24419 | # and sets the high bit in the cache file unless we assign to the vars. | |
ca81d7a0 JD |
24420 | ( |
24421 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
24422 | eval ac_val=\$$ac_var | |
24423 | case $ac_val in #( | |
24424 | *${as_nl}*) | |
24425 | case $ac_var in #( | |
24426 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | |
24427 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
24428 | esac | |
24429 | case $ac_var in #( | |
24430 | _ | IFS | as_nl) ;; #( | |
24431 | *) $as_unset $ac_var ;; | |
24432 | esac ;; | |
24433 | esac | |
24434 | done | |
24435 | ||
503d2be0 | 24436 | (set) 2>&1 | |
ca81d7a0 JD |
24437 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
24438 | *${as_nl}ac_space=\ *) | |
503d2be0 AS |
24439 | # `set' does not quote correctly, so add quotes (double-quote |
24440 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
24441 | sed -n \ | |
edfaf76d LK |
24442 | "s/'/'\\\\''/g; |
24443 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
ca81d7a0 | 24444 | ;; #( |
503d2be0 AS |
24445 | *) |
24446 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
ca81d7a0 | 24447 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
503d2be0 | 24448 | ;; |
ca81d7a0 JD |
24449 | esac | |
24450 | sort | |
24451 | ) | | |
503d2be0 | 24452 | sed ' |
ca81d7a0 | 24453 | /^ac_cv_env_/b end |
503d2be0 | 24454 | t clear |
ca81d7a0 | 24455 | :clear |
503d2be0 AS |
24456 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
24457 | t end | |
ca81d7a0 JD |
24458 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
24459 | :end' >>confcache | |
24460 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
24461 | if test -w "$cache_file"; then | |
24462 | test "x$cache_file" != "x/dev/null" && | |
24463 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 | |
24464 | echo "$as_me: updating cache $cache_file" >&6;} | |
503d2be0 | 24465 | cat confcache >$cache_file |
ba4481b5 | 24466 | else |
ca81d7a0 JD |
24467 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
24468 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
ba4481b5 DL |
24469 | fi |
24470 | fi | |
24471 | rm -f confcache | |
24472 | ||
ba4481b5 DL |
24473 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
24474 | # Let make expand exec_prefix. | |
24475 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
24476 | ||
ba4481b5 DL |
24477 | DEFS=-DHAVE_CONFIG_H |
24478 | ||
6bae0ccf DL |
24479 | ac_libobjs= |
24480 | ac_ltlibobjs= | |
24481 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
24482 | # 1. Remove the extension, and $U if already installed. | |
ca81d7a0 JD |
24483 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
24484 | ac_i=`echo "$ac_i" | sed "$ac_script"` | |
24485 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
24486 | # will be set to the directory where LIBOBJS objects are built. | |
24487 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
24488 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
6bae0ccf DL |
24489 | done |
24490 | LIBOBJS=$ac_libobjs | |
24491 | ||
24492 | LTLIBOBJS=$ac_ltlibobjs | |
24493 | ||
24494 | ||
c0d27fcc | 24495 | |
ba4481b5 | 24496 | : ${CONFIG_STATUS=./config.status} |
503d2be0 AS |
24497 | ac_clean_files_save=$ac_clean_files |
24498 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
c0d27fcc | 24499 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
503d2be0 AS |
24500 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
24501 | cat >$CONFIG_STATUS <<_ACEOF | |
24502 | #! $SHELL | |
c0d27fcc | 24503 | # Generated by $as_me. |
ba4481b5 | 24504 | # Run this file to recreate the current configuration. |
ba4481b5 | 24505 | # Compiler output produced by configure, useful for debugging |
503d2be0 | 24506 | # configure, is in config.log if it exists. |
ba4481b5 | 24507 | |
503d2be0 | 24508 | debug=false |
19650fd6 AS |
24509 | ac_cs_recheck=false |
24510 | ac_cs_silent=false | |
503d2be0 | 24511 | SHELL=\${CONFIG_SHELL-$SHELL} |
503d2be0 AS |
24512 | _ACEOF |
24513 | ||
24514 | cat >>$CONFIG_STATUS <<\_ACEOF | |
c0d27fcc MR |
24515 | ## --------------------- ## |
24516 | ## M4sh Initialization. ## | |
24517 | ## --------------------- ## | |
24518 | ||
f053c89f CY |
24519 | # Be more Bourne compatible |
24520 | DUALCASE=1; export DUALCASE # for MKS sh | |
503d2be0 AS |
24521 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
24522 | emulate sh | |
24523 | NULLCMD=: | |
6bae0ccf DL |
24524 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
24525 | # is contrary to our usage. Disable this feature. | |
24526 | alias -g '${1+"$@"}'='"$@"' | |
ca81d7a0 JD |
24527 | setopt NO_GLOB_SUBST |
24528 | else | |
f053c89f CY |
24529 | case `(set -o) 2>/dev/null` in |
24530 | *posix*) set -o posix ;; | |
24531 | esac | |
24532 | ||
503d2be0 | 24533 | fi |
f053c89f CY |
24534 | |
24535 | ||
503d2be0 | 24536 | |
ca81d7a0 JD |
24537 | |
24538 | # PATH needs CR | |
24539 | # Avoid depending upon Character Ranges. | |
24540 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
24541 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
24542 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
24543 | as_cr_digits='0123456789' | |
24544 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
24545 | ||
24546 | # The user is always right. | |
24547 | if test "${PATH_SEPARATOR+set}" != set; then | |
24548 | echo "#! /bin/sh" >conf$$.sh | |
24549 | echo "exit 0" >>conf$$.sh | |
24550 | chmod +x conf$$.sh | |
24551 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
24552 | PATH_SEPARATOR=';' | |
24553 | else | |
24554 | PATH_SEPARATOR=: | |
24555 | fi | |
24556 | rm -f conf$$.sh | |
503d2be0 AS |
24557 | fi |
24558 | ||
c0d27fcc | 24559 | # Support unset when possible. |
edfaf76d | 24560 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
c0d27fcc MR |
24561 | as_unset=unset |
24562 | else | |
24563 | as_unset=false | |
24564 | fi | |
24565 | ||
6bae0ccf | 24566 | |
ca81d7a0 JD |
24567 | # IFS |
24568 | # We need space, tab and new line, in precisely that order. Quoting is | |
24569 | # there to prevent editors from complaining about space-tab. | |
24570 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
24571 | # splitting by setting IFS to empty value.) | |
24572 | as_nl=' | |
24573 | ' | |
24574 | IFS=" "" $as_nl" | |
24575 | ||
24576 | # Find who we are. Look in the path if we contain no directory separator. | |
24577 | case $0 in | |
24578 | *[\\/]* ) as_myself=$0 ;; | |
24579 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
24580 | for as_dir in $PATH | |
24581 | do | |
24582 | IFS=$as_save_IFS | |
24583 | test -z "$as_dir" && as_dir=. | |
24584 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
24585 | done | |
24586 | IFS=$as_save_IFS | |
24587 | ||
24588 | ;; | |
24589 | esac | |
24590 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
24591 | # in which case we are not to be found in the path. | |
24592 | if test "x$as_myself" = x; then | |
24593 | as_myself=$0 | |
24594 | fi | |
24595 | if test ! -f "$as_myself"; then | |
24596 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
24597 | { (exit 1); exit 1; } | |
24598 | fi | |
24599 | ||
6bae0ccf | 24600 | # Work around bugs in pre-3.0 UWIN ksh. |
ca81d7a0 JD |
24601 | for as_var in ENV MAIL MAILPATH |
24602 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
24603 | done | |
6bae0ccf DL |
24604 | PS1='$ ' |
24605 | PS2='> ' | |
24606 | PS4='+ ' | |
24607 | ||
24608 | # NLS nuisances. | |
19650fd6 AS |
24609 | for as_var in \ |
24610 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
24611 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
24612 | LC_TELEPHONE LC_TIME | |
6bae0ccf | 24613 | do |
edfaf76d | 24614 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
6bae0ccf DL |
24615 | eval $as_var=C; export $as_var |
24616 | else | |
ca81d7a0 | 24617 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
6bae0ccf DL |
24618 | fi |
24619 | done | |
24620 | ||
24621 | # Required to use basename. | |
ca81d7a0 JD |
24622 | if expr a : '\(a\)' >/dev/null 2>&1 && |
24623 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
6bae0ccf DL |
24624 | as_expr=expr |
24625 | else | |
24626 | as_expr=false | |
24627 | fi | |
24628 | ||
ca81d7a0 | 24629 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
6bae0ccf DL |
24630 | as_basename=basename |
24631 | else | |
24632 | as_basename=false | |
24633 | fi | |
c0d27fcc MR |
24634 | |
24635 | ||
503d2be0 | 24636 | # Name of the executable. |
ca81d7a0 | 24637 | as_me=`$as_basename -- "$0" || |
c0d27fcc MR |
24638 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
24639 | X"$0" : 'X\(//\)$' \| \ | |
ca81d7a0 | 24640 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
c0d27fcc | 24641 | echo X/"$0" | |
ca81d7a0 JD |
24642 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
24643 | s//\1/ | |
24644 | q | |
24645 | } | |
24646 | /^X\/\(\/\/\)$/{ | |
24647 | s//\1/ | |
24648 | q | |
24649 | } | |
24650 | /^X\/\(\/\).*/{ | |
24651 | s//\1/ | |
24652 | q | |
24653 | } | |
24654 | s/.*/./; q'` | |
c0d27fcc | 24655 | |
ca81d7a0 JD |
24656 | # CDPATH. |
24657 | $as_unset CDPATH | |
c0d27fcc MR |
24658 | |
24659 | ||
c0d27fcc | 24660 | |
c0d27fcc | 24661 | as_lineno_1=$LINENO |
c0d27fcc | 24662 | as_lineno_2=$LINENO |
c0d27fcc | 24663 | test "x$as_lineno_1" != "x$as_lineno_2" && |
ca81d7a0 | 24664 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
c0d27fcc MR |
24665 | |
24666 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
24667 | # uniformly replaced by the line number. The first 'sed' inserts a | |
ca81d7a0 JD |
24668 | # line-number line after each line using $LINENO; the second 'sed' |
24669 | # does the real work. The second script uses 'N' to pair each | |
24670 | # line-number line with the line containing $LINENO, and appends | |
24671 | # trailing '-' during substitution so that $LINENO is not a special | |
24672 | # case at line end. | |
c0d27fcc | 24673 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
ca81d7a0 JD |
24674 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
24675 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
24676 | sed -n ' | |
24677 | p | |
24678 | /[$]LINENO/= | |
24679 | ' <$as_myself | | |
c0d27fcc | 24680 | sed ' |
ca81d7a0 JD |
24681 | s/[$]LINENO.*/&-/ |
24682 | t lineno | |
24683 | b | |
24684 | :lineno | |
c0d27fcc | 24685 | N |
ca81d7a0 JD |
24686 | :loop |
24687 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
c0d27fcc | 24688 | t loop |
ca81d7a0 | 24689 | s/-\n.*// |
c0d27fcc | 24690 | ' >$as_me.lineno && |
ca81d7a0 JD |
24691 | chmod +x "$as_me.lineno" || |
24692 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
c0d27fcc MR |
24693 | { (exit 1); exit 1; }; } |
24694 | ||
24695 | # Don't try to exec as it changes $[0], causing all sort of problems | |
24696 | # (the dirname of $[0] is not the place where we might find the | |
ca81d7a0 JD |
24697 | # original and so on. Autoconf is especially sensitive to this). |
24698 | . "./$as_me.lineno" | |
c0d27fcc MR |
24699 | # Exit status is that of the last command. |
24700 | exit | |
24701 | } | |
24702 | ||
24703 | ||
ca81d7a0 JD |
24704 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
24705 | as_dirname=dirname | |
24706 | else | |
24707 | as_dirname=false | |
24708 | fi | |
24709 | ||
24710 | ECHO_C= ECHO_N= ECHO_T= | |
24711 | case `echo -n x` in | |
24712 | -n*) | |
24713 | case `echo 'x\c'` in | |
24714 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
24715 | *) ECHO_C='\c';; | |
24716 | esac;; | |
24717 | *) | |
24718 | ECHO_N='-n';; | |
c0d27fcc | 24719 | esac |
503d2be0 | 24720 | |
ca81d7a0 JD |
24721 | if expr a : '\(a\)' >/dev/null 2>&1 && |
24722 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
503d2be0 AS |
24723 | as_expr=expr |
24724 | else | |
24725 | as_expr=false | |
24726 | fi | |
24727 | ||
24728 | rm -f conf$$ conf$$.exe conf$$.file | |
ca81d7a0 JD |
24729 | if test -d conf$$.dir; then |
24730 | rm -f conf$$.dir/conf$$.file | |
24731 | else | |
24732 | rm -f conf$$.dir | |
24733 | mkdir conf$$.dir | |
24734 | fi | |
503d2be0 AS |
24735 | echo >conf$$.file |
24736 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
ca81d7a0 JD |
24737 | as_ln_s='ln -s' |
24738 | # ... but there are two gotchas: | |
24739 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
24740 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
24741 | # In both cases, we have to default to `cp -p'. | |
24742 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
503d2be0 | 24743 | as_ln_s='cp -p' |
503d2be0 AS |
24744 | elif ln conf$$.file conf$$ 2>/dev/null; then |
24745 | as_ln_s=ln | |
24746 | else | |
24747 | as_ln_s='cp -p' | |
24748 | fi | |
ca81d7a0 JD |
24749 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
24750 | rmdir conf$$.dir 2>/dev/null | |
503d2be0 | 24751 | |
6bae0ccf DL |
24752 | if mkdir -p . 2>/dev/null; then |
24753 | as_mkdir_p=: | |
24754 | else | |
edfaf76d | 24755 | test -d ./-p && rmdir ./-p |
6bae0ccf DL |
24756 | as_mkdir_p=false |
24757 | fi | |
24758 | ||
f053c89f CY |
24759 | if test -x / >/dev/null 2>&1; then |
24760 | as_test_x='test -x' | |
ca81d7a0 | 24761 | else |
f053c89f CY |
24762 | if ls -dL / >/dev/null 2>&1; then |
24763 | as_ls_L_option=L | |
24764 | else | |
24765 | as_ls_L_option= | |
24766 | fi | |
24767 | as_test_x=' | |
24768 | eval sh -c '\'' | |
24769 | if test -d "$1"; then | |
24770 | test -d "$1/."; | |
24771 | else | |
24772 | case $1 in | |
24773 | -*)set "./$1";; | |
24774 | esac; | |
24775 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
24776 | ???[sx]*):;;*)false;;esac;fi | |
24777 | '\'' sh | |
24778 | ' | |
ca81d7a0 | 24779 | fi |
f053c89f | 24780 | as_executable_p=$as_test_x |
503d2be0 | 24781 | |
c0d27fcc | 24782 | # Sed expression to map a string onto a valid CPP name. |
edfaf76d | 24783 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
c0d27fcc MR |
24784 | |
24785 | # Sed expression to map a string onto a valid variable name. | |
edfaf76d | 24786 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
503d2be0 | 24787 | |
503d2be0 | 24788 | |
503d2be0 AS |
24789 | exec 6>&1 |
24790 | ||
ca81d7a0 | 24791 | # Save the log message, to keep $[0] and so on meaningful, and to |
c0d27fcc | 24792 | # report actual input values of CONFIG_FILES etc. instead of their |
ca81d7a0 JD |
24793 | # values after options handling. |
24794 | ac_log=" | |
5d374ce1 | 24795 | This file was extended by emacs $as_me 23.0.60, which was |
f053c89f | 24796 | generated by GNU Autoconf 2.61. Invocation command line was |
c0d27fcc MR |
24797 | |
24798 | CONFIG_FILES = $CONFIG_FILES | |
24799 | CONFIG_HEADERS = $CONFIG_HEADERS | |
24800 | CONFIG_LINKS = $CONFIG_LINKS | |
24801 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
24802 | $ $0 $@ | |
24803 | ||
ca81d7a0 JD |
24804 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
24805 | " | |
24806 | ||
503d2be0 AS |
24807 | _ACEOF |
24808 | ||
ca81d7a0 | 24809 | cat >>$CONFIG_STATUS <<_ACEOF |
503d2be0 | 24810 | # Files that config.status was made for. |
ca81d7a0 JD |
24811 | config_files="$ac_config_files" |
24812 | config_headers="$ac_config_headers" | |
24813 | config_commands="$ac_config_commands" | |
503d2be0 | 24814 | |
ca81d7a0 | 24815 | _ACEOF |
503d2be0 | 24816 | |
c0d27fcc | 24817 | cat >>$CONFIG_STATUS <<\_ACEOF |
503d2be0 AS |
24818 | ac_cs_usage="\ |
24819 | \`$as_me' instantiates files from templates according to the | |
24820 | current configuration. | |
24821 | ||
24822 | Usage: $0 [OPTIONS] [FILE]... | |
24823 | ||
24824 | -h, --help print this help, then exit | |
f053c89f | 24825 | -V, --version print version number and configuration settings, then exit |
19650fd6 | 24826 | -q, --quiet do not print progress messages |
503d2be0 AS |
24827 | -d, --debug don't remove temporary files |
24828 | --recheck update $as_me by reconfiguring in the same conditions | |
24829 | --file=FILE[:TEMPLATE] | |
edfaf76d | 24830 | instantiate the configuration file FILE |
503d2be0 | 24831 | --header=FILE[:TEMPLATE] |
edfaf76d | 24832 | instantiate the configuration header FILE |
503d2be0 AS |
24833 | |
24834 | Configuration files: | |
24835 | $config_files | |
24836 | ||
24837 | Configuration headers: | |
24838 | $config_headers | |
24839 | ||
24840 | Configuration commands: | |
24841 | $config_commands | |
24842 | ||
24843 | Report bugs to <bug-autoconf@gnu.org>." | |
503d2be0 | 24844 | |
ca81d7a0 | 24845 | _ACEOF |
c0d27fcc | 24846 | cat >>$CONFIG_STATUS <<_ACEOF |
503d2be0 | 24847 | ac_cs_version="\\ |
5d374ce1 | 24848 | emacs config.status 23.0.60 |
f053c89f | 24849 | configured by $0, generated by GNU Autoconf 2.61, |
ca81d7a0 | 24850 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
503d2be0 | 24851 | |
ca81d7a0 | 24852 | Copyright (C) 2006 Free Software Foundation, Inc. |
503d2be0 AS |
24853 | This config.status script is free software; the Free Software Foundation |
24854 | gives unlimited permission to copy, distribute and modify it." | |
ca81d7a0 JD |
24855 | |
24856 | ac_pwd='$ac_pwd' | |
24857 | srcdir='$srcdir' | |
24858 | INSTALL='$INSTALL' | |
c0d27fcc | 24859 | _ACEOF |
503d2be0 | 24860 | |
c0d27fcc | 24861 | cat >>$CONFIG_STATUS <<\_ACEOF |
503d2be0 AS |
24862 | # If no file are specified by the user, then we need to provide default |
24863 | # value. By we need to know if files were specified by the user. | |
24864 | ac_need_defaults=: | |
24865 | while test $# != 0 | |
ba4481b5 | 24866 | do |
503d2be0 AS |
24867 | case $1 in |
24868 | --*=*) | |
ca81d7a0 JD |
24869 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
24870 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
6bae0ccf DL |
24871 | ac_shift=: |
24872 | ;; | |
ca81d7a0 | 24873 | *) |
6bae0ccf DL |
24874 | ac_option=$1 |
24875 | ac_optarg=$2 | |
24876 | ac_shift=shift | |
503d2be0 | 24877 | ;; |
503d2be0 AS |
24878 | esac |
24879 | ||
6bae0ccf | 24880 | case $ac_option in |
503d2be0 | 24881 | # Handling of the options. |
19650fd6 AS |
24882 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
24883 | ac_cs_recheck=: ;; | |
ca81d7a0 JD |
24884 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
24885 | echo "$ac_cs_version"; exit ;; | |
24886 | --debug | --debu | --deb | --de | --d | -d ) | |
503d2be0 AS |
24887 | debug=: ;; |
24888 | --file | --fil | --fi | --f ) | |
6bae0ccf DL |
24889 | $ac_shift |
24890 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
503d2be0 AS |
24891 | ac_need_defaults=false;; |
24892 | --header | --heade | --head | --hea ) | |
6bae0ccf DL |
24893 | $ac_shift |
24894 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
503d2be0 | 24895 | ac_need_defaults=false;; |
ca81d7a0 JD |
24896 | --he | --h) |
24897 | # Conflict between --help and --header | |
24898 | { echo "$as_me: error: ambiguous option: $1 | |
24899 | Try \`$0 --help' for more information." >&2 | |
24900 | { (exit 1); exit 1; }; };; | |
24901 | --help | --hel | -h ) | |
24902 | echo "$ac_cs_usage"; exit ;; | |
19650fd6 AS |
24903 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
24904 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
24905 | ac_cs_silent=: ;; | |
503d2be0 AS |
24906 | |
24907 | # This is an error. | |
ca81d7a0 JD |
24908 | -*) { echo "$as_me: error: unrecognized option: $1 |
24909 | Try \`$0 --help' for more information." >&2 | |
503d2be0 AS |
24910 | { (exit 1); exit 1; }; } ;; |
24911 | ||
ca81d7a0 JD |
24912 | *) ac_config_targets="$ac_config_targets $1" |
24913 | ac_need_defaults=false ;; | |
503d2be0 | 24914 | |
ba4481b5 | 24915 | esac |
503d2be0 | 24916 | shift |
ba4481b5 DL |
24917 | done |
24918 | ||
19650fd6 AS |
24919 | ac_configure_extra_args= |
24920 | ||
24921 | if $ac_cs_silent; then | |
24922 | exec 6>/dev/null | |
24923 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
24924 | fi | |
24925 | ||
24926 | _ACEOF | |
24927 | cat >>$CONFIG_STATUS <<_ACEOF | |
24928 | if \$ac_cs_recheck; then | |
ca81d7a0 JD |
24929 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
24930 | CONFIG_SHELL=$SHELL | |
24931 | export CONFIG_SHELL | |
24932 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
19650fd6 AS |
24933 | fi |
24934 | ||
503d2be0 | 24935 | _ACEOF |
ca81d7a0 JD |
24936 | cat >>$CONFIG_STATUS <<\_ACEOF |
24937 | exec 5>>config.log | |
24938 | { | |
24939 | echo | |
24940 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
24941 | ## Running $as_me. ## | |
24942 | _ASBOX | |
24943 | echo "$ac_log" | |
24944 | } >&5 | |
ba4481b5 | 24945 | |
ca81d7a0 | 24946 | _ACEOF |
c0d27fcc | 24947 | cat >>$CONFIG_STATUS <<_ACEOF |
503d2be0 | 24948 | # |
ca81d7a0 | 24949 | # INIT-COMMANDS |
503d2be0 | 24950 | # |
503d2be0 AS |
24951 | GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" |
24952 | ||
c0d27fcc MR |
24953 | _ACEOF |
24954 | ||
c0d27fcc | 24955 | cat >>$CONFIG_STATUS <<\_ACEOF |
ca81d7a0 JD |
24956 | |
24957 | # Handling of arguments. | |
503d2be0 AS |
24958 | for ac_config_target in $ac_config_targets |
24959 | do | |
ca81d7a0 JD |
24960 | case $ac_config_target in |
24961 | "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;; | |
24962 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
24963 | "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;; | |
24964 | "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;; | |
f657c21b GM |
24965 | "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;; |
24966 | "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;; | |
24967 | "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;; | |
24968 | "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;; | |
ca81d7a0 | 24969 | "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;; |
f657c21b | 24970 | "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;; |
ca81d7a0 | 24971 | "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;; |
ca81d7a0 JD |
24972 | "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;; |
24973 | "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | |
24974 | ||
c0d27fcc | 24975 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
503d2be0 AS |
24976 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
24977 | { (exit 1); exit 1; }; };; | |
24978 | esac | |
ba4481b5 | 24979 | done |
503d2be0 | 24980 | |
ca81d7a0 | 24981 | |
503d2be0 AS |
24982 | # If the user did not use the arguments to specify the items to instantiate, |
24983 | # then the envvar interface is used. Set only those that are not. | |
24984 | # We use the long form for the default assignment because of an extremely | |
24985 | # bizarre bug on SunOS 4.1.3. | |
24986 | if $ac_need_defaults; then | |
24987 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
24988 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
24989 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
ba4481b5 | 24990 | fi |
503d2be0 | 24991 | |
19650fd6 | 24992 | # Have a temporary directory for convenience. Make it in the build tree |
ca81d7a0 | 24993 | # simply because there is no reason against having it here, and in addition, |
19650fd6 | 24994 | # creating and moving files from /tmp can sometimes cause problems. |
ca81d7a0 JD |
24995 | # Hook for its removal unless debugging. |
24996 | # Note that there is a small window in which the directory will not be cleaned: | |
24997 | # after its creation but before its name has been assigned to `$tmp'. | |
503d2be0 AS |
24998 | $debug || |
24999 | { | |
ca81d7a0 JD |
25000 | tmp= |
25001 | trap 'exit_status=$? | |
25002 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
25003 | ' 0 | |
503d2be0 AS |
25004 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
25005 | } | |
503d2be0 | 25006 | # Create a (secure) tmp directory for tmp files. |
19650fd6 | 25007 | |
503d2be0 | 25008 | { |
ca81d7a0 | 25009 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
503d2be0 AS |
25010 | test -n "$tmp" && test -d "$tmp" |
25011 | } || | |
25012 | { | |
ca81d7a0 JD |
25013 | tmp=./conf$$-$RANDOM |
25014 | (umask 077 && mkdir "$tmp") | |
503d2be0 AS |
25015 | } || |
25016 | { | |
19650fd6 | 25017 | echo "$me: cannot create a temporary directory in ." >&2 |
503d2be0 AS |
25018 | { (exit 1); exit 1; } |
25019 | } | |
25020 | ||
503d2be0 | 25021 | # |
ca81d7a0 | 25022 | # Set up the sed scripts for CONFIG_FILES section. |
503d2be0 AS |
25023 | # |
25024 | ||
25025 | # No need to generate the scripts if there are no CONFIG_FILES. | |
25026 | # This happens for instance when ./config.status config.h | |
ca81d7a0 JD |
25027 | if test -n "$CONFIG_FILES"; then |
25028 | ||
25029 | _ACEOF | |
25030 | ||
25031 | ||
25032 | ||
25033 | ac_delim='%!_!# ' | |
25034 | for ac_last_try in false false false false false :; do | |
25035 | cat >conf$$subs.sed <<_ACEOF | |
25036 | SHELL!$SHELL$ac_delim | |
25037 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim | |
25038 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim | |
25039 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim | |
25040 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim | |
25041 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim | |
25042 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim | |
25043 | exec_prefix!$exec_prefix$ac_delim | |
25044 | prefix!$prefix$ac_delim | |
25045 | program_transform_name!$program_transform_name$ac_delim | |
25046 | bindir!$bindir$ac_delim | |
25047 | sbindir!$sbindir$ac_delim | |
25048 | libexecdir!$libexecdir$ac_delim | |
25049 | datarootdir!$datarootdir$ac_delim | |
25050 | datadir!$datadir$ac_delim | |
25051 | sysconfdir!$sysconfdir$ac_delim | |
25052 | sharedstatedir!$sharedstatedir$ac_delim | |
25053 | localstatedir!$localstatedir$ac_delim | |
25054 | includedir!$includedir$ac_delim | |
25055 | oldincludedir!$oldincludedir$ac_delim | |
25056 | docdir!$docdir$ac_delim | |
25057 | infodir!$infodir$ac_delim | |
25058 | htmldir!$htmldir$ac_delim | |
25059 | dvidir!$dvidir$ac_delim | |
25060 | pdfdir!$pdfdir$ac_delim | |
25061 | psdir!$psdir$ac_delim | |
25062 | libdir!$libdir$ac_delim | |
25063 | localedir!$localedir$ac_delim | |
25064 | mandir!$mandir$ac_delim | |
25065 | DEFS!$DEFS$ac_delim | |
25066 | ECHO_C!$ECHO_C$ac_delim | |
25067 | ECHO_N!$ECHO_N$ac_delim | |
25068 | ECHO_T!$ECHO_T$ac_delim | |
25069 | LIBS!$LIBS$ac_delim | |
25070 | build_alias!$build_alias$ac_delim | |
25071 | host_alias!$host_alias$ac_delim | |
25072 | target_alias!$target_alias$ac_delim | |
25073 | MAINT!$MAINT$ac_delim | |
25074 | build!$build$ac_delim | |
25075 | build_cpu!$build_cpu$ac_delim | |
25076 | build_vendor!$build_vendor$ac_delim | |
25077 | build_os!$build_os$ac_delim | |
25078 | host!$host$ac_delim | |
25079 | host_cpu!$host_cpu$ac_delim | |
25080 | host_vendor!$host_vendor$ac_delim | |
25081 | host_os!$host_os$ac_delim | |
25082 | CC!$CC$ac_delim | |
25083 | CFLAGS!$CFLAGS$ac_delim | |
25084 | LDFLAGS!$LDFLAGS$ac_delim | |
25085 | CPPFLAGS!$CPPFLAGS$ac_delim | |
25086 | ac_ct_CC!$ac_ct_CC$ac_delim | |
25087 | EXEEXT!$EXEEXT$ac_delim | |
25088 | OBJEXT!$OBJEXT$ac_delim | |
25089 | CPP!$CPP$ac_delim | |
25090 | GREP!$GREP$ac_delim | |
25091 | EGREP!$EGREP$ac_delim | |
25092 | LN_S!$LN_S$ac_delim | |
25093 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim | |
25094 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim | |
25095 | INSTALL_DATA!$INSTALL_DATA$ac_delim | |
25096 | RANLIB!$RANLIB$ac_delim | |
25097 | INSTALL_INFO!$INSTALL_INFO$ac_delim | |
25098 | GZIP_PROG!$GZIP_PROG$ac_delim | |
1bb9a689 | 25099 | MAKEINFO!$MAKEINFO$ac_delim |
ca81d7a0 JD |
25100 | LIBSOUND!$LIBSOUND$ac_delim |
25101 | PKG_CONFIG!$PKG_CONFIG$ac_delim | |
25102 | ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim | |
25103 | ALSA_LIBS!$ALSA_LIBS$ac_delim | |
25104 | CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim | |
25105 | SET_MAKE!$SET_MAKE$ac_delim | |
25106 | XMKMF!$XMKMF$ac_delim | |
cfe440b8 | 25107 | HAVE_XSERVER!$HAVE_XSERVER$ac_delim |
0cfc0546 GM |
25108 | RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim |
25109 | RSVG_LIBS!$RSVG_LIBS$ac_delim | |
ca81d7a0 JD |
25110 | GTK_CFLAGS!$GTK_CFLAGS$ac_delim |
25111 | GTK_LIBS!$GTK_LIBS$ac_delim | |
131e4133 MA |
25112 | DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim |
25113 | DBUS_LIBS!$DBUS_LIBS$ac_delim | |
c24fa7dc MB |
25114 | XFT_CFLAGS!$XFT_CFLAGS$ac_delim |
25115 | XFT_LIBS!$XFT_LIBS$ac_delim | |
25116 | FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim | |
25117 | FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim | |
25118 | FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim | |
25119 | FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim | |
c24fa7dc MB |
25120 | LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim |
25121 | LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim | |
7f0942ba KH |
25122 | M17N_FLT_CFLAGS!$M17N_FLT_CFLAGS$ac_delim |
25123 | M17N_FLT_LIBS!$M17N_FLT_LIBS$ac_delim | |
ca81d7a0 JD |
25124 | ALLOCA!$ALLOCA$ac_delim |
25125 | liblockfile!$liblockfile$ac_delim | |
25126 | LIBOBJS!$LIBOBJS$ac_delim | |
25127 | NEED_SETGID!$NEED_SETGID$ac_delim | |
25128 | KMEM_GROUP!$KMEM_GROUP$ac_delim | |
25129 | GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim | |
25130 | GETOPT_H!$GETOPT_H$ac_delim | |
25131 | GETOPTOBJS!$GETOPTOBJS$ac_delim | |
e70b2110 | 25132 | version!$version$ac_delim |
ca81d7a0 JD |
25133 | _ACEOF |
25134 | ||
25135 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then | |
25136 | break | |
25137 | elif $ac_last_try; then | |
25138 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
25139 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
25140 | { (exit 1); exit 1; }; } | |
25141 | else | |
25142 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
8eeae1c9 | 25143 | fi |
ca81d7a0 JD |
25144 | done |
25145 | ||
25146 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | |
25147 | if test -n "$ac_eof"; then | |
25148 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | |
25149 | ac_eof=`expr $ac_eof + 1` | |
25150 | fi | |
503d2be0 | 25151 | |
c0d27fcc | 25152 | cat >>$CONFIG_STATUS <<_ACEOF |
ca81d7a0 JD |
25153 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
25154 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
25155 | _ACEOF | |
25156 | sed ' | |
25157 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | |
25158 | s/^/s,@/; s/!/@,|#_!!_#|/ | |
25159 | :n | |
25160 | t n | |
25161 | s/'"$ac_delim"'$/,g/; t | |
25162 | s/$/\\/; p | |
25163 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | |
25164 | ' >>$CONFIG_STATUS <conf$$subs.sed | |
25165 | rm -f conf$$subs.sed | |
25166 | cat >>$CONFIG_STATUS <<_ACEOF | |
25167 | CEOF$ac_eof | |
25168 | _ACEOF | |
503d2be0 | 25169 | |
ca81d7a0 JD |
25170 | |
25171 | ac_delim='%!_!# ' | |
25172 | for ac_last_try in false false false false false :; do | |
25173 | cat >conf$$subs.sed <<_ACEOF | |
0bd50841 | 25174 | configuration!$configuration$ac_delim |
7f0942ba KH |
25175 | canonical!$canonical$ac_delim |
25176 | srcdir!$srcdir$ac_delim | |
1bb9a689 MB |
25177 | lispdir!$lispdir$ac_delim |
25178 | locallisppath!$locallisppath$ac_delim | |
25179 | lisppath!$lisppath$ac_delim | |
9bdeb5e9 MB |
25180 | x_default_search_path!$x_default_search_path$ac_delim |
25181 | etcdir!$etcdir$ac_delim | |
25182 | archlibdir!$archlibdir$ac_delim | |
25183 | bitmapdir!$bitmapdir$ac_delim | |
25184 | gamedir!$gamedir$ac_delim | |
25185 | gameuser!$gameuser$ac_delim | |
25186 | c_switch_system!$c_switch_system$ac_delim | |
c24fa7dc MB |
25187 | c_switch_machine!$c_switch_machine$ac_delim |
25188 | LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim | |
25189 | LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim | |
ca81d7a0 JD |
25190 | C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim |
25191 | X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim | |
25192 | machfile!$machfile$ac_delim | |
25193 | opsysfile!$opsysfile$ac_delim | |
25194 | carbon_appdir!$carbon_appdir$ac_delim | |
25195 | LTLIBOBJS!$LTLIBOBJS$ac_delim | |
25196 | _ACEOF | |
503d2be0 | 25197 | |
e70b2110 | 25198 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 22; then |
c24fa7dc MB |
25199 | break |
25200 | elif $ac_last_try; then | |
25201 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
25202 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
25203 | { (exit 1); exit 1; }; } | |
25204 | else | |
25205 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
503d2be0 | 25206 | fi |
ca81d7a0 JD |
25207 | done |
25208 | ||
25209 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | |
25210 | if test -n "$ac_eof"; then | |
25211 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | |
25212 | ac_eof=`expr $ac_eof + 1` | |
25213 | fi | |
ba4481b5 | 25214 | |
ca81d7a0 JD |
25215 | cat >>$CONFIG_STATUS <<_ACEOF |
25216 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof | |
25217 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end | |
25218 | _ACEOF | |
25219 | sed ' | |
25220 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | |
25221 | s/^/s,@/; s/!/@,|#_!!_#|/ | |
25222 | :n | |
25223 | t n | |
25224 | s/'"$ac_delim"'$/,g/; t | |
25225 | s/$/\\/; p | |
25226 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | |
25227 | ' >>$CONFIG_STATUS <conf$$subs.sed | |
25228 | rm -f conf$$subs.sed | |
25229 | cat >>$CONFIG_STATUS <<_ACEOF | |
25230 | :end | |
25231 | s/|#_!!_#|//g | |
25232 | CEOF$ac_eof | |
c0d27fcc | 25233 | _ACEOF |
ca81d7a0 JD |
25234 | |
25235 | ||
25236 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
25237 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
25238 | # trailing colons and then remove the whole line if VPATH becomes empty | |
25239 | # (actually we leave an empty line to preserve line numbers). | |
25240 | if test "x$srcdir" = x.; then | |
25241 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
25242 | s/:*\$(srcdir):*/:/ | |
25243 | s/:*\${srcdir}:*/:/ | |
25244 | s/:*@srcdir@:*/:/ | |
25245 | s/^\([^=]*=[ ]*\):*/\1/ | |
25246 | s/:*$// | |
25247 | s/^[^=]*=[ ]*$// | |
25248 | }' | |
25249 | fi | |
25250 | ||
c0d27fcc | 25251 | cat >>$CONFIG_STATUS <<\_ACEOF |
ca81d7a0 JD |
25252 | fi # test -n "$CONFIG_FILES" |
25253 | ||
25254 | ||
25255 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS | |
25256 | do | |
25257 | case $ac_tag in | |
25258 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
25259 | esac | |
25260 | case $ac_mode$ac_tag in | |
25261 | :[FHL]*:*);; | |
25262 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 | |
25263 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} | |
25264 | { (exit 1); exit 1; }; };; | |
25265 | :[FH]-) ac_tag=-:-;; | |
25266 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
25267 | esac | |
25268 | ac_save_IFS=$IFS | |
25269 | IFS=: | |
25270 | set x $ac_tag | |
25271 | IFS=$ac_save_IFS | |
25272 | shift | |
25273 | ac_file=$1 | |
25274 | shift | |
25275 | ||
25276 | case $ac_mode in | |
25277 | :L) ac_source=$1;; | |
25278 | :[FH]) | |
25279 | ac_file_inputs= | |
25280 | for ac_f | |
25281 | do | |
25282 | case $ac_f in | |
25283 | -) ac_f="$tmp/stdin";; | |
25284 | *) # Look for the file first in the build tree, then in the source tree | |
25285 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
25286 | # because $ac_f cannot contain `:'. | |
25287 | test -f "$ac_f" || | |
25288 | case $ac_f in | |
25289 | [\\/$]*) false;; | |
25290 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
25291 | esac || | |
25292 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 | |
25293 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
25294 | { (exit 1); exit 1; }; };; | |
25295 | esac | |
25296 | ac_file_inputs="$ac_file_inputs $ac_f" | |
25297 | done | |
25298 | ||
25299 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
25300 | # use $as_me), people would be surprised to read: | |
25301 | # /* config.h. Generated by config.status. */ | |
25302 | configure_input="Generated from "`IFS=: | |
25303 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." | |
25304 | if test x"$ac_file" != x-; then | |
25305 | configure_input="$ac_file. $configure_input" | |
25306 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
25307 | echo "$as_me: creating $ac_file" >&6;} | |
25308 | fi | |
25309 | ||
25310 | case $ac_tag in | |
25311 | *:-:* | *:-) cat >"$tmp/stdin";; | |
25312 | esac | |
25313 | ;; | |
ba4481b5 DL |
25314 | esac |
25315 | ||
ca81d7a0 | 25316 | ac_dir=`$as_dirname -- "$ac_file" || |
c0d27fcc | 25317 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
edfaf76d LK |
25318 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
25319 | X"$ac_file" : 'X\(//\)$' \| \ | |
ca81d7a0 | 25320 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
503d2be0 | 25321 | echo X"$ac_file" | |
ca81d7a0 JD |
25322 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
25323 | s//\1/ | |
25324 | q | |
25325 | } | |
25326 | /^X\(\/\/\)[^/].*/{ | |
25327 | s//\1/ | |
25328 | q | |
25329 | } | |
25330 | /^X\(\/\/\)$/{ | |
25331 | s//\1/ | |
25332 | q | |
25333 | } | |
25334 | /^X\(\/\).*/{ | |
25335 | s//\1/ | |
25336 | q | |
25337 | } | |
25338 | s/.*/./; q'` | |
25339 | { as_dir="$ac_dir" | |
25340 | case $as_dir in #( | |
25341 | -*) as_dir=./$as_dir;; | |
25342 | esac | |
25343 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
6bae0ccf | 25344 | as_dirs= |
ca81d7a0 JD |
25345 | while :; do |
25346 | case $as_dir in #( | |
25347 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( | |
25348 | *) as_qdir=$as_dir;; | |
25349 | esac | |
25350 | as_dirs="'$as_qdir' $as_dirs" | |
25351 | as_dir=`$as_dirname -- "$as_dir" || | |
6bae0ccf | 25352 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
edfaf76d LK |
25353 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
25354 | X"$as_dir" : 'X\(//\)$' \| \ | |
ca81d7a0 | 25355 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
6bae0ccf | 25356 | echo X"$as_dir" | |
ca81d7a0 JD |
25357 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
25358 | s//\1/ | |
25359 | q | |
25360 | } | |
25361 | /^X\(\/\/\)[^/].*/{ | |
25362 | s//\1/ | |
25363 | q | |
25364 | } | |
25365 | /^X\(\/\/\)$/{ | |
25366 | s//\1/ | |
25367 | q | |
25368 | } | |
25369 | /^X\(\/\).*/{ | |
25370 | s//\1/ | |
25371 | q | |
25372 | } | |
25373 | s/.*/./; q'` | |
25374 | test -d "$as_dir" && break | |
6bae0ccf | 25375 | done |
ca81d7a0 JD |
25376 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
25377 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
25378 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
6bae0ccf | 25379 | { (exit 1); exit 1; }; }; } |
c0d27fcc | 25380 | ac_builddir=. |
98418dba | 25381 | |
ca81d7a0 JD |
25382 | case "$ac_dir" in |
25383 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
25384 | *) | |
c0d27fcc | 25385 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
ca81d7a0 JD |
25386 | # A ".." for each directory in $ac_dir_suffix. |
25387 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | |
25388 | case $ac_top_builddir_sub in | |
25389 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
25390 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
25391 | esac ;; | |
25392 | esac | |
25393 | ac_abs_top_builddir=$ac_pwd | |
25394 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
25395 | # for backward compatibility: | |
25396 | ac_top_builddir=$ac_top_build_prefix | |
c0d27fcc MR |
25397 | |
25398 | case $srcdir in | |
ca81d7a0 | 25399 | .) # We are building in place. |
c0d27fcc | 25400 | ac_srcdir=. |
ca81d7a0 JD |
25401 | ac_top_srcdir=$ac_top_builddir_sub |
25402 | ac_abs_top_srcdir=$ac_pwd ;; | |
25403 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
c0d27fcc | 25404 | ac_srcdir=$srcdir$ac_dir_suffix; |
ca81d7a0 JD |
25405 | ac_top_srcdir=$srcdir |
25406 | ac_abs_top_srcdir=$srcdir ;; | |
25407 | *) # Relative name. | |
25408 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
25409 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
25410 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
c0d27fcc | 25411 | esac |
ca81d7a0 | 25412 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
edfaf76d | 25413 | |
c0d27fcc | 25414 | |
ca81d7a0 JD |
25415 | case $ac_mode in |
25416 | :F) | |
25417 | # | |
25418 | # CONFIG_FILE | |
25419 | # | |
ba4481b5 | 25420 | |
503d2be0 AS |
25421 | case $INSTALL in |
25422 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
ca81d7a0 | 25423 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
ba4481b5 | 25424 | esac |
ca81d7a0 | 25425 | _ACEOF |
ba4481b5 | 25426 | |
ca81d7a0 JD |
25427 | cat >>$CONFIG_STATUS <<\_ACEOF |
25428 | # If the template does not know about datarootdir, expand it. | |
25429 | # FIXME: This hack should be removed a few years after 2.60. | |
25430 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
8eeae1c9 | 25431 | |
ca81d7a0 JD |
25432 | case `sed -n '/datarootdir/ { |
25433 | p | |
25434 | q | |
25435 | } | |
25436 | /@datadir@/p | |
25437 | /@docdir@/p | |
25438 | /@infodir@/p | |
25439 | /@localedir@/p | |
25440 | /@mandir@/p | |
25441 | ' $ac_file_inputs` in | |
25442 | *datarootdir*) ac_datarootdir_seen=yes;; | |
25443 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
25444 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
25445 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
8eeae1c9 | 25446 | _ACEOF |
ca81d7a0 JD |
25447 | cat >>$CONFIG_STATUS <<_ACEOF |
25448 | ac_datarootdir_hack=' | |
25449 | s&@datadir@&$datadir&g | |
25450 | s&@docdir@&$docdir&g | |
25451 | s&@infodir@&$infodir&g | |
25452 | s&@localedir@&$localedir&g | |
25453 | s&@mandir@&$mandir&g | |
25454 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
25455 | esac | |
c0d27fcc | 25456 | _ACEOF |
ca81d7a0 JD |
25457 | |
25458 | # Neutralize VPATH when `$srcdir' = `.'. | |
25459 | # Shell code in configure.ac might set extrasub. | |
25460 | # FIXME: do we really want to maintain this feature? | |
c0d27fcc | 25461 | cat >>$CONFIG_STATUS <<_ACEOF |
503d2be0 AS |
25462 | sed "$ac_vpsub |
25463 | $extrasub | |
c0d27fcc MR |
25464 | _ACEOF |
25465 | cat >>$CONFIG_STATUS <<\_ACEOF | |
503d2be0 AS |
25466 | :t |
25467 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
ca81d7a0 JD |
25468 | s&@configure_input@&$configure_input&;t t |
25469 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
25470 | s&@srcdir@&$ac_srcdir&;t t | |
25471 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
25472 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
25473 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
25474 | s&@builddir@&$ac_builddir&;t t | |
25475 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
25476 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
25477 | s&@INSTALL@&$ac_INSTALL&;t t | |
25478 | $ac_datarootdir_hack | |
25479 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out | |
25480 | ||
25481 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
25482 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
25483 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
25484 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
25485 | which seems to be undefined. Please make sure it is defined." >&5 | |
25486 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
25487 | which seems to be undefined. Please make sure it is defined." >&2;} | |
25488 | ||
25489 | rm -f "$tmp/stdin" | |
503d2be0 | 25490 | case $ac_file in |
ca81d7a0 JD |
25491 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
25492 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; | |
ba4481b5 | 25493 | esac |
ca81d7a0 JD |
25494 | ;; |
25495 | :H) | |
25496 | # | |
25497 | # CONFIG_HEADER | |
25498 | # | |
25499 | _ACEOF | |
25500 | ||
25501 | # Transform confdefs.h into a sed script `conftest.defines', that | |
25502 | # substitutes the proper values into config.h.in to produce config.h. | |
25503 | rm -f conftest.defines conftest.tail | |
25504 | # First, append a space to every undef/define line, to ease matching. | |
25505 | echo 's/$/ /' >conftest.defines | |
25506 | # Then, protect against being on the right side of a sed subst, or in | |
25507 | # an unquoted here document, in config.status. If some macros were | |
25508 | # called several times there might be several #defines for the same | |
25509 | # symbol, which is useless. But do not sort them, since the last | |
25510 | # AC_DEFINE must be honored. | |
25511 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
25512 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where | |
25513 | # NAME is the cpp macro being defined, VALUE is the value it is being given. | |
25514 | # PARAMS is the parameter list in the macro definition--in most cases, it's | |
25515 | # just an empty string. | |
25516 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' | |
25517 | ac_dB='\\)[ (].*,\\1define\\2' | |
25518 | ac_dC=' ' | |
25519 | ac_dD=' ,' | |
25520 | ||
25521 | uniq confdefs.h | | |
25522 | sed -n ' | |
25523 | t rset | |
25524 | :rset | |
25525 | s/^[ ]*#[ ]*define[ ][ ]*// | |
25526 | t ok | |
25527 | d | |
25528 | :ok | |
25529 | s/[\\&,]/\\&/g | |
25530 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p | |
25531 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p | |
25532 | ' >>conftest.defines | |
25533 | ||
25534 | # Remove the space that was appended to ease matching. | |
25535 | # Then replace #undef with comments. This is necessary, for | |
ba4481b5 DL |
25536 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
25537 | # on some systems where configure will not decide to define it. | |
ca81d7a0 JD |
25538 | # (The regexp can be short, since the line contains either #define or #undef.) |
25539 | echo 's/ $// | |
25540 | s,^[ #]*u.*,/* & */,' >>conftest.defines | |
25541 | ||
25542 | # Break up conftest.defines: | |
25543 | ac_max_sed_lines=50 | |
25544 | ||
25545 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" | |
25546 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" | |
25547 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" | |
25548 | # et cetera. | |
25549 | ac_in='$ac_file_inputs' | |
25550 | ac_out='"$tmp/out1"' | |
25551 | ac_nxt='"$tmp/out2"' | |
25552 | ||
25553 | while : | |
503d2be0 | 25554 | do |
ca81d7a0 JD |
25555 | # Write a here document: |
25556 | cat >>$CONFIG_STATUS <<_ACEOF | |
25557 | # First, check the format of the line: | |
25558 | cat >"\$tmp/defines.sed" <<\\CEOF | |
25559 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def | |
25560 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def | |
25561 | b | |
25562 | :def | |
25563 | _ACEOF | |
25564 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS | |
503d2be0 | 25565 | echo 'CEOF |
ca81d7a0 JD |
25566 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
25567 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in | |
25568 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail | |
25569 | grep . conftest.tail >/dev/null || break | |
503d2be0 AS |
25570 | rm -f conftest.defines |
25571 | mv conftest.tail conftest.defines | |
25572 | done | |
ca81d7a0 | 25573 | rm -f conftest.defines conftest.tail |
503d2be0 | 25574 | |
ca81d7a0 | 25575 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
c0d27fcc | 25576 | cat >>$CONFIG_STATUS <<\_ACEOF |
503d2be0 | 25577 | if test x"$ac_file" != x-; then |
ca81d7a0 JD |
25578 | echo "/* $configure_input */" >"$tmp/config.h" |
25579 | cat "$ac_result" >>"$tmp/config.h" | |
25580 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then | |
c0d27fcc | 25581 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
503d2be0 AS |
25582 | echo "$as_me: $ac_file is unchanged" >&6;} |
25583 | else | |
503d2be0 | 25584 | rm -f $ac_file |
ca81d7a0 | 25585 | mv "$tmp/config.h" $ac_file |
ba4481b5 | 25586 | fi |
503d2be0 | 25587 | else |
ca81d7a0 JD |
25588 | echo "/* $configure_input */" |
25589 | cat "$ac_result" | |
ba4481b5 | 25590 | fi |
ca81d7a0 JD |
25591 | rm -f "$tmp/out12" |
25592 | ;; | |
edfaf76d | 25593 | |
ca81d7a0 JD |
25594 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
25595 | echo "$as_me: executing $ac_file commands" >&6;} | |
25596 | ;; | |
25597 | esac | |
ba4481b5 | 25598 | |
c0d27fcc | 25599 | |
ca81d7a0 JD |
25600 | case $ac_file$ac_mode in |
25601 | "default":C) | |
ba4481b5 DL |
25602 | |
25603 | ### Make the necessary directories, if they don't exist. | |
25604 | for dir in etc lisp ; do | |
25605 | test -d ${dir} || mkdir ${dir} | |
25606 | done | |
25607 | ||
25608 | # Build src/Makefile from ${srcdir}/src/Makefile.c | |
25609 | # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c | |
25610 | # This must be done after src/config.h is built, since we rely on that file. | |
25611 | ||
25612 | # Now get this: Some word that is part of the ${srcdir} directory name | |
25613 | # or the ${configuration} value might, just might, happen to be an | |
25614 | # identifier like `sun4' or `i386' or something, and be predefined by | |
25615 | # the C preprocessor to some helpful value like 1, or maybe the empty | |
25616 | # string. Needless to say consequent macro substitutions are less | |
25617 | # than conducive to the makefile finding the correct directory. | |
25618 | undefs="`echo $top_srcdir $configuration $canonical | | |
25619 | sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \ | |
25620 | -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \ | |
25621 | `" | |
25622 | ||
25623 | echo creating src/epaths.h | |
4aa6b955 | 25624 | ${MAKE-make} epaths-force |
ba4481b5 | 25625 | |
1c203d4c DL |
25626 | # As of 2000-11-19, newest development versions of GNU cpp preprocess |
25627 | # `..' to `. .' unless invoked with -traditional | |
25628 | ||
d0e9bfd2 | 25629 | if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then |
1c203d4c DL |
25630 | CPPFLAGS="$CPPFLAGS -traditional" |
25631 | fi | |
25632 | ||
ba4481b5 DL |
25633 | echo creating lib-src/Makefile |
25634 | ( cd lib-src | |
25635 | rm -f junk.c junk1.c junk2.c | |
25636 | sed -e '/start of cpp stuff/q' \ | |
25637 | < Makefile.c > junk1.c | |
25638 | sed -e '1,/start of cpp stuff/d'\ | |
9a72e4c1 | 25639 | -e 's,/\*\*/#\(.*\)$,/* \1 */,' \ |
ba4481b5 | 25640 | < Makefile.c > junk.c |
503d2be0 | 25641 | $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \ |
ba4481b5 DL |
25642 | sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c |
25643 | cat junk1.c junk2.c > Makefile.new | |
25644 | rm -f junk.c junk1.c junk2.c | |
25645 | chmod 444 Makefile.new | |
25646 | mv -f Makefile.new Makefile | |
25647 | ) | |
25648 | ||
25649 | echo creating src/Makefile | |
25650 | ( cd src | |
25651 | rm -f junk.c junk1.c junk2.c | |
25652 | sed -e '/start of cpp stuff/q' \ | |
25653 | < Makefile.c > junk1.c | |
25654 | sed -e '1,/start of cpp stuff/d'\ | |
9a72e4c1 | 25655 | -e 's,/\*\*/#\(.*\)$,/* \1 */,' \ |
ba4481b5 | 25656 | < Makefile.c > junk.c |
503d2be0 | 25657 | $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \ |
ba4481b5 DL |
25658 | sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c |
25659 | cat junk1.c junk2.c > Makefile.new | |
25660 | rm -f junk.c junk1.c junk2.c | |
25661 | chmod 444 Makefile.new | |
25662 | mv -f Makefile.new Makefile | |
25663 | ) | |
25664 | ||
503d2be0 | 25665 | if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then |
ba4481b5 | 25666 | echo creating src/.gdbinit |
503d2be0 | 25667 | echo source $srcdir/src/.gdbinit > src/.gdbinit |
ba4481b5 DL |
25668 | fi |
25669 | ||
25670 | # This is how we know whether to re-run configure in certain cases. | |
25671 | touch src/config.stamp | |
25672 | ||
503d2be0 | 25673 | ;; |
ca81d7a0 | 25674 | |
503d2be0 | 25675 | esac |
ca81d7a0 | 25676 | done # for ac_tag |
503d2be0 | 25677 | |
ba4481b5 | 25678 | |
503d2be0 | 25679 | { (exit 0); exit 0; } |
c0d27fcc | 25680 | _ACEOF |
ba4481b5 | 25681 | chmod +x $CONFIG_STATUS |
503d2be0 AS |
25682 | ac_clean_files=$ac_clean_files_save |
25683 | ||
c0d27fcc | 25684 | |
503d2be0 AS |
25685 | # configure is writing to config.log, and then calls config.status. |
25686 | # config.status does its own redirection, appending to config.log. | |
25687 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
25688 | # by configure, so config.status won't be able to write to it; its | |
25689 | # output is simply discarded. So we exec the FD to /dev/null, | |
25690 | # effectively closing config.log, so it can be properly (re)opened and | |
25691 | # appended to by config.status. When coming back to configure, we | |
25692 | # need to make the FD available again. | |
25693 | if test "$no_create" != yes; then | |
25694 | ac_cs_success=: | |
19650fd6 AS |
25695 | ac_config_status_args= |
25696 | test "$silent" = yes && | |
25697 | ac_config_status_args="$ac_config_status_args --quiet" | |
503d2be0 | 25698 | exec 5>/dev/null |
19650fd6 | 25699 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
503d2be0 AS |
25700 | exec 5>>config.log |
25701 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
25702 | # would make configure fail if this is the last instruction. | |
25703 | $ac_cs_success || { (exit 1); exit 1; } | |
25704 | fi | |
f5f47add | 25705 | |
c0d27fcc | 25706 |