]> git.saurik.com Git - apple/launchd.git/blob - launchd/configure
029a88c70d7b6772a88a59a4d626408981aeebe5
[apple/launchd.git] / launchd / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for launchd 1.0.
4 #
5 # Report bugs to <launchd-bug-reports@group.apple.com>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
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
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
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+"$@"}'='"$@"'
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
53 fi
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
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
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
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
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114 fi
115 done
116
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
120 as_expr=expr
121 else
122 as_expr=false
123 fi
124
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 as_basename=basename
127 else
128 as_basename=false
129 fi
130
131
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
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'`
151
152 # CDPATH.
153 $as_unset CDPATH
154
155
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
161 fi
162
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 }
179
180 exitcode=0
181 if as_func_success; then
182 :
183 else
184 exitcode=1
185 echo as_func_success failed.
186 fi
187
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=
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=.
228 case $as_dir in
229 /*)
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 (
330 as_lineno_1=$LINENO
331 as_lineno_2=$LINENO
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
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" || {
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
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.
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
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 |
444 sed '
445 s/[$]LINENO.*/&-/
446 t lineno
447 b
448 :lineno
449 N
450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 t loop
453 s/-\n.*//
454 ' >$as_me.lineno &&
455 chmod +x "$as_me.lineno" ||
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
461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
463 # Exit status is that of the last command.
464 exit
465 }
466
467
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';;
483 esac
484
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
487 as_expr=expr
488 else
489 as_expr=false
490 fi
491
492 rm -f conf$$ conf$$.exe conf$$.file
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
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
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 ||
507 as_ln_s='cp -p'
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
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
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
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
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
553
554 exec 7<&0 </dev/null 6>&1
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
561 #
562 # Initializations.
563 #
564 ac_default_prefix=/usr/local
565 ac_clean_files=
566 ac_config_libobj_dir=.
567 LIBOBJS=
568 cross_compiling=no
569 subdirs=
570 MFLAGS=
571 MAKEFLAGS=
572 SHELL=${CONFIG_SHELL-/bin/sh}
573
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
581 ac_unique_file="src/launchd.c"
582 # Factoring default headers for most tests.
583 ac_includes_default="\
584 #include <stdio.h>
585 #ifdef HAVE_SYS_TYPES_H
586 # include <sys/types.h>
587 #endif
588 #ifdef HAVE_SYS_STAT_H
589 # include <sys/stat.h>
590 #endif
591 #ifdef STDC_HEADERS
592 # include <stdlib.h>
593 # include <stddef.h>
594 #else
595 # ifdef HAVE_STDLIB_H
596 # include <stdlib.h>
597 # endif
598 #endif
599 #ifdef HAVE_STRING_H
600 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
601 # include <memory.h>
602 # endif
603 # include <string.h>
604 #endif
605 #ifdef HAVE_STRINGS_H
606 # include <strings.h>
607 #endif
608 #ifdef HAVE_INTTYPES_H
609 # include <inttypes.h>
610 #endif
611 #ifdef HAVE_STDINT_H
612 # include <stdint.h>
613 #endif
614 #ifdef HAVE_UNISTD_H
615 # include <unistd.h>
616 #endif"
617
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
701 LIBS_ONLY_TRUE
702 LIBS_ONLY_FALSE
703 LTLIBOBJS'
704 ac_subst_files=''
705 ac_precious_vars='build_alias
706 host_alias
707 target_alias
708 CC
709 CFLAGS
710 LDFLAGS
711 LIBS
712 CPPFLAGS
713 CPP'
714
715
716 # Initialize some variables set by options.
717 ac_init_help=
718 ac_init_version=false
719 # The variables have the same names as the options, with
720 # dashes changed to underlines.
721 cache_file=/dev/null
722 exec_prefix=NONE
723 no_create=
724 no_recursion=
725 prefix=NONE
726 program_prefix=NONE
727 program_suffix=NONE
728 program_transform_name=s,x,x,
729 silent=
730 site=
731 srcdir=
732 verbose=
733 x_includes=NONE
734 x_libraries=NONE
735
736 # Installation directory options.
737 # These are left unexpanded so users can "make install exec_prefix=/foo"
738 # and all the variables that are supposed to be based on exec_prefix
739 # by default will actually change.
740 # Use braces instead of parens because sh, perl, etc. also accept them.
741 # (The list follows the same order as the GNU Coding Standards.)
742 bindir='${exec_prefix}/bin'
743 sbindir='${exec_prefix}/sbin'
744 libexecdir='${exec_prefix}/libexec'
745 datarootdir='${prefix}/share'
746 datadir='${datarootdir}'
747 sysconfdir='${prefix}/etc'
748 sharedstatedir='${prefix}/com'
749 localstatedir='${prefix}/var'
750 includedir='${prefix}/include'
751 oldincludedir='/usr/include'
752 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
753 infodir='${datarootdir}/info'
754 htmldir='${docdir}'
755 dvidir='${docdir}'
756 pdfdir='${docdir}'
757 psdir='${docdir}'
758 libdir='${exec_prefix}/lib'
759 localedir='${datarootdir}/locale'
760 mandir='${datarootdir}/man'
761
762 ac_prev=
763 ac_dashdash=
764 for ac_option
765 do
766 # If the previous option needs an argument, assign it.
767 if test -n "$ac_prev"; then
768 eval $ac_prev=\$ac_option
769 ac_prev=
770 continue
771 fi
772
773 case $ac_option in
774 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
775 *) ac_optarg=yes ;;
776 esac
777
778 # Accept the important Cygnus configure options, so we can diagnose typos.
779
780 case $ac_dashdash$ac_option in
781 --)
782 ac_dashdash=yes ;;
783
784 -bindir | --bindir | --bindi | --bind | --bin | --bi)
785 ac_prev=bindir ;;
786 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
787 bindir=$ac_optarg ;;
788
789 -build | --build | --buil | --bui | --bu)
790 ac_prev=build_alias ;;
791 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
792 build_alias=$ac_optarg ;;
793
794 -cache-file | --cache-file | --cache-fil | --cache-fi \
795 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
796 ac_prev=cache_file ;;
797 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
798 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
799 cache_file=$ac_optarg ;;
800
801 --config-cache | -C)
802 cache_file=config.cache ;;
803
804 -datadir | --datadir | --datadi | --datad)
805 ac_prev=datadir ;;
806 -datadir=* | --datadir=* | --datadi=* | --datad=*)
807 datadir=$ac_optarg ;;
808
809 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
810 | --dataroo | --dataro | --datar)
811 ac_prev=datarootdir ;;
812 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
813 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
814 datarootdir=$ac_optarg ;;
815
816 -disable-* | --disable-*)
817 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
818 # Reject names that are not valid shell variable names.
819 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
820 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
821 { (exit 1); exit 1; }; }
822 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
823 eval enable_$ac_feature=no ;;
824
825 -docdir | --docdir | --docdi | --doc | --do)
826 ac_prev=docdir ;;
827 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
828 docdir=$ac_optarg ;;
829
830 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
831 ac_prev=dvidir ;;
832 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
833 dvidir=$ac_optarg ;;
834
835 -enable-* | --enable-*)
836 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
837 # Reject names that are not valid shell variable names.
838 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
839 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
840 { (exit 1); exit 1; }; }
841 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
842 eval enable_$ac_feature=\$ac_optarg ;;
843
844 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
845 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
846 | --exec | --exe | --ex)
847 ac_prev=exec_prefix ;;
848 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
849 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
850 | --exec=* | --exe=* | --ex=*)
851 exec_prefix=$ac_optarg ;;
852
853 -gas | --gas | --ga | --g)
854 # Obsolete; use --with-gas.
855 with_gas=yes ;;
856
857 -help | --help | --hel | --he | -h)
858 ac_init_help=long ;;
859 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
860 ac_init_help=recursive ;;
861 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
862 ac_init_help=short ;;
863
864 -host | --host | --hos | --ho)
865 ac_prev=host_alias ;;
866 -host=* | --host=* | --hos=* | --ho=*)
867 host_alias=$ac_optarg ;;
868
869 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
870 ac_prev=htmldir ;;
871 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
872 | --ht=*)
873 htmldir=$ac_optarg ;;
874
875 -includedir | --includedir | --includedi | --included | --include \
876 | --includ | --inclu | --incl | --inc)
877 ac_prev=includedir ;;
878 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
879 | --includ=* | --inclu=* | --incl=* | --inc=*)
880 includedir=$ac_optarg ;;
881
882 -infodir | --infodir | --infodi | --infod | --info | --inf)
883 ac_prev=infodir ;;
884 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
885 infodir=$ac_optarg ;;
886
887 -libdir | --libdir | --libdi | --libd)
888 ac_prev=libdir ;;
889 -libdir=* | --libdir=* | --libdi=* | --libd=*)
890 libdir=$ac_optarg ;;
891
892 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
893 | --libexe | --libex | --libe)
894 ac_prev=libexecdir ;;
895 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
896 | --libexe=* | --libex=* | --libe=*)
897 libexecdir=$ac_optarg ;;
898
899 -localedir | --localedir | --localedi | --localed | --locale)
900 ac_prev=localedir ;;
901 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
902 localedir=$ac_optarg ;;
903
904 -localstatedir | --localstatedir | --localstatedi | --localstated \
905 | --localstate | --localstat | --localsta | --localst | --locals)
906 ac_prev=localstatedir ;;
907 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
908 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
909 localstatedir=$ac_optarg ;;
910
911 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
912 ac_prev=mandir ;;
913 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
914 mandir=$ac_optarg ;;
915
916 -nfp | --nfp | --nf)
917 # Obsolete; use --without-fp.
918 with_fp=no ;;
919
920 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
921 | --no-cr | --no-c | -n)
922 no_create=yes ;;
923
924 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
925 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
926 no_recursion=yes ;;
927
928 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
929 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
930 | --oldin | --oldi | --old | --ol | --o)
931 ac_prev=oldincludedir ;;
932 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
933 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
934 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
935 oldincludedir=$ac_optarg ;;
936
937 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
938 ac_prev=prefix ;;
939 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
940 prefix=$ac_optarg ;;
941
942 -program-prefix | --program-prefix | --program-prefi | --program-pref \
943 | --program-pre | --program-pr | --program-p)
944 ac_prev=program_prefix ;;
945 -program-prefix=* | --program-prefix=* | --program-prefi=* \
946 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
947 program_prefix=$ac_optarg ;;
948
949 -program-suffix | --program-suffix | --program-suffi | --program-suff \
950 | --program-suf | --program-su | --program-s)
951 ac_prev=program_suffix ;;
952 -program-suffix=* | --program-suffix=* | --program-suffi=* \
953 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
954 program_suffix=$ac_optarg ;;
955
956 -program-transform-name | --program-transform-name \
957 | --program-transform-nam | --program-transform-na \
958 | --program-transform-n | --program-transform- \
959 | --program-transform | --program-transfor \
960 | --program-transfo | --program-transf \
961 | --program-trans | --program-tran \
962 | --progr-tra | --program-tr | --program-t)
963 ac_prev=program_transform_name ;;
964 -program-transform-name=* | --program-transform-name=* \
965 | --program-transform-nam=* | --program-transform-na=* \
966 | --program-transform-n=* | --program-transform-=* \
967 | --program-transform=* | --program-transfor=* \
968 | --program-transfo=* | --program-transf=* \
969 | --program-trans=* | --program-tran=* \
970 | --progr-tra=* | --program-tr=* | --program-t=*)
971 program_transform_name=$ac_optarg ;;
972
973 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
974 ac_prev=pdfdir ;;
975 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
976 pdfdir=$ac_optarg ;;
977
978 -psdir | --psdir | --psdi | --psd | --ps)
979 ac_prev=psdir ;;
980 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
981 psdir=$ac_optarg ;;
982
983 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
984 | -silent | --silent | --silen | --sile | --sil)
985 silent=yes ;;
986
987 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
988 ac_prev=sbindir ;;
989 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
990 | --sbi=* | --sb=*)
991 sbindir=$ac_optarg ;;
992
993 -sharedstatedir | --sharedstatedir | --sharedstatedi \
994 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
995 | --sharedst | --shareds | --shared | --share | --shar \
996 | --sha | --sh)
997 ac_prev=sharedstatedir ;;
998 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
999 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1000 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1001 | --sha=* | --sh=*)
1002 sharedstatedir=$ac_optarg ;;
1003
1004 -site | --site | --sit)
1005 ac_prev=site ;;
1006 -site=* | --site=* | --sit=*)
1007 site=$ac_optarg ;;
1008
1009 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1010 ac_prev=srcdir ;;
1011 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1012 srcdir=$ac_optarg ;;
1013
1014 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1015 | --syscon | --sysco | --sysc | --sys | --sy)
1016 ac_prev=sysconfdir ;;
1017 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1018 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1019 sysconfdir=$ac_optarg ;;
1020
1021 -target | --target | --targe | --targ | --tar | --ta | --t)
1022 ac_prev=target_alias ;;
1023 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1024 target_alias=$ac_optarg ;;
1025
1026 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1027 verbose=yes ;;
1028
1029 -version | --version | --versio | --versi | --vers | -V)
1030 ac_init_version=: ;;
1031
1032 -with-* | --with-*)
1033 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1034 # Reject names that are not valid shell variable names.
1035 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1036 { echo "$as_me: error: invalid package name: $ac_package" >&2
1037 { (exit 1); exit 1; }; }
1038 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1039 eval with_$ac_package=\$ac_optarg ;;
1040
1041 -without-* | --without-*)
1042 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1043 # Reject names that are not valid shell variable names.
1044 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1045 { echo "$as_me: error: invalid package name: $ac_package" >&2
1046 { (exit 1); exit 1; }; }
1047 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1048 eval with_$ac_package=no ;;
1049
1050 --x)
1051 # Obsolete; use --with-x.
1052 with_x=yes ;;
1053
1054 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1055 | --x-incl | --x-inc | --x-in | --x-i)
1056 ac_prev=x_includes ;;
1057 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1058 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1059 x_includes=$ac_optarg ;;
1060
1061 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1062 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1063 ac_prev=x_libraries ;;
1064 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1065 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1066 x_libraries=$ac_optarg ;;
1067
1068 -*) { echo "$as_me: error: unrecognized option: $ac_option
1069 Try \`$0 --help' for more information." >&2
1070 { (exit 1); exit 1; }; }
1071 ;;
1072
1073 *=*)
1074 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1075 # Reject names that are not valid shell variable names.
1076 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1077 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1078 { (exit 1); exit 1; }; }
1079 eval $ac_envvar=\$ac_optarg
1080 export $ac_envvar ;;
1081
1082 *)
1083 # FIXME: should be removed in autoconf 3.0.
1084 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1085 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1086 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1087 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1088 ;;
1089
1090 esac
1091 done
1092
1093 if test -n "$ac_prev"; then
1094 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1095 { echo "$as_me: error: missing argument to $ac_option" >&2
1096 { (exit 1); exit 1; }; }
1097 fi
1098
1099 # Be sure to have absolute directory names.
1100 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1101 datadir sysconfdir sharedstatedir localstatedir includedir \
1102 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1103 libdir localedir mandir
1104 do
1105 eval ac_val=\$$ac_var
1106 case $ac_val in
1107 [\\/$]* | ?:[\\/]* ) continue;;
1108 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1109 esac
1110 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1111 { (exit 1); exit 1; }; }
1112 done
1113
1114 # There might be people who depend on the old broken behavior: `$host'
1115 # used to hold the argument of --host etc.
1116 # FIXME: To remove some day.
1117 build=$build_alias
1118 host=$host_alias
1119 target=$target_alias
1120
1121 # FIXME: To remove some day.
1122 if test "x$host_alias" != x; then
1123 if test "x$build_alias" = x; then
1124 cross_compiling=maybe
1125 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1126 If a cross compiler is detected then cross compile mode will be used." >&2
1127 elif test "x$build_alias" != "x$host_alias"; then
1128 cross_compiling=yes
1129 fi
1130 fi
1131
1132 ac_tool_prefix=
1133 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1134
1135 test "$silent" = yes && exec 6>/dev/null
1136
1137
1138 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1139 ac_ls_di=`ls -di .` &&
1140 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1141 { echo "$as_me: error: Working directory cannot be determined" >&2
1142 { (exit 1); exit 1; }; }
1143 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1144 { echo "$as_me: error: pwd does not report name of working directory" >&2
1145 { (exit 1); exit 1; }; }
1146
1147
1148 # Find the source files, if location was not specified.
1149 if test -z "$srcdir"; then
1150 ac_srcdir_defaulted=yes
1151 # Try the directory containing this script, then the parent directory.
1152 ac_confdir=`$as_dirname -- "$0" ||
1153 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1154 X"$0" : 'X\(//\)[^/]' \| \
1155 X"$0" : 'X\(//\)$' \| \
1156 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1157 echo X"$0" |
1158 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1159 s//\1/
1160 q
1161 }
1162 /^X\(\/\/\)[^/].*/{
1163 s//\1/
1164 q
1165 }
1166 /^X\(\/\/\)$/{
1167 s//\1/
1168 q
1169 }
1170 /^X\(\/\).*/{
1171 s//\1/
1172 q
1173 }
1174 s/.*/./; q'`
1175 srcdir=$ac_confdir
1176 if test ! -r "$srcdir/$ac_unique_file"; then
1177 srcdir=..
1178 fi
1179 else
1180 ac_srcdir_defaulted=no
1181 fi
1182 if test ! -r "$srcdir/$ac_unique_file"; then
1183 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1184 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1185 { (exit 1); exit 1; }; }
1186 fi
1187 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1188 ac_abs_confdir=`(
1189 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1190 { (exit 1); exit 1; }; }
1191 pwd)`
1192 # When building in place, set srcdir=.
1193 if test "$ac_abs_confdir" = "$ac_pwd"; then
1194 srcdir=.
1195 fi
1196 # Remove unnecessary trailing slashes from srcdir.
1197 # Double slashes in file names in object file debugging info
1198 # mess up M-x gdb in Emacs.
1199 case $srcdir in
1200 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1201 esac
1202 for ac_var in $ac_precious_vars; do
1203 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1204 eval ac_env_${ac_var}_value=\$${ac_var}
1205 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1206 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1207 done
1208
1209 #
1210 # Report the --help message.
1211 #
1212 if test "$ac_init_help" = "long"; then
1213 # Omit some internal or obsolete options to make the list less imposing.
1214 # This message is too long to be a string in the A/UX 3.1 sh.
1215 cat <<_ACEOF
1216 \`configure' configures launchd 1.0 to adapt to many kinds of systems.
1217
1218 Usage: $0 [OPTION]... [VAR=VALUE]...
1219
1220 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1221 VAR=VALUE. See below for descriptions of some of the useful variables.
1222
1223 Defaults for the options are specified in brackets.
1224
1225 Configuration:
1226 -h, --help display this help and exit
1227 --help=short display options specific to this package
1228 --help=recursive display the short help of all the included packages
1229 -V, --version display version information and exit
1230 -q, --quiet, --silent do not print \`checking...' messages
1231 --cache-file=FILE cache test results in FILE [disabled]
1232 -C, --config-cache alias for \`--cache-file=config.cache'
1233 -n, --no-create do not create output files
1234 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1235
1236 Installation directories:
1237 --prefix=PREFIX install architecture-independent files in PREFIX
1238 [$ac_default_prefix]
1239 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1240 [PREFIX]
1241
1242 By default, \`make install' will install all the files in
1243 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1244 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1245 for instance \`--prefix=\$HOME'.
1246
1247 For better control, use the options below.
1248
1249 Fine tuning of the installation directories:
1250 --bindir=DIR user executables [EPREFIX/bin]
1251 --sbindir=DIR system admin executables [EPREFIX/sbin]
1252 --libexecdir=DIR program executables [EPREFIX/libexec]
1253 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1254 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1255 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1256 --libdir=DIR object code libraries [EPREFIX/lib]
1257 --includedir=DIR C header files [PREFIX/include]
1258 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1259 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1260 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1261 --infodir=DIR info documentation [DATAROOTDIR/info]
1262 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1263 --mandir=DIR man documentation [DATAROOTDIR/man]
1264 --docdir=DIR documentation root [DATAROOTDIR/doc/launchd]
1265 --htmldir=DIR html documentation [DOCDIR]
1266 --dvidir=DIR dvi documentation [DOCDIR]
1267 --pdfdir=DIR pdf documentation [DOCDIR]
1268 --psdir=DIR ps documentation [DOCDIR]
1269 _ACEOF
1270
1271 cat <<\_ACEOF
1272
1273 Program names:
1274 --program-prefix=PREFIX prepend PREFIX to installed program names
1275 --program-suffix=SUFFIX append SUFFIX to installed program names
1276 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1277 _ACEOF
1278 fi
1279
1280 if test -n "$ac_init_help"; then
1281 case $ac_init_help in
1282 short | recursive ) echo "Configuration of launchd 1.0:";;
1283 esac
1284 cat <<\_ACEOF
1285
1286 Optional Features:
1287 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1288 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1289 --disable-dependency-tracking speeds up one-time build
1290 --enable-dependency-tracking do not reject slow dependency extractors
1291
1292 Some influential environment variables:
1293 CC C compiler command
1294 CFLAGS C compiler flags
1295 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1296 nonstandard directory <lib dir>
1297 LIBS libraries to pass to the linker, e.g. -l<library>
1298 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1299 you have headers in a nonstandard directory <include dir>
1300 CPP C preprocessor
1301
1302 Use these variables to override the choices made by `configure' or to help
1303 it to find libraries and programs with nonstandard names/locations.
1304
1305 Report bugs to <launchd-bug-reports@group.apple.com>.
1306 _ACEOF
1307 ac_status=$?
1308 fi
1309
1310 if test "$ac_init_help" = "recursive"; then
1311 # If there are subdirs, report their specific --help.
1312 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1313 test -d "$ac_dir" || continue
1314 ac_builddir=.
1315
1316 case "$ac_dir" in
1317 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1318 *)
1319 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1320 # A ".." for each directory in $ac_dir_suffix.
1321 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1322 case $ac_top_builddir_sub in
1323 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1324 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1325 esac ;;
1326 esac
1327 ac_abs_top_builddir=$ac_pwd
1328 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1329 # for backward compatibility:
1330 ac_top_builddir=$ac_top_build_prefix
1331
1332 case $srcdir in
1333 .) # We are building in place.
1334 ac_srcdir=.
1335 ac_top_srcdir=$ac_top_builddir_sub
1336 ac_abs_top_srcdir=$ac_pwd ;;
1337 [\\/]* | ?:[\\/]* ) # Absolute name.
1338 ac_srcdir=$srcdir$ac_dir_suffix;
1339 ac_top_srcdir=$srcdir
1340 ac_abs_top_srcdir=$srcdir ;;
1341 *) # Relative name.
1342 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1343 ac_top_srcdir=$ac_top_build_prefix$srcdir
1344 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1345 esac
1346 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1347
1348 cd "$ac_dir" || { ac_status=$?; continue; }
1349 # Check for guested configure.
1350 if test -f "$ac_srcdir/configure.gnu"; then
1351 echo &&
1352 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1353 elif test -f "$ac_srcdir/configure"; then
1354 echo &&
1355 $SHELL "$ac_srcdir/configure" --help=recursive
1356 else
1357 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1358 fi || ac_status=$?
1359 cd "$ac_pwd" || { ac_status=$?; break; }
1360 done
1361 fi
1362
1363 test -n "$ac_init_help" && exit $ac_status
1364 if $ac_init_version; then
1365 cat <<\_ACEOF
1366 launchd configure 1.0
1367 generated by GNU Autoconf 2.61
1368
1369 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1370 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1371 This configure script is free software; the Free Software Foundation
1372 gives unlimited permission to copy, distribute and modify it.
1373 _ACEOF
1374 exit
1375 fi
1376 cat >config.log <<_ACEOF
1377 This file contains any messages produced by compilers while
1378 running configure, to aid debugging if configure makes a mistake.
1379
1380 It was created by launchd $as_me 1.0, which was
1381 generated by GNU Autoconf 2.61. Invocation command line was
1382
1383 $ $0 $@
1384
1385 _ACEOF
1386 exec 5>>config.log
1387 {
1388 cat <<_ASUNAME
1389 ## --------- ##
1390 ## Platform. ##
1391 ## --------- ##
1392
1393 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1394 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1395 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1396 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1397 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1398
1399 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1400 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1401
1402 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1403 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1404 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1405 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1406 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1407 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1408 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1409
1410 _ASUNAME
1411
1412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1413 for as_dir in $PATH
1414 do
1415 IFS=$as_save_IFS
1416 test -z "$as_dir" && as_dir=.
1417 echo "PATH: $as_dir"
1418 done
1419 IFS=$as_save_IFS
1420
1421 } >&5
1422
1423 cat >&5 <<_ACEOF
1424
1425
1426 ## ----------- ##
1427 ## Core tests. ##
1428 ## ----------- ##
1429
1430 _ACEOF
1431
1432
1433 # Keep a trace of the command line.
1434 # Strip out --no-create and --no-recursion so they do not pile up.
1435 # Strip out --silent because we don't want to record it for future runs.
1436 # Also quote any args containing shell meta-characters.
1437 # Make two passes to allow for proper duplicate-argument suppression.
1438 ac_configure_args=
1439 ac_configure_args0=
1440 ac_configure_args1=
1441 ac_must_keep_next=false
1442 for ac_pass in 1 2
1443 do
1444 for ac_arg
1445 do
1446 case $ac_arg in
1447 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1448 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1449 | -silent | --silent | --silen | --sile | --sil)
1450 continue ;;
1451 *\'*)
1452 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1453 esac
1454 case $ac_pass in
1455 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1456 2)
1457 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1458 if test $ac_must_keep_next = true; then
1459 ac_must_keep_next=false # Got value, back to normal.
1460 else
1461 case $ac_arg in
1462 *=* | --config-cache | -C | -disable-* | --disable-* \
1463 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1464 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1465 | -with-* | --with-* | -without-* | --without-* | --x)
1466 case "$ac_configure_args0 " in
1467 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1468 esac
1469 ;;
1470 -* ) ac_must_keep_next=true ;;
1471 esac
1472 fi
1473 ac_configure_args="$ac_configure_args '$ac_arg'"
1474 ;;
1475 esac
1476 done
1477 done
1478 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1479 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1480
1481 # When interrupted or exit'd, cleanup temporary files, and complete
1482 # config.log. We remove comments because anyway the quotes in there
1483 # would cause problems or look ugly.
1484 # WARNING: Use '\'' to represent an apostrophe within the trap.
1485 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1486 trap 'exit_status=$?
1487 # Save into config.log some information that might help in debugging.
1488 {
1489 echo
1490
1491 cat <<\_ASBOX
1492 ## ---------------- ##
1493 ## Cache variables. ##
1494 ## ---------------- ##
1495 _ASBOX
1496 echo
1497 # The following way of writing the cache mishandles newlines in values,
1498 (
1499 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1500 eval ac_val=\$$ac_var
1501 case $ac_val in #(
1502 *${as_nl}*)
1503 case $ac_var in #(
1504 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1505 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1506 esac
1507 case $ac_var in #(
1508 _ | IFS | as_nl) ;; #(
1509 *) $as_unset $ac_var ;;
1510 esac ;;
1511 esac
1512 done
1513 (set) 2>&1 |
1514 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1515 *${as_nl}ac_space=\ *)
1516 sed -n \
1517 "s/'\''/'\''\\\\'\'''\''/g;
1518 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1519 ;; #(
1520 *)
1521 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1522 ;;
1523 esac |
1524 sort
1525 )
1526 echo
1527
1528 cat <<\_ASBOX
1529 ## ----------------- ##
1530 ## Output variables. ##
1531 ## ----------------- ##
1532 _ASBOX
1533 echo
1534 for ac_var in $ac_subst_vars
1535 do
1536 eval ac_val=\$$ac_var
1537 case $ac_val in
1538 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1539 esac
1540 echo "$ac_var='\''$ac_val'\''"
1541 done | sort
1542 echo
1543
1544 if test -n "$ac_subst_files"; then
1545 cat <<\_ASBOX
1546 ## ------------------- ##
1547 ## File substitutions. ##
1548 ## ------------------- ##
1549 _ASBOX
1550 echo
1551 for ac_var in $ac_subst_files
1552 do
1553 eval ac_val=\$$ac_var
1554 case $ac_val in
1555 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1556 esac
1557 echo "$ac_var='\''$ac_val'\''"
1558 done | sort
1559 echo
1560 fi
1561
1562 if test -s confdefs.h; then
1563 cat <<\_ASBOX
1564 ## ----------- ##
1565 ## confdefs.h. ##
1566 ## ----------- ##
1567 _ASBOX
1568 echo
1569 cat confdefs.h
1570 echo
1571 fi
1572 test "$ac_signal" != 0 &&
1573 echo "$as_me: caught signal $ac_signal"
1574 echo "$as_me: exit $exit_status"
1575 } >&5
1576 rm -f core *.core core.conftest.* &&
1577 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1578 exit $exit_status
1579 ' 0
1580 for ac_signal in 1 2 13 15; do
1581 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1582 done
1583 ac_signal=0
1584
1585 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1586 rm -f -r conftest* confdefs.h
1587
1588 # Predefined preprocessor variables.
1589
1590 cat >>confdefs.h <<_ACEOF
1591 #define PACKAGE_NAME "$PACKAGE_NAME"
1592 _ACEOF
1593
1594
1595 cat >>confdefs.h <<_ACEOF
1596 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1597 _ACEOF
1598
1599
1600 cat >>confdefs.h <<_ACEOF
1601 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1602 _ACEOF
1603
1604
1605 cat >>confdefs.h <<_ACEOF
1606 #define PACKAGE_STRING "$PACKAGE_STRING"
1607 _ACEOF
1608
1609
1610 cat >>confdefs.h <<_ACEOF
1611 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1612 _ACEOF
1613
1614
1615 # Let the site file select an alternate cache file if it wants to.
1616 # Prefer explicitly selected file to automatically selected ones.
1617 if test -n "$CONFIG_SITE"; then
1618 set x "$CONFIG_SITE"
1619 elif test "x$prefix" != xNONE; then
1620 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1621 else
1622 set x "$ac_default_prefix/share/config.site" \
1623 "$ac_default_prefix/etc/config.site"
1624 fi
1625 shift
1626 for ac_site_file
1627 do
1628 if test -r "$ac_site_file"; then
1629 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1630 echo "$as_me: loading site script $ac_site_file" >&6;}
1631 sed 's/^/| /' "$ac_site_file" >&5
1632 . "$ac_site_file"
1633 fi
1634 done
1635
1636 if test -r "$cache_file"; then
1637 # Some versions of bash will fail to source /dev/null (special
1638 # files actually), so we avoid doing that.
1639 if test -f "$cache_file"; then
1640 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1641 echo "$as_me: loading cache $cache_file" >&6;}
1642 case $cache_file in
1643 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1644 *) . "./$cache_file";;
1645 esac
1646 fi
1647 else
1648 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1649 echo "$as_me: creating cache $cache_file" >&6;}
1650 >$cache_file
1651 fi
1652
1653 ac_header_list="$ac_header_list sys/time.h"
1654 ac_header_list="$ac_header_list unistd.h"
1655 ac_func_list="$ac_func_list alarm"
1656 # Check that the precious variables saved in the cache have kept the same
1657 # value.
1658 ac_cache_corrupted=false
1659 for ac_var in $ac_precious_vars; do
1660 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1661 eval ac_new_set=\$ac_env_${ac_var}_set
1662 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1663 eval ac_new_val=\$ac_env_${ac_var}_value
1664 case $ac_old_set,$ac_new_set in
1665 set,)
1666 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1667 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1668 ac_cache_corrupted=: ;;
1669 ,set)
1670 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1671 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1672 ac_cache_corrupted=: ;;
1673 ,);;
1674 *)
1675 if test "x$ac_old_val" != "x$ac_new_val"; then
1676 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1677 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1678 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1679 echo "$as_me: former value: $ac_old_val" >&2;}
1680 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1681 echo "$as_me: current value: $ac_new_val" >&2;}
1682 ac_cache_corrupted=:
1683 fi;;
1684 esac
1685 # Pass precious variables to config.status.
1686 if test "$ac_new_set" = set; then
1687 case $ac_new_val in
1688 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1689 *) ac_arg=$ac_var=$ac_new_val ;;
1690 esac
1691 case " $ac_configure_args " in
1692 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1693 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1694 esac
1695 fi
1696 done
1697 if $ac_cache_corrupted; then
1698 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1699 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1700 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1701 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1702 { (exit 1); exit 1; }; }
1703 fi
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729 ac_ext=c
1730 ac_cpp='$CPP $CPPFLAGS'
1731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1734
1735
1736
1737 am__api_version='1.10'
1738
1739 ac_aux_dir=
1740 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1741 if test -f "$ac_dir/install-sh"; then
1742 ac_aux_dir=$ac_dir
1743 ac_install_sh="$ac_aux_dir/install-sh -c"
1744 break
1745 elif test -f "$ac_dir/install.sh"; then
1746 ac_aux_dir=$ac_dir
1747 ac_install_sh="$ac_aux_dir/install.sh -c"
1748 break
1749 elif test -f "$ac_dir/shtool"; then
1750 ac_aux_dir=$ac_dir
1751 ac_install_sh="$ac_aux_dir/shtool install -c"
1752 break
1753 fi
1754 done
1755 if test -z "$ac_aux_dir"; then
1756 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1757 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1758 { (exit 1); exit 1; }; }
1759 fi
1760
1761 # These three variables are undocumented and unsupported,
1762 # and are intended to be withdrawn in a future Autoconf release.
1763 # They can cause serious problems if a builder's source tree is in a directory
1764 # whose full name contains unusual characters.
1765 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1766 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1767 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1768
1769
1770 # Find a good install program. We prefer a C program (faster),
1771 # so one script is as good as another. But avoid the broken or
1772 # incompatible versions:
1773 # SysV /etc/install, /usr/sbin/install
1774 # SunOS /usr/etc/install
1775 # IRIX /sbin/install
1776 # AIX /bin/install
1777 # AmigaOS /C/install, which installs bootblocks on floppy discs
1778 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1779 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1780 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1781 # OS/2's system install, which has a completely different semantic
1782 # ./install, which can be erroneously created by make from ./install.sh.
1783 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1784 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1785 if test -z "$INSTALL"; then
1786 if test "${ac_cv_path_install+set}" = set; then
1787 echo $ECHO_N "(cached) $ECHO_C" >&6
1788 else
1789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1790 for as_dir in $PATH
1791 do
1792 IFS=$as_save_IFS
1793 test -z "$as_dir" && as_dir=.
1794 # Account for people who put trailing slashes in PATH elements.
1795 case $as_dir/ in
1796 ./ | .// | /cC/* | \
1797 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1798 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1799 /usr/ucb/* ) ;;
1800 *)
1801 # OSF1 and SCO ODT 3.0 have their own names for install.
1802 # Don't use installbsd from OSF since it installs stuff as root
1803 # by default.
1804 for ac_prog in ginstall scoinst install; do
1805 for ac_exec_ext in '' $ac_executable_extensions; do
1806 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1807 if test $ac_prog = install &&
1808 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1809 # AIX install. It has an incompatible calling convention.
1810 :
1811 elif test $ac_prog = install &&
1812 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1813 # program-specific install script used by HP pwplus--don't use.
1814 :
1815 else
1816 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1817 break 3
1818 fi
1819 fi
1820 done
1821 done
1822 ;;
1823 esac
1824 done
1825 IFS=$as_save_IFS
1826
1827
1828 fi
1829 if test "${ac_cv_path_install+set}" = set; then
1830 INSTALL=$ac_cv_path_install
1831 else
1832 # As a last resort, use the slow shell script. Don't cache a
1833 # value for INSTALL within a source directory, because that will
1834 # break other packages using the cache if that directory is
1835 # removed, or if the value is a relative name.
1836 INSTALL=$ac_install_sh
1837 fi
1838 fi
1839 { echo "$as_me:$LINENO: result: $INSTALL" >&5
1840 echo "${ECHO_T}$INSTALL" >&6; }
1841
1842 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1843 # It thinks the first close brace ends the variable substitution.
1844 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1845
1846 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1847
1848 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1849
1850 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1851 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1852 # Just in case
1853 sleep 1
1854 echo timestamp > conftest.file
1855 # Do `set' in a subshell so we don't clobber the current shell's
1856 # arguments. Must try -L first in case configure is actually a
1857 # symlink; some systems play weird games with the mod time of symlinks
1858 # (eg FreeBSD returns the mod time of the symlink's containing
1859 # directory).
1860 if (
1861 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1862 if test "$*" = "X"; then
1863 # -L didn't work.
1864 set X `ls -t $srcdir/configure conftest.file`
1865 fi
1866 rm -f conftest.file
1867 if test "$*" != "X $srcdir/configure conftest.file" \
1868 && test "$*" != "X conftest.file $srcdir/configure"; then
1869
1870 # If neither matched, then we have a broken ls. This can happen
1871 # if, for instance, CONFIG_SHELL is bash and it inherits a
1872 # broken ls alias from the environment. This has actually
1873 # happened. Such a system could not be considered "sane".
1874 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1875 alias in your environment" >&5
1876 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1877 alias in your environment" >&2;}
1878 { (exit 1); exit 1; }; }
1879 fi
1880
1881 test "$2" = conftest.file
1882 )
1883 then
1884 # Ok.
1885 :
1886 else
1887 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1888 Check your system clock" >&5
1889 echo "$as_me: error: newly created file is older than distributed files!
1890 Check your system clock" >&2;}
1891 { (exit 1); exit 1; }; }
1892 fi
1893 { echo "$as_me:$LINENO: result: yes" >&5
1894 echo "${ECHO_T}yes" >&6; }
1895 test "$program_prefix" != NONE &&
1896 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1897 # Use a double $ so make ignores it.
1898 test "$program_suffix" != NONE &&
1899 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1900 # Double any \ or $. echo might interpret backslashes.
1901 # By default was `s,x,x', remove it if useless.
1902 cat <<\_ACEOF >conftest.sed
1903 s/[\\$]/&&/g;s/;s,x,x,$//
1904 _ACEOF
1905 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1906 rm -f conftest.sed
1907
1908 # expand $ac_aux_dir to an absolute path
1909 am_aux_dir=`cd $ac_aux_dir && pwd`
1910
1911 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1912 # Use eval to expand $SHELL
1913 if eval "$MISSING --run true"; then
1914 am_missing_run="$MISSING --run "
1915 else
1916 am_missing_run=
1917 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1918 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1919 fi
1920
1921 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
1922 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
1923 if test -z "$MKDIR_P"; then
1924 if test "${ac_cv_path_mkdir+set}" = set; then
1925 echo $ECHO_N "(cached) $ECHO_C" >&6
1926 else
1927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1928 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
1929 do
1930 IFS=$as_save_IFS
1931 test -z "$as_dir" && as_dir=.
1932 for ac_prog in mkdir gmkdir; do
1933 for ac_exec_ext in '' $ac_executable_extensions; do
1934 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
1935 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
1936 'mkdir (GNU coreutils) '* | \
1937 'mkdir (coreutils) '* | \
1938 'mkdir (fileutils) '4.1*)
1939 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
1940 break 3;;
1941 esac
1942 done
1943 done
1944 done
1945 IFS=$as_save_IFS
1946
1947 fi
1948
1949 if test "${ac_cv_path_mkdir+set}" = set; then
1950 MKDIR_P="$ac_cv_path_mkdir -p"
1951 else
1952 # As a last resort, use the slow shell script. Don't cache a
1953 # value for MKDIR_P within a source directory, because that will
1954 # break other packages using the cache if that directory is
1955 # removed, or if the value is a relative name.
1956 test -d ./--version && rmdir ./--version
1957 MKDIR_P="$ac_install_sh -d"
1958 fi
1959 fi
1960 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
1961 echo "${ECHO_T}$MKDIR_P" >&6; }
1962
1963 mkdir_p="$MKDIR_P"
1964 case $mkdir_p in
1965 [\\/$]* | ?:[\\/]*) ;;
1966 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
1967 esac
1968
1969 for ac_prog in gawk mawk nawk awk
1970 do
1971 # Extract the first word of "$ac_prog", so it can be a program name with args.
1972 set dummy $ac_prog; ac_word=$2
1973 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1975 if test "${ac_cv_prog_AWK+set}" = set; then
1976 echo $ECHO_N "(cached) $ECHO_C" >&6
1977 else
1978 if test -n "$AWK"; then
1979 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1980 else
1981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1982 for as_dir in $PATH
1983 do
1984 IFS=$as_save_IFS
1985 test -z "$as_dir" && as_dir=.
1986 for ac_exec_ext in '' $ac_executable_extensions; do
1987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1988 ac_cv_prog_AWK="$ac_prog"
1989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1990 break 2
1991 fi
1992 done
1993 done
1994 IFS=$as_save_IFS
1995
1996 fi
1997 fi
1998 AWK=$ac_cv_prog_AWK
1999 if test -n "$AWK"; then
2000 { echo "$as_me:$LINENO: result: $AWK" >&5
2001 echo "${ECHO_T}$AWK" >&6; }
2002 else
2003 { echo "$as_me:$LINENO: result: no" >&5
2004 echo "${ECHO_T}no" >&6; }
2005 fi
2006
2007
2008 test -n "$AWK" && break
2009 done
2010
2011 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2012 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2013 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2014 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2015 echo $ECHO_N "(cached) $ECHO_C" >&6
2016 else
2017 cat >conftest.make <<\_ACEOF
2018 SHELL = /bin/sh
2019 all:
2020 @echo '@@@%%%=$(MAKE)=@@@%%%'
2021 _ACEOF
2022 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2023 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2024 *@@@%%%=?*=@@@%%%*)
2025 eval ac_cv_prog_make_${ac_make}_set=yes;;
2026 *)
2027 eval ac_cv_prog_make_${ac_make}_set=no;;
2028 esac
2029 rm -f conftest.make
2030 fi
2031 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2032 { echo "$as_me:$LINENO: result: yes" >&5
2033 echo "${ECHO_T}yes" >&6; }
2034 SET_MAKE=
2035 else
2036 { echo "$as_me:$LINENO: result: no" >&5
2037 echo "${ECHO_T}no" >&6; }
2038 SET_MAKE="MAKE=${MAKE-make}"
2039 fi
2040
2041 rm -rf .tst 2>/dev/null
2042 mkdir .tst 2>/dev/null
2043 if test -d .tst; then
2044 am__leading_dot=.
2045 else
2046 am__leading_dot=_
2047 fi
2048 rmdir .tst 2>/dev/null
2049
2050 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2051 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2052 # is not polluted with repeated "-I."
2053 am__isrc=' -I$(srcdir)'
2054 # test to see if srcdir already configured
2055 if test -f $srcdir/config.status; then
2056 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2057 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2058 { (exit 1); exit 1; }; }
2059 fi
2060 fi
2061
2062 # test whether we have cygpath
2063 if test -z "$CYGPATH_W"; then
2064 if (cygpath --version) >/dev/null 2>/dev/null; then
2065 CYGPATH_W='cygpath -w'
2066 else
2067 CYGPATH_W=echo
2068 fi
2069 fi
2070
2071
2072 # Define the identity of the package.
2073 PACKAGE='launchd'
2074 VERSION='1.0'
2075
2076
2077 cat >>confdefs.h <<_ACEOF
2078 #define PACKAGE "$PACKAGE"
2079 _ACEOF
2080
2081
2082 cat >>confdefs.h <<_ACEOF
2083 #define VERSION "$VERSION"
2084 _ACEOF
2085
2086 # Some tools Automake needs.
2087
2088 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2089
2090
2091 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2092
2093
2094 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2095
2096
2097 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2098
2099
2100 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2101
2102 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2103
2104 # Installed binaries are usually stripped using `strip' when the user
2105 # run `make install-strip'. However `strip' might not be the right
2106 # tool to use in cross-compilation environments, therefore Automake
2107 # will honor the `STRIP' environment variable to overrule this program.
2108 if test "$cross_compiling" != no; then
2109 if test -n "$ac_tool_prefix"; then
2110 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2111 set dummy ${ac_tool_prefix}strip; ac_word=$2
2112 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2114 if test "${ac_cv_prog_STRIP+set}" = set; then
2115 echo $ECHO_N "(cached) $ECHO_C" >&6
2116 else
2117 if test -n "$STRIP"; then
2118 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2119 else
2120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2121 for as_dir in $PATH
2122 do
2123 IFS=$as_save_IFS
2124 test -z "$as_dir" && as_dir=.
2125 for ac_exec_ext in '' $ac_executable_extensions; do
2126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2127 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2129 break 2
2130 fi
2131 done
2132 done
2133 IFS=$as_save_IFS
2134
2135 fi
2136 fi
2137 STRIP=$ac_cv_prog_STRIP
2138 if test -n "$STRIP"; then
2139 { echo "$as_me:$LINENO: result: $STRIP" >&5
2140 echo "${ECHO_T}$STRIP" >&6; }
2141 else
2142 { echo "$as_me:$LINENO: result: no" >&5
2143 echo "${ECHO_T}no" >&6; }
2144 fi
2145
2146
2147 fi
2148 if test -z "$ac_cv_prog_STRIP"; then
2149 ac_ct_STRIP=$STRIP
2150 # Extract the first word of "strip", so it can be a program name with args.
2151 set dummy strip; ac_word=$2
2152 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2154 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2155 echo $ECHO_N "(cached) $ECHO_C" >&6
2156 else
2157 if test -n "$ac_ct_STRIP"; then
2158 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2159 else
2160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2161 for as_dir in $PATH
2162 do
2163 IFS=$as_save_IFS
2164 test -z "$as_dir" && as_dir=.
2165 for ac_exec_ext in '' $ac_executable_extensions; do
2166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2167 ac_cv_prog_ac_ct_STRIP="strip"
2168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2169 break 2
2170 fi
2171 done
2172 done
2173 IFS=$as_save_IFS
2174
2175 fi
2176 fi
2177 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2178 if test -n "$ac_ct_STRIP"; then
2179 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2180 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2181 else
2182 { echo "$as_me:$LINENO: result: no" >&5
2183 echo "${ECHO_T}no" >&6; }
2184 fi
2185
2186 if test "x$ac_ct_STRIP" = x; then
2187 STRIP=":"
2188 else
2189 case $cross_compiling:$ac_tool_warned in
2190 yes:)
2191 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2192 whose name does not start with the host triplet. If you think this
2193 configuration is useful to you, please write to autoconf@gnu.org." >&5
2194 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2195 whose name does not start with the host triplet. If you think this
2196 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2197 ac_tool_warned=yes ;;
2198 esac
2199 STRIP=$ac_ct_STRIP
2200 fi
2201 else
2202 STRIP="$ac_cv_prog_STRIP"
2203 fi
2204
2205 fi
2206 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2207
2208 # We need awk for the "check" target. The system "awk" is bad on
2209 # some platforms.
2210 # Always define AMTAR for backward compatibility.
2211
2212 AMTAR=${AMTAR-"${am_missing_run}tar"}
2213
2214 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2215
2216
2217
2218
2219
2220 ac_config_headers="$ac_config_headers src/config.h"
2221
2222
2223 # Checks for programs.
2224 ac_ext=c
2225 ac_cpp='$CPP $CPPFLAGS'
2226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2229 if test -n "$ac_tool_prefix"; then
2230 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2231 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2234 if test "${ac_cv_prog_CC+set}" = set; then
2235 echo $ECHO_N "(cached) $ECHO_C" >&6
2236 else
2237 if test -n "$CC"; then
2238 ac_cv_prog_CC="$CC" # Let the user override the test.
2239 else
2240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2241 for as_dir in $PATH
2242 do
2243 IFS=$as_save_IFS
2244 test -z "$as_dir" && as_dir=.
2245 for ac_exec_ext in '' $ac_executable_extensions; do
2246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2247 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2249 break 2
2250 fi
2251 done
2252 done
2253 IFS=$as_save_IFS
2254
2255 fi
2256 fi
2257 CC=$ac_cv_prog_CC
2258 if test -n "$CC"; then
2259 { echo "$as_me:$LINENO: result: $CC" >&5
2260 echo "${ECHO_T}$CC" >&6; }
2261 else
2262 { echo "$as_me:$LINENO: result: no" >&5
2263 echo "${ECHO_T}no" >&6; }
2264 fi
2265
2266
2267 fi
2268 if test -z "$ac_cv_prog_CC"; then
2269 ac_ct_CC=$CC
2270 # Extract the first word of "gcc", so it can be a program name with args.
2271 set dummy gcc; ac_word=$2
2272 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2274 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2275 echo $ECHO_N "(cached) $ECHO_C" >&6
2276 else
2277 if test -n "$ac_ct_CC"; then
2278 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2279 else
2280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2281 for as_dir in $PATH
2282 do
2283 IFS=$as_save_IFS
2284 test -z "$as_dir" && as_dir=.
2285 for ac_exec_ext in '' $ac_executable_extensions; do
2286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2287 ac_cv_prog_ac_ct_CC="gcc"
2288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2289 break 2
2290 fi
2291 done
2292 done
2293 IFS=$as_save_IFS
2294
2295 fi
2296 fi
2297 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2298 if test -n "$ac_ct_CC"; then
2299 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2300 echo "${ECHO_T}$ac_ct_CC" >&6; }
2301 else
2302 { echo "$as_me:$LINENO: result: no" >&5
2303 echo "${ECHO_T}no" >&6; }
2304 fi
2305
2306 if test "x$ac_ct_CC" = x; then
2307 CC=""
2308 else
2309 case $cross_compiling:$ac_tool_warned in
2310 yes:)
2311 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2312 whose name does not start with the host triplet. If you think this
2313 configuration is useful to you, please write to autoconf@gnu.org." >&5
2314 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2315 whose name does not start with the host triplet. If you think this
2316 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2317 ac_tool_warned=yes ;;
2318 esac
2319 CC=$ac_ct_CC
2320 fi
2321 else
2322 CC="$ac_cv_prog_CC"
2323 fi
2324
2325 if test -z "$CC"; then
2326 if test -n "$ac_tool_prefix"; then
2327 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2328 set dummy ${ac_tool_prefix}cc; ac_word=$2
2329 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2331 if test "${ac_cv_prog_CC+set}" = set; then
2332 echo $ECHO_N "(cached) $ECHO_C" >&6
2333 else
2334 if test -n "$CC"; then
2335 ac_cv_prog_CC="$CC" # Let the user override the test.
2336 else
2337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2338 for as_dir in $PATH
2339 do
2340 IFS=$as_save_IFS
2341 test -z "$as_dir" && as_dir=.
2342 for ac_exec_ext in '' $ac_executable_extensions; do
2343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2344 ac_cv_prog_CC="${ac_tool_prefix}cc"
2345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2346 break 2
2347 fi
2348 done
2349 done
2350 IFS=$as_save_IFS
2351
2352 fi
2353 fi
2354 CC=$ac_cv_prog_CC
2355 if test -n "$CC"; then
2356 { echo "$as_me:$LINENO: result: $CC" >&5
2357 echo "${ECHO_T}$CC" >&6; }
2358 else
2359 { echo "$as_me:$LINENO: result: no" >&5
2360 echo "${ECHO_T}no" >&6; }
2361 fi
2362
2363
2364 fi
2365 fi
2366 if test -z "$CC"; then
2367 # Extract the first word of "cc", so it can be a program name with args.
2368 set dummy cc; ac_word=$2
2369 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2371 if test "${ac_cv_prog_CC+set}" = set; then
2372 echo $ECHO_N "(cached) $ECHO_C" >&6
2373 else
2374 if test -n "$CC"; then
2375 ac_cv_prog_CC="$CC" # Let the user override the test.
2376 else
2377 ac_prog_rejected=no
2378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2379 for as_dir in $PATH
2380 do
2381 IFS=$as_save_IFS
2382 test -z "$as_dir" && as_dir=.
2383 for ac_exec_ext in '' $ac_executable_extensions; do
2384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2385 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2386 ac_prog_rejected=yes
2387 continue
2388 fi
2389 ac_cv_prog_CC="cc"
2390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2391 break 2
2392 fi
2393 done
2394 done
2395 IFS=$as_save_IFS
2396
2397 if test $ac_prog_rejected = yes; then
2398 # We found a bogon in the path, so make sure we never use it.
2399 set dummy $ac_cv_prog_CC
2400 shift
2401 if test $# != 0; then
2402 # We chose a different compiler from the bogus one.
2403 # However, it has the same basename, so the bogon will be chosen
2404 # first if we set CC to just the basename; use the full file name.
2405 shift
2406 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2407 fi
2408 fi
2409 fi
2410 fi
2411 CC=$ac_cv_prog_CC
2412 if test -n "$CC"; then
2413 { echo "$as_me:$LINENO: result: $CC" >&5
2414 echo "${ECHO_T}$CC" >&6; }
2415 else
2416 { echo "$as_me:$LINENO: result: no" >&5
2417 echo "${ECHO_T}no" >&6; }
2418 fi
2419
2420
2421 fi
2422 if test -z "$CC"; then
2423 if test -n "$ac_tool_prefix"; then
2424 for ac_prog in cl.exe
2425 do
2426 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2427 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2428 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2430 if test "${ac_cv_prog_CC+set}" = set; then
2431 echo $ECHO_N "(cached) $ECHO_C" >&6
2432 else
2433 if test -n "$CC"; then
2434 ac_cv_prog_CC="$CC" # Let the user override the test.
2435 else
2436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2437 for as_dir in $PATH
2438 do
2439 IFS=$as_save_IFS
2440 test -z "$as_dir" && as_dir=.
2441 for ac_exec_ext in '' $ac_executable_extensions; do
2442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2443 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2445 break 2
2446 fi
2447 done
2448 done
2449 IFS=$as_save_IFS
2450
2451 fi
2452 fi
2453 CC=$ac_cv_prog_CC
2454 if test -n "$CC"; then
2455 { echo "$as_me:$LINENO: result: $CC" >&5
2456 echo "${ECHO_T}$CC" >&6; }
2457 else
2458 { echo "$as_me:$LINENO: result: no" >&5
2459 echo "${ECHO_T}no" >&6; }
2460 fi
2461
2462
2463 test -n "$CC" && break
2464 done
2465 fi
2466 if test -z "$CC"; then
2467 ac_ct_CC=$CC
2468 for ac_prog in cl.exe
2469 do
2470 # Extract the first word of "$ac_prog", so it can be a program name with args.
2471 set dummy $ac_prog; ac_word=$2
2472 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2474 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2475 echo $ECHO_N "(cached) $ECHO_C" >&6
2476 else
2477 if test -n "$ac_ct_CC"; then
2478 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2479 else
2480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2481 for as_dir in $PATH
2482 do
2483 IFS=$as_save_IFS
2484 test -z "$as_dir" && as_dir=.
2485 for ac_exec_ext in '' $ac_executable_extensions; do
2486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2487 ac_cv_prog_ac_ct_CC="$ac_prog"
2488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2489 break 2
2490 fi
2491 done
2492 done
2493 IFS=$as_save_IFS
2494
2495 fi
2496 fi
2497 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2498 if test -n "$ac_ct_CC"; then
2499 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2500 echo "${ECHO_T}$ac_ct_CC" >&6; }
2501 else
2502 { echo "$as_me:$LINENO: result: no" >&5
2503 echo "${ECHO_T}no" >&6; }
2504 fi
2505
2506
2507 test -n "$ac_ct_CC" && break
2508 done
2509
2510 if test "x$ac_ct_CC" = x; then
2511 CC=""
2512 else
2513 case $cross_compiling:$ac_tool_warned in
2514 yes:)
2515 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2516 whose name does not start with the host triplet. If you think this
2517 configuration is useful to you, please write to autoconf@gnu.org." >&5
2518 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2519 whose name does not start with the host triplet. If you think this
2520 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2521 ac_tool_warned=yes ;;
2522 esac
2523 CC=$ac_ct_CC
2524 fi
2525 fi
2526
2527 fi
2528
2529
2530 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2531 See \`config.log' for more details." >&5
2532 echo "$as_me: error: no acceptable C compiler found in \$PATH
2533 See \`config.log' for more details." >&2;}
2534 { (exit 1); exit 1; }; }
2535
2536 # Provide some information about the compiler.
2537 echo "$as_me:$LINENO: checking for C compiler version" >&5
2538 ac_compiler=`set X $ac_compile; echo $2`
2539 { (ac_try="$ac_compiler --version >&5"
2540 case "(($ac_try" in
2541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2542 *) ac_try_echo=$ac_try;;
2543 esac
2544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2545 (eval "$ac_compiler --version >&5") 2>&5
2546 ac_status=$?
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); }
2549 { (ac_try="$ac_compiler -v >&5"
2550 case "(($ac_try" in
2551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2552 *) ac_try_echo=$ac_try;;
2553 esac
2554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2555 (eval "$ac_compiler -v >&5") 2>&5
2556 ac_status=$?
2557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558 (exit $ac_status); }
2559 { (ac_try="$ac_compiler -V >&5"
2560 case "(($ac_try" in
2561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2562 *) ac_try_echo=$ac_try;;
2563 esac
2564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2565 (eval "$ac_compiler -V >&5") 2>&5
2566 ac_status=$?
2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568 (exit $ac_status); }
2569
2570 cat >conftest.$ac_ext <<_ACEOF
2571 /* confdefs.h. */
2572 _ACEOF
2573 cat confdefs.h >>conftest.$ac_ext
2574 cat >>conftest.$ac_ext <<_ACEOF
2575 /* end confdefs.h. */
2576
2577 int
2578 main ()
2579 {
2580
2581 ;
2582 return 0;
2583 }
2584 _ACEOF
2585 ac_clean_files_save=$ac_clean_files
2586 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2587 # Try to create an executable without -o first, disregard a.out.
2588 # It will help us diagnose broken compilers, and finding out an intuition
2589 # of exeext.
2590 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2591 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2592 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2593 #
2594 # List of possible output files, starting from the most likely.
2595 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2596 # only as a last resort. b.out is created by i960 compilers.
2597 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2598 #
2599 # The IRIX 6 linker writes into existing files which may not be
2600 # executable, retaining their permissions. Remove them first so a
2601 # subsequent execution test works.
2602 ac_rmfiles=
2603 for ac_file in $ac_files
2604 do
2605 case $ac_file in
2606 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2607 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2608 esac
2609 done
2610 rm -f $ac_rmfiles
2611
2612 if { (ac_try="$ac_link_default"
2613 case "(($ac_try" in
2614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2615 *) ac_try_echo=$ac_try;;
2616 esac
2617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2618 (eval "$ac_link_default") 2>&5
2619 ac_status=$?
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); }; then
2622 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2623 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2624 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2625 # so that the user can short-circuit this test for compilers unknown to
2626 # Autoconf.
2627 for ac_file in $ac_files ''
2628 do
2629 test -f "$ac_file" || continue
2630 case $ac_file in
2631 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2632 ;;
2633 [ab].out )
2634 # We found the default executable, but exeext='' is most
2635 # certainly right.
2636 break;;
2637 *.* )
2638 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2639 then :; else
2640 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2641 fi
2642 # We set ac_cv_exeext here because the later test for it is not
2643 # safe: cross compilers may not add the suffix if given an `-o'
2644 # argument, so we may need to know it at that point already.
2645 # Even if this section looks crufty: it has the advantage of
2646 # actually working.
2647 break;;
2648 * )
2649 break;;
2650 esac
2651 done
2652 test "$ac_cv_exeext" = no && ac_cv_exeext=
2653
2654 else
2655 ac_file=''
2656 fi
2657
2658 { echo "$as_me:$LINENO: result: $ac_file" >&5
2659 echo "${ECHO_T}$ac_file" >&6; }
2660 if test -z "$ac_file"; then
2661 echo "$as_me: failed program was:" >&5
2662 sed 's/^/| /' conftest.$ac_ext >&5
2663
2664 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2665 See \`config.log' for more details." >&5
2666 echo "$as_me: error: C compiler cannot create executables
2667 See \`config.log' for more details." >&2;}
2668 { (exit 77); exit 77; }; }
2669 fi
2670
2671 ac_exeext=$ac_cv_exeext
2672
2673 # Check that the compiler produces executables we can run. If not, either
2674 # the compiler is broken, or we cross compile.
2675 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2676 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2677 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2678 # If not cross compiling, check that we can run a simple program.
2679 if test "$cross_compiling" != yes; then
2680 if { ac_try='./$ac_file'
2681 { (case "(($ac_try" in
2682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2683 *) ac_try_echo=$ac_try;;
2684 esac
2685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2686 (eval "$ac_try") 2>&5
2687 ac_status=$?
2688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689 (exit $ac_status); }; }; then
2690 cross_compiling=no
2691 else
2692 if test "$cross_compiling" = maybe; then
2693 cross_compiling=yes
2694 else
2695 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2696 If you meant to cross compile, use \`--host'.
2697 See \`config.log' for more details." >&5
2698 echo "$as_me: error: cannot run C compiled programs.
2699 If you meant to cross compile, use \`--host'.
2700 See \`config.log' for more details." >&2;}
2701 { (exit 1); exit 1; }; }
2702 fi
2703 fi
2704 fi
2705 { echo "$as_me:$LINENO: result: yes" >&5
2706 echo "${ECHO_T}yes" >&6; }
2707
2708 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2709 ac_clean_files=$ac_clean_files_save
2710 # Check that the compiler produces executables we can run. If not, either
2711 # the compiler is broken, or we cross compile.
2712 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2713 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2714 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2715 echo "${ECHO_T}$cross_compiling" >&6; }
2716
2717 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2718 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2719 if { (ac_try="$ac_link"
2720 case "(($ac_try" in
2721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2722 *) ac_try_echo=$ac_try;;
2723 esac
2724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2725 (eval "$ac_link") 2>&5
2726 ac_status=$?
2727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728 (exit $ac_status); }; then
2729 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2730 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2731 # work properly (i.e., refer to `conftest.exe'), while it won't with
2732 # `rm'.
2733 for ac_file in conftest.exe conftest conftest.*; do
2734 test -f "$ac_file" || continue
2735 case $ac_file in
2736 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2737 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2738 break;;
2739 * ) break;;
2740 esac
2741 done
2742 else
2743 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2744 See \`config.log' for more details." >&5
2745 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2746 See \`config.log' for more details." >&2;}
2747 { (exit 1); exit 1; }; }
2748 fi
2749
2750 rm -f conftest$ac_cv_exeext
2751 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2752 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2753
2754 rm -f conftest.$ac_ext
2755 EXEEXT=$ac_cv_exeext
2756 ac_exeext=$EXEEXT
2757 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2758 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2759 if test "${ac_cv_objext+set}" = set; then
2760 echo $ECHO_N "(cached) $ECHO_C" >&6
2761 else
2762 cat >conftest.$ac_ext <<_ACEOF
2763 /* confdefs.h. */
2764 _ACEOF
2765 cat confdefs.h >>conftest.$ac_ext
2766 cat >>conftest.$ac_ext <<_ACEOF
2767 /* end confdefs.h. */
2768
2769 int
2770 main ()
2771 {
2772
2773 ;
2774 return 0;
2775 }
2776 _ACEOF
2777 rm -f conftest.o conftest.obj
2778 if { (ac_try="$ac_compile"
2779 case "(($ac_try" in
2780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2781 *) ac_try_echo=$ac_try;;
2782 esac
2783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2784 (eval "$ac_compile") 2>&5
2785 ac_status=$?
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); }; then
2788 for ac_file in conftest.o conftest.obj conftest.*; do
2789 test -f "$ac_file" || continue;
2790 case $ac_file in
2791 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2792 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2793 break;;
2794 esac
2795 done
2796 else
2797 echo "$as_me: failed program was:" >&5
2798 sed 's/^/| /' conftest.$ac_ext >&5
2799
2800 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2801 See \`config.log' for more details." >&5
2802 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2803 See \`config.log' for more details." >&2;}
2804 { (exit 1); exit 1; }; }
2805 fi
2806
2807 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2808 fi
2809 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2810 echo "${ECHO_T}$ac_cv_objext" >&6; }
2811 OBJEXT=$ac_cv_objext
2812 ac_objext=$OBJEXT
2813 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2814 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2815 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2816 echo $ECHO_N "(cached) $ECHO_C" >&6
2817 else
2818 cat >conftest.$ac_ext <<_ACEOF
2819 /* confdefs.h. */
2820 _ACEOF
2821 cat confdefs.h >>conftest.$ac_ext
2822 cat >>conftest.$ac_ext <<_ACEOF
2823 /* end confdefs.h. */
2824
2825 int
2826 main ()
2827 {
2828 #ifndef __GNUC__
2829 choke me
2830 #endif
2831
2832 ;
2833 return 0;
2834 }
2835 _ACEOF
2836 rm -f conftest.$ac_objext
2837 if { (ac_try="$ac_compile"
2838 case "(($ac_try" in
2839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2840 *) ac_try_echo=$ac_try;;
2841 esac
2842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2843 (eval "$ac_compile") 2>conftest.er1
2844 ac_status=$?
2845 grep -v '^ *+' conftest.er1 >conftest.err
2846 rm -f conftest.er1
2847 cat conftest.err >&5
2848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849 (exit $ac_status); } && {
2850 test -z "$ac_c_werror_flag" ||
2851 test ! -s conftest.err
2852 } && test -s conftest.$ac_objext; then
2853 ac_compiler_gnu=yes
2854 else
2855 echo "$as_me: failed program was:" >&5
2856 sed 's/^/| /' conftest.$ac_ext >&5
2857
2858 ac_compiler_gnu=no
2859 fi
2860
2861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2862 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2863
2864 fi
2865 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2866 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2867 GCC=`test $ac_compiler_gnu = yes && echo yes`
2868 ac_test_CFLAGS=${CFLAGS+set}
2869 ac_save_CFLAGS=$CFLAGS
2870 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2871 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2872 if test "${ac_cv_prog_cc_g+set}" = set; then
2873 echo $ECHO_N "(cached) $ECHO_C" >&6
2874 else
2875 ac_save_c_werror_flag=$ac_c_werror_flag
2876 ac_c_werror_flag=yes
2877 ac_cv_prog_cc_g=no
2878 CFLAGS="-g"
2879 cat >conftest.$ac_ext <<_ACEOF
2880 /* confdefs.h. */
2881 _ACEOF
2882 cat confdefs.h >>conftest.$ac_ext
2883 cat >>conftest.$ac_ext <<_ACEOF
2884 /* end confdefs.h. */
2885
2886 int
2887 main ()
2888 {
2889
2890 ;
2891 return 0;
2892 }
2893 _ACEOF
2894 rm -f conftest.$ac_objext
2895 if { (ac_try="$ac_compile"
2896 case "(($ac_try" in
2897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2898 *) ac_try_echo=$ac_try;;
2899 esac
2900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2901 (eval "$ac_compile") 2>conftest.er1
2902 ac_status=$?
2903 grep -v '^ *+' conftest.er1 >conftest.err
2904 rm -f conftest.er1
2905 cat conftest.err >&5
2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907 (exit $ac_status); } && {
2908 test -z "$ac_c_werror_flag" ||
2909 test ! -s conftest.err
2910 } && test -s conftest.$ac_objext; then
2911 ac_cv_prog_cc_g=yes
2912 else
2913 echo "$as_me: failed program was:" >&5
2914 sed 's/^/| /' conftest.$ac_ext >&5
2915
2916 CFLAGS=""
2917 cat >conftest.$ac_ext <<_ACEOF
2918 /* confdefs.h. */
2919 _ACEOF
2920 cat confdefs.h >>conftest.$ac_ext
2921 cat >>conftest.$ac_ext <<_ACEOF
2922 /* end confdefs.h. */
2923
2924 int
2925 main ()
2926 {
2927
2928 ;
2929 return 0;
2930 }
2931 _ACEOF
2932 rm -f conftest.$ac_objext
2933 if { (ac_try="$ac_compile"
2934 case "(($ac_try" in
2935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2936 *) ac_try_echo=$ac_try;;
2937 esac
2938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2939 (eval "$ac_compile") 2>conftest.er1
2940 ac_status=$?
2941 grep -v '^ *+' conftest.er1 >conftest.err
2942 rm -f conftest.er1
2943 cat conftest.err >&5
2944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945 (exit $ac_status); } && {
2946 test -z "$ac_c_werror_flag" ||
2947 test ! -s conftest.err
2948 } && test -s conftest.$ac_objext; then
2949 :
2950 else
2951 echo "$as_me: failed program was:" >&5
2952 sed 's/^/| /' conftest.$ac_ext >&5
2953
2954 ac_c_werror_flag=$ac_save_c_werror_flag
2955 CFLAGS="-g"
2956 cat >conftest.$ac_ext <<_ACEOF
2957 /* confdefs.h. */
2958 _ACEOF
2959 cat confdefs.h >>conftest.$ac_ext
2960 cat >>conftest.$ac_ext <<_ACEOF
2961 /* end confdefs.h. */
2962
2963 int
2964 main ()
2965 {
2966
2967 ;
2968 return 0;
2969 }
2970 _ACEOF
2971 rm -f conftest.$ac_objext
2972 if { (ac_try="$ac_compile"
2973 case "(($ac_try" in
2974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2975 *) ac_try_echo=$ac_try;;
2976 esac
2977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2978 (eval "$ac_compile") 2>conftest.er1
2979 ac_status=$?
2980 grep -v '^ *+' conftest.er1 >conftest.err
2981 rm -f conftest.er1
2982 cat conftest.err >&5
2983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984 (exit $ac_status); } && {
2985 test -z "$ac_c_werror_flag" ||
2986 test ! -s conftest.err
2987 } && test -s conftest.$ac_objext; then
2988 ac_cv_prog_cc_g=yes
2989 else
2990 echo "$as_me: failed program was:" >&5
2991 sed 's/^/| /' conftest.$ac_ext >&5
2992
2993
2994 fi
2995
2996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2997 fi
2998
2999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3000 fi
3001
3002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3003 ac_c_werror_flag=$ac_save_c_werror_flag
3004 fi
3005 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3006 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3007 if test "$ac_test_CFLAGS" = set; then
3008 CFLAGS=$ac_save_CFLAGS
3009 elif test $ac_cv_prog_cc_g = yes; then
3010 if test "$GCC" = yes; then
3011 CFLAGS="-g -O2"
3012 else
3013 CFLAGS="-g"
3014 fi
3015 else
3016 if test "$GCC" = yes; then
3017 CFLAGS="-O2"
3018 else
3019 CFLAGS=
3020 fi
3021 fi
3022 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3023 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3024 if test "${ac_cv_prog_cc_c89+set}" = set; then
3025 echo $ECHO_N "(cached) $ECHO_C" >&6
3026 else
3027 ac_cv_prog_cc_c89=no
3028 ac_save_CC=$CC
3029 cat >conftest.$ac_ext <<_ACEOF
3030 /* confdefs.h. */
3031 _ACEOF
3032 cat confdefs.h >>conftest.$ac_ext
3033 cat >>conftest.$ac_ext <<_ACEOF
3034 /* end confdefs.h. */
3035 #include <stdarg.h>
3036 #include <stdio.h>
3037 #include <sys/types.h>
3038 #include <sys/stat.h>
3039 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3040 struct buf { int x; };
3041 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3042 static char *e (p, i)
3043 char **p;
3044 int i;
3045 {
3046 return p[i];
3047 }
3048 static char *f (char * (*g) (char **, int), char **p, ...)
3049 {
3050 char *s;
3051 va_list v;
3052 va_start (v,p);
3053 s = g (p, va_arg (v,int));
3054 va_end (v);
3055 return s;
3056 }
3057
3058 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3059 function prototypes and stuff, but not '\xHH' hex character constants.
3060 These don't provoke an error unfortunately, instead are silently treated
3061 as 'x'. The following induces an error, until -std is added to get
3062 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3063 array size at least. It's necessary to write '\x00'==0 to get something
3064 that's true only with -std. */
3065 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3066
3067 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3068 inside strings and character constants. */
3069 #define FOO(x) 'x'
3070 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3071
3072 int test (int i, double x);
3073 struct s1 {int (*f) (int a);};
3074 struct s2 {int (*f) (double a);};
3075 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3076 int argc;
3077 char **argv;
3078 int
3079 main ()
3080 {
3081 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3082 ;
3083 return 0;
3084 }
3085 _ACEOF
3086 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3087 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3088 do
3089 CC="$ac_save_CC $ac_arg"
3090 rm -f conftest.$ac_objext
3091 if { (ac_try="$ac_compile"
3092 case "(($ac_try" in
3093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3094 *) ac_try_echo=$ac_try;;
3095 esac
3096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3097 (eval "$ac_compile") 2>conftest.er1
3098 ac_status=$?
3099 grep -v '^ *+' conftest.er1 >conftest.err
3100 rm -f conftest.er1
3101 cat conftest.err >&5
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); } && {
3104 test -z "$ac_c_werror_flag" ||
3105 test ! -s conftest.err
3106 } && test -s conftest.$ac_objext; then
3107 ac_cv_prog_cc_c89=$ac_arg
3108 else
3109 echo "$as_me: failed program was:" >&5
3110 sed 's/^/| /' conftest.$ac_ext >&5
3111
3112
3113 fi
3114
3115 rm -f core conftest.err conftest.$ac_objext
3116 test "x$ac_cv_prog_cc_c89" != "xno" && break
3117 done
3118 rm -f conftest.$ac_ext
3119 CC=$ac_save_CC
3120
3121 fi
3122 # AC_CACHE_VAL
3123 case "x$ac_cv_prog_cc_c89" in
3124 x)
3125 { echo "$as_me:$LINENO: result: none needed" >&5
3126 echo "${ECHO_T}none needed" >&6; } ;;
3127 xno)
3128 { echo "$as_me:$LINENO: result: unsupported" >&5
3129 echo "${ECHO_T}unsupported" >&6; } ;;
3130 *)
3131 CC="$CC $ac_cv_prog_cc_c89"
3132 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3133 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3134 esac
3135
3136
3137 ac_ext=c
3138 ac_cpp='$CPP $CPPFLAGS'
3139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3142 DEPDIR="${am__leading_dot}deps"
3143
3144 ac_config_commands="$ac_config_commands depfiles"
3145
3146
3147 am_make=${MAKE-make}
3148 cat > confinc << 'END'
3149 am__doit:
3150 @echo done
3151 .PHONY: am__doit
3152 END
3153 # If we don't find an include directive, just comment out the code.
3154 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3155 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3156 am__include="#"
3157 am__quote=
3158 _am_result=none
3159 # First try GNU make style include.
3160 echo "include confinc" > confmf
3161 # We grep out `Entering directory' and `Leaving directory'
3162 # messages which can occur if `w' ends up in MAKEFLAGS.
3163 # In particular we don't look at `^make:' because GNU make might
3164 # be invoked under some other name (usually "gmake"), in which
3165 # case it prints its new name instead of `make'.
3166 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3167 am__include=include
3168 am__quote=
3169 _am_result=GNU
3170 fi
3171 # Now try BSD make style include.
3172 if test "$am__include" = "#"; then
3173 echo '.include "confinc"' > confmf
3174 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3175 am__include=.include
3176 am__quote="\""
3177 _am_result=BSD
3178 fi
3179 fi
3180
3181
3182 { echo "$as_me:$LINENO: result: $_am_result" >&5
3183 echo "${ECHO_T}$_am_result" >&6; }
3184 rm -f confinc confmf
3185
3186 # Check whether --enable-dependency-tracking was given.
3187 if test "${enable_dependency_tracking+set}" = set; then
3188 enableval=$enable_dependency_tracking;
3189 fi
3190
3191 if test "x$enable_dependency_tracking" != xno; then
3192 am_depcomp="$ac_aux_dir/depcomp"
3193 AMDEPBACKSLASH='\'
3194 fi
3195 if test "x$enable_dependency_tracking" != xno; then
3196 AMDEP_TRUE=
3197 AMDEP_FALSE='#'
3198 else
3199 AMDEP_TRUE='#'
3200 AMDEP_FALSE=
3201 fi
3202
3203
3204
3205 depcc="$CC" am_compiler_list=
3206
3207 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3208 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3209 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3210 echo $ECHO_N "(cached) $ECHO_C" >&6
3211 else
3212 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3213 # We make a subdir and do the tests there. Otherwise we can end up
3214 # making bogus files that we don't know about and never remove. For
3215 # instance it was reported that on HP-UX the gcc test will end up
3216 # making a dummy file named `D' -- because `-MD' means `put the output
3217 # in D'.
3218 mkdir conftest.dir
3219 # Copy depcomp to subdir because otherwise we won't find it if we're
3220 # using a relative directory.
3221 cp "$am_depcomp" conftest.dir
3222 cd conftest.dir
3223 # We will build objects and dependencies in a subdirectory because
3224 # it helps to detect inapplicable dependency modes. For instance
3225 # both Tru64's cc and ICC support -MD to output dependencies as a
3226 # side effect of compilation, but ICC will put the dependencies in
3227 # the current directory while Tru64 will put them in the object
3228 # directory.
3229 mkdir sub
3230
3231 am_cv_CC_dependencies_compiler_type=none
3232 if test "$am_compiler_list" = ""; then
3233 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3234 fi
3235 for depmode in $am_compiler_list; do
3236 # Setup a source with many dependencies, because some compilers
3237 # like to wrap large dependency lists on column 80 (with \), and
3238 # we should not choose a depcomp mode which is confused by this.
3239 #
3240 # We need to recreate these files for each test, as the compiler may
3241 # overwrite some of them when testing with obscure command lines.
3242 # This happens at least with the AIX C compiler.
3243 : > sub/conftest.c
3244 for i in 1 2 3 4 5 6; do
3245 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3246 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3247 # Solaris 8's {/usr,}/bin/sh.
3248 touch sub/conftst$i.h
3249 done
3250 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3251
3252 case $depmode in
3253 nosideeffect)
3254 # after this tag, mechanisms are not by side-effect, so they'll
3255 # only be used when explicitly requested
3256 if test "x$enable_dependency_tracking" = xyes; then
3257 continue
3258 else
3259 break
3260 fi
3261 ;;
3262 none) break ;;
3263 esac
3264 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3265 # mode. It turns out that the SunPro C++ compiler does not properly
3266 # handle `-M -o', and we need to detect this.
3267 if depmode=$depmode \
3268 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3269 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3270 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3271 >/dev/null 2>conftest.err &&
3272 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3273 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3274 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3275 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3276 # icc doesn't choke on unknown options, it will just issue warnings
3277 # or remarks (even with -Werror). So we grep stderr for any message
3278 # that says an option was ignored or not supported.
3279 # When given -MP, icc 7.0 and 7.1 complain thusly:
3280 # icc: Command line warning: ignoring option '-M'; no argument required
3281 # The diagnosis changed in icc 8.0:
3282 # icc: Command line remark: option '-MP' not supported
3283 if (grep 'ignoring option' conftest.err ||
3284 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3285 am_cv_CC_dependencies_compiler_type=$depmode
3286 break
3287 fi
3288 fi
3289 done
3290
3291 cd ..
3292 rm -rf conftest.dir
3293 else
3294 am_cv_CC_dependencies_compiler_type=none
3295 fi
3296
3297 fi
3298 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3299 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3300 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3301
3302 if
3303 test "x$enable_dependency_tracking" != xno \
3304 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3305 am__fastdepCC_TRUE=
3306 am__fastdepCC_FALSE='#'
3307 else
3308 am__fastdepCC_TRUE='#'
3309 am__fastdepCC_FALSE=
3310 fi
3311
3312
3313 if test -n "$ac_tool_prefix"; then
3314 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3315 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3316 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3318 if test "${ac_cv_prog_RANLIB+set}" = set; then
3319 echo $ECHO_N "(cached) $ECHO_C" >&6
3320 else
3321 if test -n "$RANLIB"; then
3322 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3323 else
3324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3325 for as_dir in $PATH
3326 do
3327 IFS=$as_save_IFS
3328 test -z "$as_dir" && as_dir=.
3329 for ac_exec_ext in '' $ac_executable_extensions; do
3330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3331 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3333 break 2
3334 fi
3335 done
3336 done
3337 IFS=$as_save_IFS
3338
3339 fi
3340 fi
3341 RANLIB=$ac_cv_prog_RANLIB
3342 if test -n "$RANLIB"; then
3343 { echo "$as_me:$LINENO: result: $RANLIB" >&5
3344 echo "${ECHO_T}$RANLIB" >&6; }
3345 else
3346 { echo "$as_me:$LINENO: result: no" >&5
3347 echo "${ECHO_T}no" >&6; }
3348 fi
3349
3350
3351 fi
3352 if test -z "$ac_cv_prog_RANLIB"; then
3353 ac_ct_RANLIB=$RANLIB
3354 # Extract the first word of "ranlib", so it can be a program name with args.
3355 set dummy ranlib; ac_word=$2
3356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3358 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3359 echo $ECHO_N "(cached) $ECHO_C" >&6
3360 else
3361 if test -n "$ac_ct_RANLIB"; then
3362 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3363 else
3364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3365 for as_dir in $PATH
3366 do
3367 IFS=$as_save_IFS
3368 test -z "$as_dir" && as_dir=.
3369 for ac_exec_ext in '' $ac_executable_extensions; do
3370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3371 ac_cv_prog_ac_ct_RANLIB="ranlib"
3372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3373 break 2
3374 fi
3375 done
3376 done
3377 IFS=$as_save_IFS
3378
3379 fi
3380 fi
3381 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3382 if test -n "$ac_ct_RANLIB"; then
3383 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3384 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3385 else
3386 { echo "$as_me:$LINENO: result: no" >&5
3387 echo "${ECHO_T}no" >&6; }
3388 fi
3389
3390 if test "x$ac_ct_RANLIB" = x; then
3391 RANLIB=":"
3392 else
3393 case $cross_compiling:$ac_tool_warned in
3394 yes:)
3395 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3396 whose name does not start with the host triplet. If you think this
3397 configuration is useful to you, please write to autoconf@gnu.org." >&5
3398 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3399 whose name does not start with the host triplet. If you think this
3400 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3401 ac_tool_warned=yes ;;
3402 esac
3403 RANLIB=$ac_ct_RANLIB
3404 fi
3405 else
3406 RANLIB="$ac_cv_prog_RANLIB"
3407 fi
3408
3409 if test "x$CC" != xcc; then
3410 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3411 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3412 else
3413 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3414 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3415 fi
3416 set dummy $CC; ac_cc=`echo $2 |
3417 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3418 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3419 echo $ECHO_N "(cached) $ECHO_C" >&6
3420 else
3421 cat >conftest.$ac_ext <<_ACEOF
3422 /* confdefs.h. */
3423 _ACEOF
3424 cat confdefs.h >>conftest.$ac_ext
3425 cat >>conftest.$ac_ext <<_ACEOF
3426 /* end confdefs.h. */
3427
3428 int
3429 main ()
3430 {
3431
3432 ;
3433 return 0;
3434 }
3435 _ACEOF
3436 # Make sure it works both with $CC and with simple cc.
3437 # We do the test twice because some compilers refuse to overwrite an
3438 # existing .o file with -o, though they will create one.
3439 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3440 rm -f conftest2.*
3441 if { (case "(($ac_try" in
3442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3443 *) ac_try_echo=$ac_try;;
3444 esac
3445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3446 (eval "$ac_try") 2>&5
3447 ac_status=$?
3448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449 (exit $ac_status); } &&
3450 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3452 *) ac_try_echo=$ac_try;;
3453 esac
3454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3455 (eval "$ac_try") 2>&5
3456 ac_status=$?
3457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458 (exit $ac_status); };
3459 then
3460 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3461 if test "x$CC" != xcc; then
3462 # Test first that cc exists at all.
3463 if { ac_try='cc -c conftest.$ac_ext >&5'
3464 { (case "(($ac_try" in
3465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3466 *) ac_try_echo=$ac_try;;
3467 esac
3468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3469 (eval "$ac_try") 2>&5
3470 ac_status=$?
3471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472 (exit $ac_status); }; }; then
3473 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3474 rm -f conftest2.*
3475 if { (case "(($ac_try" in
3476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3477 *) ac_try_echo=$ac_try;;
3478 esac
3479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3480 (eval "$ac_try") 2>&5
3481 ac_status=$?
3482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483 (exit $ac_status); } &&
3484 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3486 *) ac_try_echo=$ac_try;;
3487 esac
3488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3489 (eval "$ac_try") 2>&5
3490 ac_status=$?
3491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492 (exit $ac_status); };
3493 then
3494 # cc works too.
3495 :
3496 else
3497 # cc exists but doesn't like -o.
3498 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3499 fi
3500 fi
3501 fi
3502 else
3503 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3504 fi
3505 rm -f core conftest*
3506
3507 fi
3508 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3509 { echo "$as_me:$LINENO: result: yes" >&5
3510 echo "${ECHO_T}yes" >&6; }
3511 else
3512 { echo "$as_me:$LINENO: result: no" >&5
3513 echo "${ECHO_T}no" >&6; }
3514
3515 cat >>confdefs.h <<\_ACEOF
3516 #define NO_MINUS_C_MINUS_O 1
3517 _ACEOF
3518
3519 fi
3520
3521 # FIXME: we rely on the cache variable name because
3522 # there is no other way.
3523 set dummy $CC
3524 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3525 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3526 # Losing compiler, so override with the script.
3527 # FIXME: It is wrong to rewrite CC.
3528 # But if we don't then we get into trouble of one sort or another.
3529 # A longer-term fix would be to have automake use am__CC in this case,
3530 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3531 CC="$am_aux_dir/compile $CC"
3532 fi
3533
3534
3535
3536 # Checks for header files.
3537
3538
3539
3540
3541
3542
3543 ac_header_dirent=no
3544 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3545 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3546 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3547 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
3548 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3549 echo $ECHO_N "(cached) $ECHO_C" >&6
3550 else
3551 cat >conftest.$ac_ext <<_ACEOF
3552 /* confdefs.h. */
3553 _ACEOF
3554 cat confdefs.h >>conftest.$ac_ext
3555 cat >>conftest.$ac_ext <<_ACEOF
3556 /* end confdefs.h. */
3557 #include <sys/types.h>
3558 #include <$ac_hdr>
3559
3560 int
3561 main ()
3562 {
3563 if ((DIR *) 0)
3564 return 0;
3565 ;
3566 return 0;
3567 }
3568 _ACEOF
3569 rm -f conftest.$ac_objext
3570 if { (ac_try="$ac_compile"
3571 case "(($ac_try" in
3572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3573 *) ac_try_echo=$ac_try;;
3574 esac
3575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3576 (eval "$ac_compile") 2>conftest.er1
3577 ac_status=$?
3578 grep -v '^ *+' conftest.er1 >conftest.err
3579 rm -f conftest.er1
3580 cat conftest.err >&5
3581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582 (exit $ac_status); } && {
3583 test -z "$ac_c_werror_flag" ||
3584 test ! -s conftest.err
3585 } && test -s conftest.$ac_objext; then
3586 eval "$as_ac_Header=yes"
3587 else
3588 echo "$as_me: failed program was:" >&5
3589 sed 's/^/| /' conftest.$ac_ext >&5
3590
3591 eval "$as_ac_Header=no"
3592 fi
3593
3594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3595 fi
3596 ac_res=`eval echo '${'$as_ac_Header'}'`
3597 { echo "$as_me:$LINENO: result: $ac_res" >&5
3598 echo "${ECHO_T}$ac_res" >&6; }
3599 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3600 cat >>confdefs.h <<_ACEOF
3601 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
3602 _ACEOF
3603
3604 ac_header_dirent=$ac_hdr; break
3605 fi
3606
3607 done
3608 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3609 if test $ac_header_dirent = dirent.h; then
3610 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
3611 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
3612 if test "${ac_cv_search_opendir+set}" = set; then
3613 echo $ECHO_N "(cached) $ECHO_C" >&6
3614 else
3615 ac_func_search_save_LIBS=$LIBS
3616 cat >conftest.$ac_ext <<_ACEOF
3617 /* confdefs.h. */
3618 _ACEOF
3619 cat confdefs.h >>conftest.$ac_ext
3620 cat >>conftest.$ac_ext <<_ACEOF
3621 /* end confdefs.h. */
3622
3623 /* Override any GCC internal prototype to avoid an error.
3624 Use char because int might match the return type of a GCC
3625 builtin and then its argument prototype would still apply. */
3626 #ifdef __cplusplus
3627 extern "C"
3628 #endif
3629 char opendir ();
3630 int
3631 main ()
3632 {
3633 return opendir ();
3634 ;
3635 return 0;
3636 }
3637 _ACEOF
3638 for ac_lib in '' dir; do
3639 if test -z "$ac_lib"; then
3640 ac_res="none required"
3641 else
3642 ac_res=-l$ac_lib
3643 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3644 fi
3645 rm -f conftest.$ac_objext conftest$ac_exeext
3646 if { (ac_try="$ac_link"
3647 case "(($ac_try" in
3648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3649 *) ac_try_echo=$ac_try;;
3650 esac
3651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3652 (eval "$ac_link") 2>conftest.er1
3653 ac_status=$?
3654 grep -v '^ *+' conftest.er1 >conftest.err
3655 rm -f conftest.er1
3656 cat conftest.err >&5
3657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658 (exit $ac_status); } && {
3659 test -z "$ac_c_werror_flag" ||
3660 test ! -s conftest.err
3661 } && test -s conftest$ac_exeext &&
3662 $as_test_x conftest$ac_exeext; then
3663 ac_cv_search_opendir=$ac_res
3664 else
3665 echo "$as_me: failed program was:" >&5
3666 sed 's/^/| /' conftest.$ac_ext >&5
3667
3668
3669 fi
3670
3671 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3672 conftest$ac_exeext
3673 if test "${ac_cv_search_opendir+set}" = set; then
3674 break
3675 fi
3676 done
3677 if test "${ac_cv_search_opendir+set}" = set; then
3678 :
3679 else
3680 ac_cv_search_opendir=no
3681 fi
3682 rm conftest.$ac_ext
3683 LIBS=$ac_func_search_save_LIBS
3684 fi
3685 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3686 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
3687 ac_res=$ac_cv_search_opendir
3688 if test "$ac_res" != no; then
3689 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3690
3691 fi
3692
3693 else
3694 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
3695 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
3696 if test "${ac_cv_search_opendir+set}" = set; then
3697 echo $ECHO_N "(cached) $ECHO_C" >&6
3698 else
3699 ac_func_search_save_LIBS=$LIBS
3700 cat >conftest.$ac_ext <<_ACEOF
3701 /* confdefs.h. */
3702 _ACEOF
3703 cat confdefs.h >>conftest.$ac_ext
3704 cat >>conftest.$ac_ext <<_ACEOF
3705 /* end confdefs.h. */
3706
3707 /* Override any GCC internal prototype to avoid an error.
3708 Use char because int might match the return type of a GCC
3709 builtin and then its argument prototype would still apply. */
3710 #ifdef __cplusplus
3711 extern "C"
3712 #endif
3713 char opendir ();
3714 int
3715 main ()
3716 {
3717 return opendir ();
3718 ;
3719 return 0;
3720 }
3721 _ACEOF
3722 for ac_lib in '' x; do
3723 if test -z "$ac_lib"; then
3724 ac_res="none required"
3725 else
3726 ac_res=-l$ac_lib
3727 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3728 fi
3729 rm -f conftest.$ac_objext conftest$ac_exeext
3730 if { (ac_try="$ac_link"
3731 case "(($ac_try" in
3732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3733 *) ac_try_echo=$ac_try;;
3734 esac
3735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3736 (eval "$ac_link") 2>conftest.er1
3737 ac_status=$?
3738 grep -v '^ *+' conftest.er1 >conftest.err
3739 rm -f conftest.er1
3740 cat conftest.err >&5
3741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742 (exit $ac_status); } && {
3743 test -z "$ac_c_werror_flag" ||
3744 test ! -s conftest.err
3745 } && test -s conftest$ac_exeext &&
3746 $as_test_x conftest$ac_exeext; then
3747 ac_cv_search_opendir=$ac_res
3748 else
3749 echo "$as_me: failed program was:" >&5
3750 sed 's/^/| /' conftest.$ac_ext >&5
3751
3752
3753 fi
3754
3755 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3756 conftest$ac_exeext
3757 if test "${ac_cv_search_opendir+set}" = set; then
3758 break
3759 fi
3760 done
3761 if test "${ac_cv_search_opendir+set}" = set; then
3762 :
3763 else
3764 ac_cv_search_opendir=no
3765 fi
3766 rm conftest.$ac_ext
3767 LIBS=$ac_func_search_save_LIBS
3768 fi
3769 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3770 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
3771 ac_res=$ac_cv_search_opendir
3772 if test "$ac_res" != no; then
3773 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3774
3775 fi
3776
3777 fi
3778
3779 ac_ext=c
3780 ac_cpp='$CPP $CPPFLAGS'
3781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3784 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3785 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3786 # On Suns, sometimes $CPP names a directory.
3787 if test -n "$CPP" && test -d "$CPP"; then
3788 CPP=
3789 fi
3790 if test -z "$CPP"; then
3791 if test "${ac_cv_prog_CPP+set}" = set; then
3792 echo $ECHO_N "(cached) $ECHO_C" >&6
3793 else
3794 # Double quotes because CPP needs to be expanded
3795 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3796 do
3797 ac_preproc_ok=false
3798 for ac_c_preproc_warn_flag in '' yes
3799 do
3800 # Use a header file that comes with gcc, so configuring glibc
3801 # with a fresh cross-compiler works.
3802 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3803 # <limits.h> exists even on freestanding compilers.
3804 # On the NeXT, cc -E runs the code through the compiler's parser,
3805 # not just through cpp. "Syntax error" is here to catch this case.
3806 cat >conftest.$ac_ext <<_ACEOF
3807 /* confdefs.h. */
3808 _ACEOF
3809 cat confdefs.h >>conftest.$ac_ext
3810 cat >>conftest.$ac_ext <<_ACEOF
3811 /* end confdefs.h. */
3812 #ifdef __STDC__
3813 # include <limits.h>
3814 #else
3815 # include <assert.h>
3816 #endif
3817 Syntax error
3818 _ACEOF
3819 if { (ac_try="$ac_cpp conftest.$ac_ext"
3820 case "(($ac_try" in
3821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3822 *) ac_try_echo=$ac_try;;
3823 esac
3824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3825 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3826 ac_status=$?
3827 grep -v '^ *+' conftest.er1 >conftest.err
3828 rm -f conftest.er1
3829 cat conftest.err >&5
3830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831 (exit $ac_status); } >/dev/null && {
3832 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3833 test ! -s conftest.err
3834 }; then
3835 :
3836 else
3837 echo "$as_me: failed program was:" >&5
3838 sed 's/^/| /' conftest.$ac_ext >&5
3839
3840 # Broken: fails on valid input.
3841 continue
3842 fi
3843
3844 rm -f conftest.err conftest.$ac_ext
3845
3846 # OK, works on sane cases. Now check whether nonexistent headers
3847 # can be detected and how.
3848 cat >conftest.$ac_ext <<_ACEOF
3849 /* confdefs.h. */
3850 _ACEOF
3851 cat confdefs.h >>conftest.$ac_ext
3852 cat >>conftest.$ac_ext <<_ACEOF
3853 /* end confdefs.h. */
3854 #include <ac_nonexistent.h>
3855 _ACEOF
3856 if { (ac_try="$ac_cpp conftest.$ac_ext"
3857 case "(($ac_try" in
3858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3859 *) ac_try_echo=$ac_try;;
3860 esac
3861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3862 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3863 ac_status=$?
3864 grep -v '^ *+' conftest.er1 >conftest.err
3865 rm -f conftest.er1
3866 cat conftest.err >&5
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868 (exit $ac_status); } >/dev/null && {
3869 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3870 test ! -s conftest.err
3871 }; then
3872 # Broken: success on invalid input.
3873 continue
3874 else
3875 echo "$as_me: failed program was:" >&5
3876 sed 's/^/| /' conftest.$ac_ext >&5
3877
3878 # Passes both tests.
3879 ac_preproc_ok=:
3880 break
3881 fi
3882
3883 rm -f conftest.err conftest.$ac_ext
3884
3885 done
3886 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3887 rm -f conftest.err conftest.$ac_ext
3888 if $ac_preproc_ok; then
3889 break
3890 fi
3891
3892 done
3893 ac_cv_prog_CPP=$CPP
3894
3895 fi
3896 CPP=$ac_cv_prog_CPP
3897 else
3898 ac_cv_prog_CPP=$CPP
3899 fi
3900 { echo "$as_me:$LINENO: result: $CPP" >&5
3901 echo "${ECHO_T}$CPP" >&6; }
3902 ac_preproc_ok=false
3903 for ac_c_preproc_warn_flag in '' yes
3904 do
3905 # Use a header file that comes with gcc, so configuring glibc
3906 # with a fresh cross-compiler works.
3907 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3908 # <limits.h> exists even on freestanding compilers.
3909 # On the NeXT, cc -E runs the code through the compiler's parser,
3910 # not just through cpp. "Syntax error" is here to catch this case.
3911 cat >conftest.$ac_ext <<_ACEOF
3912 /* confdefs.h. */
3913 _ACEOF
3914 cat confdefs.h >>conftest.$ac_ext
3915 cat >>conftest.$ac_ext <<_ACEOF
3916 /* end confdefs.h. */
3917 #ifdef __STDC__
3918 # include <limits.h>
3919 #else
3920 # include <assert.h>
3921 #endif
3922 Syntax error
3923 _ACEOF
3924 if { (ac_try="$ac_cpp conftest.$ac_ext"
3925 case "(($ac_try" in
3926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3927 *) ac_try_echo=$ac_try;;
3928 esac
3929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3930 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3931 ac_status=$?
3932 grep -v '^ *+' conftest.er1 >conftest.err
3933 rm -f conftest.er1
3934 cat conftest.err >&5
3935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936 (exit $ac_status); } >/dev/null && {
3937 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3938 test ! -s conftest.err
3939 }; then
3940 :
3941 else
3942 echo "$as_me: failed program was:" >&5
3943 sed 's/^/| /' conftest.$ac_ext >&5
3944
3945 # Broken: fails on valid input.
3946 continue
3947 fi
3948
3949 rm -f conftest.err conftest.$ac_ext
3950
3951 # OK, works on sane cases. Now check whether nonexistent headers
3952 # can be detected and how.
3953 cat >conftest.$ac_ext <<_ACEOF
3954 /* confdefs.h. */
3955 _ACEOF
3956 cat confdefs.h >>conftest.$ac_ext
3957 cat >>conftest.$ac_ext <<_ACEOF
3958 /* end confdefs.h. */
3959 #include <ac_nonexistent.h>
3960 _ACEOF
3961 if { (ac_try="$ac_cpp conftest.$ac_ext"
3962 case "(($ac_try" in
3963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3964 *) ac_try_echo=$ac_try;;
3965 esac
3966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3967 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3968 ac_status=$?
3969 grep -v '^ *+' conftest.er1 >conftest.err
3970 rm -f conftest.er1
3971 cat conftest.err >&5
3972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973 (exit $ac_status); } >/dev/null && {
3974 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3975 test ! -s conftest.err
3976 }; then
3977 # Broken: success on invalid input.
3978 continue
3979 else
3980 echo "$as_me: failed program was:" >&5
3981 sed 's/^/| /' conftest.$ac_ext >&5
3982
3983 # Passes both tests.
3984 ac_preproc_ok=:
3985 break
3986 fi
3987
3988 rm -f conftest.err conftest.$ac_ext
3989
3990 done
3991 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3992 rm -f conftest.err conftest.$ac_ext
3993 if $ac_preproc_ok; then
3994 :
3995 else
3996 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3997 See \`config.log' for more details." >&5
3998 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3999 See \`config.log' for more details." >&2;}
4000 { (exit 1); exit 1; }; }
4001 fi
4002
4003 ac_ext=c
4004 ac_cpp='$CPP $CPPFLAGS'
4005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4008
4009
4010 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4011 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4012 if test "${ac_cv_path_GREP+set}" = set; then
4013 echo $ECHO_N "(cached) $ECHO_C" >&6
4014 else
4015 # Extract the first word of "grep ggrep" to use in msg output
4016 if test -z "$GREP"; then
4017 set dummy grep ggrep; ac_prog_name=$2
4018 if test "${ac_cv_path_GREP+set}" = set; then
4019 echo $ECHO_N "(cached) $ECHO_C" >&6
4020 else
4021 ac_path_GREP_found=false
4022 # Loop through the user's path and test for each of PROGNAME-LIST
4023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4024 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4025 do
4026 IFS=$as_save_IFS
4027 test -z "$as_dir" && as_dir=.
4028 for ac_prog in grep ggrep; do
4029 for ac_exec_ext in '' $ac_executable_extensions; do
4030 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4031 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4032 # Check for GNU ac_path_GREP and select it if it is found.
4033 # Check for GNU $ac_path_GREP
4034 case `"$ac_path_GREP" --version 2>&1` in
4035 *GNU*)
4036 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4037 *)
4038 ac_count=0
4039 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4040 while :
4041 do
4042 cat "conftest.in" "conftest.in" >"conftest.tmp"
4043 mv "conftest.tmp" "conftest.in"
4044 cp "conftest.in" "conftest.nl"
4045 echo 'GREP' >> "conftest.nl"
4046 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4047 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4048 ac_count=`expr $ac_count + 1`
4049 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4050 # Best one so far, save it but keep looking for a better one
4051 ac_cv_path_GREP="$ac_path_GREP"
4052 ac_path_GREP_max=$ac_count
4053 fi
4054 # 10*(2^10) chars as input seems more than enough
4055 test $ac_count -gt 10 && break
4056 done
4057 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4058 esac
4059
4060
4061 $ac_path_GREP_found && break 3
4062 done
4063 done
4064
4065 done
4066 IFS=$as_save_IFS
4067
4068
4069 fi
4070
4071 GREP="$ac_cv_path_GREP"
4072 if test -z "$GREP"; then
4073 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4074 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4075 { (exit 1); exit 1; }; }
4076 fi
4077
4078 else
4079 ac_cv_path_GREP=$GREP
4080 fi
4081
4082
4083 fi
4084 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4085 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4086 GREP="$ac_cv_path_GREP"
4087
4088
4089 { echo "$as_me:$LINENO: checking for egrep" >&5
4090 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4091 if test "${ac_cv_path_EGREP+set}" = set; then
4092 echo $ECHO_N "(cached) $ECHO_C" >&6
4093 else
4094 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4095 then ac_cv_path_EGREP="$GREP -E"
4096 else
4097 # Extract the first word of "egrep" to use in msg output
4098 if test -z "$EGREP"; then
4099 set dummy egrep; ac_prog_name=$2
4100 if test "${ac_cv_path_EGREP+set}" = set; then
4101 echo $ECHO_N "(cached) $ECHO_C" >&6
4102 else
4103 ac_path_EGREP_found=false
4104 # Loop through the user's path and test for each of PROGNAME-LIST
4105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4106 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4107 do
4108 IFS=$as_save_IFS
4109 test -z "$as_dir" && as_dir=.
4110 for ac_prog in egrep; do
4111 for ac_exec_ext in '' $ac_executable_extensions; do
4112 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4113 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4114 # Check for GNU ac_path_EGREP and select it if it is found.
4115 # Check for GNU $ac_path_EGREP
4116 case `"$ac_path_EGREP" --version 2>&1` in
4117 *GNU*)
4118 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4119 *)
4120 ac_count=0
4121 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4122 while :
4123 do
4124 cat "conftest.in" "conftest.in" >"conftest.tmp"
4125 mv "conftest.tmp" "conftest.in"
4126 cp "conftest.in" "conftest.nl"
4127 echo 'EGREP' >> "conftest.nl"
4128 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4129 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4130 ac_count=`expr $ac_count + 1`
4131 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4132 # Best one so far, save it but keep looking for a better one
4133 ac_cv_path_EGREP="$ac_path_EGREP"
4134 ac_path_EGREP_max=$ac_count
4135 fi
4136 # 10*(2^10) chars as input seems more than enough
4137 test $ac_count -gt 10 && break
4138 done
4139 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4140 esac
4141
4142
4143 $ac_path_EGREP_found && break 3
4144 done
4145 done
4146
4147 done
4148 IFS=$as_save_IFS
4149
4150
4151 fi
4152
4153 EGREP="$ac_cv_path_EGREP"
4154 if test -z "$EGREP"; then
4155 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4156 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4157 { (exit 1); exit 1; }; }
4158 fi
4159
4160 else
4161 ac_cv_path_EGREP=$EGREP
4162 fi
4163
4164
4165 fi
4166 fi
4167 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4168 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4169 EGREP="$ac_cv_path_EGREP"
4170
4171
4172 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4173 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4174 if test "${ac_cv_header_stdc+set}" = set; then
4175 echo $ECHO_N "(cached) $ECHO_C" >&6
4176 else
4177 cat >conftest.$ac_ext <<_ACEOF
4178 /* confdefs.h. */
4179 _ACEOF
4180 cat confdefs.h >>conftest.$ac_ext
4181 cat >>conftest.$ac_ext <<_ACEOF
4182 /* end confdefs.h. */
4183 #include <stdlib.h>
4184 #include <stdarg.h>
4185 #include <string.h>
4186 #include <float.h>
4187
4188 int
4189 main ()
4190 {
4191
4192 ;
4193 return 0;
4194 }
4195 _ACEOF
4196 rm -f conftest.$ac_objext
4197 if { (ac_try="$ac_compile"
4198 case "(($ac_try" in
4199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4200 *) ac_try_echo=$ac_try;;
4201 esac
4202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4203 (eval "$ac_compile") 2>conftest.er1
4204 ac_status=$?
4205 grep -v '^ *+' conftest.er1 >conftest.err
4206 rm -f conftest.er1
4207 cat conftest.err >&5
4208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209 (exit $ac_status); } && {
4210 test -z "$ac_c_werror_flag" ||
4211 test ! -s conftest.err
4212 } && test -s conftest.$ac_objext; then
4213 ac_cv_header_stdc=yes
4214 else
4215 echo "$as_me: failed program was:" >&5
4216 sed 's/^/| /' conftest.$ac_ext >&5
4217
4218 ac_cv_header_stdc=no
4219 fi
4220
4221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4222
4223 if test $ac_cv_header_stdc = yes; then
4224 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4225 cat >conftest.$ac_ext <<_ACEOF
4226 /* confdefs.h. */
4227 _ACEOF
4228 cat confdefs.h >>conftest.$ac_ext
4229 cat >>conftest.$ac_ext <<_ACEOF
4230 /* end confdefs.h. */
4231 #include <string.h>
4232
4233 _ACEOF
4234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4235 $EGREP "memchr" >/dev/null 2>&1; then
4236 :
4237 else
4238 ac_cv_header_stdc=no
4239 fi
4240 rm -f conftest*
4241
4242 fi
4243
4244 if test $ac_cv_header_stdc = yes; then
4245 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4246 cat >conftest.$ac_ext <<_ACEOF
4247 /* confdefs.h. */
4248 _ACEOF
4249 cat confdefs.h >>conftest.$ac_ext
4250 cat >>conftest.$ac_ext <<_ACEOF
4251 /* end confdefs.h. */
4252 #include <stdlib.h>
4253
4254 _ACEOF
4255 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4256 $EGREP "free" >/dev/null 2>&1; then
4257 :
4258 else
4259 ac_cv_header_stdc=no
4260 fi
4261 rm -f conftest*
4262
4263 fi
4264
4265 if test $ac_cv_header_stdc = yes; then
4266 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4267 if test "$cross_compiling" = yes; then
4268 :
4269 else
4270 cat >conftest.$ac_ext <<_ACEOF
4271 /* confdefs.h. */
4272 _ACEOF
4273 cat confdefs.h >>conftest.$ac_ext
4274 cat >>conftest.$ac_ext <<_ACEOF
4275 /* end confdefs.h. */
4276 #include <ctype.h>
4277 #include <stdlib.h>
4278 #if ((' ' & 0x0FF) == 0x020)
4279 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4280 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4281 #else
4282 # define ISLOWER(c) \
4283 (('a' <= (c) && (c) <= 'i') \
4284 || ('j' <= (c) && (c) <= 'r') \
4285 || ('s' <= (c) && (c) <= 'z'))
4286 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4287 #endif
4288
4289 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4290 int
4291 main ()
4292 {
4293 int i;
4294 for (i = 0; i < 256; i++)
4295 if (XOR (islower (i), ISLOWER (i))
4296 || toupper (i) != TOUPPER (i))
4297 return 2;
4298 return 0;
4299 }
4300 _ACEOF
4301 rm -f conftest$ac_exeext
4302 if { (ac_try="$ac_link"
4303 case "(($ac_try" in
4304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4305 *) ac_try_echo=$ac_try;;
4306 esac
4307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4308 (eval "$ac_link") 2>&5
4309 ac_status=$?
4310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4312 { (case "(($ac_try" in
4313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4314 *) ac_try_echo=$ac_try;;
4315 esac
4316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4317 (eval "$ac_try") 2>&5
4318 ac_status=$?
4319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4320 (exit $ac_status); }; }; then
4321 :
4322 else
4323 echo "$as_me: program exited with status $ac_status" >&5
4324 echo "$as_me: failed program was:" >&5
4325 sed 's/^/| /' conftest.$ac_ext >&5
4326
4327 ( exit $ac_status )
4328 ac_cv_header_stdc=no
4329 fi
4330 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4331 fi
4332
4333
4334 fi
4335 fi
4336 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4337 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4338 if test $ac_cv_header_stdc = yes; then
4339
4340 cat >>confdefs.h <<\_ACEOF
4341 #define STDC_HEADERS 1
4342 _ACEOF
4343
4344 fi
4345
4346 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4347 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
4348 if test "${ac_cv_header_sys_wait_h+set}" = set; then
4349 echo $ECHO_N "(cached) $ECHO_C" >&6
4350 else
4351 cat >conftest.$ac_ext <<_ACEOF
4352 /* confdefs.h. */
4353 _ACEOF
4354 cat confdefs.h >>conftest.$ac_ext
4355 cat >>conftest.$ac_ext <<_ACEOF
4356 /* end confdefs.h. */
4357 #include <sys/types.h>
4358 #include <sys/wait.h>
4359 #ifndef WEXITSTATUS
4360 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4361 #endif
4362 #ifndef WIFEXITED
4363 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4364 #endif
4365
4366 int
4367 main ()
4368 {
4369 int s;
4370 wait (&s);
4371 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4372 ;
4373 return 0;
4374 }
4375 _ACEOF
4376 rm -f conftest.$ac_objext
4377 if { (ac_try="$ac_compile"
4378 case "(($ac_try" in
4379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4380 *) ac_try_echo=$ac_try;;
4381 esac
4382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4383 (eval "$ac_compile") 2>conftest.er1
4384 ac_status=$?
4385 grep -v '^ *+' conftest.er1 >conftest.err
4386 rm -f conftest.er1
4387 cat conftest.err >&5
4388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389 (exit $ac_status); } && {
4390 test -z "$ac_c_werror_flag" ||
4391 test ! -s conftest.err
4392 } && test -s conftest.$ac_objext; then
4393 ac_cv_header_sys_wait_h=yes
4394 else
4395 echo "$as_me: failed program was:" >&5
4396 sed 's/^/| /' conftest.$ac_ext >&5
4397
4398 ac_cv_header_sys_wait_h=no
4399 fi
4400
4401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4402 fi
4403 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4404 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
4405 if test $ac_cv_header_sys_wait_h = yes; then
4406
4407 cat >>confdefs.h <<\_ACEOF
4408 #define HAVE_SYS_WAIT_H 1
4409 _ACEOF
4410
4411 fi
4412
4413 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4424 inttypes.h stdint.h unistd.h
4425 do
4426 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4427 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4429 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4430 echo $ECHO_N "(cached) $ECHO_C" >&6
4431 else
4432 cat >conftest.$ac_ext <<_ACEOF
4433 /* confdefs.h. */
4434 _ACEOF
4435 cat confdefs.h >>conftest.$ac_ext
4436 cat >>conftest.$ac_ext <<_ACEOF
4437 /* end confdefs.h. */
4438 $ac_includes_default
4439
4440 #include <$ac_header>
4441 _ACEOF
4442 rm -f conftest.$ac_objext
4443 if { (ac_try="$ac_compile"
4444 case "(($ac_try" in
4445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4446 *) ac_try_echo=$ac_try;;
4447 esac
4448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4449 (eval "$ac_compile") 2>conftest.er1
4450 ac_status=$?
4451 grep -v '^ *+' conftest.er1 >conftest.err
4452 rm -f conftest.er1
4453 cat conftest.err >&5
4454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455 (exit $ac_status); } && {
4456 test -z "$ac_c_werror_flag" ||
4457 test ! -s conftest.err
4458 } && test -s conftest.$ac_objext; then
4459 eval "$as_ac_Header=yes"
4460 else
4461 echo "$as_me: failed program was:" >&5
4462 sed 's/^/| /' conftest.$ac_ext >&5
4463
4464 eval "$as_ac_Header=no"
4465 fi
4466
4467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4468 fi
4469 ac_res=`eval echo '${'$as_ac_Header'}'`
4470 { echo "$as_me:$LINENO: result: $ac_res" >&5
4471 echo "${ECHO_T}$ac_res" >&6; }
4472 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4473 cat >>confdefs.h <<_ACEOF
4474 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4475 _ACEOF
4476
4477 fi
4478
4479 done
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499 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
4500 do
4501 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4502 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4503 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4504 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4505 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4506 echo $ECHO_N "(cached) $ECHO_C" >&6
4507 fi
4508 ac_res=`eval echo '${'$as_ac_Header'}'`
4509 { echo "$as_me:$LINENO: result: $ac_res" >&5
4510 echo "${ECHO_T}$ac_res" >&6; }
4511 else
4512 # Is the header compilable?
4513 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4514 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4515 cat >conftest.$ac_ext <<_ACEOF
4516 /* confdefs.h. */
4517 _ACEOF
4518 cat confdefs.h >>conftest.$ac_ext
4519 cat >>conftest.$ac_ext <<_ACEOF
4520 /* end confdefs.h. */
4521 $ac_includes_default
4522 #include <$ac_header>
4523 _ACEOF
4524 rm -f conftest.$ac_objext
4525 if { (ac_try="$ac_compile"
4526 case "(($ac_try" in
4527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4528 *) ac_try_echo=$ac_try;;
4529 esac
4530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4531 (eval "$ac_compile") 2>conftest.er1
4532 ac_status=$?
4533 grep -v '^ *+' conftest.er1 >conftest.err
4534 rm -f conftest.er1
4535 cat conftest.err >&5
4536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537 (exit $ac_status); } && {
4538 test -z "$ac_c_werror_flag" ||
4539 test ! -s conftest.err
4540 } && test -s conftest.$ac_objext; then
4541 ac_header_compiler=yes
4542 else
4543 echo "$as_me: failed program was:" >&5
4544 sed 's/^/| /' conftest.$ac_ext >&5
4545
4546 ac_header_compiler=no
4547 fi
4548
4549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4550 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4551 echo "${ECHO_T}$ac_header_compiler" >&6; }
4552
4553 # Is the header present?
4554 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4555 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4556 cat >conftest.$ac_ext <<_ACEOF
4557 /* confdefs.h. */
4558 _ACEOF
4559 cat confdefs.h >>conftest.$ac_ext
4560 cat >>conftest.$ac_ext <<_ACEOF
4561 /* end confdefs.h. */
4562 #include <$ac_header>
4563 _ACEOF
4564 if { (ac_try="$ac_cpp conftest.$ac_ext"
4565 case "(($ac_try" in
4566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4567 *) ac_try_echo=$ac_try;;
4568 esac
4569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4570 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4571 ac_status=$?
4572 grep -v '^ *+' conftest.er1 >conftest.err
4573 rm -f conftest.er1
4574 cat conftest.err >&5
4575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576 (exit $ac_status); } >/dev/null && {
4577 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4578 test ! -s conftest.err
4579 }; then
4580 ac_header_preproc=yes
4581 else
4582 echo "$as_me: failed program was:" >&5
4583 sed 's/^/| /' conftest.$ac_ext >&5
4584
4585 ac_header_preproc=no
4586 fi
4587
4588 rm -f conftest.err conftest.$ac_ext
4589 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4590 echo "${ECHO_T}$ac_header_preproc" >&6; }
4591
4592 # So? What about this header?
4593 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4594 yes:no: )
4595 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4596 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4597 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4598 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4599 ac_header_preproc=yes
4600 ;;
4601 no:yes:* )
4602 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4603 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4604 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4605 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4606 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4607 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4608 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4609 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4610 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4611 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4612 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4613 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4614 ( cat <<\_ASBOX
4615 ## -------------------------------------------------- ##
4616 ## Report this to launchd-bug-reports@group.apple.com ##
4617 ## -------------------------------------------------- ##
4618 _ASBOX
4619 ) | sed "s/^/$as_me: WARNING: /" >&2
4620 ;;
4621 esac
4622 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4623 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4624 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4625 echo $ECHO_N "(cached) $ECHO_C" >&6
4626 else
4627 eval "$as_ac_Header=\$ac_header_preproc"
4628 fi
4629 ac_res=`eval echo '${'$as_ac_Header'}'`
4630 { echo "$as_me:$LINENO: result: $ac_res" >&5
4631 echo "${ECHO_T}$ac_res" >&6; }
4632
4633 fi
4634 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4635 cat >>confdefs.h <<_ACEOF
4636 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4637 _ACEOF
4638
4639 fi
4640
4641 done
4642
4643
4644 # Checks for typedefs, structures, and compiler characteristics.
4645 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
4646 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
4647 if test "${ac_cv_header_stdbool_h+set}" = set; then
4648 echo $ECHO_N "(cached) $ECHO_C" >&6
4649 else
4650 cat >conftest.$ac_ext <<_ACEOF
4651 /* confdefs.h. */
4652 _ACEOF
4653 cat confdefs.h >>conftest.$ac_ext
4654 cat >>conftest.$ac_ext <<_ACEOF
4655 /* end confdefs.h. */
4656
4657 #include <stdbool.h>
4658 #ifndef bool
4659 "error: bool is not defined"
4660 #endif
4661 #ifndef false
4662 "error: false is not defined"
4663 #endif
4664 #if false
4665 "error: false is not 0"
4666 #endif
4667 #ifndef true
4668 "error: true is not defined"
4669 #endif
4670 #if true != 1
4671 "error: true is not 1"
4672 #endif
4673 #ifndef __bool_true_false_are_defined
4674 "error: __bool_true_false_are_defined is not defined"
4675 #endif
4676
4677 struct s { _Bool s: 1; _Bool t; } s;
4678
4679 char a[true == 1 ? 1 : -1];
4680 char b[false == 0 ? 1 : -1];
4681 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
4682 char d[(bool) 0.5 == true ? 1 : -1];
4683 bool e = &s;
4684 char f[(_Bool) 0.0 == false ? 1 : -1];
4685 char g[true];
4686 char h[sizeof (_Bool)];
4687 char i[sizeof s.t];
4688 enum { j = false, k = true, l = false * true, m = true * 256 };
4689 _Bool n[m];
4690 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
4691 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
4692 # if defined __xlc__ || defined __GNUC__
4693 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
4694 reported by James Lemley on 2005-10-05; see
4695 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
4696 This test is not quite right, since xlc is allowed to
4697 reject this program, as the initializer for xlcbug is
4698 not one of the forms that C requires support for.
4699 However, doing the test right would require a runtime
4700 test, and that would make cross-compilation harder.
4701 Let us hope that IBM fixes the xlc bug, and also adds
4702 support for this kind of constant expression. In the
4703 meantime, this test will reject xlc, which is OK, since
4704 our stdbool.h substitute should suffice. We also test
4705 this with GCC, where it should work, to detect more
4706 quickly whether someone messes up the test in the
4707 future. */
4708 char digs[] = "0123456789";
4709 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
4710 # endif
4711 /* Catch a bug in an HP-UX C compiler. See
4712 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
4713 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
4714 */
4715 _Bool q = true;
4716 _Bool *pq = &q;
4717
4718 int
4719 main ()
4720 {
4721
4722 *pq |= q;
4723 *pq |= ! q;
4724 /* Refer to every declared value, to avoid compiler optimizations. */
4725 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
4726 + !m + !n + !o + !p + !q + !pq);
4727
4728 ;
4729 return 0;
4730 }
4731 _ACEOF
4732 rm -f conftest.$ac_objext
4733 if { (ac_try="$ac_compile"
4734 case "(($ac_try" in
4735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4736 *) ac_try_echo=$ac_try;;
4737 esac
4738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4739 (eval "$ac_compile") 2>conftest.er1
4740 ac_status=$?
4741 grep -v '^ *+' conftest.er1 >conftest.err
4742 rm -f conftest.er1
4743 cat conftest.err >&5
4744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745 (exit $ac_status); } && {
4746 test -z "$ac_c_werror_flag" ||
4747 test ! -s conftest.err
4748 } && test -s conftest.$ac_objext; then
4749 ac_cv_header_stdbool_h=yes
4750 else
4751 echo "$as_me: failed program was:" >&5
4752 sed 's/^/| /' conftest.$ac_ext >&5
4753
4754 ac_cv_header_stdbool_h=no
4755 fi
4756
4757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4758 fi
4759 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
4760 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
4761 { echo "$as_me:$LINENO: checking for _Bool" >&5
4762 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
4763 if test "${ac_cv_type__Bool+set}" = set; then
4764 echo $ECHO_N "(cached) $ECHO_C" >&6
4765 else
4766 cat >conftest.$ac_ext <<_ACEOF
4767 /* confdefs.h. */
4768 _ACEOF
4769 cat confdefs.h >>conftest.$ac_ext
4770 cat >>conftest.$ac_ext <<_ACEOF
4771 /* end confdefs.h. */
4772 $ac_includes_default
4773 typedef _Bool ac__type_new_;
4774 int
4775 main ()
4776 {
4777 if ((ac__type_new_ *) 0)
4778 return 0;
4779 if (sizeof (ac__type_new_))
4780 return 0;
4781 ;
4782 return 0;
4783 }
4784 _ACEOF
4785 rm -f conftest.$ac_objext
4786 if { (ac_try="$ac_compile"
4787 case "(($ac_try" in
4788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4789 *) ac_try_echo=$ac_try;;
4790 esac
4791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4792 (eval "$ac_compile") 2>conftest.er1
4793 ac_status=$?
4794 grep -v '^ *+' conftest.er1 >conftest.err
4795 rm -f conftest.er1
4796 cat conftest.err >&5
4797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4798 (exit $ac_status); } && {
4799 test -z "$ac_c_werror_flag" ||
4800 test ! -s conftest.err
4801 } && test -s conftest.$ac_objext; then
4802 ac_cv_type__Bool=yes
4803 else
4804 echo "$as_me: failed program was:" >&5
4805 sed 's/^/| /' conftest.$ac_ext >&5
4806
4807 ac_cv_type__Bool=no
4808 fi
4809
4810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4811 fi
4812 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
4813 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
4814 if test $ac_cv_type__Bool = yes; then
4815
4816 cat >>confdefs.h <<_ACEOF
4817 #define HAVE__BOOL 1
4818 _ACEOF
4819
4820
4821 fi
4822
4823 if test $ac_cv_header_stdbool_h = yes; then
4824
4825 cat >>confdefs.h <<\_ACEOF
4826 #define HAVE_STDBOOL_H 1
4827 _ACEOF
4828
4829 fi
4830
4831 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4832 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
4833 if test "${ac_cv_c_const+set}" = set; then
4834 echo $ECHO_N "(cached) $ECHO_C" >&6
4835 else
4836 cat >conftest.$ac_ext <<_ACEOF
4837 /* confdefs.h. */
4838 _ACEOF
4839 cat confdefs.h >>conftest.$ac_ext
4840 cat >>conftest.$ac_ext <<_ACEOF
4841 /* end confdefs.h. */
4842
4843 int
4844 main ()
4845 {
4846 /* FIXME: Include the comments suggested by Paul. */
4847 #ifndef __cplusplus
4848 /* Ultrix mips cc rejects this. */
4849 typedef int charset[2];
4850 const charset cs;
4851 /* SunOS 4.1.1 cc rejects this. */
4852 char const *const *pcpcc;
4853 char **ppc;
4854 /* NEC SVR4.0.2 mips cc rejects this. */
4855 struct point {int x, y;};
4856 static struct point const zero = {0,0};
4857 /* AIX XL C 1.02.0.0 rejects this.
4858 It does not let you subtract one const X* pointer from another in
4859 an arm of an if-expression whose if-part is not a constant
4860 expression */
4861 const char *g = "string";
4862 pcpcc = &g + (g ? g-g : 0);
4863 /* HPUX 7.0 cc rejects these. */
4864 ++pcpcc;
4865 ppc = (char**) pcpcc;
4866 pcpcc = (char const *const *) ppc;
4867 { /* SCO 3.2v4 cc rejects this. */
4868 char *t;
4869 char const *s = 0 ? (char *) 0 : (char const *) 0;
4870
4871 *t++ = 0;
4872 if (s) return 0;
4873 }
4874 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4875 int x[] = {25, 17};
4876 const int *foo = &x[0];
4877 ++foo;
4878 }
4879 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4880 typedef const int *iptr;
4881 iptr p = 0;
4882 ++p;
4883 }
4884 { /* AIX XL C 1.02.0.0 rejects this saying
4885 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4886 struct s { int j; const int *ap[3]; };
4887 struct s *b; b->j = 5;
4888 }
4889 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4890 const int foo = 10;
4891 if (!foo) return 0;
4892 }
4893 return !cs[0] && !zero.x;
4894 #endif
4895
4896 ;
4897 return 0;
4898 }
4899 _ACEOF
4900 rm -f conftest.$ac_objext
4901 if { (ac_try="$ac_compile"
4902 case "(($ac_try" in
4903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4904 *) ac_try_echo=$ac_try;;
4905 esac
4906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4907 (eval "$ac_compile") 2>conftest.er1
4908 ac_status=$?
4909 grep -v '^ *+' conftest.er1 >conftest.err
4910 rm -f conftest.er1
4911 cat conftest.err >&5
4912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913 (exit $ac_status); } && {
4914 test -z "$ac_c_werror_flag" ||
4915 test ! -s conftest.err
4916 } && test -s conftest.$ac_objext; then
4917 ac_cv_c_const=yes
4918 else
4919 echo "$as_me: failed program was:" >&5
4920 sed 's/^/| /' conftest.$ac_ext >&5
4921
4922 ac_cv_c_const=no
4923 fi
4924
4925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4926 fi
4927 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4928 echo "${ECHO_T}$ac_cv_c_const" >&6; }
4929 if test $ac_cv_c_const = no; then
4930
4931 cat >>confdefs.h <<\_ACEOF
4932 #define const
4933 _ACEOF
4934
4935 fi
4936
4937 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
4938 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
4939 if test "${ac_cv_type_uid_t+set}" = set; then
4940 echo $ECHO_N "(cached) $ECHO_C" >&6
4941 else
4942 cat >conftest.$ac_ext <<_ACEOF
4943 /* confdefs.h. */
4944 _ACEOF
4945 cat confdefs.h >>conftest.$ac_ext
4946 cat >>conftest.$ac_ext <<_ACEOF
4947 /* end confdefs.h. */
4948 #include <sys/types.h>
4949
4950 _ACEOF
4951 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4952 $EGREP "uid_t" >/dev/null 2>&1; then
4953 ac_cv_type_uid_t=yes
4954 else
4955 ac_cv_type_uid_t=no
4956 fi
4957 rm -f conftest*
4958
4959 fi
4960 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
4961 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
4962 if test $ac_cv_type_uid_t = no; then
4963
4964 cat >>confdefs.h <<\_ACEOF
4965 #define uid_t int
4966 _ACEOF
4967
4968
4969 cat >>confdefs.h <<\_ACEOF
4970 #define gid_t int
4971 _ACEOF
4972
4973 fi
4974
4975 { echo "$as_me:$LINENO: checking for mode_t" >&5
4976 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
4977 if test "${ac_cv_type_mode_t+set}" = set; then
4978 echo $ECHO_N "(cached) $ECHO_C" >&6
4979 else
4980 cat >conftest.$ac_ext <<_ACEOF
4981 /* confdefs.h. */
4982 _ACEOF
4983 cat confdefs.h >>conftest.$ac_ext
4984 cat >>conftest.$ac_ext <<_ACEOF
4985 /* end confdefs.h. */
4986 $ac_includes_default
4987 typedef mode_t ac__type_new_;
4988 int
4989 main ()
4990 {
4991 if ((ac__type_new_ *) 0)
4992 return 0;
4993 if (sizeof (ac__type_new_))
4994 return 0;
4995 ;
4996 return 0;
4997 }
4998 _ACEOF
4999 rm -f conftest.$ac_objext
5000 if { (ac_try="$ac_compile"
5001 case "(($ac_try" in
5002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5003 *) ac_try_echo=$ac_try;;
5004 esac
5005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5006 (eval "$ac_compile") 2>conftest.er1
5007 ac_status=$?
5008 grep -v '^ *+' conftest.er1 >conftest.err
5009 rm -f conftest.er1
5010 cat conftest.err >&5
5011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5012 (exit $ac_status); } && {
5013 test -z "$ac_c_werror_flag" ||
5014 test ! -s conftest.err
5015 } && test -s conftest.$ac_objext; then
5016 ac_cv_type_mode_t=yes
5017 else
5018 echo "$as_me: failed program was:" >&5
5019 sed 's/^/| /' conftest.$ac_ext >&5
5020
5021 ac_cv_type_mode_t=no
5022 fi
5023
5024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5025 fi
5026 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
5027 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
5028 if test $ac_cv_type_mode_t = yes; then
5029 :
5030 else
5031
5032 cat >>confdefs.h <<_ACEOF
5033 #define mode_t int
5034 _ACEOF
5035
5036 fi
5037
5038 { echo "$as_me:$LINENO: checking for off_t" >&5
5039 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
5040 if test "${ac_cv_type_off_t+set}" = set; then
5041 echo $ECHO_N "(cached) $ECHO_C" >&6
5042 else
5043 cat >conftest.$ac_ext <<_ACEOF
5044 /* confdefs.h. */
5045 _ACEOF
5046 cat confdefs.h >>conftest.$ac_ext
5047 cat >>conftest.$ac_ext <<_ACEOF
5048 /* end confdefs.h. */
5049 $ac_includes_default
5050 typedef off_t ac__type_new_;
5051 int
5052 main ()
5053 {
5054 if ((ac__type_new_ *) 0)
5055 return 0;
5056 if (sizeof (ac__type_new_))
5057 return 0;
5058 ;
5059 return 0;
5060 }
5061 _ACEOF
5062 rm -f conftest.$ac_objext
5063 if { (ac_try="$ac_compile"
5064 case "(($ac_try" in
5065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5066 *) ac_try_echo=$ac_try;;
5067 esac
5068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5069 (eval "$ac_compile") 2>conftest.er1
5070 ac_status=$?
5071 grep -v '^ *+' conftest.er1 >conftest.err
5072 rm -f conftest.er1
5073 cat conftest.err >&5
5074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5075 (exit $ac_status); } && {
5076 test -z "$ac_c_werror_flag" ||
5077 test ! -s conftest.err
5078 } && test -s conftest.$ac_objext; then
5079 ac_cv_type_off_t=yes
5080 else
5081 echo "$as_me: failed program was:" >&5
5082 sed 's/^/| /' conftest.$ac_ext >&5
5083
5084 ac_cv_type_off_t=no
5085 fi
5086
5087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5088 fi
5089 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5090 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
5091 if test $ac_cv_type_off_t = yes; then
5092 :
5093 else
5094
5095 cat >>confdefs.h <<_ACEOF
5096 #define off_t long int
5097 _ACEOF
5098
5099 fi
5100
5101 { echo "$as_me:$LINENO: checking for pid_t" >&5
5102 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
5103 if test "${ac_cv_type_pid_t+set}" = set; then
5104 echo $ECHO_N "(cached) $ECHO_C" >&6
5105 else
5106 cat >conftest.$ac_ext <<_ACEOF
5107 /* confdefs.h. */
5108 _ACEOF
5109 cat confdefs.h >>conftest.$ac_ext
5110 cat >>conftest.$ac_ext <<_ACEOF
5111 /* end confdefs.h. */
5112 $ac_includes_default
5113 typedef pid_t ac__type_new_;
5114 int
5115 main ()
5116 {
5117 if ((ac__type_new_ *) 0)
5118 return 0;
5119 if (sizeof (ac__type_new_))
5120 return 0;
5121 ;
5122 return 0;
5123 }
5124 _ACEOF
5125 rm -f conftest.$ac_objext
5126 if { (ac_try="$ac_compile"
5127 case "(($ac_try" in
5128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5129 *) ac_try_echo=$ac_try;;
5130 esac
5131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5132 (eval "$ac_compile") 2>conftest.er1
5133 ac_status=$?
5134 grep -v '^ *+' conftest.er1 >conftest.err
5135 rm -f conftest.er1
5136 cat conftest.err >&5
5137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138 (exit $ac_status); } && {
5139 test -z "$ac_c_werror_flag" ||
5140 test ! -s conftest.err
5141 } && test -s conftest.$ac_objext; then
5142 ac_cv_type_pid_t=yes
5143 else
5144 echo "$as_me: failed program was:" >&5
5145 sed 's/^/| /' conftest.$ac_ext >&5
5146
5147 ac_cv_type_pid_t=no
5148 fi
5149
5150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5151 fi
5152 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5153 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
5154 if test $ac_cv_type_pid_t = yes; then
5155 :
5156 else
5157
5158 cat >>confdefs.h <<_ACEOF
5159 #define pid_t int
5160 _ACEOF
5161
5162 fi
5163
5164 { echo "$as_me:$LINENO: checking for size_t" >&5
5165 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5166 if test "${ac_cv_type_size_t+set}" = set; then
5167 echo $ECHO_N "(cached) $ECHO_C" >&6
5168 else
5169 cat >conftest.$ac_ext <<_ACEOF
5170 /* confdefs.h. */
5171 _ACEOF
5172 cat confdefs.h >>conftest.$ac_ext
5173 cat >>conftest.$ac_ext <<_ACEOF
5174 /* end confdefs.h. */
5175 $ac_includes_default
5176 typedef size_t ac__type_new_;
5177 int
5178 main ()
5179 {
5180 if ((ac__type_new_ *) 0)
5181 return 0;
5182 if (sizeof (ac__type_new_))
5183 return 0;
5184 ;
5185 return 0;
5186 }
5187 _ACEOF
5188 rm -f conftest.$ac_objext
5189 if { (ac_try="$ac_compile"
5190 case "(($ac_try" in
5191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5192 *) ac_try_echo=$ac_try;;
5193 esac
5194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5195 (eval "$ac_compile") 2>conftest.er1
5196 ac_status=$?
5197 grep -v '^ *+' conftest.er1 >conftest.err
5198 rm -f conftest.er1
5199 cat conftest.err >&5
5200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201 (exit $ac_status); } && {
5202 test -z "$ac_c_werror_flag" ||
5203 test ! -s conftest.err
5204 } && test -s conftest.$ac_objext; then
5205 ac_cv_type_size_t=yes
5206 else
5207 echo "$as_me: failed program was:" >&5
5208 sed 's/^/| /' conftest.$ac_ext >&5
5209
5210 ac_cv_type_size_t=no
5211 fi
5212
5213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5214 fi
5215 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5216 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5217 if test $ac_cv_type_size_t = yes; then
5218 :
5219 else
5220
5221 cat >>confdefs.h <<_ACEOF
5222 #define size_t unsigned int
5223 _ACEOF
5224
5225 fi
5226
5227 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5228 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
5229 if test "${ac_cv_header_time+set}" = set; then
5230 echo $ECHO_N "(cached) $ECHO_C" >&6
5231 else
5232 cat >conftest.$ac_ext <<_ACEOF
5233 /* confdefs.h. */
5234 _ACEOF
5235 cat confdefs.h >>conftest.$ac_ext
5236 cat >>conftest.$ac_ext <<_ACEOF
5237 /* end confdefs.h. */
5238 #include <sys/types.h>
5239 #include <sys/time.h>
5240 #include <time.h>
5241
5242 int
5243 main ()
5244 {
5245 if ((struct tm *) 0)
5246 return 0;
5247 ;
5248 return 0;
5249 }
5250 _ACEOF
5251 rm -f conftest.$ac_objext
5252 if { (ac_try="$ac_compile"
5253 case "(($ac_try" in
5254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5255 *) ac_try_echo=$ac_try;;
5256 esac
5257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5258 (eval "$ac_compile") 2>conftest.er1
5259 ac_status=$?
5260 grep -v '^ *+' conftest.er1 >conftest.err
5261 rm -f conftest.er1
5262 cat conftest.err >&5
5263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5264 (exit $ac_status); } && {
5265 test -z "$ac_c_werror_flag" ||
5266 test ! -s conftest.err
5267 } && test -s conftest.$ac_objext; then
5268 ac_cv_header_time=yes
5269 else
5270 echo "$as_me: failed program was:" >&5
5271 sed 's/^/| /' conftest.$ac_ext >&5
5272
5273 ac_cv_header_time=no
5274 fi
5275
5276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5277 fi
5278 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5279 echo "${ECHO_T}$ac_cv_header_time" >&6; }
5280 if test $ac_cv_header_time = yes; then
5281
5282 cat >>confdefs.h <<\_ACEOF
5283 #define TIME_WITH_SYS_TIME 1
5284 _ACEOF
5285
5286 fi
5287
5288 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5289 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
5290 if test "${ac_cv_struct_tm+set}" = set; then
5291 echo $ECHO_N "(cached) $ECHO_C" >&6
5292 else
5293 cat >conftest.$ac_ext <<_ACEOF
5294 /* confdefs.h. */
5295 _ACEOF
5296 cat confdefs.h >>conftest.$ac_ext
5297 cat >>conftest.$ac_ext <<_ACEOF
5298 /* end confdefs.h. */
5299 #include <sys/types.h>
5300 #include <time.h>
5301
5302 int
5303 main ()
5304 {
5305 struct tm tm;
5306 int *p = &tm.tm_sec;
5307 return !p;
5308 ;
5309 return 0;
5310 }
5311 _ACEOF
5312 rm -f conftest.$ac_objext
5313 if { (ac_try="$ac_compile"
5314 case "(($ac_try" in
5315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5316 *) ac_try_echo=$ac_try;;
5317 esac
5318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5319 (eval "$ac_compile") 2>conftest.er1
5320 ac_status=$?
5321 grep -v '^ *+' conftest.er1 >conftest.err
5322 rm -f conftest.er1
5323 cat conftest.err >&5
5324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325 (exit $ac_status); } && {
5326 test -z "$ac_c_werror_flag" ||
5327 test ! -s conftest.err
5328 } && test -s conftest.$ac_objext; then
5329 ac_cv_struct_tm=time.h
5330 else
5331 echo "$as_me: failed program was:" >&5
5332 sed 's/^/| /' conftest.$ac_ext >&5
5333
5334 ac_cv_struct_tm=sys/time.h
5335 fi
5336
5337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5338 fi
5339 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5340 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
5341 if test $ac_cv_struct_tm = sys/time.h; then
5342
5343 cat >>confdefs.h <<\_ACEOF
5344 #define TM_IN_SYS_TIME 1
5345 _ACEOF
5346
5347 fi
5348
5349
5350 # Checks for library functions.
5351 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5352 # for constant arguments. Useless!
5353 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
5354 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
5355 if test "${ac_cv_working_alloca_h+set}" = set; then
5356 echo $ECHO_N "(cached) $ECHO_C" >&6
5357 else
5358 cat >conftest.$ac_ext <<_ACEOF
5359 /* confdefs.h. */
5360 _ACEOF
5361 cat confdefs.h >>conftest.$ac_ext
5362 cat >>conftest.$ac_ext <<_ACEOF
5363 /* end confdefs.h. */
5364 #include <alloca.h>
5365 int
5366 main ()
5367 {
5368 char *p = (char *) alloca (2 * sizeof (int));
5369 if (p) return 0;
5370 ;
5371 return 0;
5372 }
5373 _ACEOF
5374 rm -f conftest.$ac_objext conftest$ac_exeext
5375 if { (ac_try="$ac_link"
5376 case "(($ac_try" in
5377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5378 *) ac_try_echo=$ac_try;;
5379 esac
5380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5381 (eval "$ac_link") 2>conftest.er1
5382 ac_status=$?
5383 grep -v '^ *+' conftest.er1 >conftest.err
5384 rm -f conftest.er1
5385 cat conftest.err >&5
5386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387 (exit $ac_status); } && {
5388 test -z "$ac_c_werror_flag" ||
5389 test ! -s conftest.err
5390 } && test -s conftest$ac_exeext &&
5391 $as_test_x conftest$ac_exeext; then
5392 ac_cv_working_alloca_h=yes
5393 else
5394 echo "$as_me: failed program was:" >&5
5395 sed 's/^/| /' conftest.$ac_ext >&5
5396
5397 ac_cv_working_alloca_h=no
5398 fi
5399
5400 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5401 conftest$ac_exeext conftest.$ac_ext
5402 fi
5403 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5404 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
5405 if test $ac_cv_working_alloca_h = yes; then
5406
5407 cat >>confdefs.h <<\_ACEOF
5408 #define HAVE_ALLOCA_H 1
5409 _ACEOF
5410
5411 fi
5412
5413 { echo "$as_me:$LINENO: checking for alloca" >&5
5414 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
5415 if test "${ac_cv_func_alloca_works+set}" = set; then
5416 echo $ECHO_N "(cached) $ECHO_C" >&6
5417 else
5418 cat >conftest.$ac_ext <<_ACEOF
5419 /* confdefs.h. */
5420 _ACEOF
5421 cat confdefs.h >>conftest.$ac_ext
5422 cat >>conftest.$ac_ext <<_ACEOF
5423 /* end confdefs.h. */
5424 #ifdef __GNUC__
5425 # define alloca __builtin_alloca
5426 #else
5427 # ifdef _MSC_VER
5428 # include <malloc.h>
5429 # define alloca _alloca
5430 # else
5431 # ifdef HAVE_ALLOCA_H
5432 # include <alloca.h>
5433 # else
5434 # ifdef _AIX
5435 #pragma alloca
5436 # else
5437 # ifndef alloca /* predefined by HP cc +Olibcalls */
5438 char *alloca ();
5439 # endif
5440 # endif
5441 # endif
5442 # endif
5443 #endif
5444
5445 int
5446 main ()
5447 {
5448 char *p = (char *) alloca (1);
5449 if (p) return 0;
5450 ;
5451 return 0;
5452 }
5453 _ACEOF
5454 rm -f conftest.$ac_objext conftest$ac_exeext
5455 if { (ac_try="$ac_link"
5456 case "(($ac_try" in
5457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5458 *) ac_try_echo=$ac_try;;
5459 esac
5460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5461 (eval "$ac_link") 2>conftest.er1
5462 ac_status=$?
5463 grep -v '^ *+' conftest.er1 >conftest.err
5464 rm -f conftest.er1
5465 cat conftest.err >&5
5466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467 (exit $ac_status); } && {
5468 test -z "$ac_c_werror_flag" ||
5469 test ! -s conftest.err
5470 } && test -s conftest$ac_exeext &&
5471 $as_test_x conftest$ac_exeext; then
5472 ac_cv_func_alloca_works=yes
5473 else
5474 echo "$as_me: failed program was:" >&5
5475 sed 's/^/| /' conftest.$ac_ext >&5
5476
5477 ac_cv_func_alloca_works=no
5478 fi
5479
5480 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5481 conftest$ac_exeext conftest.$ac_ext
5482 fi
5483 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5484 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
5485
5486 if test $ac_cv_func_alloca_works = yes; then
5487
5488 cat >>confdefs.h <<\_ACEOF
5489 #define HAVE_ALLOCA 1
5490 _ACEOF
5491
5492 else
5493 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5494 # that cause trouble. Some versions do not even contain alloca or
5495 # contain a buggy version. If you still want to use their alloca,
5496 # use ar to extract alloca.o from them instead of compiling alloca.c.
5497
5498 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5499
5500 cat >>confdefs.h <<\_ACEOF
5501 #define C_ALLOCA 1
5502 _ACEOF
5503
5504
5505 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5506 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
5507 if test "${ac_cv_os_cray+set}" = set; then
5508 echo $ECHO_N "(cached) $ECHO_C" >&6
5509 else
5510 cat >conftest.$ac_ext <<_ACEOF
5511 /* confdefs.h. */
5512 _ACEOF
5513 cat confdefs.h >>conftest.$ac_ext
5514 cat >>conftest.$ac_ext <<_ACEOF
5515 /* end confdefs.h. */
5516 #if defined CRAY && ! defined CRAY2
5517 webecray
5518 #else
5519 wenotbecray
5520 #endif
5521
5522 _ACEOF
5523 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5524 $EGREP "webecray" >/dev/null 2>&1; then
5525 ac_cv_os_cray=yes
5526 else
5527 ac_cv_os_cray=no
5528 fi
5529 rm -f conftest*
5530
5531 fi
5532 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5533 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
5534 if test $ac_cv_os_cray = yes; then
5535 for ac_func in _getb67 GETB67 getb67; do
5536 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5537 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5538 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5539 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5540 echo $ECHO_N "(cached) $ECHO_C" >&6
5541 else
5542 cat >conftest.$ac_ext <<_ACEOF
5543 /* confdefs.h. */
5544 _ACEOF
5545 cat confdefs.h >>conftest.$ac_ext
5546 cat >>conftest.$ac_ext <<_ACEOF
5547 /* end confdefs.h. */
5548 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5549 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5550 #define $ac_func innocuous_$ac_func
5551
5552 /* System header to define __stub macros and hopefully few prototypes,
5553 which can conflict with char $ac_func (); below.
5554 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5555 <limits.h> exists even on freestanding compilers. */
5556
5557 #ifdef __STDC__
5558 # include <limits.h>
5559 #else
5560 # include <assert.h>
5561 #endif
5562
5563 #undef $ac_func
5564
5565 /* Override any GCC internal prototype to avoid an error.
5566 Use char because int might match the return type of a GCC
5567 builtin and then its argument prototype would still apply. */
5568 #ifdef __cplusplus
5569 extern "C"
5570 #endif
5571 char $ac_func ();
5572 /* The GNU C library defines this for functions which it implements
5573 to always fail with ENOSYS. Some functions are actually named
5574 something starting with __ and the normal name is an alias. */
5575 #if defined __stub_$ac_func || defined __stub___$ac_func
5576 choke me
5577 #endif
5578
5579 int
5580 main ()
5581 {
5582 return $ac_func ();
5583 ;
5584 return 0;
5585 }
5586 _ACEOF
5587 rm -f conftest.$ac_objext conftest$ac_exeext
5588 if { (ac_try="$ac_link"
5589 case "(($ac_try" in
5590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5591 *) ac_try_echo=$ac_try;;
5592 esac
5593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5594 (eval "$ac_link") 2>conftest.er1
5595 ac_status=$?
5596 grep -v '^ *+' conftest.er1 >conftest.err
5597 rm -f conftest.er1
5598 cat conftest.err >&5
5599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600 (exit $ac_status); } && {
5601 test -z "$ac_c_werror_flag" ||
5602 test ! -s conftest.err
5603 } && test -s conftest$ac_exeext &&
5604 $as_test_x conftest$ac_exeext; then
5605 eval "$as_ac_var=yes"
5606 else
5607 echo "$as_me: failed program was:" >&5
5608 sed 's/^/| /' conftest.$ac_ext >&5
5609
5610 eval "$as_ac_var=no"
5611 fi
5612
5613 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5614 conftest$ac_exeext conftest.$ac_ext
5615 fi
5616 ac_res=`eval echo '${'$as_ac_var'}'`
5617 { echo "$as_me:$LINENO: result: $ac_res" >&5
5618 echo "${ECHO_T}$ac_res" >&6; }
5619 if test `eval echo '${'$as_ac_var'}'` = yes; then
5620
5621 cat >>confdefs.h <<_ACEOF
5622 #define CRAY_STACKSEG_END $ac_func
5623 _ACEOF
5624
5625 break
5626 fi
5627
5628 done
5629 fi
5630
5631 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5632 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
5633 if test "${ac_cv_c_stack_direction+set}" = set; then
5634 echo $ECHO_N "(cached) $ECHO_C" >&6
5635 else
5636 if test "$cross_compiling" = yes; then
5637 ac_cv_c_stack_direction=0
5638 else
5639 cat >conftest.$ac_ext <<_ACEOF
5640 /* confdefs.h. */
5641 _ACEOF
5642 cat confdefs.h >>conftest.$ac_ext
5643 cat >>conftest.$ac_ext <<_ACEOF
5644 /* end confdefs.h. */
5645 $ac_includes_default
5646 int
5647 find_stack_direction ()
5648 {
5649 static char *addr = 0;
5650 auto char dummy;
5651 if (addr == 0)
5652 {
5653 addr = &dummy;
5654 return find_stack_direction ();
5655 }
5656 else
5657 return (&dummy > addr) ? 1 : -1;
5658 }
5659
5660 int
5661 main ()
5662 {
5663 return find_stack_direction () < 0;
5664 }
5665 _ACEOF
5666 rm -f conftest$ac_exeext
5667 if { (ac_try="$ac_link"
5668 case "(($ac_try" in
5669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5670 *) ac_try_echo=$ac_try;;
5671 esac
5672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5673 (eval "$ac_link") 2>&5
5674 ac_status=$?
5675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5677 { (case "(($ac_try" in
5678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5679 *) ac_try_echo=$ac_try;;
5680 esac
5681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5682 (eval "$ac_try") 2>&5
5683 ac_status=$?
5684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685 (exit $ac_status); }; }; then
5686 ac_cv_c_stack_direction=1
5687 else
5688 echo "$as_me: program exited with status $ac_status" >&5
5689 echo "$as_me: failed program was:" >&5
5690 sed 's/^/| /' conftest.$ac_ext >&5
5691
5692 ( exit $ac_status )
5693 ac_cv_c_stack_direction=-1
5694 fi
5695 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5696 fi
5697
5698
5699 fi
5700 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5701 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
5702
5703 cat >>confdefs.h <<_ACEOF
5704 #define STACK_DIRECTION $ac_cv_c_stack_direction
5705 _ACEOF
5706
5707
5708 fi
5709
5710 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
5711 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
5712 if test "${ac_cv_func_closedir_void+set}" = set; then
5713 echo $ECHO_N "(cached) $ECHO_C" >&6
5714 else
5715 if test "$cross_compiling" = yes; then
5716 ac_cv_func_closedir_void=yes
5717 else
5718 cat >conftest.$ac_ext <<_ACEOF
5719 /* confdefs.h. */
5720 _ACEOF
5721 cat confdefs.h >>conftest.$ac_ext
5722 cat >>conftest.$ac_ext <<_ACEOF
5723 /* end confdefs.h. */
5724 $ac_includes_default
5725 #include <$ac_header_dirent>
5726 #ifndef __cplusplus
5727 int closedir ();
5728 #endif
5729
5730 int
5731 main ()
5732 {
5733 return closedir (opendir (".")) != 0;
5734 ;
5735 return 0;
5736 }
5737 _ACEOF
5738 rm -f conftest$ac_exeext
5739 if { (ac_try="$ac_link"
5740 case "(($ac_try" in
5741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5742 *) ac_try_echo=$ac_try;;
5743 esac
5744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5745 (eval "$ac_link") 2>&5
5746 ac_status=$?
5747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5749 { (case "(($ac_try" in
5750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5751 *) ac_try_echo=$ac_try;;
5752 esac
5753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5754 (eval "$ac_try") 2>&5
5755 ac_status=$?
5756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757 (exit $ac_status); }; }; then
5758 ac_cv_func_closedir_void=no
5759 else
5760 echo "$as_me: program exited with status $ac_status" >&5
5761 echo "$as_me: failed program was:" >&5
5762 sed 's/^/| /' conftest.$ac_ext >&5
5763
5764 ( exit $ac_status )
5765 ac_cv_func_closedir_void=yes
5766 fi
5767 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5768 fi
5769
5770
5771 fi
5772 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
5773 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
5774 if test $ac_cv_func_closedir_void = yes; then
5775
5776 cat >>confdefs.h <<\_ACEOF
5777 #define CLOSEDIR_VOID 1
5778 _ACEOF
5779
5780 fi
5781
5782
5783 for ac_header in vfork.h
5784 do
5785 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5786 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5787 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5788 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5789 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5790 echo $ECHO_N "(cached) $ECHO_C" >&6
5791 fi
5792 ac_res=`eval echo '${'$as_ac_Header'}'`
5793 { echo "$as_me:$LINENO: result: $ac_res" >&5
5794 echo "${ECHO_T}$ac_res" >&6; }
5795 else
5796 # Is the header compilable?
5797 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5798 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5799 cat >conftest.$ac_ext <<_ACEOF
5800 /* confdefs.h. */
5801 _ACEOF
5802 cat confdefs.h >>conftest.$ac_ext
5803 cat >>conftest.$ac_ext <<_ACEOF
5804 /* end confdefs.h. */
5805 $ac_includes_default
5806 #include <$ac_header>
5807 _ACEOF
5808 rm -f conftest.$ac_objext
5809 if { (ac_try="$ac_compile"
5810 case "(($ac_try" in
5811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5812 *) ac_try_echo=$ac_try;;
5813 esac
5814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5815 (eval "$ac_compile") 2>conftest.er1
5816 ac_status=$?
5817 grep -v '^ *+' conftest.er1 >conftest.err
5818 rm -f conftest.er1
5819 cat conftest.err >&5
5820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821 (exit $ac_status); } && {
5822 test -z "$ac_c_werror_flag" ||
5823 test ! -s conftest.err
5824 } && test -s conftest.$ac_objext; then
5825 ac_header_compiler=yes
5826 else
5827 echo "$as_me: failed program was:" >&5
5828 sed 's/^/| /' conftest.$ac_ext >&5
5829
5830 ac_header_compiler=no
5831 fi
5832
5833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5834 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5835 echo "${ECHO_T}$ac_header_compiler" >&6; }
5836
5837 # Is the header present?
5838 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5839 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5840 cat >conftest.$ac_ext <<_ACEOF
5841 /* confdefs.h. */
5842 _ACEOF
5843 cat confdefs.h >>conftest.$ac_ext
5844 cat >>conftest.$ac_ext <<_ACEOF
5845 /* end confdefs.h. */
5846 #include <$ac_header>
5847 _ACEOF
5848 if { (ac_try="$ac_cpp conftest.$ac_ext"
5849 case "(($ac_try" in
5850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5851 *) ac_try_echo=$ac_try;;
5852 esac
5853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5854 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5855 ac_status=$?
5856 grep -v '^ *+' conftest.er1 >conftest.err
5857 rm -f conftest.er1
5858 cat conftest.err >&5
5859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860 (exit $ac_status); } >/dev/null && {
5861 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5862 test ! -s conftest.err
5863 }; then
5864 ac_header_preproc=yes
5865 else
5866 echo "$as_me: failed program was:" >&5
5867 sed 's/^/| /' conftest.$ac_ext >&5
5868
5869 ac_header_preproc=no
5870 fi
5871
5872 rm -f conftest.err conftest.$ac_ext
5873 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5874 echo "${ECHO_T}$ac_header_preproc" >&6; }
5875
5876 # So? What about this header?
5877 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5878 yes:no: )
5879 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5880 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5881 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5882 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5883 ac_header_preproc=yes
5884 ;;
5885 no:yes:* )
5886 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5887 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5888 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5889 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5890 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5891 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5892 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5893 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5894 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5895 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5896 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5897 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5898 ( cat <<\_ASBOX
5899 ## -------------------------------------------------- ##
5900 ## Report this to launchd-bug-reports@group.apple.com ##
5901 ## -------------------------------------------------- ##
5902 _ASBOX
5903 ) | sed "s/^/$as_me: WARNING: /" >&2
5904 ;;
5905 esac
5906 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5908 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5909 echo $ECHO_N "(cached) $ECHO_C" >&6
5910 else
5911 eval "$as_ac_Header=\$ac_header_preproc"
5912 fi
5913 ac_res=`eval echo '${'$as_ac_Header'}'`
5914 { echo "$as_me:$LINENO: result: $ac_res" >&5
5915 echo "${ECHO_T}$ac_res" >&6; }
5916
5917 fi
5918 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5919 cat >>confdefs.h <<_ACEOF
5920 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5921 _ACEOF
5922
5923 fi
5924
5925 done
5926
5927
5928
5929 for ac_func in fork vfork
5930 do
5931 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5932 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5933 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5934 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5935 echo $ECHO_N "(cached) $ECHO_C" >&6
5936 else
5937 cat >conftest.$ac_ext <<_ACEOF
5938 /* confdefs.h. */
5939 _ACEOF
5940 cat confdefs.h >>conftest.$ac_ext
5941 cat >>conftest.$ac_ext <<_ACEOF
5942 /* end confdefs.h. */
5943 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5944 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5945 #define $ac_func innocuous_$ac_func
5946
5947 /* System header to define __stub macros and hopefully few prototypes,
5948 which can conflict with char $ac_func (); below.
5949 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5950 <limits.h> exists even on freestanding compilers. */
5951
5952 #ifdef __STDC__
5953 # include <limits.h>
5954 #else
5955 # include <assert.h>
5956 #endif
5957
5958 #undef $ac_func
5959
5960 /* Override any GCC internal prototype to avoid an error.
5961 Use char because int might match the return type of a GCC
5962 builtin and then its argument prototype would still apply. */
5963 #ifdef __cplusplus
5964 extern "C"
5965 #endif
5966 char $ac_func ();
5967 /* The GNU C library defines this for functions which it implements
5968 to always fail with ENOSYS. Some functions are actually named
5969 something starting with __ and the normal name is an alias. */
5970 #if defined __stub_$ac_func || defined __stub___$ac_func
5971 choke me
5972 #endif
5973
5974 int
5975 main ()
5976 {
5977 return $ac_func ();
5978 ;
5979 return 0;
5980 }
5981 _ACEOF
5982 rm -f conftest.$ac_objext conftest$ac_exeext
5983 if { (ac_try="$ac_link"
5984 case "(($ac_try" in
5985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5986 *) ac_try_echo=$ac_try;;
5987 esac
5988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5989 (eval "$ac_link") 2>conftest.er1
5990 ac_status=$?
5991 grep -v '^ *+' conftest.er1 >conftest.err
5992 rm -f conftest.er1
5993 cat conftest.err >&5
5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 (exit $ac_status); } && {
5996 test -z "$ac_c_werror_flag" ||
5997 test ! -s conftest.err
5998 } && test -s conftest$ac_exeext &&
5999 $as_test_x conftest$ac_exeext; then
6000 eval "$as_ac_var=yes"
6001 else
6002 echo "$as_me: failed program was:" >&5
6003 sed 's/^/| /' conftest.$ac_ext >&5
6004
6005 eval "$as_ac_var=no"
6006 fi
6007
6008 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6009 conftest$ac_exeext conftest.$ac_ext
6010 fi
6011 ac_res=`eval echo '${'$as_ac_var'}'`
6012 { echo "$as_me:$LINENO: result: $ac_res" >&5
6013 echo "${ECHO_T}$ac_res" >&6; }
6014 if test `eval echo '${'$as_ac_var'}'` = yes; then
6015 cat >>confdefs.h <<_ACEOF
6016 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6017 _ACEOF
6018
6019 fi
6020 done
6021
6022 if test "x$ac_cv_func_fork" = xyes; then
6023 { echo "$as_me:$LINENO: checking for working fork" >&5
6024 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
6025 if test "${ac_cv_func_fork_works+set}" = set; then
6026 echo $ECHO_N "(cached) $ECHO_C" >&6
6027 else
6028 if test "$cross_compiling" = yes; then
6029 ac_cv_func_fork_works=cross
6030 else
6031 cat >conftest.$ac_ext <<_ACEOF
6032 /* confdefs.h. */
6033 _ACEOF
6034 cat confdefs.h >>conftest.$ac_ext
6035 cat >>conftest.$ac_ext <<_ACEOF
6036 /* end confdefs.h. */
6037 $ac_includes_default
6038 int
6039 main ()
6040 {
6041
6042 /* By Ruediger Kuhlmann. */
6043 return fork () < 0;
6044
6045 ;
6046 return 0;
6047 }
6048 _ACEOF
6049 rm -f conftest$ac_exeext
6050 if { (ac_try="$ac_link"
6051 case "(($ac_try" in
6052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6053 *) ac_try_echo=$ac_try;;
6054 esac
6055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6056 (eval "$ac_link") 2>&5
6057 ac_status=$?
6058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6060 { (case "(($ac_try" in
6061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6062 *) ac_try_echo=$ac_try;;
6063 esac
6064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6065 (eval "$ac_try") 2>&5
6066 ac_status=$?
6067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068 (exit $ac_status); }; }; then
6069 ac_cv_func_fork_works=yes
6070 else
6071 echo "$as_me: program exited with status $ac_status" >&5
6072 echo "$as_me: failed program was:" >&5
6073 sed 's/^/| /' conftest.$ac_ext >&5
6074
6075 ( exit $ac_status )
6076 ac_cv_func_fork_works=no
6077 fi
6078 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6079 fi
6080
6081
6082 fi
6083 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
6084 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
6085
6086 else
6087 ac_cv_func_fork_works=$ac_cv_func_fork
6088 fi
6089 if test "x$ac_cv_func_fork_works" = xcross; then
6090 case $host in
6091 *-*-amigaos* | *-*-msdosdjgpp*)
6092 # Override, as these systems have only a dummy fork() stub
6093 ac_cv_func_fork_works=no
6094 ;;
6095 *)
6096 ac_cv_func_fork_works=yes
6097 ;;
6098 esac
6099 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
6100 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
6101 fi
6102 ac_cv_func_vfork_works=$ac_cv_func_vfork
6103 if test "x$ac_cv_func_vfork" = xyes; then
6104 { echo "$as_me:$LINENO: checking for working vfork" >&5
6105 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
6106 if test "${ac_cv_func_vfork_works+set}" = set; then
6107 echo $ECHO_N "(cached) $ECHO_C" >&6
6108 else
6109 if test "$cross_compiling" = yes; then
6110 ac_cv_func_vfork_works=cross
6111 else
6112 cat >conftest.$ac_ext <<_ACEOF
6113 /* confdefs.h. */
6114 _ACEOF
6115 cat confdefs.h >>conftest.$ac_ext
6116 cat >>conftest.$ac_ext <<_ACEOF
6117 /* end confdefs.h. */
6118 /* Thanks to Paul Eggert for this test. */
6119 $ac_includes_default
6120 #include <sys/wait.h>
6121 #ifdef HAVE_VFORK_H
6122 # include <vfork.h>
6123 #endif
6124 /* On some sparc systems, changes by the child to local and incoming
6125 argument registers are propagated back to the parent. The compiler
6126 is told about this with #include <vfork.h>, but some compilers
6127 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
6128 static variable whose address is put into a register that is
6129 clobbered by the vfork. */
6130 static void
6131 #ifdef __cplusplus
6132 sparc_address_test (int arg)
6133 # else
6134 sparc_address_test (arg) int arg;
6135 #endif
6136 {
6137 static pid_t child;
6138 if (!child) {
6139 child = vfork ();
6140 if (child < 0) {
6141 perror ("vfork");
6142 _exit(2);
6143 }
6144 if (!child) {
6145 arg = getpid();
6146 write(-1, "", 0);
6147 _exit (arg);
6148 }
6149 }
6150 }
6151
6152 int
6153 main ()
6154 {
6155 pid_t parent = getpid ();
6156 pid_t child;
6157
6158 sparc_address_test (0);
6159
6160 child = vfork ();
6161
6162 if (child == 0) {
6163 /* Here is another test for sparc vfork register problems. This
6164 test uses lots of local variables, at least as many local
6165 variables as main has allocated so far including compiler
6166 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
6167 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
6168 reuse the register of parent for one of the local variables,
6169 since it will think that parent can't possibly be used any more
6170 in this routine. Assigning to the local variable will thus
6171 munge parent in the parent process. */
6172 pid_t
6173 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
6174 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
6175 /* Convince the compiler that p..p7 are live; otherwise, it might
6176 use the same hardware register for all 8 local variables. */
6177 if (p != p1 || p != p2 || p != p3 || p != p4
6178 || p != p5 || p != p6 || p != p7)
6179 _exit(1);
6180
6181 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
6182 from child file descriptors. If the child closes a descriptor
6183 before it execs or exits, this munges the parent's descriptor
6184 as well. Test for this by closing stdout in the child. */
6185 _exit(close(fileno(stdout)) != 0);
6186 } else {
6187 int status;
6188 struct stat st;
6189
6190 while (wait(&status) != child)
6191 ;
6192 return (
6193 /* Was there some problem with vforking? */
6194 child < 0
6195
6196 /* Did the child fail? (This shouldn't happen.) */
6197 || status
6198
6199 /* Did the vfork/compiler bug occur? */
6200 || parent != getpid()
6201
6202 /* Did the file descriptor bug occur? */
6203 || fstat(fileno(stdout), &st) != 0
6204 );
6205 }
6206 }
6207 _ACEOF
6208 rm -f conftest$ac_exeext
6209 if { (ac_try="$ac_link"
6210 case "(($ac_try" in
6211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6212 *) ac_try_echo=$ac_try;;
6213 esac
6214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6215 (eval "$ac_link") 2>&5
6216 ac_status=$?
6217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6219 { (case "(($ac_try" in
6220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6221 *) ac_try_echo=$ac_try;;
6222 esac
6223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6224 (eval "$ac_try") 2>&5
6225 ac_status=$?
6226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227 (exit $ac_status); }; }; then
6228 ac_cv_func_vfork_works=yes
6229 else
6230 echo "$as_me: program exited with status $ac_status" >&5
6231 echo "$as_me: failed program was:" >&5
6232 sed 's/^/| /' conftest.$ac_ext >&5
6233
6234 ( exit $ac_status )
6235 ac_cv_func_vfork_works=no
6236 fi
6237 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6238 fi
6239
6240
6241 fi
6242 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
6243 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
6244
6245 fi;
6246 if test "x$ac_cv_func_fork_works" = xcross; then
6247 ac_cv_func_vfork_works=$ac_cv_func_vfork
6248 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
6249 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
6250 fi
6251
6252 if test "x$ac_cv_func_vfork_works" = xyes; then
6253
6254 cat >>confdefs.h <<\_ACEOF
6255 #define HAVE_WORKING_VFORK 1
6256 _ACEOF
6257
6258 else
6259
6260 cat >>confdefs.h <<\_ACEOF
6261 #define vfork fork
6262 _ACEOF
6263
6264 fi
6265 if test "x$ac_cv_func_fork_works" = xyes; then
6266
6267 cat >>confdefs.h <<\_ACEOF
6268 #define HAVE_WORKING_FORK 1
6269 _ACEOF
6270
6271 fi
6272
6273 if test $ac_cv_c_compiler_gnu = yes; then
6274 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
6275 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
6276 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
6277 echo $ECHO_N "(cached) $ECHO_C" >&6
6278 else
6279 ac_pattern="Autoconf.*'x'"
6280 cat >conftest.$ac_ext <<_ACEOF
6281 /* confdefs.h. */
6282 _ACEOF
6283 cat confdefs.h >>conftest.$ac_ext
6284 cat >>conftest.$ac_ext <<_ACEOF
6285 /* end confdefs.h. */
6286 #include <sgtty.h>
6287 Autoconf TIOCGETP
6288 _ACEOF
6289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6290 $EGREP "$ac_pattern" >/dev/null 2>&1; then
6291 ac_cv_prog_gcc_traditional=yes
6292 else
6293 ac_cv_prog_gcc_traditional=no
6294 fi
6295 rm -f conftest*
6296
6297
6298 if test $ac_cv_prog_gcc_traditional = no; then
6299 cat >conftest.$ac_ext <<_ACEOF
6300 /* confdefs.h. */
6301 _ACEOF
6302 cat confdefs.h >>conftest.$ac_ext
6303 cat >>conftest.$ac_ext <<_ACEOF
6304 /* end confdefs.h. */
6305 #include <termio.h>
6306 Autoconf TCGETA
6307 _ACEOF
6308 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6309 $EGREP "$ac_pattern" >/dev/null 2>&1; then
6310 ac_cv_prog_gcc_traditional=yes
6311 fi
6312 rm -f conftest*
6313
6314 fi
6315 fi
6316 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
6317 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
6318 if test $ac_cv_prog_gcc_traditional = yes; then
6319 CC="$CC -traditional"
6320 fi
6321 fi
6322
6323 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
6324 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
6325 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
6326 echo $ECHO_N "(cached) $ECHO_C" >&6
6327 else
6328 rm -f conftest.sym conftest.file
6329 echo >conftest.file
6330 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
6331 if test "$cross_compiling" = yes; then
6332 ac_cv_func_lstat_dereferences_slashed_symlink=no
6333 else
6334 cat >conftest.$ac_ext <<_ACEOF
6335 /* confdefs.h. */
6336 _ACEOF
6337 cat confdefs.h >>conftest.$ac_ext
6338 cat >>conftest.$ac_ext <<_ACEOF
6339 /* end confdefs.h. */
6340 $ac_includes_default
6341 int
6342 main ()
6343 {
6344 struct stat sbuf;
6345 /* Linux will dereference the symlink and fail.
6346 That is better in the sense that it means we will not
6347 have to compile and use the lstat wrapper. */
6348 return lstat ("conftest.sym/", &sbuf) == 0;
6349 ;
6350 return 0;
6351 }
6352 _ACEOF
6353 rm -f conftest$ac_exeext
6354 if { (ac_try="$ac_link"
6355 case "(($ac_try" in
6356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6357 *) ac_try_echo=$ac_try;;
6358 esac
6359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6360 (eval "$ac_link") 2>&5
6361 ac_status=$?
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6364 { (case "(($ac_try" in
6365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6366 *) ac_try_echo=$ac_try;;
6367 esac
6368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6369 (eval "$ac_try") 2>&5
6370 ac_status=$?
6371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372 (exit $ac_status); }; }; then
6373 ac_cv_func_lstat_dereferences_slashed_symlink=yes
6374 else
6375 echo "$as_me: program exited with status $ac_status" >&5
6376 echo "$as_me: failed program was:" >&5
6377 sed 's/^/| /' conftest.$ac_ext >&5
6378
6379 ( exit $ac_status )
6380 ac_cv_func_lstat_dereferences_slashed_symlink=no
6381 fi
6382 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6383 fi
6384
6385
6386 else
6387 # If the `ln -s' command failed, then we probably don't even
6388 # have an lstat function.
6389 ac_cv_func_lstat_dereferences_slashed_symlink=no
6390 fi
6391 rm -f conftest.sym conftest.file
6392
6393 fi
6394 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
6395 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
6396
6397 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
6398
6399 cat >>confdefs.h <<_ACEOF
6400 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
6401 _ACEOF
6402
6403
6404 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
6405 case " $LIBOBJS " in
6406 *" lstat.$ac_objext "* ) ;;
6407 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
6408 ;;
6409 esac
6410
6411 fi
6412
6413 { echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
6414 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; }
6415 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
6416 echo $ECHO_N "(cached) $ECHO_C" >&6
6417 else
6418 if test "$cross_compiling" = yes; then
6419 ac_cv_func_lstat_empty_string_bug=yes
6420 else
6421 cat >conftest.$ac_ext <<_ACEOF
6422 /* confdefs.h. */
6423 _ACEOF
6424 cat confdefs.h >>conftest.$ac_ext
6425 cat >>conftest.$ac_ext <<_ACEOF
6426 /* end confdefs.h. */
6427 $ac_includes_default
6428 int
6429 main ()
6430 {
6431 struct stat sbuf;
6432 return lstat ("", &sbuf) == 0;
6433 ;
6434 return 0;
6435 }
6436 _ACEOF
6437 rm -f conftest$ac_exeext
6438 if { (ac_try="$ac_link"
6439 case "(($ac_try" in
6440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6441 *) ac_try_echo=$ac_try;;
6442 esac
6443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6444 (eval "$ac_link") 2>&5
6445 ac_status=$?
6446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6448 { (case "(($ac_try" in
6449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6450 *) ac_try_echo=$ac_try;;
6451 esac
6452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6453 (eval "$ac_try") 2>&5
6454 ac_status=$?
6455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6456 (exit $ac_status); }; }; then
6457 ac_cv_func_lstat_empty_string_bug=no
6458 else
6459 echo "$as_me: program exited with status $ac_status" >&5
6460 echo "$as_me: failed program was:" >&5
6461 sed 's/^/| /' conftest.$ac_ext >&5
6462
6463 ( exit $ac_status )
6464 ac_cv_func_lstat_empty_string_bug=yes
6465 fi
6466 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6467 fi
6468
6469
6470 fi
6471 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
6472 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; }
6473 if test $ac_cv_func_lstat_empty_string_bug = yes; then
6474 case " $LIBOBJS " in
6475 *" lstat.$ac_objext "* ) ;;
6476 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
6477 ;;
6478 esac
6479
6480
6481 cat >>confdefs.h <<_ACEOF
6482 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
6483 _ACEOF
6484
6485 fi
6486
6487 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
6488 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
6489 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
6490 echo $ECHO_N "(cached) $ECHO_C" >&6
6491 else
6492 rm -f conftest.sym conftest.file
6493 echo >conftest.file
6494 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
6495 if test "$cross_compiling" = yes; then
6496 ac_cv_func_lstat_dereferences_slashed_symlink=no
6497 else
6498 cat >conftest.$ac_ext <<_ACEOF
6499 /* confdefs.h. */
6500 _ACEOF
6501 cat confdefs.h >>conftest.$ac_ext
6502 cat >>conftest.$ac_ext <<_ACEOF
6503 /* end confdefs.h. */
6504 $ac_includes_default
6505 int
6506 main ()
6507 {
6508 struct stat sbuf;
6509 /* Linux will dereference the symlink and fail.
6510 That is better in the sense that it means we will not
6511 have to compile and use the lstat wrapper. */
6512 return lstat ("conftest.sym/", &sbuf) == 0;
6513 ;
6514 return 0;
6515 }
6516 _ACEOF
6517 rm -f conftest$ac_exeext
6518 if { (ac_try="$ac_link"
6519 case "(($ac_try" in
6520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6521 *) ac_try_echo=$ac_try;;
6522 esac
6523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6524 (eval "$ac_link") 2>&5
6525 ac_status=$?
6526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6527 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6528 { (case "(($ac_try" in
6529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6530 *) ac_try_echo=$ac_try;;
6531 esac
6532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6533 (eval "$ac_try") 2>&5
6534 ac_status=$?
6535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536 (exit $ac_status); }; }; then
6537 ac_cv_func_lstat_dereferences_slashed_symlink=yes
6538 else
6539 echo "$as_me: program exited with status $ac_status" >&5
6540 echo "$as_me: failed program was:" >&5
6541 sed 's/^/| /' conftest.$ac_ext >&5
6542
6543 ( exit $ac_status )
6544 ac_cv_func_lstat_dereferences_slashed_symlink=no
6545 fi
6546 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6547 fi
6548
6549
6550 else
6551 # If the `ln -s' command failed, then we probably don't even
6552 # have an lstat function.
6553 ac_cv_func_lstat_dereferences_slashed_symlink=no
6554 fi
6555 rm -f conftest.sym conftest.file
6556
6557 fi
6558 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
6559 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
6560
6561 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
6562
6563 cat >>confdefs.h <<_ACEOF
6564 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
6565 _ACEOF
6566
6567
6568 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
6569 case " $LIBOBJS " in
6570 *" lstat.$ac_objext "* ) ;;
6571 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
6572 ;;
6573 esac
6574
6575 fi
6576
6577
6578 for ac_header in stdlib.h
6579 do
6580 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6581 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6582 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6583 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6584 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6585 echo $ECHO_N "(cached) $ECHO_C" >&6
6586 fi
6587 ac_res=`eval echo '${'$as_ac_Header'}'`
6588 { echo "$as_me:$LINENO: result: $ac_res" >&5
6589 echo "${ECHO_T}$ac_res" >&6; }
6590 else
6591 # Is the header compilable?
6592 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6593 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6594 cat >conftest.$ac_ext <<_ACEOF
6595 /* confdefs.h. */
6596 _ACEOF
6597 cat confdefs.h >>conftest.$ac_ext
6598 cat >>conftest.$ac_ext <<_ACEOF
6599 /* end confdefs.h. */
6600 $ac_includes_default
6601 #include <$ac_header>
6602 _ACEOF
6603 rm -f conftest.$ac_objext
6604 if { (ac_try="$ac_compile"
6605 case "(($ac_try" in
6606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6607 *) ac_try_echo=$ac_try;;
6608 esac
6609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6610 (eval "$ac_compile") 2>conftest.er1
6611 ac_status=$?
6612 grep -v '^ *+' conftest.er1 >conftest.err
6613 rm -f conftest.er1
6614 cat conftest.err >&5
6615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616 (exit $ac_status); } && {
6617 test -z "$ac_c_werror_flag" ||
6618 test ! -s conftest.err
6619 } && test -s conftest.$ac_objext; then
6620 ac_header_compiler=yes
6621 else
6622 echo "$as_me: failed program was:" >&5
6623 sed 's/^/| /' conftest.$ac_ext >&5
6624
6625 ac_header_compiler=no
6626 fi
6627
6628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6629 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6630 echo "${ECHO_T}$ac_header_compiler" >&6; }
6631
6632 # Is the header present?
6633 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6634 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6635 cat >conftest.$ac_ext <<_ACEOF
6636 /* confdefs.h. */
6637 _ACEOF
6638 cat confdefs.h >>conftest.$ac_ext
6639 cat >>conftest.$ac_ext <<_ACEOF
6640 /* end confdefs.h. */
6641 #include <$ac_header>
6642 _ACEOF
6643 if { (ac_try="$ac_cpp conftest.$ac_ext"
6644 case "(($ac_try" in
6645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6646 *) ac_try_echo=$ac_try;;
6647 esac
6648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6649 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6650 ac_status=$?
6651 grep -v '^ *+' conftest.er1 >conftest.err
6652 rm -f conftest.er1
6653 cat conftest.err >&5
6654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655 (exit $ac_status); } >/dev/null && {
6656 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6657 test ! -s conftest.err
6658 }; then
6659 ac_header_preproc=yes
6660 else
6661 echo "$as_me: failed program was:" >&5
6662 sed 's/^/| /' conftest.$ac_ext >&5
6663
6664 ac_header_preproc=no
6665 fi
6666
6667 rm -f conftest.err conftest.$ac_ext
6668 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6669 echo "${ECHO_T}$ac_header_preproc" >&6; }
6670
6671 # So? What about this header?
6672 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6673 yes:no: )
6674 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6675 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6676 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6677 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6678 ac_header_preproc=yes
6679 ;;
6680 no:yes:* )
6681 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6682 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6683 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6684 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6685 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6686 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6687 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6688 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6689 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6690 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6691 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6692 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6693 ( cat <<\_ASBOX
6694 ## -------------------------------------------------- ##
6695 ## Report this to launchd-bug-reports@group.apple.com ##
6696 ## -------------------------------------------------- ##
6697 _ASBOX
6698 ) | sed "s/^/$as_me: WARNING: /" >&2
6699 ;;
6700 esac
6701 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6702 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6703 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6704 echo $ECHO_N "(cached) $ECHO_C" >&6
6705 else
6706 eval "$as_ac_Header=\$ac_header_preproc"
6707 fi
6708 ac_res=`eval echo '${'$as_ac_Header'}'`
6709 { echo "$as_me:$LINENO: result: $ac_res" >&5
6710 echo "${ECHO_T}$ac_res" >&6; }
6711
6712 fi
6713 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6714 cat >>confdefs.h <<_ACEOF
6715 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6716 _ACEOF
6717
6718 fi
6719
6720 done
6721
6722 { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
6723 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
6724 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
6725 echo $ECHO_N "(cached) $ECHO_C" >&6
6726 else
6727 if test "$cross_compiling" = yes; then
6728 ac_cv_func_malloc_0_nonnull=no
6729 else
6730 cat >conftest.$ac_ext <<_ACEOF
6731 /* confdefs.h. */
6732 _ACEOF
6733 cat confdefs.h >>conftest.$ac_ext
6734 cat >>conftest.$ac_ext <<_ACEOF
6735 /* end confdefs.h. */
6736 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
6737 # include <stdlib.h>
6738 #else
6739 char *malloc ();
6740 #endif
6741
6742 int
6743 main ()
6744 {
6745 return ! malloc (0);
6746 ;
6747 return 0;
6748 }
6749 _ACEOF
6750 rm -f conftest$ac_exeext
6751 if { (ac_try="$ac_link"
6752 case "(($ac_try" in
6753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6754 *) ac_try_echo=$ac_try;;
6755 esac
6756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6757 (eval "$ac_link") 2>&5
6758 ac_status=$?
6759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6760 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6761 { (case "(($ac_try" in
6762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6763 *) ac_try_echo=$ac_try;;
6764 esac
6765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6766 (eval "$ac_try") 2>&5
6767 ac_status=$?
6768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769 (exit $ac_status); }; }; then
6770 ac_cv_func_malloc_0_nonnull=yes
6771 else
6772 echo "$as_me: program exited with status $ac_status" >&5
6773 echo "$as_me: failed program was:" >&5
6774 sed 's/^/| /' conftest.$ac_ext >&5
6775
6776 ( exit $ac_status )
6777 ac_cv_func_malloc_0_nonnull=no
6778 fi
6779 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6780 fi
6781
6782
6783 fi
6784 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
6785 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
6786 if test $ac_cv_func_malloc_0_nonnull = yes; then
6787
6788 cat >>confdefs.h <<\_ACEOF
6789 #define HAVE_MALLOC 1
6790 _ACEOF
6791
6792 else
6793 cat >>confdefs.h <<\_ACEOF
6794 #define HAVE_MALLOC 0
6795 _ACEOF
6796
6797 case " $LIBOBJS " in
6798 *" malloc.$ac_objext "* ) ;;
6799 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
6800 ;;
6801 esac
6802
6803
6804 cat >>confdefs.h <<\_ACEOF
6805 #define malloc rpl_malloc
6806 _ACEOF
6807
6808 fi
6809
6810
6811
6812
6813
6814
6815
6816 for ac_header in $ac_header_list
6817 do
6818 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6819 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6820 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6821 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6822 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6823 echo $ECHO_N "(cached) $ECHO_C" >&6
6824 fi
6825 ac_res=`eval echo '${'$as_ac_Header'}'`
6826 { echo "$as_me:$LINENO: result: $ac_res" >&5
6827 echo "${ECHO_T}$ac_res" >&6; }
6828 else
6829 # Is the header compilable?
6830 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6831 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6832 cat >conftest.$ac_ext <<_ACEOF
6833 /* confdefs.h. */
6834 _ACEOF
6835 cat confdefs.h >>conftest.$ac_ext
6836 cat >>conftest.$ac_ext <<_ACEOF
6837 /* end confdefs.h. */
6838 $ac_includes_default
6839 #include <$ac_header>
6840 _ACEOF
6841 rm -f conftest.$ac_objext
6842 if { (ac_try="$ac_compile"
6843 case "(($ac_try" in
6844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6845 *) ac_try_echo=$ac_try;;
6846 esac
6847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6848 (eval "$ac_compile") 2>conftest.er1
6849 ac_status=$?
6850 grep -v '^ *+' conftest.er1 >conftest.err
6851 rm -f conftest.er1
6852 cat conftest.err >&5
6853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854 (exit $ac_status); } && {
6855 test -z "$ac_c_werror_flag" ||
6856 test ! -s conftest.err
6857 } && test -s conftest.$ac_objext; then
6858 ac_header_compiler=yes
6859 else
6860 echo "$as_me: failed program was:" >&5
6861 sed 's/^/| /' conftest.$ac_ext >&5
6862
6863 ac_header_compiler=no
6864 fi
6865
6866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6867 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6868 echo "${ECHO_T}$ac_header_compiler" >&6; }
6869
6870 # Is the header present?
6871 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6872 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6873 cat >conftest.$ac_ext <<_ACEOF
6874 /* confdefs.h. */
6875 _ACEOF
6876 cat confdefs.h >>conftest.$ac_ext
6877 cat >>conftest.$ac_ext <<_ACEOF
6878 /* end confdefs.h. */
6879 #include <$ac_header>
6880 _ACEOF
6881 if { (ac_try="$ac_cpp conftest.$ac_ext"
6882 case "(($ac_try" in
6883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6884 *) ac_try_echo=$ac_try;;
6885 esac
6886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6887 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6888 ac_status=$?
6889 grep -v '^ *+' conftest.er1 >conftest.err
6890 rm -f conftest.er1
6891 cat conftest.err >&5
6892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893 (exit $ac_status); } >/dev/null && {
6894 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6895 test ! -s conftest.err
6896 }; then
6897 ac_header_preproc=yes
6898 else
6899 echo "$as_me: failed program was:" >&5
6900 sed 's/^/| /' conftest.$ac_ext >&5
6901
6902 ac_header_preproc=no
6903 fi
6904
6905 rm -f conftest.err conftest.$ac_ext
6906 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6907 echo "${ECHO_T}$ac_header_preproc" >&6; }
6908
6909 # So? What about this header?
6910 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6911 yes:no: )
6912 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6913 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6914 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6915 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6916 ac_header_preproc=yes
6917 ;;
6918 no:yes:* )
6919 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6920 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6921 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6922 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6923 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6924 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6925 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6926 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6927 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6928 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6929 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6930 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6931 ( cat <<\_ASBOX
6932 ## -------------------------------------------------- ##
6933 ## Report this to launchd-bug-reports@group.apple.com ##
6934 ## -------------------------------------------------- ##
6935 _ASBOX
6936 ) | sed "s/^/$as_me: WARNING: /" >&2
6937 ;;
6938 esac
6939 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6941 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6942 echo $ECHO_N "(cached) $ECHO_C" >&6
6943 else
6944 eval "$as_ac_Header=\$ac_header_preproc"
6945 fi
6946 ac_res=`eval echo '${'$as_ac_Header'}'`
6947 { echo "$as_me:$LINENO: result: $ac_res" >&5
6948 echo "${ECHO_T}$ac_res" >&6; }
6949
6950 fi
6951 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6952 cat >>confdefs.h <<_ACEOF
6953 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6954 _ACEOF
6955
6956 fi
6957
6958 done
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968 for ac_func in $ac_func_list
6969 do
6970 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6971 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6972 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6973 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6974 echo $ECHO_N "(cached) $ECHO_C" >&6
6975 else
6976 cat >conftest.$ac_ext <<_ACEOF
6977 /* confdefs.h. */
6978 _ACEOF
6979 cat confdefs.h >>conftest.$ac_ext
6980 cat >>conftest.$ac_ext <<_ACEOF
6981 /* end confdefs.h. */
6982 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6983 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6984 #define $ac_func innocuous_$ac_func
6985
6986 /* System header to define __stub macros and hopefully few prototypes,
6987 which can conflict with char $ac_func (); below.
6988 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6989 <limits.h> exists even on freestanding compilers. */
6990
6991 #ifdef __STDC__
6992 # include <limits.h>
6993 #else
6994 # include <assert.h>
6995 #endif
6996
6997 #undef $ac_func
6998
6999 /* Override any GCC internal prototype to avoid an error.
7000 Use char because int might match the return type of a GCC
7001 builtin and then its argument prototype would still apply. */
7002 #ifdef __cplusplus
7003 extern "C"
7004 #endif
7005 char $ac_func ();
7006 /* The GNU C library defines this for functions which it implements
7007 to always fail with ENOSYS. Some functions are actually named
7008 something starting with __ and the normal name is an alias. */
7009 #if defined __stub_$ac_func || defined __stub___$ac_func
7010 choke me
7011 #endif
7012
7013 int
7014 main ()
7015 {
7016 return $ac_func ();
7017 ;
7018 return 0;
7019 }
7020 _ACEOF
7021 rm -f conftest.$ac_objext conftest$ac_exeext
7022 if { (ac_try="$ac_link"
7023 case "(($ac_try" in
7024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7025 *) ac_try_echo=$ac_try;;
7026 esac
7027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7028 (eval "$ac_link") 2>conftest.er1
7029 ac_status=$?
7030 grep -v '^ *+' conftest.er1 >conftest.err
7031 rm -f conftest.er1
7032 cat conftest.err >&5
7033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7034 (exit $ac_status); } && {
7035 test -z "$ac_c_werror_flag" ||
7036 test ! -s conftest.err
7037 } && test -s conftest$ac_exeext &&
7038 $as_test_x conftest$ac_exeext; then
7039 eval "$as_ac_var=yes"
7040 else
7041 echo "$as_me: failed program was:" >&5
7042 sed 's/^/| /' conftest.$ac_ext >&5
7043
7044 eval "$as_ac_var=no"
7045 fi
7046
7047 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7048 conftest$ac_exeext conftest.$ac_ext
7049 fi
7050 ac_res=`eval echo '${'$as_ac_var'}'`
7051 { echo "$as_me:$LINENO: result: $ac_res" >&5
7052 echo "${ECHO_T}$ac_res" >&6; }
7053 if test `eval echo '${'$as_ac_var'}'` = yes; then
7054 cat >>confdefs.h <<_ACEOF
7055 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7056 _ACEOF
7057
7058 fi
7059 done
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077 { echo "$as_me:$LINENO: checking for working mktime" >&5
7078 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
7079 if test "${ac_cv_func_working_mktime+set}" = set; then
7080 echo $ECHO_N "(cached) $ECHO_C" >&6
7081 else
7082 if test "$cross_compiling" = yes; then
7083 ac_cv_func_working_mktime=no
7084 else
7085 cat >conftest.$ac_ext <<_ACEOF
7086 /* confdefs.h. */
7087 _ACEOF
7088 cat confdefs.h >>conftest.$ac_ext
7089 cat >>conftest.$ac_ext <<_ACEOF
7090 /* end confdefs.h. */
7091 /* Test program from Paul Eggert and Tony Leneis. */
7092 #ifdef TIME_WITH_SYS_TIME
7093 # include <sys/time.h>
7094 # include <time.h>
7095 #else
7096 # ifdef HAVE_SYS_TIME_H
7097 # include <sys/time.h>
7098 # else
7099 # include <time.h>
7100 # endif
7101 #endif
7102
7103 #include <stdlib.h>
7104
7105 #ifdef HAVE_UNISTD_H
7106 # include <unistd.h>
7107 #endif
7108
7109 #ifndef HAVE_ALARM
7110 # define alarm(X) /* empty */
7111 #endif
7112
7113 /* Work around redefinition to rpl_putenv by other config tests. */
7114 #undef putenv
7115
7116 static time_t time_t_max;
7117 static time_t time_t_min;
7118
7119 /* Values we'll use to set the TZ environment variable. */
7120 static char *tz_strings[] = {
7121 (char *) 0, "TZ=GMT0", "TZ=JST-9",
7122 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
7123 };
7124 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
7125
7126 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
7127 Based on a problem report from Andreas Jaeger. */
7128 static int
7129 spring_forward_gap ()
7130 {
7131 /* glibc (up to about 1998-10-07) failed this test. */
7132 struct tm tm;
7133
7134 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
7135 instead of "TZ=America/Vancouver" in order to detect the bug even
7136 on systems that don't support the Olson extension, or don't have the
7137 full zoneinfo tables installed. */
7138 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
7139
7140 tm.tm_year = 98;
7141 tm.tm_mon = 3;
7142 tm.tm_mday = 5;
7143 tm.tm_hour = 2;
7144 tm.tm_min = 0;
7145 tm.tm_sec = 0;
7146 tm.tm_isdst = -1;
7147 return mktime (&tm) != (time_t) -1;
7148 }
7149
7150 static int
7151 mktime_test1 (now)
7152 time_t now;
7153 {
7154 struct tm *lt;
7155 return ! (lt = localtime (&now)) || mktime (lt) == now;
7156 }
7157
7158 static int
7159 mktime_test (now)
7160 time_t now;
7161 {
7162 return (mktime_test1 (now)
7163 && mktime_test1 ((time_t) (time_t_max - now))
7164 && mktime_test1 ((time_t) (time_t_min + now)));
7165 }
7166
7167 static int
7168 irix_6_4_bug ()
7169 {
7170 /* Based on code from Ariel Faigon. */
7171 struct tm tm;
7172 tm.tm_year = 96;
7173 tm.tm_mon = 3;
7174 tm.tm_mday = 0;
7175 tm.tm_hour = 0;
7176 tm.tm_min = 0;
7177 tm.tm_sec = 0;
7178 tm.tm_isdst = -1;
7179 mktime (&tm);
7180 return tm.tm_mon == 2 && tm.tm_mday == 31;
7181 }
7182
7183 static int
7184 bigtime_test (j)
7185 int j;
7186 {
7187 struct tm tm;
7188 time_t now;
7189 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
7190 now = mktime (&tm);
7191 if (now != (time_t) -1)
7192 {
7193 struct tm *lt = localtime (&now);
7194 if (! (lt
7195 && lt->tm_year == tm.tm_year
7196 && lt->tm_mon == tm.tm_mon
7197 && lt->tm_mday == tm.tm_mday
7198 && lt->tm_hour == tm.tm_hour
7199 && lt->tm_min == tm.tm_min
7200 && lt->tm_sec == tm.tm_sec
7201 && lt->tm_yday == tm.tm_yday
7202 && lt->tm_wday == tm.tm_wday
7203 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
7204 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
7205 return 0;
7206 }
7207 return 1;
7208 }
7209
7210 static int
7211 year_2050_test ()
7212 {
7213 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
7214 ignoring leap seconds. */
7215 unsigned long int answer = 2527315200UL;
7216
7217 struct tm tm;
7218 time_t t;
7219 tm.tm_year = 2050 - 1900;
7220 tm.tm_mon = 2 - 1;
7221 tm.tm_mday = 1;
7222 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
7223 tm.tm_isdst = -1;
7224
7225 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
7226 instead of "TZ=America/Vancouver" in order to detect the bug even
7227 on systems that don't support the Olson extension, or don't have the
7228 full zoneinfo tables installed. */
7229 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
7230
7231 t = mktime (&tm);
7232
7233 /* Check that the result is either a failure, or close enough
7234 to the correct answer that we can assume the discrepancy is
7235 due to leap seconds. */
7236 return (t == (time_t) -1
7237 || (0 < t && answer - 120 <= t && t <= answer + 120));
7238 }
7239
7240 int
7241 main ()
7242 {
7243 time_t t, delta;
7244 int i, j;
7245
7246 /* This test makes some buggy mktime implementations loop.
7247 Give up after 60 seconds; a mktime slower than that
7248 isn't worth using anyway. */
7249 alarm (60);
7250
7251 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
7252 continue;
7253 time_t_max--;
7254 if ((time_t) -1 < 0)
7255 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
7256 continue;
7257 delta = time_t_max / 997; /* a suitable prime number */
7258 for (i = 0; i < N_STRINGS; i++)
7259 {
7260 if (tz_strings[i])
7261 putenv (tz_strings[i]);
7262
7263 for (t = 0; t <= time_t_max - delta; t += delta)
7264 if (! mktime_test (t))
7265 return 1;
7266 if (! (mktime_test ((time_t) 1)
7267 && mktime_test ((time_t) (60 * 60))
7268 && mktime_test ((time_t) (60 * 60 * 24))))
7269 return 1;
7270
7271 for (j = 1; 0 < j; j *= 2)
7272 if (! bigtime_test (j))
7273 return 1;
7274 if (! bigtime_test (j - 1))
7275 return 1;
7276 }
7277 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
7278 }
7279 _ACEOF
7280 rm -f conftest$ac_exeext
7281 if { (ac_try="$ac_link"
7282 case "(($ac_try" in
7283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7284 *) ac_try_echo=$ac_try;;
7285 esac
7286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7287 (eval "$ac_link") 2>&5
7288 ac_status=$?
7289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7291 { (case "(($ac_try" in
7292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7293 *) ac_try_echo=$ac_try;;
7294 esac
7295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7296 (eval "$ac_try") 2>&5
7297 ac_status=$?
7298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7299 (exit $ac_status); }; }; then
7300 ac_cv_func_working_mktime=yes
7301 else
7302 echo "$as_me: program exited with status $ac_status" >&5
7303 echo "$as_me: failed program was:" >&5
7304 sed 's/^/| /' conftest.$ac_ext >&5
7305
7306 ( exit $ac_status )
7307 ac_cv_func_working_mktime=no
7308 fi
7309 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7310 fi
7311
7312
7313 fi
7314 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
7315 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
7316 if test $ac_cv_func_working_mktime = no; then
7317 case " $LIBOBJS " in
7318 *" mktime.$ac_objext "* ) ;;
7319 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
7320 ;;
7321 esac
7322
7323 fi
7324
7325
7326
7327 for ac_header in stdlib.h unistd.h
7328 do
7329 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7331 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7333 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7334 echo $ECHO_N "(cached) $ECHO_C" >&6
7335 fi
7336 ac_res=`eval echo '${'$as_ac_Header'}'`
7337 { echo "$as_me:$LINENO: result: $ac_res" >&5
7338 echo "${ECHO_T}$ac_res" >&6; }
7339 else
7340 # Is the header compilable?
7341 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7342 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7343 cat >conftest.$ac_ext <<_ACEOF
7344 /* confdefs.h. */
7345 _ACEOF
7346 cat confdefs.h >>conftest.$ac_ext
7347 cat >>conftest.$ac_ext <<_ACEOF
7348 /* end confdefs.h. */
7349 $ac_includes_default
7350 #include <$ac_header>
7351 _ACEOF
7352 rm -f conftest.$ac_objext
7353 if { (ac_try="$ac_compile"
7354 case "(($ac_try" in
7355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7356 *) ac_try_echo=$ac_try;;
7357 esac
7358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7359 (eval "$ac_compile") 2>conftest.er1
7360 ac_status=$?
7361 grep -v '^ *+' conftest.er1 >conftest.err
7362 rm -f conftest.er1
7363 cat conftest.err >&5
7364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7365 (exit $ac_status); } && {
7366 test -z "$ac_c_werror_flag" ||
7367 test ! -s conftest.err
7368 } && test -s conftest.$ac_objext; then
7369 ac_header_compiler=yes
7370 else
7371 echo "$as_me: failed program was:" >&5
7372 sed 's/^/| /' conftest.$ac_ext >&5
7373
7374 ac_header_compiler=no
7375 fi
7376
7377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7378 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7379 echo "${ECHO_T}$ac_header_compiler" >&6; }
7380
7381 # Is the header present?
7382 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7383 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7384 cat >conftest.$ac_ext <<_ACEOF
7385 /* confdefs.h. */
7386 _ACEOF
7387 cat confdefs.h >>conftest.$ac_ext
7388 cat >>conftest.$ac_ext <<_ACEOF
7389 /* end confdefs.h. */
7390 #include <$ac_header>
7391 _ACEOF
7392 if { (ac_try="$ac_cpp conftest.$ac_ext"
7393 case "(($ac_try" in
7394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7395 *) ac_try_echo=$ac_try;;
7396 esac
7397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7398 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7399 ac_status=$?
7400 grep -v '^ *+' conftest.er1 >conftest.err
7401 rm -f conftest.er1
7402 cat conftest.err >&5
7403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7404 (exit $ac_status); } >/dev/null && {
7405 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7406 test ! -s conftest.err
7407 }; then
7408 ac_header_preproc=yes
7409 else
7410 echo "$as_me: failed program was:" >&5
7411 sed 's/^/| /' conftest.$ac_ext >&5
7412
7413 ac_header_preproc=no
7414 fi
7415
7416 rm -f conftest.err conftest.$ac_ext
7417 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7418 echo "${ECHO_T}$ac_header_preproc" >&6; }
7419
7420 # So? What about this header?
7421 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7422 yes:no: )
7423 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7424 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7425 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7426 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7427 ac_header_preproc=yes
7428 ;;
7429 no:yes:* )
7430 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7431 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7432 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7433 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7434 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7435 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7436 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7437 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7438 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7439 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7440 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7441 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7442 ( cat <<\_ASBOX
7443 ## -------------------------------------------------- ##
7444 ## Report this to launchd-bug-reports@group.apple.com ##
7445 ## -------------------------------------------------- ##
7446 _ASBOX
7447 ) | sed "s/^/$as_me: WARNING: /" >&2
7448 ;;
7449 esac
7450 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7452 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7453 echo $ECHO_N "(cached) $ECHO_C" >&6
7454 else
7455 eval "$as_ac_Header=\$ac_header_preproc"
7456 fi
7457 ac_res=`eval echo '${'$as_ac_Header'}'`
7458 { echo "$as_me:$LINENO: result: $ac_res" >&5
7459 echo "${ECHO_T}$ac_res" >&6; }
7460
7461 fi
7462 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7463 cat >>confdefs.h <<_ACEOF
7464 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7465 _ACEOF
7466
7467 fi
7468
7469 done
7470
7471
7472 for ac_func in getpagesize
7473 do
7474 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7475 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7476 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7477 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7478 echo $ECHO_N "(cached) $ECHO_C" >&6
7479 else
7480 cat >conftest.$ac_ext <<_ACEOF
7481 /* confdefs.h. */
7482 _ACEOF
7483 cat confdefs.h >>conftest.$ac_ext
7484 cat >>conftest.$ac_ext <<_ACEOF
7485 /* end confdefs.h. */
7486 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7487 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7488 #define $ac_func innocuous_$ac_func
7489
7490 /* System header to define __stub macros and hopefully few prototypes,
7491 which can conflict with char $ac_func (); below.
7492 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7493 <limits.h> exists even on freestanding compilers. */
7494
7495 #ifdef __STDC__
7496 # include <limits.h>
7497 #else
7498 # include <assert.h>
7499 #endif
7500
7501 #undef $ac_func
7502
7503 /* Override any GCC internal prototype to avoid an error.
7504 Use char because int might match the return type of a GCC
7505 builtin and then its argument prototype would still apply. */
7506 #ifdef __cplusplus
7507 extern "C"
7508 #endif
7509 char $ac_func ();
7510 /* The GNU C library defines this for functions which it implements
7511 to always fail with ENOSYS. Some functions are actually named
7512 something starting with __ and the normal name is an alias. */
7513 #if defined __stub_$ac_func || defined __stub___$ac_func
7514 choke me
7515 #endif
7516
7517 int
7518 main ()
7519 {
7520 return $ac_func ();
7521 ;
7522 return 0;
7523 }
7524 _ACEOF
7525 rm -f conftest.$ac_objext conftest$ac_exeext
7526 if { (ac_try="$ac_link"
7527 case "(($ac_try" in
7528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7529 *) ac_try_echo=$ac_try;;
7530 esac
7531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7532 (eval "$ac_link") 2>conftest.er1
7533 ac_status=$?
7534 grep -v '^ *+' conftest.er1 >conftest.err
7535 rm -f conftest.er1
7536 cat conftest.err >&5
7537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7538 (exit $ac_status); } && {
7539 test -z "$ac_c_werror_flag" ||
7540 test ! -s conftest.err
7541 } && test -s conftest$ac_exeext &&
7542 $as_test_x conftest$ac_exeext; then
7543 eval "$as_ac_var=yes"
7544 else
7545 echo "$as_me: failed program was:" >&5
7546 sed 's/^/| /' conftest.$ac_ext >&5
7547
7548 eval "$as_ac_var=no"
7549 fi
7550
7551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7552 conftest$ac_exeext conftest.$ac_ext
7553 fi
7554 ac_res=`eval echo '${'$as_ac_var'}'`
7555 { echo "$as_me:$LINENO: result: $ac_res" >&5
7556 echo "${ECHO_T}$ac_res" >&6; }
7557 if test `eval echo '${'$as_ac_var'}'` = yes; then
7558 cat >>confdefs.h <<_ACEOF
7559 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7560 _ACEOF
7561
7562 fi
7563 done
7564
7565 { echo "$as_me:$LINENO: checking for working mmap" >&5
7566 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
7567 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7568 echo $ECHO_N "(cached) $ECHO_C" >&6
7569 else
7570 if test "$cross_compiling" = yes; then
7571 ac_cv_func_mmap_fixed_mapped=no
7572 else
7573 cat >conftest.$ac_ext <<_ACEOF
7574 /* confdefs.h. */
7575 _ACEOF
7576 cat confdefs.h >>conftest.$ac_ext
7577 cat >>conftest.$ac_ext <<_ACEOF
7578 /* end confdefs.h. */
7579 $ac_includes_default
7580 /* malloc might have been renamed as rpl_malloc. */
7581 #undef malloc
7582
7583 /* Thanks to Mike Haertel and Jim Avera for this test.
7584 Here is a matrix of mmap possibilities:
7585 mmap private not fixed
7586 mmap private fixed at somewhere currently unmapped
7587 mmap private fixed at somewhere already mapped
7588 mmap shared not fixed
7589 mmap shared fixed at somewhere currently unmapped
7590 mmap shared fixed at somewhere already mapped
7591 For private mappings, we should verify that changes cannot be read()
7592 back from the file, nor mmap's back from the file at a different
7593 address. (There have been systems where private was not correctly
7594 implemented like the infamous i386 svr4.0, and systems where the
7595 VM page cache was not coherent with the file system buffer cache
7596 like early versions of FreeBSD and possibly contemporary NetBSD.)
7597 For shared mappings, we should conversely verify that changes get
7598 propagated back to all the places they're supposed to be.
7599
7600 Grep wants private fixed already mapped.
7601 The main things grep needs to know about mmap are:
7602 * does it exist and is it safe to write into the mmap'd area
7603 * how to use it (BSD variants) */
7604
7605 #include <fcntl.h>
7606 #include <sys/mman.h>
7607
7608 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7609 char *malloc ();
7610 #endif
7611
7612 /* This mess was copied from the GNU getpagesize.h. */
7613 #ifndef HAVE_GETPAGESIZE
7614 /* Assume that all systems that can run configure have sys/param.h. */
7615 # ifndef HAVE_SYS_PARAM_H
7616 # define HAVE_SYS_PARAM_H 1
7617 # endif
7618
7619 # ifdef _SC_PAGESIZE
7620 # define getpagesize() sysconf(_SC_PAGESIZE)
7621 # else /* no _SC_PAGESIZE */
7622 # ifdef HAVE_SYS_PARAM_H
7623 # include <sys/param.h>
7624 # ifdef EXEC_PAGESIZE
7625 # define getpagesize() EXEC_PAGESIZE
7626 # else /* no EXEC_PAGESIZE */
7627 # ifdef NBPG
7628 # define getpagesize() NBPG * CLSIZE
7629 # ifndef CLSIZE
7630 # define CLSIZE 1
7631 # endif /* no CLSIZE */
7632 # else /* no NBPG */
7633 # ifdef NBPC
7634 # define getpagesize() NBPC
7635 # else /* no NBPC */
7636 # ifdef PAGESIZE
7637 # define getpagesize() PAGESIZE
7638 # endif /* PAGESIZE */
7639 # endif /* no NBPC */
7640 # endif /* no NBPG */
7641 # endif /* no EXEC_PAGESIZE */
7642 # else /* no HAVE_SYS_PARAM_H */
7643 # define getpagesize() 8192 /* punt totally */
7644 # endif /* no HAVE_SYS_PARAM_H */
7645 # endif /* no _SC_PAGESIZE */
7646
7647 #endif /* no HAVE_GETPAGESIZE */
7648
7649 int
7650 main ()
7651 {
7652 char *data, *data2, *data3;
7653 int i, pagesize;
7654 int fd;
7655
7656 pagesize = getpagesize ();
7657
7658 /* First, make a file with some known garbage in it. */
7659 data = (char *) malloc (pagesize);
7660 if (!data)
7661 return 1;
7662 for (i = 0; i < pagesize; ++i)
7663 *(data + i) = rand ();
7664 umask (0);
7665 fd = creat ("conftest.mmap", 0600);
7666 if (fd < 0)
7667 return 1;
7668 if (write (fd, data, pagesize) != pagesize)
7669 return 1;
7670 close (fd);
7671
7672 /* Next, try to mmap the file at a fixed address which already has
7673 something else allocated at it. If we can, also make sure that
7674 we see the same garbage. */
7675 fd = open ("conftest.mmap", O_RDWR);
7676 if (fd < 0)
7677 return 1;
7678 data2 = (char *) malloc (2 * pagesize);
7679 if (!data2)
7680 return 1;
7681 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
7682 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7683 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7684 return 1;
7685 for (i = 0; i < pagesize; ++i)
7686 if (*(data + i) != *(data2 + i))
7687 return 1;
7688
7689 /* Finally, make sure that changes to the mapped area do not
7690 percolate back to the file as seen by read(). (This is a bug on
7691 some variants of i386 svr4.0.) */
7692 for (i = 0; i < pagesize; ++i)
7693 *(data2 + i) = *(data2 + i) + 1;
7694 data3 = (char *) malloc (pagesize);
7695 if (!data3)
7696 return 1;
7697 if (read (fd, data3, pagesize) != pagesize)
7698 return 1;
7699 for (i = 0; i < pagesize; ++i)
7700 if (*(data + i) != *(data3 + i))
7701 return 1;
7702 close (fd);
7703 return 0;
7704 }
7705 _ACEOF
7706 rm -f conftest$ac_exeext
7707 if { (ac_try="$ac_link"
7708 case "(($ac_try" in
7709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7710 *) ac_try_echo=$ac_try;;
7711 esac
7712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7713 (eval "$ac_link") 2>&5
7714 ac_status=$?
7715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7716 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7717 { (case "(($ac_try" in
7718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7719 *) ac_try_echo=$ac_try;;
7720 esac
7721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7722 (eval "$ac_try") 2>&5
7723 ac_status=$?
7724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725 (exit $ac_status); }; }; then
7726 ac_cv_func_mmap_fixed_mapped=yes
7727 else
7728 echo "$as_me: program exited with status $ac_status" >&5
7729 echo "$as_me: failed program was:" >&5
7730 sed 's/^/| /' conftest.$ac_ext >&5
7731
7732 ( exit $ac_status )
7733 ac_cv_func_mmap_fixed_mapped=no
7734 fi
7735 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7736 fi
7737
7738
7739 fi
7740 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7741 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
7742 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7743
7744 cat >>confdefs.h <<\_ACEOF
7745 #define HAVE_MMAP 1
7746 _ACEOF
7747
7748 fi
7749 rm -f conftest.mmap
7750
7751
7752 for ac_header in stdlib.h
7753 do
7754 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7755 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7756 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7757 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7758 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7759 echo $ECHO_N "(cached) $ECHO_C" >&6
7760 fi
7761 ac_res=`eval echo '${'$as_ac_Header'}'`
7762 { echo "$as_me:$LINENO: result: $ac_res" >&5
7763 echo "${ECHO_T}$ac_res" >&6; }
7764 else
7765 # Is the header compilable?
7766 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7767 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7768 cat >conftest.$ac_ext <<_ACEOF
7769 /* confdefs.h. */
7770 _ACEOF
7771 cat confdefs.h >>conftest.$ac_ext
7772 cat >>conftest.$ac_ext <<_ACEOF
7773 /* end confdefs.h. */
7774 $ac_includes_default
7775 #include <$ac_header>
7776 _ACEOF
7777 rm -f conftest.$ac_objext
7778 if { (ac_try="$ac_compile"
7779 case "(($ac_try" in
7780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7781 *) ac_try_echo=$ac_try;;
7782 esac
7783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7784 (eval "$ac_compile") 2>conftest.er1
7785 ac_status=$?
7786 grep -v '^ *+' conftest.er1 >conftest.err
7787 rm -f conftest.er1
7788 cat conftest.err >&5
7789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7790 (exit $ac_status); } && {
7791 test -z "$ac_c_werror_flag" ||
7792 test ! -s conftest.err
7793 } && test -s conftest.$ac_objext; then
7794 ac_header_compiler=yes
7795 else
7796 echo "$as_me: failed program was:" >&5
7797 sed 's/^/| /' conftest.$ac_ext >&5
7798
7799 ac_header_compiler=no
7800 fi
7801
7802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7803 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7804 echo "${ECHO_T}$ac_header_compiler" >&6; }
7805
7806 # Is the header present?
7807 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7808 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7809 cat >conftest.$ac_ext <<_ACEOF
7810 /* confdefs.h. */
7811 _ACEOF
7812 cat confdefs.h >>conftest.$ac_ext
7813 cat >>conftest.$ac_ext <<_ACEOF
7814 /* end confdefs.h. */
7815 #include <$ac_header>
7816 _ACEOF
7817 if { (ac_try="$ac_cpp conftest.$ac_ext"
7818 case "(($ac_try" in
7819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7820 *) ac_try_echo=$ac_try;;
7821 esac
7822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7823 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7824 ac_status=$?
7825 grep -v '^ *+' conftest.er1 >conftest.err
7826 rm -f conftest.er1
7827 cat conftest.err >&5
7828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829 (exit $ac_status); } >/dev/null && {
7830 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7831 test ! -s conftest.err
7832 }; then
7833 ac_header_preproc=yes
7834 else
7835 echo "$as_me: failed program was:" >&5
7836 sed 's/^/| /' conftest.$ac_ext >&5
7837
7838 ac_header_preproc=no
7839 fi
7840
7841 rm -f conftest.err conftest.$ac_ext
7842 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7843 echo "${ECHO_T}$ac_header_preproc" >&6; }
7844
7845 # So? What about this header?
7846 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7847 yes:no: )
7848 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7849 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7850 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7851 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7852 ac_header_preproc=yes
7853 ;;
7854 no:yes:* )
7855 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7856 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7857 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7858 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7859 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7860 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7861 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7862 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7863 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7864 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7865 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7866 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7867 ( cat <<\_ASBOX
7868 ## -------------------------------------------------- ##
7869 ## Report this to launchd-bug-reports@group.apple.com ##
7870 ## -------------------------------------------------- ##
7871 _ASBOX
7872 ) | sed "s/^/$as_me: WARNING: /" >&2
7873 ;;
7874 esac
7875 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7876 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7877 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7878 echo $ECHO_N "(cached) $ECHO_C" >&6
7879 else
7880 eval "$as_ac_Header=\$ac_header_preproc"
7881 fi
7882 ac_res=`eval echo '${'$as_ac_Header'}'`
7883 { echo "$as_me:$LINENO: result: $ac_res" >&5
7884 echo "${ECHO_T}$ac_res" >&6; }
7885
7886 fi
7887 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7888 cat >>confdefs.h <<_ACEOF
7889 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7890 _ACEOF
7891
7892 fi
7893
7894 done
7895
7896 { echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
7897 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
7898 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
7899 echo $ECHO_N "(cached) $ECHO_C" >&6
7900 else
7901 if test "$cross_compiling" = yes; then
7902 ac_cv_func_realloc_0_nonnull=no
7903 else
7904 cat >conftest.$ac_ext <<_ACEOF
7905 /* confdefs.h. */
7906 _ACEOF
7907 cat confdefs.h >>conftest.$ac_ext
7908 cat >>conftest.$ac_ext <<_ACEOF
7909 /* end confdefs.h. */
7910 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
7911 # include <stdlib.h>
7912 #else
7913 char *realloc ();
7914 #endif
7915
7916 int
7917 main ()
7918 {
7919 return ! realloc (0, 0);
7920 ;
7921 return 0;
7922 }
7923 _ACEOF
7924 rm -f conftest$ac_exeext
7925 if { (ac_try="$ac_link"
7926 case "(($ac_try" in
7927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7928 *) ac_try_echo=$ac_try;;
7929 esac
7930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7931 (eval "$ac_link") 2>&5
7932 ac_status=$?
7933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7934 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7935 { (case "(($ac_try" in
7936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7937 *) ac_try_echo=$ac_try;;
7938 esac
7939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7940 (eval "$ac_try") 2>&5
7941 ac_status=$?
7942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943 (exit $ac_status); }; }; then
7944 ac_cv_func_realloc_0_nonnull=yes
7945 else
7946 echo "$as_me: program exited with status $ac_status" >&5
7947 echo "$as_me: failed program was:" >&5
7948 sed 's/^/| /' conftest.$ac_ext >&5
7949
7950 ( exit $ac_status )
7951 ac_cv_func_realloc_0_nonnull=no
7952 fi
7953 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7954 fi
7955
7956
7957 fi
7958 { echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
7959 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
7960 if test $ac_cv_func_realloc_0_nonnull = yes; then
7961
7962 cat >>confdefs.h <<\_ACEOF
7963 #define HAVE_REALLOC 1
7964 _ACEOF
7965
7966 else
7967 cat >>confdefs.h <<\_ACEOF
7968 #define HAVE_REALLOC 0
7969 _ACEOF
7970
7971 case " $LIBOBJS " in
7972 *" realloc.$ac_objext "* ) ;;
7973 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
7974 ;;
7975 esac
7976
7977
7978 cat >>confdefs.h <<\_ACEOF
7979 #define realloc rpl_realloc
7980 _ACEOF
7981
7982 fi
7983
7984
7985
7986
7987
7988 for ac_header in sys/select.h sys/socket.h
7989 do
7990 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7991 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7992 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7994 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7995 echo $ECHO_N "(cached) $ECHO_C" >&6
7996 fi
7997 ac_res=`eval echo '${'$as_ac_Header'}'`
7998 { echo "$as_me:$LINENO: result: $ac_res" >&5
7999 echo "${ECHO_T}$ac_res" >&6; }
8000 else
8001 # Is the header compilable?
8002 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8003 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8004 cat >conftest.$ac_ext <<_ACEOF
8005 /* confdefs.h. */
8006 _ACEOF
8007 cat confdefs.h >>conftest.$ac_ext
8008 cat >>conftest.$ac_ext <<_ACEOF
8009 /* end confdefs.h. */
8010 $ac_includes_default
8011 #include <$ac_header>
8012 _ACEOF
8013 rm -f conftest.$ac_objext
8014 if { (ac_try="$ac_compile"
8015 case "(($ac_try" in
8016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8017 *) ac_try_echo=$ac_try;;
8018 esac
8019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8020 (eval "$ac_compile") 2>conftest.er1
8021 ac_status=$?
8022 grep -v '^ *+' conftest.er1 >conftest.err
8023 rm -f conftest.er1
8024 cat conftest.err >&5
8025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8026 (exit $ac_status); } && {
8027 test -z "$ac_c_werror_flag" ||
8028 test ! -s conftest.err
8029 } && test -s conftest.$ac_objext; then
8030 ac_header_compiler=yes
8031 else
8032 echo "$as_me: failed program was:" >&5
8033 sed 's/^/| /' conftest.$ac_ext >&5
8034
8035 ac_header_compiler=no
8036 fi
8037
8038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8039 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8040 echo "${ECHO_T}$ac_header_compiler" >&6; }
8041
8042 # Is the header present?
8043 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8044 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8045 cat >conftest.$ac_ext <<_ACEOF
8046 /* confdefs.h. */
8047 _ACEOF
8048 cat confdefs.h >>conftest.$ac_ext
8049 cat >>conftest.$ac_ext <<_ACEOF
8050 /* end confdefs.h. */
8051 #include <$ac_header>
8052 _ACEOF
8053 if { (ac_try="$ac_cpp conftest.$ac_ext"
8054 case "(($ac_try" in
8055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8056 *) ac_try_echo=$ac_try;;
8057 esac
8058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8059 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8060 ac_status=$?
8061 grep -v '^ *+' conftest.er1 >conftest.err
8062 rm -f conftest.er1
8063 cat conftest.err >&5
8064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065 (exit $ac_status); } >/dev/null && {
8066 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8067 test ! -s conftest.err
8068 }; then
8069 ac_header_preproc=yes
8070 else
8071 echo "$as_me: failed program was:" >&5
8072 sed 's/^/| /' conftest.$ac_ext >&5
8073
8074 ac_header_preproc=no
8075 fi
8076
8077 rm -f conftest.err conftest.$ac_ext
8078 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8079 echo "${ECHO_T}$ac_header_preproc" >&6; }
8080
8081 # So? What about this header?
8082 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8083 yes:no: )
8084 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8085 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8086 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8087 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8088 ac_header_preproc=yes
8089 ;;
8090 no:yes:* )
8091 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8092 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8093 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8094 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8095 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8096 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8097 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8098 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8099 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8100 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8101 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8102 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8103 ( cat <<\_ASBOX
8104 ## -------------------------------------------------- ##
8105 ## Report this to launchd-bug-reports@group.apple.com ##
8106 ## -------------------------------------------------- ##
8107 _ASBOX
8108 ) | sed "s/^/$as_me: WARNING: /" >&2
8109 ;;
8110 esac
8111 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8114 echo $ECHO_N "(cached) $ECHO_C" >&6
8115 else
8116 eval "$as_ac_Header=\$ac_header_preproc"
8117 fi
8118 ac_res=`eval echo '${'$as_ac_Header'}'`
8119 { echo "$as_me:$LINENO: result: $ac_res" >&5
8120 echo "${ECHO_T}$ac_res" >&6; }
8121
8122 fi
8123 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8124 cat >>confdefs.h <<_ACEOF
8125 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8126 _ACEOF
8127
8128 fi
8129
8130 done
8131
8132 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
8133 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
8134 if test "${ac_cv_func_select_args+set}" = set; then
8135 echo $ECHO_N "(cached) $ECHO_C" >&6
8136 else
8137 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
8138 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
8139 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
8140 cat >conftest.$ac_ext <<_ACEOF
8141 /* confdefs.h. */
8142 _ACEOF
8143 cat confdefs.h >>conftest.$ac_ext
8144 cat >>conftest.$ac_ext <<_ACEOF
8145 /* end confdefs.h. */
8146 $ac_includes_default
8147 #ifdef HAVE_SYS_SELECT_H
8148 # include <sys/select.h>
8149 #endif
8150 #ifdef HAVE_SYS_SOCKET_H
8151 # include <sys/socket.h>
8152 #endif
8153
8154 int
8155 main ()
8156 {
8157 extern int select ($ac_arg1,
8158 $ac_arg234, $ac_arg234, $ac_arg234,
8159 $ac_arg5);
8160 ;
8161 return 0;
8162 }
8163 _ACEOF
8164 rm -f conftest.$ac_objext
8165 if { (ac_try="$ac_compile"
8166 case "(($ac_try" in
8167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8168 *) ac_try_echo=$ac_try;;
8169 esac
8170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8171 (eval "$ac_compile") 2>conftest.er1
8172 ac_status=$?
8173 grep -v '^ *+' conftest.er1 >conftest.err
8174 rm -f conftest.er1
8175 cat conftest.err >&5
8176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177 (exit $ac_status); } && {
8178 test -z "$ac_c_werror_flag" ||
8179 test ! -s conftest.err
8180 } && test -s conftest.$ac_objext; then
8181 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
8182 else
8183 echo "$as_me: failed program was:" >&5
8184 sed 's/^/| /' conftest.$ac_ext >&5
8185
8186
8187 fi
8188
8189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8190 done
8191 done
8192 done
8193 # Provide a safe default value.
8194 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
8195
8196 fi
8197 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
8198 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
8199 ac_save_IFS=$IFS; IFS=','
8200 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
8201 IFS=$ac_save_IFS
8202 shift
8203
8204 cat >>confdefs.h <<_ACEOF
8205 #define SELECT_TYPE_ARG1 $1
8206 _ACEOF
8207
8208
8209 cat >>confdefs.h <<_ACEOF
8210 #define SELECT_TYPE_ARG234 ($2)
8211 _ACEOF
8212
8213
8214 cat >>confdefs.h <<_ACEOF
8215 #define SELECT_TYPE_ARG5 ($3)
8216 _ACEOF
8217
8218 rm -f conftest*
8219
8220 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
8221 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
8222 if test "${ac_cv_type_signal+set}" = set; then
8223 echo $ECHO_N "(cached) $ECHO_C" >&6
8224 else
8225 cat >conftest.$ac_ext <<_ACEOF
8226 /* confdefs.h. */
8227 _ACEOF
8228 cat confdefs.h >>conftest.$ac_ext
8229 cat >>conftest.$ac_ext <<_ACEOF
8230 /* end confdefs.h. */
8231 #include <sys/types.h>
8232 #include <signal.h>
8233
8234 int
8235 main ()
8236 {
8237 return *(signal (0, 0)) (0) == 1;
8238 ;
8239 return 0;
8240 }
8241 _ACEOF
8242 rm -f conftest.$ac_objext
8243 if { (ac_try="$ac_compile"
8244 case "(($ac_try" in
8245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8246 *) ac_try_echo=$ac_try;;
8247 esac
8248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8249 (eval "$ac_compile") 2>conftest.er1
8250 ac_status=$?
8251 grep -v '^ *+' conftest.er1 >conftest.err
8252 rm -f conftest.er1
8253 cat conftest.err >&5
8254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255 (exit $ac_status); } && {
8256 test -z "$ac_c_werror_flag" ||
8257 test ! -s conftest.err
8258 } && test -s conftest.$ac_objext; then
8259 ac_cv_type_signal=int
8260 else
8261 echo "$as_me: failed program was:" >&5
8262 sed 's/^/| /' conftest.$ac_ext >&5
8263
8264 ac_cv_type_signal=void
8265 fi
8266
8267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8268 fi
8269 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
8270 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
8271
8272 cat >>confdefs.h <<_ACEOF
8273 #define RETSIGTYPE $ac_cv_type_signal
8274 _ACEOF
8275
8276
8277 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
8278 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
8279 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
8280 echo $ECHO_N "(cached) $ECHO_C" >&6
8281 else
8282 if test "$cross_compiling" = yes; then
8283 ac_cv_func_stat_empty_string_bug=yes
8284 else
8285 cat >conftest.$ac_ext <<_ACEOF
8286 /* confdefs.h. */
8287 _ACEOF
8288 cat confdefs.h >>conftest.$ac_ext
8289 cat >>conftest.$ac_ext <<_ACEOF
8290 /* end confdefs.h. */
8291 $ac_includes_default
8292 int
8293 main ()
8294 {
8295 struct stat sbuf;
8296 return stat ("", &sbuf) == 0;
8297 ;
8298 return 0;
8299 }
8300 _ACEOF
8301 rm -f conftest$ac_exeext
8302 if { (ac_try="$ac_link"
8303 case "(($ac_try" in
8304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8305 *) ac_try_echo=$ac_try;;
8306 esac
8307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8308 (eval "$ac_link") 2>&5
8309 ac_status=$?
8310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8312 { (case "(($ac_try" in
8313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8314 *) ac_try_echo=$ac_try;;
8315 esac
8316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8317 (eval "$ac_try") 2>&5
8318 ac_status=$?
8319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320 (exit $ac_status); }; }; then
8321 ac_cv_func_stat_empty_string_bug=no
8322 else
8323 echo "$as_me: program exited with status $ac_status" >&5
8324 echo "$as_me: failed program was:" >&5
8325 sed 's/^/| /' conftest.$ac_ext >&5
8326
8327 ( exit $ac_status )
8328 ac_cv_func_stat_empty_string_bug=yes
8329 fi
8330 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8331 fi
8332
8333
8334 fi
8335 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
8336 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
8337 if test $ac_cv_func_stat_empty_string_bug = yes; then
8338 case " $LIBOBJS " in
8339 *" stat.$ac_objext "* ) ;;
8340 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
8341 ;;
8342 esac
8343
8344
8345 cat >>confdefs.h <<_ACEOF
8346 #define HAVE_STAT_EMPTY_STRING_BUG 1
8347 _ACEOF
8348
8349 fi
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370 for ac_func in atexit dup2 gethostname gettimeofday memmove memset mkdir munmap rmdir select setenv socket strcasecmp strchr strdup strerror strrchr strstr strtol
8371 do
8372 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8373 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8374 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8375 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8376 echo $ECHO_N "(cached) $ECHO_C" >&6
8377 else
8378 cat >conftest.$ac_ext <<_ACEOF
8379 /* confdefs.h. */
8380 _ACEOF
8381 cat confdefs.h >>conftest.$ac_ext
8382 cat >>conftest.$ac_ext <<_ACEOF
8383 /* end confdefs.h. */
8384 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8385 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8386 #define $ac_func innocuous_$ac_func
8387
8388 /* System header to define __stub macros and hopefully few prototypes,
8389 which can conflict with char $ac_func (); below.
8390 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8391 <limits.h> exists even on freestanding compilers. */
8392
8393 #ifdef __STDC__
8394 # include <limits.h>
8395 #else
8396 # include <assert.h>
8397 #endif
8398
8399 #undef $ac_func
8400
8401 /* Override any GCC internal prototype to avoid an error.
8402 Use char because int might match the return type of a GCC
8403 builtin and then its argument prototype would still apply. */
8404 #ifdef __cplusplus
8405 extern "C"
8406 #endif
8407 char $ac_func ();
8408 /* The GNU C library defines this for functions which it implements
8409 to always fail with ENOSYS. Some functions are actually named
8410 something starting with __ and the normal name is an alias. */
8411 #if defined __stub_$ac_func || defined __stub___$ac_func
8412 choke me
8413 #endif
8414
8415 int
8416 main ()
8417 {
8418 return $ac_func ();
8419 ;
8420 return 0;
8421 }
8422 _ACEOF
8423 rm -f conftest.$ac_objext conftest$ac_exeext
8424 if { (ac_try="$ac_link"
8425 case "(($ac_try" in
8426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8427 *) ac_try_echo=$ac_try;;
8428 esac
8429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8430 (eval "$ac_link") 2>conftest.er1
8431 ac_status=$?
8432 grep -v '^ *+' conftest.er1 >conftest.err
8433 rm -f conftest.er1
8434 cat conftest.err >&5
8435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436 (exit $ac_status); } && {
8437 test -z "$ac_c_werror_flag" ||
8438 test ! -s conftest.err
8439 } && test -s conftest$ac_exeext &&
8440 $as_test_x conftest$ac_exeext; then
8441 eval "$as_ac_var=yes"
8442 else
8443 echo "$as_me: failed program was:" >&5
8444 sed 's/^/| /' conftest.$ac_ext >&5
8445
8446 eval "$as_ac_var=no"
8447 fi
8448
8449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8450 conftest$ac_exeext conftest.$ac_ext
8451 fi
8452 ac_res=`eval echo '${'$as_ac_var'}'`
8453 { echo "$as_me:$LINENO: result: $ac_res" >&5
8454 echo "${ECHO_T}$ac_res" >&6; }
8455 if test `eval echo '${'$as_ac_var'}'` = yes; then
8456 cat >>confdefs.h <<_ACEOF
8457 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8458 _ACEOF
8459
8460 fi
8461 done
8462
8463
8464 ac_config_files="$ac_config_files Makefile src/Makefile"
8465
8466
8467 if test "$RC_ProjectName" = launchd_libs; then
8468 LIBS_ONLY_TRUE=
8469 LIBS_ONLY_FALSE='#'
8470 else
8471 LIBS_ONLY_TRUE='#'
8472 LIBS_ONLY_FALSE=
8473 fi
8474
8475
8476 cat >confcache <<\_ACEOF
8477 # This file is a shell script that caches the results of configure
8478 # tests run on this system so they can be shared between configure
8479 # scripts and configure runs, see configure's option --config-cache.
8480 # It is not useful on other systems. If it contains results you don't
8481 # want to keep, you may remove or edit it.
8482 #
8483 # config.status only pays attention to the cache file if you give it
8484 # the --recheck option to rerun configure.
8485 #
8486 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8487 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8488 # following values.
8489
8490 _ACEOF
8491
8492 # The following way of writing the cache mishandles newlines in values,
8493 # but we know of no workaround that is simple, portable, and efficient.
8494 # So, we kill variables containing newlines.
8495 # Ultrix sh set writes to stderr and can't be redirected directly,
8496 # and sets the high bit in the cache file unless we assign to the vars.
8497 (
8498 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8499 eval ac_val=\$$ac_var
8500 case $ac_val in #(
8501 *${as_nl}*)
8502 case $ac_var in #(
8503 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
8504 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
8505 esac
8506 case $ac_var in #(
8507 _ | IFS | as_nl) ;; #(
8508 *) $as_unset $ac_var ;;
8509 esac ;;
8510 esac
8511 done
8512
8513 (set) 2>&1 |
8514 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8515 *${as_nl}ac_space=\ *)
8516 # `set' does not quote correctly, so add quotes (double-quote
8517 # substitution turns \\\\ into \\, and sed turns \\ into \).
8518 sed -n \
8519 "s/'/'\\\\''/g;
8520 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8521 ;; #(
8522 *)
8523 # `set' quotes correctly as required by POSIX, so do not add quotes.
8524 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8525 ;;
8526 esac |
8527 sort
8528 ) |
8529 sed '
8530 /^ac_cv_env_/b end
8531 t clear
8532 :clear
8533 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8534 t end
8535 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8536 :end' >>confcache
8537 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8538 if test -w "$cache_file"; then
8539 test "x$cache_file" != "x/dev/null" &&
8540 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
8541 echo "$as_me: updating cache $cache_file" >&6;}
8542 cat confcache >$cache_file
8543 else
8544 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
8545 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8546 fi
8547 fi
8548 rm -f confcache
8549
8550 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8551 # Let make expand exec_prefix.
8552 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8553
8554 DEFS=-DHAVE_CONFIG_H
8555
8556 ac_libobjs=
8557 ac_ltlibobjs=
8558 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8559 # 1. Remove the extension, and $U if already installed.
8560 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8561 ac_i=`echo "$ac_i" | sed "$ac_script"`
8562 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8563 # will be set to the directory where LIBOBJS objects are built.
8564 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8565 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
8566 done
8567 LIBOBJS=$ac_libobjs
8568
8569 LTLIBOBJS=$ac_ltlibobjs
8570
8571
8572 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8573 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
8574 Usually this means the macro was only invoked conditionally." >&5
8575 echo "$as_me: error: conditional \"AMDEP\" was never defined.
8576 Usually this means the macro was only invoked conditionally." >&2;}
8577 { (exit 1); exit 1; }; }
8578 fi
8579 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8580 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
8581 Usually this means the macro was only invoked conditionally." >&5
8582 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
8583 Usually this means the macro was only invoked conditionally." >&2;}
8584 { (exit 1); exit 1; }; }
8585 fi
8586 if test -z "${LIBS_ONLY_TRUE}" && test -z "${LIBS_ONLY_FALSE}"; then
8587 { { echo "$as_me:$LINENO: error: conditional \"LIBS_ONLY\" was never defined.
8588 Usually this means the macro was only invoked conditionally." >&5
8589 echo "$as_me: error: conditional \"LIBS_ONLY\" was never defined.
8590 Usually this means the macro was only invoked conditionally." >&2;}
8591 { (exit 1); exit 1; }; }
8592 fi
8593
8594 : ${CONFIG_STATUS=./config.status}
8595 ac_clean_files_save=$ac_clean_files
8596 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8597 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8598 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8599 cat >$CONFIG_STATUS <<_ACEOF
8600 #! $SHELL
8601 # Generated by $as_me.
8602 # Run this file to recreate the current configuration.
8603 # Compiler output produced by configure, useful for debugging
8604 # configure, is in config.log if it exists.
8605
8606 debug=false
8607 ac_cs_recheck=false
8608 ac_cs_silent=false
8609 SHELL=\${CONFIG_SHELL-$SHELL}
8610 _ACEOF
8611
8612 cat >>$CONFIG_STATUS <<\_ACEOF
8613 ## --------------------- ##
8614 ## M4sh Initialization. ##
8615 ## --------------------- ##
8616
8617 # Be more Bourne compatible
8618 DUALCASE=1; export DUALCASE # for MKS sh
8619 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8620 emulate sh
8621 NULLCMD=:
8622 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8623 # is contrary to our usage. Disable this feature.
8624 alias -g '${1+"$@"}'='"$@"'
8625 setopt NO_GLOB_SUBST
8626 else
8627 case `(set -o) 2>/dev/null` in
8628 *posix*) set -o posix ;;
8629 esac
8630
8631 fi
8632
8633
8634
8635
8636 # PATH needs CR
8637 # Avoid depending upon Character Ranges.
8638 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8639 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8640 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8641 as_cr_digits='0123456789'
8642 as_cr_alnum=$as_cr_Letters$as_cr_digits
8643
8644 # The user is always right.
8645 if test "${PATH_SEPARATOR+set}" != set; then
8646 echo "#! /bin/sh" >conf$$.sh
8647 echo "exit 0" >>conf$$.sh
8648 chmod +x conf$$.sh
8649 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8650 PATH_SEPARATOR=';'
8651 else
8652 PATH_SEPARATOR=:
8653 fi
8654 rm -f conf$$.sh
8655 fi
8656
8657 # Support unset when possible.
8658 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8659 as_unset=unset
8660 else
8661 as_unset=false
8662 fi
8663
8664
8665 # IFS
8666 # We need space, tab and new line, in precisely that order. Quoting is
8667 # there to prevent editors from complaining about space-tab.
8668 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8669 # splitting by setting IFS to empty value.)
8670 as_nl='
8671 '
8672 IFS=" "" $as_nl"
8673
8674 # Find who we are. Look in the path if we contain no directory separator.
8675 case $0 in
8676 *[\\/]* ) as_myself=$0 ;;
8677 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8678 for as_dir in $PATH
8679 do
8680 IFS=$as_save_IFS
8681 test -z "$as_dir" && as_dir=.
8682 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8683 done
8684 IFS=$as_save_IFS
8685
8686 ;;
8687 esac
8688 # We did not find ourselves, most probably we were run as `sh COMMAND'
8689 # in which case we are not to be found in the path.
8690 if test "x$as_myself" = x; then
8691 as_myself=$0
8692 fi
8693 if test ! -f "$as_myself"; then
8694 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8695 { (exit 1); exit 1; }
8696 fi
8697
8698 # Work around bugs in pre-3.0 UWIN ksh.
8699 for as_var in ENV MAIL MAILPATH
8700 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
8701 done
8702 PS1='$ '
8703 PS2='> '
8704 PS4='+ '
8705
8706 # NLS nuisances.
8707 for as_var in \
8708 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8709 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8710 LC_TELEPHONE LC_TIME
8711 do
8712 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8713 eval $as_var=C; export $as_var
8714 else
8715 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
8716 fi
8717 done
8718
8719 # Required to use basename.
8720 if expr a : '\(a\)' >/dev/null 2>&1 &&
8721 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8722 as_expr=expr
8723 else
8724 as_expr=false
8725 fi
8726
8727 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8728 as_basename=basename
8729 else
8730 as_basename=false
8731 fi
8732
8733
8734 # Name of the executable.
8735 as_me=`$as_basename -- "$0" ||
8736 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8737 X"$0" : 'X\(//\)$' \| \
8738 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8739 echo X/"$0" |
8740 sed '/^.*\/\([^/][^/]*\)\/*$/{
8741 s//\1/
8742 q
8743 }
8744 /^X\/\(\/\/\)$/{
8745 s//\1/
8746 q
8747 }
8748 /^X\/\(\/\).*/{
8749 s//\1/
8750 q
8751 }
8752 s/.*/./; q'`
8753
8754 # CDPATH.
8755 $as_unset CDPATH
8756
8757
8758
8759 as_lineno_1=$LINENO
8760 as_lineno_2=$LINENO
8761 test "x$as_lineno_1" != "x$as_lineno_2" &&
8762 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
8763
8764 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8765 # uniformly replaced by the line number. The first 'sed' inserts a
8766 # line-number line after each line using $LINENO; the second 'sed'
8767 # does the real work. The second script uses 'N' to pair each
8768 # line-number line with the line containing $LINENO, and appends
8769 # trailing '-' during substitution so that $LINENO is not a special
8770 # case at line end.
8771 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8772 # scripts with optimization help from Paolo Bonzini. Blame Lee
8773 # E. McMahon (1931-1989) for sed's syntax. :-)
8774 sed -n '
8775 p
8776 /[$]LINENO/=
8777 ' <$as_myself |
8778 sed '
8779 s/[$]LINENO.*/&-/
8780 t lineno
8781 b
8782 :lineno
8783 N
8784 :loop
8785 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
8786 t loop
8787 s/-\n.*//
8788 ' >$as_me.lineno &&
8789 chmod +x "$as_me.lineno" ||
8790 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
8791 { (exit 1); exit 1; }; }
8792
8793 # Don't try to exec as it changes $[0], causing all sort of problems
8794 # (the dirname of $[0] is not the place where we might find the
8795 # original and so on. Autoconf is especially sensitive to this).
8796 . "./$as_me.lineno"
8797 # Exit status is that of the last command.
8798 exit
8799 }
8800
8801
8802 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8803 as_dirname=dirname
8804 else
8805 as_dirname=false
8806 fi
8807
8808 ECHO_C= ECHO_N= ECHO_T=
8809 case `echo -n x` in
8810 -n*)
8811 case `echo 'x\c'` in
8812 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8813 *) ECHO_C='\c';;
8814 esac;;
8815 *)
8816 ECHO_N='-n';;
8817 esac
8818
8819 if expr a : '\(a\)' >/dev/null 2>&1 &&
8820 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8821 as_expr=expr
8822 else
8823 as_expr=false
8824 fi
8825
8826 rm -f conf$$ conf$$.exe conf$$.file
8827 if test -d conf$$.dir; then
8828 rm -f conf$$.dir/conf$$.file
8829 else
8830 rm -f conf$$.dir
8831 mkdir conf$$.dir
8832 fi
8833 echo >conf$$.file
8834 if ln -s conf$$.file conf$$ 2>/dev/null; then
8835 as_ln_s='ln -s'
8836 # ... but there are two gotchas:
8837 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8838 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8839 # In both cases, we have to default to `cp -p'.
8840 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8841 as_ln_s='cp -p'
8842 elif ln conf$$.file conf$$ 2>/dev/null; then
8843 as_ln_s=ln
8844 else
8845 as_ln_s='cp -p'
8846 fi
8847 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8848 rmdir conf$$.dir 2>/dev/null
8849
8850 if mkdir -p . 2>/dev/null; then
8851 as_mkdir_p=:
8852 else
8853 test -d ./-p && rmdir ./-p
8854 as_mkdir_p=false
8855 fi
8856
8857 if test -x / >/dev/null 2>&1; then
8858 as_test_x='test -x'
8859 else
8860 if ls -dL / >/dev/null 2>&1; then
8861 as_ls_L_option=L
8862 else
8863 as_ls_L_option=
8864 fi
8865 as_test_x='
8866 eval sh -c '\''
8867 if test -d "$1"; then
8868 test -d "$1/.";
8869 else
8870 case $1 in
8871 -*)set "./$1";;
8872 esac;
8873 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
8874 ???[sx]*):;;*)false;;esac;fi
8875 '\'' sh
8876 '
8877 fi
8878 as_executable_p=$as_test_x
8879
8880 # Sed expression to map a string onto a valid CPP name.
8881 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8882
8883 # Sed expression to map a string onto a valid variable name.
8884 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8885
8886
8887 exec 6>&1
8888
8889 # Save the log message, to keep $[0] and so on meaningful, and to
8890 # report actual input values of CONFIG_FILES etc. instead of their
8891 # values after options handling.
8892 ac_log="
8893 This file was extended by launchd $as_me 1.0, which was
8894 generated by GNU Autoconf 2.61. Invocation command line was
8895
8896 CONFIG_FILES = $CONFIG_FILES
8897 CONFIG_HEADERS = $CONFIG_HEADERS
8898 CONFIG_LINKS = $CONFIG_LINKS
8899 CONFIG_COMMANDS = $CONFIG_COMMANDS
8900 $ $0 $@
8901
8902 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8903 "
8904
8905 _ACEOF
8906
8907 cat >>$CONFIG_STATUS <<_ACEOF
8908 # Files that config.status was made for.
8909 config_files="$ac_config_files"
8910 config_headers="$ac_config_headers"
8911 config_commands="$ac_config_commands"
8912
8913 _ACEOF
8914
8915 cat >>$CONFIG_STATUS <<\_ACEOF
8916 ac_cs_usage="\
8917 \`$as_me' instantiates files from templates according to the
8918 current configuration.
8919
8920 Usage: $0 [OPTIONS] [FILE]...
8921
8922 -h, --help print this help, then exit
8923 -V, --version print version number and configuration settings, then exit
8924 -q, --quiet do not print progress messages
8925 -d, --debug don't remove temporary files
8926 --recheck update $as_me by reconfiguring in the same conditions
8927 --file=FILE[:TEMPLATE]
8928 instantiate the configuration file FILE
8929 --header=FILE[:TEMPLATE]
8930 instantiate the configuration header FILE
8931
8932 Configuration files:
8933 $config_files
8934
8935 Configuration headers:
8936 $config_headers
8937
8938 Configuration commands:
8939 $config_commands
8940
8941 Report bugs to <bug-autoconf@gnu.org>."
8942
8943 _ACEOF
8944 cat >>$CONFIG_STATUS <<_ACEOF
8945 ac_cs_version="\\
8946 launchd config.status 1.0
8947 configured by $0, generated by GNU Autoconf 2.61,
8948 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
8949
8950 Copyright (C) 2006 Free Software Foundation, Inc.
8951 This config.status script is free software; the Free Software Foundation
8952 gives unlimited permission to copy, distribute and modify it."
8953
8954 ac_pwd='$ac_pwd'
8955 srcdir='$srcdir'
8956 INSTALL='$INSTALL'
8957 MKDIR_P='$MKDIR_P'
8958 _ACEOF
8959
8960 cat >>$CONFIG_STATUS <<\_ACEOF
8961 # If no file are specified by the user, then we need to provide default
8962 # value. By we need to know if files were specified by the user.
8963 ac_need_defaults=:
8964 while test $# != 0
8965 do
8966 case $1 in
8967 --*=*)
8968 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8969 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8970 ac_shift=:
8971 ;;
8972 *)
8973 ac_option=$1
8974 ac_optarg=$2
8975 ac_shift=shift
8976 ;;
8977 esac
8978
8979 case $ac_option in
8980 # Handling of the options.
8981 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8982 ac_cs_recheck=: ;;
8983 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8984 echo "$ac_cs_version"; exit ;;
8985 --debug | --debu | --deb | --de | --d | -d )
8986 debug=: ;;
8987 --file | --fil | --fi | --f )
8988 $ac_shift
8989 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8990 ac_need_defaults=false;;
8991 --header | --heade | --head | --hea )
8992 $ac_shift
8993 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8994 ac_need_defaults=false;;
8995 --he | --h)
8996 # Conflict between --help and --header
8997 { echo "$as_me: error: ambiguous option: $1
8998 Try \`$0 --help' for more information." >&2
8999 { (exit 1); exit 1; }; };;
9000 --help | --hel | -h )
9001 echo "$ac_cs_usage"; exit ;;
9002 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9003 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9004 ac_cs_silent=: ;;
9005
9006 # This is an error.
9007 -*) { echo "$as_me: error: unrecognized option: $1
9008 Try \`$0 --help' for more information." >&2
9009 { (exit 1); exit 1; }; } ;;
9010
9011 *) ac_config_targets="$ac_config_targets $1"
9012 ac_need_defaults=false ;;
9013
9014 esac
9015 shift
9016 done
9017
9018 ac_configure_extra_args=
9019
9020 if $ac_cs_silent; then
9021 exec 6>/dev/null
9022 ac_configure_extra_args="$ac_configure_extra_args --silent"
9023 fi
9024
9025 _ACEOF
9026 cat >>$CONFIG_STATUS <<_ACEOF
9027 if \$ac_cs_recheck; then
9028 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9029 CONFIG_SHELL=$SHELL
9030 export CONFIG_SHELL
9031 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9032 fi
9033
9034 _ACEOF
9035 cat >>$CONFIG_STATUS <<\_ACEOF
9036 exec 5>>config.log
9037 {
9038 echo
9039 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9040 ## Running $as_me. ##
9041 _ASBOX
9042 echo "$ac_log"
9043 } >&5
9044
9045 _ACEOF
9046 cat >>$CONFIG_STATUS <<_ACEOF
9047 #
9048 # INIT-COMMANDS
9049 #
9050 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9051
9052 _ACEOF
9053
9054 cat >>$CONFIG_STATUS <<\_ACEOF
9055
9056 # Handling of arguments.
9057 for ac_config_target in $ac_config_targets
9058 do
9059 case $ac_config_target in
9060 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
9061 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9062 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9063 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
9064
9065 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9066 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9067 { (exit 1); exit 1; }; };;
9068 esac
9069 done
9070
9071
9072 # If the user did not use the arguments to specify the items to instantiate,
9073 # then the envvar interface is used. Set only those that are not.
9074 # We use the long form for the default assignment because of an extremely
9075 # bizarre bug on SunOS 4.1.3.
9076 if $ac_need_defaults; then
9077 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9078 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9079 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9080 fi
9081
9082 # Have a temporary directory for convenience. Make it in the build tree
9083 # simply because there is no reason against having it here, and in addition,
9084 # creating and moving files from /tmp can sometimes cause problems.
9085 # Hook for its removal unless debugging.
9086 # Note that there is a small window in which the directory will not be cleaned:
9087 # after its creation but before its name has been assigned to `$tmp'.
9088 $debug ||
9089 {
9090 tmp=
9091 trap 'exit_status=$?
9092 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
9093 ' 0
9094 trap '{ (exit 1); exit 1; }' 1 2 13 15
9095 }
9096 # Create a (secure) tmp directory for tmp files.
9097
9098 {
9099 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9100 test -n "$tmp" && test -d "$tmp"
9101 } ||
9102 {
9103 tmp=./conf$$-$RANDOM
9104 (umask 077 && mkdir "$tmp")
9105 } ||
9106 {
9107 echo "$me: cannot create a temporary directory in ." >&2
9108 { (exit 1); exit 1; }
9109 }
9110
9111 #
9112 # Set up the sed scripts for CONFIG_FILES section.
9113 #
9114
9115 # No need to generate the scripts if there are no CONFIG_FILES.
9116 # This happens for instance when ./config.status config.h
9117 if test -n "$CONFIG_FILES"; then
9118
9119 _ACEOF
9120
9121
9122
9123 ac_delim='%!_!# '
9124 for ac_last_try in false false false false false :; do
9125 cat >conf$$subs.sed <<_ACEOF
9126 SHELL!$SHELL$ac_delim
9127 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
9128 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
9129 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
9130 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
9131 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
9132 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
9133 exec_prefix!$exec_prefix$ac_delim
9134 prefix!$prefix$ac_delim
9135 program_transform_name!$program_transform_name$ac_delim
9136 bindir!$bindir$ac_delim
9137 sbindir!$sbindir$ac_delim
9138 libexecdir!$libexecdir$ac_delim
9139 datarootdir!$datarootdir$ac_delim
9140 datadir!$datadir$ac_delim
9141 sysconfdir!$sysconfdir$ac_delim
9142 sharedstatedir!$sharedstatedir$ac_delim
9143 localstatedir!$localstatedir$ac_delim
9144 includedir!$includedir$ac_delim
9145 oldincludedir!$oldincludedir$ac_delim
9146 docdir!$docdir$ac_delim
9147 infodir!$infodir$ac_delim
9148 htmldir!$htmldir$ac_delim
9149 dvidir!$dvidir$ac_delim
9150 pdfdir!$pdfdir$ac_delim
9151 psdir!$psdir$ac_delim
9152 libdir!$libdir$ac_delim
9153 localedir!$localedir$ac_delim
9154 mandir!$mandir$ac_delim
9155 DEFS!$DEFS$ac_delim
9156 ECHO_C!$ECHO_C$ac_delim
9157 ECHO_N!$ECHO_N$ac_delim
9158 ECHO_T!$ECHO_T$ac_delim
9159 LIBS!$LIBS$ac_delim
9160 build_alias!$build_alias$ac_delim
9161 host_alias!$host_alias$ac_delim
9162 target_alias!$target_alias$ac_delim
9163 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
9164 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
9165 INSTALL_DATA!$INSTALL_DATA$ac_delim
9166 am__isrc!$am__isrc$ac_delim
9167 CYGPATH_W!$CYGPATH_W$ac_delim
9168 PACKAGE!$PACKAGE$ac_delim
9169 VERSION!$VERSION$ac_delim
9170 ACLOCAL!$ACLOCAL$ac_delim
9171 AUTOCONF!$AUTOCONF$ac_delim
9172 AUTOMAKE!$AUTOMAKE$ac_delim
9173 AUTOHEADER!$AUTOHEADER$ac_delim
9174 MAKEINFO!$MAKEINFO$ac_delim
9175 install_sh!$install_sh$ac_delim
9176 STRIP!$STRIP$ac_delim
9177 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
9178 mkdir_p!$mkdir_p$ac_delim
9179 AWK!$AWK$ac_delim
9180 SET_MAKE!$SET_MAKE$ac_delim
9181 am__leading_dot!$am__leading_dot$ac_delim
9182 AMTAR!$AMTAR$ac_delim
9183 am__tar!$am__tar$ac_delim
9184 am__untar!$am__untar$ac_delim
9185 CC!$CC$ac_delim
9186 CFLAGS!$CFLAGS$ac_delim
9187 LDFLAGS!$LDFLAGS$ac_delim
9188 CPPFLAGS!$CPPFLAGS$ac_delim
9189 ac_ct_CC!$ac_ct_CC$ac_delim
9190 EXEEXT!$EXEEXT$ac_delim
9191 OBJEXT!$OBJEXT$ac_delim
9192 DEPDIR!$DEPDIR$ac_delim
9193 am__include!$am__include$ac_delim
9194 am__quote!$am__quote$ac_delim
9195 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
9196 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
9197 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
9198 CCDEPMODE!$CCDEPMODE$ac_delim
9199 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
9200 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
9201 RANLIB!$RANLIB$ac_delim
9202 CPP!$CPP$ac_delim
9203 GREP!$GREP$ac_delim
9204 EGREP!$EGREP$ac_delim
9205 ALLOCA!$ALLOCA$ac_delim
9206 LIBOBJS!$LIBOBJS$ac_delim
9207 LIBS_ONLY_TRUE!$LIBS_ONLY_TRUE$ac_delim
9208 LIBS_ONLY_FALSE!$LIBS_ONLY_FALSE$ac_delim
9209 LTLIBOBJS!$LTLIBOBJS$ac_delim
9210 _ACEOF
9211
9212 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 84; then
9213 break
9214 elif $ac_last_try; then
9215 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9216 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
9217 { (exit 1); exit 1; }; }
9218 else
9219 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9220 fi
9221 done
9222
9223 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
9224 if test -n "$ac_eof"; then
9225 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
9226 ac_eof=`expr $ac_eof + 1`
9227 fi
9228
9229 cat >>$CONFIG_STATUS <<_ACEOF
9230 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
9231 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
9232 _ACEOF
9233 sed '
9234 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
9235 s/^/s,@/; s/!/@,|#_!!_#|/
9236 :n
9237 t n
9238 s/'"$ac_delim"'$/,g/; t
9239 s/$/\\/; p
9240 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
9241 ' >>$CONFIG_STATUS <conf$$subs.sed
9242 rm -f conf$$subs.sed
9243 cat >>$CONFIG_STATUS <<_ACEOF
9244 :end
9245 s/|#_!!_#|//g
9246 CEOF$ac_eof
9247 _ACEOF
9248
9249
9250 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9251 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9252 # trailing colons and then remove the whole line if VPATH becomes empty
9253 # (actually we leave an empty line to preserve line numbers).
9254 if test "x$srcdir" = x.; then
9255 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9256 s/:*\$(srcdir):*/:/
9257 s/:*\${srcdir}:*/:/
9258 s/:*@srcdir@:*/:/
9259 s/^\([^=]*=[ ]*\):*/\1/
9260 s/:*$//
9261 s/^[^=]*=[ ]*$//
9262 }'
9263 fi
9264
9265 cat >>$CONFIG_STATUS <<\_ACEOF
9266 fi # test -n "$CONFIG_FILES"
9267
9268
9269 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
9270 do
9271 case $ac_tag in
9272 :[FHLC]) ac_mode=$ac_tag; continue;;
9273 esac
9274 case $ac_mode$ac_tag in
9275 :[FHL]*:*);;
9276 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
9277 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
9278 { (exit 1); exit 1; }; };;
9279 :[FH]-) ac_tag=-:-;;
9280 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9281 esac
9282 ac_save_IFS=$IFS
9283 IFS=:
9284 set x $ac_tag
9285 IFS=$ac_save_IFS
9286 shift
9287 ac_file=$1
9288 shift
9289
9290 case $ac_mode in
9291 :L) ac_source=$1;;
9292 :[FH])
9293 ac_file_inputs=
9294 for ac_f
9295 do
9296 case $ac_f in
9297 -) ac_f="$tmp/stdin";;
9298 *) # Look for the file first in the build tree, then in the source tree
9299 # (if the path is not absolute). The absolute path cannot be DOS-style,
9300 # because $ac_f cannot contain `:'.
9301 test -f "$ac_f" ||
9302 case $ac_f in
9303 [\\/$]*) false;;
9304 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9305 esac ||
9306 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
9307 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
9308 { (exit 1); exit 1; }; };;
9309 esac
9310 ac_file_inputs="$ac_file_inputs $ac_f"
9311 done
9312
9313 # Let's still pretend it is `configure' which instantiates (i.e., don't
9314 # use $as_me), people would be surprised to read:
9315 # /* config.h. Generated by config.status. */
9316 configure_input="Generated from "`IFS=:
9317 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
9318 if test x"$ac_file" != x-; then
9319 configure_input="$ac_file. $configure_input"
9320 { echo "$as_me:$LINENO: creating $ac_file" >&5
9321 echo "$as_me: creating $ac_file" >&6;}
9322 fi
9323
9324 case $ac_tag in
9325 *:-:* | *:-) cat >"$tmp/stdin";;
9326 esac
9327 ;;
9328 esac
9329
9330 ac_dir=`$as_dirname -- "$ac_file" ||
9331 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9332 X"$ac_file" : 'X\(//\)[^/]' \| \
9333 X"$ac_file" : 'X\(//\)$' \| \
9334 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9335 echo X"$ac_file" |
9336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9337 s//\1/
9338 q
9339 }
9340 /^X\(\/\/\)[^/].*/{
9341 s//\1/
9342 q
9343 }
9344 /^X\(\/\/\)$/{
9345 s//\1/
9346 q
9347 }
9348 /^X\(\/\).*/{
9349 s//\1/
9350 q
9351 }
9352 s/.*/./; q'`
9353 { as_dir="$ac_dir"
9354 case $as_dir in #(
9355 -*) as_dir=./$as_dir;;
9356 esac
9357 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
9358 as_dirs=
9359 while :; do
9360 case $as_dir in #(
9361 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
9362 *) as_qdir=$as_dir;;
9363 esac
9364 as_dirs="'$as_qdir' $as_dirs"
9365 as_dir=`$as_dirname -- "$as_dir" ||
9366 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9367 X"$as_dir" : 'X\(//\)[^/]' \| \
9368 X"$as_dir" : 'X\(//\)$' \| \
9369 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9370 echo X"$as_dir" |
9371 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9372 s//\1/
9373 q
9374 }
9375 /^X\(\/\/\)[^/].*/{
9376 s//\1/
9377 q
9378 }
9379 /^X\(\/\/\)$/{
9380 s//\1/
9381 q
9382 }
9383 /^X\(\/\).*/{
9384 s//\1/
9385 q
9386 }
9387 s/.*/./; q'`
9388 test -d "$as_dir" && break
9389 done
9390 test -z "$as_dirs" || eval "mkdir $as_dirs"
9391 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
9392 echo "$as_me: error: cannot create directory $as_dir" >&2;}
9393 { (exit 1); exit 1; }; }; }
9394 ac_builddir=.
9395
9396 case "$ac_dir" in
9397 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9398 *)
9399 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9400 # A ".." for each directory in $ac_dir_suffix.
9401 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
9402 case $ac_top_builddir_sub in
9403 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9404 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9405 esac ;;
9406 esac
9407 ac_abs_top_builddir=$ac_pwd
9408 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9409 # for backward compatibility:
9410 ac_top_builddir=$ac_top_build_prefix
9411
9412 case $srcdir in
9413 .) # We are building in place.
9414 ac_srcdir=.
9415 ac_top_srcdir=$ac_top_builddir_sub
9416 ac_abs_top_srcdir=$ac_pwd ;;
9417 [\\/]* | ?:[\\/]* ) # Absolute name.
9418 ac_srcdir=$srcdir$ac_dir_suffix;
9419 ac_top_srcdir=$srcdir
9420 ac_abs_top_srcdir=$srcdir ;;
9421 *) # Relative name.
9422 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9423 ac_top_srcdir=$ac_top_build_prefix$srcdir
9424 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9425 esac
9426 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9427
9428
9429 case $ac_mode in
9430 :F)
9431 #
9432 # CONFIG_FILE
9433 #
9434
9435 case $INSTALL in
9436 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9437 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9438 esac
9439 ac_MKDIR_P=$MKDIR_P
9440 case $MKDIR_P in
9441 [\\/$]* | ?:[\\/]* ) ;;
9442 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
9443 esac
9444 _ACEOF
9445
9446 cat >>$CONFIG_STATUS <<\_ACEOF
9447 # If the template does not know about datarootdir, expand it.
9448 # FIXME: This hack should be removed a few years after 2.60.
9449 ac_datarootdir_hack=; ac_datarootdir_seen=
9450
9451 case `sed -n '/datarootdir/ {
9452 p
9453 q
9454 }
9455 /@datadir@/p
9456 /@docdir@/p
9457 /@infodir@/p
9458 /@localedir@/p
9459 /@mandir@/p
9460 ' $ac_file_inputs` in
9461 *datarootdir*) ac_datarootdir_seen=yes;;
9462 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9463 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9464 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9465 _ACEOF
9466 cat >>$CONFIG_STATUS <<_ACEOF
9467 ac_datarootdir_hack='
9468 s&@datadir@&$datadir&g
9469 s&@docdir@&$docdir&g
9470 s&@infodir@&$infodir&g
9471 s&@localedir@&$localedir&g
9472 s&@mandir@&$mandir&g
9473 s&\\\${datarootdir}&$datarootdir&g' ;;
9474 esac
9475 _ACEOF
9476
9477 # Neutralize VPATH when `$srcdir' = `.'.
9478 # Shell code in configure.ac might set extrasub.
9479 # FIXME: do we really want to maintain this feature?
9480 cat >>$CONFIG_STATUS <<_ACEOF
9481 sed "$ac_vpsub
9482 $extrasub
9483 _ACEOF
9484 cat >>$CONFIG_STATUS <<\_ACEOF
9485 :t
9486 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9487 s&@configure_input@&$configure_input&;t t
9488 s&@top_builddir@&$ac_top_builddir_sub&;t t
9489 s&@srcdir@&$ac_srcdir&;t t
9490 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9491 s&@top_srcdir@&$ac_top_srcdir&;t t
9492 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9493 s&@builddir@&$ac_builddir&;t t
9494 s&@abs_builddir@&$ac_abs_builddir&;t t
9495 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9496 s&@INSTALL@&$ac_INSTALL&;t t
9497 s&@MKDIR_P@&$ac_MKDIR_P&;t t
9498 $ac_datarootdir_hack
9499 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
9500
9501 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9502 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
9503 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
9504 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9505 which seems to be undefined. Please make sure it is defined." >&5
9506 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9507 which seems to be undefined. Please make sure it is defined." >&2;}
9508
9509 rm -f "$tmp/stdin"
9510 case $ac_file in
9511 -) cat "$tmp/out"; rm -f "$tmp/out";;
9512 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
9513 esac
9514 ;;
9515 :H)
9516 #
9517 # CONFIG_HEADER
9518 #
9519 _ACEOF
9520
9521 # Transform confdefs.h into a sed script `conftest.defines', that
9522 # substitutes the proper values into config.h.in to produce config.h.
9523 rm -f conftest.defines conftest.tail
9524 # First, append a space to every undef/define line, to ease matching.
9525 echo 's/$/ /' >conftest.defines
9526 # Then, protect against being on the right side of a sed subst, or in
9527 # an unquoted here document, in config.status. If some macros were
9528 # called several times there might be several #defines for the same
9529 # symbol, which is useless. But do not sort them, since the last
9530 # AC_DEFINE must be honored.
9531 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9532 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
9533 # NAME is the cpp macro being defined, VALUE is the value it is being given.
9534 # PARAMS is the parameter list in the macro definition--in most cases, it's
9535 # just an empty string.
9536 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
9537 ac_dB='\\)[ (].*,\\1define\\2'
9538 ac_dC=' '
9539 ac_dD=' ,'
9540
9541 uniq confdefs.h |
9542 sed -n '
9543 t rset
9544 :rset
9545 s/^[ ]*#[ ]*define[ ][ ]*//
9546 t ok
9547 d
9548 :ok
9549 s/[\\&,]/\\&/g
9550 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
9551 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
9552 ' >>conftest.defines
9553
9554 # Remove the space that was appended to ease matching.
9555 # Then replace #undef with comments. This is necessary, for
9556 # example, in the case of _POSIX_SOURCE, which is predefined and required
9557 # on some systems where configure will not decide to define it.
9558 # (The regexp can be short, since the line contains either #define or #undef.)
9559 echo 's/ $//
9560 s,^[ #]*u.*,/* & */,' >>conftest.defines
9561
9562 # Break up conftest.defines:
9563 ac_max_sed_lines=50
9564
9565 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
9566 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
9567 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
9568 # et cetera.
9569 ac_in='$ac_file_inputs'
9570 ac_out='"$tmp/out1"'
9571 ac_nxt='"$tmp/out2"'
9572
9573 while :
9574 do
9575 # Write a here document:
9576 cat >>$CONFIG_STATUS <<_ACEOF
9577 # First, check the format of the line:
9578 cat >"\$tmp/defines.sed" <<\\CEOF
9579 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
9580 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
9581 b
9582 :def
9583 _ACEOF
9584 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
9585 echo 'CEOF
9586 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
9587 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
9588 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
9589 grep . conftest.tail >/dev/null || break
9590 rm -f conftest.defines
9591 mv conftest.tail conftest.defines
9592 done
9593 rm -f conftest.defines conftest.tail
9594
9595 echo "ac_result=$ac_in" >>$CONFIG_STATUS
9596 cat >>$CONFIG_STATUS <<\_ACEOF
9597 if test x"$ac_file" != x-; then
9598 echo "/* $configure_input */" >"$tmp/config.h"
9599 cat "$ac_result" >>"$tmp/config.h"
9600 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
9601 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9602 echo "$as_me: $ac_file is unchanged" >&6;}
9603 else
9604 rm -f $ac_file
9605 mv "$tmp/config.h" $ac_file
9606 fi
9607 else
9608 echo "/* $configure_input */"
9609 cat "$ac_result"
9610 fi
9611 rm -f "$tmp/out12"
9612 # Compute $ac_file's index in $config_headers.
9613 _am_stamp_count=1
9614 for _am_header in $config_headers :; do
9615 case $_am_header in
9616 $ac_file | $ac_file:* )
9617 break ;;
9618 * )
9619 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9620 esac
9621 done
9622 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
9623 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9624 X$ac_file : 'X\(//\)[^/]' \| \
9625 X$ac_file : 'X\(//\)$' \| \
9626 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
9627 echo X$ac_file |
9628 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9629 s//\1/
9630 q
9631 }
9632 /^X\(\/\/\)[^/].*/{
9633 s//\1/
9634 q
9635 }
9636 /^X\(\/\/\)$/{
9637 s//\1/
9638 q
9639 }
9640 /^X\(\/\).*/{
9641 s//\1/
9642 q
9643 }
9644 s/.*/./; q'`/stamp-h$_am_stamp_count
9645 ;;
9646
9647 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
9648 echo "$as_me: executing $ac_file commands" >&6;}
9649 ;;
9650 esac
9651
9652
9653 case $ac_file$ac_mode in
9654 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
9655 # Strip MF so we end up with the name of the file.
9656 mf=`echo "$mf" | sed -e 's/:.*$//'`
9657 # Check whether this is an Automake generated Makefile or not.
9658 # We used to match only the files named `Makefile.in', but
9659 # some people rename them; so instead we look at the file content.
9660 # Grep'ing the first line is not enough: some people post-process
9661 # each Makefile.in and add a new line on top of each file to say so.
9662 # Grep'ing the whole file is not good either: AIX grep has a line
9663 # limit of 2048, but all sed's we know have understand at least 4000.
9664 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
9665 dirpart=`$as_dirname -- "$mf" ||
9666 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9667 X"$mf" : 'X\(//\)[^/]' \| \
9668 X"$mf" : 'X\(//\)$' \| \
9669 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
9670 echo X"$mf" |
9671 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9672 s//\1/
9673 q
9674 }
9675 /^X\(\/\/\)[^/].*/{
9676 s//\1/
9677 q
9678 }
9679 /^X\(\/\/\)$/{
9680 s//\1/
9681 q
9682 }
9683 /^X\(\/\).*/{
9684 s//\1/
9685 q
9686 }
9687 s/.*/./; q'`
9688 else
9689 continue
9690 fi
9691 # Extract the definition of DEPDIR, am__include, and am__quote
9692 # from the Makefile without running `make'.
9693 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9694 test -z "$DEPDIR" && continue
9695 am__include=`sed -n 's/^am__include = //p' < "$mf"`
9696 test -z "am__include" && continue
9697 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9698 # When using ansi2knr, U may be empty or an underscore; expand it
9699 U=`sed -n 's/^U = //p' < "$mf"`
9700 # Find all dependency output files, they are included files with
9701 # $(DEPDIR) in their names. We invoke sed twice because it is the
9702 # simplest approach to changing $(DEPDIR) to its actual value in the
9703 # expansion.
9704 for file in `sed -n "
9705 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9706 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9707 # Make sure the directory exists.
9708 test -f "$dirpart/$file" && continue
9709 fdir=`$as_dirname -- "$file" ||
9710 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9711 X"$file" : 'X\(//\)[^/]' \| \
9712 X"$file" : 'X\(//\)$' \| \
9713 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
9714 echo X"$file" |
9715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9716 s//\1/
9717 q
9718 }
9719 /^X\(\/\/\)[^/].*/{
9720 s//\1/
9721 q
9722 }
9723 /^X\(\/\/\)$/{
9724 s//\1/
9725 q
9726 }
9727 /^X\(\/\).*/{
9728 s//\1/
9729 q
9730 }
9731 s/.*/./; q'`
9732 { as_dir=$dirpart/$fdir
9733 case $as_dir in #(
9734 -*) as_dir=./$as_dir;;
9735 esac
9736 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
9737 as_dirs=
9738 while :; do
9739 case $as_dir in #(
9740 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
9741 *) as_qdir=$as_dir;;
9742 esac
9743 as_dirs="'$as_qdir' $as_dirs"
9744 as_dir=`$as_dirname -- "$as_dir" ||
9745 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9746 X"$as_dir" : 'X\(//\)[^/]' \| \
9747 X"$as_dir" : 'X\(//\)$' \| \
9748 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9749 echo X"$as_dir" |
9750 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9751 s//\1/
9752 q
9753 }
9754 /^X\(\/\/\)[^/].*/{
9755 s//\1/
9756 q
9757 }
9758 /^X\(\/\/\)$/{
9759 s//\1/
9760 q
9761 }
9762 /^X\(\/\).*/{
9763 s//\1/
9764 q
9765 }
9766 s/.*/./; q'`
9767 test -d "$as_dir" && break
9768 done
9769 test -z "$as_dirs" || eval "mkdir $as_dirs"
9770 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
9771 echo "$as_me: error: cannot create directory $as_dir" >&2;}
9772 { (exit 1); exit 1; }; }; }
9773 # echo "creating $dirpart/$file"
9774 echo '# dummy' > "$dirpart/$file"
9775 done
9776 done
9777 ;;
9778
9779 esac
9780 done # for ac_tag
9781
9782
9783 { (exit 0); exit 0; }
9784 _ACEOF
9785 chmod +x $CONFIG_STATUS
9786 ac_clean_files=$ac_clean_files_save
9787
9788
9789 # configure is writing to config.log, and then calls config.status.
9790 # config.status does its own redirection, appending to config.log.
9791 # Unfortunately, on DOS this fails, as config.log is still kept open
9792 # by configure, so config.status won't be able to write to it; its
9793 # output is simply discarded. So we exec the FD to /dev/null,
9794 # effectively closing config.log, so it can be properly (re)opened and
9795 # appended to by config.status. When coming back to configure, we
9796 # need to make the FD available again.
9797 if test "$no_create" != yes; then
9798 ac_cs_success=:
9799 ac_config_status_args=
9800 test "$silent" = yes &&
9801 ac_config_status_args="$ac_config_status_args --quiet"
9802 exec 5>/dev/null
9803 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9804 exec 5>>config.log
9805 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9806 # would make configure fail if this is the last instruction.
9807 $ac_cs_success || { (exit 1); exit 1; }
9808 fi
9809