]>
Commit | Line | Data |
---|---|---|
e91b9f68 A |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
5b0a4722 | 3 | # Generated by GNU Autoconf 2.61 for launchd 1.0. |
e91b9f68 A |
4 | # |
5 | # Report bugs to <launchd-bug-reports@group.apple.com>. | |
6 | # | |
5b0a4722 A |
7 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
8 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | |
e91b9f68 A |
9 | # This configure script is free software; the Free Software Foundation |
10 | # gives unlimited permission to copy, distribute and modify it. | |
11 | ## --------------------- ## | |
12 | ## M4sh Initialization. ## | |
13 | ## --------------------- ## | |
14 | ||
5b0a4722 A |
15 | # Be more Bourne compatible |
16 | DUALCASE=1; export DUALCASE # for MKS sh | |
e91b9f68 A |
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
18 | emulate sh | |
19 | NULLCMD=: | |
20 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
21 | # is contrary to our usage. Disable this feature. | |
22 | alias -g '${1+"$@"}'='"$@"' | |
5b0a4722 A |
23 | setopt NO_GLOB_SUBST |
24 | else | |
25 | case `(set -o) 2>/dev/null` in | |
26 | *posix*) set -o posix ;; | |
27 | esac | |
28 | ||
29 | fi | |
30 | ||
31 | ||
32 | ||
33 | ||
34 | # PATH needs CR | |
35 | # Avoid depending upon Character Ranges. | |
36 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
37 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
38 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
39 | as_cr_digits='0123456789' | |
40 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
41 | ||
42 | # The user is always right. | |
43 | if test "${PATH_SEPARATOR+set}" != set; then | |
44 | echo "#! /bin/sh" >conf$$.sh | |
45 | echo "exit 0" >>conf$$.sh | |
46 | chmod +x conf$$.sh | |
47 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
48 | PATH_SEPARATOR=';' | |
49 | else | |
50 | PATH_SEPARATOR=: | |
51 | fi | |
52 | rm -f conf$$.sh | |
e91b9f68 | 53 | fi |
e91b9f68 A |
54 | |
55 | # Support unset when possible. | |
56 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
57 | as_unset=unset | |
58 | else | |
59 | as_unset=false | |
60 | fi | |
61 | ||
62 | ||
5b0a4722 A |
63 | # IFS |
64 | # We need space, tab and new line, in precisely that order. Quoting is | |
65 | # there to prevent editors from complaining about space-tab. | |
66 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
67 | # splitting by setting IFS to empty value.) | |
68 | as_nl=' | |
69 | ' | |
70 | IFS=" "" $as_nl" | |
71 | ||
72 | # Find who we are. Look in the path if we contain no directory separator. | |
73 | case $0 in | |
74 | *[\\/]* ) as_myself=$0 ;; | |
75 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
76 | for as_dir in $PATH | |
77 | do | |
78 | IFS=$as_save_IFS | |
79 | test -z "$as_dir" && as_dir=. | |
80 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
81 | done | |
82 | IFS=$as_save_IFS | |
83 | ||
84 | ;; | |
85 | esac | |
86 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
87 | # in which case we are not to be found in the path. | |
88 | if test "x$as_myself" = x; then | |
89 | as_myself=$0 | |
90 | fi | |
91 | if test ! -f "$as_myself"; then | |
92 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
93 | { (exit 1); exit 1; } | |
94 | fi | |
95 | ||
e91b9f68 | 96 | # Work around bugs in pre-3.0 UWIN ksh. |
5b0a4722 A |
97 | for as_var in ENV MAIL MAILPATH |
98 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
99 | done | |
e91b9f68 A |
100 | PS1='$ ' |
101 | PS2='> ' | |
102 | PS4='+ ' | |
103 | ||
104 | # NLS nuisances. | |
105 | for as_var in \ | |
106 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
107 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
108 | LC_TELEPHONE LC_TIME | |
109 | do | |
110 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
111 | eval $as_var=C; export $as_var | |
112 | else | |
5b0a4722 | 113 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
e91b9f68 A |
114 | fi |
115 | done | |
116 | ||
117 | # Required to use basename. | |
5b0a4722 A |
118 | if expr a : '\(a\)' >/dev/null 2>&1 && |
119 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
e91b9f68 A |
120 | as_expr=expr |
121 | else | |
122 | as_expr=false | |
123 | fi | |
124 | ||
5b0a4722 | 125 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
e91b9f68 A |
126 | as_basename=basename |
127 | else | |
128 | as_basename=false | |
129 | fi | |
130 | ||
131 | ||
132 | # Name of the executable. | |
5b0a4722 | 133 | as_me=`$as_basename -- "$0" || |
e91b9f68 A |
134 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
135 | X"$0" : 'X\(//\)$' \| \ | |
5b0a4722 | 136 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
e91b9f68 | 137 | echo X/"$0" | |
5b0a4722 A |
138 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
139 | s//\1/ | |
140 | q | |
141 | } | |
142 | /^X\/\(\/\/\)$/{ | |
143 | s//\1/ | |
144 | q | |
145 | } | |
146 | /^X\/\(\/\).*/{ | |
147 | s//\1/ | |
148 | q | |
149 | } | |
150 | s/.*/./; q'` | |
e91b9f68 | 151 | |
5b0a4722 A |
152 | # CDPATH. |
153 | $as_unset CDPATH | |
e91b9f68 | 154 | |
e91b9f68 | 155 | |
5b0a4722 A |
156 | if test "x$CONFIG_SHELL" = x; then |
157 | if (eval ":") 2>/dev/null; then | |
158 | as_have_required=yes | |
159 | else | |
160 | as_have_required=no | |
e91b9f68 A |
161 | fi |
162 | ||
5b0a4722 A |
163 | if test $as_have_required = yes && (eval ": |
164 | (as_func_return () { | |
165 | (exit \$1) | |
166 | } | |
167 | as_func_success () { | |
168 | as_func_return 0 | |
169 | } | |
170 | as_func_failure () { | |
171 | as_func_return 1 | |
172 | } | |
173 | as_func_ret_success () { | |
174 | return 0 | |
175 | } | |
176 | as_func_ret_failure () { | |
177 | return 1 | |
178 | } | |
e91b9f68 | 179 | |
5b0a4722 A |
180 | exitcode=0 |
181 | if as_func_success; then | |
182 | : | |
183 | else | |
184 | exitcode=1 | |
185 | echo as_func_success failed. | |
186 | fi | |
e91b9f68 | 187 | |
5b0a4722 A |
188 | if as_func_failure; then |
189 | exitcode=1 | |
190 | echo as_func_failure succeeded. | |
191 | fi | |
192 | ||
193 | if as_func_ret_success; then | |
194 | : | |
195 | else | |
196 | exitcode=1 | |
197 | echo as_func_ret_success failed. | |
198 | fi | |
199 | ||
200 | if as_func_ret_failure; then | |
201 | exitcode=1 | |
202 | echo as_func_ret_failure succeeded. | |
203 | fi | |
204 | ||
205 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
206 | : | |
207 | else | |
208 | exitcode=1 | |
209 | echo positional parameters were not saved. | |
210 | fi | |
211 | ||
212 | test \$exitcode = 0) || { (exit 1); exit 1; } | |
213 | ||
214 | ( | |
215 | as_lineno_1=\$LINENO | |
216 | as_lineno_2=\$LINENO | |
217 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && | |
218 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } | |
219 | ") 2> /dev/null; then | |
220 | : | |
221 | else | |
222 | as_candidate_shells= | |
e91b9f68 A |
223 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
224 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
225 | do | |
226 | IFS=$as_save_IFS | |
227 | test -z "$as_dir" && as_dir=. | |
5b0a4722 | 228 | case $as_dir in |
e91b9f68 | 229 | /*) |
5b0a4722 A |
230 | for as_base in sh bash ksh sh5; do |
231 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" | |
232 | done;; | |
233 | esac | |
234 | done | |
235 | IFS=$as_save_IFS | |
236 | ||
237 | ||
238 | for as_shell in $as_candidate_shells $SHELL; do | |
239 | # Try only shells that exist, to save several forks. | |
240 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
241 | { ("$as_shell") 2> /dev/null <<\_ASEOF | |
242 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
243 | emulate sh | |
244 | NULLCMD=: | |
245 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
246 | # is contrary to our usage. Disable this feature. | |
247 | alias -g '${1+"$@"}'='"$@"' | |
248 | setopt NO_GLOB_SUBST | |
249 | else | |
250 | case `(set -o) 2>/dev/null` in | |
251 | *posix*) set -o posix ;; | |
252 | esac | |
253 | ||
254 | fi | |
255 | ||
256 | ||
257 | : | |
258 | _ASEOF | |
259 | }; then | |
260 | CONFIG_SHELL=$as_shell | |
261 | as_have_required=yes | |
262 | if { "$as_shell" 2> /dev/null <<\_ASEOF | |
263 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
264 | emulate sh | |
265 | NULLCMD=: | |
266 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
267 | # is contrary to our usage. Disable this feature. | |
268 | alias -g '${1+"$@"}'='"$@"' | |
269 | setopt NO_GLOB_SUBST | |
270 | else | |
271 | case `(set -o) 2>/dev/null` in | |
272 | *posix*) set -o posix ;; | |
273 | esac | |
274 | ||
275 | fi | |
276 | ||
277 | ||
278 | : | |
279 | (as_func_return () { | |
280 | (exit $1) | |
281 | } | |
282 | as_func_success () { | |
283 | as_func_return 0 | |
284 | } | |
285 | as_func_failure () { | |
286 | as_func_return 1 | |
287 | } | |
288 | as_func_ret_success () { | |
289 | return 0 | |
290 | } | |
291 | as_func_ret_failure () { | |
292 | return 1 | |
293 | } | |
294 | ||
295 | exitcode=0 | |
296 | if as_func_success; then | |
297 | : | |
298 | else | |
299 | exitcode=1 | |
300 | echo as_func_success failed. | |
301 | fi | |
302 | ||
303 | if as_func_failure; then | |
304 | exitcode=1 | |
305 | echo as_func_failure succeeded. | |
306 | fi | |
307 | ||
308 | if as_func_ret_success; then | |
309 | : | |
310 | else | |
311 | exitcode=1 | |
312 | echo as_func_ret_success failed. | |
313 | fi | |
314 | ||
315 | if as_func_ret_failure; then | |
316 | exitcode=1 | |
317 | echo as_func_ret_failure succeeded. | |
318 | fi | |
319 | ||
320 | if ( set x; as_func_ret_success y && test x = "$1" ); then | |
321 | : | |
322 | else | |
323 | exitcode=1 | |
324 | echo positional parameters were not saved. | |
325 | fi | |
326 | ||
327 | test $exitcode = 0) || { (exit 1); exit 1; } | |
328 | ||
329 | ( | |
e91b9f68 A |
330 | as_lineno_1=$LINENO |
331 | as_lineno_2=$LINENO | |
e91b9f68 | 332 | test "x$as_lineno_1" != "x$as_lineno_2" && |
5b0a4722 A |
333 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
334 | ||
335 | _ASEOF | |
336 | }; then | |
337 | break | |
338 | fi | |
339 | ||
340 | fi | |
341 | ||
342 | done | |
343 | ||
344 | if test "x$CONFIG_SHELL" != x; then | |
345 | for as_var in BASH_ENV ENV | |
346 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
347 | done | |
348 | export CONFIG_SHELL | |
349 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
350 | fi | |
351 | ||
352 | ||
353 | if test $as_have_required = no; then | |
354 | echo This script requires a shell more modern than all the | |
355 | echo shells that I found on your system. Please install a | |
356 | echo modern shell, or manually run the script under such a | |
357 | echo shell if you do have one. | |
358 | { (exit 1); exit 1; } | |
359 | fi | |
360 | ||
361 | ||
362 | fi | |
363 | ||
364 | fi | |
365 | ||
366 | ||
367 | ||
368 | (eval "as_func_return () { | |
369 | (exit \$1) | |
370 | } | |
371 | as_func_success () { | |
372 | as_func_return 0 | |
373 | } | |
374 | as_func_failure () { | |
375 | as_func_return 1 | |
376 | } | |
377 | as_func_ret_success () { | |
378 | return 0 | |
379 | } | |
380 | as_func_ret_failure () { | |
381 | return 1 | |
382 | } | |
383 | ||
384 | exitcode=0 | |
385 | if as_func_success; then | |
386 | : | |
387 | else | |
388 | exitcode=1 | |
389 | echo as_func_success failed. | |
390 | fi | |
391 | ||
392 | if as_func_failure; then | |
393 | exitcode=1 | |
394 | echo as_func_failure succeeded. | |
395 | fi | |
396 | ||
397 | if as_func_ret_success; then | |
398 | : | |
399 | else | |
400 | exitcode=1 | |
401 | echo as_func_ret_success failed. | |
402 | fi | |
403 | ||
404 | if as_func_ret_failure; then | |
405 | exitcode=1 | |
406 | echo as_func_ret_failure succeeded. | |
407 | fi | |
408 | ||
409 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
410 | : | |
411 | else | |
412 | exitcode=1 | |
413 | echo positional parameters were not saved. | |
414 | fi | |
415 | ||
416 | test \$exitcode = 0") || { | |
417 | echo No shell found that supports shell functions. | |
418 | echo Please tell autoconf@gnu.org about your system, | |
419 | echo including any error possibly output before this | |
420 | echo message | |
421 | } | |
422 | ||
423 | ||
424 | ||
425 | as_lineno_1=$LINENO | |
426 | as_lineno_2=$LINENO | |
427 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
428 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
e91b9f68 A |
429 | |
430 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
431 | # uniformly replaced by the line number. The first 'sed' inserts a | |
5b0a4722 A |
432 | # line-number line after each line using $LINENO; the second 'sed' |
433 | # does the real work. The second script uses 'N' to pair each | |
434 | # line-number line with the line containing $LINENO, and appends | |
435 | # trailing '-' during substitution so that $LINENO is not a special | |
436 | # case at line end. | |
e91b9f68 | 437 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
5b0a4722 A |
438 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
439 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
440 | sed -n ' | |
441 | p | |
442 | /[$]LINENO/= | |
443 | ' <$as_myself | | |
e91b9f68 | 444 | sed ' |
5b0a4722 A |
445 | s/[$]LINENO.*/&-/ |
446 | t lineno | |
447 | b | |
448 | :lineno | |
e91b9f68 | 449 | N |
5b0a4722 A |
450 | :loop |
451 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
e91b9f68 | 452 | t loop |
5b0a4722 | 453 | s/-\n.*// |
e91b9f68 | 454 | ' >$as_me.lineno && |
5b0a4722 | 455 | chmod +x "$as_me.lineno" || |
e91b9f68 A |
456 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
457 | { (exit 1); exit 1; }; } | |
458 | ||
459 | # Don't try to exec as it changes $[0], causing all sort of problems | |
460 | # (the dirname of $[0] is not the place where we might find the | |
5b0a4722 A |
461 | # original and so on. Autoconf is especially sensitive to this). |
462 | . "./$as_me.lineno" | |
e91b9f68 A |
463 | # Exit status is that of the last command. |
464 | exit | |
465 | } | |
466 | ||
467 | ||
5b0a4722 A |
468 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
469 | as_dirname=dirname | |
470 | else | |
471 | as_dirname=false | |
472 | fi | |
473 | ||
474 | ECHO_C= ECHO_N= ECHO_T= | |
475 | case `echo -n x` in | |
476 | -n*) | |
477 | case `echo 'x\c'` in | |
478 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
479 | *) ECHO_C='\c';; | |
480 | esac;; | |
481 | *) | |
482 | ECHO_N='-n';; | |
e91b9f68 A |
483 | esac |
484 | ||
5b0a4722 A |
485 | if expr a : '\(a\)' >/dev/null 2>&1 && |
486 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
e91b9f68 A |
487 | as_expr=expr |
488 | else | |
489 | as_expr=false | |
490 | fi | |
491 | ||
492 | rm -f conf$$ conf$$.exe conf$$.file | |
5b0a4722 A |
493 | if test -d conf$$.dir; then |
494 | rm -f conf$$.dir/conf$$.file | |
495 | else | |
496 | rm -f conf$$.dir | |
497 | mkdir conf$$.dir | |
498 | fi | |
e91b9f68 A |
499 | echo >conf$$.file |
500 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
5b0a4722 A |
501 | as_ln_s='ln -s' |
502 | # ... but there are two gotchas: | |
503 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
504 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
505 | # In both cases, we have to default to `cp -p'. | |
506 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
e91b9f68 | 507 | as_ln_s='cp -p' |
e91b9f68 A |
508 | elif ln conf$$.file conf$$ 2>/dev/null; then |
509 | as_ln_s=ln | |
510 | else | |
511 | as_ln_s='cp -p' | |
512 | fi | |
5b0a4722 A |
513 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
514 | rmdir conf$$.dir 2>/dev/null | |
e91b9f68 A |
515 | |
516 | if mkdir -p . 2>/dev/null; then | |
517 | as_mkdir_p=: | |
518 | else | |
519 | test -d ./-p && rmdir ./-p | |
520 | as_mkdir_p=false | |
521 | fi | |
522 | ||
5b0a4722 A |
523 | if test -x / >/dev/null 2>&1; then |
524 | as_test_x='test -x' | |
525 | else | |
526 | if ls -dL / >/dev/null 2>&1; then | |
527 | as_ls_L_option=L | |
528 | else | |
529 | as_ls_L_option= | |
530 | fi | |
531 | as_test_x=' | |
532 | eval sh -c '\'' | |
533 | if test -d "$1"; then | |
534 | test -d "$1/."; | |
535 | else | |
536 | case $1 in | |
537 | -*)set "./$1";; | |
538 | esac; | |
539 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
540 | ???[sx]*):;;*)false;;esac;fi | |
541 | '\'' sh | |
542 | ' | |
543 | fi | |
544 | as_executable_p=$as_test_x | |
e91b9f68 A |
545 | |
546 | # Sed expression to map a string onto a valid CPP name. | |
547 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
548 | ||
549 | # Sed expression to map a string onto a valid variable name. | |
550 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
551 | ||
552 | ||
e91b9f68 | 553 | |
5b0a4722 | 554 | exec 7<&0 </dev/null 6>&1 |
e91b9f68 A |
555 | |
556 | # Name of the host. | |
557 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
558 | # so uname gets run too. | |
559 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
560 | ||
e91b9f68 A |
561 | # |
562 | # Initializations. | |
563 | # | |
564 | ac_default_prefix=/usr/local | |
5b0a4722 | 565 | ac_clean_files= |
e91b9f68 | 566 | ac_config_libobj_dir=. |
5b0a4722 | 567 | LIBOBJS= |
e91b9f68 A |
568 | cross_compiling=no |
569 | subdirs= | |
570 | MFLAGS= | |
571 | MAKEFLAGS= | |
572 | SHELL=${CONFIG_SHELL-/bin/sh} | |
573 | ||
e91b9f68 A |
574 | # Identity of this package. |
575 | PACKAGE_NAME='launchd' | |
576 | PACKAGE_TARNAME='launchd' | |
577 | PACKAGE_VERSION='1.0' | |
578 | PACKAGE_STRING='launchd 1.0' | |
579 | PACKAGE_BUGREPORT='launchd-bug-reports@group.apple.com' | |
580 | ||
ed34e3c3 | 581 | ac_unique_file="src/launchd.c" |
e91b9f68 A |
582 | # Factoring default headers for most tests. |
583 | ac_includes_default="\ | |
584 | #include <stdio.h> | |
5b0a4722 | 585 | #ifdef HAVE_SYS_TYPES_H |
e91b9f68 A |
586 | # include <sys/types.h> |
587 | #endif | |
5b0a4722 | 588 | #ifdef HAVE_SYS_STAT_H |
e91b9f68 A |
589 | # include <sys/stat.h> |
590 | #endif | |
5b0a4722 | 591 | #ifdef STDC_HEADERS |
e91b9f68 A |
592 | # include <stdlib.h> |
593 | # include <stddef.h> | |
594 | #else | |
5b0a4722 | 595 | # ifdef HAVE_STDLIB_H |
e91b9f68 A |
596 | # include <stdlib.h> |
597 | # endif | |
598 | #endif | |
5b0a4722 A |
599 | #ifdef HAVE_STRING_H |
600 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
e91b9f68 A |
601 | # include <memory.h> |
602 | # endif | |
603 | # include <string.h> | |
604 | #endif | |
5b0a4722 | 605 | #ifdef HAVE_STRINGS_H |
e91b9f68 A |
606 | # include <strings.h> |
607 | #endif | |
5b0a4722 | 608 | #ifdef HAVE_INTTYPES_H |
e91b9f68 | 609 | # include <inttypes.h> |
e91b9f68 | 610 | #endif |
5b0a4722 A |
611 | #ifdef HAVE_STDINT_H |
612 | # include <stdint.h> | |
613 | #endif | |
614 | #ifdef HAVE_UNISTD_H | |
e91b9f68 A |
615 | # include <unistd.h> |
616 | #endif" | |
617 | ||
5b0a4722 A |
618 | ac_header_list= |
619 | ac_func_list= | |
620 | ac_subst_vars='SHELL | |
621 | PATH_SEPARATOR | |
622 | PACKAGE_NAME | |
623 | PACKAGE_TARNAME | |
624 | PACKAGE_VERSION | |
625 | PACKAGE_STRING | |
626 | PACKAGE_BUGREPORT | |
627 | exec_prefix | |
628 | prefix | |
629 | program_transform_name | |
630 | bindir | |
631 | sbindir | |
632 | libexecdir | |
633 | datarootdir | |
634 | datadir | |
635 | sysconfdir | |
636 | sharedstatedir | |
637 | localstatedir | |
638 | includedir | |
639 | oldincludedir | |
640 | docdir | |
641 | infodir | |
642 | htmldir | |
643 | dvidir | |
644 | pdfdir | |
645 | psdir | |
646 | libdir | |
647 | localedir | |
648 | mandir | |
649 | DEFS | |
650 | ECHO_C | |
651 | ECHO_N | |
652 | ECHO_T | |
653 | LIBS | |
654 | build_alias | |
655 | host_alias | |
656 | target_alias | |
657 | INSTALL_PROGRAM | |
658 | INSTALL_SCRIPT | |
659 | INSTALL_DATA | |
660 | am__isrc | |
661 | CYGPATH_W | |
662 | PACKAGE | |
663 | VERSION | |
664 | ACLOCAL | |
665 | AUTOCONF | |
666 | AUTOMAKE | |
667 | AUTOHEADER | |
668 | MAKEINFO | |
669 | install_sh | |
670 | STRIP | |
671 | INSTALL_STRIP_PROGRAM | |
672 | mkdir_p | |
673 | AWK | |
674 | SET_MAKE | |
675 | am__leading_dot | |
676 | AMTAR | |
677 | am__tar | |
678 | am__untar | |
679 | CC | |
680 | CFLAGS | |
681 | LDFLAGS | |
682 | CPPFLAGS | |
683 | ac_ct_CC | |
684 | EXEEXT | |
685 | OBJEXT | |
686 | DEPDIR | |
687 | am__include | |
688 | am__quote | |
689 | AMDEP_TRUE | |
690 | AMDEP_FALSE | |
691 | AMDEPBACKSLASH | |
692 | CCDEPMODE | |
693 | am__fastdepCC_TRUE | |
694 | am__fastdepCC_FALSE | |
695 | RANLIB | |
696 | CPP | |
697 | GREP | |
698 | EGREP | |
699 | ALLOCA | |
700 | LIBOBJS | |
f36da725 A |
701 | LIBS_SECURITY |
702 | WEAKLIBS_SECURITY | |
5b0a4722 A |
703 | LIBS_ONLY_TRUE |
704 | LIBS_ONLY_FALSE | |
f36da725 A |
705 | DO_EMBEDDED_MAGIC_TRUE |
706 | DO_EMBEDDED_MAGIC_FALSE | |
5b0a4722 | 707 | LTLIBOBJS' |
e91b9f68 | 708 | ac_subst_files='' |
5b0a4722 A |
709 | ac_precious_vars='build_alias |
710 | host_alias | |
711 | target_alias | |
712 | CC | |
713 | CFLAGS | |
714 | LDFLAGS | |
715 | LIBS | |
716 | CPPFLAGS | |
717 | CPP' | |
718 | ||
e91b9f68 A |
719 | |
720 | # Initialize some variables set by options. | |
721 | ac_init_help= | |
722 | ac_init_version=false | |
723 | # The variables have the same names as the options, with | |
724 | # dashes changed to underlines. | |
725 | cache_file=/dev/null | |
726 | exec_prefix=NONE | |
727 | no_create= | |
728 | no_recursion= | |
729 | prefix=NONE | |
730 | program_prefix=NONE | |
731 | program_suffix=NONE | |
732 | program_transform_name=s,x,x, | |
733 | silent= | |
734 | site= | |
735 | srcdir= | |
736 | verbose= | |
737 | x_includes=NONE | |
738 | x_libraries=NONE | |
739 | ||
740 | # Installation directory options. | |
741 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
742 | # and all the variables that are supposed to be based on exec_prefix | |
743 | # by default will actually change. | |
744 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
5b0a4722 | 745 | # (The list follows the same order as the GNU Coding Standards.) |
e91b9f68 A |
746 | bindir='${exec_prefix}/bin' |
747 | sbindir='${exec_prefix}/sbin' | |
748 | libexecdir='${exec_prefix}/libexec' | |
5b0a4722 A |
749 | datarootdir='${prefix}/share' |
750 | datadir='${datarootdir}' | |
e91b9f68 A |
751 | sysconfdir='${prefix}/etc' |
752 | sharedstatedir='${prefix}/com' | |
753 | localstatedir='${prefix}/var' | |
e91b9f68 A |
754 | includedir='${prefix}/include' |
755 | oldincludedir='/usr/include' | |
5b0a4722 A |
756 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
757 | infodir='${datarootdir}/info' | |
758 | htmldir='${docdir}' | |
759 | dvidir='${docdir}' | |
760 | pdfdir='${docdir}' | |
761 | psdir='${docdir}' | |
762 | libdir='${exec_prefix}/lib' | |
763 | localedir='${datarootdir}/locale' | |
764 | mandir='${datarootdir}/man' | |
e91b9f68 A |
765 | |
766 | ac_prev= | |
5b0a4722 | 767 | ac_dashdash= |
e91b9f68 A |
768 | for ac_option |
769 | do | |
770 | # If the previous option needs an argument, assign it. | |
771 | if test -n "$ac_prev"; then | |
5b0a4722 | 772 | eval $ac_prev=\$ac_option |
e91b9f68 A |
773 | ac_prev= |
774 | continue | |
775 | fi | |
776 | ||
5b0a4722 A |
777 | case $ac_option in |
778 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
779 | *) ac_optarg=yes ;; | |
780 | esac | |
e91b9f68 A |
781 | |
782 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
783 | ||
5b0a4722 A |
784 | case $ac_dashdash$ac_option in |
785 | --) | |
786 | ac_dashdash=yes ;; | |
e91b9f68 A |
787 | |
788 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
789 | ac_prev=bindir ;; | |
790 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
791 | bindir=$ac_optarg ;; | |
792 | ||
793 | -build | --build | --buil | --bui | --bu) | |
794 | ac_prev=build_alias ;; | |
795 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
796 | build_alias=$ac_optarg ;; | |
797 | ||
798 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
799 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
800 | ac_prev=cache_file ;; | |
801 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
802 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
803 | cache_file=$ac_optarg ;; | |
804 | ||
805 | --config-cache | -C) | |
806 | cache_file=config.cache ;; | |
807 | ||
5b0a4722 | 808 | -datadir | --datadir | --datadi | --datad) |
e91b9f68 | 809 | ac_prev=datadir ;; |
5b0a4722 | 810 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
e91b9f68 A |
811 | datadir=$ac_optarg ;; |
812 | ||
5b0a4722 A |
813 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
814 | | --dataroo | --dataro | --datar) | |
815 | ac_prev=datarootdir ;; | |
816 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
817 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
818 | datarootdir=$ac_optarg ;; | |
819 | ||
e91b9f68 A |
820 | -disable-* | --disable-*) |
821 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
822 | # Reject names that are not valid shell variable names. | |
5b0a4722 | 823 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
e91b9f68 A |
824 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
825 | { (exit 1); exit 1; }; } | |
5b0a4722 A |
826 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
827 | eval enable_$ac_feature=no ;; | |
828 | ||
829 | -docdir | --docdir | --docdi | --doc | --do) | |
830 | ac_prev=docdir ;; | |
831 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
832 | docdir=$ac_optarg ;; | |
833 | ||
834 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
835 | ac_prev=dvidir ;; | |
836 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
837 | dvidir=$ac_optarg ;; | |
e91b9f68 A |
838 | |
839 | -enable-* | --enable-*) | |
840 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
841 | # Reject names that are not valid shell variable names. | |
5b0a4722 | 842 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
e91b9f68 A |
843 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
844 | { (exit 1); exit 1; }; } | |
5b0a4722 A |
845 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
846 | eval enable_$ac_feature=\$ac_optarg ;; | |
e91b9f68 A |
847 | |
848 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
849 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
850 | | --exec | --exe | --ex) | |
851 | ac_prev=exec_prefix ;; | |
852 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
853 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
854 | | --exec=* | --exe=* | --ex=*) | |
855 | exec_prefix=$ac_optarg ;; | |
856 | ||
857 | -gas | --gas | --ga | --g) | |
858 | # Obsolete; use --with-gas. | |
859 | with_gas=yes ;; | |
860 | ||
861 | -help | --help | --hel | --he | -h) | |
862 | ac_init_help=long ;; | |
863 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
864 | ac_init_help=recursive ;; | |
865 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
866 | ac_init_help=short ;; | |
867 | ||
868 | -host | --host | --hos | --ho) | |
869 | ac_prev=host_alias ;; | |
870 | -host=* | --host=* | --hos=* | --ho=*) | |
871 | host_alias=$ac_optarg ;; | |
872 | ||
5b0a4722 A |
873 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
874 | ac_prev=htmldir ;; | |
875 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
876 | | --ht=*) | |
877 | htmldir=$ac_optarg ;; | |
878 | ||
e91b9f68 A |
879 | -includedir | --includedir | --includedi | --included | --include \ |
880 | | --includ | --inclu | --incl | --inc) | |
881 | ac_prev=includedir ;; | |
882 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
883 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
884 | includedir=$ac_optarg ;; | |
885 | ||
886 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
887 | ac_prev=infodir ;; | |
888 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
889 | infodir=$ac_optarg ;; | |
890 | ||
891 | -libdir | --libdir | --libdi | --libd) | |
892 | ac_prev=libdir ;; | |
893 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
894 | libdir=$ac_optarg ;; | |
895 | ||
896 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
897 | | --libexe | --libex | --libe) | |
898 | ac_prev=libexecdir ;; | |
899 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
900 | | --libexe=* | --libex=* | --libe=*) | |
901 | libexecdir=$ac_optarg ;; | |
902 | ||
5b0a4722 A |
903 | -localedir | --localedir | --localedi | --localed | --locale) |
904 | ac_prev=localedir ;; | |
905 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
906 | localedir=$ac_optarg ;; | |
907 | ||
e91b9f68 | 908 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
5b0a4722 | 909 | | --localstate | --localstat | --localsta | --localst | --locals) |
e91b9f68 A |
910 | ac_prev=localstatedir ;; |
911 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
5b0a4722 | 912 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
e91b9f68 A |
913 | localstatedir=$ac_optarg ;; |
914 | ||
915 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
916 | ac_prev=mandir ;; | |
917 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
918 | mandir=$ac_optarg ;; | |
919 | ||
920 | -nfp | --nfp | --nf) | |
921 | # Obsolete; use --without-fp. | |
922 | with_fp=no ;; | |
923 | ||
924 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
925 | | --no-cr | --no-c | -n) | |
926 | no_create=yes ;; | |
927 | ||
928 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
929 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
930 | no_recursion=yes ;; | |
931 | ||
932 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
933 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
934 | | --oldin | --oldi | --old | --ol | --o) | |
935 | ac_prev=oldincludedir ;; | |
936 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
937 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
938 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
939 | oldincludedir=$ac_optarg ;; | |
940 | ||
941 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
942 | ac_prev=prefix ;; | |
943 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
944 | prefix=$ac_optarg ;; | |
945 | ||
946 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
947 | | --program-pre | --program-pr | --program-p) | |
948 | ac_prev=program_prefix ;; | |
949 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
950 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
951 | program_prefix=$ac_optarg ;; | |
952 | ||
953 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
954 | | --program-suf | --program-su | --program-s) | |
955 | ac_prev=program_suffix ;; | |
956 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
957 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
958 | program_suffix=$ac_optarg ;; | |
959 | ||
960 | -program-transform-name | --program-transform-name \ | |
961 | | --program-transform-nam | --program-transform-na \ | |
962 | | --program-transform-n | --program-transform- \ | |
963 | | --program-transform | --program-transfor \ | |
964 | | --program-transfo | --program-transf \ | |
965 | | --program-trans | --program-tran \ | |
966 | | --progr-tra | --program-tr | --program-t) | |
967 | ac_prev=program_transform_name ;; | |
968 | -program-transform-name=* | --program-transform-name=* \ | |
969 | | --program-transform-nam=* | --program-transform-na=* \ | |
970 | | --program-transform-n=* | --program-transform-=* \ | |
971 | | --program-transform=* | --program-transfor=* \ | |
972 | | --program-transfo=* | --program-transf=* \ | |
973 | | --program-trans=* | --program-tran=* \ | |
974 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
975 | program_transform_name=$ac_optarg ;; | |
976 | ||
5b0a4722 A |
977 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
978 | ac_prev=pdfdir ;; | |
979 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
980 | pdfdir=$ac_optarg ;; | |
981 | ||
982 | -psdir | --psdir | --psdi | --psd | --ps) | |
983 | ac_prev=psdir ;; | |
984 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
985 | psdir=$ac_optarg ;; | |
986 | ||
e91b9f68 A |
987 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
988 | | -silent | --silent | --silen | --sile | --sil) | |
989 | silent=yes ;; | |
990 | ||
991 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
992 | ac_prev=sbindir ;; | |
993 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
994 | | --sbi=* | --sb=*) | |
995 | sbindir=$ac_optarg ;; | |
996 | ||
997 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
998 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
999 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1000 | | --sha | --sh) | |
1001 | ac_prev=sharedstatedir ;; | |
1002 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1003 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1004 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1005 | | --sha=* | --sh=*) | |
1006 | sharedstatedir=$ac_optarg ;; | |
1007 | ||
1008 | -site | --site | --sit) | |
1009 | ac_prev=site ;; | |
1010 | -site=* | --site=* | --sit=*) | |
1011 | site=$ac_optarg ;; | |
1012 | ||
1013 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1014 | ac_prev=srcdir ;; | |
1015 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1016 | srcdir=$ac_optarg ;; | |
1017 | ||
1018 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1019 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1020 | ac_prev=sysconfdir ;; | |
1021 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1022 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1023 | sysconfdir=$ac_optarg ;; | |
1024 | ||
1025 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1026 | ac_prev=target_alias ;; | |
1027 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1028 | target_alias=$ac_optarg ;; | |
1029 | ||
1030 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1031 | verbose=yes ;; | |
1032 | ||
1033 | -version | --version | --versio | --versi | --vers | -V) | |
1034 | ac_init_version=: ;; | |
1035 | ||
1036 | -with-* | --with-*) | |
1037 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1038 | # Reject names that are not valid shell variable names. | |
5b0a4722 | 1039 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
e91b9f68 A |
1040 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
1041 | { (exit 1); exit 1; }; } | |
5b0a4722 A |
1042 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1043 | eval with_$ac_package=\$ac_optarg ;; | |
e91b9f68 A |
1044 | |
1045 | -without-* | --without-*) | |
1046 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1047 | # Reject names that are not valid shell variable names. | |
5b0a4722 | 1048 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
e91b9f68 A |
1049 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
1050 | { (exit 1); exit 1; }; } | |
5b0a4722 A |
1051 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1052 | eval with_$ac_package=no ;; | |
e91b9f68 A |
1053 | |
1054 | --x) | |
1055 | # Obsolete; use --with-x. | |
1056 | with_x=yes ;; | |
1057 | ||
1058 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1059 | | --x-incl | --x-inc | --x-in | --x-i) | |
1060 | ac_prev=x_includes ;; | |
1061 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1062 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1063 | x_includes=$ac_optarg ;; | |
1064 | ||
1065 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1066 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1067 | ac_prev=x_libraries ;; | |
1068 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1069 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1070 | x_libraries=$ac_optarg ;; | |
1071 | ||
1072 | -*) { echo "$as_me: error: unrecognized option: $ac_option | |
1073 | Try \`$0 --help' for more information." >&2 | |
1074 | { (exit 1); exit 1; }; } | |
1075 | ;; | |
1076 | ||
1077 | *=*) | |
1078 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1079 | # Reject names that are not valid shell variable names. | |
1080 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
1081 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
1082 | { (exit 1); exit 1; }; } | |
5b0a4722 | 1083 | eval $ac_envvar=\$ac_optarg |
e91b9f68 A |
1084 | export $ac_envvar ;; |
1085 | ||
1086 | *) | |
1087 | # FIXME: should be removed in autoconf 3.0. | |
1088 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1089 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1090 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1091 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
1092 | ;; | |
1093 | ||
1094 | esac | |
1095 | done | |
1096 | ||
1097 | if test -n "$ac_prev"; then | |
1098 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1099 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
1100 | { (exit 1); exit 1; }; } | |
1101 | fi | |
1102 | ||
5b0a4722 A |
1103 | # Be sure to have absolute directory names. |
1104 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1105 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1106 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1107 | libdir localedir mandir | |
e91b9f68 | 1108 | do |
5b0a4722 | 1109 | eval ac_val=\$$ac_var |
e91b9f68 | 1110 | case $ac_val in |
5b0a4722 A |
1111 | [\\/$]* | ?:[\\/]* ) continue;; |
1112 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
e91b9f68 | 1113 | esac |
5b0a4722 A |
1114 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
1115 | { (exit 1); exit 1; }; } | |
e91b9f68 A |
1116 | done |
1117 | ||
1118 | # There might be people who depend on the old broken behavior: `$host' | |
1119 | # used to hold the argument of --host etc. | |
1120 | # FIXME: To remove some day. | |
1121 | build=$build_alias | |
1122 | host=$host_alias | |
1123 | target=$target_alias | |
1124 | ||
1125 | # FIXME: To remove some day. | |
1126 | if test "x$host_alias" != x; then | |
1127 | if test "x$build_alias" = x; then | |
1128 | cross_compiling=maybe | |
1129 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
1130 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
1131 | elif test "x$build_alias" != "x$host_alias"; then | |
1132 | cross_compiling=yes | |
1133 | fi | |
1134 | fi | |
1135 | ||
1136 | ac_tool_prefix= | |
1137 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1138 | ||
1139 | test "$silent" = yes && exec 6>/dev/null | |
1140 | ||
1141 | ||
5b0a4722 A |
1142 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1143 | ac_ls_di=`ls -di .` && | |
1144 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1145 | { echo "$as_me: error: Working directory cannot be determined" >&2 | |
1146 | { (exit 1); exit 1; }; } | |
1147 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1148 | { echo "$as_me: error: pwd does not report name of working directory" >&2 | |
1149 | { (exit 1); exit 1; }; } | |
1150 | ||
1151 | ||
1152 | # Find the source files, if location was not specified. | |
1153 | if test -z "$srcdir"; then | |
1154 | ac_srcdir_defaulted=yes | |
1155 | # Try the directory containing this script, then the parent directory. | |
1156 | ac_confdir=`$as_dirname -- "$0" || | |
e91b9f68 A |
1157 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
1158 | X"$0" : 'X\(//\)[^/]' \| \ | |
1159 | X"$0" : 'X\(//\)$' \| \ | |
5b0a4722 | 1160 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
e91b9f68 | 1161 | echo X"$0" | |
5b0a4722 A |
1162 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1163 | s//\1/ | |
1164 | q | |
1165 | } | |
1166 | /^X\(\/\/\)[^/].*/{ | |
1167 | s//\1/ | |
1168 | q | |
1169 | } | |
1170 | /^X\(\/\/\)$/{ | |
1171 | s//\1/ | |
1172 | q | |
1173 | } | |
1174 | /^X\(\/\).*/{ | |
1175 | s//\1/ | |
1176 | q | |
1177 | } | |
1178 | s/.*/./; q'` | |
e91b9f68 | 1179 | srcdir=$ac_confdir |
5b0a4722 | 1180 | if test ! -r "$srcdir/$ac_unique_file"; then |
e91b9f68 A |
1181 | srcdir=.. |
1182 | fi | |
1183 | else | |
1184 | ac_srcdir_defaulted=no | |
1185 | fi | |
5b0a4722 A |
1186 | if test ! -r "$srcdir/$ac_unique_file"; then |
1187 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1188 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
e91b9f68 | 1189 | { (exit 1); exit 1; }; } |
e91b9f68 | 1190 | fi |
5b0a4722 A |
1191 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1192 | ac_abs_confdir=`( | |
1193 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 | |
e91b9f68 | 1194 | { (exit 1); exit 1; }; } |
5b0a4722 A |
1195 | pwd)` |
1196 | # When building in place, set srcdir=. | |
1197 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1198 | srcdir=. | |
1199 | fi | |
1200 | # Remove unnecessary trailing slashes from srcdir. | |
1201 | # Double slashes in file names in object file debugging info | |
1202 | # mess up M-x gdb in Emacs. | |
1203 | case $srcdir in | |
1204 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1205 | esac | |
1206 | for ac_var in $ac_precious_vars; do | |
1207 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1208 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1209 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1210 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1211 | done | |
e91b9f68 A |
1212 | |
1213 | # | |
1214 | # Report the --help message. | |
1215 | # | |
1216 | if test "$ac_init_help" = "long"; then | |
1217 | # Omit some internal or obsolete options to make the list less imposing. | |
1218 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1219 | cat <<_ACEOF | |
1220 | \`configure' configures launchd 1.0 to adapt to many kinds of systems. | |
1221 | ||
1222 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1223 | ||
1224 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1225 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1226 | ||
1227 | Defaults for the options are specified in brackets. | |
1228 | ||
1229 | Configuration: | |
1230 | -h, --help display this help and exit | |
1231 | --help=short display options specific to this package | |
1232 | --help=recursive display the short help of all the included packages | |
1233 | -V, --version display version information and exit | |
1234 | -q, --quiet, --silent do not print \`checking...' messages | |
1235 | --cache-file=FILE cache test results in FILE [disabled] | |
1236 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1237 | -n, --no-create do not create output files | |
1238 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1239 | ||
e91b9f68 A |
1240 | Installation directories: |
1241 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1242 | [$ac_default_prefix] | |
1243 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1244 | [PREFIX] | |
1245 | ||
1246 | By default, \`make install' will install all the files in | |
1247 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1248 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1249 | for instance \`--prefix=\$HOME'. | |
1250 | ||
1251 | For better control, use the options below. | |
1252 | ||
1253 | Fine tuning of the installation directories: | |
1254 | --bindir=DIR user executables [EPREFIX/bin] | |
1255 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1256 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
e91b9f68 A |
1257 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
1258 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1259 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1260 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1261 | --includedir=DIR C header files [PREFIX/include] | |
1262 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
5b0a4722 A |
1263 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
1264 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1265 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1266 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1267 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1268 | --docdir=DIR documentation root [DATAROOTDIR/doc/launchd] | |
1269 | --htmldir=DIR html documentation [DOCDIR] | |
1270 | --dvidir=DIR dvi documentation [DOCDIR] | |
1271 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1272 | --psdir=DIR ps documentation [DOCDIR] | |
e91b9f68 A |
1273 | _ACEOF |
1274 | ||
1275 | cat <<\_ACEOF | |
1276 | ||
1277 | Program names: | |
1278 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1279 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1280 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1281 | _ACEOF | |
1282 | fi | |
1283 | ||
1284 | if test -n "$ac_init_help"; then | |
1285 | case $ac_init_help in | |
1286 | short | recursive ) echo "Configuration of launchd 1.0:";; | |
1287 | esac | |
1288 | cat <<\_ACEOF | |
1289 | ||
1290 | Optional Features: | |
1291 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1292 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
5b0a4722 A |
1293 | --disable-dependency-tracking speeds up one-time build |
1294 | --enable-dependency-tracking do not reject slow dependency extractors | |
e91b9f68 A |
1295 | |
1296 | Some influential environment variables: | |
1297 | CC C compiler command | |
1298 | CFLAGS C compiler flags | |
1299 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1300 | nonstandard directory <lib dir> | |
5b0a4722 A |
1301 | LIBS libraries to pass to the linker, e.g. -l<library> |
1302 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1303 | you have headers in a nonstandard directory <include dir> | |
e91b9f68 A |
1304 | CPP C preprocessor |
1305 | ||
1306 | Use these variables to override the choices made by `configure' or to help | |
1307 | it to find libraries and programs with nonstandard names/locations. | |
1308 | ||
1309 | Report bugs to <launchd-bug-reports@group.apple.com>. | |
1310 | _ACEOF | |
5b0a4722 | 1311 | ac_status=$? |
e91b9f68 A |
1312 | fi |
1313 | ||
1314 | if test "$ac_init_help" = "recursive"; then | |
1315 | # If there are subdirs, report their specific --help. | |
e91b9f68 | 1316 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
5b0a4722 | 1317 | test -d "$ac_dir" || continue |
e91b9f68 A |
1318 | ac_builddir=. |
1319 | ||
5b0a4722 A |
1320 | case "$ac_dir" in |
1321 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1322 | *) | |
e91b9f68 | 1323 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
5b0a4722 A |
1324 | # A ".." for each directory in $ac_dir_suffix. |
1325 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | |
1326 | case $ac_top_builddir_sub in | |
1327 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1328 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1329 | esac ;; | |
1330 | esac | |
1331 | ac_abs_top_builddir=$ac_pwd | |
1332 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1333 | # for backward compatibility: | |
1334 | ac_top_builddir=$ac_top_build_prefix | |
e91b9f68 A |
1335 | |
1336 | case $srcdir in | |
5b0a4722 | 1337 | .) # We are building in place. |
e91b9f68 | 1338 | ac_srcdir=. |
5b0a4722 A |
1339 | ac_top_srcdir=$ac_top_builddir_sub |
1340 | ac_abs_top_srcdir=$ac_pwd ;; | |
1341 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
e91b9f68 | 1342 | ac_srcdir=$srcdir$ac_dir_suffix; |
5b0a4722 A |
1343 | ac_top_srcdir=$srcdir |
1344 | ac_abs_top_srcdir=$srcdir ;; | |
1345 | *) # Relative name. | |
1346 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1347 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1348 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
e91b9f68 | 1349 | esac |
5b0a4722 A |
1350 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1351 | ||
1352 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1353 | # Check for guested configure. | |
1354 | if test -f "$ac_srcdir/configure.gnu"; then | |
1355 | echo && | |
1356 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1357 | elif test -f "$ac_srcdir/configure"; then | |
1358 | echo && | |
1359 | $SHELL "$ac_srcdir/configure" --help=recursive | |
e91b9f68 A |
1360 | else |
1361 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
5b0a4722 A |
1362 | fi || ac_status=$? |
1363 | cd "$ac_pwd" || { ac_status=$?; break; } | |
e91b9f68 A |
1364 | done |
1365 | fi | |
1366 | ||
5b0a4722 | 1367 | test -n "$ac_init_help" && exit $ac_status |
e91b9f68 A |
1368 | if $ac_init_version; then |
1369 | cat <<\_ACEOF | |
1370 | launchd configure 1.0 | |
5b0a4722 | 1371 | generated by GNU Autoconf 2.61 |
e91b9f68 | 1372 | |
5b0a4722 A |
1373 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
1374 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | |
e91b9f68 A |
1375 | This configure script is free software; the Free Software Foundation |
1376 | gives unlimited permission to copy, distribute and modify it. | |
1377 | _ACEOF | |
5b0a4722 | 1378 | exit |
e91b9f68 | 1379 | fi |
5b0a4722 | 1380 | cat >config.log <<_ACEOF |
e91b9f68 A |
1381 | This file contains any messages produced by compilers while |
1382 | running configure, to aid debugging if configure makes a mistake. | |
1383 | ||
1384 | It was created by launchd $as_me 1.0, which was | |
5b0a4722 | 1385 | generated by GNU Autoconf 2.61. Invocation command line was |
e91b9f68 A |
1386 | |
1387 | $ $0 $@ | |
1388 | ||
1389 | _ACEOF | |
5b0a4722 | 1390 | exec 5>>config.log |
e91b9f68 A |
1391 | { |
1392 | cat <<_ASUNAME | |
1393 | ## --------- ## | |
1394 | ## Platform. ## | |
1395 | ## --------- ## | |
1396 | ||
1397 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1398 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1399 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1400 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1401 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1402 | ||
1403 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1404 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1405 | ||
1406 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1407 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1408 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
5b0a4722 | 1409 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
e91b9f68 A |
1410 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1411 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1412 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1413 | ||
1414 | _ASUNAME | |
1415 | ||
1416 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1417 | for as_dir in $PATH | |
1418 | do | |
1419 | IFS=$as_save_IFS | |
1420 | test -z "$as_dir" && as_dir=. | |
1421 | echo "PATH: $as_dir" | |
1422 | done | |
5b0a4722 | 1423 | IFS=$as_save_IFS |
e91b9f68 A |
1424 | |
1425 | } >&5 | |
1426 | ||
1427 | cat >&5 <<_ACEOF | |
1428 | ||
1429 | ||
1430 | ## ----------- ## | |
1431 | ## Core tests. ## | |
1432 | ## ----------- ## | |
1433 | ||
1434 | _ACEOF | |
1435 | ||
1436 | ||
1437 | # Keep a trace of the command line. | |
1438 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1439 | # Strip out --silent because we don't want to record it for future runs. | |
1440 | # Also quote any args containing shell meta-characters. | |
1441 | # Make two passes to allow for proper duplicate-argument suppression. | |
1442 | ac_configure_args= | |
1443 | ac_configure_args0= | |
1444 | ac_configure_args1= | |
e91b9f68 A |
1445 | ac_must_keep_next=false |
1446 | for ac_pass in 1 2 | |
1447 | do | |
1448 | for ac_arg | |
1449 | do | |
1450 | case $ac_arg in | |
1451 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1452 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1453 | | -silent | --silent | --silen | --sile | --sil) | |
1454 | continue ;; | |
5b0a4722 | 1455 | *\'*) |
e91b9f68 A |
1456 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1457 | esac | |
1458 | case $ac_pass in | |
1459 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1460 | 2) | |
1461 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1462 | if test $ac_must_keep_next = true; then | |
1463 | ac_must_keep_next=false # Got value, back to normal. | |
1464 | else | |
1465 | case $ac_arg in | |
1466 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1467 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1468 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1469 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1470 | case "$ac_configure_args0 " in | |
1471 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1472 | esac | |
1473 | ;; | |
1474 | -* ) ac_must_keep_next=true ;; | |
1475 | esac | |
1476 | fi | |
5b0a4722 | 1477 | ac_configure_args="$ac_configure_args '$ac_arg'" |
e91b9f68 A |
1478 | ;; |
1479 | esac | |
1480 | done | |
1481 | done | |
1482 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1483 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1484 | ||
1485 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1486 | # config.log. We remove comments because anyway the quotes in there | |
1487 | # would cause problems or look ugly. | |
5b0a4722 A |
1488 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1489 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
e91b9f68 A |
1490 | trap 'exit_status=$? |
1491 | # Save into config.log some information that might help in debugging. | |
1492 | { | |
1493 | echo | |
1494 | ||
1495 | cat <<\_ASBOX | |
1496 | ## ---------------- ## | |
1497 | ## Cache variables. ## | |
1498 | ## ---------------- ## | |
1499 | _ASBOX | |
1500 | echo | |
1501 | # The following way of writing the cache mishandles newlines in values, | |
5b0a4722 A |
1502 | ( |
1503 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1504 | eval ac_val=\$$ac_var | |
1505 | case $ac_val in #( | |
1506 | *${as_nl}*) | |
1507 | case $ac_var in #( | |
1508 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | |
1509 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
1510 | esac | |
1511 | case $ac_var in #( | |
1512 | _ | IFS | as_nl) ;; #( | |
1513 | *) $as_unset $ac_var ;; | |
1514 | esac ;; | |
1515 | esac | |
1516 | done | |
e91b9f68 | 1517 | (set) 2>&1 | |
5b0a4722 A |
1518 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1519 | *${as_nl}ac_space=\ *) | |
e91b9f68 | 1520 | sed -n \ |
5b0a4722 A |
1521 | "s/'\''/'\''\\\\'\'''\''/g; |
1522 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1523 | ;; #( | |
e91b9f68 | 1524 | *) |
5b0a4722 | 1525 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
e91b9f68 | 1526 | ;; |
5b0a4722 A |
1527 | esac | |
1528 | sort | |
1529 | ) | |
e91b9f68 A |
1530 | echo |
1531 | ||
1532 | cat <<\_ASBOX | |
1533 | ## ----------------- ## | |
1534 | ## Output variables. ## | |
1535 | ## ----------------- ## | |
1536 | _ASBOX | |
1537 | echo | |
1538 | for ac_var in $ac_subst_vars | |
1539 | do | |
5b0a4722 A |
1540 | eval ac_val=\$$ac_var |
1541 | case $ac_val in | |
1542 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1543 | esac | |
1544 | echo "$ac_var='\''$ac_val'\''" | |
e91b9f68 A |
1545 | done | sort |
1546 | echo | |
1547 | ||
1548 | if test -n "$ac_subst_files"; then | |
1549 | cat <<\_ASBOX | |
5b0a4722 A |
1550 | ## ------------------- ## |
1551 | ## File substitutions. ## | |
1552 | ## ------------------- ## | |
e91b9f68 A |
1553 | _ASBOX |
1554 | echo | |
1555 | for ac_var in $ac_subst_files | |
1556 | do | |
5b0a4722 A |
1557 | eval ac_val=\$$ac_var |
1558 | case $ac_val in | |
1559 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1560 | esac | |
1561 | echo "$ac_var='\''$ac_val'\''" | |
e91b9f68 A |
1562 | done | sort |
1563 | echo | |
1564 | fi | |
1565 | ||
1566 | if test -s confdefs.h; then | |
1567 | cat <<\_ASBOX | |
1568 | ## ----------- ## | |
1569 | ## confdefs.h. ## | |
1570 | ## ----------- ## | |
1571 | _ASBOX | |
1572 | echo | |
5b0a4722 | 1573 | cat confdefs.h |
e91b9f68 A |
1574 | echo |
1575 | fi | |
1576 | test "$ac_signal" != 0 && | |
1577 | echo "$as_me: caught signal $ac_signal" | |
1578 | echo "$as_me: exit $exit_status" | |
1579 | } >&5 | |
5b0a4722 A |
1580 | rm -f core *.core core.conftest.* && |
1581 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
e91b9f68 | 1582 | exit $exit_status |
5b0a4722 | 1583 | ' 0 |
e91b9f68 A |
1584 | for ac_signal in 1 2 13 15; do |
1585 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1586 | done | |
1587 | ac_signal=0 | |
1588 | ||
1589 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
5b0a4722 | 1590 | rm -f -r conftest* confdefs.h |
e91b9f68 A |
1591 | |
1592 | # Predefined preprocessor variables. | |
1593 | ||
1594 | cat >>confdefs.h <<_ACEOF | |
1595 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1596 | _ACEOF | |
1597 | ||
1598 | ||
1599 | cat >>confdefs.h <<_ACEOF | |
1600 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1601 | _ACEOF | |
1602 | ||
1603 | ||
1604 | cat >>confdefs.h <<_ACEOF | |
1605 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1606 | _ACEOF | |
1607 | ||
1608 | ||
1609 | cat >>confdefs.h <<_ACEOF | |
1610 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1611 | _ACEOF | |
1612 | ||
1613 | ||
1614 | cat >>confdefs.h <<_ACEOF | |
1615 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1616 | _ACEOF | |
1617 | ||
1618 | ||
1619 | # Let the site file select an alternate cache file if it wants to. | |
1620 | # Prefer explicitly selected file to automatically selected ones. | |
5b0a4722 A |
1621 | if test -n "$CONFIG_SITE"; then |
1622 | set x "$CONFIG_SITE" | |
1623 | elif test "x$prefix" != xNONE; then | |
1624 | set x "$prefix/share/config.site" "$prefix/etc/config.site" | |
1625 | else | |
1626 | set x "$ac_default_prefix/share/config.site" \ | |
1627 | "$ac_default_prefix/etc/config.site" | |
e91b9f68 | 1628 | fi |
5b0a4722 A |
1629 | shift |
1630 | for ac_site_file | |
1631 | do | |
e91b9f68 A |
1632 | if test -r "$ac_site_file"; then |
1633 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1634 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1635 | sed 's/^/| /' "$ac_site_file" >&5 | |
1636 | . "$ac_site_file" | |
1637 | fi | |
1638 | done | |
1639 | ||
1640 | if test -r "$cache_file"; then | |
1641 | # Some versions of bash will fail to source /dev/null (special | |
1642 | # files actually), so we avoid doing that. | |
1643 | if test -f "$cache_file"; then | |
1644 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1645 | echo "$as_me: loading cache $cache_file" >&6;} | |
1646 | case $cache_file in | |
5b0a4722 A |
1647 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1648 | *) . "./$cache_file";; | |
e91b9f68 A |
1649 | esac |
1650 | fi | |
1651 | else | |
1652 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1653 | echo "$as_me: creating cache $cache_file" >&6;} | |
1654 | >$cache_file | |
1655 | fi | |
1656 | ||
5b0a4722 A |
1657 | ac_header_list="$ac_header_list sys/time.h" |
1658 | ac_header_list="$ac_header_list unistd.h" | |
1659 | ac_func_list="$ac_func_list alarm" | |
e91b9f68 A |
1660 | # Check that the precious variables saved in the cache have kept the same |
1661 | # value. | |
1662 | ac_cache_corrupted=false | |
5b0a4722 | 1663 | for ac_var in $ac_precious_vars; do |
e91b9f68 A |
1664 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1665 | eval ac_new_set=\$ac_env_${ac_var}_set | |
5b0a4722 A |
1666 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1667 | eval ac_new_val=\$ac_env_${ac_var}_value | |
e91b9f68 A |
1668 | case $ac_old_set,$ac_new_set in |
1669 | set,) | |
1670 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1671 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1672 | ac_cache_corrupted=: ;; | |
1673 | ,set) | |
1674 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1675 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1676 | ac_cache_corrupted=: ;; | |
1677 | ,);; | |
1678 | *) | |
1679 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1680 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1681 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1682 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1683 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1684 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1685 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1686 | ac_cache_corrupted=: | |
1687 | fi;; | |
1688 | esac | |
1689 | # Pass precious variables to config.status. | |
1690 | if test "$ac_new_set" = set; then | |
1691 | case $ac_new_val in | |
5b0a4722 | 1692 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
e91b9f68 A |
1693 | *) ac_arg=$ac_var=$ac_new_val ;; |
1694 | esac | |
1695 | case " $ac_configure_args " in | |
1696 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1697 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1698 | esac | |
1699 | fi | |
1700 | done | |
1701 | if $ac_cache_corrupted; then | |
1702 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1703 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1704 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1705 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1706 | { (exit 1); exit 1; }; } | |
1707 | fi | |
1708 | ||
e91b9f68 A |
1709 | |
1710 | ||
1711 | ||
1712 | ||
1713 | ||
1714 | ||
1715 | ||
1716 | ||
1717 | ||
1718 | ||
1719 | ||
1720 | ||
1721 | ||
1722 | ||
1723 | ||
1724 | ||
1725 | ||
1726 | ||
1727 | ||
1728 | ||
1729 | ||
1730 | ||
1731 | ||
1732 | ||
5b0a4722 A |
1733 | ac_ext=c |
1734 | ac_cpp='$CPP $CPPFLAGS' | |
1735 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1736 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1737 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
e91b9f68 A |
1738 | |
1739 | ||
1740 | ||
5b0a4722 | 1741 | am__api_version='1.10' |
e91b9f68 | 1742 | |
e91b9f68 | 1743 | ac_aux_dir= |
5b0a4722 A |
1744 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
1745 | if test -f "$ac_dir/install-sh"; then | |
e91b9f68 A |
1746 | ac_aux_dir=$ac_dir |
1747 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1748 | break | |
5b0a4722 | 1749 | elif test -f "$ac_dir/install.sh"; then |
e91b9f68 A |
1750 | ac_aux_dir=$ac_dir |
1751 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1752 | break | |
5b0a4722 | 1753 | elif test -f "$ac_dir/shtool"; then |
e91b9f68 A |
1754 | ac_aux_dir=$ac_dir |
1755 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1756 | break | |
1757 | fi | |
1758 | done | |
1759 | if test -z "$ac_aux_dir"; then | |
5b0a4722 A |
1760 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
1761 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} | |
e91b9f68 A |
1762 | { (exit 1); exit 1; }; } |
1763 | fi | |
5b0a4722 A |
1764 | |
1765 | # These three variables are undocumented and unsupported, | |
1766 | # and are intended to be withdrawn in a future Autoconf release. | |
1767 | # They can cause serious problems if a builder's source tree is in a directory | |
1768 | # whose full name contains unusual characters. | |
1769 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
1770 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
1771 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
1772 | ||
e91b9f68 A |
1773 | |
1774 | # Find a good install program. We prefer a C program (faster), | |
1775 | # so one script is as good as another. But avoid the broken or | |
1776 | # incompatible versions: | |
1777 | # SysV /etc/install, /usr/sbin/install | |
1778 | # SunOS /usr/etc/install | |
1779 | # IRIX /sbin/install | |
1780 | # AIX /bin/install | |
1781 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
1782 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
1783 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1784 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1785 | # OS/2's system install, which has a completely different semantic | |
1786 | # ./install, which can be erroneously created by make from ./install.sh. | |
5b0a4722 A |
1787 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
1788 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } | |
e91b9f68 A |
1789 | if test -z "$INSTALL"; then |
1790 | if test "${ac_cv_path_install+set}" = set; then | |
1791 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1792 | else | |
1793 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1794 | for as_dir in $PATH | |
1795 | do | |
1796 | IFS=$as_save_IFS | |
1797 | test -z "$as_dir" && as_dir=. | |
1798 | # Account for people who put trailing slashes in PATH elements. | |
1799 | case $as_dir/ in | |
1800 | ./ | .// | /cC/* | \ | |
1801 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
1802 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
1803 | /usr/ucb/* ) ;; | |
1804 | *) | |
1805 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
1806 | # Don't use installbsd from OSF since it installs stuff as root | |
1807 | # by default. | |
1808 | for ac_prog in ginstall scoinst install; do | |
1809 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5b0a4722 | 1810 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
e91b9f68 A |
1811 | if test $ac_prog = install && |
1812 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1813 | # AIX install. It has an incompatible calling convention. | |
1814 | : | |
1815 | elif test $ac_prog = install && | |
1816 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1817 | # program-specific install script used by HP pwplus--don't use. | |
1818 | : | |
1819 | else | |
1820 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
1821 | break 3 | |
1822 | fi | |
1823 | fi | |
1824 | done | |
1825 | done | |
1826 | ;; | |
1827 | esac | |
1828 | done | |
5b0a4722 | 1829 | IFS=$as_save_IFS |
e91b9f68 A |
1830 | |
1831 | ||
1832 | fi | |
1833 | if test "${ac_cv_path_install+set}" = set; then | |
1834 | INSTALL=$ac_cv_path_install | |
1835 | else | |
5b0a4722 A |
1836 | # As a last resort, use the slow shell script. Don't cache a |
1837 | # value for INSTALL within a source directory, because that will | |
e91b9f68 | 1838 | # break other packages using the cache if that directory is |
5b0a4722 | 1839 | # removed, or if the value is a relative name. |
e91b9f68 A |
1840 | INSTALL=$ac_install_sh |
1841 | fi | |
1842 | fi | |
5b0a4722 A |
1843 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
1844 | echo "${ECHO_T}$INSTALL" >&6; } | |
e91b9f68 A |
1845 | |
1846 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
1847 | # It thinks the first close brace ends the variable substitution. | |
1848 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1849 | ||
1850 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
1851 | ||
1852 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1853 | ||
5b0a4722 A |
1854 | { echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
1855 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } | |
e91b9f68 A |
1856 | # Just in case |
1857 | sleep 1 | |
1858 | echo timestamp > conftest.file | |
1859 | # Do `set' in a subshell so we don't clobber the current shell's | |
1860 | # arguments. Must try -L first in case configure is actually a | |
1861 | # symlink; some systems play weird games with the mod time of symlinks | |
1862 | # (eg FreeBSD returns the mod time of the symlink's containing | |
1863 | # directory). | |
1864 | if ( | |
1865 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` | |
1866 | if test "$*" = "X"; then | |
1867 | # -L didn't work. | |
1868 | set X `ls -t $srcdir/configure conftest.file` | |
1869 | fi | |
1870 | rm -f conftest.file | |
1871 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
1872 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
1873 | ||
1874 | # If neither matched, then we have a broken ls. This can happen | |
1875 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
1876 | # broken ls alias from the environment. This has actually | |
1877 | # happened. Such a system could not be considered "sane". | |
1878 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken | |
1879 | alias in your environment" >&5 | |
1880 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
1881 | alias in your environment" >&2;} | |
1882 | { (exit 1); exit 1; }; } | |
1883 | fi | |
1884 | ||
1885 | test "$2" = conftest.file | |
1886 | ) | |
1887 | then | |
1888 | # Ok. | |
1889 | : | |
1890 | else | |
1891 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! | |
1892 | Check your system clock" >&5 | |
1893 | echo "$as_me: error: newly created file is older than distributed files! | |
1894 | Check your system clock" >&2;} | |
1895 | { (exit 1); exit 1; }; } | |
1896 | fi | |
5b0a4722 A |
1897 | { echo "$as_me:$LINENO: result: yes" >&5 |
1898 | echo "${ECHO_T}yes" >&6; } | |
e91b9f68 | 1899 | test "$program_prefix" != NONE && |
5b0a4722 | 1900 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
e91b9f68 A |
1901 | # Use a double $ so make ignores it. |
1902 | test "$program_suffix" != NONE && | |
5b0a4722 | 1903 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
e91b9f68 A |
1904 | # Double any \ or $. echo might interpret backslashes. |
1905 | # By default was `s,x,x', remove it if useless. | |
1906 | cat <<\_ACEOF >conftest.sed | |
1907 | s/[\\$]/&&/g;s/;s,x,x,$// | |
1908 | _ACEOF | |
1909 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
5b0a4722 | 1910 | rm -f conftest.sed |
e91b9f68 A |
1911 | |
1912 | # expand $ac_aux_dir to an absolute path | |
1913 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
1914 | ||
1915 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | |
1916 | # Use eval to expand $SHELL | |
1917 | if eval "$MISSING --run true"; then | |
1918 | am_missing_run="$MISSING --run " | |
1919 | else | |
1920 | am_missing_run= | |
1921 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 | |
1922 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
1923 | fi | |
1924 | ||
5b0a4722 A |
1925 | { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 |
1926 | echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } | |
1927 | if test -z "$MKDIR_P"; then | |
1928 | if test "${ac_cv_path_mkdir+set}" = set; then | |
1929 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1930 | else | |
1931 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1932 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
1933 | do | |
1934 | IFS=$as_save_IFS | |
1935 | test -z "$as_dir" && as_dir=. | |
1936 | for ac_prog in mkdir gmkdir; do | |
1937 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1938 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
1939 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
1940 | 'mkdir (GNU coreutils) '* | \ | |
1941 | 'mkdir (coreutils) '* | \ | |
1942 | 'mkdir (fileutils) '4.1*) | |
1943 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
1944 | break 3;; | |
1945 | esac | |
1946 | done | |
1947 | done | |
1948 | done | |
1949 | IFS=$as_save_IFS | |
1950 | ||
1951 | fi | |
1952 | ||
1953 | if test "${ac_cv_path_mkdir+set}" = set; then | |
1954 | MKDIR_P="$ac_cv_path_mkdir -p" | |
1955 | else | |
1956 | # As a last resort, use the slow shell script. Don't cache a | |
1957 | # value for MKDIR_P within a source directory, because that will | |
1958 | # break other packages using the cache if that directory is | |
1959 | # removed, or if the value is a relative name. | |
1960 | test -d ./--version && rmdir ./--version | |
1961 | MKDIR_P="$ac_install_sh -d" | |
1962 | fi | |
1963 | fi | |
1964 | { echo "$as_me:$LINENO: result: $MKDIR_P" >&5 | |
1965 | echo "${ECHO_T}$MKDIR_P" >&6; } | |
1966 | ||
1967 | mkdir_p="$MKDIR_P" | |
1968 | case $mkdir_p in | |
1969 | [\\/$]* | ?:[\\/]*) ;; | |
1970 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
1971 | esac | |
1972 | ||
e91b9f68 A |
1973 | for ac_prog in gawk mawk nawk awk |
1974 | do | |
1975 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1976 | set dummy $ac_prog; ac_word=$2 | |
5b0a4722 A |
1977 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1978 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
e91b9f68 A |
1979 | if test "${ac_cv_prog_AWK+set}" = set; then |
1980 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1981 | else | |
1982 | if test -n "$AWK"; then | |
1983 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
1984 | else | |
1985 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1986 | for as_dir in $PATH | |
1987 | do | |
1988 | IFS=$as_save_IFS | |
1989 | test -z "$as_dir" && as_dir=. | |
1990 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5b0a4722 | 1991 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
e91b9f68 A |
1992 | ac_cv_prog_AWK="$ac_prog" |
1993 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1994 | break 2 | |
1995 | fi | |
1996 | done | |
1997 | done | |
5b0a4722 | 1998 | IFS=$as_save_IFS |
e91b9f68 A |
1999 | |
2000 | fi | |
2001 | fi | |
2002 | AWK=$ac_cv_prog_AWK | |
2003 | if test -n "$AWK"; then | |
5b0a4722 A |
2004 | { echo "$as_me:$LINENO: result: $AWK" >&5 |
2005 | echo "${ECHO_T}$AWK" >&6; } | |
e91b9f68 | 2006 | else |
5b0a4722 A |
2007 | { echo "$as_me:$LINENO: result: no" >&5 |
2008 | echo "${ECHO_T}no" >&6; } | |
e91b9f68 A |
2009 | fi |
2010 | ||
5b0a4722 | 2011 | |
e91b9f68 A |
2012 | test -n "$AWK" && break |
2013 | done | |
2014 | ||
5b0a4722 A |
2015 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
2016 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } | |
2017 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
2018 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then | |
e91b9f68 A |
2019 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2020 | else | |
2021 | cat >conftest.make <<\_ACEOF | |
5b0a4722 | 2022 | SHELL = /bin/sh |
e91b9f68 | 2023 | all: |
5b0a4722 | 2024 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
e91b9f68 A |
2025 | _ACEOF |
2026 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
5b0a4722 A |
2027 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
2028 | *@@@%%%=?*=@@@%%%*) | |
2029 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2030 | *) | |
2031 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
2032 | esac | |
e91b9f68 A |
2033 | rm -f conftest.make |
2034 | fi | |
5b0a4722 A |
2035 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
2036 | { echo "$as_me:$LINENO: result: yes" >&5 | |
2037 | echo "${ECHO_T}yes" >&6; } | |
e91b9f68 A |
2038 | SET_MAKE= |
2039 | else | |
5b0a4722 A |
2040 | { echo "$as_me:$LINENO: result: no" >&5 |
2041 | echo "${ECHO_T}no" >&6; } | |
e91b9f68 A |
2042 | SET_MAKE="MAKE=${MAKE-make}" |
2043 | fi | |
2044 | ||
5b0a4722 A |
2045 | rm -rf .tst 2>/dev/null |
2046 | mkdir .tst 2>/dev/null | |
2047 | if test -d .tst; then | |
2048 | am__leading_dot=. | |
2049 | else | |
2050 | am__leading_dot=_ | |
2051 | fi | |
2052 | rmdir .tst 2>/dev/null | |
2053 | ||
2054 | if test "`cd $srcdir && pwd`" != "`pwd`"; then | |
2055 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
2056 | # is not polluted with repeated "-I." | |
2057 | am__isrc=' -I$(srcdir)' | |
2058 | # test to see if srcdir already configured | |
2059 | if test -f $srcdir/config.status; then | |
2060 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 | |
e91b9f68 A |
2061 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
2062 | { (exit 1); exit 1; }; } | |
5b0a4722 | 2063 | fi |
e91b9f68 A |
2064 | fi |
2065 | ||
5b0a4722 A |
2066 | # test whether we have cygpath |
2067 | if test -z "$CYGPATH_W"; then | |
2068 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
2069 | CYGPATH_W='cygpath -w' | |
2070 | else | |
2071 | CYGPATH_W=echo | |
2072 | fi | |
2073 | fi | |
2074 | ||
2075 | ||
e91b9f68 | 2076 | # Define the identity of the package. |
5b0a4722 A |
2077 | PACKAGE='launchd' |
2078 | VERSION='1.0' | |
e91b9f68 A |
2079 | |
2080 | ||
2081 | cat >>confdefs.h <<_ACEOF | |
2082 | #define PACKAGE "$PACKAGE" | |
2083 | _ACEOF | |
2084 | ||
2085 | ||
2086 | cat >>confdefs.h <<_ACEOF | |
2087 | #define VERSION "$VERSION" | |
2088 | _ACEOF | |
2089 | ||
2090 | # Some tools Automake needs. | |
2091 | ||
2092 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
2093 | ||
2094 | ||
2095 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
2096 | ||
2097 | ||
2098 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
2099 | ||
2100 | ||
2101 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
2102 | ||
2103 | ||
2104 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
2105 | ||
5b0a4722 | 2106 | install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} |
e91b9f68 A |
2107 | |
2108 | # Installed binaries are usually stripped using `strip' when the user | |
2109 | # run `make install-strip'. However `strip' might not be the right | |
2110 | # tool to use in cross-compilation environments, therefore Automake | |
2111 | # will honor the `STRIP' environment variable to overrule this program. | |
2112 | if test "$cross_compiling" != no; then | |
2113 | if test -n "$ac_tool_prefix"; then | |
2114 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2115 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
5b0a4722 A |
2116 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2117 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
e91b9f68 A |
2118 | if test "${ac_cv_prog_STRIP+set}" = set; then |
2119 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2120 | else | |
2121 | if test -n "$STRIP"; then | |
2122 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2123 | else | |
2124 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2125 | for as_dir in $PATH | |
2126 | do | |
2127 | IFS=$as_save_IFS | |
2128 | test -z "$as_dir" && as_dir=. | |
2129 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5b0a4722 | 2130 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
e91b9f68 A |
2131 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
2132 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2133 | break 2 | |
2134 | fi | |
2135 | done | |
2136 | done | |
5b0a4722 | 2137 | IFS=$as_save_IFS |
e91b9f68 A |
2138 | |
2139 | fi | |
2140 | fi | |
2141 | STRIP=$ac_cv_prog_STRIP | |
2142 | if test -n "$STRIP"; then | |
5b0a4722 A |
2143 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
2144 | echo "${ECHO_T}$STRIP" >&6; } | |
e91b9f68 | 2145 | else |
5b0a4722 A |
2146 | { echo "$as_me:$LINENO: result: no" >&5 |
2147 | echo "${ECHO_T}no" >&6; } | |
e91b9f68 A |
2148 | fi |
2149 | ||
5b0a4722 | 2150 | |
e91b9f68 A |
2151 | fi |
2152 | if test -z "$ac_cv_prog_STRIP"; then | |
2153 | ac_ct_STRIP=$STRIP | |
2154 | # Extract the first word of "strip", so it can be a program name with args. | |
2155 | set dummy strip; ac_word=$2 | |
5b0a4722 A |
2156 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2157 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
e91b9f68 A |
2158 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
2159 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2160 | else | |
2161 | if test -n "$ac_ct_STRIP"; then | |
2162 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2163 | else | |
2164 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2165 | for as_dir in $PATH | |
2166 | do | |
2167 | IFS=$as_save_IFS | |
2168 | test -z "$as_dir" && as_dir=. | |
2169 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5b0a4722 | 2170 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
e91b9f68 A |
2171 | ac_cv_prog_ac_ct_STRIP="strip" |
2172 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2173 | break 2 | |
2174 | fi | |
2175 | done | |
2176 | done | |
5b0a4722 | 2177 | IFS=$as_save_IFS |
e91b9f68 | 2178 | |
e91b9f68 A |
2179 | fi |
2180 | fi | |
2181 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2182 | if test -n "$ac_ct_STRIP"; then | |
5b0a4722 A |
2183 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
2184 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } | |
e91b9f68 | 2185 | else |
5b0a4722 A |
2186 | { echo "$as_me:$LINENO: result: no" >&5 |
2187 | echo "${ECHO_T}no" >&6; } | |
e91b9f68 A |
2188 | fi |
2189 | ||
5b0a4722 A |
2190 | if test "x$ac_ct_STRIP" = x; then |
2191 | STRIP=":" | |
2192 | else | |
2193 | case $cross_compiling:$ac_tool_warned in | |
2194 | yes:) | |
2195 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
2196 | whose name does not start with the host triplet. If you think this | |
2197 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
2198 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
2199 | whose name does not start with the host triplet. If you think this | |
2200 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2201 | ac_tool_warned=yes ;; | |
2202 | esac | |
2203 | STRIP=$ac_ct_STRIP | |
2204 | fi | |
e91b9f68 A |
2205 | else |
2206 | STRIP="$ac_cv_prog_STRIP" | |
2207 | fi | |
2208 | ||
2209 | fi | |
5b0a4722 | 2210 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
e91b9f68 A |
2211 | |
2212 | # We need awk for the "check" target. The system "awk" is bad on | |
2213 | # some platforms. | |
5b0a4722 | 2214 | # Always define AMTAR for backward compatibility. |
e91b9f68 | 2215 | |
5b0a4722 A |
2216 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
2217 | ||
2218 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
e91b9f68 A |
2219 | |
2220 | ||
e91b9f68 A |
2221 | |
2222 | ||
2223 | ||
5b0a4722 A |
2224 | ac_config_headers="$ac_config_headers src/config.h" |
2225 | ||
e91b9f68 A |
2226 | |
2227 | # Checks for programs. | |
2228 | ac_ext=c | |
2229 | ac_cpp='$CPP $CPPFLAGS' | |
2230 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2231 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2232 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2233 | if test -n "$ac_tool_prefix"; then | |
2234 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2235 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
5b0a4722 A |
2236 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2237 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
e91b9f68 A |
2238 | if test "${ac_cv_prog_CC+set}" = set; then |
2239 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2240 | else | |
2241 | if test -n "$CC"; then | |
2242 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2243 | else | |
2244 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2245 | for as_dir in $PATH | |
2246 | do | |
2247 | IFS=$as_save_IFS | |
2248 | test -z "$as_dir" && as_dir=. | |
2249 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5b0a4722 | 2250 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
e91b9f68 A |
2251 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
2252 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2253 | break 2 | |
2254 | fi | |
2255 | done | |
2256 | done | |
5b0a4722 | 2257 | IFS=$as_save_IFS |
e91b9f68 A |
2258 | |
2259 | fi | |
2260 | fi | |
2261 | CC=$ac_cv_prog_CC | |
2262 | if test -n "$CC"; then | |
5b0a4722 A |
2263 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2264 | echo "${ECHO_T}$CC" >&6; } | |
e91b9f68 | 2265 | else |
5b0a4722 A |
2266 | { echo "$as_me:$LINENO: result: no" >&5 |
2267 | echo "${ECHO_T}no" >&6; } | |
e91b9f68 A |
2268 | fi |
2269 | ||
5b0a4722 | 2270 | |
e91b9f68 A |
2271 | fi |
2272 | if test -z "$ac_cv_prog_CC"; then | |
2273 | ac_ct_CC=$CC | |
2274 | # Extract the first word of "gcc", so it can be a program name with args. | |
2275 | set dummy gcc; ac_word=$2 | |
5b0a4722 A |
2276 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2277 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
e91b9f68 A |
2278 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2279 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2280 | else | |
2281 | if test -n "$ac_ct_CC"; then | |
2282 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2283 | else | |
2284 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2285 | for as_dir in $PATH | |
2286 | do | |
2287 | IFS=$as_save_IFS | |
2288 | test -z "$as_dir" && as_dir=. | |
2289 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5b0a4722 | 2290 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
e91b9f68 A |
2291 | ac_cv_prog_ac_ct_CC="gcc" |
2292 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2293 | break 2 | |
2294 | fi | |
2295 | done | |
2296 | done | |
5b0a4722 | 2297 | IFS=$as_save_IFS |
e91b9f68 A |
2298 | |
2299 | fi | |
2300 | fi | |
2301 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2302 | if test -n "$ac_ct_CC"; then | |
5b0a4722 A |
2303 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2304 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
e91b9f68 | 2305 | else |
5b0a4722 A |
2306 | { echo "$as_me:$LINENO: result: no" >&5 |
2307 | echo "${ECHO_T}no" >&6; } | |
e91b9f68 A |
2308 | fi |
2309 | ||
5b0a4722 A |
2310 | if test "x$ac_ct_CC" = x; then |
2311 | CC="" | |
2312 | else | |
2313 | case $cross_compiling:$ac_tool_warned in | |
2314 | yes:) | |
2315 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
2316 | whose name does not start with the host triplet. If you think this | |
2317 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
2318 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
2319 | whose name does not start with the host triplet. If you think this | |
2320 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2321 | ac_tool_warned=yes ;; | |
2322 | esac | |
2323 | CC=$ac_ct_CC | |
2324 | fi | |
e91b9f68 A |
2325 | else |
2326 | CC="$ac_cv_prog_CC" | |
2327 | fi | |
2328 | ||
2329 | if test -z "$CC"; then | |
5b0a4722 A |
2330 | if test -n "$ac_tool_prefix"; then |
2331 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
e91b9f68 | 2332 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
5b0a4722 A |
2333 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2334 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
e91b9f68 A |
2335 | if test "${ac_cv_prog_CC+set}" = set; then |
2336 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2337 | else | |
2338 | if test -n "$CC"; then | |
2339 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2340 | else | |
2341 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2342 | for as_dir in $PATH | |
2343 | do | |
2344 | IFS=$as_save_IFS | |
2345 | test -z "$as_dir" && as_dir=. | |
2346 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5b0a4722 | 2347 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
e91b9f68 A |
2348 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
2349 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2350 | break 2 | |
2351 | fi | |
2352 | done | |
2353 | done | |
5b0a4722 | 2354 | IFS=$as_save_IFS |
e91b9f68 A |
2355 | |
2356 | fi | |
2357 | fi | |
2358 | CC=$ac_cv_prog_CC | |
2359 | if test -n "$CC"; then | |
5b0a4722 A |
2360 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2361 | echo "${ECHO_T}$CC" >&6; } | |
e91b9f68 | 2362 | else |
5b0a4722 A |
2363 | { echo "$as_me:$LINENO: result: no" >&5 |
2364 | echo "${ECHO_T}no" >&6; } | |
e91b9f68 A |
2365 | fi |
2366 | ||
e91b9f68 | 2367 | |
5b0a4722 | 2368 | fi |
e91b9f68 A |
2369 | fi |
2370 | if test -z "$CC"; then | |
2371 | # Extract the first word of "cc", so it can be a program name with args. | |
2372 | set dummy cc; ac_word=$2 | |
5b0a4722 A |
2373 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2374 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
e91b9f68 A |
2375 | if test "${ac_cv_prog_CC+set}" = set; then |
2376 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2377 | else | |
2378 | if test -n "$CC"; then | |
2379 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2380 | else | |
2381 | ac_prog_rejected=no | |
2382 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2383 | for as_dir in $PATH | |
2384 | do | |
2385 | IFS=$as_save_IFS | |
2386 | test -z "$as_dir" && as_dir=. | |
2387 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5b0a4722 | 2388 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
e91b9f68 A |
2389 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2390 | ac_prog_rejected=yes | |
2391 | continue | |
2392 | fi | |
2393 | ac_cv_prog_CC="cc" | |
2394 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2395 | break 2 | |
2396 | fi | |
2397 | done | |
2398 | done | |
5b0a4722 | 2399 | IFS=$as_save_IFS |
e91b9f68 A |
2400 | |
2401 | if test $ac_prog_rejected = yes; then | |
2402 | # We found a bogon in the path, so make sure we never use it. | |
2403 | set dummy $ac_cv_prog_CC | |
2404 | shift | |
2405 | if test $# != 0; then | |
2406 | # We chose a different compiler from the bogus one. | |
2407 | # However, it has the same basename, so the bogon will be chosen | |
2408 | # first if we set CC to just the basename; use the full file name. | |
2409 | shift | |
2410 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2411 | fi | |
2412 | fi | |
2413 | fi | |
2414 | fi | |
2415 | CC=$ac_cv_prog_CC | |
2416 | if test -n "$CC"; then | |
5b0a4722 A |
2417 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2418 | echo "${ECHO_T}$CC" >&6; } | |
e91b9f68 | 2419 | else |
5b0a4722 A |
2420 | { echo "$as_me:$LINENO: result: no" >&5 |
2421 | echo "${ECHO_T}no" >&6; } | |
e91b9f68 A |
2422 | fi |
2423 | ||
5b0a4722 | 2424 | |
e91b9f68 A |
2425 | fi |
2426 | if test -z "$CC"; then | |
2427 | if test -n "$ac_tool_prefix"; then | |
5b0a4722 | 2428 | for ac_prog in cl.exe |
e91b9f68 A |
2429 | do |
2430 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2431 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5b0a4722 A |
2432 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2433 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
e91b9f68 A |
2434 | if test "${ac_cv_prog_CC+set}" = set; then |
2435 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2436 | else | |
2437 | if test -n "$CC"; then | |
2438 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2439 | else | |
2440 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2441 | for as_dir in $PATH | |
2442 | do | |
2443 | IFS=$as_save_IFS | |
2444 | test -z "$as_dir" && as_dir=. | |
2445 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5b0a4722 | 2446 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
e91b9f68 A |
2447 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
2448 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2449 | break 2 | |
2450 | fi | |
2451 | done | |
2452 | done | |
5b0a4722 | 2453 | IFS=$as_save_IFS |
e91b9f68 A |
2454 | |
2455 | fi | |
2456 | fi | |
2457 | CC=$ac_cv_prog_CC | |
2458 | if test -n "$CC"; then | |
5b0a4722 A |
2459 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2460 | echo "${ECHO_T}$CC" >&6; } | |
e91b9f68 | 2461 | else |
5b0a4722 A |
2462 | { echo "$as_me:$LINENO: result: no" >&5 |
2463 | echo "${ECHO_T}no" >&6; } | |
e91b9f68 A |
2464 | fi |
2465 | ||
5b0a4722 | 2466 | |
e91b9f68 A |
2467 | test -n "$CC" && break |
2468 | done | |
2469 | fi | |
2470 | if test -z "$CC"; then | |
2471 | ac_ct_CC=$CC | |
5b0a4722 | 2472 | for ac_prog in cl.exe |
e91b9f68 A |
2473 | do |
2474 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2475 | set dummy $ac_prog; ac_word=$2 | |
5b0a4722 A |
2476 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2477 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
e91b9f68 A |
2478 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2479 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2480 | else | |
2481 | if test -n "$ac_ct_CC"; then | |
2482 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2483 | else | |
2484 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2485 | for as_dir in $PATH | |
2486 | do | |
2487 | IFS=$as_save_IFS | |
2488 | test -z "$as_dir" && as_dir=. | |
2489 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5b0a4722 | 2490 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
e91b9f68 A |
2491 | ac_cv_prog_ac_ct_CC="$ac_prog" |
2492 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2493 | break 2 | |
2494 | fi | |
2495 | done | |
2496 | done | |
5b0a4722 | 2497 | IFS=$as_save_IFS |
e91b9f68 A |
2498 | |
2499 | fi | |
2500 | fi | |
2501 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2502 | if test -n "$ac_ct_CC"; then | |
5b0a4722 A |
2503 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2504 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
e91b9f68 | 2505 | else |
5b0a4722 A |
2506 | { echo "$as_me:$LINENO: result: no" >&5 |
2507 | echo "${ECHO_T}no" >&6; } | |
e91b9f68 A |
2508 | fi |
2509 | ||
5b0a4722 | 2510 | |
e91b9f68 A |
2511 | test -n "$ac_ct_CC" && break |
2512 | done | |
2513 | ||
5b0a4722 A |
2514 | if test "x$ac_ct_CC" = x; then |
2515 | CC="" | |
2516 | else | |
2517 | case $cross_compiling:$ac_tool_warned in | |
2518 | yes:) | |
2519 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
2520 | whose name does not start with the host triplet. If you think this | |
2521 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
2522 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
2523 | whose name does not start with the host triplet. If you think this | |
2524 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2525 | ac_tool_warned=yes ;; | |
2526 | esac | |
2527 | CC=$ac_ct_CC | |
2528 | fi | |
e91b9f68 A |
2529 | fi |
2530 | ||
2531 | fi | |
2532 | ||
2533 | ||
2534 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
2535 | See \`config.log' for more details." >&5 | |
2536 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
2537 | See \`config.log' for more details." >&2;} | |
2538 | { (exit 1); exit 1; }; } | |
2539 | ||
2540 | # Provide some information about the compiler. | |
5b0a4722 | 2541 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
e91b9f68 | 2542 | ac_compiler=`set X $ac_compile; echo $2` |
5b0a4722 A |
2543 | { (ac_try="$ac_compiler --version >&5" |
2544 | case "(($ac_try" in | |
2545 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2546 | *) ac_try_echo=$ac_try;; | |
2547 | esac | |
2548 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2549 | (eval "$ac_compiler --version >&5") 2>&5 | |
e91b9f68 A |
2550 | ac_status=$? |
2551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2552 | (exit $ac_status); } | |
5b0a4722 A |
2553 | { (ac_try="$ac_compiler -v >&5" |
2554 | case "(($ac_try" in | |
2555 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2556 | *) ac_try_echo=$ac_try;; | |
2557 | esac | |
2558 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2559 | (eval "$ac_compiler -v >&5") 2>&5 | |
e91b9f68 A |
2560 | ac_status=$? |
2561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2562 | (exit $ac_status); } | |
5b0a4722 A |
2563 | { (ac_try="$ac_compiler -V >&5" |
2564 | case "(($ac_try" in | |
2565 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2566 | *) ac_try_echo=$ac_try;; | |
2567 | esac | |
2568 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2569 | (eval "$ac_compiler -V >&5") 2>&5 | |
e91b9f68 A |
2570 | ac_status=$? |
2571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2572 | (exit $ac_status); } | |
2573 | ||
2574 | cat >conftest.$ac_ext <<_ACEOF | |
2575 | /* confdefs.h. */ | |
2576 | _ACEOF | |
2577 | cat confdefs.h >>conftest.$ac_ext | |
2578 | cat >>conftest.$ac_ext <<_ACEOF | |
2579 | /* end confdefs.h. */ | |
2580 | ||
2581 | int | |
2582 | main () | |
2583 | { | |
2584 | ||
2585 | ; | |
2586 | return 0; | |
2587 | } | |
2588 | _ACEOF | |
2589 | ac_clean_files_save=$ac_clean_files | |
2590 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
2591 | # Try to create an executable without -o first, disregard a.out. | |
2592 | # It will help us diagnose broken compilers, and finding out an intuition | |
2593 | # of exeext. | |
5b0a4722 A |
2594 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2595 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } | |
e91b9f68 | 2596 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
5b0a4722 A |
2597 | # |
2598 | # List of possible output files, starting from the most likely. | |
2599 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) | |
2600 | # only as a last resort. b.out is created by i960 compilers. | |
2601 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' | |
2602 | # | |
2603 | # The IRIX 6 linker writes into existing files which may not be | |
2604 | # executable, retaining their permissions. Remove them first so a | |
2605 | # subsequent execution test works. | |
2606 | ac_rmfiles= | |
2607 | for ac_file in $ac_files | |
2608 | do | |
2609 | case $ac_file in | |
2610 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | |
2611 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
2612 | esac | |
2613 | done | |
2614 | rm -f $ac_rmfiles | |
2615 | ||
2616 | if { (ac_try="$ac_link_default" | |
2617 | case "(($ac_try" in | |
2618 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2619 | *) ac_try_echo=$ac_try;; | |
2620 | esac | |
2621 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2622 | (eval "$ac_link_default") 2>&5 | |
e91b9f68 A |
2623 | ac_status=$? |
2624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2625 | (exit $ac_status); }; then | |
5b0a4722 A |
2626 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2627 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2628 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2629 | # so that the user can short-circuit this test for compilers unknown to | |
2630 | # Autoconf. | |
2631 | for ac_file in $ac_files '' | |
e91b9f68 A |
2632 | do |
2633 | test -f "$ac_file" || continue | |
2634 | case $ac_file in | |
5b0a4722 | 2635 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
e91b9f68 A |
2636 | ;; |
2637 | [ab].out ) | |
2638 | # We found the default executable, but exeext='' is most | |
2639 | # certainly right. | |
2640 | break;; | |
2641 | *.* ) | |
5b0a4722 A |
2642 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2643 | then :; else | |
2644 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2645 | fi | |
2646 | # We set ac_cv_exeext here because the later test for it is not | |
2647 | # safe: cross compilers may not add the suffix if given an `-o' | |
2648 | # argument, so we may need to know it at that point already. | |
2649 | # Even if this section looks crufty: it has the advantage of | |
2650 | # actually working. | |
e91b9f68 A |
2651 | break;; |
2652 | * ) | |
2653 | break;; | |
2654 | esac | |
2655 | done | |
5b0a4722 A |
2656 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2657 | ||
e91b9f68 | 2658 | else |
5b0a4722 A |
2659 | ac_file='' |
2660 | fi | |
2661 | ||
2662 | { echo "$as_me:$LINENO: result: $ac_file" >&5 | |
2663 | echo "${ECHO_T}$ac_file" >&6; } | |
2664 | if test -z "$ac_file"; then | |
e91b9f68 A |
2665 | echo "$as_me: failed program was:" >&5 |
2666 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2667 | ||
2668 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
2669 | See \`config.log' for more details." >&5 | |
2670 | echo "$as_me: error: C compiler cannot create executables | |
2671 | See \`config.log' for more details." >&2;} | |
2672 | { (exit 77); exit 77; }; } | |
2673 | fi | |
2674 | ||
2675 | ac_exeext=$ac_cv_exeext | |
e91b9f68 | 2676 | |
5b0a4722 | 2677 | # Check that the compiler produces executables we can run. If not, either |
e91b9f68 | 2678 | # the compiler is broken, or we cross compile. |
5b0a4722 A |
2679 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2680 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } | |
e91b9f68 A |
2681 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2682 | # If not cross compiling, check that we can run a simple program. | |
2683 | if test "$cross_compiling" != yes; then | |
2684 | if { ac_try='./$ac_file' | |
5b0a4722 A |
2685 | { (case "(($ac_try" in |
2686 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2687 | *) ac_try_echo=$ac_try;; | |
2688 | esac | |
2689 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2690 | (eval "$ac_try") 2>&5 | |
e91b9f68 A |
2691 | ac_status=$? |
2692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2693 | (exit $ac_status); }; }; then | |
2694 | cross_compiling=no | |
2695 | else | |
2696 | if test "$cross_compiling" = maybe; then | |
2697 | cross_compiling=yes | |
2698 | else | |
2699 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
2700 | If you meant to cross compile, use \`--host'. | |
2701 | See \`config.log' for more details." >&5 | |
2702 | echo "$as_me: error: cannot run C compiled programs. | |
2703 | If you meant to cross compile, use \`--host'. | |
2704 | See \`config.log' for more details." >&2;} | |
2705 | { (exit 1); exit 1; }; } | |
2706 | fi | |
2707 | fi | |
2708 | fi | |
5b0a4722 A |
2709 | { echo "$as_me:$LINENO: result: yes" >&5 |
2710 | echo "${ECHO_T}yes" >&6; } | |
e91b9f68 A |
2711 | |
2712 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
2713 | ac_clean_files=$ac_clean_files_save | |
5b0a4722 | 2714 | # Check that the compiler produces executables we can run. If not, either |
e91b9f68 | 2715 | # the compiler is broken, or we cross compile. |
5b0a4722 A |
2716 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2717 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } | |
2718 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2719 | echo "${ECHO_T}$cross_compiling" >&6; } | |
2720 | ||
2721 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
2722 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } | |
2723 | if { (ac_try="$ac_link" | |
2724 | case "(($ac_try" in | |
2725 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2726 | *) ac_try_echo=$ac_try;; | |
2727 | esac | |
2728 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2729 | (eval "$ac_link") 2>&5 | |
e91b9f68 A |
2730 | ac_status=$? |
2731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2732 | (exit $ac_status); }; then | |
2733 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2734 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2735 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2736 | # `rm'. | |
2737 | for ac_file in conftest.exe conftest conftest.*; do | |
2738 | test -f "$ac_file" || continue | |
2739 | case $ac_file in | |
5b0a4722 | 2740 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
e91b9f68 | 2741 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
e91b9f68 A |
2742 | break;; |
2743 | * ) break;; | |
2744 | esac | |
2745 | done | |
2746 | else | |
2747 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
2748 | See \`config.log' for more details." >&5 | |
2749 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
2750 | See \`config.log' for more details." >&2;} | |
2751 | { (exit 1); exit 1; }; } | |
2752 | fi | |
2753 | ||
2754 | rm -f conftest$ac_cv_exeext | |
5b0a4722 A |
2755 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2756 | echo "${ECHO_T}$ac_cv_exeext" >&6; } | |
e91b9f68 A |
2757 | |
2758 | rm -f conftest.$ac_ext | |
2759 | EXEEXT=$ac_cv_exeext | |
2760 | ac_exeext=$EXEEXT | |
5b0a4722 A |
2761 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2762 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } | |
e91b9f68 A |
2763 | if test "${ac_cv_objext+set}" = set; then |
2764 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2765 | else | |
2766 | cat >conftest.$ac_ext <<_ACEOF | |
2767 | /* confdefs.h. */ | |
2768 | _ACEOF | |
2769 | cat confdefs.h >>conftest.$ac_ext | |
2770 | cat >>conftest.$ac_ext <<_ACEOF | |
2771 | /* end confdefs.h. */ | |
2772 | ||
2773 | int | |
2774 | main () | |
2775 | { | |
2776 | ||
2777 | ; | |
2778 | return 0; | |
2779 | } | |
2780 | _ACEOF | |
2781 | rm -f conftest.o conftest.obj | |
5b0a4722 A |
2782 | if { (ac_try="$ac_compile" |
2783 | case "(($ac_try" in | |
2784 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2785 | *) ac_try_echo=$ac_try;; | |
2786 | esac | |
2787 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2788 | (eval "$ac_compile") 2>&5 | |
e91b9f68 A |
2789 | ac_status=$? |
2790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2791 | (exit $ac_status); }; then | |
5b0a4722 A |
2792 | for ac_file in conftest.o conftest.obj conftest.*; do |
2793 | test -f "$ac_file" || continue; | |
e91b9f68 | 2794 | case $ac_file in |
5b0a4722 | 2795 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
e91b9f68 A |
2796 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2797 | break;; | |
2798 | esac | |
2799 | done | |
2800 | else | |
2801 | echo "$as_me: failed program was:" >&5 | |
2802 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2803 | ||
2804 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
2805 | See \`config.log' for more details." >&5 | |
2806 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
2807 | See \`config.log' for more details." >&2;} | |
2808 | { (exit 1); exit 1; }; } | |
2809 | fi | |
2810 | ||
2811 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2812 | fi | |
5b0a4722 A |
2813 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2814 | echo "${ECHO_T}$ac_cv_objext" >&6; } | |
e91b9f68 A |
2815 | OBJEXT=$ac_cv_objext |
2816 | ac_objext=$OBJEXT | |
5b0a4722 A |
2817 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
2818 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } | |
e91b9f68 A |
2819 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
2820 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2821 | else | |
2822 | cat >conftest.$ac_ext <<_ACEOF | |
2823 | /* confdefs.h. */ | |
2824 | _ACEOF | |
2825 | cat confdefs.h >>conftest.$ac_ext | |
2826 | cat >>conftest.$ac_ext <<_ACEOF | |
2827 | /* end confdefs.h. */ | |
2828 | ||
2829 | int | |
2830 | main () | |
2831 | { | |
2832 | #ifndef __GNUC__ | |
2833 | choke me | |
2834 | #endif | |
2835 | ||
2836 | ; | |
2837 | return 0; | |
2838 | } | |
2839 | _ACEOF | |
2840 | rm -f conftest.$ac_objext | |
5b0a4722 A |
2841 | if { (ac_try="$ac_compile" |
2842 | case "(($ac_try" in | |
2843 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2844 | *) ac_try_echo=$ac_try;; | |
2845 | esac | |
2846 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2847 | (eval "$ac_compile") 2>conftest.er1 | |
e91b9f68 A |
2848 | ac_status=$? |
2849 | grep -v '^ *+' conftest.er1 >conftest.err | |
2850 | rm -f conftest.er1 | |
2851 | cat conftest.err >&5 | |
2852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5b0a4722 A |
2853 | (exit $ac_status); } && { |
2854 | test -z "$ac_c_werror_flag" || | |
2855 | test ! -s conftest.err | |
2856 | } && test -s conftest.$ac_objext; then | |
e91b9f68 A |
2857 | ac_compiler_gnu=yes |
2858 | else | |
2859 | echo "$as_me: failed program was:" >&5 | |
2860 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2861 | ||
5b0a4722 | 2862 | ac_compiler_gnu=no |
e91b9f68 | 2863 | fi |
5b0a4722 A |
2864 | |
2865 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
e91b9f68 A |
2866 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
2867 | ||
2868 | fi | |
5b0a4722 A |
2869 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
2870 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } | |
e91b9f68 A |
2871 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
2872 | ac_test_CFLAGS=${CFLAGS+set} | |
2873 | ac_save_CFLAGS=$CFLAGS | |
5b0a4722 A |
2874 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
2875 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } | |
e91b9f68 A |
2876 | if test "${ac_cv_prog_cc_g+set}" = set; then |
2877 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2878 | else | |
5b0a4722 A |
2879 | ac_save_c_werror_flag=$ac_c_werror_flag |
2880 | ac_c_werror_flag=yes | |
2881 | ac_cv_prog_cc_g=no | |
2882 | CFLAGS="-g" | |
2883 | cat >conftest.$ac_ext <<_ACEOF | |
e91b9f68 A |
2884 | /* confdefs.h. */ |
2885 | _ACEOF | |
2886 | cat confdefs.h >>conftest.$ac_ext | |
2887 | cat >>conftest.$ac_ext <<_ACEOF | |
2888 | /* end confdefs.h. */ | |
2889 | ||
2890 | int | |
2891 | main () | |
2892 | { | |
2893 | ||
2894 | ; | |
2895 | return 0; | |
2896 | } | |
2897 | _ACEOF | |
2898 | rm -f conftest.$ac_objext | |
5b0a4722 A |
2899 | if { (ac_try="$ac_compile" |
2900 | case "(($ac_try" in | |
2901 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2902 | *) ac_try_echo=$ac_try;; | |
2903 | esac | |
2904 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2905 | (eval "$ac_compile") 2>conftest.er1 | |
e91b9f68 A |
2906 | ac_status=$? |
2907 | grep -v '^ *+' conftest.er1 >conftest.err | |
2908 | rm -f conftest.er1 | |
2909 | cat conftest.err >&5 | |
2910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5b0a4722 A |
2911 | (exit $ac_status); } && { |
2912 | test -z "$ac_c_werror_flag" || | |
2913 | test ! -s conftest.err | |
2914 | } && test -s conftest.$ac_objext; then | |
2915 | ac_cv_prog_cc_g=yes | |
2916 | else | |
2917 | echo "$as_me: failed program was:" >&5 | |
2918 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2919 | ||
2920 | CFLAGS="" | |
2921 | cat >conftest.$ac_ext <<_ACEOF | |
2922 | /* confdefs.h. */ | |
2923 | _ACEOF | |
2924 | cat confdefs.h >>conftest.$ac_ext | |
2925 | cat >>conftest.$ac_ext <<_ACEOF | |
2926 | /* end confdefs.h. */ | |
2927 | ||
2928 | int | |
2929 | main () | |
2930 | { | |
2931 | ||
2932 | ; | |
2933 | return 0; | |
2934 | } | |
2935 | _ACEOF | |
2936 | rm -f conftest.$ac_objext | |
2937 | if { (ac_try="$ac_compile" | |
2938 | case "(($ac_try" in | |
2939 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2940 | *) ac_try_echo=$ac_try;; | |
2941 | esac | |
2942 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2943 | (eval "$ac_compile") 2>conftest.er1 | |
e91b9f68 | 2944 | ac_status=$? |
5b0a4722 A |
2945 | grep -v '^ *+' conftest.er1 >conftest.err |
2946 | rm -f conftest.er1 | |
2947 | cat conftest.err >&5 | |
e91b9f68 | 2948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5b0a4722 A |
2949 | (exit $ac_status); } && { |
2950 | test -z "$ac_c_werror_flag" || | |
2951 | test ! -s conftest.err | |
2952 | } && test -s conftest.$ac_objext; then | |
2953 | : | |
2954 | else | |
2955 | echo "$as_me: failed program was:" >&5 | |
2956 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2957 | ||
2958 | ac_c_werror_flag=$ac_save_c_werror_flag | |
2959 | CFLAGS="-g" | |
2960 | cat >conftest.$ac_ext <<_ACEOF | |
2961 | /* confdefs.h. */ | |
2962 | _ACEOF | |
2963 | cat confdefs.h >>conftest.$ac_ext | |
2964 | cat >>conftest.$ac_ext <<_ACEOF | |
2965 | /* end confdefs.h. */ | |
2966 | ||
2967 | int | |
2968 | main () | |
2969 | { | |
2970 | ||
2971 | ; | |
2972 | return 0; | |
2973 | } | |
2974 | _ACEOF | |
2975 | rm -f conftest.$ac_objext | |
2976 | if { (ac_try="$ac_compile" | |
2977 | case "(($ac_try" in | |
2978 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2979 | *) ac_try_echo=$ac_try;; | |
2980 | esac | |
2981 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2982 | (eval "$ac_compile") 2>conftest.er1 | |
e91b9f68 | 2983 | ac_status=$? |
5b0a4722 A |
2984 | grep -v '^ *+' conftest.er1 >conftest.err |
2985 | rm -f conftest.er1 | |
2986 | cat conftest.err >&5 | |
e91b9f68 | 2987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5b0a4722 A |
2988 | (exit $ac_status); } && { |
2989 | test -z "$ac_c_werror_flag" || | |
2990 | test ! -s conftest.err | |
2991 | } && test -s conftest.$ac_objext; then | |
e91b9f68 A |
2992 | ac_cv_prog_cc_g=yes |
2993 | else | |
2994 | echo "$as_me: failed program was:" >&5 | |
2995 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2996 | ||
5b0a4722 A |
2997 | |
2998 | fi | |
2999 | ||
3000 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3001 | fi | |
3002 | ||
3003 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
e91b9f68 | 3004 | fi |
5b0a4722 A |
3005 | |
3006 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3007 | ac_c_werror_flag=$ac_save_c_werror_flag | |
e91b9f68 | 3008 | fi |
5b0a4722 A |
3009 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
3010 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } | |
e91b9f68 A |
3011 | if test "$ac_test_CFLAGS" = set; then |
3012 | CFLAGS=$ac_save_CFLAGS | |
3013 | elif test $ac_cv_prog_cc_g = yes; then | |
3014 | if test "$GCC" = yes; then | |
3015 | CFLAGS="-g -O2" | |
3016 | else | |
3017 | CFLAGS="-g" | |
3018 | fi | |
3019 | else | |
3020 | if test "$GCC" = yes; then | |
3021 | CFLAGS="-O2" | |
3022 | else | |
3023 | CFLAGS= | |
3024 | fi | |
3025 | fi | |
5b0a4722 A |
3026 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
3027 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } | |
3028 | if test "${ac_cv_prog_cc_c89+set}" = set; then | |
e91b9f68 A |
3029 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3030 | else | |
5b0a4722 | 3031 | ac_cv_prog_cc_c89=no |
e91b9f68 A |
3032 | ac_save_CC=$CC |
3033 | cat >conftest.$ac_ext <<_ACEOF | |
3034 | /* confdefs.h. */ | |
3035 | _ACEOF | |
3036 | cat confdefs.h >>conftest.$ac_ext | |
3037 | cat >>conftest.$ac_ext <<_ACEOF | |
3038 | /* end confdefs.h. */ | |
3039 | #include <stdarg.h> | |
3040 | #include <stdio.h> | |
3041 | #include <sys/types.h> | |
3042 | #include <sys/stat.h> | |
3043 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3044 | struct buf { int x; }; | |
3045 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3046 | static char *e (p, i) | |
3047 | char **p; | |
3048 | int i; | |
3049 | { | |
3050 | return p[i]; | |
3051 | } | |
3052 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3053 | { | |
3054 | char *s; | |
3055 | va_list v; | |
3056 | va_start (v,p); | |
3057 | s = g (p, va_arg (v,int)); | |
3058 | va_end (v); | |
3059 | return s; | |
3060 | } | |
3061 | ||
3062 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3063 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3064 | These don't provoke an error unfortunately, instead are silently treated | |
5b0a4722 | 3065 | as 'x'. The following induces an error, until -std is added to get |
e91b9f68 A |
3066 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3067 | array size at least. It's necessary to write '\x00'==0 to get something | |
5b0a4722 | 3068 | that's true only with -std. */ |
e91b9f68 A |
3069 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3070 | ||
5b0a4722 A |
3071 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3072 | inside strings and character constants. */ | |
3073 | #define FOO(x) 'x' | |
3074 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3075 | ||
e91b9f68 A |
3076 | int test (int i, double x); |
3077 | struct s1 {int (*f) (int a);}; | |
3078 | struct s2 {int (*f) (double a);}; | |
3079 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3080 | int argc; | |
3081 | char **argv; | |
3082 | int | |
3083 | main () | |
3084 | { | |
3085 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3086 | ; | |
3087 | return 0; | |
3088 | } | |
3089 | _ACEOF | |
5b0a4722 A |
3090 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3091 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
e91b9f68 A |
3092 | do |
3093 | CC="$ac_save_CC $ac_arg" | |
3094 | rm -f conftest.$ac_objext | |
5b0a4722 A |
3095 | if { (ac_try="$ac_compile" |
3096 | case "(($ac_try" in | |
3097 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3098 | *) ac_try_echo=$ac_try;; | |
3099 | esac | |
3100 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3101 | (eval "$ac_compile") 2>conftest.er1 | |
e91b9f68 A |
3102 | ac_status=$? |
3103 | grep -v '^ *+' conftest.er1 >conftest.err | |
3104 | rm -f conftest.er1 | |
3105 | cat conftest.err >&5 | |
3106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5b0a4722 A |
3107 | (exit $ac_status); } && { |
3108 | test -z "$ac_c_werror_flag" || | |
3109 | test ! -s conftest.err | |
3110 | } && test -s conftest.$ac_objext; then | |
3111 | ac_cv_prog_cc_c89=$ac_arg | |
e91b9f68 A |
3112 | else |
3113 | echo "$as_me: failed program was:" >&5 | |
3114 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3115 | ||
5b0a4722 | 3116 | |
e91b9f68 | 3117 | fi |
5b0a4722 A |
3118 | |
3119 | rm -f core conftest.err conftest.$ac_objext | |
3120 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
e91b9f68 | 3121 | done |
5b0a4722 | 3122 | rm -f conftest.$ac_ext |
e91b9f68 A |
3123 | CC=$ac_save_CC |
3124 | ||
3125 | fi | |
5b0a4722 A |
3126 | # AC_CACHE_VAL |
3127 | case "x$ac_cv_prog_cc_c89" in | |
3128 | x) | |
3129 | { echo "$as_me:$LINENO: result: none needed" >&5 | |
3130 | echo "${ECHO_T}none needed" >&6; } ;; | |
3131 | xno) | |
3132 | { echo "$as_me:$LINENO: result: unsupported" >&5 | |
3133 | echo "${ECHO_T}unsupported" >&6; } ;; | |
e91b9f68 | 3134 | *) |
5b0a4722 A |
3135 | CC="$CC $ac_cv_prog_cc_c89" |
3136 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 | |
3137 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; | |
e91b9f68 A |
3138 | esac |
3139 | ||
e91b9f68 | 3140 | |
e91b9f68 A |
3141 | ac_ext=c |
3142 | ac_cpp='$CPP $CPPFLAGS' | |
3143 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3144 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3145 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5b0a4722 | 3146 | DEPDIR="${am__leading_dot}deps" |
e91b9f68 | 3147 | |
5b0a4722 | 3148 | ac_config_commands="$ac_config_commands depfiles" |
e91b9f68 A |
3149 | |
3150 | ||
3151 | am_make=${MAKE-make} | |
3152 | cat > confinc << 'END' | |
5b0a4722 | 3153 | am__doit: |
e91b9f68 | 3154 | @echo done |
5b0a4722 | 3155 | .PHONY: am__doit |
e91b9f68 A |
3156 | END |
3157 | # If we don't find an include directive, just comment out the code. | |
5b0a4722 A |
3158 | { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
3159 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } | |
e91b9f68 A |
3160 | am__include="#" |
3161 | am__quote= | |
3162 | _am_result=none | |
3163 | # First try GNU make style include. | |
3164 | echo "include confinc" > confmf | |
3165 | # We grep out `Entering directory' and `Leaving directory' | |
3166 | # messages which can occur if `w' ends up in MAKEFLAGS. | |
3167 | # In particular we don't look at `^make:' because GNU make might | |
3168 | # be invoked under some other name (usually "gmake"), in which | |
3169 | # case it prints its new name instead of `make'. | |
5b0a4722 | 3170 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
e91b9f68 A |
3171 | am__include=include |
3172 | am__quote= | |
3173 | _am_result=GNU | |
3174 | fi | |
3175 | # Now try BSD make style include. | |
3176 | if test "$am__include" = "#"; then | |
3177 | echo '.include "confinc"' > confmf | |
3178 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | |
3179 | am__include=.include | |
3180 | am__quote="\"" | |
3181 | _am_result=BSD | |
3182 | fi | |
3183 | fi | |
3184 | ||
3185 | ||
5b0a4722 A |
3186 | { echo "$as_me:$LINENO: result: $_am_result" >&5 |
3187 | echo "${ECHO_T}$_am_result" >&6; } | |
e91b9f68 A |
3188 | rm -f confinc confmf |
3189 | ||
5b0a4722 | 3190 | # Check whether --enable-dependency-tracking was given. |
e91b9f68 | 3191 | if test "${enable_dependency_tracking+set}" = set; then |
5b0a4722 A |
3192 | enableval=$enable_dependency_tracking; |
3193 | fi | |
e91b9f68 | 3194 | |
e91b9f68 A |
3195 | if test "x$enable_dependency_tracking" != xno; then |
3196 | am_depcomp="$ac_aux_dir/depcomp" | |
3197 | AMDEPBACKSLASH='\' | |
3198 | fi | |
5b0a4722 | 3199 | if test "x$enable_dependency_tracking" != xno; then |
e91b9f68 A |
3200 | AMDEP_TRUE= |
3201 | AMDEP_FALSE='#' | |
3202 | else | |
3203 | AMDEP_TRUE='#' | |
3204 | AMDEP_FALSE= | |
3205 | fi | |
3206 | ||
3207 | ||
3208 | ||
e91b9f68 A |
3209 | depcc="$CC" am_compiler_list= |
3210 | ||
5b0a4722 A |
3211 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
3212 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } | |
e91b9f68 A |
3213 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
3214 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3215 | else | |
3216 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3217 | # We make a subdir and do the tests there. Otherwise we can end up | |
3218 | # making bogus files that we don't know about and never remove. For | |
3219 | # instance it was reported that on HP-UX the gcc test will end up | |
3220 | # making a dummy file named `D' -- because `-MD' means `put the output | |
3221 | # in D'. | |
3222 | mkdir conftest.dir | |
3223 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3224 | # using a relative directory. | |
3225 | cp "$am_depcomp" conftest.dir | |
3226 | cd conftest.dir | |
5b0a4722 A |
3227 | # We will build objects and dependencies in a subdirectory because |
3228 | # it helps to detect inapplicable dependency modes. For instance | |
3229 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3230 | # side effect of compilation, but ICC will put the dependencies in | |
3231 | # the current directory while Tru64 will put them in the object | |
3232 | # directory. | |
3233 | mkdir sub | |
e91b9f68 A |
3234 | |
3235 | am_cv_CC_dependencies_compiler_type=none | |
3236 | if test "$am_compiler_list" = ""; then | |
3237 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3238 | fi | |
3239 | for depmode in $am_compiler_list; do | |
5b0a4722 A |
3240 | # Setup a source with many dependencies, because some compilers |
3241 | # like to wrap large dependency lists on column 80 (with \), and | |
3242 | # we should not choose a depcomp mode which is confused by this. | |
3243 | # | |
e91b9f68 A |
3244 | # We need to recreate these files for each test, as the compiler may |
3245 | # overwrite some of them when testing with obscure command lines. | |
3246 | # This happens at least with the AIX C compiler. | |
5b0a4722 A |
3247 | : > sub/conftest.c |
3248 | for i in 1 2 3 4 5 6; do | |
3249 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3250 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
3251 | # Solaris 8's {/usr,}/bin/sh. | |
3252 | touch sub/conftst$i.h | |
3253 | done | |
3254 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
e91b9f68 A |
3255 | |
3256 | case $depmode in | |
3257 | nosideeffect) | |
3258 | # after this tag, mechanisms are not by side-effect, so they'll | |
3259 | # only be used when explicitly requested | |
3260 | if test "x$enable_dependency_tracking" = xyes; then | |
3261 | continue | |
3262 | else | |
3263 | break | |
3264 | fi | |
3265 | ;; | |
3266 | none) break ;; | |
3267 | esac | |
3268 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
3269 | # mode. It turns out that the SunPro C++ compiler does not properly | |
3270 | # handle `-M -o', and we need to detect this. | |
3271 | if depmode=$depmode \ | |
5b0a4722 A |
3272 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
3273 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
3274 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
3275 | >/dev/null 2>conftest.err && | |
3276 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
3277 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
3278 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
e91b9f68 | 3279 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
5b0a4722 A |
3280 | # icc doesn't choke on unknown options, it will just issue warnings |
3281 | # or remarks (even with -Werror). So we grep stderr for any message | |
3282 | # that says an option was ignored or not supported. | |
3283 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3284 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3285 | # The diagnosis changed in icc 8.0: | |
3286 | # icc: Command line remark: option '-MP' not supported | |
3287 | if (grep 'ignoring option' conftest.err || | |
3288 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3289 | am_cv_CC_dependencies_compiler_type=$depmode | |
3290 | break | |
3291 | fi | |
e91b9f68 A |
3292 | fi |
3293 | done | |
3294 | ||
3295 | cd .. | |
3296 | rm -rf conftest.dir | |
3297 | else | |
3298 | am_cv_CC_dependencies_compiler_type=none | |
3299 | fi | |
3300 | ||
3301 | fi | |
5b0a4722 A |
3302 | { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
3303 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } | |
e91b9f68 A |
3304 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
3305 | ||
5b0a4722 A |
3306 | if |
3307 | test "x$enable_dependency_tracking" != xno \ | |
3308 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3309 | am__fastdepCC_TRUE= | |
3310 | am__fastdepCC_FALSE='#' | |
3311 | else | |
3312 | am__fastdepCC_TRUE='#' | |
3313 | am__fastdepCC_FALSE= | |
3314 | fi | |
3315 | ||
e91b9f68 A |
3316 | |
3317 | if test -n "$ac_tool_prefix"; then | |
3318 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3319 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
5b0a4722 A |
3320 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3321 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
e91b9f68 A |
3322 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
3323 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3324 | else | |
3325 | if test -n "$RANLIB"; then | |
3326 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3327 | else | |
3328 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3329 | for as_dir in $PATH | |
3330 | do | |
3331 | IFS=$as_save_IFS | |
3332 | test -z "$as_dir" && as_dir=. | |
3333 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5b0a4722 | 3334 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
e91b9f68 A |
3335 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
3336 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3337 | break 2 | |
3338 | fi | |
3339 | done | |
3340 | done | |
5b0a4722 | 3341 | IFS=$as_save_IFS |
e91b9f68 A |
3342 | |
3343 | fi | |
3344 | fi | |
3345 | RANLIB=$ac_cv_prog_RANLIB | |
3346 | if test -n "$RANLIB"; then | |
5b0a4722 A |
3347 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
3348 | echo "${ECHO_T}$RANLIB" >&6; } | |
e91b9f68 | 3349 | else |
5b0a4722 A |
3350 | { echo "$as_me:$LINENO: result: no" >&5 |
3351 | echo "${ECHO_T}no" >&6; } | |
e91b9f68 A |
3352 | fi |
3353 | ||
5b0a4722 | 3354 | |
e91b9f68 A |
3355 | fi |
3356 | if test -z "$ac_cv_prog_RANLIB"; then | |
3357 | ac_ct_RANLIB=$RANLIB | |
3358 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3359 | set dummy ranlib; ac_word=$2 | |
5b0a4722 A |
3360 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3361 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
e91b9f68 A |
3362 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
3363 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3364 | else | |
3365 | if test -n "$ac_ct_RANLIB"; then | |
3366 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3367 | else | |
3368 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3369 | for as_dir in $PATH | |
3370 | do | |
3371 | IFS=$as_save_IFS | |
3372 | test -z "$as_dir" && as_dir=. | |
3373 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5b0a4722 | 3374 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
e91b9f68 A |
3375 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
3376 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3377 | break 2 | |
3378 | fi | |
3379 | done | |
3380 | done | |
5b0a4722 | 3381 | IFS=$as_save_IFS |
e91b9f68 | 3382 | |
e91b9f68 A |
3383 | fi |
3384 | fi | |
3385 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
3386 | if test -n "$ac_ct_RANLIB"; then | |
5b0a4722 A |
3387 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
3388 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } | |
e91b9f68 | 3389 | else |
5b0a4722 A |
3390 | { echo "$as_me:$LINENO: result: no" >&5 |
3391 | echo "${ECHO_T}no" >&6; } | |
e91b9f68 A |
3392 | fi |
3393 | ||
5b0a4722 A |
3394 | if test "x$ac_ct_RANLIB" = x; then |
3395 | RANLIB=":" | |
3396 | else | |
3397 | case $cross_compiling:$ac_tool_warned in | |
3398 | yes:) | |
3399 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
3400 | whose name does not start with the host triplet. If you think this | |
3401 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
3402 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
3403 | whose name does not start with the host triplet. If you think this | |
3404 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
3405 | ac_tool_warned=yes ;; | |
3406 | esac | |
3407 | RANLIB=$ac_ct_RANLIB | |
3408 | fi | |
e91b9f68 A |
3409 | else |
3410 | RANLIB="$ac_cv_prog_RANLIB" | |
3411 | fi | |
3412 | ||
5b0a4722 A |
3413 | if test "x$CC" != xcc; then |
3414 | { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5 | |
3415 | echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; } | |
3416 | else | |
3417 | { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5 | |
3418 | echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; } | |
3419 | fi | |
3420 | set dummy $CC; ac_cc=`echo $2 | | |
3421 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` | |
3422 | if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then | |
3423 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3424 | else | |
3425 | cat >conftest.$ac_ext <<_ACEOF | |
3426 | /* confdefs.h. */ | |
3427 | _ACEOF | |
3428 | cat confdefs.h >>conftest.$ac_ext | |
3429 | cat >>conftest.$ac_ext <<_ACEOF | |
3430 | /* end confdefs.h. */ | |
3431 | ||
3432 | int | |
3433 | main () | |
3434 | { | |
3435 | ||
3436 | ; | |
3437 | return 0; | |
3438 | } | |
3439 | _ACEOF | |
3440 | # Make sure it works both with $CC and with simple cc. | |
3441 | # We do the test twice because some compilers refuse to overwrite an | |
3442 | # existing .o file with -o, though they will create one. | |
3443 | ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' | |
3444 | rm -f conftest2.* | |
3445 | if { (case "(($ac_try" in | |
3446 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3447 | *) ac_try_echo=$ac_try;; | |
3448 | esac | |
3449 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3450 | (eval "$ac_try") 2>&5 | |
3451 | ac_status=$? | |
3452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3453 | (exit $ac_status); } && | |
3454 | test -f conftest2.$ac_objext && { (case "(($ac_try" in | |
3455 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3456 | *) ac_try_echo=$ac_try;; | |
3457 | esac | |
3458 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3459 | (eval "$ac_try") 2>&5 | |
3460 | ac_status=$? | |
3461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3462 | (exit $ac_status); }; | |
3463 | then | |
3464 | eval ac_cv_prog_cc_${ac_cc}_c_o=yes | |
3465 | if test "x$CC" != xcc; then | |
3466 | # Test first that cc exists at all. | |
3467 | if { ac_try='cc -c conftest.$ac_ext >&5' | |
3468 | { (case "(($ac_try" in | |
3469 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3470 | *) ac_try_echo=$ac_try;; | |
3471 | esac | |
3472 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3473 | (eval "$ac_try") 2>&5 | |
3474 | ac_status=$? | |
3475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3476 | (exit $ac_status); }; }; then | |
3477 | ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' | |
3478 | rm -f conftest2.* | |
3479 | if { (case "(($ac_try" in | |
3480 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3481 | *) ac_try_echo=$ac_try;; | |
3482 | esac | |
3483 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3484 | (eval "$ac_try") 2>&5 | |
3485 | ac_status=$? | |
3486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3487 | (exit $ac_status); } && | |
3488 | test -f conftest2.$ac_objext && { (case "(($ac_try" in | |
3489 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3490 | *) ac_try_echo=$ac_try;; | |
3491 | esac | |
3492 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3493 | (eval "$ac_try") 2>&5 | |
3494 | ac_status=$? | |
3495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3496 | (exit $ac_status); }; | |
3497 | then | |
3498 | # cc works too. | |
3499 | : | |
3500 | else | |
3501 | # cc exists but doesn't like -o. | |
3502 | eval ac_cv_prog_cc_${ac_cc}_c_o=no | |
3503 | fi | |
3504 | fi | |
3505 | fi | |
3506 | else | |
3507 | eval ac_cv_prog_cc_${ac_cc}_c_o=no | |
3508 | fi | |
3509 | rm -f core conftest* | |
3510 | ||
3511 | fi | |
3512 | if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then | |
3513 | { echo "$as_me:$LINENO: result: yes" >&5 | |
3514 | echo "${ECHO_T}yes" >&6; } | |
3515 | else | |
3516 | { echo "$as_me:$LINENO: result: no" >&5 | |
3517 | echo "${ECHO_T}no" >&6; } | |
3518 | ||
3519 | cat >>confdefs.h <<\_ACEOF | |
3520 | #define NO_MINUS_C_MINUS_O 1 | |
3521 | _ACEOF | |
3522 | ||
3523 | fi | |
3524 | ||
3525 | # FIXME: we rely on the cache variable name because | |
3526 | # there is no other way. | |
3527 | set dummy $CC | |
3528 | ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` | |
3529 | if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then | |
3530 | # Losing compiler, so override with the script. | |
3531 | # FIXME: It is wrong to rewrite CC. | |
3532 | # But if we don't then we get into trouble of one sort or another. | |
3533 | # A longer-term fix would be to have automake use am__CC in this case, | |
3534 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
3535 | CC="$am_aux_dir/compile $CC" | |
3536 | fi | |
3537 | ||
3538 | ||
e91b9f68 | 3539 | |
e91b9f68 A |
3540 | # Checks for header files. |
3541 | ||
3542 | ||
3543 | ||
3544 | ||
3545 | ||
3546 | ||
3547 | ac_header_dirent=no | |
3548 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
3549 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | |
5b0a4722 A |
3550 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
3551 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; } | |
3552 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
e91b9f68 A |
3553 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3554 | else | |
3555 | cat >conftest.$ac_ext <<_ACEOF | |
3556 | /* confdefs.h. */ | |
3557 | _ACEOF | |
3558 | cat confdefs.h >>conftest.$ac_ext | |
3559 | cat >>conftest.$ac_ext <<_ACEOF | |
3560 | /* end confdefs.h. */ | |
3561 | #include <sys/types.h> | |
3562 | #include <$ac_hdr> | |
3563 | ||
3564 | int | |
3565 | main () | |
3566 | { | |
3567 | if ((DIR *) 0) | |
3568 | return 0; | |
3569 | ; | |
3570 | return 0; | |
3571 | } | |
3572 | _ACEOF | |
3573 | rm -f conftest.$ac_objext | |
5b0a4722 A |
3574 | if { (ac_try="$ac_compile" |
3575 | case "(($ac_try" in | |
3576 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3577 | *) ac_try_echo=$ac_try;; | |
3578 | esac | |
3579 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3580 | (eval "$ac_compile") 2>conftest.er1 | |
e91b9f68 A |
3581 | ac_status=$? |
3582 | grep -v '^ *+' conftest.er1 >conftest.err | |
3583 | rm -f conftest.er1 | |
3584 | cat conftest.err >&5 | |
3585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5b0a4722 A |
3586 | (exit $ac_status); } && { |
3587 | test -z "$ac_c_werror_flag" || | |
3588 | test ! -s conftest.err | |
3589 | } && test -s conftest.$ac_objext; then | |
e91b9f68 A |
3590 | eval "$as_ac_Header=yes" |
3591 | else | |
3592 | echo "$as_me: failed program was:" >&5 | |
3593 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3594 | ||
5b0a4722 | 3595 | eval "$as_ac_Header=no" |
e91b9f68 | 3596 | fi |
5b0a4722 A |
3597 | |
3598 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
e91b9f68 | 3599 | fi |
5b0a4722 A |
3600 | ac_res=`eval echo '${'$as_ac_Header'}'` |
3601 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
3602 | echo "${ECHO_T}$ac_res" >&6; } | |
e91b9f68 A |
3603 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
3604 | cat >>confdefs.h <<_ACEOF | |
3605 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | |
3606 | _ACEOF | |
3607 | ||
3608 | ac_header_dirent=$ac_hdr; break | |
3609 | fi | |
3610 | ||
3611 | done | |
3612 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
3613 | if test $ac_header_dirent = dirent.h; then | |
5b0a4722 A |
3614 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
3615 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } | |
e91b9f68 A |
3616 | if test "${ac_cv_search_opendir+set}" = set; then |
3617 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3618 | else | |
3619 | ac_func_search_save_LIBS=$LIBS | |
e91b9f68 A |
3620 | cat >conftest.$ac_ext <<_ACEOF |
3621 | /* confdefs.h. */ | |
3622 | _ACEOF | |
3623 | cat confdefs.h >>conftest.$ac_ext | |
3624 | cat >>conftest.$ac_ext <<_ACEOF | |
3625 | /* end confdefs.h. */ | |
3626 | ||
5b0a4722 A |
3627 | /* Override any GCC internal prototype to avoid an error. |
3628 | Use char because int might match the return type of a GCC | |
3629 | builtin and then its argument prototype would still apply. */ | |
e91b9f68 A |
3630 | #ifdef __cplusplus |
3631 | extern "C" | |
3632 | #endif | |
e91b9f68 A |
3633 | char opendir (); |
3634 | int | |
3635 | main () | |
3636 | { | |
5b0a4722 | 3637 | return opendir (); |
e91b9f68 A |
3638 | ; |
3639 | return 0; | |
3640 | } | |
3641 | _ACEOF | |
5b0a4722 A |
3642 | for ac_lib in '' dir; do |
3643 | if test -z "$ac_lib"; then | |
3644 | ac_res="none required" | |
3645 | else | |
3646 | ac_res=-l$ac_lib | |
3647 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
3648 | fi | |
3649 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3650 | if { (ac_try="$ac_link" | |
3651 | case "(($ac_try" in | |
3652 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3653 | *) ac_try_echo=$ac_try;; | |
3654 | esac | |
3655 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3656 | (eval "$ac_link") 2>conftest.er1 | |
e91b9f68 A |
3657 | ac_status=$? |
3658 | grep -v '^ *+' conftest.er1 >conftest.err | |
3659 | rm -f conftest.er1 | |
3660 | cat conftest.err >&5 | |
3661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5b0a4722 A |
3662 | (exit $ac_status); } && { |
3663 | test -z "$ac_c_werror_flag" || | |
3664 | test ! -s conftest.err | |
3665 | } && test -s conftest$ac_exeext && | |
3666 | $as_test_x conftest$ac_exeext; then | |
3667 | ac_cv_search_opendir=$ac_res | |
e91b9f68 A |
3668 | else |
3669 | echo "$as_me: failed program was:" >&5 | |
3670 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3671 | ||
e91b9f68 | 3672 | |
5b0a4722 | 3673 | fi |
e91b9f68 | 3674 | |
5b0a4722 A |
3675 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
3676 | conftest$ac_exeext | |
3677 | if test "${ac_cv_search_opendir+set}" = set; then | |
3678 | break | |
e91b9f68 | 3679 | fi |
5b0a4722 A |
3680 | done |
3681 | if test "${ac_cv_search_opendir+set}" = set; then | |
3682 | : | |
3683 | else | |
3684 | ac_cv_search_opendir=no | |
e91b9f68 | 3685 | fi |
5b0a4722 | 3686 | rm conftest.$ac_ext |
e91b9f68 A |
3687 | LIBS=$ac_func_search_save_LIBS |
3688 | fi | |
5b0a4722 A |
3689 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
3690 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } | |
3691 | ac_res=$ac_cv_search_opendir | |
3692 | if test "$ac_res" != no; then | |
3693 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
e91b9f68 A |
3694 | |
3695 | fi | |
3696 | ||
3697 | else | |
5b0a4722 A |
3698 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
3699 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; } | |
e91b9f68 A |
3700 | if test "${ac_cv_search_opendir+set}" = set; then |
3701 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3702 | else | |
3703 | ac_func_search_save_LIBS=$LIBS | |
e91b9f68 A |
3704 | cat >conftest.$ac_ext <<_ACEOF |
3705 | /* confdefs.h. */ | |
3706 | _ACEOF | |
3707 | cat confdefs.h >>conftest.$ac_ext | |
3708 | cat >>conftest.$ac_ext <<_ACEOF | |
3709 | /* end confdefs.h. */ | |
3710 | ||
5b0a4722 A |
3711 | /* Override any GCC internal prototype to avoid an error. |
3712 | Use char because int might match the return type of a GCC | |
3713 | builtin and then its argument prototype would still apply. */ | |
e91b9f68 A |
3714 | #ifdef __cplusplus |
3715 | extern "C" | |
3716 | #endif | |
e91b9f68 A |
3717 | char opendir (); |
3718 | int | |
3719 | main () | |
3720 | { | |
5b0a4722 | 3721 | return opendir (); |
e91b9f68 A |
3722 | ; |
3723 | return 0; | |
3724 | } | |
3725 | _ACEOF | |
5b0a4722 A |
3726 | for ac_lib in '' x; do |
3727 | if test -z "$ac_lib"; then | |
3728 | ac_res="none required" | |
3729 | else | |
3730 | ac_res=-l$ac_lib | |
3731 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
3732 | fi | |
3733 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3734 | if { (ac_try="$ac_link" | |
3735 | case "(($ac_try" in | |
3736 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3737 | *) ac_try_echo=$ac_try;; | |
3738 | esac | |
3739 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3740 | (eval "$ac_link") 2>conftest.er1 | |
e91b9f68 A |
3741 | ac_status=$? |
3742 | grep -v '^ *+' conftest.er1 >conftest.err | |
3743 | rm -f conftest.er1 | |
3744 | cat conftest.err >&5 | |
3745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5b0a4722 A |
3746 | (exit $ac_status); } && { |
3747 | test -z "$ac_c_werror_flag" || | |
3748 | test ! -s conftest.err | |
3749 | } && test -s conftest$ac_exeext && | |
3750 | $as_test_x conftest$ac_exeext; then | |
3751 | ac_cv_search_opendir=$ac_res | |
e91b9f68 A |
3752 | else |
3753 | echo "$as_me: failed program was:" >&5 | |
3754 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3755 | ||
5b0a4722 | 3756 | |
e91b9f68 | 3757 | fi |
e91b9f68 | 3758 | |
5b0a4722 A |
3759 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
3760 | conftest$ac_exeext | |
3761 | if test "${ac_cv_search_opendir+set}" = set; then | |
3762 | break | |
e91b9f68 | 3763 | fi |
5b0a4722 A |
3764 | done |
3765 | if test "${ac_cv_search_opendir+set}" = set; then | |
3766 | : | |
3767 | else | |
3768 | ac_cv_search_opendir=no | |
e91b9f68 | 3769 | fi |
5b0a4722 | 3770 | rm conftest.$ac_ext |
e91b9f68 A |
3771 | LIBS=$ac_func_search_save_LIBS |
3772 | fi | |
5b0a4722 A |
3773 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
3774 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; } | |
3775 | ac_res=$ac_cv_search_opendir | |
3776 | if test "$ac_res" != no; then | |
3777 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
e91b9f68 A |
3778 | |
3779 | fi | |
3780 | ||
3781 | fi | |
3782 | ||
3783 | ac_ext=c | |
3784 | ac_cpp='$CPP $CPPFLAGS' | |
3785 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3786 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3787 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5b0a4722 A |
3788 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
3789 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } | |
e91b9f68 A |
3790 | # On Suns, sometimes $CPP names a directory. |
3791 | if test -n "$CPP" && test -d "$CPP"; then | |
3792 | CPP= | |
3793 | fi | |
3794 | if test -z "$CPP"; then | |
3795 | if test "${ac_cv_prog_CPP+set}" = set; then | |
3796 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3797 | else | |
3798 | # Double quotes because CPP needs to be expanded | |
3799 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3800 | do | |
3801 | ac_preproc_ok=false | |
3802 | for ac_c_preproc_warn_flag in '' yes | |
3803 | do | |
3804 | # Use a header file that comes with gcc, so configuring glibc | |
3805 | # with a fresh cross-compiler works. | |
3806 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3807 | # <limits.h> exists even on freestanding compilers. | |
3808 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3809 | # not just through cpp. "Syntax error" is here to catch this case. | |
3810 | cat >conftest.$ac_ext <<_ACEOF | |
3811 | /* confdefs.h. */ | |
3812 | _ACEOF | |
3813 | cat confdefs.h >>conftest.$ac_ext | |
3814 | cat >>conftest.$ac_ext <<_ACEOF | |
3815 | /* end confdefs.h. */ | |
3816 | #ifdef __STDC__ | |
3817 | # include <limits.h> | |
3818 | #else | |
3819 | # include <assert.h> | |
3820 | #endif | |
3821 | Syntax error | |
3822 | _ACEOF | |
5b0a4722 A |
3823 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3824 | case "(($ac_try" in | |
3825 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3826 | *) ac_try_echo=$ac_try;; | |
3827 | esac | |
3828 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3829 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
e91b9f68 A |
3830 | ac_status=$? |
3831 | grep -v '^ *+' conftest.er1 >conftest.err | |
3832 | rm -f conftest.er1 | |
3833 | cat conftest.err >&5 | |
3834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5b0a4722 A |
3835 | (exit $ac_status); } >/dev/null && { |
3836 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3837 | test ! -s conftest.err | |
3838 | }; then | |
e91b9f68 A |
3839 | : |
3840 | else | |
3841 | echo "$as_me: failed program was:" >&5 | |
3842 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3843 | ||
3844 | # Broken: fails on valid input. | |
3845 | continue | |
3846 | fi | |
5b0a4722 | 3847 | |
e91b9f68 A |
3848 | rm -f conftest.err conftest.$ac_ext |
3849 | ||
5b0a4722 | 3850 | # OK, works on sane cases. Now check whether nonexistent headers |
e91b9f68 A |
3851 | # can be detected and how. |
3852 | cat >conftest.$ac_ext <<_ACEOF | |
3853 | /* confdefs.h. */ | |
3854 | _ACEOF | |
3855 | cat confdefs.h >>conftest.$ac_ext | |
3856 | cat >>conftest.$ac_ext <<_ACEOF | |
3857 | /* end confdefs.h. */ | |
3858 | #include <ac_nonexistent.h> | |
3859 | _ACEOF | |
5b0a4722 A |
3860 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
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_cpp conftest.$ac_ext") 2>conftest.er1 | |
e91b9f68 A |
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 | |
5b0a4722 A |
3872 | (exit $ac_status); } >/dev/null && { |
3873 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3874 | test ! -s conftest.err | |
3875 | }; then | |
e91b9f68 A |
3876 | # Broken: success on invalid input. |
3877 | continue | |
3878 | else | |
3879 | echo "$as_me: failed program was:" >&5 | |
3880 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3881 | ||
3882 | # Passes both tests. | |
3883 | ac_preproc_ok=: | |
3884 | break | |
3885 | fi | |
5b0a4722 | 3886 | |
e91b9f68 A |
3887 | rm -f conftest.err conftest.$ac_ext |
3888 | ||
3889 | done | |
3890 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3891 | rm -f conftest.err conftest.$ac_ext | |
3892 | if $ac_preproc_ok; then | |
3893 | break | |
3894 | fi | |
3895 | ||
3896 | done | |
3897 | ac_cv_prog_CPP=$CPP | |
3898 | ||
3899 | fi | |
3900 | CPP=$ac_cv_prog_CPP | |
3901 | else | |
3902 | ac_cv_prog_CPP=$CPP | |
3903 | fi | |
5b0a4722 A |
3904 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
3905 | echo "${ECHO_T}$CPP" >&6; } | |
e91b9f68 A |
3906 | ac_preproc_ok=false |
3907 | for ac_c_preproc_warn_flag in '' yes | |
3908 | do | |
3909 | # Use a header file that comes with gcc, so configuring glibc | |
3910 | # with a fresh cross-compiler works. | |
3911 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3912 | # <limits.h> exists even on freestanding compilers. | |
3913 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3914 | # not just through cpp. "Syntax error" is here to catch this case. | |
3915 | cat >conftest.$ac_ext <<_ACEOF | |
3916 | /* confdefs.h. */ | |
3917 | _ACEOF | |
3918 | cat confdefs.h >>conftest.$ac_ext | |
3919 | cat >>conftest.$ac_ext <<_ACEOF | |
3920 | /* end confdefs.h. */ | |
3921 | #ifdef __STDC__ | |
3922 | # include <limits.h> | |
3923 | #else | |
3924 | # include <assert.h> | |
3925 | #endif | |
3926 | Syntax error | |
3927 | _ACEOF | |
5b0a4722 A |
3928 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3929 | case "(($ac_try" in | |
3930 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3931 | *) ac_try_echo=$ac_try;; | |
3932 | esac | |
3933 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3934 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
e91b9f68 A |
3935 | ac_status=$? |
3936 | grep -v '^ *+' conftest.er1 >conftest.err | |
3937 | rm -f conftest.er1 | |
3938 | cat conftest.err >&5 | |
3939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5b0a4722 A |
3940 | (exit $ac_status); } >/dev/null && { |
3941 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3942 | test ! -s conftest.err | |
3943 | }; then | |
e91b9f68 A |
3944 | : |
3945 | else | |
3946 | echo "$as_me: failed program was:" >&5 | |
3947 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3948 | ||
3949 | # Broken: fails on valid input. | |
3950 | continue | |
3951 | fi | |
5b0a4722 | 3952 | |
e91b9f68 A |
3953 | rm -f conftest.err conftest.$ac_ext |
3954 | ||
5b0a4722 | 3955 | # OK, works on sane cases. Now check whether nonexistent headers |
e91b9f68 A |
3956 | # can be detected and how. |
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 | #include <ac_nonexistent.h> | |
3964 | _ACEOF | |
5b0a4722 A |
3965 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3966 | case "(($ac_try" in | |
3967 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3968 | *) ac_try_echo=$ac_try;; | |
3969 | esac | |
3970 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3971 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
e91b9f68 A |
3972 | ac_status=$? |
3973 | grep -v '^ *+' conftest.er1 >conftest.err | |
3974 | rm -f conftest.er1 | |
3975 | cat conftest.err >&5 | |
3976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5b0a4722 A |
3977 | (exit $ac_status); } >/dev/null && { |
3978 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
3979 | test ! -s conftest.err | |
3980 | }; then | |
e91b9f68 A |
3981 | # Broken: success on invalid input. |
3982 | continue | |
3983 | else | |
3984 | echo "$as_me: failed program was:" >&5 | |
3985 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3986 | ||
3987 | # Passes both tests. | |
3988 | ac_preproc_ok=: | |
3989 | break | |
3990 | fi | |
5b0a4722 | 3991 | |
e91b9f68 A |
3992 | rm -f conftest.err conftest.$ac_ext |
3993 | ||
3994 | done | |
3995 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3996 | rm -f conftest.err conftest.$ac_ext | |
3997 | if $ac_preproc_ok; then | |
3998 | : | |
3999 | else | |
4000 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
4001 | See \`config.log' for more details." >&5 | |
4002 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
4003 | See \`config.log' for more details." >&2;} | |
4004 | { (exit 1); exit 1; }; } | |
4005 | fi | |
4006 | ||
4007 | ac_ext=c | |
4008 | ac_cpp='$CPP $CPPFLAGS' | |
4009 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4010 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4011 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4012 | ||
4013 | ||
5b0a4722 A |
4014 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
4015 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } | |
4016 | if test "${ac_cv_path_GREP+set}" = set; then | |
4017 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4018 | else | |
4019 | # Extract the first word of "grep ggrep" to use in msg output | |
4020 | if test -z "$GREP"; then | |
4021 | set dummy grep ggrep; ac_prog_name=$2 | |
4022 | if test "${ac_cv_path_GREP+set}" = set; then | |
4023 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4024 | else | |
4025 | ac_path_GREP_found=false | |
4026 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4027 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4028 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4029 | do | |
4030 | IFS=$as_save_IFS | |
4031 | test -z "$as_dir" && as_dir=. | |
4032 | for ac_prog in grep ggrep; do | |
4033 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4034 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
4035 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
4036 | # Check for GNU ac_path_GREP and select it if it is found. | |
4037 | # Check for GNU $ac_path_GREP | |
4038 | case `"$ac_path_GREP" --version 2>&1` in | |
4039 | *GNU*) | |
4040 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4041 | *) | |
4042 | ac_count=0 | |
4043 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | |
4044 | while : | |
4045 | do | |
4046 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4047 | mv "conftest.tmp" "conftest.in" | |
4048 | cp "conftest.in" "conftest.nl" | |
4049 | echo 'GREP' >> "conftest.nl" | |
4050 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4051 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4052 | ac_count=`expr $ac_count + 1` | |
4053 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
4054 | # Best one so far, save it but keep looking for a better one | |
4055 | ac_cv_path_GREP="$ac_path_GREP" | |
4056 | ac_path_GREP_max=$ac_count | |
4057 | fi | |
4058 | # 10*(2^10) chars as input seems more than enough | |
4059 | test $ac_count -gt 10 && break | |
4060 | done | |
4061 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4062 | esac | |
4063 | ||
4064 | ||
4065 | $ac_path_GREP_found && break 3 | |
4066 | done | |
4067 | done | |
4068 | ||
4069 | done | |
4070 | IFS=$as_save_IFS | |
4071 | ||
4072 | ||
4073 | fi | |
4074 | ||
4075 | GREP="$ac_cv_path_GREP" | |
4076 | if test -z "$GREP"; then | |
4077 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
4078 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
4079 | { (exit 1); exit 1; }; } | |
4080 | fi | |
4081 | ||
4082 | else | |
4083 | ac_cv_path_GREP=$GREP | |
4084 | fi | |
4085 | ||
4086 | ||
4087 | fi | |
4088 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 | |
4089 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } | |
4090 | GREP="$ac_cv_path_GREP" | |
4091 | ||
4092 | ||
4093 | { echo "$as_me:$LINENO: checking for egrep" >&5 | |
4094 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } | |
4095 | if test "${ac_cv_path_EGREP+set}" = set; then | |
e91b9f68 A |
4096 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4097 | else | |
5b0a4722 A |
4098 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
4099 | then ac_cv_path_EGREP="$GREP -E" | |
4100 | else | |
4101 | # Extract the first word of "egrep" to use in msg output | |
4102 | if test -z "$EGREP"; then | |
4103 | set dummy egrep; ac_prog_name=$2 | |
4104 | if test "${ac_cv_path_EGREP+set}" = set; then | |
4105 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4106 | else | |
4107 | ac_path_EGREP_found=false | |
4108 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4109 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4110 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4111 | do | |
4112 | IFS=$as_save_IFS | |
4113 | test -z "$as_dir" && as_dir=. | |
4114 | for ac_prog in egrep; do | |
4115 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4116 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4117 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
4118 | # Check for GNU ac_path_EGREP and select it if it is found. | |
4119 | # Check for GNU $ac_path_EGREP | |
4120 | case `"$ac_path_EGREP" --version 2>&1` in | |
4121 | *GNU*) | |
4122 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4123 | *) | |
4124 | ac_count=0 | |
4125 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | |
4126 | while : | |
4127 | do | |
4128 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4129 | mv "conftest.tmp" "conftest.in" | |
4130 | cp "conftest.in" "conftest.nl" | |
4131 | echo 'EGREP' >> "conftest.nl" | |
4132 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4133 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4134 | ac_count=`expr $ac_count + 1` | |
4135 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4136 | # Best one so far, save it but keep looking for a better one | |
4137 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4138 | ac_path_EGREP_max=$ac_count | |
e91b9f68 | 4139 | fi |
5b0a4722 A |
4140 | # 10*(2^10) chars as input seems more than enough |
4141 | test $ac_count -gt 10 && break | |
4142 | done | |
4143 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4144 | esac | |
4145 | ||
4146 | ||
4147 | $ac_path_EGREP_found && break 3 | |
4148 | done | |
4149 | done | |
4150 | ||
4151 | done | |
4152 | IFS=$as_save_IFS | |
4153 | ||
4154 | ||
4155 | fi | |
4156 | ||
4157 | EGREP="$ac_cv_path_EGREP" | |
4158 | if test -z "$EGREP"; then | |
4159 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
4160 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
4161 | { (exit 1); exit 1; }; } | |
4162 | fi | |
4163 | ||
4164 | else | |
4165 | ac_cv_path_EGREP=$EGREP | |
4166 | fi | |
4167 | ||
4168 | ||
4169 | fi | |
e91b9f68 | 4170 | fi |
5b0a4722 A |
4171 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
4172 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } | |
4173 | EGREP="$ac_cv_path_EGREP" | |
e91b9f68 A |
4174 | |
4175 | ||
5b0a4722 A |
4176 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4177 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } | |
e91b9f68 A |
4178 | if test "${ac_cv_header_stdc+set}" = set; then |
4179 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4180 | else | |
4181 | cat >conftest.$ac_ext <<_ACEOF | |
4182 | /* confdefs.h. */ | |
4183 | _ACEOF | |
4184 | cat confdefs.h >>conftest.$ac_ext | |
4185 | cat >>conftest.$ac_ext <<_ACEOF | |
4186 | /* end confdefs.h. */ | |
4187 | #include <stdlib.h> | |
4188 | #include <stdarg.h> | |
4189 | #include <string.h> | |
4190 | #include <float.h> | |
4191 | ||
4192 | int | |
4193 | main () | |
4194 | { | |
4195 | ||
4196 | ; | |
4197 | return 0; | |
4198 | } | |
4199 | _ACEOF | |
4200 | rm -f conftest.$ac_objext | |
5b0a4722 A |
4201 | if { (ac_try="$ac_compile" |
4202 | case "(($ac_try" in | |
4203 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4204 | *) ac_try_echo=$ac_try;; | |
4205 | esac | |
4206 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4207 | (eval "$ac_compile") 2>conftest.er1 | |
e91b9f68 A |
4208 | ac_status=$? |
4209 | grep -v '^ *+' conftest.er1 >conftest.err | |
4210 | rm -f conftest.er1 | |
4211 | cat conftest.err >&5 | |
4212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5b0a4722 A |
4213 | (exit $ac_status); } && { |
4214 | test -z "$ac_c_werror_flag" || | |
4215 | test ! -s conftest.err | |
4216 | } && test -s conftest.$ac_objext; then | |
e91b9f68 A |
4217 | ac_cv_header_stdc=yes |
4218 | else | |
4219 | echo "$as_me: failed program was:" >&5 | |
4220 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4221 | ||
5b0a4722 | 4222 | ac_cv_header_stdc=no |
e91b9f68 | 4223 | fi |
5b0a4722 A |
4224 | |
4225 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
e91b9f68 A |
4226 | |
4227 | if test $ac_cv_header_stdc = yes; then | |
4228 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4229 | cat >conftest.$ac_ext <<_ACEOF | |
4230 | /* confdefs.h. */ | |
4231 | _ACEOF | |
4232 | cat confdefs.h >>conftest.$ac_ext | |
4233 | cat >>conftest.$ac_ext <<_ACEOF | |
4234 | /* end confdefs.h. */ | |
4235 | #include <string.h> | |
4236 | ||
4237 | _ACEOF | |
4238 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4239 | $EGREP "memchr" >/dev/null 2>&1; then | |
4240 | : | |
4241 | else | |
4242 | ac_cv_header_stdc=no | |
4243 | fi | |
4244 | rm -f conftest* | |
4245 | ||
4246 | fi | |
4247 | ||
4248 | if test $ac_cv_header_stdc = yes; then | |
4249 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4250 | cat >conftest.$ac_ext <<_ACEOF | |
4251 | /* confdefs.h. */ | |
4252 | _ACEOF | |
4253 | cat confdefs.h >>conftest.$ac_ext | |
4254 | cat >>conftest.$ac_ext <<_ACEOF | |
4255 | /* end confdefs.h. */ | |
4256 | #include <stdlib.h> | |
4257 | ||
4258 | _ACEOF | |
4259 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4260 | $EGREP "free" >/dev/null 2>&1; then | |
4261 | : | |
4262 | else | |
4263 | ac_cv_header_stdc=no | |
4264 | fi | |
4265 | rm -f conftest* | |
4266 | ||
4267 | fi | |
4268 | ||
4269 | if test $ac_cv_header_stdc = yes; then | |
4270 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4271 | if test "$cross_compiling" = yes; then | |
4272 | : | |
4273 | else | |
4274 | cat >conftest.$ac_ext <<_ACEOF | |
4275 | /* confdefs.h. */ | |
4276 | _ACEOF | |
4277 | cat confdefs.h >>conftest.$ac_ext | |
4278 | cat >>conftest.$ac_ext <<_ACEOF | |
4279 | /* end confdefs.h. */ | |
4280 | #include <ctype.h> | |
5b0a4722 | 4281 | #include <stdlib.h> |
e91b9f68 A |
4282 | #if ((' ' & 0x0FF) == 0x020) |
4283 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4284 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4285 | #else | |
4286 | # define ISLOWER(c) \ | |
4287 | (('a' <= (c) && (c) <= 'i') \ | |
4288 | || ('j' <= (c) && (c) <= 'r') \ | |
4289 | || ('s' <= (c) && (c) <= 'z')) | |
4290 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4291 | #endif | |
4292 | ||
4293 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4294 | int | |
4295 | main () | |
4296 | { | |
4297 | int i; | |
4298 | for (i = 0; i < 256; i++) | |
4299 | if (XOR (islower (i), ISLOWER (i)) | |
4300 | || toupper (i) != TOUPPER (i)) | |
5b0a4722 A |
4301 | return 2; |
4302 | return 0; | |
e91b9f68 A |
4303 | } |
4304 | _ACEOF | |
4305 | rm -f conftest$ac_exeext | |
5b0a4722 A |
4306 | if { (ac_try="$ac_link" |
4307 | case "(($ac_try" in | |
4308 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4309 | *) ac_try_echo=$ac_try;; | |
4310 | esac | |
4311 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4312 | (eval "$ac_link") 2>&5 | |
e91b9f68 A |
4313 | ac_status=$? |
4314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4315 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5b0a4722 A |
4316 | { (case "(($ac_try" in |
4317 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4318 | *) ac_try_echo=$ac_try;; | |
4319 | esac | |
4320 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4321 | (eval "$ac_try") 2>&5 | |
e91b9f68 A |
4322 | ac_status=$? |
4323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4324 | (exit $ac_status); }; }; then | |
4325 | : | |
4326 | else | |
4327 | echo "$as_me: program exited with status $ac_status" >&5 | |
4328 | echo "$as_me: failed program was:" >&5 | |
4329 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4330 | ||
4331 | ( exit $ac_status ) | |
4332 | ac_cv_header_stdc=no | |
4333 | fi | |
5b0a4722 | 4334 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
e91b9f68 | 4335 | fi |
5b0a4722 A |
4336 | |
4337 | ||
e91b9f68 A |
4338 | fi |
4339 | fi | |
5b0a4722 A |
4340 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
4341 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } | |
e91b9f68 A |
4342 | if test $ac_cv_header_stdc = yes; then |
4343 | ||
4344 | cat >>confdefs.h <<\_ACEOF | |
4345 | #define STDC_HEADERS 1 | |
4346 | _ACEOF | |
4347 | ||
4348 | fi | |
4349 | ||
5b0a4722 A |
4350 | { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
4351 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } | |
e91b9f68 A |
4352 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
4353 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4354 | else | |
4355 | cat >conftest.$ac_ext <<_ACEOF | |
4356 | /* confdefs.h. */ | |
4357 | _ACEOF | |
4358 | cat confdefs.h >>conftest.$ac_ext | |
4359 | cat >>conftest.$ac_ext <<_ACEOF | |
4360 | /* end confdefs.h. */ | |
4361 | #include <sys/types.h> | |
4362 | #include <sys/wait.h> | |
4363 | #ifndef WEXITSTATUS | |
5b0a4722 | 4364 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
e91b9f68 A |
4365 | #endif |
4366 | #ifndef WIFEXITED | |
4367 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) | |
4368 | #endif | |
4369 | ||
4370 | int | |
4371 | main () | |
4372 | { | |
4373 | int s; | |
4374 | wait (&s); | |
4375 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
4376 | ; | |
4377 | return 0; | |
4378 | } | |
4379 | _ACEOF | |
4380 | rm -f conftest.$ac_objext | |
5b0a4722 A |
4381 | if { (ac_try="$ac_compile" |
4382 | case "(($ac_try" in | |
4383 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4384 | *) ac_try_echo=$ac_try;; | |
4385 | esac | |
4386 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4387 | (eval "$ac_compile") 2>conftest.er1 | |
e91b9f68 A |
4388 | ac_status=$? |
4389 | grep -v '^ *+' conftest.er1 >conftest.err | |
4390 | rm -f conftest.er1 | |
4391 | cat conftest.err >&5 | |
4392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5b0a4722 A |
4393 | (exit $ac_status); } && { |
4394 | test -z "$ac_c_werror_flag" || | |
4395 | test ! -s conftest.err | |
4396 | } && test -s conftest.$ac_objext; then | |
e91b9f68 A |
4397 | ac_cv_header_sys_wait_h=yes |
4398 | else | |
4399 | echo "$as_me: failed program was:" >&5 | |
4400 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4401 | ||
5b0a4722 | 4402 | ac_cv_header_sys_wait_h=no |
e91b9f68 | 4403 | fi |
5b0a4722 A |
4404 | |
4405 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
e91b9f68 | 4406 | fi |
5b0a4722 A |
4407 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
4408 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } | |
e91b9f68 A |
4409 | if test $ac_cv_header_sys_wait_h = yes; then |
4410 | ||
4411 | cat >>confdefs.h <<\_ACEOF | |
4412 | #define HAVE_SYS_WAIT_H 1 | |
4413 | _ACEOF | |
4414 | ||
4415 | fi | |
4416 | ||
4417 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
4418 | ||
4419 | ||
4420 | ||
4421 | ||
4422 | ||
4423 | ||
4424 | ||
4425 | ||
4426 | ||
4427 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4428 | inttypes.h stdint.h unistd.h | |
4429 | do | |
4430 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5b0a4722 A |
4431 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4432 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
4433 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
e91b9f68 A |
4434 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4435 | else | |
4436 | cat >conftest.$ac_ext <<_ACEOF | |
4437 | /* confdefs.h. */ | |
4438 | _ACEOF | |
4439 | cat confdefs.h >>conftest.$ac_ext | |
4440 | cat >>conftest.$ac_ext <<_ACEOF | |
4441 | /* end confdefs.h. */ | |
4442 | $ac_includes_default | |
4443 | ||
4444 | #include <$ac_header> | |
4445 | _ACEOF | |
4446 | rm -f conftest.$ac_objext | |
5b0a4722 A |
4447 | if { (ac_try="$ac_compile" |
4448 | case "(($ac_try" in | |
4449 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4450 | *) ac_try_echo=$ac_try;; | |
4451 | esac | |
4452 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4453 | (eval "$ac_compile") 2>conftest.er1 | |
e91b9f68 A |
4454 | ac_status=$? |
4455 | grep -v '^ *+' conftest.er1 >conftest.err | |
4456 | rm -f conftest.er1 | |
4457 | cat conftest.err >&5 | |
4458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5b0a4722 A |
4459 | (exit $ac_status); } && { |
4460 | test -z "$ac_c_werror_flag" || | |
4461 | test ! -s conftest.err | |
4462 | } && test -s conftest.$ac_objext; then | |
e91b9f68 A |
4463 | eval "$as_ac_Header=yes" |
4464 | else | |
4465 | echo "$as_me: failed program was:" >&5 | |
4466 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4467 | ||
5b0a4722 | 4468 | eval "$as_ac_Header=no" |
e91b9f68 | 4469 | fi |
5b0a4722 A |
4470 | |
4471 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
e91b9f68 | 4472 | fi |
5b0a4722 A |
4473 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4474 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4475 | echo "${ECHO_T}$ac_res" >&6; } | |
e91b9f68 A |
4476 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
4477 | cat >>confdefs.h <<_ACEOF | |
4478 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4479 | _ACEOF | |
4480 | ||
4481 | fi | |
4482 | ||
4483 | done | |
4484 | ||
4485 | ||
4486 | ||
4487 | ||
4488 | ||
4489 | ||
4490 | ||
4491 | ||
4492 | ||
ed34e3c3 A |
4493 | |
4494 | ||
4495 | ||
4496 | ||
4497 | ||
4498 | ||
4499 | ||
4500 | ||
4501 | ||
4502 | ||
4503 | for ac_header in fcntl.h limits.h mach/mach.h netdb.h netinet/in.h paths.h stddef.h stdlib.h string.h sys/ioctl.h sys/mount.h sys/param.h sys/socket.h sys/time.h syslog.h termios.h unistd.h | |
e91b9f68 A |
4504 | do |
4505 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5b0a4722 A |
4506 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
4507 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4508 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
4509 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
e91b9f68 A |
4510 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4511 | fi | |
5b0a4722 A |
4512 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4513 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4514 | echo "${ECHO_T}$ac_res" >&6; } | |
e91b9f68 A |
4515 | else |
4516 | # Is the header compilable? | |
5b0a4722 A |
4517 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
4518 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
e91b9f68 A |
4519 | cat >conftest.$ac_ext <<_ACEOF |
4520 | /* confdefs.h. */ | |
4521 | _ACEOF | |
4522 | cat confdefs.h >>conftest.$ac_ext | |
4523 | cat >>conftest.$ac_ext <<_ACEOF | |
4524 | /* end confdefs.h. */ | |
4525 | $ac_includes_default | |
4526 | #include <$ac_header> | |
4527 | _ACEOF | |
4528 | rm -f conftest.$ac_objext | |
5b0a4722 A |
4529 | if { (ac_try="$ac_compile" |
4530 | case "(($ac_try" in | |
4531 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4532 | *) ac_try_echo=$ac_try;; | |
4533 | esac | |
4534 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4535 | (eval "$ac_compile") 2>conftest.er1 | |
e91b9f68 A |
4536 | ac_status=$? |
4537 | grep -v '^ *+' conftest.er1 >conftest.err | |
4538 | rm -f conftest.er1 | |
4539 | cat conftest.err >&5 | |
4540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5b0a4722 A |
4541 | (exit $ac_status); } && { |
4542 | test -z "$ac_c_werror_flag" || | |
4543 | test ! -s conftest.err | |
4544 | } && test -s conftest.$ac_objext; then | |
e91b9f68 A |
4545 | ac_header_compiler=yes |
4546 | else | |
4547 | echo "$as_me: failed program was:" >&5 | |
4548 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4549 | ||
5b0a4722 | 4550 | ac_header_compiler=no |
e91b9f68 | 4551 | fi |
5b0a4722 A |
4552 | |
4553 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4554 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4555 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
e91b9f68 A |
4556 | |
4557 | # Is the header present? | |
5b0a4722 A |
4558 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4559 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
e91b9f68 A |
4560 | cat >conftest.$ac_ext <<_ACEOF |
4561 | /* confdefs.h. */ | |
4562 | _ACEOF | |
4563 | cat confdefs.h >>conftest.$ac_ext | |
4564 | cat >>conftest.$ac_ext <<_ACEOF | |
4565 | /* end confdefs.h. */ | |
4566 | #include <$ac_header> | |
4567 | _ACEOF | |
5b0a4722 A |
4568 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4569 | case "(($ac_try" in | |
4570 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4571 | *) ac_try_echo=$ac_try;; | |
4572 | esac | |
4573 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4574 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
e91b9f68 A |
4575 | ac_status=$? |
4576 | grep -v '^ *+' conftest.er1 >conftest.err | |
4577 | rm -f conftest.er1 | |
4578 | cat conftest.err >&5 | |
4579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5b0a4722 A |
4580 | (exit $ac_status); } >/dev/null && { |
4581 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
4582 | test ! -s conftest.err | |
4583 | }; then | |
e91b9f68 A |
4584 | ac_header_preproc=yes |
4585 | else | |
4586 | echo "$as_me: failed program was:" >&5 | |
4587 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4588 | ||
4589 | ac_header_preproc=no | |
4590 | fi | |
5b0a4722 | 4591 | |
e91b9f68 | 4592 | rm -f conftest.err conftest.$ac_ext |
5b0a4722 A |
4593 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4594 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
e91b9f68 A |
4595 | |
4596 | # So? What about this header? | |
4597 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4598 | yes:no: ) | |
4599 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4600 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4601 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4602 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
4603 | ac_header_preproc=yes | |
4604 | ;; | |
4605 | no:yes:* ) | |
4606 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
4607 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4608 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4609 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4610 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4611 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4612 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4613 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4614 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4615 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4616 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4617 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
5b0a4722 | 4618 | ( cat <<\_ASBOX |
e91b9f68 A |
4619 | ## -------------------------------------------------- ## |
4620 | ## Report this to launchd-bug-reports@group.apple.com ## | |
4621 | ## -------------------------------------------------- ## | |
4622 | _ASBOX | |
5b0a4722 | 4623 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
e91b9f68 A |
4624 | ;; |
4625 | esac | |
5b0a4722 A |
4626 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4627 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
4628 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
e91b9f68 A |
4629 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4630 | else | |
4631 | eval "$as_ac_Header=\$ac_header_preproc" | |
4632 | fi | |
5b0a4722 A |
4633 | ac_res=`eval echo '${'$as_ac_Header'}'` |
4634 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
4635 | echo "${ECHO_T}$ac_res" >&6; } | |
e91b9f68 A |
4636 | |
4637 | fi | |
4638 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4639 | cat >>confdefs.h <<_ACEOF | |
4640 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4641 | _ACEOF | |
4642 | ||
4643 | fi | |
4644 | ||
4645 | done | |
4646 | ||
4647 | ||
4648 | # Checks for typedefs, structures, and compiler characteristics. | |
5b0a4722 A |
4649 | { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5 |
4650 | echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; } | |
e91b9f68 A |
4651 | if test "${ac_cv_header_stdbool_h+set}" = set; then |
4652 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4653 | else | |
4654 | cat >conftest.$ac_ext <<_ACEOF | |
4655 | /* confdefs.h. */ | |
4656 | _ACEOF | |
4657 | cat confdefs.h >>conftest.$ac_ext | |
4658 | cat >>conftest.$ac_ext <<_ACEOF | |
4659 | /* end confdefs.h. */ | |
4660 | ||
4661 | #include <stdbool.h> | |
4662 | #ifndef bool | |
5b0a4722 | 4663 | "error: bool is not defined" |
e91b9f68 A |
4664 | #endif |
4665 | #ifndef false | |
5b0a4722 | 4666 | "error: false is not defined" |
e91b9f68 A |
4667 | #endif |
4668 | #if false | |
5b0a4722 | 4669 | "error: false is not 0" |
e91b9f68 A |
4670 | #endif |
4671 | #ifndef true | |
5b0a4722 | 4672 | "error: true is not defined" |
e91b9f68 A |
4673 | #endif |
4674 | #if true != 1 | |
5b0a4722 | 4675 | "error: true is not 1" |
e91b9f68 A |
4676 | #endif |
4677 | #ifndef __bool_true_false_are_defined | |
5b0a4722 | 4678 | "error: __bool_true_false_are_defined is not defined" |
e91b9f68 A |
4679 | #endif |
4680 | ||
4681 | struct s { _Bool s: 1; _Bool t; } s; | |
4682 | ||
4683 | char a[true == 1 ? 1 : -1]; | |
4684 | char b[false == 0 ? 1 : -1]; | |
4685 | char c[__bool_true_false_are_defined == 1 ? 1 : -1]; | |
5b0a4722 | 4686 | char d[(bool) 0.5 == true ? 1 : -1]; |
e91b9f68 | 4687 | bool e = &s; |
5b0a4722 | 4688 | char f[(_Bool) 0.0 == false ? 1 : -1]; |
e91b9f68 A |
4689 | char g[true]; |
4690 | char h[sizeof (_Bool)]; | |
4691 | char i[sizeof s.t]; | |
5b0a4722 A |
4692 | enum { j = false, k = true, l = false * true, m = true * 256 }; |
4693 | _Bool n[m]; | |
4694 | char o[sizeof n == m * sizeof n[0] ? 1 : -1]; | |
4695 | char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; | |
4696 | # if defined __xlc__ || defined __GNUC__ | |
4697 | /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0 | |
4698 | reported by James Lemley on 2005-10-05; see | |
4699 | http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html | |
4700 | This test is not quite right, since xlc is allowed to | |
4701 | reject this program, as the initializer for xlcbug is | |
4702 | not one of the forms that C requires support for. | |
4703 | However, doing the test right would require a runtime | |
4704 | test, and that would make cross-compilation harder. | |
4705 | Let us hope that IBM fixes the xlc bug, and also adds | |
4706 | support for this kind of constant expression. In the | |
4707 | meantime, this test will reject xlc, which is OK, since | |
4708 | our stdbool.h substitute should suffice. We also test | |
4709 | this with GCC, where it should work, to detect more | |
4710 | quickly whether someone messes up the test in the | |
4711 | future. */ | |
4712 | char digs[] = "0123456789"; | |
4713 | int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1); | |
4714 | # endif | |
4715 | /* Catch a bug in an HP-UX C compiler. See | |
4716 | http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html | |
4717 | http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html | |
4718 | */ | |
4719 | _Bool q = true; | |
4720 | _Bool *pq = &q; | |
e91b9f68 A |
4721 | |
4722 | int | |
4723 | main () | |
4724 | { | |
5b0a4722 A |
4725 | |
4726 | *pq |= q; | |
4727 | *pq |= ! q; | |
4728 | /* Refer to every declared value, to avoid compiler optimizations. */ | |
4729 | return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l | |
4730 | + !m + !n + !o + !p + !q + !pq); | |
4731 | ||
e91b9f68 A |
4732 | ; |
4733 | return 0; | |
4734 | } | |
4735 | _ACEOF | |
4736 | rm -f conftest.$ac_objext | |
5b0a4722 A |
4737 | if { (ac_try="$ac_compile" |
4738 | case "(($ac_try" in | |
4739 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4740 | *) ac_try_echo=$ac_try;; | |
4741 | esac | |
4742 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4743 | (eval "$ac_compile") 2>conftest.er1 | |
e91b9f68 A |
4744 | ac_status=$? |
4745 | grep -v '^ *+' conftest.er1 >conftest.err | |
4746 | rm -f conftest.er1 | |
4747 | cat conftest.err >&5 | |
4748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5b0a4722 A |
4749 | (exit $ac_status); } && { |
4750 | test -z "$ac_c_werror_flag" || | |
4751 | test ! -s conftest.err | |
4752 | } && test -s conftest.$ac_objext; then | |
e91b9f68 A |
4753 | ac_cv_header_stdbool_h=yes |
4754 | else | |
4755 | echo "$as_me: failed program was:" >&5 | |
4756 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4757 | ||
5b0a4722 | 4758 | ac_cv_header_stdbool_h=no |
e91b9f68 | 4759 | fi |
5b0a4722 A |
4760 | |
4761 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
e91b9f68 | 4762 | fi |
5b0a4722 A |
4763 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5 |
4764 | echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; } | |
4765 | { echo "$as_me:$LINENO: checking for _Bool" >&5 | |
4766 | echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; } | |
e91b9f68 A |
4767 | if test "${ac_cv_type__Bool+set}" = set; then |
4768 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4769 | else | |
4770 | cat >conftest.$ac_ext <<_ACEOF | |
4771 | /* confdefs.h. */ | |
4772 | _ACEOF | |
4773 | cat confdefs.h >>conftest.$ac_ext | |
4774 | cat >>conftest.$ac_ext <<_ACEOF | |
4775 | /* end confdefs.h. */ | |
4776 | $ac_includes_default | |
5b0a4722 | 4777 | typedef _Bool ac__type_new_; |
e91b9f68 A |
4778 | int |
4779 | main () | |
4780 | { | |
5b0a4722 | 4781 | if ((ac__type_new_ *) 0) |
e91b9f68 | 4782 | return 0; |
5b0a4722 | 4783 | if (sizeof (ac__type_new_)) |
e91b9f68 A |
4784 | return 0; |
4785 | ; | |
4786 | return 0; | |
4787 | } | |
4788 | _ACEOF | |
4789 | rm -f conftest.$ac_objext | |
5b0a4722 A |
4790 | if { (ac_try="$ac_compile" |
4791 | case "(($ac_try" in | |
4792 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4793 | *) ac_try_echo=$ac_try;; | |
4794 | esac | |
4795 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4796 | (eval "$ac_compile") 2>conftest.er1 | |
e91b9f68 A |
4797 | ac_status=$? |
4798 | grep -v '^ *+' conftest.er1 >conftest.err | |
4799 | rm -f conftest.er1 | |
4800 | cat conftest.err >&5 | |
4801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5b0a4722 A |
4802 | (exit $ac_status); } && { |
4803 | test -z "$ac_c_werror_flag" || | |
4804 | test ! -s conftest.err | |
4805 | } && test -s conftest.$ac_objext; then | |
e91b9f68 A |
4806 | ac_cv_type__Bool=yes |
4807 | else | |
4808 | echo "$as_me: failed program was:" >&5 | |
4809 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4810 | ||
5b0a4722 | 4811 | ac_cv_type__Bool=no |
e91b9f68 | 4812 | fi |
5b0a4722 A |
4813 | |
4814 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
e91b9f68 | 4815 | fi |
5b0a4722 A |
4816 | { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 |
4817 | echo "${ECHO_T}$ac_cv_type__Bool" >&6; } | |
e91b9f68 A |
4818 | if test $ac_cv_type__Bool = yes; then |
4819 | ||
4820 | cat >>confdefs.h <<_ACEOF | |
4821 | #define HAVE__BOOL 1 | |
4822 | _ACEOF | |
4823 | ||
4824 | ||
4825 | fi | |
4826 | ||
4827 | if test $ac_cv_header_stdbool_h = yes; then | |
4828 | ||
4829 | cat >>confdefs.h <<\_ACEOF | |
4830 | #define HAVE_STDBOOL_H 1 | |
4831 | _ACEOF | |
4832 | ||
4833 | fi | |
4834 | ||
5b0a4722 A |
4835 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
4836 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } | |
e91b9f68 A |
4837 | if test "${ac_cv_c_const+set}" = set; then |
4838 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4839 | else | |
4840 | cat >conftest.$ac_ext <<_ACEOF | |
4841 | /* confdefs.h. */ | |
4842 | _ACEOF | |
4843 | cat confdefs.h >>conftest.$ac_ext | |
4844 | cat >>conftest.$ac_ext <<_ACEOF | |
4845 | /* end confdefs.h. */ | |
4846 | ||
4847 | int | |
4848 | main () | |
4849 | { | |
4850 | /* FIXME: Include the comments suggested by Paul. */ | |
4851 | #ifndef __cplusplus | |
4852 | /* Ultrix mips cc rejects this. */ | |
4853 | typedef int charset[2]; | |
5b0a4722 | 4854 | const charset cs; |
e91b9f68 | 4855 | /* SunOS 4.1.1 cc rejects this. */ |
5b0a4722 A |
4856 | char const *const *pcpcc; |
4857 | char **ppc; | |
e91b9f68 A |
4858 | /* NEC SVR4.0.2 mips cc rejects this. */ |
4859 | struct point {int x, y;}; | |
4860 | static struct point const zero = {0,0}; | |
4861 | /* AIX XL C 1.02.0.0 rejects this. | |
4862 | It does not let you subtract one const X* pointer from another in | |
4863 | an arm of an if-expression whose if-part is not a constant | |
4864 | expression */ | |
4865 | const char *g = "string"; | |
5b0a4722 | 4866 | pcpcc = &g + (g ? g-g : 0); |
e91b9f68 | 4867 | /* HPUX 7.0 cc rejects these. */ |
5b0a4722 A |
4868 | ++pcpcc; |
4869 | ppc = (char**) pcpcc; | |
4870 | pcpcc = (char const *const *) ppc; | |
e91b9f68 A |
4871 | { /* SCO 3.2v4 cc rejects this. */ |
4872 | char *t; | |
4873 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
4874 | ||
4875 | *t++ = 0; | |
5b0a4722 | 4876 | if (s) return 0; |
e91b9f68 A |
4877 | } |
4878 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
4879 | int x[] = {25, 17}; | |
4880 | const int *foo = &x[0]; | |
4881 | ++foo; | |
4882 | } | |
4883 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
4884 | typedef const int *iptr; | |
4885 | iptr p = 0; | |
4886 | ++p; | |
4887 | } | |
4888 | { /* AIX XL C 1.02.0.0 rejects this saying | |
4889 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
4890 | struct s { int j; const int *ap[3]; }; | |
4891 | struct s *b; b->j = 5; | |
4892 | } | |
4893 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
4894 | const int foo = 10; | |
5b0a4722 | 4895 | if (!foo) return 0; |
e91b9f68 | 4896 | } |
5b0a4722 | 4897 | return !cs[0] && !zero.x; |
e91b9f68 A |
4898 | #endif |
4899 | ||
4900 | ; | |
4901 | return 0; | |
4902 | } | |
4903 | _ACEOF | |
4904 | rm -f conftest.$ac_objext | |
5b0a4722 A |
4905 | if { (ac_try="$ac_compile" |
4906 | case "(($ac_try" in | |
4907 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4908 | *) ac_try_echo=$ac_try;; | |
4909 | esac | |
4910 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4911 | (eval "$ac_compile") 2>conftest.er1 | |
e91b9f68 A |
4912 | ac_status=$? |
4913 | grep -v '^ *+' conftest.er1 >conftest.err | |
4914 | rm -f conftest.er1 | |
4915 | cat conftest.err >&5 | |
4916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5b0a4722 A |
4917 | (exit $ac_status); } && { |
4918 | test -z "$ac_c_werror_flag" || | |
4919 | test ! -s conftest.err | |
4920 | } && test -s conftest.$ac_objext; then | |
e91b9f68 A |
4921 | ac_cv_c_const=yes |
4922 | else | |
4923 | echo "$as_me: failed program was:" >&5 | |
4924 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4925 | ||
5b0a4722 | 4926 | ac_cv_c_const=no |
e91b9f68 | 4927 | fi |
5b0a4722 A |
4928 | |
4929 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
e91b9f68 | 4930 | fi |
5b0a4722 A |
4931 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
4932 | echo "${ECHO_T}$ac_cv_c_const" >&6; } | |
e91b9f68 A |
4933 | if test $ac_cv_c_const = no; then |
4934 | ||
4935 | cat >>confdefs.h <<\_ACEOF | |
4936 | #define const | |
4937 | _ACEOF | |
4938 | ||
4939 | fi | |
4940 | ||
5b0a4722 A |
4941 | { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
4942 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; } | |
ed34e3c3 A |
4943 | if test "${ac_cv_type_uid_t+set}" = set; then |
4944 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4945 | else | |
4946 | cat >conftest.$ac_ext <<_ACEOF | |
4947 | /* confdefs.h. */ | |
4948 | _ACEOF | |
4949 | cat confdefs.h >>conftest.$ac_ext | |
4950 | cat >>conftest.$ac_ext <<_ACEOF | |
4951 | /* end confdefs.h. */ | |
4952 | #include <sys/types.h> | |
4953 | ||
4954 | _ACEOF | |
4955 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4956 | $EGREP "uid_t" >/dev/null 2>&1; then | |
4957 | ac_cv_type_uid_t=yes | |
4958 | else | |
4959 | ac_cv_type_uid_t=no | |
4960 | fi | |
4961 | rm -f conftest* | |
4962 | ||
4963 | fi | |
5b0a4722 A |
4964 | { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
4965 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6; } | |
ed34e3c3 A |
4966 | if test $ac_cv_type_uid_t = no; then |
4967 | ||
4968 | cat >>confdefs.h <<\_ACEOF | |
4969 | #define uid_t int | |
4970 | _ACEOF | |
4971 | ||
4972 | ||
4973 | cat >>confdefs.h <<\_ACEOF | |
4974 | #define gid_t int | |
4975 | _ACEOF | |
4976 | ||
4977 | fi | |
4978 | ||
5b0a4722 A |
4979 | { echo "$as_me:$LINENO: checking for mode_t" >&5 |
4980 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } | |
e91b9f68 A |
4981 | if test "${ac_cv_type_mode_t+set}" = set; then |
4982 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4983 | else | |
4984 | cat >conftest.$ac_ext <<_ACEOF | |
4985 | /* confdefs.h. */ | |
4986 | _ACEOF | |
4987 | cat confdefs.h >>conftest.$ac_ext | |
4988 | cat >>conftest.$ac_ext <<_ACEOF | |
4989 | /* end confdefs.h. */ | |
4990 | $ac_includes_default | |
5b0a4722 | 4991 | typedef mode_t ac__type_new_; |
e91b9f68 A |
4992 | int |
4993 | main () | |
4994 | { | |
5b0a4722 | 4995 | if ((ac__type_new_ *) 0) |
e91b9f68 | 4996 | return 0; |
5b0a4722 | 4997 | if (sizeof (ac__type_new_)) |
e91b9f68 A |
4998 | return 0; |
4999 | ; | |
5000 | return 0; | |
5001 | } | |
5002 | _ACEOF | |
5003 | rm -f conftest.$ac_objext | |
5b0a4722 A |
5004 | if { (ac_try="$ac_compile" |
5005 | case "(($ac_try" in | |
5006 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5007 | *) ac_try_echo=$ac_try;; | |
5008 | esac | |
5009 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5010 | (eval "$ac_compile") 2>conftest.er1 | |
e91b9f68 A |
5011 | ac_status=$? |
5012 | grep -v '^ *+' conftest.er1 >conftest.err | |
5013 | rm -f conftest.er1 | |
5014 | cat conftest.err >&5 | |
5015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5b0a4722 A |
5016 | (exit $ac_status); } && { |
5017 | test -z "$ac_c_werror_flag" || | |
5018 | test ! -s conftest.err | |
5019 | } && test -s conftest.$ac_objext; then | |
e91b9f68 A |
5020 | ac_cv_type_mode_t=yes |
5021 | else | |
5022 | echo "$as_me: failed program was:" >&5 | |
5023 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5024 | ||
5b0a4722 | 5025 | ac_cv_type_mode_t=no |
e91b9f68 | 5026 | fi |
5b0a4722 A |
5027 | |
5028 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
e91b9f68 | 5029 | fi |
5b0a4722 A |
5030 | { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
5031 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6; } | |
e91b9f68 A |
5032 | if test $ac_cv_type_mode_t = yes; then |
5033 | : | |
5034 | else | |
5035 | ||
5036 | cat >>confdefs.h <<_ACEOF | |
5037 | #define mode_t int | |
5038 | _ACEOF | |
5039 | ||
5040 | fi | |
5041 | ||
5b0a4722 A |
5042 | { echo "$as_me:$LINENO: checking for off_t" >&5 |
5043 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } | |
e91b9f68 A |
5044 | if test "${ac_cv_type_off_t+set}" = set; then |
5045 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5046 | else | |
5047 | cat >conftest.$ac_ext <<_ACEOF | |
5048 | /* confdefs.h. */ | |
5049 | _ACEOF | |
5050 | cat confdefs.h >>conftest.$ac_ext | |
5051 | cat >>conftest.$ac_ext <<_ACEOF | |
5052 | /* end confdefs.h. */ | |
5053 | $ac_includes_default | |
5b0a4722 | 5054 | typedef off_t ac__type_new_; |
e91b9f68 A |
5055 | int |
5056 | main () | |
5057 | { | |
5b0a4722 | 5058 | if ((ac__type_new_ *) 0) |
e91b9f68 | 5059 | return 0; |
5b0a4722 | 5060 | if (sizeof (ac__type_new_)) |
e91b9f68 A |
5061 | return 0; |
5062 | ; | |
5063 | return 0; | |
5064 | } | |
5065 | _ACEOF | |
5066 | rm -f conftest.$ac_objext | |
5b0a4722 A |
5067 | if { (ac_try="$ac_compile" |
5068 | case "(($ac_try" in | |
5069 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5070 | *) ac_try_echo=$ac_try;; | |
5071 | esac | |
5072 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5073 | (eval "$ac_compile") 2>conftest.er1 | |
e91b9f68 A |
5074 | ac_status=$? |
5075 | grep -v '^ *+' conftest.er1 >conftest.err | |
5076 | rm -f conftest.er1 | |
5077 | cat conftest.err >&5 | |
5078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5b0a4722 A |
5079 | (exit $ac_status); } && { |
5080 | test -z "$ac_c_werror_flag" || | |
5081 | test ! -s conftest.err | |
5082 | } && test -s conftest.$ac_objext; then | |
e91b9f68 A |
5083 | ac_cv_type_off_t=yes |
5084 | else | |
5085 | echo "$as_me: failed program was:" >&5 | |
5086 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5087 | ||
5b0a4722 | 5088 | ac_cv_type_off_t=no |
e91b9f68 | 5089 | fi |
5b0a4722 A |
5090 | |
5091 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
e91b9f68 | 5092 | fi |
5b0a4722 A |
5093 | { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
5094 | echo "${ECHO_T}$ac_cv_type_off_t" >&6; } | |
e91b9f68 A |
5095 | if test $ac_cv_type_off_t = yes; then |
5096 | : | |
5097 | else | |
5098 | ||
5099 | cat >>confdefs.h <<_ACEOF | |
5b0a4722 | 5100 | #define off_t long int |
e91b9f68 A |
5101 | _ACEOF |
5102 | ||
5103 | fi | |
5104 | ||
5b0a4722 A |
5105 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
5106 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } | |
e91b9f68 A |
5107 | if test "${ac_cv_type_pid_t+set}" = set; then |
5108 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5109 | else | |
5110 | cat >conftest.$ac_ext <<_ACEOF | |
5111 | /* confdefs.h. */ | |
5112 | _ACEOF | |
5113 | cat confdefs.h >>conftest.$ac_ext | |
5114 | cat >>conftest.$ac_ext <<_ACEOF | |
5115 | /* end confdefs.h. */ | |
5116 | $ac_includes_default | |
5b0a4722 | 5117 | typedef pid_t ac__type_new_; |
e91b9f68 A |
5118 | int |
5119 | main () | |
5120 | { | |
5b0a4722 | 5121 | if ((ac__type_new_ *) 0) |
e91b9f68 | 5122 | return 0; |
5b0a4722 | 5123 | if (sizeof (ac__type_new_)) |
e91b9f68 A |
5124 | return 0; |
5125 | ; | |
5126 | return 0; | |
5127 | } | |
5128 | _ACEOF | |
5129 | rm -f conftest.$ac_objext | |
5b0a4722 A |
5130 | if { (ac_try="$ac_compile" |
5131 | case "(($ac_try" in | |
5132 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5133 | *) ac_try_echo=$ac_try;; | |
5134 | esac | |
5135 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5136 | (eval "$ac_compile") 2>conftest.er1 | |
e91b9f68 A |
5137 | ac_status=$? |
5138 | grep -v '^ *+' conftest.er1 >conftest.err | |
5139 | rm -f conftest.er1 | |
5140 | cat conftest.err >&5 | |
5141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5b0a4722 A |
5142 | (exit $ac_status); } && { |
5143 | test -z "$ac_c_werror_flag" || | |
5144 | test ! -s conftest.err | |
5145 | } && test -s conftest.$ac_objext; then | |
e91b9f68 A |
5146 | ac_cv_type_pid_t=yes |
5147 | else | |
5148 | echo "$as_me: failed program was:" >&5 | |
5149 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5150 | ||
5b0a4722 | 5151 | ac_cv_type_pid_t=no |
e91b9f68 | 5152 | fi |
5b0a4722 A |
5153 | |
5154 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
e91b9f68 | 5155 | fi |
5b0a4722 A |
5156 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
5157 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } | |
e91b9f68 A |
5158 | if test $ac_cv_type_pid_t = yes; then |
5159 | : | |
5160 | else | |
5161 | ||
5162 | cat >>confdefs.h <<_ACEOF | |
5163 | #define pid_t int | |
5164 | _ACEOF | |
5165 | ||
5166 | fi | |
5167 | ||
5b0a4722 A |
5168 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
5169 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } | |
e91b9f68 A |
5170 | if test "${ac_cv_type_size_t+set}" = set; then |
5171 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5172 | else | |
5173 | cat >conftest.$ac_ext <<_ACEOF | |
5174 | /* confdefs.h. */ | |
5175 | _ACEOF | |
5176 | cat confdefs.h >>conftest.$ac_ext | |
5177 | cat >>conftest.$ac_ext <<_ACEOF | |
5178 | /* end confdefs.h. */ | |
5179 | $ac_includes_default | |
5b0a4722 | 5180 | typedef size_t ac__type_new_; |
e91b9f68 A |
5181 | int |
5182 | main () | |
5183 | { | |
5b0a4722 | 5184 | if ((ac__type_new_ *) 0) |
e91b9f68 | 5185 | return 0; |
5b0a4722 | 5186 | if (sizeof (ac__type_new_)) |
e91b9f68 A |
5187 | return 0; |
5188 | ; | |
5189 | return 0; | |
5190 | } | |
5191 | _ACEOF | |
5192 | rm -f conftest.$ac_objext | |
5b0a4722 A |
5193 | if { (ac_try="$ac_compile" |
5194 | case "(($ac_try" in | |
5195 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5196 | *) ac_try_echo=$ac_try;; | |
5197 | esac | |
5198 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5199 | (eval "$ac_compile") 2>conftest.er1 | |
e91b9f68 A |
5200 | ac_status=$? |
5201 | grep -v '^ *+' conftest.er1 >conftest.err | |
5202 | rm -f conftest.er1 | |
5203 | cat conftest.err >&5 | |
5204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5b0a4722 A |
5205 | (exit $ac_status); } && { |
5206 | test -z "$ac_c_werror_flag" || | |
5207 | test ! -s conftest.err | |
5208 | } && test -s conftest.$ac_objext; then | |
e91b9f68 A |
5209 | ac_cv_type_size_t=yes |
5210 | else | |
5211 | echo "$as_me: failed program was:" >&5 | |
5212 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5213 | ||
5b0a4722 | 5214 | ac_cv_type_size_t=no |
e91b9f68 | 5215 | fi |
5b0a4722 A |
5216 | |
5217 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
e91b9f68 | 5218 | fi |
5b0a4722 A |
5219 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
5220 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } | |
e91b9f68 A |
5221 | if test $ac_cv_type_size_t = yes; then |
5222 | : | |
5223 | else | |
5224 | ||
5225 | cat >>confdefs.h <<_ACEOF | |
5b0a4722 | 5226 | #define size_t unsigned int |
e91b9f68 A |
5227 | _ACEOF |
5228 | ||
5229 | fi | |
5230 | ||
5b0a4722 A |
5231 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
5232 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } | |
ed34e3c3 | 5233 | if test "${ac_cv_header_time+set}" = set; then |
e91b9f68 A |
5234 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5235 | else | |
5236 | cat >conftest.$ac_ext <<_ACEOF | |
5237 | /* confdefs.h. */ | |
5238 | _ACEOF | |
5239 | cat confdefs.h >>conftest.$ac_ext | |
5240 | cat >>conftest.$ac_ext <<_ACEOF | |
5241 | /* end confdefs.h. */ | |
5242 | #include <sys/types.h> | |
ed34e3c3 A |
5243 | #include <sys/time.h> |
5244 | #include <time.h> | |
e91b9f68 | 5245 | |
ed34e3c3 A |
5246 | int |
5247 | main () | |
5248 | { | |
5249 | if ((struct tm *) 0) | |
5250 | return 0; | |
5251 | ; | |
5252 | return 0; | |
5253 | } | |
e91b9f68 | 5254 | _ACEOF |
ed34e3c3 | 5255 | rm -f conftest.$ac_objext |
5b0a4722 A |
5256 | if { (ac_try="$ac_compile" |
5257 | case "(($ac_try" in | |
5258 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5259 | *) ac_try_echo=$ac_try;; | |
5260 | esac | |
5261 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5262 | (eval "$ac_compile") 2>conftest.er1 | |
ed34e3c3 A |
5263 | ac_status=$? |
5264 | grep -v '^ *+' conftest.er1 >conftest.err | |
5265 | rm -f conftest.er1 | |
5266 | cat conftest.err >&5 | |
5267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5b0a4722 A |
5268 | (exit $ac_status); } && { |
5269 | test -z "$ac_c_werror_flag" || | |
5270 | test ! -s conftest.err | |
5271 | } && test -s conftest.$ac_objext; then | |
ed34e3c3 | 5272 | ac_cv_header_time=yes |
e91b9f68 | 5273 | else |
ed34e3c3 A |
5274 | echo "$as_me: failed program was:" >&5 |
5275 | sed 's/^/| /' conftest.$ac_ext >&5 | |
e91b9f68 | 5276 | |
5b0a4722 | 5277 | ac_cv_header_time=no |
e91b9f68 | 5278 | fi |
5b0a4722 A |
5279 | |
5280 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ed34e3c3 | 5281 | fi |
5b0a4722 A |
5282 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
5283 | echo "${ECHO_T}$ac_cv_header_time" >&6; } | |
ed34e3c3 | 5284 | if test $ac_cv_header_time = yes; then |
e91b9f68 A |
5285 | |
5286 | cat >>confdefs.h <<\_ACEOF | |
ed34e3c3 | 5287 | #define TIME_WITH_SYS_TIME 1 |
e91b9f68 A |
5288 | _ACEOF |
5289 | ||
5290 | fi | |
5291 | ||
5b0a4722 A |
5292 | { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
5293 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; } | |
ed34e3c3 | 5294 | if test "${ac_cv_struct_tm+set}" = set; then |
e91b9f68 | 5295 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
e91b9f68 A |
5296 | else |
5297 | cat >conftest.$ac_ext <<_ACEOF | |
5298 | /* confdefs.h. */ | |
5299 | _ACEOF | |
5300 | cat confdefs.h >>conftest.$ac_ext | |
5301 | cat >>conftest.$ac_ext <<_ACEOF | |
5302 | /* end confdefs.h. */ | |
ed34e3c3 A |
5303 | #include <sys/types.h> |
5304 | #include <time.h> | |
e91b9f68 A |
5305 | |
5306 | int | |
5307 | main () | |
5308 | { | |
5b0a4722 A |
5309 | struct tm tm; |
5310 | int *p = &tm.tm_sec; | |
5311 | return !p; | |
e91b9f68 A |
5312 | ; |
5313 | return 0; | |
5314 | } | |
5315 | _ACEOF | |
ed34e3c3 | 5316 | rm -f conftest.$ac_objext |
5b0a4722 A |
5317 | if { (ac_try="$ac_compile" |
5318 | case "(($ac_try" in | |
5319 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5320 | *) ac_try_echo=$ac_try;; | |
5321 | esac | |
5322 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5323 | (eval "$ac_compile") 2>conftest.er1 | |
e91b9f68 | 5324 | ac_status=$? |
ed34e3c3 A |
5325 | grep -v '^ *+' conftest.er1 >conftest.err |
5326 | rm -f conftest.er1 | |
5327 | cat conftest.err >&5 | |
e91b9f68 | 5328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5b0a4722 A |
5329 | (exit $ac_status); } && { |
5330 | test -z "$ac_c_werror_flag" || | |
5331 | test ! -s conftest.err | |
5332 | } && test -s conftest.$ac_objext; then | |
ed34e3c3 | 5333 | ac_cv_struct_tm=time.h |
e91b9f68 | 5334 | else |
ed34e3c3 | 5335 | echo "$as_me: failed program was:" >&5 |
e91b9f68 A |
5336 | sed 's/^/| /' conftest.$ac_ext >&5 |
5337 | ||
5b0a4722 | 5338 | ac_cv_struct_tm=sys/time.h |
e91b9f68 | 5339 | fi |
5b0a4722 A |
5340 | |
5341 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
e91b9f68 | 5342 | fi |
5b0a4722 A |
5343 | { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
5344 | echo "${ECHO_T}$ac_cv_struct_tm" >&6; } | |
ed34e3c3 | 5345 | if test $ac_cv_struct_tm = sys/time.h; then |
e91b9f68 A |
5346 | |
5347 | cat >>confdefs.h <<\_ACEOF | |
ed34e3c3 | 5348 | #define TM_IN_SYS_TIME 1 |
e91b9f68 A |
5349 | _ACEOF |
5350 | ||
5351 | fi | |
5352 | ||
ed34e3c3 A |
5353 | |
5354 | # Checks for library functions. | |
5355 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
5356 | # for constant arguments. Useless! | |
5b0a4722 A |
5357 | { echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
5358 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; } | |
ed34e3c3 | 5359 | if test "${ac_cv_working_alloca_h+set}" = set; then |
e91b9f68 A |
5360 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5361 | else | |
5362 | cat >conftest.$ac_ext <<_ACEOF | |
5363 | /* confdefs.h. */ | |
5364 | _ACEOF | |
5365 | cat confdefs.h >>conftest.$ac_ext | |
5366 | cat >>conftest.$ac_ext <<_ACEOF | |
5367 | /* end confdefs.h. */ | |
ed34e3c3 | 5368 | #include <alloca.h> |
e91b9f68 A |
5369 | int |
5370 | main () | |
5371 | { | |
ed34e3c3 | 5372 | char *p = (char *) alloca (2 * sizeof (int)); |
5b0a4722 | 5373 | if (p) return 0; |
e91b9f68 A |
5374 | ; |
5375 | return 0; | |
5376 | } | |
5377 | _ACEOF | |
5378 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5b0a4722 A |
5379 | if { (ac_try="$ac_link" |
5380 | case "(($ac_try" in | |
5381 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5382 | *) ac_try_echo=$ac_try;; | |
5383 | esac | |
5384 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5385 | (eval "$ac_link") 2>conftest.er1 | |
e91b9f68 A |
5386 | ac_status=$? |
5387 | grep -v '^ *+' conftest.er1 >conftest.err | |
5388 | rm -f conftest.er1 | |
5389 | cat conftest.err >&5 | |
5390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5b0a4722 A |
5391 | (exit $ac_status); } && { |
5392 | test -z "$ac_c_werror_flag" || | |
5393 | test ! -s conftest.err | |
5394 | } && test -s conftest$ac_exeext && | |
5395 | $as_test_x conftest$ac_exeext; then | |
ed34e3c3 | 5396 | ac_cv_working_alloca_h=yes |
e91b9f68 A |
5397 | else |
5398 | echo "$as_me: failed program was:" >&5 | |
5399 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5400 | ||
5b0a4722 | 5401 | ac_cv_working_alloca_h=no |
e91b9f68 | 5402 | fi |
5b0a4722 A |
5403 | |
5404 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
e91b9f68 A |
5405 | conftest$ac_exeext conftest.$ac_ext |
5406 | fi | |
5b0a4722 A |
5407 | { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
5408 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; } | |
ed34e3c3 | 5409 | if test $ac_cv_working_alloca_h = yes; then |
e91b9f68 | 5410 | |
ed34e3c3 A |
5411 | cat >>confdefs.h <<\_ACEOF |
5412 | #define HAVE_ALLOCA_H 1 | |
5413 | _ACEOF | |
e91b9f68 | 5414 | |
ed34e3c3 | 5415 | fi |
e91b9f68 | 5416 | |
5b0a4722 A |
5417 | { echo "$as_me:$LINENO: checking for alloca" >&5 |
5418 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6; } | |
ed34e3c3 | 5419 | if test "${ac_cv_func_alloca_works+set}" = set; then |
e91b9f68 | 5420 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
e91b9f68 | 5421 | else |
ed34e3c3 | 5422 | cat >conftest.$ac_ext <<_ACEOF |
e91b9f68 A |
5423 | /* confdefs.h. */ |
5424 | _ACEOF | |
5425 | cat confdefs.h >>conftest.$ac_ext | |
5426 | cat >>conftest.$ac_ext <<_ACEOF | |
5427 | /* end confdefs.h. */ | |
ed34e3c3 A |
5428 | #ifdef __GNUC__ |
5429 | # define alloca __builtin_alloca | |
5430 | #else | |
5431 | # ifdef _MSC_VER | |
5432 | # include <malloc.h> | |
5433 | # define alloca _alloca | |
5434 | # else | |
5b0a4722 | 5435 | # ifdef HAVE_ALLOCA_H |
ed34e3c3 A |
5436 | # include <alloca.h> |
5437 | # else | |
5438 | # ifdef _AIX | |
5439 | #pragma alloca | |
5440 | # else | |
5441 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
5442 | char *alloca (); | |
5443 | # endif | |
5444 | # endif | |
5445 | # endif | |
5446 | # endif | |
5447 | #endif | |
5448 | ||
5449 | int | |
5450 | main () | |
5451 | { | |
5452 | char *p = (char *) alloca (1); | |
5b0a4722 | 5453 | if (p) return 0; |
ed34e3c3 A |
5454 | ; |
5455 | return 0; | |
5456 | } | |
e91b9f68 | 5457 | _ACEOF |
ed34e3c3 | 5458 | rm -f conftest.$ac_objext conftest$ac_exeext |
5b0a4722 A |
5459 | if { (ac_try="$ac_link" |
5460 | case "(($ac_try" in | |
5461 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5462 | *) ac_try_echo=$ac_try;; | |
5463 | esac | |
5464 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5465 | (eval "$ac_link") 2>conftest.er1 | |
e91b9f68 A |
5466 | ac_status=$? |
5467 | grep -v '^ *+' conftest.er1 >conftest.err | |
5468 | rm -f conftest.er1 | |
5469 | cat conftest.err >&5 | |
5470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5b0a4722 A |
5471 | (exit $ac_status); } && { |
5472 | test -z "$ac_c_werror_flag" || | |
5473 | test ! -s conftest.err | |
5474 | } && test -s conftest$ac_exeext && | |
5475 | $as_test_x conftest$ac_exeext; then | |
ed34e3c3 | 5476 | ac_cv_func_alloca_works=yes |
e91b9f68 A |
5477 | else |
5478 | echo "$as_me: failed program was:" >&5 | |
5479 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5480 | ||
5b0a4722 | 5481 | ac_cv_func_alloca_works=no |
e91b9f68 | 5482 | fi |
5b0a4722 A |
5483 | |
5484 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
ed34e3c3 A |
5485 | conftest$ac_exeext conftest.$ac_ext |
5486 | fi | |
5b0a4722 A |
5487 | { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
5488 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; } | |
e91b9f68 | 5489 | |
ed34e3c3 A |
5490 | if test $ac_cv_func_alloca_works = yes; then |
5491 | ||
5492 | cat >>confdefs.h <<\_ACEOF | |
5493 | #define HAVE_ALLOCA 1 | |
5494 | _ACEOF | |
5495 | ||
5496 | else | |
5497 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
5498 | # that cause trouble. Some versions do not even contain alloca or | |
5499 | # contain a buggy version. If you still want to use their alloca, | |
5500 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
5501 | ||
5b0a4722 | 5502 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
ed34e3c3 A |
5503 | |
5504 | cat >>confdefs.h <<\_ACEOF | |
5505 | #define C_ALLOCA 1 | |
5506 | _ACEOF | |
5507 | ||
5508 | ||
5b0a4722 A |
5509 | { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
5510 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; } | |
ed34e3c3 A |
5511 | if test "${ac_cv_os_cray+set}" = set; then |
5512 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5513 | else | |
5514 | cat >conftest.$ac_ext <<_ACEOF | |
e91b9f68 A |
5515 | /* confdefs.h. */ |
5516 | _ACEOF | |
5517 | cat confdefs.h >>conftest.$ac_ext | |
5518 | cat >>conftest.$ac_ext <<_ACEOF | |
5519 | /* end confdefs.h. */ | |
5b0a4722 | 5520 | #if defined CRAY && ! defined CRAY2 |
ed34e3c3 A |
5521 | webecray |
5522 | #else | |
5523 | wenotbecray | |
5524 | #endif | |
5525 | ||
e91b9f68 | 5526 | _ACEOF |
ed34e3c3 A |
5527 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5528 | $EGREP "webecray" >/dev/null 2>&1; then | |
5529 | ac_cv_os_cray=yes | |
e91b9f68 | 5530 | else |
ed34e3c3 | 5531 | ac_cv_os_cray=no |
e91b9f68 | 5532 | fi |
ed34e3c3 | 5533 | rm -f conftest* |
e91b9f68 | 5534 | |
e91b9f68 | 5535 | fi |
5b0a4722 A |
5536 | { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
5537 | echo "${ECHO_T}$ac_cv_os_cray" >&6; } | |
ed34e3c3 A |
5538 | if test $ac_cv_os_cray = yes; then |
5539 | for ac_func in _getb67 GETB67 getb67; do | |
5540 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5b0a4722 A |
5541 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
5542 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
5543 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
e91b9f68 A |
5544 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5545 | else | |
5546 | cat >conftest.$ac_ext <<_ACEOF | |
5547 | /* confdefs.h. */ | |
5548 | _ACEOF | |
5549 | cat confdefs.h >>conftest.$ac_ext | |
5550 | cat >>conftest.$ac_ext <<_ACEOF | |
5551 | /* end confdefs.h. */ | |
5552 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
5553 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
5554 | #define $ac_func innocuous_$ac_func | |
5555 | ||
5556 | /* System header to define __stub macros and hopefully few prototypes, | |
5557 | which can conflict with char $ac_func (); below. | |
5558 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5559 | <limits.h> exists even on freestanding compilers. */ | |
5560 | ||
5561 | #ifdef __STDC__ | |
5562 | # include <limits.h> | |
5563 | #else | |
5564 | # include <assert.h> | |
5565 | #endif | |
5566 | ||
5567 | #undef $ac_func | |
5568 | ||
5b0a4722 A |
5569 | /* Override any GCC internal prototype to avoid an error. |
5570 | Use char because int might match the return type of a GCC | |
5571 | builtin and then its argument prototype would still apply. */ | |
e91b9f68 A |
5572 | #ifdef __cplusplus |
5573 | extern "C" | |
e91b9f68 | 5574 | #endif |
e91b9f68 A |
5575 | char $ac_func (); |
5576 | /* The GNU C library defines this for functions which it implements | |
5577 | to always fail with ENOSYS. Some functions are actually named | |
5578 | something starting with __ and the normal name is an alias. */ | |
5b0a4722 | 5579 | #if defined __stub_$ac_func || defined __stub___$ac_func |
e91b9f68 | 5580 | choke me |
e91b9f68 A |
5581 | #endif |
5582 | ||
5583 | int | |
5584 | main () | |
5585 | { | |
5b0a4722 | 5586 | return $ac_func (); |
e91b9f68 A |
5587 | ; |
5588 | return 0; | |
5589 | } | |
5590 | _ACEOF | |
5591 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5b0a4722 A |
5592 | if { (ac_try="$ac_link" |
5593 | case "(($ac_try" in | |
5594 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5595 | *) ac_try_echo=$ac_try;; | |
5596 | esac | |
5597 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5598 | (eval "$ac_link") 2>conftest.er1 | |
e91b9f68 A |
5599 | ac_status=$? |
5600 | grep -v '^ *+' conftest.er1 >conftest.err | |
5601 | rm -f conftest.er1 | |
5602 | cat conftest.err >&5 | |
5603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5b0a4722 A |
5604 | (exit $ac_status); } && { |
5605 | test -z "$ac_c_werror_flag" || | |
5606 | test ! -s conftest.err | |
5607 | } && test -s conftest$ac_exeext && | |
5608 | $as_test_x conftest$ac_exeext; then | |
e91b9f68 A |
5609 | eval "$as_ac_var=yes" |
5610 | else | |
5611 | echo "$as_me: failed program was:" >&5 | |
5612 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5613 | ||
5b0a4722 | 5614 | eval "$as_ac_var=no" |
e91b9f68 | 5615 | fi |
5b0a4722 A |
5616 | |
5617 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
e91b9f68 A |
5618 | conftest$ac_exeext conftest.$ac_ext |
5619 | fi | |
5b0a4722 A |
5620 | ac_res=`eval echo '${'$as_ac_var'}'` |
5621 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5622 | echo "${ECHO_T}$ac_res" >&6; } | |
e91b9f68 | 5623 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
ed34e3c3 A |
5624 | |
5625 | cat >>confdefs.h <<_ACEOF | |
5626 | #define CRAY_STACKSEG_END $ac_func | |
e91b9f68 A |
5627 | _ACEOF |
5628 | ||
ed34e3c3 A |
5629 | break |
5630 | fi | |
5631 | ||
5632 | done | |
e91b9f68 | 5633 | fi |
e91b9f68 | 5634 | |
5b0a4722 A |
5635 | { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
5636 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; } | |
ed34e3c3 | 5637 | if test "${ac_cv_c_stack_direction+set}" = set; then |
e91b9f68 A |
5638 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5639 | else | |
5640 | if test "$cross_compiling" = yes; then | |
ed34e3c3 | 5641 | ac_cv_c_stack_direction=0 |
e91b9f68 A |
5642 | else |
5643 | cat >conftest.$ac_ext <<_ACEOF | |
ed34e3c3 A |
5644 | /* confdefs.h. */ |
5645 | _ACEOF | |
5646 | cat confdefs.h >>conftest.$ac_ext | |
5647 | cat >>conftest.$ac_ext <<_ACEOF | |
5648 | /* end confdefs.h. */ | |
5b0a4722 | 5649 | $ac_includes_default |
ed34e3c3 A |
5650 | int |
5651 | find_stack_direction () | |
5652 | { | |
5653 | static char *addr = 0; | |
5654 | auto char dummy; | |
5655 | if (addr == 0) | |
5656 | { | |
5657 | addr = &dummy; | |
5658 | return find_stack_direction (); | |
5659 | } | |
5660 | else | |
5661 | return (&dummy > addr) ? 1 : -1; | |
5662 | } | |
5663 | ||
5664 | int | |
5665 | main () | |
5666 | { | |
5b0a4722 | 5667 | return find_stack_direction () < 0; |
ed34e3c3 | 5668 | } |
e91b9f68 A |
5669 | _ACEOF |
5670 | rm -f conftest$ac_exeext | |
5b0a4722 A |
5671 | if { (ac_try="$ac_link" |
5672 | case "(($ac_try" in | |
5673 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5674 | *) ac_try_echo=$ac_try;; | |
5675 | esac | |
5676 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5677 | (eval "$ac_link") 2>&5 | |
e91b9f68 A |
5678 | ac_status=$? |
5679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5680 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5b0a4722 A |
5681 | { (case "(($ac_try" in |
5682 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5683 | *) ac_try_echo=$ac_try;; | |
5684 | esac | |
5685 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5686 | (eval "$ac_try") 2>&5 | |
e91b9f68 A |
5687 | ac_status=$? |
5688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5689 | (exit $ac_status); }; }; then | |
ed34e3c3 | 5690 | ac_cv_c_stack_direction=1 |
e91b9f68 A |
5691 | else |
5692 | echo "$as_me: program exited with status $ac_status" >&5 | |
5693 | echo "$as_me: failed program was:" >&5 | |
5694 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5695 | ||
5696 | ( exit $ac_status ) | |
ed34e3c3 | 5697 | ac_cv_c_stack_direction=-1 |
e91b9f68 | 5698 | fi |
5b0a4722 | 5699 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
e91b9f68 | 5700 | fi |
5b0a4722 A |
5701 | |
5702 | ||
e91b9f68 | 5703 | fi |
5b0a4722 A |
5704 | { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
5705 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; } | |
ed34e3c3 A |
5706 | |
5707 | cat >>confdefs.h <<_ACEOF | |
5708 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
5709 | _ACEOF | |
5710 | ||
e91b9f68 | 5711 | |
e91b9f68 | 5712 | fi |
ed34e3c3 | 5713 | |
5b0a4722 A |
5714 | { echo "$as_me:$LINENO: checking whether closedir returns void" >&5 |
5715 | echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; } | |
ed34e3c3 | 5716 | if test "${ac_cv_func_closedir_void+set}" = set; then |
e91b9f68 A |
5717 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5718 | else | |
5719 | if test "$cross_compiling" = yes; then | |
ed34e3c3 | 5720 | ac_cv_func_closedir_void=yes |
e91b9f68 A |
5721 | else |
5722 | cat >conftest.$ac_ext <<_ACEOF | |
5723 | /* confdefs.h. */ | |
5724 | _ACEOF | |
5725 | cat confdefs.h >>conftest.$ac_ext | |
5726 | cat >>conftest.$ac_ext <<_ACEOF | |
5727 | /* end confdefs.h. */ | |
ed34e3c3 A |
5728 | $ac_includes_default |
5729 | #include <$ac_header_dirent> | |
5730 | #ifndef __cplusplus | |
5731 | int closedir (); | |
e91b9f68 | 5732 | #endif |
e91b9f68 A |
5733 | |
5734 | int | |
5735 | main () | |
5736 | { | |
5b0a4722 | 5737 | return closedir (opendir (".")) != 0; |
ed34e3c3 A |
5738 | ; |
5739 | return 0; | |
e91b9f68 A |
5740 | } |
5741 | _ACEOF | |
5742 | rm -f conftest$ac_exeext | |
5b0a4722 A |
5743 | if { (ac_try="$ac_link" |
5744 | case "(($ac_try" in | |
5745 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5746 | *) ac_try_echo=$ac_try;; | |
5747 | esac | |
5748 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5749 | (eval "$ac_link") 2>&5 | |
e91b9f68 A |
5750 | ac_status=$? |
5751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5752 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5b0a4722 A |
5753 | { (case "(($ac_try" in |
5754 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5755 | *) ac_try_echo=$ac_try;; | |
5756 | esac | |
5757 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5758 | (eval "$ac_try") 2>&5 | |
e91b9f68 A |
5759 | ac_status=$? |
5760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5761 | (exit $ac_status); }; }; then | |
ed34e3c3 | 5762 | ac_cv_func_closedir_void=no |
e91b9f68 A |
5763 | else |
5764 | echo "$as_me: program exited with status $ac_status" >&5 | |
5765 | echo "$as_me: failed program was:" >&5 | |
5766 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5767 | ||
5768 | ( exit $ac_status ) | |
ed34e3c3 | 5769 | ac_cv_func_closedir_void=yes |
e91b9f68 | 5770 | fi |
5b0a4722 | 5771 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
e91b9f68 | 5772 | fi |
5b0a4722 A |
5773 | |
5774 | ||
e91b9f68 | 5775 | fi |
5b0a4722 A |
5776 | { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5 |
5777 | echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; } | |
ed34e3c3 | 5778 | if test $ac_cv_func_closedir_void = yes; then |
e91b9f68 A |
5779 | |
5780 | cat >>confdefs.h <<\_ACEOF | |
ed34e3c3 | 5781 | #define CLOSEDIR_VOID 1 |
e91b9f68 A |
5782 | _ACEOF |
5783 | ||
5784 | fi | |
e91b9f68 | 5785 | |
e91b9f68 | 5786 | |
5b0a4722 | 5787 | for ac_header in vfork.h |
e91b9f68 A |
5788 | do |
5789 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5b0a4722 A |
5790 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5791 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5792 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
5793 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
e91b9f68 A |
5794 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5795 | fi | |
5b0a4722 A |
5796 | ac_res=`eval echo '${'$as_ac_Header'}'` |
5797 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5798 | echo "${ECHO_T}$ac_res" >&6; } | |
e91b9f68 A |
5799 | else |
5800 | # Is the header compilable? | |
5b0a4722 A |
5801 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
5802 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
e91b9f68 A |
5803 | cat >conftest.$ac_ext <<_ACEOF |
5804 | /* confdefs.h. */ | |
5805 | _ACEOF | |
5806 | cat confdefs.h >>conftest.$ac_ext | |
5807 | cat >>conftest.$ac_ext <<_ACEOF | |
5808 | /* end confdefs.h. */ | |
5809 | $ac_includes_default | |
5810 | #include <$ac_header> | |
5811 | _ACEOF | |
5812 | rm -f conftest.$ac_objext | |
5b0a4722 A |
5813 | if { (ac_try="$ac_compile" |
5814 | case "(($ac_try" in | |
5815 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5816 | *) ac_try_echo=$ac_try;; | |
5817 | esac | |
5818 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5819 | (eval "$ac_compile") 2>conftest.er1 | |
e91b9f68 A |
5820 | ac_status=$? |
5821 | grep -v '^ *+' conftest.er1 >conftest.err | |
5822 | rm -f conftest.er1 | |
5823 | cat conftest.err >&5 | |
5824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5b0a4722 A |
5825 | (exit $ac_status); } && { |
5826 | test -z "$ac_c_werror_flag" || | |
5827 | test ! -s conftest.err | |
5828 | } && test -s conftest.$ac_objext; then | |
e91b9f68 A |
5829 | ac_header_compiler=yes |
5830 | else | |
5831 | echo "$as_me: failed program was:" >&5 | |
5832 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5833 | ||
5b0a4722 | 5834 | ac_header_compiler=no |
e91b9f68 | 5835 | fi |
5b0a4722 A |
5836 | |
5837 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5838 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5839 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
e91b9f68 A |
5840 | |
5841 | # Is the header present? | |
5b0a4722 A |
5842 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5843 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
e91b9f68 A |
5844 | cat >conftest.$ac_ext <<_ACEOF |
5845 | /* confdefs.h. */ | |
5846 | _ACEOF | |
5847 | cat confdefs.h >>conftest.$ac_ext | |
5848 | cat >>conftest.$ac_ext <<_ACEOF | |
5849 | /* end confdefs.h. */ | |
5850 | #include <$ac_header> | |
5851 | _ACEOF | |
5b0a4722 A |
5852 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5853 | case "(($ac_try" in | |
5854 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5855 | *) ac_try_echo=$ac_try;; | |
5856 | esac | |
5857 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5858 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
e91b9f68 A |
5859 | ac_status=$? |
5860 | grep -v '^ *+' conftest.er1 >conftest.err | |
5861 | rm -f conftest.er1 | |
5862 | cat conftest.err >&5 | |
5863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5b0a4722 A |
5864 | (exit $ac_status); } >/dev/null && { |
5865 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
5866 | test ! -s conftest.err | |
5867 | }; then | |
e91b9f68 A |
5868 | ac_header_preproc=yes |
5869 | else | |
5870 | echo "$as_me: failed program was:" >&5 | |
5871 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5872 | ||
5873 | ac_header_preproc=no | |
5874 | fi | |
5b0a4722 | 5875 | |
e91b9f68 | 5876 | rm -f conftest.err conftest.$ac_ext |
5b0a4722 A |
5877 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5878 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
e91b9f68 A |
5879 | |
5880 | # So? What about this header? | |
5881 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5882 | yes:no: ) | |
5883 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5884 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5885 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5886 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
5887 | ac_header_preproc=yes | |
5888 | ;; | |
5889 | no:yes:* ) | |
5890 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
5891 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5892 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5893 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5894 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5895 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5896 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5897 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5898 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5899 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5900 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5901 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
5b0a4722 | 5902 | ( cat <<\_ASBOX |
e91b9f68 A |
5903 | ## -------------------------------------------------- ## |
5904 | ## Report this to launchd-bug-reports@group.apple.com ## | |
5905 | ## -------------------------------------------------- ## | |
5906 | _ASBOX | |
5b0a4722 | 5907 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
e91b9f68 A |
5908 | ;; |
5909 | esac | |
5b0a4722 A |
5910 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5911 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
5912 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
e91b9f68 A |
5913 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5914 | else | |
5915 | eval "$as_ac_Header=\$ac_header_preproc" | |
5916 | fi | |
5b0a4722 A |
5917 | ac_res=`eval echo '${'$as_ac_Header'}'` |
5918 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
5919 | echo "${ECHO_T}$ac_res" >&6; } | |
e91b9f68 A |
5920 | |
5921 | fi | |
5922 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
5923 | cat >>confdefs.h <<_ACEOF | |
5924 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5925 | _ACEOF | |
5926 | ||
5927 | fi | |
5928 | ||
5929 | done | |
5930 | ||
ed34e3c3 A |
5931 | |
5932 | ||
5933 | for ac_func in fork vfork | |
5934 | do | |
5935 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5b0a4722 A |
5936 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
5937 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
5938 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
e91b9f68 | 5939 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
e91b9f68 A |
5940 | else |
5941 | cat >conftest.$ac_ext <<_ACEOF | |
5942 | /* confdefs.h. */ | |
5943 | _ACEOF | |
5944 | cat confdefs.h >>conftest.$ac_ext | |
5945 | cat >>conftest.$ac_ext <<_ACEOF | |
5946 | /* end confdefs.h. */ | |
ed34e3c3 A |
5947 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
5948 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
5949 | #define $ac_func innocuous_$ac_func | |
5950 | ||
5951 | /* System header to define __stub macros and hopefully few prototypes, | |
5952 | which can conflict with char $ac_func (); below. | |
5953 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5954 | <limits.h> exists even on freestanding compilers. */ | |
5955 | ||
5956 | #ifdef __STDC__ | |
5957 | # include <limits.h> | |
e91b9f68 | 5958 | #else |
ed34e3c3 A |
5959 | # include <assert.h> |
5960 | #endif | |
5961 | ||
5962 | #undef $ac_func | |
5963 | ||
5b0a4722 A |
5964 | /* Override any GCC internal prototype to avoid an error. |
5965 | Use char because int might match the return type of a GCC | |
5966 | builtin and then its argument prototype would still apply. */ | |
ed34e3c3 A |
5967 | #ifdef __cplusplus |
5968 | extern "C" | |
ed34e3c3 | 5969 | #endif |
ed34e3c3 A |
5970 | char $ac_func (); |
5971 | /* The GNU C library defines this for functions which it implements | |
5972 | to always fail with ENOSYS. Some functions are actually named | |
5973 | something starting with __ and the normal name is an alias. */ | |
5b0a4722 | 5974 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ed34e3c3 | 5975 | choke me |
e91b9f68 A |
5976 | #endif |
5977 | ||
5978 | int | |
5979 | main () | |
5980 | { | |
5b0a4722 | 5981 | return $ac_func (); |
e91b9f68 A |
5982 | ; |
5983 | return 0; | |
5984 | } | |
5985 | _ACEOF | |
ed34e3c3 | 5986 | rm -f conftest.$ac_objext conftest$ac_exeext |
5b0a4722 A |
5987 | if { (ac_try="$ac_link" |
5988 | case "(($ac_try" in | |
5989 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5990 | *) ac_try_echo=$ac_try;; | |
5991 | esac | |
5992 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5993 | (eval "$ac_link") 2>conftest.er1 | |
ed34e3c3 A |
5994 | ac_status=$? |
5995 | grep -v '^ *+' conftest.er1 >conftest.err | |
5996 | rm -f conftest.er1 | |
5997 | cat conftest.err >&5 | |
5998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5b0a4722 A |
5999 | (exit $ac_status); } && { |
6000 | test -z "$ac_c_werror_flag" || | |
6001 | test ! -s conftest.err | |
6002 | } && test -s conftest$ac_exeext && | |
6003 | $as_test_x conftest$ac_exeext; then | |
ed34e3c3 A |
6004 | eval "$as_ac_var=yes" |
6005 | else | |
6006 | echo "$as_me: failed program was:" >&5 | |
6007 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6008 | ||
5b0a4722 | 6009 | eval "$as_ac_var=no" |
ed34e3c3 | 6010 | fi |
5b0a4722 A |
6011 | |
6012 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
ed34e3c3 A |
6013 | conftest$ac_exeext conftest.$ac_ext |
6014 | fi | |
5b0a4722 A |
6015 | ac_res=`eval echo '${'$as_ac_var'}'` |
6016 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6017 | echo "${ECHO_T}$ac_res" >&6; } | |
ed34e3c3 A |
6018 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
6019 | cat >>confdefs.h <<_ACEOF | |
6020 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
6021 | _ACEOF | |
6022 | ||
6023 | fi | |
6024 | done | |
6025 | ||
6026 | if test "x$ac_cv_func_fork" = xyes; then | |
5b0a4722 A |
6027 | { echo "$as_me:$LINENO: checking for working fork" >&5 |
6028 | echo $ECHO_N "checking for working fork... $ECHO_C" >&6; } | |
ed34e3c3 A |
6029 | if test "${ac_cv_func_fork_works+set}" = set; then |
6030 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6031 | else | |
6032 | if test "$cross_compiling" = yes; then | |
6033 | ac_cv_func_fork_works=cross | |
6034 | else | |
6035 | cat >conftest.$ac_ext <<_ACEOF | |
5b0a4722 A |
6036 | /* confdefs.h. */ |
6037 | _ACEOF | |
6038 | cat confdefs.h >>conftest.$ac_ext | |
6039 | cat >>conftest.$ac_ext <<_ACEOF | |
6040 | /* end confdefs.h. */ | |
6041 | $ac_includes_default | |
6042 | int | |
6043 | main () | |
6044 | { | |
6045 | ||
6046 | /* By Ruediger Kuhlmann. */ | |
6047 | return fork () < 0; | |
6048 | ||
6049 | ; | |
6050 | return 0; | |
6051 | } | |
ed34e3c3 | 6052 | _ACEOF |
e91b9f68 | 6053 | rm -f conftest$ac_exeext |
5b0a4722 A |
6054 | if { (ac_try="$ac_link" |
6055 | case "(($ac_try" in | |
6056 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6057 | *) ac_try_echo=$ac_try;; | |
6058 | esac | |
6059 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6060 | (eval "$ac_link") 2>&5 | |
e91b9f68 A |
6061 | ac_status=$? |
6062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6063 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5b0a4722 A |
6064 | { (case "(($ac_try" in |
6065 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6066 | *) ac_try_echo=$ac_try;; | |
6067 | esac | |
6068 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6069 | (eval "$ac_try") 2>&5 | |
e91b9f68 A |
6070 | ac_status=$? |
6071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6072 | (exit $ac_status); }; }; then | |
ed34e3c3 | 6073 | ac_cv_func_fork_works=yes |
e91b9f68 A |
6074 | else |
6075 | echo "$as_me: program exited with status $ac_status" >&5 | |
6076 | echo "$as_me: failed program was:" >&5 | |
6077 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6078 | ||
6079 | ( exit $ac_status ) | |
ed34e3c3 | 6080 | ac_cv_func_fork_works=no |
e91b9f68 | 6081 | fi |
5b0a4722 | 6082 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
e91b9f68 | 6083 | fi |
5b0a4722 A |
6084 | |
6085 | ||
e91b9f68 | 6086 | fi |
5b0a4722 A |
6087 | { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 |
6088 | echo "${ECHO_T}$ac_cv_func_fork_works" >&6; } | |
e91b9f68 A |
6089 | |
6090 | else | |
ed34e3c3 A |
6091 | ac_cv_func_fork_works=$ac_cv_func_fork |
6092 | fi | |
6093 | if test "x$ac_cv_func_fork_works" = xcross; then | |
6094 | case $host in | |
6095 | *-*-amigaos* | *-*-msdosdjgpp*) | |
6096 | # Override, as these systems have only a dummy fork() stub | |
6097 | ac_cv_func_fork_works=no | |
6098 | ;; | |
6099 | *) | |
6100 | ac_cv_func_fork_works=yes | |
6101 | ;; | |
6102 | esac | |
6103 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 | |
6104 | echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
6105 | fi | |
6106 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
6107 | if test "x$ac_cv_func_vfork" = xyes; then | |
5b0a4722 A |
6108 | { echo "$as_me:$LINENO: checking for working vfork" >&5 |
6109 | echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; } | |
ed34e3c3 A |
6110 | if test "${ac_cv_func_vfork_works+set}" = set; then |
6111 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6112 | else | |
6113 | if test "$cross_compiling" = yes; then | |
6114 | ac_cv_func_vfork_works=cross | |
6115 | else | |
6116 | cat >conftest.$ac_ext <<_ACEOF | |
6117 | /* confdefs.h. */ | |
e91b9f68 | 6118 | _ACEOF |
ed34e3c3 A |
6119 | cat confdefs.h >>conftest.$ac_ext |
6120 | cat >>conftest.$ac_ext <<_ACEOF | |
6121 | /* end confdefs.h. */ | |
6122 | /* Thanks to Paul Eggert for this test. */ | |
5b0a4722 | 6123 | $ac_includes_default |
ed34e3c3 | 6124 | #include <sys/wait.h> |
5b0a4722 | 6125 | #ifdef HAVE_VFORK_H |
ed34e3c3 A |
6126 | # include <vfork.h> |
6127 | #endif | |
6128 | /* On some sparc systems, changes by the child to local and incoming | |
6129 | argument registers are propagated back to the parent. The compiler | |
6130 | is told about this with #include <vfork.h>, but some compilers | |
6131 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
6132 | static variable whose address is put into a register that is | |
6133 | clobbered by the vfork. */ | |
6134 | static void | |
6135 | #ifdef __cplusplus | |
6136 | sparc_address_test (int arg) | |
6137 | # else | |
6138 | sparc_address_test (arg) int arg; | |
6139 | #endif | |
6140 | { | |
6141 | static pid_t child; | |
6142 | if (!child) { | |
6143 | child = vfork (); | |
6144 | if (child < 0) { | |
6145 | perror ("vfork"); | |
6146 | _exit(2); | |
6147 | } | |
6148 | if (!child) { | |
6149 | arg = getpid(); | |
6150 | write(-1, "", 0); | |
6151 | _exit (arg); | |
6152 | } | |
6153 | } | |
6154 | } | |
e91b9f68 | 6155 | |
ed34e3c3 A |
6156 | int |
6157 | main () | |
6158 | { | |
6159 | pid_t parent = getpid (); | |
6160 | pid_t child; | |
e91b9f68 | 6161 | |
ed34e3c3 | 6162 | sparc_address_test (0); |
e91b9f68 | 6163 | |
ed34e3c3 | 6164 | child = vfork (); |
e91b9f68 | 6165 | |
ed34e3c3 A |
6166 | if (child == 0) { |
6167 | /* Here is another test for sparc vfork register problems. This | |
6168 | test uses lots of local variables, at least as many local | |
6169 | variables as main has allocated so far including compiler | |
6170 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
6171 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
6172 | reuse the register of parent for one of the local variables, | |
6173 | since it will think that parent can't possibly be used any more | |
6174 | in this routine. Assigning to the local variable will thus | |
6175 | munge parent in the parent process. */ | |
6176 | pid_t | |
6177 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
6178 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
6179 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
6180 | use the same hardware register for all 8 local variables. */ | |
6181 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
6182 | || p != p5 || p != p6 || p != p7) | |
6183 | _exit(1); | |
6184 | ||
6185 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent | |
6186 | from child file descriptors. If the child closes a descriptor | |
6187 | before it execs or exits, this munges the parent's descriptor | |
6188 | as well. Test for this by closing stdout in the child. */ | |
6189 | _exit(close(fileno(stdout)) != 0); | |
6190 | } else { | |
6191 | int status; | |
6192 | struct stat st; | |
6193 | ||
6194 | while (wait(&status) != child) | |
6195 | ; | |
5b0a4722 | 6196 | return ( |
ed34e3c3 A |
6197 | /* Was there some problem with vforking? */ |
6198 | child < 0 | |
e91b9f68 | 6199 | |
ed34e3c3 A |
6200 | /* Did the child fail? (This shouldn't happen.) */ |
6201 | || status | |
e91b9f68 | 6202 | |
ed34e3c3 A |
6203 | /* Did the vfork/compiler bug occur? */ |
6204 | || parent != getpid() | |
6205 | ||
6206 | /* Did the file descriptor bug occur? */ | |
6207 | || fstat(fileno(stdout), &st) != 0 | |
6208 | ); | |
6209 | } | |
6210 | } | |
6211 | _ACEOF | |
6212 | rm -f conftest$ac_exeext | |
5b0a4722 A |
6213 | if { (ac_try="$ac_link" |
6214 | case "(($ac_try" in | |
6215 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6216 | *) ac_try_echo=$ac_try;; | |
6217 | esac | |
6218 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6219 | (eval "$ac_link") 2>&5 | |
ed34e3c3 A |
6220 | ac_status=$? |
6221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6222 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5b0a4722 A |
6223 | { (case "(($ac_try" in |
6224 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6225 | *) ac_try_echo=$ac_try;; | |
6226 | esac | |
6227 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6228 | (eval "$ac_try") 2>&5 | |
ed34e3c3 A |
6229 | ac_status=$? |
6230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6231 | (exit $ac_status); }; }; then | |
6232 | ac_cv_func_vfork_works=yes | |
6233 | else | |
6234 | echo "$as_me: program exited with status $ac_status" >&5 | |
6235 | echo "$as_me: failed program was:" >&5 | |
6236 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6237 | ||
6238 | ( exit $ac_status ) | |
6239 | ac_cv_func_vfork_works=no | |
6240 | fi | |
5b0a4722 | 6241 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ed34e3c3 | 6242 | fi |
5b0a4722 A |
6243 | |
6244 | ||
ed34e3c3 | 6245 | fi |
5b0a4722 A |
6246 | { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 |
6247 | echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; } | |
ed34e3c3 A |
6248 | |
6249 | fi; | |
6250 | if test "x$ac_cv_func_fork_works" = xcross; then | |
6251 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
6252 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 | |
6253 | echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
6254 | fi | |
6255 | ||
6256 | if test "x$ac_cv_func_vfork_works" = xyes; then | |
6257 | ||
6258 | cat >>confdefs.h <<\_ACEOF | |
6259 | #define HAVE_WORKING_VFORK 1 | |
6260 | _ACEOF | |
6261 | ||
6262 | else | |
6263 | ||
6264 | cat >>confdefs.h <<\_ACEOF | |
6265 | #define vfork fork | |
6266 | _ACEOF | |
6267 | ||
6268 | fi | |
6269 | if test "x$ac_cv_func_fork_works" = xyes; then | |
6270 | ||
6271 | cat >>confdefs.h <<\_ACEOF | |
6272 | #define HAVE_WORKING_FORK 1 | |
6273 | _ACEOF | |
6274 | ||
6275 | fi | |
6276 | ||
6277 | if test $ac_cv_c_compiler_gnu = yes; then | |
5b0a4722 A |
6278 | { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 |
6279 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; } | |
ed34e3c3 A |
6280 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then |
6281 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6282 | else | |
6283 | ac_pattern="Autoconf.*'x'" | |
6284 | cat >conftest.$ac_ext <<_ACEOF | |
6285 | /* confdefs.h. */ | |
6286 | _ACEOF | |
6287 | cat confdefs.h >>conftest.$ac_ext | |
6288 | cat >>conftest.$ac_ext <<_ACEOF | |
6289 | /* end confdefs.h. */ | |
6290 | #include <sgtty.h> | |
6291 | Autoconf TIOCGETP | |
6292 | _ACEOF | |
6293 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6294 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
6295 | ac_cv_prog_gcc_traditional=yes | |
6296 | else | |
6297 | ac_cv_prog_gcc_traditional=no | |
6298 | fi | |
6299 | rm -f conftest* | |
6300 | ||
6301 | ||
6302 | if test $ac_cv_prog_gcc_traditional = no; then | |
6303 | cat >conftest.$ac_ext <<_ACEOF | |
6304 | /* confdefs.h. */ | |
6305 | _ACEOF | |
6306 | cat confdefs.h >>conftest.$ac_ext | |
6307 | cat >>conftest.$ac_ext <<_ACEOF | |
6308 | /* end confdefs.h. */ | |
6309 | #include <termio.h> | |
6310 | Autoconf TCGETA | |
6311 | _ACEOF | |
6312 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6313 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
6314 | ac_cv_prog_gcc_traditional=yes | |
6315 | fi | |
6316 | rm -f conftest* | |
6317 | ||
6318 | fi | |
6319 | fi | |
5b0a4722 A |
6320 | { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
6321 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; } | |
ed34e3c3 A |
6322 | if test $ac_cv_prog_gcc_traditional = yes; then |
6323 | CC="$CC -traditional" | |
6324 | fi | |
6325 | fi | |
6326 | ||
5b0a4722 A |
6327 | { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5 |
6328 | echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; } | |
ed34e3c3 A |
6329 | if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then |
6330 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6331 | else | |
6332 | rm -f conftest.sym conftest.file | |
6333 | echo >conftest.file | |
6334 | if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then | |
6335 | if test "$cross_compiling" = yes; then | |
6336 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
6337 | else | |
6338 | cat >conftest.$ac_ext <<_ACEOF | |
6339 | /* confdefs.h. */ | |
6340 | _ACEOF | |
6341 | cat confdefs.h >>conftest.$ac_ext | |
6342 | cat >>conftest.$ac_ext <<_ACEOF | |
6343 | /* end confdefs.h. */ | |
6344 | $ac_includes_default | |
6345 | int | |
6346 | main () | |
6347 | { | |
6348 | struct stat sbuf; | |
6349 | /* Linux will dereference the symlink and fail. | |
6350 | That is better in the sense that it means we will not | |
6351 | have to compile and use the lstat wrapper. */ | |
5b0a4722 | 6352 | return lstat ("conftest.sym/", &sbuf) == 0; |
ed34e3c3 A |
6353 | ; |
6354 | return 0; | |
6355 | } | |
6356 | _ACEOF | |
6357 | rm -f conftest$ac_exeext | |
5b0a4722 A |
6358 | if { (ac_try="$ac_link" |
6359 | case "(($ac_try" in | |
6360 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6361 | *) ac_try_echo=$ac_try;; | |
6362 | esac | |
6363 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6364 | (eval "$ac_link") 2>&5 | |
ed34e3c3 A |
6365 | ac_status=$? |
6366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6367 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5b0a4722 A |
6368 | { (case "(($ac_try" in |
6369 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6370 | *) ac_try_echo=$ac_try;; | |
6371 | esac | |
6372 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6373 | (eval "$ac_try") 2>&5 | |
ed34e3c3 A |
6374 | ac_status=$? |
6375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6376 | (exit $ac_status); }; }; then | |
6377 | ac_cv_func_lstat_dereferences_slashed_symlink=yes | |
6378 | else | |
6379 | echo "$as_me: program exited with status $ac_status" >&5 | |
6380 | echo "$as_me: failed program was:" >&5 | |
6381 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6382 | ||
6383 | ( exit $ac_status ) | |
6384 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
6385 | fi | |
5b0a4722 | 6386 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ed34e3c3 | 6387 | fi |
5b0a4722 A |
6388 | |
6389 | ||
ed34e3c3 A |
6390 | else |
6391 | # If the `ln -s' command failed, then we probably don't even | |
6392 | # have an lstat function. | |
6393 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
6394 | fi | |
6395 | rm -f conftest.sym conftest.file | |
6396 | ||
6397 | fi | |
5b0a4722 A |
6398 | { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 |
6399 | echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } | |
ed34e3c3 A |
6400 | |
6401 | test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && | |
6402 | ||
6403 | cat >>confdefs.h <<_ACEOF | |
6404 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | |
6405 | _ACEOF | |
6406 | ||
6407 | ||
6408 | if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then | |
5b0a4722 | 6409 | case " $LIBOBJS " in |
ed34e3c3 | 6410 | *" lstat.$ac_objext "* ) ;; |
5b0a4722 A |
6411 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" |
6412 | ;; | |
ed34e3c3 A |
6413 | esac |
6414 | ||
6415 | fi | |
6416 | ||
5b0a4722 A |
6417 | { echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5 |
6418 | echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; } | |
ed34e3c3 A |
6419 | if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then |
6420 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6421 | else | |
6422 | if test "$cross_compiling" = yes; then | |
6423 | ac_cv_func_lstat_empty_string_bug=yes | |
6424 | else | |
6425 | cat >conftest.$ac_ext <<_ACEOF | |
6426 | /* confdefs.h. */ | |
6427 | _ACEOF | |
6428 | cat confdefs.h >>conftest.$ac_ext | |
6429 | cat >>conftest.$ac_ext <<_ACEOF | |
6430 | /* end confdefs.h. */ | |
6431 | $ac_includes_default | |
6432 | int | |
6433 | main () | |
6434 | { | |
6435 | struct stat sbuf; | |
5b0a4722 | 6436 | return lstat ("", &sbuf) == 0; |
ed34e3c3 A |
6437 | ; |
6438 | return 0; | |
6439 | } | |
6440 | _ACEOF | |
6441 | rm -f conftest$ac_exeext | |
5b0a4722 A |
6442 | if { (ac_try="$ac_link" |
6443 | case "(($ac_try" in | |
6444 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6445 | *) ac_try_echo=$ac_try;; | |
6446 | esac | |
6447 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6448 | (eval "$ac_link") 2>&5 | |
ed34e3c3 A |
6449 | ac_status=$? |
6450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6451 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5b0a4722 A |
6452 | { (case "(($ac_try" in |
6453 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6454 | *) ac_try_echo=$ac_try;; | |
6455 | esac | |
6456 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6457 | (eval "$ac_try") 2>&5 | |
ed34e3c3 A |
6458 | ac_status=$? |
6459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6460 | (exit $ac_status); }; }; then | |
5b0a4722 | 6461 | ac_cv_func_lstat_empty_string_bug=no |
ed34e3c3 A |
6462 | else |
6463 | echo "$as_me: program exited with status $ac_status" >&5 | |
6464 | echo "$as_me: failed program was:" >&5 | |
6465 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6466 | ||
6467 | ( exit $ac_status ) | |
5b0a4722 | 6468 | ac_cv_func_lstat_empty_string_bug=yes |
ed34e3c3 | 6469 | fi |
5b0a4722 | 6470 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ed34e3c3 | 6471 | fi |
5b0a4722 A |
6472 | |
6473 | ||
ed34e3c3 | 6474 | fi |
5b0a4722 A |
6475 | { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5 |
6476 | echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; } | |
ed34e3c3 | 6477 | if test $ac_cv_func_lstat_empty_string_bug = yes; then |
5b0a4722 | 6478 | case " $LIBOBJS " in |
ed34e3c3 | 6479 | *" lstat.$ac_objext "* ) ;; |
5b0a4722 A |
6480 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" |
6481 | ;; | |
ed34e3c3 A |
6482 | esac |
6483 | ||
6484 | ||
6485 | cat >>confdefs.h <<_ACEOF | |
6486 | #define HAVE_LSTAT_EMPTY_STRING_BUG 1 | |
6487 | _ACEOF | |
6488 | ||
6489 | fi | |
6490 | ||
5b0a4722 A |
6491 | { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5 |
6492 | echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; } | |
ed34e3c3 A |
6493 | if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then |
6494 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6495 | else | |
6496 | rm -f conftest.sym conftest.file | |
6497 | echo >conftest.file | |
6498 | if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then | |
6499 | if test "$cross_compiling" = yes; then | |
6500 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
6501 | else | |
6502 | cat >conftest.$ac_ext <<_ACEOF | |
6503 | /* confdefs.h. */ | |
6504 | _ACEOF | |
6505 | cat confdefs.h >>conftest.$ac_ext | |
6506 | cat >>conftest.$ac_ext <<_ACEOF | |
6507 | /* end confdefs.h. */ | |
6508 | $ac_includes_default | |
6509 | int | |
6510 | main () | |
6511 | { | |
6512 | struct stat sbuf; | |
6513 | /* Linux will dereference the symlink and fail. | |
6514 | That is better in the sense that it means we will not | |
6515 | have to compile and use the lstat wrapper. */ | |
5b0a4722 | 6516 | return lstat ("conftest.sym/", &sbuf) == 0; |
ed34e3c3 A |
6517 | ; |
6518 | return 0; | |
6519 | } | |
6520 | _ACEOF | |
6521 | rm -f conftest$ac_exeext | |
5b0a4722 A |
6522 | if { (ac_try="$ac_link" |
6523 | case "(($ac_try" in | |
6524 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6525 | *) ac_try_echo=$ac_try;; | |
6526 | esac | |
6527 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6528 | (eval "$ac_link") 2>&5 | |
ed34e3c3 A |
6529 | ac_status=$? |
6530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6531 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5b0a4722 A |
6532 | { (case "(($ac_try" in |
6533 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6534 | *) ac_try_echo=$ac_try;; | |
6535 | esac | |
6536 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6537 | (eval "$ac_try") 2>&5 | |
ed34e3c3 A |
6538 | ac_status=$? |
6539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6540 | (exit $ac_status); }; }; then | |
6541 | ac_cv_func_lstat_dereferences_slashed_symlink=yes | |
6542 | else | |
6543 | echo "$as_me: program exited with status $ac_status" >&5 | |
6544 | echo "$as_me: failed program was:" >&5 | |
6545 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6546 | ||
6547 | ( exit $ac_status ) | |
6548 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
6549 | fi | |
5b0a4722 | 6550 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ed34e3c3 | 6551 | fi |
5b0a4722 A |
6552 | |
6553 | ||
ed34e3c3 A |
6554 | else |
6555 | # If the `ln -s' command failed, then we probably don't even | |
6556 | # have an lstat function. | |
6557 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
6558 | fi | |
6559 | rm -f conftest.sym conftest.file | |
6560 | ||
6561 | fi | |
5b0a4722 A |
6562 | { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 |
6563 | echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } | |
ed34e3c3 A |
6564 | |
6565 | test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && | |
6566 | ||
6567 | cat >>confdefs.h <<_ACEOF | |
6568 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 | |
6569 | _ACEOF | |
6570 | ||
6571 | ||
6572 | if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then | |
5b0a4722 | 6573 | case " $LIBOBJS " in |
ed34e3c3 | 6574 | *" lstat.$ac_objext "* ) ;; |
5b0a4722 A |
6575 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" |
6576 | ;; | |
ed34e3c3 A |
6577 | esac |
6578 | ||
6579 | fi | |
6580 | ||
6581 | ||
ed34e3c3 A |
6582 | |
6583 | ||
5b0a4722 A |
6584 | |
6585 | for ac_header in $ac_header_list | |
ed34e3c3 A |
6586 | do |
6587 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5b0a4722 A |
6588 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
6589 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6590 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
6591 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
ed34e3c3 A |
6592 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6593 | fi | |
5b0a4722 A |
6594 | ac_res=`eval echo '${'$as_ac_Header'}'` |
6595 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6596 | echo "${ECHO_T}$ac_res" >&6; } | |
ed34e3c3 A |
6597 | else |
6598 | # Is the header compilable? | |
5b0a4722 A |
6599 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
6600 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ed34e3c3 A |
6601 | cat >conftest.$ac_ext <<_ACEOF |
6602 | /* confdefs.h. */ | |
6603 | _ACEOF | |
6604 | cat confdefs.h >>conftest.$ac_ext | |
6605 | cat >>conftest.$ac_ext <<_ACEOF | |
6606 | /* end confdefs.h. */ | |
6607 | $ac_includes_default | |
6608 | #include <$ac_header> | |
6609 | _ACEOF | |
6610 | rm -f conftest.$ac_objext | |
5b0a4722 A |
6611 | if { (ac_try="$ac_compile" |
6612 | case "(($ac_try" in | |
6613 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6614 | *) ac_try_echo=$ac_try;; | |
6615 | esac | |
6616 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6617 | (eval "$ac_compile") 2>conftest.er1 | |
ed34e3c3 A |
6618 | ac_status=$? |
6619 | grep -v '^ *+' conftest.er1 >conftest.err | |
6620 | rm -f conftest.er1 | |
6621 | cat conftest.err >&5 | |
6622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5b0a4722 A |
6623 | (exit $ac_status); } && { |
6624 | test -z "$ac_c_werror_flag" || | |
6625 | test ! -s conftest.err | |
6626 | } && test -s conftest.$ac_objext; then | |
ed34e3c3 A |
6627 | ac_header_compiler=yes |
6628 | else | |
6629 | echo "$as_me: failed program was:" >&5 | |
6630 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6631 | ||
5b0a4722 | 6632 | ac_header_compiler=no |
ed34e3c3 | 6633 | fi |
5b0a4722 A |
6634 | |
6635 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6636 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6637 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ed34e3c3 A |
6638 | |
6639 | # Is the header present? | |
5b0a4722 A |
6640 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
6641 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ed34e3c3 A |
6642 | cat >conftest.$ac_ext <<_ACEOF |
6643 | /* confdefs.h. */ | |
6644 | _ACEOF | |
6645 | cat confdefs.h >>conftest.$ac_ext | |
6646 | cat >>conftest.$ac_ext <<_ACEOF | |
6647 | /* end confdefs.h. */ | |
6648 | #include <$ac_header> | |
6649 | _ACEOF | |
5b0a4722 A |
6650 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
6651 | case "(($ac_try" in | |
6652 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6653 | *) ac_try_echo=$ac_try;; | |
6654 | esac | |
6655 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6656 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
ed34e3c3 A |
6657 | ac_status=$? |
6658 | grep -v '^ *+' conftest.er1 >conftest.err | |
6659 | rm -f conftest.er1 | |
6660 | cat conftest.err >&5 | |
6661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5b0a4722 A |
6662 | (exit $ac_status); } >/dev/null && { |
6663 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
6664 | test ! -s conftest.err | |
6665 | }; then | |
ed34e3c3 A |
6666 | ac_header_preproc=yes |
6667 | else | |
6668 | echo "$as_me: failed program was:" >&5 | |
6669 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6670 | ||
6671 | ac_header_preproc=no | |
6672 | fi | |
5b0a4722 | 6673 | |
ed34e3c3 | 6674 | rm -f conftest.err conftest.$ac_ext |
5b0a4722 A |
6675 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
6676 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ed34e3c3 A |
6677 | |
6678 | # So? What about this header? | |
6679 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6680 | yes:no: ) | |
6681 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6682 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6683 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6684 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6685 | ac_header_preproc=yes | |
6686 | ;; | |
6687 | no:yes:* ) | |
6688 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6689 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6690 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6691 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6692 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6693 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6694 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6695 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6696 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6697 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6698 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6699 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
5b0a4722 | 6700 | ( cat <<\_ASBOX |
ed34e3c3 A |
6701 | ## -------------------------------------------------- ## |
6702 | ## Report this to launchd-bug-reports@group.apple.com ## | |
6703 | ## -------------------------------------------------- ## | |
6704 | _ASBOX | |
5b0a4722 | 6705 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
ed34e3c3 A |
6706 | ;; |
6707 | esac | |
5b0a4722 A |
6708 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6709 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
6710 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
ed34e3c3 A |
6711 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6712 | else | |
6713 | eval "$as_ac_Header=\$ac_header_preproc" | |
6714 | fi | |
5b0a4722 A |
6715 | ac_res=`eval echo '${'$as_ac_Header'}'` |
6716 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6717 | echo "${ECHO_T}$ac_res" >&6; } | |
ed34e3c3 A |
6718 | |
6719 | fi | |
6720 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6721 | cat >>confdefs.h <<_ACEOF | |
6722 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6723 | _ACEOF | |
6724 | ||
6725 | fi | |
6726 | ||
6727 | done | |
6728 | ||
6729 | ||
5b0a4722 A |
6730 | |
6731 | ||
6732 | ||
6733 | ||
6734 | ||
6735 | ||
6736 | ||
6737 | for ac_func in $ac_func_list | |
ed34e3c3 A |
6738 | do |
6739 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5b0a4722 A |
6740 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
6741 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
6742 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
ed34e3c3 A |
6743 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6744 | else | |
6745 | cat >conftest.$ac_ext <<_ACEOF | |
6746 | /* confdefs.h. */ | |
6747 | _ACEOF | |
6748 | cat confdefs.h >>conftest.$ac_ext | |
6749 | cat >>conftest.$ac_ext <<_ACEOF | |
6750 | /* end confdefs.h. */ | |
6751 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
6752 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6753 | #define $ac_func innocuous_$ac_func | |
6754 | ||
6755 | /* System header to define __stub macros and hopefully few prototypes, | |
6756 | which can conflict with char $ac_func (); below. | |
6757 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6758 | <limits.h> exists even on freestanding compilers. */ | |
6759 | ||
6760 | #ifdef __STDC__ | |
6761 | # include <limits.h> | |
6762 | #else | |
6763 | # include <assert.h> | |
6764 | #endif | |
6765 | ||
6766 | #undef $ac_func | |
6767 | ||
5b0a4722 A |
6768 | /* Override any GCC internal prototype to avoid an error. |
6769 | Use char because int might match the return type of a GCC | |
6770 | builtin and then its argument prototype would still apply. */ | |
ed34e3c3 A |
6771 | #ifdef __cplusplus |
6772 | extern "C" | |
ed34e3c3 | 6773 | #endif |
ed34e3c3 A |
6774 | char $ac_func (); |
6775 | /* The GNU C library defines this for functions which it implements | |
6776 | to always fail with ENOSYS. Some functions are actually named | |
6777 | something starting with __ and the normal name is an alias. */ | |
5b0a4722 | 6778 | #if defined __stub_$ac_func || defined __stub___$ac_func |
ed34e3c3 | 6779 | choke me |
ed34e3c3 A |
6780 | #endif |
6781 | ||
6782 | int | |
6783 | main () | |
6784 | { | |
5b0a4722 | 6785 | return $ac_func (); |
ed34e3c3 A |
6786 | ; |
6787 | return 0; | |
6788 | } | |
6789 | _ACEOF | |
6790 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5b0a4722 A |
6791 | if { (ac_try="$ac_link" |
6792 | case "(($ac_try" in | |
6793 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6794 | *) ac_try_echo=$ac_try;; | |
6795 | esac | |
6796 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6797 | (eval "$ac_link") 2>conftest.er1 | |
ed34e3c3 A |
6798 | ac_status=$? |
6799 | grep -v '^ *+' conftest.er1 >conftest.err | |
6800 | rm -f conftest.er1 | |
6801 | cat conftest.err >&5 | |
6802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5b0a4722 A |
6803 | (exit $ac_status); } && { |
6804 | test -z "$ac_c_werror_flag" || | |
6805 | test ! -s conftest.err | |
6806 | } && test -s conftest$ac_exeext && | |
6807 | $as_test_x conftest$ac_exeext; then | |
ed34e3c3 A |
6808 | eval "$as_ac_var=yes" |
6809 | else | |
6810 | echo "$as_me: failed program was:" >&5 | |
6811 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6812 | ||
5b0a4722 | 6813 | eval "$as_ac_var=no" |
ed34e3c3 | 6814 | fi |
5b0a4722 A |
6815 | |
6816 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
ed34e3c3 A |
6817 | conftest$ac_exeext conftest.$ac_ext |
6818 | fi | |
5b0a4722 A |
6819 | ac_res=`eval echo '${'$as_ac_var'}'` |
6820 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
6821 | echo "${ECHO_T}$ac_res" >&6; } | |
ed34e3c3 A |
6822 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
6823 | cat >>confdefs.h <<_ACEOF | |
6824 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
6825 | _ACEOF | |
6826 | ||
6827 | fi | |
6828 | done | |
6829 | ||
5b0a4722 A |
6830 | |
6831 | ||
6832 | ||
6833 | ||
6834 | ||
6835 | ||
6836 | ||
6837 | ||
6838 | ||
6839 | ||
6840 | ||
6841 | ||
6842 | ||
6843 | ||
6844 | ||
6845 | ||
6846 | { echo "$as_me:$LINENO: checking for working mktime" >&5 | |
6847 | echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; } | |
ed34e3c3 A |
6848 | if test "${ac_cv_func_working_mktime+set}" = set; then |
6849 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6850 | else | |
6851 | if test "$cross_compiling" = yes; then | |
6852 | ac_cv_func_working_mktime=no | |
6853 | else | |
6854 | cat >conftest.$ac_ext <<_ACEOF | |
6855 | /* confdefs.h. */ | |
6856 | _ACEOF | |
6857 | cat confdefs.h >>conftest.$ac_ext | |
6858 | cat >>conftest.$ac_ext <<_ACEOF | |
6859 | /* end confdefs.h. */ | |
6860 | /* Test program from Paul Eggert and Tony Leneis. */ | |
5b0a4722 | 6861 | #ifdef TIME_WITH_SYS_TIME |
ed34e3c3 A |
6862 | # include <sys/time.h> |
6863 | # include <time.h> | |
6864 | #else | |
5b0a4722 | 6865 | # ifdef HAVE_SYS_TIME_H |
ed34e3c3 A |
6866 | # include <sys/time.h> |
6867 | # else | |
6868 | # include <time.h> | |
6869 | # endif | |
6870 | #endif | |
6871 | ||
5b0a4722 | 6872 | #include <stdlib.h> |
ed34e3c3 | 6873 | |
5b0a4722 | 6874 | #ifdef HAVE_UNISTD_H |
ed34e3c3 A |
6875 | # include <unistd.h> |
6876 | #endif | |
6877 | ||
5b0a4722 | 6878 | #ifndef HAVE_ALARM |
ed34e3c3 A |
6879 | # define alarm(X) /* empty */ |
6880 | #endif | |
6881 | ||
6882 | /* Work around redefinition to rpl_putenv by other config tests. */ | |
6883 | #undef putenv | |
6884 | ||
6885 | static time_t time_t_max; | |
6886 | static time_t time_t_min; | |
6887 | ||
6888 | /* Values we'll use to set the TZ environment variable. */ | |
6889 | static char *tz_strings[] = { | |
6890 | (char *) 0, "TZ=GMT0", "TZ=JST-9", | |
6891 | "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00" | |
6892 | }; | |
6893 | #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0])) | |
6894 | ||
5b0a4722 | 6895 | /* Return 0 if mktime fails to convert a date in the spring-forward gap. |
ed34e3c3 | 6896 | Based on a problem report from Andreas Jaeger. */ |
5b0a4722 | 6897 | static int |
ed34e3c3 A |
6898 | spring_forward_gap () |
6899 | { | |
6900 | /* glibc (up to about 1998-10-07) failed this test. */ | |
6901 | struct tm tm; | |
6902 | ||
6903 | /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" | |
6904 | instead of "TZ=America/Vancouver" in order to detect the bug even | |
6905 | on systems that don't support the Olson extension, or don't have the | |
6906 | full zoneinfo tables installed. */ | |
6907 | putenv ("TZ=PST8PDT,M4.1.0,M10.5.0"); | |
6908 | ||
6909 | tm.tm_year = 98; | |
6910 | tm.tm_mon = 3; | |
6911 | tm.tm_mday = 5; | |
6912 | tm.tm_hour = 2; | |
6913 | tm.tm_min = 0; | |
6914 | tm.tm_sec = 0; | |
6915 | tm.tm_isdst = -1; | |
5b0a4722 | 6916 | return mktime (&tm) != (time_t) -1; |
ed34e3c3 A |
6917 | } |
6918 | ||
5b0a4722 | 6919 | static int |
ed34e3c3 A |
6920 | mktime_test1 (now) |
6921 | time_t now; | |
6922 | { | |
6923 | struct tm *lt; | |
5b0a4722 | 6924 | return ! (lt = localtime (&now)) || mktime (lt) == now; |
ed34e3c3 A |
6925 | } |
6926 | ||
5b0a4722 | 6927 | static int |
ed34e3c3 A |
6928 | mktime_test (now) |
6929 | time_t now; | |
6930 | { | |
5b0a4722 A |
6931 | return (mktime_test1 (now) |
6932 | && mktime_test1 ((time_t) (time_t_max - now)) | |
6933 | && mktime_test1 ((time_t) (time_t_min + now))); | |
ed34e3c3 A |
6934 | } |
6935 | ||
5b0a4722 | 6936 | static int |
ed34e3c3 A |
6937 | irix_6_4_bug () |
6938 | { | |
6939 | /* Based on code from Ariel Faigon. */ | |
6940 | struct tm tm; | |
6941 | tm.tm_year = 96; | |
6942 | tm.tm_mon = 3; | |
6943 | tm.tm_mday = 0; | |
6944 | tm.tm_hour = 0; | |
6945 | tm.tm_min = 0; | |
6946 | tm.tm_sec = 0; | |
6947 | tm.tm_isdst = -1; | |
6948 | mktime (&tm); | |
5b0a4722 | 6949 | return tm.tm_mon == 2 && tm.tm_mday == 31; |
ed34e3c3 A |
6950 | } |
6951 | ||
5b0a4722 | 6952 | static int |
ed34e3c3 A |
6953 | bigtime_test (j) |
6954 | int j; | |
6955 | { | |
6956 | struct tm tm; | |
6957 | time_t now; | |
6958 | tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j; | |
6959 | now = mktime (&tm); | |
6960 | if (now != (time_t) -1) | |
6961 | { | |
6962 | struct tm *lt = localtime (&now); | |
6963 | if (! (lt | |
6964 | && lt->tm_year == tm.tm_year | |
6965 | && lt->tm_mon == tm.tm_mon | |
6966 | && lt->tm_mday == tm.tm_mday | |
6967 | && lt->tm_hour == tm.tm_hour | |
6968 | && lt->tm_min == tm.tm_min | |
6969 | && lt->tm_sec == tm.tm_sec | |
6970 | && lt->tm_yday == tm.tm_yday | |
6971 | && lt->tm_wday == tm.tm_wday | |
6972 | && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst) | |
6973 | == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst)))) | |
5b0a4722 | 6974 | return 0; |
ed34e3c3 | 6975 | } |
5b0a4722 A |
6976 | return 1; |
6977 | } | |
6978 | ||
6979 | static int | |
6980 | year_2050_test () | |
6981 | { | |
6982 | /* The correct answer for 2050-02-01 00:00:00 in Pacific time, | |
6983 | ignoring leap seconds. */ | |
6984 | unsigned long int answer = 2527315200UL; | |
6985 | ||
6986 | struct tm tm; | |
6987 | time_t t; | |
6988 | tm.tm_year = 2050 - 1900; | |
6989 | tm.tm_mon = 2 - 1; | |
6990 | tm.tm_mday = 1; | |
6991 | tm.tm_hour = tm.tm_min = tm.tm_sec = 0; | |
6992 | tm.tm_isdst = -1; | |
6993 | ||
6994 | /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" | |
6995 | instead of "TZ=America/Vancouver" in order to detect the bug even | |
6996 | on systems that don't support the Olson extension, or don't have the | |
6997 | full zoneinfo tables installed. */ | |
6998 | putenv ("TZ=PST8PDT,M4.1.0,M10.5.0"); | |
6999 | ||
7000 | t = mktime (&tm); | |
7001 | ||
7002 | /* Check that the result is either a failure, or close enough | |
7003 | to the correct answer that we can assume the discrepancy is | |
7004 | due to leap seconds. */ | |
7005 | return (t == (time_t) -1 | |
7006 | || (0 < t && answer - 120 <= t && t <= answer + 120)); | |
ed34e3c3 A |
7007 | } |
7008 | ||
7009 | int | |
7010 | main () | |
7011 | { | |
7012 | time_t t, delta; | |
7013 | int i, j; | |
7014 | ||
7015 | /* This test makes some buggy mktime implementations loop. | |
7016 | Give up after 60 seconds; a mktime slower than that | |
7017 | isn't worth using anyway. */ | |
7018 | alarm (60); | |
7019 | ||
7020 | for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2) | |
7021 | continue; | |
7022 | time_t_max--; | |
7023 | if ((time_t) -1 < 0) | |
7024 | for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2) | |
7025 | continue; | |
7026 | delta = time_t_max / 997; /* a suitable prime number */ | |
7027 | for (i = 0; i < N_STRINGS; i++) | |
7028 | { | |
7029 | if (tz_strings[i]) | |
7030 | putenv (tz_strings[i]); | |
7031 | ||
7032 | for (t = 0; t <= time_t_max - delta; t += delta) | |
5b0a4722 A |
7033 | if (! mktime_test (t)) |
7034 | return 1; | |
7035 | if (! (mktime_test ((time_t) 1) | |
7036 | && mktime_test ((time_t) (60 * 60)) | |
7037 | && mktime_test ((time_t) (60 * 60 * 24)))) | |
7038 | return 1; | |
ed34e3c3 A |
7039 | |
7040 | for (j = 1; 0 < j; j *= 2) | |
5b0a4722 A |
7041 | if (! bigtime_test (j)) |
7042 | return 1; | |
7043 | if (! bigtime_test (j - 1)) | |
7044 | return 1; | |
ed34e3c3 | 7045 | } |
5b0a4722 | 7046 | return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ()); |
ed34e3c3 A |
7047 | } |
7048 | _ACEOF | |
7049 | rm -f conftest$ac_exeext | |
5b0a4722 A |
7050 | if { (ac_try="$ac_link" |
7051 | case "(($ac_try" in | |
7052 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7053 | *) ac_try_echo=$ac_try;; | |
7054 | esac | |
7055 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7056 | (eval "$ac_link") 2>&5 | |
ed34e3c3 A |
7057 | ac_status=$? |
7058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7059 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5b0a4722 A |
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_try") 2>&5 | |
ed34e3c3 A |
7066 | ac_status=$? |
7067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7068 | (exit $ac_status); }; }; then | |
7069 | ac_cv_func_working_mktime=yes | |
7070 | else | |
7071 | echo "$as_me: program exited with status $ac_status" >&5 | |
7072 | echo "$as_me: failed program was:" >&5 | |
7073 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7074 | ||
7075 | ( exit $ac_status ) | |
7076 | ac_cv_func_working_mktime=no | |
7077 | fi | |
5b0a4722 | 7078 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
ed34e3c3 | 7079 | fi |
5b0a4722 A |
7080 | |
7081 | ||
ed34e3c3 | 7082 | fi |
5b0a4722 A |
7083 | { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5 |
7084 | echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; } | |
ed34e3c3 | 7085 | if test $ac_cv_func_working_mktime = no; then |
5b0a4722 | 7086 | case " $LIBOBJS " in |
ed34e3c3 | 7087 | *" mktime.$ac_objext "* ) ;; |
5b0a4722 A |
7088 | *) LIBOBJS="$LIBOBJS mktime.$ac_objext" |
7089 | ;; | |
ed34e3c3 A |
7090 | esac |
7091 | ||
7092 | fi | |
7093 | ||
7094 | ||
7095 | ||
f36da725 | 7096 | for ac_header in sys/select.h sys/socket.h |
ed34e3c3 A |
7097 | do |
7098 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5b0a4722 A |
7099 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
7100 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7101 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7102 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
ed34e3c3 A |
7103 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7104 | fi | |
5b0a4722 A |
7105 | ac_res=`eval echo '${'$as_ac_Header'}'` |
7106 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7107 | echo "${ECHO_T}$ac_res" >&6; } | |
ed34e3c3 A |
7108 | else |
7109 | # Is the header compilable? | |
5b0a4722 A |
7110 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7111 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
ed34e3c3 A |
7112 | cat >conftest.$ac_ext <<_ACEOF |
7113 | /* confdefs.h. */ | |
7114 | _ACEOF | |
7115 | cat confdefs.h >>conftest.$ac_ext | |
7116 | cat >>conftest.$ac_ext <<_ACEOF | |
7117 | /* end confdefs.h. */ | |
7118 | $ac_includes_default | |
7119 | #include <$ac_header> | |
7120 | _ACEOF | |
7121 | rm -f conftest.$ac_objext | |
5b0a4722 A |
7122 | if { (ac_try="$ac_compile" |
7123 | case "(($ac_try" in | |
7124 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7125 | *) ac_try_echo=$ac_try;; | |
7126 | esac | |
7127 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7128 | (eval "$ac_compile") 2>conftest.er1 | |
ed34e3c3 A |
7129 | ac_status=$? |
7130 | grep -v '^ *+' conftest.er1 >conftest.err | |
7131 | rm -f conftest.er1 | |
7132 | cat conftest.err >&5 | |
7133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5b0a4722 A |
7134 | (exit $ac_status); } && { |
7135 | test -z "$ac_c_werror_flag" || | |
7136 | test ! -s conftest.err | |
7137 | } && test -s conftest.$ac_objext; then | |
ed34e3c3 A |
7138 | ac_header_compiler=yes |
7139 | else | |
7140 | echo "$as_me: failed program was:" >&5 | |
7141 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7142 | ||
5b0a4722 | 7143 | ac_header_compiler=no |
ed34e3c3 | 7144 | fi |
5b0a4722 A |
7145 | |
7146 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7147 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
7148 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
ed34e3c3 A |
7149 | |
7150 | # Is the header present? | |
5b0a4722 A |
7151 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7152 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
ed34e3c3 A |
7153 | cat >conftest.$ac_ext <<_ACEOF |
7154 | /* confdefs.h. */ | |
7155 | _ACEOF | |
7156 | cat confdefs.h >>conftest.$ac_ext | |
7157 | cat >>conftest.$ac_ext <<_ACEOF | |
7158 | /* end confdefs.h. */ | |
7159 | #include <$ac_header> | |
7160 | _ACEOF | |
5b0a4722 A |
7161 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7162 | case "(($ac_try" in | |
7163 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7164 | *) ac_try_echo=$ac_try;; | |
7165 | esac | |
7166 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7167 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
ed34e3c3 A |
7168 | ac_status=$? |
7169 | grep -v '^ *+' conftest.er1 >conftest.err | |
7170 | rm -f conftest.er1 | |
7171 | cat conftest.err >&5 | |
7172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5b0a4722 A |
7173 | (exit $ac_status); } >/dev/null && { |
7174 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7175 | test ! -s conftest.err | |
7176 | }; then | |
ed34e3c3 A |
7177 | ac_header_preproc=yes |
7178 | else | |
7179 | echo "$as_me: failed program was:" >&5 | |
7180 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7181 | ||
7182 | ac_header_preproc=no | |
7183 | fi | |
5b0a4722 | 7184 | |
ed34e3c3 | 7185 | rm -f conftest.err conftest.$ac_ext |
5b0a4722 A |
7186 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7187 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
ed34e3c3 A |
7188 | |
7189 | # So? What about this header? | |
7190 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
7191 | yes:no: ) | |
7192 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
7193 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7194 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7195 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
7196 | ac_header_preproc=yes | |
7197 | ;; | |
7198 | no:yes:* ) | |
7199 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
7200 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7201 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7202 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7203 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7204 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7205 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7206 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7207 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7208 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7209 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7210 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
5b0a4722 | 7211 | ( cat <<\_ASBOX |
ed34e3c3 A |
7212 | ## -------------------------------------------------- ## |
7213 | ## Report this to launchd-bug-reports@group.apple.com ## | |
7214 | ## -------------------------------------------------- ## | |
7215 | _ASBOX | |
5b0a4722 | 7216 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
ed34e3c3 A |
7217 | ;; |
7218 | esac | |
5b0a4722 A |
7219 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7220 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7221 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
ed34e3c3 A |
7222 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7223 | else | |
7224 | eval "$as_ac_Header=\$ac_header_preproc" | |
7225 | fi | |
5b0a4722 A |
7226 | ac_res=`eval echo '${'$as_ac_Header'}'` |
7227 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7228 | echo "${ECHO_T}$ac_res" >&6; } | |
ed34e3c3 A |
7229 | |
7230 | fi | |
7231 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
7232 | cat >>confdefs.h <<_ACEOF | |
7233 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7234 | _ACEOF | |
7235 | ||
7236 | fi | |
7237 | ||
7238 | done | |
7239 | ||
f36da725 A |
7240 | { echo "$as_me:$LINENO: checking types of arguments for select" >&5 |
7241 | echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; } | |
7242 | if test "${ac_cv_func_select_args+set}" = set; then | |
ed34e3c3 A |
7243 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7244 | else | |
f36da725 A |
7245 | for ac_arg234 in 'fd_set *' 'int *' 'void *'; do |
7246 | for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do | |
7247 | for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do | |
7248 | cat >conftest.$ac_ext <<_ACEOF | |
ed34e3c3 A |
7249 | /* confdefs.h. */ |
7250 | _ACEOF | |
7251 | cat confdefs.h >>conftest.$ac_ext | |
7252 | cat >>conftest.$ac_ext <<_ACEOF | |
7253 | /* end confdefs.h. */ | |
f36da725 A |
7254 | $ac_includes_default |
7255 | #ifdef HAVE_SYS_SELECT_H | |
7256 | # include <sys/select.h> | |
ed34e3c3 | 7257 | #endif |
f36da725 A |
7258 | #ifdef HAVE_SYS_SOCKET_H |
7259 | # include <sys/socket.h> | |
e91b9f68 A |
7260 | #endif |
7261 | ||
7262 | int | |
7263 | main () | |
7264 | { | |
ed34e3c3 A |
7265 | extern int select ($ac_arg1, |
7266 | $ac_arg234, $ac_arg234, $ac_arg234, | |
7267 | $ac_arg5); | |
e91b9f68 A |
7268 | ; |
7269 | return 0; | |
7270 | } | |
7271 | _ACEOF | |
7272 | rm -f conftest.$ac_objext | |
5b0a4722 A |
7273 | if { (ac_try="$ac_compile" |
7274 | case "(($ac_try" in | |
7275 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7276 | *) ac_try_echo=$ac_try;; | |
7277 | esac | |
7278 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7279 | (eval "$ac_compile") 2>conftest.er1 | |
e91b9f68 A |
7280 | ac_status=$? |
7281 | grep -v '^ *+' conftest.er1 >conftest.err | |
7282 | rm -f conftest.er1 | |
7283 | cat conftest.err >&5 | |
7284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5b0a4722 A |
7285 | (exit $ac_status); } && { |
7286 | test -z "$ac_c_werror_flag" || | |
7287 | test ! -s conftest.err | |
7288 | } && test -s conftest.$ac_objext; then | |
ed34e3c3 | 7289 | ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 |
e91b9f68 A |
7290 | else |
7291 | echo "$as_me: failed program was:" >&5 | |
7292 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7293 | ||
5b0a4722 | 7294 | |
e91b9f68 | 7295 | fi |
5b0a4722 A |
7296 | |
7297 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ed34e3c3 A |
7298 | done |
7299 | done | |
7300 | done | |
7301 | # Provide a safe default value. | |
7302 | : ${ac_cv_func_select_args='int,int *,struct timeval *'} | |
7303 | ||
e91b9f68 | 7304 | fi |
5b0a4722 A |
7305 | { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5 |
7306 | echo "${ECHO_T}$ac_cv_func_select_args" >&6; } | |
ed34e3c3 A |
7307 | ac_save_IFS=$IFS; IFS=',' |
7308 | set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` | |
7309 | IFS=$ac_save_IFS | |
7310 | shift | |
e91b9f68 A |
7311 | |
7312 | cat >>confdefs.h <<_ACEOF | |
ed34e3c3 | 7313 | #define SELECT_TYPE_ARG1 $1 |
e91b9f68 A |
7314 | _ACEOF |
7315 | ||
7316 | ||
ed34e3c3 A |
7317 | cat >>confdefs.h <<_ACEOF |
7318 | #define SELECT_TYPE_ARG234 ($2) | |
7319 | _ACEOF | |
7320 | ||
7321 | ||
7322 | cat >>confdefs.h <<_ACEOF | |
7323 | #define SELECT_TYPE_ARG5 ($3) | |
7324 | _ACEOF | |
7325 | ||
7326 | rm -f conftest* | |
7327 | ||
5b0a4722 A |
7328 | { echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
7329 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; } | |
ed34e3c3 | 7330 | if test "${ac_cv_type_signal+set}" = set; then |
e91b9f68 | 7331 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
e91b9f68 A |
7332 | else |
7333 | cat >conftest.$ac_ext <<_ACEOF | |
7334 | /* confdefs.h. */ | |
7335 | _ACEOF | |
7336 | cat confdefs.h >>conftest.$ac_ext | |
7337 | cat >>conftest.$ac_ext <<_ACEOF | |
7338 | /* end confdefs.h. */ | |
ed34e3c3 A |
7339 | #include <sys/types.h> |
7340 | #include <signal.h> | |
ed34e3c3 | 7341 | |
e91b9f68 A |
7342 | int |
7343 | main () | |
7344 | { | |
5b0a4722 | 7345 | return *(signal (0, 0)) (0) == 1; |
e91b9f68 A |
7346 | ; |
7347 | return 0; | |
7348 | } | |
7349 | _ACEOF | |
ed34e3c3 | 7350 | rm -f conftest.$ac_objext |
5b0a4722 A |
7351 | if { (ac_try="$ac_compile" |
7352 | case "(($ac_try" in | |
7353 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7354 | *) ac_try_echo=$ac_try;; | |
7355 | esac | |
7356 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7357 | (eval "$ac_compile") 2>conftest.er1 | |
e91b9f68 | 7358 | ac_status=$? |
ed34e3c3 A |
7359 | grep -v '^ *+' conftest.er1 >conftest.err |
7360 | rm -f conftest.er1 | |
7361 | cat conftest.err >&5 | |
e91b9f68 | 7362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5b0a4722 A |
7363 | (exit $ac_status); } && { |
7364 | test -z "$ac_c_werror_flag" || | |
7365 | test ! -s conftest.err | |
7366 | } && test -s conftest.$ac_objext; then | |
7367 | ac_cv_type_signal=int | |
e91b9f68 | 7368 | else |
ed34e3c3 | 7369 | echo "$as_me: failed program was:" >&5 |
e91b9f68 A |
7370 | sed 's/^/| /' conftest.$ac_ext >&5 |
7371 | ||
5b0a4722 | 7372 | ac_cv_type_signal=void |
e91b9f68 | 7373 | fi |
5b0a4722 A |
7374 | |
7375 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
e91b9f68 | 7376 | fi |
5b0a4722 A |
7377 | { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
7378 | echo "${ECHO_T}$ac_cv_type_signal" >&6; } | |
e91b9f68 A |
7379 | |
7380 | cat >>confdefs.h <<_ACEOF | |
ed34e3c3 | 7381 | #define RETSIGTYPE $ac_cv_type_signal |
e91b9f68 A |
7382 | _ACEOF |
7383 | ||
7384 | ||
5b0a4722 A |
7385 | { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5 |
7386 | echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; } | |
e91b9f68 A |
7387 | if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then |
7388 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7389 | else | |
7390 | if test "$cross_compiling" = yes; then | |
7391 | ac_cv_func_stat_empty_string_bug=yes | |
7392 | else | |
7393 | cat >conftest.$ac_ext <<_ACEOF | |
7394 | /* confdefs.h. */ | |
7395 | _ACEOF | |
7396 | cat confdefs.h >>conftest.$ac_ext | |
7397 | cat >>conftest.$ac_ext <<_ACEOF | |
7398 | /* end confdefs.h. */ | |
7399 | $ac_includes_default | |
7400 | int | |
7401 | main () | |
7402 | { | |
7403 | struct stat sbuf; | |
5b0a4722 | 7404 | return stat ("", &sbuf) == 0; |
e91b9f68 A |
7405 | ; |
7406 | return 0; | |
7407 | } | |
7408 | _ACEOF | |
7409 | rm -f conftest$ac_exeext | |
5b0a4722 A |
7410 | if { (ac_try="$ac_link" |
7411 | case "(($ac_try" in | |
7412 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7413 | *) ac_try_echo=$ac_try;; | |
7414 | esac | |
7415 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7416 | (eval "$ac_link") 2>&5 | |
e91b9f68 A |
7417 | ac_status=$? |
7418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7419 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5b0a4722 A |
7420 | { (case "(($ac_try" in |
7421 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7422 | *) ac_try_echo=$ac_try;; | |
7423 | esac | |
7424 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7425 | (eval "$ac_try") 2>&5 | |
e91b9f68 A |
7426 | ac_status=$? |
7427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7428 | (exit $ac_status); }; }; then | |
5b0a4722 | 7429 | ac_cv_func_stat_empty_string_bug=no |
e91b9f68 A |
7430 | else |
7431 | echo "$as_me: program exited with status $ac_status" >&5 | |
7432 | echo "$as_me: failed program was:" >&5 | |
7433 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7434 | ||
7435 | ( exit $ac_status ) | |
5b0a4722 | 7436 | ac_cv_func_stat_empty_string_bug=yes |
e91b9f68 | 7437 | fi |
5b0a4722 | 7438 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
e91b9f68 | 7439 | fi |
5b0a4722 A |
7440 | |
7441 | ||
e91b9f68 | 7442 | fi |
5b0a4722 A |
7443 | { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5 |
7444 | echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; } | |
e91b9f68 | 7445 | if test $ac_cv_func_stat_empty_string_bug = yes; then |
5b0a4722 | 7446 | case " $LIBOBJS " in |
e91b9f68 | 7447 | *" stat.$ac_objext "* ) ;; |
5b0a4722 A |
7448 | *) LIBOBJS="$LIBOBJS stat.$ac_objext" |
7449 | ;; | |
e91b9f68 A |
7450 | esac |
7451 | ||
7452 | ||
7453 | cat >>confdefs.h <<_ACEOF | |
7454 | #define HAVE_STAT_EMPTY_STRING_BUG 1 | |
7455 | _ACEOF | |
7456 | ||
7457 | fi | |
7458 | ||
7459 | ||
7460 | ||
7461 | ||
ed34e3c3 A |
7462 | |
7463 | ||
7464 | ||
7465 | ||
7466 | ||
7467 | ||
7468 | ||
7469 | ||
7470 | ||
7471 | ||
7472 | ||
7473 | ||
7474 | ||
7475 | ||
7476 | ||
7477 | ||
f36da725 A |
7478 | |
7479 | ||
7480 | ||
7481 | for ac_func in atexit dup2 gethostname gettimeofday malloc mmap memmove memset mkdir munmap realloc rmdir select setenv socket strcasecmp strchr strdup strerror strrchr strstr strtol | |
e91b9f68 A |
7482 | do |
7483 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5b0a4722 A |
7484 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
7485 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
7486 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
e91b9f68 A |
7487 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7488 | else | |
7489 | cat >conftest.$ac_ext <<_ACEOF | |
7490 | /* confdefs.h. */ | |
7491 | _ACEOF | |
7492 | cat confdefs.h >>conftest.$ac_ext | |
7493 | cat >>conftest.$ac_ext <<_ACEOF | |
7494 | /* end confdefs.h. */ | |
7495 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
7496 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7497 | #define $ac_func innocuous_$ac_func | |
7498 | ||
7499 | /* System header to define __stub macros and hopefully few prototypes, | |
7500 | which can conflict with char $ac_func (); below. | |
7501 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7502 | <limits.h> exists even on freestanding compilers. */ | |
7503 | ||
7504 | #ifdef __STDC__ | |
7505 | # include <limits.h> | |
7506 | #else | |
7507 | # include <assert.h> | |
7508 | #endif | |
7509 | ||
7510 | #undef $ac_func | |
7511 | ||
5b0a4722 A |
7512 | /* Override any GCC internal prototype to avoid an error. |
7513 | Use char because int might match the return type of a GCC | |
7514 | builtin and then its argument prototype would still apply. */ | |
e91b9f68 A |
7515 | #ifdef __cplusplus |
7516 | extern "C" | |
e91b9f68 | 7517 | #endif |
e91b9f68 A |
7518 | char $ac_func (); |
7519 | /* The GNU C library defines this for functions which it implements | |
7520 | to always fail with ENOSYS. Some functions are actually named | |
7521 | something starting with __ and the normal name is an alias. */ | |
5b0a4722 | 7522 | #if defined __stub_$ac_func || defined __stub___$ac_func |
e91b9f68 | 7523 | choke me |
e91b9f68 A |
7524 | #endif |
7525 | ||
7526 | int | |
7527 | main () | |
7528 | { | |
5b0a4722 | 7529 | return $ac_func (); |
e91b9f68 A |
7530 | ; |
7531 | return 0; | |
7532 | } | |
7533 | _ACEOF | |
7534 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5b0a4722 A |
7535 | if { (ac_try="$ac_link" |
7536 | case "(($ac_try" in | |
7537 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7538 | *) ac_try_echo=$ac_try;; | |
7539 | esac | |
7540 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7541 | (eval "$ac_link") 2>conftest.er1 | |
e91b9f68 A |
7542 | ac_status=$? |
7543 | grep -v '^ *+' conftest.er1 >conftest.err | |
7544 | rm -f conftest.er1 | |
7545 | cat conftest.err >&5 | |
7546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5b0a4722 A |
7547 | (exit $ac_status); } && { |
7548 | test -z "$ac_c_werror_flag" || | |
7549 | test ! -s conftest.err | |
7550 | } && test -s conftest$ac_exeext && | |
7551 | $as_test_x conftest$ac_exeext; then | |
e91b9f68 A |
7552 | eval "$as_ac_var=yes" |
7553 | else | |
7554 | echo "$as_me: failed program was:" >&5 | |
7555 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7556 | ||
5b0a4722 | 7557 | eval "$as_ac_var=no" |
e91b9f68 | 7558 | fi |
5b0a4722 A |
7559 | |
7560 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
e91b9f68 A |
7561 | conftest$ac_exeext conftest.$ac_ext |
7562 | fi | |
5b0a4722 A |
7563 | ac_res=`eval echo '${'$as_ac_var'}'` |
7564 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7565 | echo "${ECHO_T}$ac_res" >&6; } | |
e91b9f68 A |
7566 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
7567 | cat >>confdefs.h <<_ACEOF | |
7568 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
7569 | _ACEOF | |
7570 | ||
7571 | fi | |
7572 | done | |
7573 | ||
7574 | ||
f36da725 A |
7575 | # check for a Security framework that includes session support |
7576 | ac_func_search_save_LIBS=$LIBS | |
7577 | LIBS="-framework Security $ac_func_search_save_LIBS" | |
7578 | { echo "$as_me:$LINENO: checking for SessionCreate" >&5 | |
7579 | echo $ECHO_N "checking for SessionCreate... $ECHO_C" >&6; } | |
7580 | if test "${ac_cv_func_SessionCreate+set}" = set; then | |
7581 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7582 | else | |
7583 | cat >conftest.$ac_ext <<_ACEOF | |
7584 | /* confdefs.h. */ | |
7585 | _ACEOF | |
7586 | cat confdefs.h >>conftest.$ac_ext | |
7587 | cat >>conftest.$ac_ext <<_ACEOF | |
7588 | /* end confdefs.h. */ | |
7589 | /* Define SessionCreate to an innocuous variant, in case <limits.h> declares SessionCreate. | |
7590 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7591 | #define SessionCreate innocuous_SessionCreate | |
7592 | ||
7593 | /* System header to define __stub macros and hopefully few prototypes, | |
7594 | which can conflict with char SessionCreate (); below. | |
7595 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7596 | <limits.h> exists even on freestanding compilers. */ | |
7597 | ||
7598 | #ifdef __STDC__ | |
7599 | # include <limits.h> | |
7600 | #else | |
7601 | # include <assert.h> | |
7602 | #endif | |
7603 | ||
7604 | #undef SessionCreate | |
7605 | ||
7606 | /* Override any GCC internal prototype to avoid an error. | |
7607 | Use char because int might match the return type of a GCC | |
7608 | builtin and then its argument prototype would still apply. */ | |
7609 | #ifdef __cplusplus | |
7610 | extern "C" | |
7611 | #endif | |
7612 | char SessionCreate (); | |
7613 | /* The GNU C library defines this for functions which it implements | |
7614 | to always fail with ENOSYS. Some functions are actually named | |
7615 | something starting with __ and the normal name is an alias. */ | |
7616 | #if defined __stub_SessionCreate || defined __stub___SessionCreate | |
7617 | choke me | |
7618 | #endif | |
7619 | ||
7620 | int | |
7621 | main () | |
7622 | { | |
7623 | return SessionCreate (); | |
7624 | ; | |
7625 | return 0; | |
7626 | } | |
7627 | _ACEOF | |
7628 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7629 | if { (ac_try="$ac_link" | |
7630 | case "(($ac_try" in | |
7631 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7632 | *) ac_try_echo=$ac_try;; | |
7633 | esac | |
7634 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7635 | (eval "$ac_link") 2>conftest.er1 | |
7636 | ac_status=$? | |
7637 | grep -v '^ *+' conftest.er1 >conftest.err | |
7638 | rm -f conftest.er1 | |
7639 | cat conftest.err >&5 | |
7640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7641 | (exit $ac_status); } && { | |
7642 | test -z "$ac_c_werror_flag" || | |
7643 | test ! -s conftest.err | |
7644 | } && test -s conftest$ac_exeext && | |
7645 | $as_test_x conftest$ac_exeext; then | |
7646 | ac_cv_func_SessionCreate=yes | |
7647 | else | |
7648 | echo "$as_me: failed program was:" >&5 | |
7649 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7650 | ||
7651 | ac_cv_func_SessionCreate=no | |
7652 | fi | |
7653 | ||
7654 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
7655 | conftest$ac_exeext conftest.$ac_ext | |
7656 | fi | |
7657 | { echo "$as_me:$LINENO: result: $ac_cv_func_SessionCreate" >&5 | |
7658 | echo "${ECHO_T}$ac_cv_func_SessionCreate" >&6; } | |
7659 | if test $ac_cv_func_SessionCreate = yes; then | |
7660 | ||
7661 | cat >>confdefs.h <<\_ACEOF | |
7662 | #define HAVE_SECURITY 1 | |
7663 | _ACEOF | |
7664 | ||
7665 | LIBS_SECURITY="-framework Security" | |
7666 | ||
7667 | WEAKLIBS_SECURITY="-weak_framework Security" | |
7668 | ||
7669 | fi | |
7670 | ||
7671 | LIBS=$ac_func_search_save_LIBS | |
7672 | ||
7673 | # check for seatbelt | |
7674 | { echo "$as_me:$LINENO: checking for sandbox_init" >&5 | |
7675 | echo $ECHO_N "checking for sandbox_init... $ECHO_C" >&6; } | |
7676 | if test "${ac_cv_func_sandbox_init+set}" = set; then | |
7677 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7678 | else | |
7679 | cat >conftest.$ac_ext <<_ACEOF | |
7680 | /* confdefs.h. */ | |
7681 | _ACEOF | |
7682 | cat confdefs.h >>conftest.$ac_ext | |
7683 | cat >>conftest.$ac_ext <<_ACEOF | |
7684 | /* end confdefs.h. */ | |
7685 | /* Define sandbox_init to an innocuous variant, in case <limits.h> declares sandbox_init. | |
7686 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7687 | #define sandbox_init innocuous_sandbox_init | |
7688 | ||
7689 | /* System header to define __stub macros and hopefully few prototypes, | |
7690 | which can conflict with char sandbox_init (); below. | |
7691 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7692 | <limits.h> exists even on freestanding compilers. */ | |
7693 | ||
7694 | #ifdef __STDC__ | |
7695 | # include <limits.h> | |
7696 | #else | |
7697 | # include <assert.h> | |
7698 | #endif | |
7699 | ||
7700 | #undef sandbox_init | |
7701 | ||
7702 | /* Override any GCC internal prototype to avoid an error. | |
7703 | Use char because int might match the return type of a GCC | |
7704 | builtin and then its argument prototype would still apply. */ | |
7705 | #ifdef __cplusplus | |
7706 | extern "C" | |
7707 | #endif | |
7708 | char sandbox_init (); | |
7709 | /* The GNU C library defines this for functions which it implements | |
7710 | to always fail with ENOSYS. Some functions are actually named | |
7711 | something starting with __ and the normal name is an alias. */ | |
7712 | #if defined __stub_sandbox_init || defined __stub___sandbox_init | |
7713 | choke me | |
7714 | #endif | |
7715 | ||
7716 | int | |
7717 | main () | |
7718 | { | |
7719 | return sandbox_init (); | |
7720 | ; | |
7721 | return 0; | |
7722 | } | |
7723 | _ACEOF | |
7724 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7725 | if { (ac_try="$ac_link" | |
7726 | case "(($ac_try" in | |
7727 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7728 | *) ac_try_echo=$ac_try;; | |
7729 | esac | |
7730 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7731 | (eval "$ac_link") 2>conftest.er1 | |
7732 | ac_status=$? | |
7733 | grep -v '^ *+' conftest.er1 >conftest.err | |
7734 | rm -f conftest.er1 | |
7735 | cat conftest.err >&5 | |
7736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7737 | (exit $ac_status); } && { | |
7738 | test -z "$ac_c_werror_flag" || | |
7739 | test ! -s conftest.err | |
7740 | } && test -s conftest$ac_exeext && | |
7741 | $as_test_x conftest$ac_exeext; then | |
7742 | ac_cv_func_sandbox_init=yes | |
7743 | else | |
7744 | echo "$as_me: failed program was:" >&5 | |
7745 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7746 | ||
7747 | ac_cv_func_sandbox_init=no | |
7748 | fi | |
7749 | ||
7750 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
7751 | conftest$ac_exeext conftest.$ac_ext | |
7752 | fi | |
7753 | { echo "$as_me:$LINENO: result: $ac_cv_func_sandbox_init" >&5 | |
7754 | echo "${ECHO_T}$ac_cv_func_sandbox_init" >&6; } | |
7755 | if test $ac_cv_func_sandbox_init = yes; then | |
7756 | ||
7757 | cat >>confdefs.h <<\_ACEOF | |
7758 | #define HAVE_SANDBOX 1 | |
7759 | _ACEOF | |
7760 | ||
7761 | fi | |
7762 | ||
7763 | ||
7764 | # check for quarantine | |
7765 | { echo "$as_me:$LINENO: checking for _qtn_proc_init_with_data" >&5 | |
7766 | echo $ECHO_N "checking for _qtn_proc_init_with_data... $ECHO_C" >&6; } | |
7767 | if test "${ac_cv_func__qtn_proc_init_with_data+set}" = set; then | |
7768 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7769 | else | |
7770 | cat >conftest.$ac_ext <<_ACEOF | |
7771 | /* confdefs.h. */ | |
7772 | _ACEOF | |
7773 | cat confdefs.h >>conftest.$ac_ext | |
7774 | cat >>conftest.$ac_ext <<_ACEOF | |
7775 | /* end confdefs.h. */ | |
7776 | /* Define _qtn_proc_init_with_data to an innocuous variant, in case <limits.h> declares _qtn_proc_init_with_data. | |
7777 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7778 | #define _qtn_proc_init_with_data innocuous__qtn_proc_init_with_data | |
7779 | ||
7780 | /* System header to define __stub macros and hopefully few prototypes, | |
7781 | which can conflict with char _qtn_proc_init_with_data (); below. | |
7782 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7783 | <limits.h> exists even on freestanding compilers. */ | |
7784 | ||
7785 | #ifdef __STDC__ | |
7786 | # include <limits.h> | |
7787 | #else | |
7788 | # include <assert.h> | |
7789 | #endif | |
7790 | ||
7791 | #undef _qtn_proc_init_with_data | |
7792 | ||
7793 | /* Override any GCC internal prototype to avoid an error. | |
7794 | Use char because int might match the return type of a GCC | |
7795 | builtin and then its argument prototype would still apply. */ | |
7796 | #ifdef __cplusplus | |
7797 | extern "C" | |
7798 | #endif | |
7799 | char _qtn_proc_init_with_data (); | |
7800 | /* The GNU C library defines this for functions which it implements | |
7801 | to always fail with ENOSYS. Some functions are actually named | |
7802 | something starting with __ and the normal name is an alias. */ | |
7803 | #if defined __stub__qtn_proc_init_with_data || defined __stub____qtn_proc_init_with_data | |
7804 | choke me | |
7805 | #endif | |
7806 | ||
7807 | int | |
7808 | main () | |
7809 | { | |
7810 | return _qtn_proc_init_with_data (); | |
7811 | ; | |
7812 | return 0; | |
7813 | } | |
7814 | _ACEOF | |
7815 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7816 | if { (ac_try="$ac_link" | |
7817 | case "(($ac_try" in | |
7818 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7819 | *) ac_try_echo=$ac_try;; | |
7820 | esac | |
7821 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7822 | (eval "$ac_link") 2>conftest.er1 | |
7823 | ac_status=$? | |
7824 | grep -v '^ *+' conftest.er1 >conftest.err | |
7825 | rm -f conftest.er1 | |
7826 | cat conftest.err >&5 | |
7827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7828 | (exit $ac_status); } && { | |
7829 | test -z "$ac_c_werror_flag" || | |
7830 | test ! -s conftest.err | |
7831 | } && test -s conftest$ac_exeext && | |
7832 | $as_test_x conftest$ac_exeext; then | |
7833 | ac_cv_func__qtn_proc_init_with_data=yes | |
7834 | else | |
7835 | echo "$as_me: failed program was:" >&5 | |
7836 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7837 | ||
7838 | ac_cv_func__qtn_proc_init_with_data=no | |
7839 | fi | |
7840 | ||
7841 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
7842 | conftest$ac_exeext conftest.$ac_ext | |
7843 | fi | |
7844 | { echo "$as_me:$LINENO: result: $ac_cv_func__qtn_proc_init_with_data" >&5 | |
7845 | echo "${ECHO_T}$ac_cv_func__qtn_proc_init_with_data" >&6; } | |
7846 | if test $ac_cv_func__qtn_proc_init_with_data = yes; then | |
7847 | ||
7848 | cat >>confdefs.h <<\_ACEOF | |
7849 | #define HAVE_QUARANTINE 1 | |
7850 | _ACEOF | |
7851 | ||
7852 | fi | |
7853 | ||
7854 | ||
5b0a4722 | 7855 | ac_config_files="$ac_config_files Makefile src/Makefile" |
ed34e3c3 A |
7856 | |
7857 | ||
5b0a4722 | 7858 | if test "$RC_ProjectName" = launchd_libs; then |
ed34e3c3 A |
7859 | LIBS_ONLY_TRUE= |
7860 | LIBS_ONLY_FALSE='#' | |
7861 | else | |
7862 | LIBS_ONLY_TRUE='#' | |
7863 | LIBS_ONLY_FALSE= | |
7864 | fi | |
7865 | ||
f36da725 A |
7866 | if test $(tconf --test TARGET_OS_EMBEDDED) = YES; then |
7867 | DO_EMBEDDED_MAGIC_TRUE= | |
7868 | DO_EMBEDDED_MAGIC_FALSE='#' | |
7869 | else | |
7870 | DO_EMBEDDED_MAGIC_TRUE='#' | |
7871 | DO_EMBEDDED_MAGIC_FALSE= | |
7872 | fi | |
7873 | ||
7874 | ||
e91b9f68 A |
7875 | |
7876 | cat >confcache <<\_ACEOF | |
7877 | # This file is a shell script that caches the results of configure | |
7878 | # tests run on this system so they can be shared between configure | |
7879 | # scripts and configure runs, see configure's option --config-cache. | |
7880 | # It is not useful on other systems. If it contains results you don't | |
7881 | # want to keep, you may remove or edit it. | |
7882 | # | |
7883 | # config.status only pays attention to the cache file if you give it | |
7884 | # the --recheck option to rerun configure. | |
7885 | # | |
7886 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
7887 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
7888 | # following values. | |
7889 | ||
7890 | _ACEOF | |
7891 | ||
7892 | # The following way of writing the cache mishandles newlines in values, | |
7893 | # but we know of no workaround that is simple, portable, and efficient. | |
5b0a4722 | 7894 | # So, we kill variables containing newlines. |
e91b9f68 A |
7895 | # Ultrix sh set writes to stderr and can't be redirected directly, |
7896 | # and sets the high bit in the cache file unless we assign to the vars. | |
5b0a4722 A |
7897 | ( |
7898 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
7899 | eval ac_val=\$$ac_var | |
7900 | case $ac_val in #( | |
7901 | *${as_nl}*) | |
7902 | case $ac_var in #( | |
7903 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | |
7904 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
7905 | esac | |
7906 | case $ac_var in #( | |
7907 | _ | IFS | as_nl) ;; #( | |
7908 | *) $as_unset $ac_var ;; | |
7909 | esac ;; | |
7910 | esac | |
7911 | done | |
7912 | ||
e91b9f68 | 7913 | (set) 2>&1 | |
5b0a4722 A |
7914 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
7915 | *${as_nl}ac_space=\ *) | |
e91b9f68 A |
7916 | # `set' does not quote correctly, so add quotes (double-quote |
7917 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
7918 | sed -n \ | |
7919 | "s/'/'\\\\''/g; | |
7920 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
5b0a4722 | 7921 | ;; #( |
e91b9f68 A |
7922 | *) |
7923 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
5b0a4722 | 7924 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
e91b9f68 | 7925 | ;; |
5b0a4722 A |
7926 | esac | |
7927 | sort | |
7928 | ) | | |
e91b9f68 | 7929 | sed ' |
5b0a4722 | 7930 | /^ac_cv_env_/b end |
e91b9f68 | 7931 | t clear |
5b0a4722 | 7932 | :clear |
e91b9f68 A |
7933 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
7934 | t end | |
5b0a4722 A |
7935 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
7936 | :end' >>confcache | |
7937 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
7938 | if test -w "$cache_file"; then | |
7939 | test "x$cache_file" != "x/dev/null" && | |
7940 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 | |
7941 | echo "$as_me: updating cache $cache_file" >&6;} | |
e91b9f68 A |
7942 | cat confcache >$cache_file |
7943 | else | |
5b0a4722 A |
7944 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
7945 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
e91b9f68 A |
7946 | fi |
7947 | fi | |
7948 | rm -f confcache | |
7949 | ||
7950 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
7951 | # Let make expand exec_prefix. | |
7952 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
7953 | ||
e91b9f68 A |
7954 | DEFS=-DHAVE_CONFIG_H |
7955 | ||
7956 | ac_libobjs= | |
7957 | ac_ltlibobjs= | |
7958 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
7959 | # 1. Remove the extension, and $U if already installed. | |
5b0a4722 A |
7960 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
7961 | ac_i=`echo "$ac_i" | sed "$ac_script"` | |
7962 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
7963 | # will be set to the directory where LIBOBJS objects are built. | |
7964 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
7965 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
e91b9f68 A |
7966 | done |
7967 | LIBOBJS=$ac_libobjs | |
7968 | ||
7969 | LTLIBOBJS=$ac_ltlibobjs | |
7970 | ||
7971 | ||
7972 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
7973 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. | |
7974 | Usually this means the macro was only invoked conditionally." >&5 | |
7975 | echo "$as_me: error: conditional \"AMDEP\" was never defined. | |
7976 | Usually this means the macro was only invoked conditionally." >&2;} | |
7977 | { (exit 1); exit 1; }; } | |
7978 | fi | |
5b0a4722 A |
7979 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
7980 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. | |
7981 | Usually this means the macro was only invoked conditionally." >&5 | |
7982 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | |
7983 | Usually this means the macro was only invoked conditionally." >&2;} | |
7984 | { (exit 1); exit 1; }; } | |
7985 | fi | |
ed34e3c3 A |
7986 | if test -z "${LIBS_ONLY_TRUE}" && test -z "${LIBS_ONLY_FALSE}"; then |
7987 | { { echo "$as_me:$LINENO: error: conditional \"LIBS_ONLY\" was never defined. | |
7988 | Usually this means the macro was only invoked conditionally." >&5 | |
7989 | echo "$as_me: error: conditional \"LIBS_ONLY\" was never defined. | |
7990 | Usually this means the macro was only invoked conditionally." >&2;} | |
7991 | { (exit 1); exit 1; }; } | |
7992 | fi | |
f36da725 A |
7993 | if test -z "${DO_EMBEDDED_MAGIC_TRUE}" && test -z "${DO_EMBEDDED_MAGIC_FALSE}"; then |
7994 | { { echo "$as_me:$LINENO: error: conditional \"DO_EMBEDDED_MAGIC\" was never defined. | |
7995 | Usually this means the macro was only invoked conditionally." >&5 | |
7996 | echo "$as_me: error: conditional \"DO_EMBEDDED_MAGIC\" was never defined. | |
7997 | Usually this means the macro was only invoked conditionally." >&2;} | |
7998 | { (exit 1); exit 1; }; } | |
7999 | fi | |
e91b9f68 A |
8000 | |
8001 | : ${CONFIG_STATUS=./config.status} | |
8002 | ac_clean_files_save=$ac_clean_files | |
8003 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
8004 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
8005 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
8006 | cat >$CONFIG_STATUS <<_ACEOF | |
8007 | #! $SHELL | |
8008 | # Generated by $as_me. | |
8009 | # Run this file to recreate the current configuration. | |
8010 | # Compiler output produced by configure, useful for debugging | |
8011 | # configure, is in config.log if it exists. | |
8012 | ||
8013 | debug=false | |
8014 | ac_cs_recheck=false | |
8015 | ac_cs_silent=false | |
8016 | SHELL=\${CONFIG_SHELL-$SHELL} | |
8017 | _ACEOF | |
8018 | ||
8019 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8020 | ## --------------------- ## | |
8021 | ## M4sh Initialization. ## | |
8022 | ## --------------------- ## | |
8023 | ||
5b0a4722 A |
8024 | # Be more Bourne compatible |
8025 | DUALCASE=1; export DUALCASE # for MKS sh | |
e91b9f68 A |
8026 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
8027 | emulate sh | |
8028 | NULLCMD=: | |
8029 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
8030 | # is contrary to our usage. Disable this feature. | |
8031 | alias -g '${1+"$@"}'='"$@"' | |
5b0a4722 A |
8032 | setopt NO_GLOB_SUBST |
8033 | else | |
8034 | case `(set -o) 2>/dev/null` in | |
8035 | *posix*) set -o posix ;; | |
8036 | esac | |
8037 | ||
8038 | fi | |
8039 | ||
8040 | ||
8041 | ||
8042 | ||
8043 | # PATH needs CR | |
8044 | # Avoid depending upon Character Ranges. | |
8045 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
8046 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
8047 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
8048 | as_cr_digits='0123456789' | |
8049 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
8050 | ||
8051 | # The user is always right. | |
8052 | if test "${PATH_SEPARATOR+set}" != set; then | |
8053 | echo "#! /bin/sh" >conf$$.sh | |
8054 | echo "exit 0" >>conf$$.sh | |
8055 | chmod +x conf$$.sh | |
8056 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
8057 | PATH_SEPARATOR=';' | |
8058 | else | |
8059 | PATH_SEPARATOR=: | |
8060 | fi | |
8061 | rm -f conf$$.sh | |
e91b9f68 | 8062 | fi |
e91b9f68 A |
8063 | |
8064 | # Support unset when possible. | |
8065 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
8066 | as_unset=unset | |
8067 | else | |
8068 | as_unset=false | |
8069 | fi | |
8070 | ||
8071 | ||
5b0a4722 A |
8072 | # IFS |
8073 | # We need space, tab and new line, in precisely that order. Quoting is | |
8074 | # there to prevent editors from complaining about space-tab. | |
8075 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
8076 | # splitting by setting IFS to empty value.) | |
8077 | as_nl=' | |
8078 | ' | |
8079 | IFS=" "" $as_nl" | |
8080 | ||
8081 | # Find who we are. Look in the path if we contain no directory separator. | |
8082 | case $0 in | |
8083 | *[\\/]* ) as_myself=$0 ;; | |
8084 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8085 | for as_dir in $PATH | |
8086 | do | |
8087 | IFS=$as_save_IFS | |
8088 | test -z "$as_dir" && as_dir=. | |
8089 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
8090 | done | |
8091 | IFS=$as_save_IFS | |
8092 | ||
8093 | ;; | |
8094 | esac | |
8095 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
8096 | # in which case we are not to be found in the path. | |
8097 | if test "x$as_myself" = x; then | |
8098 | as_myself=$0 | |
8099 | fi | |
8100 | if test ! -f "$as_myself"; then | |
8101 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
8102 | { (exit 1); exit 1; } | |
8103 | fi | |
8104 | ||
e91b9f68 | 8105 | # Work around bugs in pre-3.0 UWIN ksh. |
5b0a4722 A |
8106 | for as_var in ENV MAIL MAILPATH |
8107 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
8108 | done | |
e91b9f68 A |
8109 | PS1='$ ' |
8110 | PS2='> ' | |
8111 | PS4='+ ' | |
8112 | ||
8113 | # NLS nuisances. | |
8114 | for as_var in \ | |
8115 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
8116 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
8117 | LC_TELEPHONE LC_TIME | |
8118 | do | |
8119 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
8120 | eval $as_var=C; export $as_var | |
8121 | else | |
5b0a4722 | 8122 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
e91b9f68 A |
8123 | fi |
8124 | done | |
8125 | ||
8126 | # Required to use basename. | |
5b0a4722 A |
8127 | if expr a : '\(a\)' >/dev/null 2>&1 && |
8128 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
e91b9f68 A |
8129 | as_expr=expr |
8130 | else | |
8131 | as_expr=false | |
8132 | fi | |
8133 | ||
5b0a4722 | 8134 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
e91b9f68 A |
8135 | as_basename=basename |
8136 | else | |
8137 | as_basename=false | |
8138 | fi | |
8139 | ||
8140 | ||
8141 | # Name of the executable. | |
5b0a4722 | 8142 | as_me=`$as_basename -- "$0" || |
e91b9f68 A |
8143 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
8144 | X"$0" : 'X\(//\)$' \| \ | |
5b0a4722 | 8145 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
e91b9f68 | 8146 | echo X/"$0" | |
5b0a4722 A |
8147 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
8148 | s//\1/ | |
8149 | q | |
8150 | } | |
8151 | /^X\/\(\/\/\)$/{ | |
8152 | s//\1/ | |
8153 | q | |
8154 | } | |
8155 | /^X\/\(\/\).*/{ | |
8156 | s//\1/ | |
8157 | q | |
8158 | } | |
8159 | s/.*/./; q'` | |
e91b9f68 | 8160 | |
5b0a4722 A |
8161 | # CDPATH. |
8162 | $as_unset CDPATH | |
e91b9f68 | 8163 | |
e91b9f68 A |
8164 | |
8165 | ||
8166 | as_lineno_1=$LINENO | |
8167 | as_lineno_2=$LINENO | |
e91b9f68 | 8168 | test "x$as_lineno_1" != "x$as_lineno_2" && |
5b0a4722 | 8169 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
e91b9f68 A |
8170 | |
8171 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
8172 | # uniformly replaced by the line number. The first 'sed' inserts a | |
5b0a4722 A |
8173 | # line-number line after each line using $LINENO; the second 'sed' |
8174 | # does the real work. The second script uses 'N' to pair each | |
8175 | # line-number line with the line containing $LINENO, and appends | |
8176 | # trailing '-' during substitution so that $LINENO is not a special | |
8177 | # case at line end. | |
e91b9f68 | 8178 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
5b0a4722 A |
8179 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
8180 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
8181 | sed -n ' | |
8182 | p | |
8183 | /[$]LINENO/= | |
8184 | ' <$as_myself | | |
e91b9f68 | 8185 | sed ' |
5b0a4722 A |
8186 | s/[$]LINENO.*/&-/ |
8187 | t lineno | |
8188 | b | |
8189 | :lineno | |
e91b9f68 | 8190 | N |
5b0a4722 A |
8191 | :loop |
8192 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
e91b9f68 | 8193 | t loop |
5b0a4722 | 8194 | s/-\n.*// |
e91b9f68 | 8195 | ' >$as_me.lineno && |
5b0a4722 A |
8196 | chmod +x "$as_me.lineno" || |
8197 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
e91b9f68 A |
8198 | { (exit 1); exit 1; }; } |
8199 | ||
8200 | # Don't try to exec as it changes $[0], causing all sort of problems | |
8201 | # (the dirname of $[0] is not the place where we might find the | |
5b0a4722 A |
8202 | # original and so on. Autoconf is especially sensitive to this). |
8203 | . "./$as_me.lineno" | |
e91b9f68 A |
8204 | # Exit status is that of the last command. |
8205 | exit | |
8206 | } | |
8207 | ||
8208 | ||
5b0a4722 A |
8209 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
8210 | as_dirname=dirname | |
8211 | else | |
8212 | as_dirname=false | |
8213 | fi | |
8214 | ||
8215 | ECHO_C= ECHO_N= ECHO_T= | |
8216 | case `echo -n x` in | |
8217 | -n*) | |
8218 | case `echo 'x\c'` in | |
8219 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
8220 | *) ECHO_C='\c';; | |
8221 | esac;; | |
8222 | *) | |
8223 | ECHO_N='-n';; | |
e91b9f68 A |
8224 | esac |
8225 | ||
5b0a4722 A |
8226 | if expr a : '\(a\)' >/dev/null 2>&1 && |
8227 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
e91b9f68 A |
8228 | as_expr=expr |
8229 | else | |
8230 | as_expr=false | |
8231 | fi | |
8232 | ||
8233 | rm -f conf$$ conf$$.exe conf$$.file | |
5b0a4722 A |
8234 | if test -d conf$$.dir; then |
8235 | rm -f conf$$.dir/conf$$.file | |
8236 | else | |
8237 | rm -f conf$$.dir | |
8238 | mkdir conf$$.dir | |
8239 | fi | |
e91b9f68 A |
8240 | echo >conf$$.file |
8241 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
5b0a4722 A |
8242 | as_ln_s='ln -s' |
8243 | # ... but there are two gotchas: | |
8244 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
8245 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
8246 | # In both cases, we have to default to `cp -p'. | |
8247 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
e91b9f68 | 8248 | as_ln_s='cp -p' |
e91b9f68 A |
8249 | elif ln conf$$.file conf$$ 2>/dev/null; then |
8250 | as_ln_s=ln | |
8251 | else | |
8252 | as_ln_s='cp -p' | |
8253 | fi | |
5b0a4722 A |
8254 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
8255 | rmdir conf$$.dir 2>/dev/null | |
e91b9f68 A |
8256 | |
8257 | if mkdir -p . 2>/dev/null; then | |
8258 | as_mkdir_p=: | |
8259 | else | |
8260 | test -d ./-p && rmdir ./-p | |
8261 | as_mkdir_p=false | |
8262 | fi | |
8263 | ||
5b0a4722 A |
8264 | if test -x / >/dev/null 2>&1; then |
8265 | as_test_x='test -x' | |
8266 | else | |
8267 | if ls -dL / >/dev/null 2>&1; then | |
8268 | as_ls_L_option=L | |
8269 | else | |
8270 | as_ls_L_option= | |
8271 | fi | |
8272 | as_test_x=' | |
8273 | eval sh -c '\'' | |
8274 | if test -d "$1"; then | |
8275 | test -d "$1/."; | |
8276 | else | |
8277 | case $1 in | |
8278 | -*)set "./$1";; | |
8279 | esac; | |
8280 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
8281 | ???[sx]*):;;*)false;;esac;fi | |
8282 | '\'' sh | |
8283 | ' | |
8284 | fi | |
8285 | as_executable_p=$as_test_x | |
e91b9f68 A |
8286 | |
8287 | # Sed expression to map a string onto a valid CPP name. | |
8288 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
8289 | ||
8290 | # Sed expression to map a string onto a valid variable name. | |
8291 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
8292 | ||
8293 | ||
e91b9f68 A |
8294 | exec 6>&1 |
8295 | ||
5b0a4722 | 8296 | # Save the log message, to keep $[0] and so on meaningful, and to |
e91b9f68 | 8297 | # report actual input values of CONFIG_FILES etc. instead of their |
5b0a4722 A |
8298 | # values after options handling. |
8299 | ac_log=" | |
e91b9f68 | 8300 | This file was extended by launchd $as_me 1.0, which was |
5b0a4722 | 8301 | generated by GNU Autoconf 2.61. Invocation command line was |
e91b9f68 A |
8302 | |
8303 | CONFIG_FILES = $CONFIG_FILES | |
8304 | CONFIG_HEADERS = $CONFIG_HEADERS | |
8305 | CONFIG_LINKS = $CONFIG_LINKS | |
8306 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
8307 | $ $0 $@ | |
8308 | ||
5b0a4722 A |
8309 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
8310 | " | |
8311 | ||
e91b9f68 A |
8312 | _ACEOF |
8313 | ||
5b0a4722 | 8314 | cat >>$CONFIG_STATUS <<_ACEOF |
e91b9f68 | 8315 | # Files that config.status was made for. |
5b0a4722 A |
8316 | config_files="$ac_config_files" |
8317 | config_headers="$ac_config_headers" | |
8318 | config_commands="$ac_config_commands" | |
e91b9f68 | 8319 | |
5b0a4722 | 8320 | _ACEOF |
e91b9f68 A |
8321 | |
8322 | cat >>$CONFIG_STATUS <<\_ACEOF | |
e91b9f68 A |
8323 | ac_cs_usage="\ |
8324 | \`$as_me' instantiates files from templates according to the | |
8325 | current configuration. | |
8326 | ||
8327 | Usage: $0 [OPTIONS] [FILE]... | |
8328 | ||
8329 | -h, --help print this help, then exit | |
5b0a4722 | 8330 | -V, --version print version number and configuration settings, then exit |
e91b9f68 A |
8331 | -q, --quiet do not print progress messages |
8332 | -d, --debug don't remove temporary files | |
8333 | --recheck update $as_me by reconfiguring in the same conditions | |
8334 | --file=FILE[:TEMPLATE] | |
8335 | instantiate the configuration file FILE | |
8336 | --header=FILE[:TEMPLATE] | |
8337 | instantiate the configuration header FILE | |
8338 | ||
8339 | Configuration files: | |
8340 | $config_files | |
8341 | ||
8342 | Configuration headers: | |
8343 | $config_headers | |
8344 | ||
8345 | Configuration commands: | |
8346 | $config_commands | |
8347 | ||
8348 | Report bugs to <bug-autoconf@gnu.org>." | |
e91b9f68 | 8349 | |
5b0a4722 | 8350 | _ACEOF |
e91b9f68 A |
8351 | cat >>$CONFIG_STATUS <<_ACEOF |
8352 | ac_cs_version="\\ | |
8353 | launchd config.status 1.0 | |
5b0a4722 A |
8354 | configured by $0, generated by GNU Autoconf 2.61, |
8355 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
e91b9f68 | 8356 | |
5b0a4722 | 8357 | Copyright (C) 2006 Free Software Foundation, Inc. |
e91b9f68 A |
8358 | This config.status script is free software; the Free Software Foundation |
8359 | gives unlimited permission to copy, distribute and modify it." | |
5b0a4722 A |
8360 | |
8361 | ac_pwd='$ac_pwd' | |
8362 | srcdir='$srcdir' | |
8363 | INSTALL='$INSTALL' | |
8364 | MKDIR_P='$MKDIR_P' | |
e91b9f68 A |
8365 | _ACEOF |
8366 | ||
8367 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8368 | # If no file are specified by the user, then we need to provide default | |
8369 | # value. By we need to know if files were specified by the user. | |
8370 | ac_need_defaults=: | |
8371 | while test $# != 0 | |
8372 | do | |
8373 | case $1 in | |
8374 | --*=*) | |
5b0a4722 A |
8375 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
8376 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
e91b9f68 A |
8377 | ac_shift=: |
8378 | ;; | |
5b0a4722 | 8379 | *) |
e91b9f68 A |
8380 | ac_option=$1 |
8381 | ac_optarg=$2 | |
8382 | ac_shift=shift | |
8383 | ;; | |
e91b9f68 A |
8384 | esac |
8385 | ||
8386 | case $ac_option in | |
8387 | # Handling of the options. | |
e91b9f68 A |
8388 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
8389 | ac_cs_recheck=: ;; | |
5b0a4722 A |
8390 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
8391 | echo "$ac_cs_version"; exit ;; | |
8392 | --debug | --debu | --deb | --de | --d | -d ) | |
e91b9f68 A |
8393 | debug=: ;; |
8394 | --file | --fil | --fi | --f ) | |
8395 | $ac_shift | |
8396 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
8397 | ac_need_defaults=false;; | |
8398 | --header | --heade | --head | --hea ) | |
8399 | $ac_shift | |
8400 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
8401 | ac_need_defaults=false;; | |
5b0a4722 A |
8402 | --he | --h) |
8403 | # Conflict between --help and --header | |
8404 | { echo "$as_me: error: ambiguous option: $1 | |
8405 | Try \`$0 --help' for more information." >&2 | |
8406 | { (exit 1); exit 1; }; };; | |
8407 | --help | --hel | -h ) | |
8408 | echo "$ac_cs_usage"; exit ;; | |
e91b9f68 A |
8409 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
8410 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
8411 | ac_cs_silent=: ;; | |
8412 | ||
8413 | # This is an error. | |
5b0a4722 A |
8414 | -*) { echo "$as_me: error: unrecognized option: $1 |
8415 | Try \`$0 --help' for more information." >&2 | |
e91b9f68 A |
8416 | { (exit 1); exit 1; }; } ;; |
8417 | ||
5b0a4722 A |
8418 | *) ac_config_targets="$ac_config_targets $1" |
8419 | ac_need_defaults=false ;; | |
e91b9f68 A |
8420 | |
8421 | esac | |
8422 | shift | |
8423 | done | |
8424 | ||
8425 | ac_configure_extra_args= | |
8426 | ||
8427 | if $ac_cs_silent; then | |
8428 | exec 6>/dev/null | |
8429 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
8430 | fi | |
8431 | ||
8432 | _ACEOF | |
8433 | cat >>$CONFIG_STATUS <<_ACEOF | |
8434 | if \$ac_cs_recheck; then | |
5b0a4722 A |
8435 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
8436 | CONFIG_SHELL=$SHELL | |
8437 | export CONFIG_SHELL | |
8438 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
e91b9f68 A |
8439 | fi |
8440 | ||
8441 | _ACEOF | |
5b0a4722 A |
8442 | cat >>$CONFIG_STATUS <<\_ACEOF |
8443 | exec 5>>config.log | |
8444 | { | |
8445 | echo | |
8446 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
8447 | ## Running $as_me. ## | |
8448 | _ASBOX | |
8449 | echo "$ac_log" | |
8450 | } >&5 | |
e91b9f68 | 8451 | |
5b0a4722 | 8452 | _ACEOF |
e91b9f68 A |
8453 | cat >>$CONFIG_STATUS <<_ACEOF |
8454 | # | |
5b0a4722 | 8455 | # INIT-COMMANDS |
e91b9f68 | 8456 | # |
e91b9f68 A |
8457 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
8458 | ||
8459 | _ACEOF | |
8460 | ||
e91b9f68 | 8461 | cat >>$CONFIG_STATUS <<\_ACEOF |
5b0a4722 A |
8462 | |
8463 | # Handling of arguments. | |
e91b9f68 A |
8464 | for ac_config_target in $ac_config_targets |
8465 | do | |
5b0a4722 A |
8466 | case $ac_config_target in |
8467 | "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; | |
8468 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
8469 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
8470 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; | |
8471 | ||
e91b9f68 A |
8472 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
8473 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
8474 | { (exit 1); exit 1; }; };; | |
8475 | esac | |
8476 | done | |
8477 | ||
5b0a4722 | 8478 | |
e91b9f68 A |
8479 | # If the user did not use the arguments to specify the items to instantiate, |
8480 | # then the envvar interface is used. Set only those that are not. | |
8481 | # We use the long form for the default assignment because of an extremely | |
8482 | # bizarre bug on SunOS 4.1.3. | |
8483 | if $ac_need_defaults; then | |
8484 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
8485 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
8486 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
8487 | fi | |
8488 | ||
8489 | # Have a temporary directory for convenience. Make it in the build tree | |
5b0a4722 | 8490 | # simply because there is no reason against having it here, and in addition, |
e91b9f68 | 8491 | # creating and moving files from /tmp can sometimes cause problems. |
5b0a4722 A |
8492 | # Hook for its removal unless debugging. |
8493 | # Note that there is a small window in which the directory will not be cleaned: | |
8494 | # after its creation but before its name has been assigned to `$tmp'. | |
e91b9f68 A |
8495 | $debug || |
8496 | { | |
5b0a4722 A |
8497 | tmp= |
8498 | trap 'exit_status=$? | |
8499 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
8500 | ' 0 | |
e91b9f68 A |
8501 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
8502 | } | |
e91b9f68 A |
8503 | # Create a (secure) tmp directory for tmp files. |
8504 | ||
8505 | { | |
5b0a4722 | 8506 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
e91b9f68 A |
8507 | test -n "$tmp" && test -d "$tmp" |
8508 | } || | |
8509 | { | |
5b0a4722 A |
8510 | tmp=./conf$$-$RANDOM |
8511 | (umask 077 && mkdir "$tmp") | |
e91b9f68 A |
8512 | } || |
8513 | { | |
8514 | echo "$me: cannot create a temporary directory in ." >&2 | |
8515 | { (exit 1); exit 1; } | |
8516 | } | |
8517 | ||
e91b9f68 | 8518 | # |
5b0a4722 | 8519 | # Set up the sed scripts for CONFIG_FILES section. |
e91b9f68 A |
8520 | # |
8521 | ||
8522 | # No need to generate the scripts if there are no CONFIG_FILES. | |
8523 | # This happens for instance when ./config.status config.h | |
5b0a4722 A |
8524 | if test -n "$CONFIG_FILES"; then |
8525 | ||
8526 | _ACEOF | |
8527 | ||
8528 | ||
8529 | ||
8530 | ac_delim='%!_!# ' | |
8531 | for ac_last_try in false false false false false :; do | |
8532 | cat >conf$$subs.sed <<_ACEOF | |
8533 | SHELL!$SHELL$ac_delim | |
8534 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim | |
8535 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim | |
8536 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim | |
8537 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim | |
8538 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim | |
8539 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim | |
8540 | exec_prefix!$exec_prefix$ac_delim | |
8541 | prefix!$prefix$ac_delim | |
8542 | program_transform_name!$program_transform_name$ac_delim | |
8543 | bindir!$bindir$ac_delim | |
8544 | sbindir!$sbindir$ac_delim | |
8545 | libexecdir!$libexecdir$ac_delim | |
8546 | datarootdir!$datarootdir$ac_delim | |
8547 | datadir!$datadir$ac_delim | |
8548 | sysconfdir!$sysconfdir$ac_delim | |
8549 | sharedstatedir!$sharedstatedir$ac_delim | |
8550 | localstatedir!$localstatedir$ac_delim | |
8551 | includedir!$includedir$ac_delim | |
8552 | oldincludedir!$oldincludedir$ac_delim | |
8553 | docdir!$docdir$ac_delim | |
8554 | infodir!$infodir$ac_delim | |
8555 | htmldir!$htmldir$ac_delim | |
8556 | dvidir!$dvidir$ac_delim | |
8557 | pdfdir!$pdfdir$ac_delim | |
8558 | psdir!$psdir$ac_delim | |
8559 | libdir!$libdir$ac_delim | |
8560 | localedir!$localedir$ac_delim | |
8561 | mandir!$mandir$ac_delim | |
8562 | DEFS!$DEFS$ac_delim | |
8563 | ECHO_C!$ECHO_C$ac_delim | |
8564 | ECHO_N!$ECHO_N$ac_delim | |
8565 | ECHO_T!$ECHO_T$ac_delim | |
8566 | LIBS!$LIBS$ac_delim | |
8567 | build_alias!$build_alias$ac_delim | |
8568 | host_alias!$host_alias$ac_delim | |
8569 | target_alias!$target_alias$ac_delim | |
8570 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim | |
8571 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim | |
8572 | INSTALL_DATA!$INSTALL_DATA$ac_delim | |
8573 | am__isrc!$am__isrc$ac_delim | |
8574 | CYGPATH_W!$CYGPATH_W$ac_delim | |
8575 | PACKAGE!$PACKAGE$ac_delim | |
8576 | VERSION!$VERSION$ac_delim | |
8577 | ACLOCAL!$ACLOCAL$ac_delim | |
8578 | AUTOCONF!$AUTOCONF$ac_delim | |
8579 | AUTOMAKE!$AUTOMAKE$ac_delim | |
8580 | AUTOHEADER!$AUTOHEADER$ac_delim | |
8581 | MAKEINFO!$MAKEINFO$ac_delim | |
8582 | install_sh!$install_sh$ac_delim | |
8583 | STRIP!$STRIP$ac_delim | |
8584 | INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim | |
8585 | mkdir_p!$mkdir_p$ac_delim | |
8586 | AWK!$AWK$ac_delim | |
8587 | SET_MAKE!$SET_MAKE$ac_delim | |
8588 | am__leading_dot!$am__leading_dot$ac_delim | |
8589 | AMTAR!$AMTAR$ac_delim | |
8590 | am__tar!$am__tar$ac_delim | |
8591 | am__untar!$am__untar$ac_delim | |
8592 | CC!$CC$ac_delim | |
8593 | CFLAGS!$CFLAGS$ac_delim | |
8594 | LDFLAGS!$LDFLAGS$ac_delim | |
8595 | CPPFLAGS!$CPPFLAGS$ac_delim | |
8596 | ac_ct_CC!$ac_ct_CC$ac_delim | |
8597 | EXEEXT!$EXEEXT$ac_delim | |
8598 | OBJEXT!$OBJEXT$ac_delim | |
8599 | DEPDIR!$DEPDIR$ac_delim | |
8600 | am__include!$am__include$ac_delim | |
8601 | am__quote!$am__quote$ac_delim | |
8602 | AMDEP_TRUE!$AMDEP_TRUE$ac_delim | |
8603 | AMDEP_FALSE!$AMDEP_FALSE$ac_delim | |
8604 | AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim | |
8605 | CCDEPMODE!$CCDEPMODE$ac_delim | |
8606 | am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim | |
8607 | am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim | |
8608 | RANLIB!$RANLIB$ac_delim | |
8609 | CPP!$CPP$ac_delim | |
8610 | GREP!$GREP$ac_delim | |
8611 | EGREP!$EGREP$ac_delim | |
8612 | ALLOCA!$ALLOCA$ac_delim | |
8613 | LIBOBJS!$LIBOBJS$ac_delim | |
f36da725 A |
8614 | LIBS_SECURITY!$LIBS_SECURITY$ac_delim |
8615 | WEAKLIBS_SECURITY!$WEAKLIBS_SECURITY$ac_delim | |
5b0a4722 A |
8616 | LIBS_ONLY_TRUE!$LIBS_ONLY_TRUE$ac_delim |
8617 | LIBS_ONLY_FALSE!$LIBS_ONLY_FALSE$ac_delim | |
f36da725 A |
8618 | DO_EMBEDDED_MAGIC_TRUE!$DO_EMBEDDED_MAGIC_TRUE$ac_delim |
8619 | DO_EMBEDDED_MAGIC_FALSE!$DO_EMBEDDED_MAGIC_FALSE$ac_delim | |
5b0a4722 A |
8620 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
8621 | _ACEOF | |
8622 | ||
f36da725 | 8623 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 88; then |
5b0a4722 A |
8624 | break |
8625 | elif $ac_last_try; then | |
8626 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
8627 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
8628 | { (exit 1); exit 1; }; } | |
8629 | else | |
8630 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
e91b9f68 | 8631 | fi |
5b0a4722 | 8632 | done |
e91b9f68 | 8633 | |
5b0a4722 A |
8634 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
8635 | if test -n "$ac_eof"; then | |
8636 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | |
8637 | ac_eof=`expr $ac_eof + 1` | |
8638 | fi | |
8639 | ||
8640 | cat >>$CONFIG_STATUS <<_ACEOF | |
8641 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof | |
8642 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end | |
8643 | _ACEOF | |
8644 | sed ' | |
8645 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | |
8646 | s/^/s,@/; s/!/@,|#_!!_#|/ | |
8647 | :n | |
8648 | t n | |
8649 | s/'"$ac_delim"'$/,g/; t | |
8650 | s/$/\\/; p | |
8651 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | |
8652 | ' >>$CONFIG_STATUS <conf$$subs.sed | |
8653 | rm -f conf$$subs.sed | |
8654 | cat >>$CONFIG_STATUS <<_ACEOF | |
8655 | :end | |
8656 | s/|#_!!_#|//g | |
8657 | CEOF$ac_eof | |
e91b9f68 | 8658 | _ACEOF |
5b0a4722 A |
8659 | |
8660 | ||
8661 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
8662 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
8663 | # trailing colons and then remove the whole line if VPATH becomes empty | |
8664 | # (actually we leave an empty line to preserve line numbers). | |
8665 | if test "x$srcdir" = x.; then | |
8666 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
8667 | s/:*\$(srcdir):*/:/ | |
8668 | s/:*\${srcdir}:*/:/ | |
8669 | s/:*@srcdir@:*/:/ | |
8670 | s/^\([^=]*=[ ]*\):*/\1/ | |
8671 | s/:*$// | |
8672 | s/^[^=]*=[ ]*$// | |
8673 | }' | |
8674 | fi | |
8675 | ||
e91b9f68 | 8676 | cat >>$CONFIG_STATUS <<\_ACEOF |
5b0a4722 A |
8677 | fi # test -n "$CONFIG_FILES" |
8678 | ||
8679 | ||
8680 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS | |
8681 | do | |
8682 | case $ac_tag in | |
8683 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
8684 | esac | |
8685 | case $ac_mode$ac_tag in | |
8686 | :[FHL]*:*);; | |
8687 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 | |
8688 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} | |
8689 | { (exit 1); exit 1; }; };; | |
8690 | :[FH]-) ac_tag=-:-;; | |
8691 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
8692 | esac | |
8693 | ac_save_IFS=$IFS | |
8694 | IFS=: | |
8695 | set x $ac_tag | |
8696 | IFS=$ac_save_IFS | |
8697 | shift | |
8698 | ac_file=$1 | |
8699 | shift | |
8700 | ||
8701 | case $ac_mode in | |
8702 | :L) ac_source=$1;; | |
8703 | :[FH]) | |
8704 | ac_file_inputs= | |
8705 | for ac_f | |
8706 | do | |
8707 | case $ac_f in | |
8708 | -) ac_f="$tmp/stdin";; | |
8709 | *) # Look for the file first in the build tree, then in the source tree | |
8710 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
8711 | # because $ac_f cannot contain `:'. | |
8712 | test -f "$ac_f" || | |
8713 | case $ac_f in | |
8714 | [\\/$]*) false;; | |
8715 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
8716 | esac || | |
8717 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 | |
8718 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
8719 | { (exit 1); exit 1; }; };; | |
8720 | esac | |
8721 | ac_file_inputs="$ac_file_inputs $ac_f" | |
8722 | done | |
8723 | ||
8724 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
8725 | # use $as_me), people would be surprised to read: | |
8726 | # /* config.h. Generated by config.status. */ | |
8727 | configure_input="Generated from "`IFS=: | |
8728 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." | |
8729 | if test x"$ac_file" != x-; then | |
8730 | configure_input="$ac_file. $configure_input" | |
8731 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
8732 | echo "$as_me: creating $ac_file" >&6;} | |
8733 | fi | |
8734 | ||
8735 | case $ac_tag in | |
8736 | *:-:* | *:-) cat >"$tmp/stdin";; | |
8737 | esac | |
8738 | ;; | |
e91b9f68 A |
8739 | esac |
8740 | ||
5b0a4722 | 8741 | ac_dir=`$as_dirname -- "$ac_file" || |
e91b9f68 A |
8742 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8743 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
8744 | X"$ac_file" : 'X\(//\)$' \| \ | |
5b0a4722 | 8745 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
e91b9f68 | 8746 | echo X"$ac_file" | |
5b0a4722 A |
8747 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
8748 | s//\1/ | |
8749 | q | |
8750 | } | |
8751 | /^X\(\/\/\)[^/].*/{ | |
8752 | s//\1/ | |
8753 | q | |
8754 | } | |
8755 | /^X\(\/\/\)$/{ | |
8756 | s//\1/ | |
8757 | q | |
8758 | } | |
8759 | /^X\(\/\).*/{ | |
8760 | s//\1/ | |
8761 | q | |
8762 | } | |
8763 | s/.*/./; q'` | |
8764 | { as_dir="$ac_dir" | |
8765 | case $as_dir in #( | |
8766 | -*) as_dir=./$as_dir;; | |
8767 | esac | |
8768 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
e91b9f68 | 8769 | as_dirs= |
5b0a4722 A |
8770 | while :; do |
8771 | case $as_dir in #( | |
8772 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( | |
8773 | *) as_qdir=$as_dir;; | |
8774 | esac | |
8775 | as_dirs="'$as_qdir' $as_dirs" | |
8776 | as_dir=`$as_dirname -- "$as_dir" || | |
e91b9f68 A |
8777 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8778 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
8779 | X"$as_dir" : 'X\(//\)$' \| \ | |
5b0a4722 | 8780 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
e91b9f68 | 8781 | echo X"$as_dir" | |
5b0a4722 A |
8782 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
8783 | s//\1/ | |
8784 | q | |
8785 | } | |
8786 | /^X\(\/\/\)[^/].*/{ | |
8787 | s//\1/ | |
8788 | q | |
8789 | } | |
8790 | /^X\(\/\/\)$/{ | |
8791 | s//\1/ | |
8792 | q | |
8793 | } | |
8794 | /^X\(\/\).*/{ | |
8795 | s//\1/ | |
8796 | q | |
8797 | } | |
8798 | s/.*/./; q'` | |
8799 | test -d "$as_dir" && break | |
e91b9f68 | 8800 | done |
5b0a4722 A |
8801 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
8802 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
8803 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
e91b9f68 | 8804 | { (exit 1); exit 1; }; }; } |
e91b9f68 A |
8805 | ac_builddir=. |
8806 | ||
5b0a4722 A |
8807 | case "$ac_dir" in |
8808 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
8809 | *) | |
e91b9f68 | 8810 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
5b0a4722 A |
8811 | # A ".." for each directory in $ac_dir_suffix. |
8812 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | |
8813 | case $ac_top_builddir_sub in | |
8814 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
8815 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
8816 | esac ;; | |
8817 | esac | |
8818 | ac_abs_top_builddir=$ac_pwd | |
8819 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
8820 | # for backward compatibility: | |
8821 | ac_top_builddir=$ac_top_build_prefix | |
e91b9f68 A |
8822 | |
8823 | case $srcdir in | |
5b0a4722 | 8824 | .) # We are building in place. |
e91b9f68 | 8825 | ac_srcdir=. |
5b0a4722 A |
8826 | ac_top_srcdir=$ac_top_builddir_sub |
8827 | ac_abs_top_srcdir=$ac_pwd ;; | |
8828 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
e91b9f68 | 8829 | ac_srcdir=$srcdir$ac_dir_suffix; |
5b0a4722 A |
8830 | ac_top_srcdir=$srcdir |
8831 | ac_abs_top_srcdir=$srcdir ;; | |
8832 | *) # Relative name. | |
8833 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
8834 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
8835 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
e91b9f68 | 8836 | esac |
5b0a4722 | 8837 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
e91b9f68 | 8838 | |
e91b9f68 | 8839 | |
5b0a4722 A |
8840 | case $ac_mode in |
8841 | :F) | |
8842 | # | |
8843 | # CONFIG_FILE | |
8844 | # | |
e91b9f68 A |
8845 | |
8846 | case $INSTALL in | |
8847 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
5b0a4722 A |
8848 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
8849 | esac | |
8850 | ac_MKDIR_P=$MKDIR_P | |
8851 | case $MKDIR_P in | |
8852 | [\\/$]* | ?:[\\/]* ) ;; | |
8853 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
e91b9f68 | 8854 | esac |
5b0a4722 | 8855 | _ACEOF |
e91b9f68 | 8856 | |
5b0a4722 A |
8857 | cat >>$CONFIG_STATUS <<\_ACEOF |
8858 | # If the template does not know about datarootdir, expand it. | |
8859 | # FIXME: This hack should be removed a few years after 2.60. | |
8860 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
8861 | ||
8862 | case `sed -n '/datarootdir/ { | |
8863 | p | |
8864 | q | |
8865 | } | |
8866 | /@datadir@/p | |
8867 | /@docdir@/p | |
8868 | /@infodir@/p | |
8869 | /@localedir@/p | |
8870 | /@mandir@/p | |
8871 | ' $ac_file_inputs` in | |
8872 | *datarootdir*) ac_datarootdir_seen=yes;; | |
8873 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
8874 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
8875 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
e91b9f68 | 8876 | _ACEOF |
5b0a4722 A |
8877 | cat >>$CONFIG_STATUS <<_ACEOF |
8878 | ac_datarootdir_hack=' | |
8879 | s&@datadir@&$datadir&g | |
8880 | s&@docdir@&$docdir&g | |
8881 | s&@infodir@&$infodir&g | |
8882 | s&@localedir@&$localedir&g | |
8883 | s&@mandir@&$mandir&g | |
8884 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
8885 | esac | |
8886 | _ACEOF | |
8887 | ||
8888 | # Neutralize VPATH when `$srcdir' = `.'. | |
8889 | # Shell code in configure.ac might set extrasub. | |
8890 | # FIXME: do we really want to maintain this feature? | |
e91b9f68 A |
8891 | cat >>$CONFIG_STATUS <<_ACEOF |
8892 | sed "$ac_vpsub | |
8893 | $extrasub | |
8894 | _ACEOF | |
8895 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8896 | :t | |
8897 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
5b0a4722 A |
8898 | s&@configure_input@&$configure_input&;t t |
8899 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
8900 | s&@srcdir@&$ac_srcdir&;t t | |
8901 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
8902 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
8903 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
8904 | s&@builddir@&$ac_builddir&;t t | |
8905 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
8906 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
8907 | s&@INSTALL@&$ac_INSTALL&;t t | |
8908 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
8909 | $ac_datarootdir_hack | |
8910 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out | |
8911 | ||
8912 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
8913 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
8914 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
8915 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
8916 | which seems to be undefined. Please make sure it is defined." >&5 | |
8917 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
8918 | which seems to be undefined. Please make sure it is defined." >&2;} | |
8919 | ||
8920 | rm -f "$tmp/stdin" | |
e91b9f68 | 8921 | case $ac_file in |
5b0a4722 A |
8922 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
8923 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; | |
e91b9f68 | 8924 | esac |
5b0a4722 A |
8925 | ;; |
8926 | :H) | |
8927 | # | |
8928 | # CONFIG_HEADER | |
8929 | # | |
8930 | _ACEOF | |
8931 | ||
8932 | # Transform confdefs.h into a sed script `conftest.defines', that | |
8933 | # substitutes the proper values into config.h.in to produce config.h. | |
8934 | rm -f conftest.defines conftest.tail | |
8935 | # First, append a space to every undef/define line, to ease matching. | |
8936 | echo 's/$/ /' >conftest.defines | |
8937 | # Then, protect against being on the right side of a sed subst, or in | |
8938 | # an unquoted here document, in config.status. If some macros were | |
8939 | # called several times there might be several #defines for the same | |
8940 | # symbol, which is useless. But do not sort them, since the last | |
8941 | # AC_DEFINE must be honored. | |
8942 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
8943 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where | |
8944 | # NAME is the cpp macro being defined, VALUE is the value it is being given. | |
8945 | # PARAMS is the parameter list in the macro definition--in most cases, it's | |
8946 | # just an empty string. | |
8947 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' | |
8948 | ac_dB='\\)[ (].*,\\1define\\2' | |
8949 | ac_dC=' ' | |
8950 | ac_dD=' ,' | |
8951 | ||
8952 | uniq confdefs.h | | |
8953 | sed -n ' | |
8954 | t rset | |
8955 | :rset | |
8956 | s/^[ ]*#[ ]*define[ ][ ]*// | |
8957 | t ok | |
8958 | d | |
8959 | :ok | |
8960 | s/[\\&,]/\\&/g | |
8961 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p | |
8962 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p | |
8963 | ' >>conftest.defines | |
8964 | ||
8965 | # Remove the space that was appended to ease matching. | |
8966 | # Then replace #undef with comments. This is necessary, for | |
e91b9f68 A |
8967 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
8968 | # on some systems where configure will not decide to define it. | |
5b0a4722 A |
8969 | # (The regexp can be short, since the line contains either #define or #undef.) |
8970 | echo 's/ $// | |
8971 | s,^[ #]*u.*,/* & */,' >>conftest.defines | |
8972 | ||
8973 | # Break up conftest.defines: | |
8974 | ac_max_sed_lines=50 | |
8975 | ||
8976 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" | |
8977 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" | |
8978 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" | |
8979 | # et cetera. | |
8980 | ac_in='$ac_file_inputs' | |
8981 | ac_out='"$tmp/out1"' | |
8982 | ac_nxt='"$tmp/out2"' | |
8983 | ||
8984 | while : | |
e91b9f68 | 8985 | do |
5b0a4722 A |
8986 | # Write a here document: |
8987 | cat >>$CONFIG_STATUS <<_ACEOF | |
8988 | # First, check the format of the line: | |
8989 | cat >"\$tmp/defines.sed" <<\\CEOF | |
8990 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def | |
8991 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def | |
8992 | b | |
8993 | :def | |
8994 | _ACEOF | |
8995 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS | |
e91b9f68 | 8996 | echo 'CEOF |
5b0a4722 A |
8997 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
8998 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in | |
8999 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail | |
9000 | grep . conftest.tail >/dev/null || break | |
e91b9f68 A |
9001 | rm -f conftest.defines |
9002 | mv conftest.tail conftest.defines | |
9003 | done | |
5b0a4722 | 9004 | rm -f conftest.defines conftest.tail |
e91b9f68 | 9005 | |
5b0a4722 | 9006 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
e91b9f68 | 9007 | cat >>$CONFIG_STATUS <<\_ACEOF |
e91b9f68 | 9008 | if test x"$ac_file" != x-; then |
5b0a4722 A |
9009 | echo "/* $configure_input */" >"$tmp/config.h" |
9010 | cat "$ac_result" >>"$tmp/config.h" | |
9011 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then | |
e91b9f68 A |
9012 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
9013 | echo "$as_me: $ac_file is unchanged" >&6;} | |
9014 | else | |
e91b9f68 | 9015 | rm -f $ac_file |
5b0a4722 | 9016 | mv "$tmp/config.h" $ac_file |
e91b9f68 A |
9017 | fi |
9018 | else | |
5b0a4722 A |
9019 | echo "/* $configure_input */" |
9020 | cat "$ac_result" | |
e91b9f68 | 9021 | fi |
5b0a4722 A |
9022 | rm -f "$tmp/out12" |
9023 | # Compute $ac_file's index in $config_headers. | |
9024 | _am_stamp_count=1 | |
9025 | for _am_header in $config_headers :; do | |
9026 | case $_am_header in | |
9027 | $ac_file | $ac_file:* ) | |
9028 | break ;; | |
9029 | * ) | |
9030 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
e91b9f68 A |
9031 | esac |
9032 | done | |
5b0a4722 A |
9033 | echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || |
9034 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
9035 | X$ac_file : 'X\(//\)[^/]' \| \ | |
9036 | X$ac_file : 'X\(//\)$' \| \ | |
9037 | X$ac_file : 'X\(/\)' \| . 2>/dev/null || | |
9038 | echo X$ac_file | | |
9039 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
9040 | s//\1/ | |
9041 | q | |
9042 | } | |
9043 | /^X\(\/\/\)[^/].*/{ | |
9044 | s//\1/ | |
9045 | q | |
9046 | } | |
9047 | /^X\(\/\/\)$/{ | |
9048 | s//\1/ | |
9049 | q | |
9050 | } | |
9051 | /^X\(\/\).*/{ | |
9052 | s//\1/ | |
9053 | q | |
9054 | } | |
9055 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
9056 | ;; | |
e91b9f68 | 9057 | |
5b0a4722 A |
9058 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
9059 | echo "$as_me: executing $ac_file commands" >&6;} | |
9060 | ;; | |
9061 | esac | |
e91b9f68 A |
9062 | |
9063 | ||
5b0a4722 A |
9064 | case $ac_file$ac_mode in |
9065 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do | |
e91b9f68 A |
9066 | # Strip MF so we end up with the name of the file. |
9067 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
9068 | # Check whether this is an Automake generated Makefile or not. | |
9069 | # We used to match only the files named `Makefile.in', but | |
9070 | # some people rename them; so instead we look at the file content. | |
9071 | # Grep'ing the first line is not enough: some people post-process | |
9072 | # each Makefile.in and add a new line on top of each file to say so. | |
5b0a4722 A |
9073 | # Grep'ing the whole file is not good either: AIX grep has a line |
9074 | # limit of 2048, but all sed's we know have understand at least 4000. | |
9075 | if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then | |
9076 | dirpart=`$as_dirname -- "$mf" || | |
e91b9f68 A |
9077 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
9078 | X"$mf" : 'X\(//\)[^/]' \| \ | |
9079 | X"$mf" : 'X\(//\)$' \| \ | |
5b0a4722 | 9080 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
e91b9f68 | 9081 | echo X"$mf" | |
5b0a4722 A |
9082 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
9083 | s//\1/ | |
9084 | q | |
9085 | } | |
9086 | /^X\(\/\/\)[^/].*/{ | |
9087 | s//\1/ | |
9088 | q | |
9089 | } | |
9090 | /^X\(\/\/\)$/{ | |
9091 | s//\1/ | |
9092 | q | |
9093 | } | |
9094 | /^X\(\/\).*/{ | |
9095 | s//\1/ | |
9096 | q | |
9097 | } | |
9098 | s/.*/./; q'` | |
e91b9f68 A |
9099 | else |
9100 | continue | |
9101 | fi | |
5b0a4722 A |
9102 | # Extract the definition of DEPDIR, am__include, and am__quote |
9103 | # from the Makefile without running `make'. | |
9104 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
e91b9f68 | 9105 | test -z "$DEPDIR" && continue |
5b0a4722 A |
9106 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
9107 | test -z "am__include" && continue | |
9108 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
e91b9f68 | 9109 | # When using ansi2knr, U may be empty or an underscore; expand it |
5b0a4722 A |
9110 | U=`sed -n 's/^U = //p' < "$mf"` |
9111 | # Find all dependency output files, they are included files with | |
9112 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
9113 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
9114 | # expansion. | |
9115 | for file in `sed -n " | |
9116 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
e91b9f68 A |
9117 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
9118 | # Make sure the directory exists. | |
9119 | test -f "$dirpart/$file" && continue | |
5b0a4722 | 9120 | fdir=`$as_dirname -- "$file" || |
e91b9f68 A |
9121 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
9122 | X"$file" : 'X\(//\)[^/]' \| \ | |
9123 | X"$file" : 'X\(//\)$' \| \ | |
5b0a4722 | 9124 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
e91b9f68 | 9125 | echo X"$file" | |
5b0a4722 A |
9126 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
9127 | s//\1/ | |
9128 | q | |
9129 | } | |
9130 | /^X\(\/\/\)[^/].*/{ | |
9131 | s//\1/ | |
9132 | q | |
9133 | } | |
9134 | /^X\(\/\/\)$/{ | |
9135 | s//\1/ | |
9136 | q | |
9137 | } | |
9138 | /^X\(\/\).*/{ | |
9139 | s//\1/ | |
9140 | q | |
9141 | } | |
9142 | s/.*/./; q'` | |
9143 | { as_dir=$dirpart/$fdir | |
9144 | case $as_dir in #( | |
9145 | -*) as_dir=./$as_dir;; | |
9146 | esac | |
9147 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
e91b9f68 | 9148 | as_dirs= |
5b0a4722 A |
9149 | while :; do |
9150 | case $as_dir in #( | |
9151 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( | |
9152 | *) as_qdir=$as_dir;; | |
9153 | esac | |
9154 | as_dirs="'$as_qdir' $as_dirs" | |
9155 | as_dir=`$as_dirname -- "$as_dir" || | |
e91b9f68 A |
9156 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
9157 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
9158 | X"$as_dir" : 'X\(//\)$' \| \ | |
5b0a4722 | 9159 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
e91b9f68 | 9160 | echo X"$as_dir" | |
5b0a4722 A |
9161 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
9162 | s//\1/ | |
9163 | q | |
9164 | } | |
9165 | /^X\(\/\/\)[^/].*/{ | |
9166 | s//\1/ | |
9167 | q | |
9168 | } | |
9169 | /^X\(\/\/\)$/{ | |
9170 | s//\1/ | |
9171 | q | |
9172 | } | |
9173 | /^X\(\/\).*/{ | |
9174 | s//\1/ | |
9175 | q | |
9176 | } | |
9177 | s/.*/./; q'` | |
9178 | test -d "$as_dir" && break | |
e91b9f68 | 9179 | done |
5b0a4722 A |
9180 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
9181 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
9182 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
e91b9f68 | 9183 | { (exit 1); exit 1; }; }; } |
e91b9f68 A |
9184 | # echo "creating $dirpart/$file" |
9185 | echo '# dummy' > "$dirpart/$file" | |
9186 | done | |
9187 | done | |
9188 | ;; | |
5b0a4722 | 9189 | |
e91b9f68 | 9190 | esac |
5b0a4722 | 9191 | done # for ac_tag |
e91b9f68 | 9192 | |
e91b9f68 A |
9193 | |
9194 | { (exit 0); exit 0; } | |
9195 | _ACEOF | |
9196 | chmod +x $CONFIG_STATUS | |
9197 | ac_clean_files=$ac_clean_files_save | |
9198 | ||
9199 | ||
9200 | # configure is writing to config.log, and then calls config.status. | |
9201 | # config.status does its own redirection, appending to config.log. | |
9202 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
9203 | # by configure, so config.status won't be able to write to it; its | |
9204 | # output is simply discarded. So we exec the FD to /dev/null, | |
9205 | # effectively closing config.log, so it can be properly (re)opened and | |
9206 | # appended to by config.status. When coming back to configure, we | |
9207 | # need to make the FD available again. | |
9208 | if test "$no_create" != yes; then | |
9209 | ac_cs_success=: | |
9210 | ac_config_status_args= | |
9211 | test "$silent" = yes && | |
9212 | ac_config_status_args="$ac_config_status_args --quiet" | |
9213 | exec 5>/dev/null | |
9214 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
9215 | exec 5>>config.log | |
9216 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
9217 | # would make configure fail if this is the last instruction. | |
9218 | $ac_cs_success || { (exit 1); exit 1; } | |
9219 | fi | |
9220 |