2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for launchd 1.0.
5 # Report bugs to <launchd-bug-reports@group.apple.com>.
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 ## --------------------- ##
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
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+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in
26 *posix
*) set -o posix
;;
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
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
47 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
55 # Support unset when possible.
56 if ( (MAIL
=60; unset MAIL
) || exit) >/dev
/null
2>&1; then
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.)
72 # Find who we are. Look in the path if we contain no directory separator.
74 *[\\/]* ) as_myself
=$0 ;;
75 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
79 test -z "$as_dir" && as_dir
=.
80 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
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
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
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
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 \
110 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C
; export $as_var
113 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
117 # Required to use basename.
118 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
125 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
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 ||
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 if test "x$CONFIG_SHELL" = x
; then
157 if (eval ":") 2>/dev
/null
; then
163 if test $as_have_required = yes && (eval ":
173 as_func_ret_success () {
176 as_func_ret_failure () {
181 if as_func_success; then
185 echo as_func_success failed.
188 if as_func_failure; then
190 echo as_func_failure succeeded.
193 if as_func_ret_success; then
197 echo as_func_ret_success failed.
200 if as_func_ret_failure; then
202 echo as_func_ret_failure succeeded.
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
209 echo positional parameters were not saved.
212 test \$exitcode = 0) || { (exit 1); exit 1; }
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
223 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
224 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
227 test -z "$as_dir" && as_dir
=.
230 for as_base
in sh bash ksh sh5
; do
231 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
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
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+"$@"}'='"$@"'
250 case `(set -o) 2>/dev/null` in
251 *posix
*) set -o posix
;;
260 CONFIG_SHELL
=$as_shell
262 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
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+"$@"}'='"$@"'
271 case `(set -o) 2>/dev/null` in
272 *posix
*) set -o posix
;;
288 as_func_ret_success
() {
291 as_func_ret_failure
() {
296 if as_func_success
; then
300 echo as_func_success failed.
303 if as_func_failure
; then
305 echo as_func_failure succeeded.
308 if as_func_ret_success
; then
312 echo as_func_ret_success failed.
315 if as_func_ret_failure
; then
317 echo as_func_ret_failure succeeded.
320 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
324 echo positional parameters were not saved.
327 test $exitcode = 0) || { (exit 1); exit 1; }
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; }
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
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
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; }
368 (eval "as_func_return () {
377 as_func_ret_success () {
380 as_func_ret_failure () {
385 if as_func_success; then
389 echo as_func_success failed.
392 if as_func_failure; then
394 echo as_func_failure succeeded.
397 if as_func_ret_success; then
401 echo as_func_ret_success failed.
404 if as_func_ret_failure; then
406 echo as_func_ret_failure succeeded.
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
413 echo positional parameters were not saved.
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
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
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
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. :-)
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
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; }; }
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).
463 # Exit status is that of the last command.
468 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
474 ECHO_C
= ECHO_N
= ECHO_T
=
478 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
485 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
492 rm -f conf$$ conf$$.exe conf$$.
file
493 if test -d conf$$.dir
; then
494 rm -f conf$$.dir
/conf$$.
file
500 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
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
||
508 elif ln conf$$.
file conf$$
2>/dev
/null
; then
513 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
514 rmdir conf$$.dir
2>/dev
/null
516 if mkdir -p .
2>/dev
/null
; then
519 test -d .
/-p && rmdir .
/-p
523 if test -x / >/dev
/null
2>&1; then
526 if ls -dL / >/dev
/null
2>&1; then
533 if test -d "$1"; then
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
544 as_executable_p
=$as_test_x
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'"
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'"
554 exec 7<&0 </dev
/null
6>&1
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`
564 ac_default_prefix
=/usr
/local
566 ac_config_libobj_dir
=.
572 SHELL
=${CONFIG_SHELL-/bin/sh}
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'
581 ac_unique_file
="src/launchd.c"
582 # Factoring default headers for most tests.
583 ac_includes_default
="\
585 #ifdef HAVE_SYS_TYPES_H
586 # include <sys/types.h>
588 #ifdef HAVE_SYS_STAT_H
589 # include <sys/stat.h>
595 # ifdef HAVE_STDLIB_H
600 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 #ifdef HAVE_STRINGS_H
606 # include <strings.h>
608 #ifdef HAVE_INTTYPES_H
609 # include <inttypes.h>
629 program_transform_name
671 INSTALL_STRIP_PROGRAM
705 DO_EMBEDDED_MAGIC_TRUE
706 DO_EMBEDDED_MAGIC_FALSE
709 ac_precious_vars
='build_alias
720 # Initialize some variables set by options.
722 ac_init_version
=false
723 # The variables have the same names as the options, with
724 # dashes changed to underlines.
732 program_transform_name
=s
,x
,x
,
740 # Installation directory options.
741 # These are left unexpanded so users can "make install exec_prefix=/foo"
742 # and all the variables that are supposed to be based on exec_prefix
743 # by default will actually change.
744 # Use braces instead of parens because sh, perl, etc. also accept them.
745 # (The list follows the same order as the GNU Coding Standards.)
746 bindir
='${exec_prefix}/bin'
747 sbindir
='${exec_prefix}/sbin'
748 libexecdir
='${exec_prefix}/libexec'
749 datarootdir
='${prefix}/share'
750 datadir
='${datarootdir}'
751 sysconfdir
='${prefix}/etc'
752 sharedstatedir
='${prefix}/com'
753 localstatedir
='${prefix}/var'
754 includedir
='${prefix}/include'
755 oldincludedir
='/usr/include'
756 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
757 infodir
='${datarootdir}/info'
762 libdir
='${exec_prefix}/lib'
763 localedir
='${datarootdir}/locale'
764 mandir
='${datarootdir}/man'
770 # If the previous option needs an argument, assign it.
771 if test -n "$ac_prev"; then
772 eval $ac_prev=\
$ac_option
778 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
782 # Accept the important Cygnus configure options, so we can diagnose typos.
784 case $ac_dashdash$ac_option in
788 -bindir | --bindir | --bindi | --bind | --bin | --bi)
790 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
793 -build | --build | --buil | --bui | --bu)
794 ac_prev
=build_alias
;;
795 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
796 build_alias
=$ac_optarg ;;
798 -cache-file | --cache-file | --cache-fil | --cache-fi \
799 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
800 ac_prev
=cache_file
;;
801 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
802 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
803 cache_file
=$ac_optarg ;;
806 cache_file
=config.cache
;;
808 -datadir | --datadir | --datadi | --datad)
810 -datadir=* | --datadir=* | --datadi=* | --datad=*)
811 datadir
=$ac_optarg ;;
813 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
814 | --dataroo | --dataro | --datar)
815 ac_prev
=datarootdir
;;
816 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
817 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
818 datarootdir
=$ac_optarg ;;
820 -disable-* | --disable-*)
821 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
822 # Reject names that are not valid shell variable names.
823 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
824 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
825 { (exit 1); exit 1; }; }
826 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
827 eval enable_
$ac_feature=no
;;
829 -docdir | --docdir | --docdi | --doc | --do)
831 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
834 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
836 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
839 -enable-* | --enable-*)
840 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
841 # Reject names that are not valid shell variable names.
842 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
843 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
844 { (exit 1); exit 1; }; }
845 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
846 eval enable_
$ac_feature=\
$ac_optarg ;;
848 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
849 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
850 | --exec | --exe | --ex)
851 ac_prev
=exec_prefix
;;
852 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
853 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
854 | --exec=* | --exe=* | --ex=*)
855 exec_prefix
=$ac_optarg ;;
857 -gas | --gas | --ga | --g)
858 # Obsolete; use --with-gas.
861 -help | --help | --hel | --he | -h)
863 -help=r
* | --help=r
* | --hel=r
* | --he=r
* | -hr*)
864 ac_init_help
=recursive
;;
865 -help=s
* | --help=s
* | --hel=s
* | --he=s
* | -hs*)
866 ac_init_help
=short
;;
868 -host | --host | --hos | --ho)
869 ac_prev
=host_alias
;;
870 -host=* | --host=* | --hos=* | --ho=*)
871 host_alias
=$ac_optarg ;;
873 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
875 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
877 htmldir
=$ac_optarg ;;
879 -includedir | --includedir | --includedi | --included | --include \
880 | --includ | --inclu | --incl | --inc)
881 ac_prev
=includedir
;;
882 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
883 | --includ=* | --inclu=* | --incl=* | --inc=*)
884 includedir
=$ac_optarg ;;
886 -infodir | --infodir | --infodi | --infod | --info | --inf)
888 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
889 infodir
=$ac_optarg ;;
891 -libdir | --libdir | --libdi | --libd)
893 -libdir=* | --libdir=* | --libdi=* | --libd=*)
896 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
897 | --libexe | --libex | --libe)
898 ac_prev
=libexecdir
;;
899 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
900 | --libexe=* | --libex=* | --libe=*)
901 libexecdir
=$ac_optarg ;;
903 -localedir | --localedir | --localedi | --localed | --locale)
905 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
906 localedir
=$ac_optarg ;;
908 -localstatedir | --localstatedir | --localstatedi | --localstated \
909 | --localstate | --localstat | --localsta | --localst | --locals)
910 ac_prev
=localstatedir
;;
911 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
912 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
913 localstatedir
=$ac_optarg ;;
915 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
917 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
921 # Obsolete; use --without-fp.
924 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
925 | --no-cr | --no-c | -n)
928 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
929 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
932 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
933 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
934 | --oldin | --oldi | --old | --ol | --o)
935 ac_prev
=oldincludedir
;;
936 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
937 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
938 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
939 oldincludedir
=$ac_optarg ;;
941 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
943 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
946 -program-prefix | --program-prefix | --program-prefi | --program-pref \
947 | --program-pre | --program-pr | --program-p)
948 ac_prev
=program_prefix
;;
949 -program-prefix=* | --program-prefix=* | --program-prefi=* \
950 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
951 program_prefix
=$ac_optarg ;;
953 -program-suffix | --program-suffix | --program-suffi | --program-suff \
954 | --program-suf | --program-su | --program-s)
955 ac_prev
=program_suffix
;;
956 -program-suffix=* | --program-suffix=* | --program-suffi=* \
957 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
958 program_suffix
=$ac_optarg ;;
960 -program-transform-name | --program-transform-name \
961 | --program-transform-nam | --program-transform-na \
962 | --program-transform-n | --program-transform- \
963 | --program-transform | --program-transfor \
964 | --program-transfo | --program-transf \
965 | --program-trans | --program-tran \
966 | --progr-tra | --program-tr | --program-t)
967 ac_prev
=program_transform_name
;;
968 -program-transform-name=* | --program-transform-name=* \
969 | --program-transform-nam=* | --program-transform-na=* \
970 | --program-transform-n=* | --program-transform-=* \
971 | --program-transform=* | --program-transfor=* \
972 | --program-transfo=* | --program-transf=* \
973 | --program-trans=* | --program-tran=* \
974 | --progr-tra=* | --program-tr=* | --program-t=*)
975 program_transform_name
=$ac_optarg ;;
977 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
979 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
982 -psdir | --psdir | --psdi | --psd | --ps)
984 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
987 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
988 | -silent | --silent | --silen | --sile | --sil)
991 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
993 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
995 sbindir
=$ac_optarg ;;
997 -sharedstatedir | --sharedstatedir | --sharedstatedi \
998 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
999 | --sharedst | --shareds | --shared | --share | --shar \
1001 ac_prev
=sharedstatedir
;;
1002 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1003 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1004 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1006 sharedstatedir
=$ac_optarg ;;
1008 -site | --site | --sit)
1010 -site=* | --site=* | --sit=*)
1013 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1015 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1016 srcdir
=$ac_optarg ;;
1018 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1019 | --syscon | --sysco | --sysc | --sys | --sy)
1020 ac_prev
=sysconfdir
;;
1021 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1022 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1023 sysconfdir
=$ac_optarg ;;
1025 -target | --target | --targe | --targ | --tar | --ta | --t)
1026 ac_prev
=target_alias
;;
1027 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1028 target_alias
=$ac_optarg ;;
1030 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1033 -version | --version | --versio | --versi | --vers | -V)
1034 ac_init_version
=: ;;
1037 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1038 # Reject names that are not valid shell variable names.
1039 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1040 { echo "$as_me: error: invalid package name: $ac_package" >&2
1041 { (exit 1); exit 1; }; }
1042 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1043 eval with_
$ac_package=\
$ac_optarg ;;
1045 -without-* | --without-*)
1046 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1047 # Reject names that are not valid shell variable names.
1048 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1049 { echo "$as_me: error: invalid package name: $ac_package" >&2
1050 { (exit 1); exit 1; }; }
1051 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1052 eval with_
$ac_package=no
;;
1055 # Obsolete; use --with-x.
1058 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1059 | --x-incl | --x-inc | --x-in | --x-i)
1060 ac_prev
=x_includes
;;
1061 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1062 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1063 x_includes
=$ac_optarg ;;
1065 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1066 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1067 ac_prev
=x_libraries
;;
1068 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1069 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1070 x_libraries
=$ac_optarg ;;
1072 -*) { echo "$as_me: error: unrecognized option: $ac_option
1073 Try \`$0 --help' for more information." >&2
1074 { (exit 1); exit 1; }; }
1078 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1079 # Reject names that are not valid shell variable names.
1080 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1081 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1082 { (exit 1); exit 1; }; }
1083 eval $ac_envvar=\
$ac_optarg
1084 export $ac_envvar ;;
1087 # FIXME: should be removed in autoconf 3.0.
1088 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1089 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1090 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1091 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1097 if test -n "$ac_prev"; then
1098 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1099 { echo "$as_me: error: missing argument to $ac_option" >&2
1100 { (exit 1); exit 1; }; }
1103 # Be sure to have absolute directory names.
1104 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1105 datadir sysconfdir sharedstatedir localstatedir includedir \
1106 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1107 libdir localedir mandir
1109 eval ac_val
=\$
$ac_var
1111 [\\/$
]* | ?
:[\\/]* ) continue;;
1112 NONE
| '' ) case $ac_var in *prefix
) continue;; esac;;
1114 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1115 { (exit 1); exit 1; }; }
1118 # There might be people who depend on the old broken behavior: `$host'
1119 # used to hold the argument of --host etc.
1120 # FIXME: To remove some day.
1123 target
=$target_alias
1125 # FIXME: To remove some day.
1126 if test "x$host_alias" != x
; then
1127 if test "x$build_alias" = x
; then
1128 cross_compiling
=maybe
1129 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1130 If a cross compiler is detected then cross compile mode will be used." >&2
1131 elif test "x$build_alias" != "x$host_alias"; then
1137 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1139 test "$silent" = yes && exec 6>/dev
/null
1142 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1143 ac_ls_di
=`ls -di .` &&
1144 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1145 { echo "$as_me: error: Working directory cannot be determined" >&2
1146 { (exit 1); exit 1; }; }
1147 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1148 { echo "$as_me: error: pwd does not report name of working directory" >&2
1149 { (exit 1); exit 1; }; }
1152 # Find the source files, if location was not specified.
1153 if test -z "$srcdir"; then
1154 ac_srcdir_defaulted
=yes
1155 # Try the directory containing this script, then the parent directory.
1156 ac_confdir
=`$as_dirname -- "$0" ||
1157 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1158 X"$0" : 'X\(//\)[^/]' \| \
1159 X"$0" : 'X\(//\)$' \| \
1160 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1162 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1180 if test ! -r "$srcdir/$ac_unique_file"; then
1184 ac_srcdir_defaulted
=no
1186 if test ! -r "$srcdir/$ac_unique_file"; then
1187 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1188 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1189 { (exit 1); exit 1; }; }
1191 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1193 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1194 { (exit 1); exit 1; }; }
1196 # When building in place, set srcdir=.
1197 if test "$ac_abs_confdir" = "$ac_pwd"; then
1200 # Remove unnecessary trailing slashes from srcdir.
1201 # Double slashes in file names in object file debugging info
1202 # mess up M-x gdb in Emacs.
1204 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1206 for ac_var
in $ac_precious_vars; do
1207 eval ac_env_
${ac_var}_set
=\
${${ac_var}+set}
1208 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1209 eval ac_cv_env_
${ac_var}_set
=\
${${ac_var}+set}
1210 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1214 # Report the --help message.
1216 if test "$ac_init_help" = "long"; then
1217 # Omit some internal or obsolete options to make the list less imposing.
1218 # This message is too long to be a string in the A/UX 3.1 sh.
1220 \`configure' configures launchd 1.0 to adapt to many kinds of systems.
1222 Usage: $0 [OPTION]... [VAR=VALUE]...
1224 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1225 VAR=VALUE. See below for descriptions of some of the useful variables.
1227 Defaults for the options are specified in brackets.
1230 -h, --help display this help and exit
1231 --help=short display options specific to this package
1232 --help=recursive display the short help of all the included packages
1233 -V, --version display version information and exit
1234 -q, --quiet, --silent do not print \`checking...' messages
1235 --cache-file=FILE cache test results in FILE [disabled]
1236 -C, --config-cache alias for \`--cache-file=config.cache'
1237 -n, --no-create do not create output files
1238 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1240 Installation directories:
1241 --prefix=PREFIX install architecture-independent files in PREFIX
1242 [$ac_default_prefix]
1243 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1246 By default, \`make install' will install all the files in
1247 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1248 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1249 for instance \`--prefix=\$HOME'.
1251 For better control, use the options below.
1253 Fine tuning of the installation directories:
1254 --bindir=DIR user executables [EPREFIX/bin]
1255 --sbindir=DIR system admin executables [EPREFIX/sbin]
1256 --libexecdir=DIR program executables [EPREFIX/libexec]
1257 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1258 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1259 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1260 --libdir=DIR object code libraries [EPREFIX/lib]
1261 --includedir=DIR C header files [PREFIX/include]
1262 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1263 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1264 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1265 --infodir=DIR info documentation [DATAROOTDIR/info]
1266 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1267 --mandir=DIR man documentation [DATAROOTDIR/man]
1268 --docdir=DIR documentation root [DATAROOTDIR/doc/launchd]
1269 --htmldir=DIR html documentation [DOCDIR]
1270 --dvidir=DIR dvi documentation [DOCDIR]
1271 --pdfdir=DIR pdf documentation [DOCDIR]
1272 --psdir=DIR ps documentation [DOCDIR]
1278 --program-prefix=PREFIX prepend PREFIX to installed program names
1279 --program-suffix=SUFFIX append SUFFIX to installed program names
1280 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1284 if test -n "$ac_init_help"; then
1285 case $ac_init_help in
1286 short
| recursive
) echo "Configuration of launchd 1.0:";;
1291 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1292 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1293 --disable-dependency-tracking speeds up one
-time build
1294 --enable-dependency-tracking do not reject slow dependency extractors
1296 Some influential environment variables
:
1297 CC C compiler
command
1298 CFLAGS C compiler flags
1299 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1300 nonstandard directory
<lib dir
>
1301 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1302 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1303 you have headers
in a nonstandard directory
<include dir
>
1306 Use these variables to override the choices made by
`configure' or to help
1307 it to find libraries and programs with nonstandard names/locations.
1309 Report bugs to <launchd-bug-reports@group.apple.com>.
1314 if test "$ac_init_help" = "recursive"; then
1315 # If there are subdirs, report their specific --help.
1316 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1317 test -d "$ac_dir" || continue
1321 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1323 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1324 # A ".." for each directory in $ac_dir_suffix.
1325 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1326 case $ac_top_builddir_sub in
1327 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1328 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1331 ac_abs_top_builddir=$ac_pwd
1332 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1333 # for backward compatibility:
1334 ac_top_builddir=$ac_top_build_prefix
1337 .) # We are building in place.
1339 ac_top_srcdir=$ac_top_builddir_sub
1340 ac_abs_top_srcdir=$ac_pwd ;;
1341 [\\/]* | ?:[\\/]* ) # Absolute name.
1342 ac_srcdir=$srcdir$ac_dir_suffix;
1343 ac_top_srcdir=$srcdir
1344 ac_abs_top_srcdir=$srcdir ;;
1346 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1347 ac_top_srcdir=$ac_top_build_prefix$srcdir
1348 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1350 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1352 cd "$ac_dir" || { ac_status=$?; continue; }
1353 # Check for guested configure.
1354 if test -f "$ac_srcdir/configure.gnu"; then
1356 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1357 elif test -f "$ac_srcdir/configure"; then
1359 $SHELL "$ac_srcdir/configure" --help=recursive
1361 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1363 cd "$ac_pwd" || { ac_status=$?; break; }
1367 test -n "$ac_init_help" && exit $ac_status
1368 if $ac_init_version; then
1370 launchd configure 1.0
1371 generated by GNU Autoconf 2.61
1373 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1374 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1375 This configure script is free software; the Free Software Foundation
1376 gives unlimited permission to copy, distribute and modify it.
1380 cat >config.log <<_ACEOF
1381 This file contains any messages produced by compilers while
1382 running configure, to aid debugging if configure makes a mistake.
1384 It was created by launchd $as_me 1.0, which was
1385 generated by GNU Autoconf 2.61. Invocation command line was
1397 hostname = `(hostname
|| uname
-n) 2>/dev
/null
| sed 1q
`
1398 uname -m = `(uname
-m) 2>/dev
/null
|| echo unknown
`
1399 uname -r = `(uname
-r) 2>/dev
/null
|| echo unknown
`
1400 uname -s = `(uname
-s) 2>/dev
/null
|| echo unknown
`
1401 uname -v = `(uname
-v) 2>/dev
/null
|| echo unknown
`
1403 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null
|| echo unknown
`
1404 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null
|| echo unknown
`
1406 /bin/arch = `(/bin
/arch
) 2>/dev
/null
|| echo unknown
`
1407 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null
|| echo unknown
`
1408 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null
|| echo unknown
`
1409 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null
|| echo unknown
`
1410 /bin/machine = `(/bin
/machine
) 2>/dev
/null
|| echo unknown
`
1411 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null
|| echo unknown
`
1412 /bin/universe = `(/bin
/universe
) 2>/dev
/null
|| echo unknown
`
1416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1420 test -z "$as_dir" && as_dir=.
1421 echo "PATH: $as_dir"
1437 # Keep a trace of the command line.
1438 # Strip out --no-create and --no-recursion so they do not pile up.
1439 # Strip out --silent because we don't want to record it for future runs.
1440 # Also quote any args containing shell meta-characters.
1441 # Make two passes to allow for proper duplicate-argument suppression.
1445 ac_must_keep_next=false
1451 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1452 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1453 | -silent | --silent | --silen | --sile | --sil)
1456 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1459 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1461 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1462 if test $ac_must_keep_next = true; then
1463 ac_must_keep_next=false # Got value, back to normal.
1466 *=* | --config-cache | -C | -disable-* | --disable-* \
1467 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1468 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1469 | -with-* | --with-* | -without-* | --without-* | --x)
1470 case "$ac_configure_args0 " in
1471 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1474 -* ) ac_must_keep_next=true ;;
1477 ac_configure_args="$ac_configure_args '$ac_arg'"
1482 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1483 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1485 # When interrupted or exit'd, cleanup temporary files, and complete
1486 # config.log. We remove comments because anyway the quotes in there
1487 # would cause problems or look ugly.
1488 # WARNING: Use '\'' to represent an apostrophe within the trap.
1489 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1490 trap 'exit_status=$?
1491 # Save into config.log some information that might help in debugging.
1496 ## ---------------- ##
1497 ## Cache variables. ##
1498 ## ---------------- ##
1501 # The following way of writing the cache mishandles newlines in values,
1503 for ac_var in `(set) 2>&1 | sed -n '\''s
/^\
([a
-zA-Z_][a
-zA-Z0-9_]*\
)=.
*/\
1/p
'\''`; do
1504 eval ac_val=\$$ac_var
1508 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1509 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1512 _ | IFS | as_nl) ;; #(
1513 *) $as_unset $ac_var ;;
1518 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1519 *${as_nl}ac_space=\ *)
1521 "s/'\''/'\''\\\\'\'''\''/g;
1522 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1525 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1533 ## ----------------- ##
1534 ## Output variables. ##
1535 ## ----------------- ##
1538 for ac_var in $ac_subst_vars
1540 eval ac_val=\$$ac_var
1542 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1544 echo "$ac_var='\''$ac_val'\''"
1548 if test -n "$ac_subst_files"; then
1550 ## ------------------- ##
1551 ## File substitutions. ##
1552 ## ------------------- ##
1555 for ac_var in $ac_subst_files
1557 eval ac_val=\$$ac_var
1559 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1561 echo "$ac_var='\''$ac_val'\''"
1566 if test -s confdefs.h; then
1576 test "$ac_signal" != 0 &&
1577 echo "$as_me: caught signal $ac_signal"
1578 echo "$as_me: exit $exit_status"
1580 rm -f core *.core core.conftest.* &&
1581 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1584 for ac_signal in 1 2 13 15; do
1585 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1589 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1590 rm -f -r conftest* confdefs.h
1592 # Predefined preprocessor variables.
1594 cat >>confdefs.h <<_ACEOF
1595 #define PACKAGE_NAME "$PACKAGE_NAME"
1599 cat >>confdefs.h <<_ACEOF
1600 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1604 cat >>confdefs.h <<_ACEOF
1605 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1609 cat >>confdefs.h <<_ACEOF
1610 #define PACKAGE_STRING "$PACKAGE_STRING"
1614 cat >>confdefs.h <<_ACEOF
1615 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1619 # Let the site file select an alternate cache file if it wants to.
1620 # Prefer explicitly selected file to automatically selected ones.
1621 if test -n "$CONFIG_SITE"; then
1622 set x "$CONFIG_SITE"
1623 elif test "x$prefix" != xNONE; then
1624 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1626 set x "$ac_default_prefix/share/config.site" \
1627 "$ac_default_prefix/etc/config.site"
1632 if test -r "$ac_site_file"; then
1633 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1634 echo "$as_me: loading site script $ac_site_file" >&6;}
1635 sed 's/^/| /' "$ac_site_file" >&5
1640 if test -r "$cache_file"; then
1641 # Some versions of bash will fail to source /dev/null (special
1642 # files actually), so we avoid doing that.
1643 if test -f "$cache_file"; then
1644 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1645 echo "$as_me: loading cache $cache_file" >&6;}
1647 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1648 *) . "./$cache_file";;
1652 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1653 echo "$as_me: creating cache $cache_file" >&6;}
1657 ac_header_list="$ac_header_list sys/time.h"
1658 ac_header_list="$ac_header_list unistd.h"
1659 ac_func_list="$ac_func_list alarm"
1660 # Check that the precious variables saved in the cache have kept the same
1662 ac_cache_corrupted=false
1663 for ac_var in $ac_precious_vars; do
1664 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1665 eval ac_new_set=\$ac_env_${ac_var}_set
1666 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1667 eval ac_new_val=\$ac_env_${ac_var}_value
1668 case $ac_old_set,$ac_new_set in
1670 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1671 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1672 ac_cache_corrupted=: ;;
1674 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1675 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1676 ac_cache_corrupted=: ;;
1679 if test "x$ac_old_val" != "x$ac_new_val"; then
1680 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1681 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1682 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1683 echo "$as_me: former value
: $ac_old_val" >&2;}
1684 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1685 echo "$as_me: current value
: $ac_new_val" >&2;}
1686 ac_cache_corrupted=:
1689 # Pass precious variables to config.status.
1690 if test "$ac_new_set" = set; then
1692 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1693 *) ac_arg=$ac_var=$ac_new_val ;;
1695 case " $ac_configure_args " in
1696 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1697 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1701 if $ac_cache_corrupted; then
1702 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1703 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1704 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1705 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1706 { (exit 1); exit 1; }; }
1734 ac_cpp='$CPP $CPPFLAGS'
1735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1741 am__api_version='1.10'
1744 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1745 if test -f "$ac_dir/install-sh"; then
1747 ac_install_sh="$ac_aux_dir/install-sh -c"
1749 elif test -f "$ac_dir/install.sh"; then
1751 ac_install_sh="$ac_aux_dir/install.sh -c"
1753 elif test -f "$ac_dir/shtool"; then
1755 ac_install_sh="$ac_aux_dir/shtool install -c"
1759 if test -z "$ac_aux_dir"; then
1760 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1761 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1762 { (exit 1); exit 1; }; }
1765 # These three variables are undocumented and unsupported,
1766 # and are intended to be withdrawn in a future Autoconf release.
1767 # They can cause serious problems if a builder's source tree is in a directory
1768 # whose full name contains unusual characters.
1769 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1770 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1771 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1774 # Find a good install program. We prefer a C program (faster),
1775 # so one script is as good as another. But avoid the broken or
1776 # incompatible versions:
1777 # SysV /etc/install, /usr/sbin/install
1778 # SunOS /usr/etc/install
1779 # IRIX /sbin/install
1781 # AmigaOS /C/install, which installs bootblocks on floppy discs
1782 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1783 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1784 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1785 # OS/2's system install, which has a completely different semantic
1786 # ./install, which can be erroneously created by make from ./install.sh.
1787 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1788 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1789 if test -z "$INSTALL"; then
1790 if test "${ac_cv_path_install+set}" = set; then
1791 echo $ECHO_N "(cached) $ECHO_C" >&6
1793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1797 test -z "$as_dir" && as_dir=.
1798 # Account for people who put trailing slashes in PATH elements.
1800 ./ | .// | /cC/* | \
1801 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1802 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1805 # OSF1 and SCO ODT 3.0 have their own names for install.
1806 # Don't use installbsd from OSF since it installs stuff as root
1808 for ac_prog in ginstall scoinst install; do
1809 for ac_exec_ext in '' $ac_executable_extensions; do
1810 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1811 if test $ac_prog = install &&
1812 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1813 # AIX install. It has an incompatible calling convention.
1815 elif test $ac_prog = install &&
1816 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1817 # program-specific install script used by HP pwplus--don't use.
1820 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1833 if test "${ac_cv_path_install+set}" = set; then
1834 INSTALL=$ac_cv_path_install
1836 # As a last resort, use the slow shell script. Don't cache a
1837 # value for INSTALL within a source directory, because that will
1838 # break other packages using the cache if that directory is
1839 # removed, or if the value is a relative name.
1840 INSTALL=$ac_install_sh
1843 { echo "$as_me:$LINENO: result: $INSTALL" >&5
1844 echo "${ECHO_T}$INSTALL" >&6; }
1846 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1847 # It thinks the first close brace ends the variable substitution.
1848 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1850 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1852 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1854 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1855 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1858 echo timestamp > conftest.file
1859 # Do `set' in a subshell so we don't clobber the current shell
's
1860 # arguments. Must try -L first in case configure is actually a
1861 # symlink; some systems play weird games with the mod time of symlinks
1862 # (eg FreeBSD returns the mod time of the symlink's containing
1865 set X
`ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1866 if test "$*" = "X"; then
1868 set X
`ls -t $srcdir/configure conftest.file`
1871 if test "$*" != "X $srcdir/configure conftest.file" \
1872 && test "$*" != "X conftest.file $srcdir/configure"; then
1874 # If neither matched, then we have a broken ls. This can happen
1875 # if, for instance, CONFIG_SHELL is bash and it inherits a
1876 # broken ls alias from the environment. This has actually
1877 # happened. Such a system could not be considered "sane".
1878 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1879 alias in your environment" >&5
1880 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1881 alias in your environment" >&2;}
1882 { (exit 1); exit 1; }; }
1885 test "$2" = conftest.
file
1891 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1892 Check your system clock" >&5
1893 echo "$as_me: error: newly created file is older than distributed files!
1894 Check your system clock" >&2;}
1895 { (exit 1); exit 1; }; }
1897 { echo "$as_me:$LINENO: result: yes" >&5
1898 echo "${ECHO_T}yes" >&6; }
1899 test "$program_prefix" != NONE
&&
1900 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
1901 # Use a double $ so make ignores it.
1902 test "$program_suffix" != NONE
&&
1903 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
1904 # Double any \ or $. echo might interpret backslashes.
1905 # By default was `s,x,x', remove it if useless.
1906 cat <<\_ACEOF
>conftest.
sed
1907 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1909 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1912 # expand $ac_aux_dir to an absolute path
1913 am_aux_dir
=`cd $ac_aux_dir && pwd`
1915 test x
"${MISSING+set}" = xset
|| MISSING
="\${SHELL} $am_aux_dir/missing"
1916 # Use eval to expand $SHELL
1917 if eval "$MISSING --run true"; then
1918 am_missing_run
="$MISSING --run "
1921 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1922 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1925 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
1926 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
1927 if test -z "$MKDIR_P"; then
1928 if test "${ac_cv_path_mkdir+set}" = set; then
1929 echo $ECHO_N "(cached) $ECHO_C" >&6
1931 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1932 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
1935 test -z "$as_dir" && as_dir
=.
1936 for ac_prog
in mkdir gmkdir
; do
1937 for ac_exec_ext
in '' $ac_executable_extensions; do
1938 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
1939 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
1940 'mkdir (GNU coreutils) '* | \
1941 'mkdir (coreutils) '* | \
1942 'mkdir (fileutils) '4.1*)
1943 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
1953 if test "${ac_cv_path_mkdir+set}" = set; then
1954 MKDIR_P
="$ac_cv_path_mkdir -p"
1956 # As a last resort, use the slow shell script. Don't cache a
1957 # value for MKDIR_P within a source directory, because that will
1958 # break other packages using the cache if that directory is
1959 # removed, or if the value is a relative name.
1960 test -d .
/--version && rmdir .
/--version
1961 MKDIR_P
="$ac_install_sh -d"
1964 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
1965 echo "${ECHO_T}$MKDIR_P" >&6; }
1969 [\\/$
]* | ?
:[\\/]*) ;;
1970 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
1973 for ac_prog
in gawk mawk nawk
awk
1975 # Extract the first word of "$ac_prog", so it can be a program name with args.
1976 set dummy
$ac_prog; ac_word
=$2
1977 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1979 if test "${ac_cv_prog_AWK+set}" = set; then
1980 echo $ECHO_N "(cached) $ECHO_C" >&6
1982 if test -n "$AWK"; then
1983 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1985 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1989 test -z "$as_dir" && as_dir
=.
1990 for ac_exec_ext
in '' $ac_executable_extensions; do
1991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1992 ac_cv_prog_AWK
="$ac_prog"
1993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2003 if test -n "$AWK"; then
2004 { echo "$as_me:$LINENO: result: $AWK" >&5
2005 echo "${ECHO_T}$AWK" >&6; }
2007 { echo "$as_me:$LINENO: result: no" >&5
2008 echo "${ECHO_T}no" >&6; }
2012 test -n "$AWK" && break
2015 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2016 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2017 set x
${MAKE-make}; ac_make
=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2018 if { as_var
=ac_cv_prog_make_
${ac_make}_set
; eval "test \"\${$as_var+set}\" = set"; }; then
2019 echo $ECHO_N "(cached) $ECHO_C" >&6
2021 cat >conftest.
make <<\_ACEOF
2024 @
echo '@@@%%%=$(MAKE)=@@@%%%'
2026 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2027 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2029 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
2031 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
2035 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
2036 { echo "$as_me:$LINENO: result: yes" >&5
2037 echo "${ECHO_T}yes" >&6; }
2040 { echo "$as_me:$LINENO: result: no" >&5
2041 echo "${ECHO_T}no" >&6; }
2042 SET_MAKE
="MAKE=${MAKE-make}"
2045 rm -rf .tst
2>/dev
/null
2046 mkdir .tst
2>/dev
/null
2047 if test -d .tst
; then
2052 rmdir .tst
2>/dev
/null
2054 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2055 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2056 # is not polluted with repeated "-I."
2057 am__isrc
=' -I$(srcdir)'
2058 # test to see if srcdir already configured
2059 if test -f $srcdir/config.status
; then
2060 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2061 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2062 { (exit 1); exit 1; }; }
2066 # test whether we have cygpath
2067 if test -z "$CYGPATH_W"; then
2068 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
2069 CYGPATH_W
='cygpath -w'
2076 # Define the identity of the package.
2081 cat >>confdefs.h
<<_ACEOF
2082 #define PACKAGE "$PACKAGE"
2086 cat >>confdefs.h
<<_ACEOF
2087 #define VERSION "$VERSION"
2090 # Some tools Automake needs.
2092 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2095 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2098 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2101 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
2104 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
2106 install_sh
=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2108 # Installed binaries are usually stripped using `strip' when the user
2109 # run `make install-strip'. However `strip' might not be the right
2110 # tool to use in cross-compilation environments, therefore Automake
2111 # will honor the `STRIP' environment variable to overrule this program.
2112 if test "$cross_compiling" != no
; then
2113 if test -n "$ac_tool_prefix"; then
2114 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2115 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2116 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2118 if test "${ac_cv_prog_STRIP+set}" = set; then
2119 echo $ECHO_N "(cached) $ECHO_C" >&6
2121 if test -n "$STRIP"; then
2122 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2124 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2128 test -z "$as_dir" && as_dir
=.
2129 for ac_exec_ext
in '' $ac_executable_extensions; do
2130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2131 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2141 STRIP
=$ac_cv_prog_STRIP
2142 if test -n "$STRIP"; then
2143 { echo "$as_me:$LINENO: result: $STRIP" >&5
2144 echo "${ECHO_T}$STRIP" >&6; }
2146 { echo "$as_me:$LINENO: result: no" >&5
2147 echo "${ECHO_T}no" >&6; }
2152 if test -z "$ac_cv_prog_STRIP"; then
2154 # Extract the first word of "strip", so it can be a program name with args.
2155 set dummy strip
; ac_word
=$2
2156 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2158 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2159 echo $ECHO_N "(cached) $ECHO_C" >&6
2161 if test -n "$ac_ct_STRIP"; then
2162 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2164 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2168 test -z "$as_dir" && as_dir
=.
2169 for ac_exec_ext
in '' $ac_executable_extensions; do
2170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2171 ac_cv_prog_ac_ct_STRIP
="strip"
2172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2181 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2182 if test -n "$ac_ct_STRIP"; then
2183 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2184 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2186 { echo "$as_me:$LINENO: result: no" >&5
2187 echo "${ECHO_T}no" >&6; }
2190 if test "x$ac_ct_STRIP" = x
; then
2193 case $cross_compiling:$ac_tool_warned in
2195 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2196 whose name does not start with the host triplet. If you think this
2197 configuration is useful to you, please write to autoconf@gnu.org." >&5
2198 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2199 whose name does not start with the host triplet. If you think this
2200 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2201 ac_tool_warned
=yes ;;
2206 STRIP
="$ac_cv_prog_STRIP"
2210 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
2212 # We need awk for the "check" target. The system "awk" is bad on
2214 # Always define AMTAR for backward compatibility.
2216 AMTAR
=${AMTAR-"${am_missing_run}tar"}
2218 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
2224 ac_config_headers
="$ac_config_headers src/config.h"
2227 # Checks for programs.
2229 ac_cpp
='$CPP $CPPFLAGS'
2230 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2231 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2232 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2233 if test -n "$ac_tool_prefix"; then
2234 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2235 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2236 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2238 if test "${ac_cv_prog_CC+set}" = set; then
2239 echo $ECHO_N "(cached) $ECHO_C" >&6
2241 if test -n "$CC"; then
2242 ac_cv_prog_CC
="$CC" # Let the user override the test.
2244 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2248 test -z "$as_dir" && as_dir
=.
2249 for ac_exec_ext
in '' $ac_executable_extensions; do
2250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2251 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2262 if test -n "$CC"; then
2263 { echo "$as_me:$LINENO: result: $CC" >&5
2264 echo "${ECHO_T}$CC" >&6; }
2266 { echo "$as_me:$LINENO: result: no" >&5
2267 echo "${ECHO_T}no" >&6; }
2272 if test -z "$ac_cv_prog_CC"; then
2274 # Extract the first word of "gcc", so it can be a program name with args.
2275 set dummy gcc
; ac_word
=$2
2276 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2278 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2279 echo $ECHO_N "(cached) $ECHO_C" >&6
2281 if test -n "$ac_ct_CC"; then
2282 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2284 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2288 test -z "$as_dir" && as_dir
=.
2289 for ac_exec_ext
in '' $ac_executable_extensions; do
2290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2291 ac_cv_prog_ac_ct_CC
="gcc"
2292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2301 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2302 if test -n "$ac_ct_CC"; then
2303 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2304 echo "${ECHO_T}$ac_ct_CC" >&6; }
2306 { echo "$as_me:$LINENO: result: no" >&5
2307 echo "${ECHO_T}no" >&6; }
2310 if test "x$ac_ct_CC" = x
; then
2313 case $cross_compiling:$ac_tool_warned in
2315 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2316 whose name does not start with the host triplet. If you think this
2317 configuration is useful to you, please write to autoconf@gnu.org." >&5
2318 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2319 whose name does not start with the host triplet. If you think this
2320 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2321 ac_tool_warned
=yes ;;
2329 if test -z "$CC"; then
2330 if test -n "$ac_tool_prefix"; then
2331 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2332 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2333 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2335 if test "${ac_cv_prog_CC+set}" = set; then
2336 echo $ECHO_N "(cached) $ECHO_C" >&6
2338 if test -n "$CC"; then
2339 ac_cv_prog_CC
="$CC" # Let the user override the test.
2341 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2345 test -z "$as_dir" && as_dir
=.
2346 for ac_exec_ext
in '' $ac_executable_extensions; do
2347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2348 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2359 if test -n "$CC"; then
2360 { echo "$as_me:$LINENO: result: $CC" >&5
2361 echo "${ECHO_T}$CC" >&6; }
2363 { echo "$as_me:$LINENO: result: no" >&5
2364 echo "${ECHO_T}no" >&6; }
2370 if test -z "$CC"; then
2371 # Extract the first word of "cc", so it can be a program name with args.
2372 set dummy cc
; ac_word
=$2
2373 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2375 if test "${ac_cv_prog_CC+set}" = set; then
2376 echo $ECHO_N "(cached) $ECHO_C" >&6
2378 if test -n "$CC"; then
2379 ac_cv_prog_CC
="$CC" # Let the user override the test.
2382 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2386 test -z "$as_dir" && as_dir
=.
2387 for ac_exec_ext
in '' $ac_executable_extensions; do
2388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2389 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2390 ac_prog_rejected
=yes
2394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2401 if test $ac_prog_rejected = yes; then
2402 # We found a bogon in the path, so make sure we never use it.
2403 set dummy
$ac_cv_prog_CC
2405 if test $# != 0; then
2406 # We chose a different compiler from the bogus one.
2407 # However, it has the same basename, so the bogon will be chosen
2408 # first if we set CC to just the basename; use the full file name.
2410 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2416 if test -n "$CC"; then
2417 { echo "$as_me:$LINENO: result: $CC" >&5
2418 echo "${ECHO_T}$CC" >&6; }
2420 { echo "$as_me:$LINENO: result: no" >&5
2421 echo "${ECHO_T}no" >&6; }
2426 if test -z "$CC"; then
2427 if test -n "$ac_tool_prefix"; then
2428 for ac_prog
in cl.exe
2430 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2431 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2432 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2434 if test "${ac_cv_prog_CC+set}" = set; then
2435 echo $ECHO_N "(cached) $ECHO_C" >&6
2437 if test -n "$CC"; then
2438 ac_cv_prog_CC
="$CC" # Let the user override the test.
2440 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2444 test -z "$as_dir" && as_dir
=.
2445 for ac_exec_ext
in '' $ac_executable_extensions; do
2446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2447 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2458 if test -n "$CC"; then
2459 { echo "$as_me:$LINENO: result: $CC" >&5
2460 echo "${ECHO_T}$CC" >&6; }
2462 { echo "$as_me:$LINENO: result: no" >&5
2463 echo "${ECHO_T}no" >&6; }
2467 test -n "$CC" && break
2470 if test -z "$CC"; then
2472 for ac_prog
in cl.exe
2474 # Extract the first word of "$ac_prog", so it can be a program name with args.
2475 set dummy
$ac_prog; ac_word
=$2
2476 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2478 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2479 echo $ECHO_N "(cached) $ECHO_C" >&6
2481 if test -n "$ac_ct_CC"; then
2482 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2484 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2488 test -z "$as_dir" && as_dir
=.
2489 for ac_exec_ext
in '' $ac_executable_extensions; do
2490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2491 ac_cv_prog_ac_ct_CC
="$ac_prog"
2492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2501 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2502 if test -n "$ac_ct_CC"; then
2503 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2504 echo "${ECHO_T}$ac_ct_CC" >&6; }
2506 { echo "$as_me:$LINENO: result: no" >&5
2507 echo "${ECHO_T}no" >&6; }
2511 test -n "$ac_ct_CC" && break
2514 if test "x$ac_ct_CC" = x
; then
2517 case $cross_compiling:$ac_tool_warned in
2519 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2520 whose name does not start with the host triplet. If you think this
2521 configuration is useful to you, please write to autoconf@gnu.org." >&5
2522 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2523 whose name does not start with the host triplet. If you think this
2524 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2525 ac_tool_warned
=yes ;;
2534 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2535 See \`config.log' for more details." >&5
2536 echo "$as_me: error: no acceptable C compiler found in \$PATH
2537 See \`config.log' for more details." >&2;}
2538 { (exit 1); exit 1; }; }
2540 # Provide some information about the compiler.
2541 echo "$as_me:$LINENO: checking for C compiler version" >&5
2542 ac_compiler
=`set X $ac_compile; echo $2`
2543 { (ac_try
="$ac_compiler --version >&5"
2545 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
2546 *) ac_try_echo=$ac_try;;
2548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2549 (eval "$ac_compiler --version >&5") 2>&5
2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); }
2553 { (ac_try="$ac_compiler -v >&5"
2555 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
2556 *) ac_try_echo
=$ac_try;;
2558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2559 (eval "$ac_compiler -v >&5") 2>&5
2561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562 (exit $ac_status); }
2563 { (ac_try
="$ac_compiler -V >&5"
2565 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
2566 *) ac_try_echo=$ac_try;;
2568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2569 (eval "$ac_compiler -V >&5") 2>&5
2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); }
2574 cat >conftest.$ac_ext <<_ACEOF
2577 cat confdefs.h >>conftest.$ac_ext
2578 cat >>conftest.$ac_ext <<_ACEOF
2579 /* end confdefs.h. */
2589 ac_clean_files_save=$ac_clean_files
2590 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2591 # Try to create an executable without -o first, disregard a.out.
2592 # It will help us diagnose broken compilers, and finding out an intuition
2594 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2595 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2596 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2598 # List of possible output files, starting from the most likely.
2599 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
2600 # only as a last resort. b.out is created by i960 compilers.
2601 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
2603 # The IRIX 6 linker writes into existing files which may not be
2604 # executable, retaining their permissions. Remove them first so a
2605 # subsequent execution test works.
2607 for ac_file in $ac_files
2610 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2611 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2616 if { (ac_try="$ac_link_default"
2618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2619 *) ac_try_echo=$ac_try;;
2621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2622 (eval "$ac_link_default") 2>&5
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); }; then
2626 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2627 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2628 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2629 # so that the user can short-circuit this test for compilers unknown to
2631 for ac_file
in $ac_files ''
2633 test -f "$ac_file" || continue
2635 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
| *.bb
| *.bbg
| *.map
| *.inf
| *.o
| *.obj
)
2638 # We found the default executable, but exeext='' is most
2642 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2644 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2646 # We set ac_cv_exeext here because the later test for it is not
2647 # safe: cross compilers may not add the suffix if given an `-o'
2648 # argument, so we may need to know it at that point already.
2649 # Even if this section looks crufty: it has the advantage of
2656 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2662 { echo "$as_me:$LINENO: result: $ac_file" >&5
2663 echo "${ECHO_T}$ac_file" >&6; }
2664 if test -z "$ac_file"; then
2665 echo "$as_me: failed program was:" >&5
2666 sed 's/^/| /' conftest.
$ac_ext >&5
2668 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2669 See \`config.log' for more details." >&5
2670 echo "$as_me: error: C compiler cannot create executables
2671 See \`config.log' for more details." >&2;}
2672 { (exit 77); exit 77; }; }
2675 ac_exeext
=$ac_cv_exeext
2677 # Check that the compiler produces executables we can run. If not, either
2678 # the compiler is broken, or we cross compile.
2679 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2680 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2681 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2682 # If not cross compiling, check that we can run a simple program.
2683 if test "$cross_compiling" != yes; then
2684 if { ac_try
='./$ac_file'
2685 { (case "(($ac_try" in
2686 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
2687 *) ac_try_echo=$ac_try;;
2689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2690 (eval "$ac_try") 2>&5
2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 (exit $ac_status); }; }; then
2696 if test "$cross_compiling" = maybe; then
2699 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2700 If you meant to cross compile, use \`--host'.
2701 See \`config.log' for more details.
" >&5
2702 echo "$as_me: error
: cannot run C compiled programs.
2703 If you meant to cross compile
, use \
`--host'.
2704 See \`config.log
' for more details." >&2;}
2705 { (exit 1); exit 1; }; }
2709 { echo "$as_me:$LINENO: result: yes" >&5
2710 echo "${ECHO_T}yes" >&6; }
2712 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2713 ac_clean_files=$ac_clean_files_save
2714 # Check that the compiler produces executables we can run. If not, either
2715 # the compiler is broken, or we cross compile.
2716 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2717 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2718 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2719 echo "${ECHO_T}$cross_compiling" >&6; }
2721 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2722 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2723 if { (ac_try="$ac_link"
2725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2726 *) ac_try_echo=$ac_try;;
2728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2729 (eval "$ac_link") 2>&5
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); }; then
2733 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2734 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2735 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2737 for ac_file
in conftest.exe conftest conftest.
*; do
2738 test -f "$ac_file" || continue
2740 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
| *.bb
| *.bbg
| *.map
| *.inf
| *.o
| *.obj
) ;;
2741 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2747 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2748 See \`config.log' for more details." >&5
2749 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2750 See \`config.log' for more details." >&2;}
2751 { (exit 1); exit 1; }; }
2754 rm -f conftest
$ac_cv_exeext
2755 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2756 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2758 rm -f conftest.
$ac_ext
2759 EXEEXT
=$ac_cv_exeext
2761 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2762 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2763 if test "${ac_cv_objext+set}" = set; then
2764 echo $ECHO_N "(cached) $ECHO_C" >&6
2766 cat >conftest.
$ac_ext <<_ACEOF
2769 cat confdefs.h
>>conftest.
$ac_ext
2770 cat >>conftest.
$ac_ext <<_ACEOF
2771 /* end confdefs.h. */
2781 rm -f conftest.o conftest.obj
2782 if { (ac_try
="$ac_compile"
2784 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
2785 *) ac_try_echo=$ac_try;;
2787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2788 (eval "$ac_compile") 2>&5
2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791 (exit $ac_status); }; then
2792 for ac_file in conftest.o conftest.obj conftest.*; do
2793 test -f "$ac_file" || continue;
2795 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2796 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2801 echo "$as_me: failed program was:" >&5
2802 sed 's/^/| /' conftest.$ac_ext >&5
2804 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2805 See \`config.log
' for more details." >&5
2806 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2807 See \`config.log' for more details.
" >&2;}
2808 { (exit 1); exit 1; }; }
2811 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2813 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
2814 echo "${ECHO_T}$ac_cv_objext" >&6; }
2815 OBJEXT=$ac_cv_objext
2817 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
2818 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
2819 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2820 echo $ECHO_N "(cached
) $ECHO_C" >&6
2822 cat >conftest.$ac_ext <<_ACEOF
2825 cat confdefs.h >>conftest.$ac_ext
2826 cat >>conftest.$ac_ext <<_ACEOF
2827 /* end confdefs.h. */
2840 rm -f conftest.$ac_objext
2841 if { (ac_try="$ac_compile"
2843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2844 *) ac_try_echo=$ac_try;;
2846 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2847 (eval "$ac_compile") 2>conftest.er1
2849 grep -v '^ *+' conftest.er1 >conftest.err
2851 cat conftest.err >&5
2852 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2853 (exit $ac_status); } && {
2854 test -z "$ac_c_werror_flag" ||
2855 test ! -s conftest.err
2856 } && test -s conftest.$ac_objext; then
2859 echo "$as_me: failed program was
:" >&5
2860 sed 's/^/| /' conftest.$ac_ext >&5
2865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2866 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2869 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
2870 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2871 GCC=`test $ac_compiler_gnu = yes && echo yes`
2872 ac_test_CFLAGS=${CFLAGS+set}
2873 ac_save_CFLAGS=$CFLAGS
2874 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
2875 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
2876 if test "${ac_cv_prog_cc_g+set}" = set; then
2877 echo $ECHO_N "(cached
) $ECHO_C" >&6
2879 ac_save_c_werror_flag=$ac_c_werror_flag
2880 ac_c_werror_flag=yes
2883 cat >conftest.$ac_ext <<_ACEOF
2886 cat confdefs.h >>conftest.$ac_ext
2887 cat >>conftest.$ac_ext <<_ACEOF
2888 /* end confdefs.h. */
2898 rm -f conftest.$ac_objext
2899 if { (ac_try="$ac_compile"
2901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2902 *) ac_try_echo=$ac_try;;
2904 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2905 (eval "$ac_compile") 2>conftest.er1
2907 grep -v '^ *+' conftest.er1 >conftest.err
2909 cat conftest.err >&5
2910 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2911 (exit $ac_status); } && {
2912 test -z "$ac_c_werror_flag" ||
2913 test ! -s conftest.err
2914 } && test -s conftest.$ac_objext; then
2917 echo "$as_me: failed program was
:" >&5
2918 sed 's/^/| /' conftest.$ac_ext >&5
2921 cat >conftest.$ac_ext <<_ACEOF
2924 cat confdefs.h >>conftest.$ac_ext
2925 cat >>conftest.$ac_ext <<_ACEOF
2926 /* end confdefs.h. */
2936 rm -f conftest.$ac_objext
2937 if { (ac_try="$ac_compile"
2939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940 *) ac_try_echo=$ac_try;;
2942 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2943 (eval "$ac_compile") 2>conftest.er1
2945 grep -v '^ *+' conftest.er1 >conftest.err
2947 cat conftest.err >&5
2948 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2949 (exit $ac_status); } && {
2950 test -z "$ac_c_werror_flag" ||
2951 test ! -s conftest.err
2952 } && test -s conftest.$ac_objext; then
2955 echo "$as_me: failed program was
:" >&5
2956 sed 's/^/| /' conftest.$ac_ext >&5
2958 ac_c_werror_flag=$ac_save_c_werror_flag
2960 cat >conftest.$ac_ext <<_ACEOF
2963 cat confdefs.h >>conftest.$ac_ext
2964 cat >>conftest.$ac_ext <<_ACEOF
2965 /* end confdefs.h. */
2975 rm -f conftest.$ac_objext
2976 if { (ac_try="$ac_compile"
2978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2979 *) ac_try_echo=$ac_try;;
2981 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2982 (eval "$ac_compile") 2>conftest.er1
2984 grep -v '^ *+' conftest.er1 >conftest.err
2986 cat conftest.err >&5
2987 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2988 (exit $ac_status); } && {
2989 test -z "$ac_c_werror_flag" ||
2990 test ! -s conftest.err
2991 } && test -s conftest.$ac_objext; then
2994 echo "$as_me: failed program was
:" >&5
2995 sed 's/^/| /' conftest.$ac_ext >&5
3000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3007 ac_c_werror_flag=$ac_save_c_werror_flag
3009 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3010 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3011 if test "$ac_test_CFLAGS" = set; then
3012 CFLAGS=$ac_save_CFLAGS
3013 elif test $ac_cv_prog_cc_g = yes; then
3014 if test "$GCC" = yes; then
3020 if test "$GCC" = yes; then
3026 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3027 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
3028 if test "${ac_cv_prog_cc_c89+set}" = set; then
3029 echo $ECHO_N "(cached
) $ECHO_C" >&6
3031 ac_cv_prog_cc_c89=no
3033 cat >conftest.$ac_ext <<_ACEOF
3036 cat confdefs.h >>conftest.$ac_ext
3037 cat >>conftest.$ac_ext <<_ACEOF
3038 /* end confdefs.h. */
3041 #include <sys/types.h>
3042 #include <sys/stat.h>
3043 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3044 struct buf { int x; };
3045 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3046 static char *e (p, i)
3052 static char *f (char * (*g) (char **, int), char **p, ...)
3057 s = g (p, va_arg (v,int));
3062 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3063 function prototypes and stuff, but not '\xHH' hex character constants.
3064 These don't provoke an error unfortunately, instead are silently treated
3065 as 'x'. The following induces an error, until -std is added to get
3066 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3067 array size at least. It's necessary to write '\x00'==0 to get something
3068 that's true only with -std. */
3069 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3071 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3072 inside strings and character constants. */
3074 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3076 int test (int i, double x);
3077 struct s1 {int (*f) (int a);};
3078 struct s2 {int (*f) (double a);};
3079 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3085 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3090 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3091 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3093 CC="$ac_save_CC $ac_arg"
3094 rm -f conftest.$ac_objext
3095 if { (ac_try="$ac_compile"
3097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098 *) ac_try_echo=$ac_try;;
3100 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3101 (eval "$ac_compile") 2>conftest.er1
3103 grep -v '^ *+' conftest.er1 >conftest.err
3105 cat conftest.err >&5
3106 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3107 (exit $ac_status); } && {
3108 test -z "$ac_c_werror_flag" ||
3109 test ! -s conftest.err
3110 } && test -s conftest.$ac_objext; then
3111 ac_cv_prog_cc_c89=$ac_arg
3113 echo "$as_me: failed program was
:" >&5
3114 sed 's/^/| /' conftest.$ac_ext >&5
3119 rm -f core conftest.err conftest.$ac_objext
3120 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3122 rm -f conftest.$ac_ext
3127 case "x
$ac_cv_prog_cc_c89" in
3129 { echo "$as_me:$LINENO: result
: none needed
" >&5
3130 echo "${ECHO_T}none needed
" >&6; } ;;
3132 { echo "$as_me:$LINENO: result
: unsupported
" >&5
3133 echo "${ECHO_T}unsupported
" >&6; } ;;
3135 CC="$CC $ac_cv_prog_cc_c89"
3136 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3137 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3142 ac_cpp='$CPP $CPPFLAGS'
3143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3146 DEPDIR="${am__leading_dot}deps
"
3148 ac_config_commands="$ac_config_commands depfiles
"
3151 am_make=${MAKE-make}
3152 cat > confinc << 'END'
3157 # If we don't find an include directive, just comment out the code.
3158 { echo "$as_me:$LINENO: checking
for style of include used by
$am_make" >&5
3159 echo $ECHO_N "checking
for style of include used by
$am_make...
$ECHO_C" >&6; }
3163 # First try GNU make style include.
3164 echo "include confinc" > confmf
3165 # We grep out `Entering directory' and `Leaving directory'
3166 # messages which can occur if `w' ends up in MAKEFLAGS.
3167 # In particular we don't look at `^make:' because GNU make might
3168 # be invoked under some other name (usually "gmake"), in which
3169 # case it prints its new name instead of `make'.
3170 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3175 # Now try BSD make style include.
3176 if test "$am__include" = "#"; then
3177 echo '.include "confinc"' > confmf
3178 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3179 am__include
=.include
3186 { echo "$as_me:$LINENO: result: $_am_result" >&5
3187 echo "${ECHO_T}$_am_result" >&6; }
3188 rm -f confinc confmf
3190 # Check whether --enable-dependency-tracking was given.
3191 if test "${enable_dependency_tracking+set}" = set; then
3192 enableval
=$enable_dependency_tracking;
3195 if test "x$enable_dependency_tracking" != xno
; then
3196 am_depcomp
="$ac_aux_dir/depcomp"
3199 if test "x$enable_dependency_tracking" != xno; then
3209 depcc
="$CC" am_compiler_list
=
3211 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3212 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3213 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3214 echo $ECHO_N "(cached) $ECHO_C" >&6
3216 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3217 # We make a subdir and do the tests there. Otherwise we can end up
3218 # making bogus files that we don't know about and never remove. For
3219 # instance it was reported that on HP-UX the gcc test will end up
3220 # making a dummy file named `D' -- because `-MD' means `put the output
3223 # Copy depcomp to subdir because otherwise we won't find it if we're
3224 # using a relative directory.
3225 cp "$am_depcomp" conftest.dir
3227 # We will build objects and dependencies in a subdirectory because
3228 # it helps to detect inapplicable dependency modes. For instance
3229 # both Tru64's cc and ICC support -MD to output dependencies as a
3230 # side effect of compilation, but ICC will put the dependencies in
3231 # the current directory while Tru64 will put them in the object
3235 am_cv_CC_dependencies_compiler_type
=none
3236 if test "$am_compiler_list" = ""; then
3237 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3239 for depmode
in $am_compiler_list; do
3240 # Setup a source with many dependencies, because some compilers
3241 # like to wrap large dependency lists on column 80 (with \), and
3242 # we should not choose a depcomp mode which is confused by this.
3244 # We need to recreate these files for each test, as the compiler may
3245 # overwrite some of them when testing with obscure command lines.
3246 # This happens at least with the AIX C compiler.
3248 for i
in 1 2 3 4 5 6; do
3249 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
3250 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3251 # Solaris 8's {/usr,}/bin/sh.
3252 touch sub
/conftst
$i.h
3254 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3258 # after this tag, mechanisms are not by side-effect, so they'll
3259 # only be used when explicitly requested
3260 if test "x$enable_dependency_tracking" = xyes
; then
3268 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3269 # mode. It turns out that the SunPro C++ compiler does not properly
3270 # handle `-M -o', and we need to detect this.
3271 if depmode
=$depmode \
3272 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
3273 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
3274 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
3275 >/dev
/null
2>conftest.err
&&
3276 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3277 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3278 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
3279 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
3280 # icc doesn't choke on unknown options, it will just issue warnings
3281 # or remarks (even with -Werror). So we grep stderr for any message
3282 # that says an option was ignored or not supported.
3283 # When given -MP, icc 7.0 and 7.1 complain thusly:
3284 # icc: Command line warning: ignoring option '-M'; no argument required
3285 # The diagnosis changed in icc 8.0:
3286 # icc: Command line remark: option '-MP' not supported
3287 if (grep 'ignoring option' conftest.err
||
3288 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
3289 am_cv_CC_dependencies_compiler_type
=$depmode
3298 am_cv_CC_dependencies_compiler_type
=none
3302 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3303 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3304 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
3307 test "x$enable_dependency_tracking" != xno \
3308 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
3310 am__fastdepCC_FALSE
='#'
3312 am__fastdepCC_TRUE
='#'
3313 am__fastdepCC_FALSE
=
3317 if test -n "$ac_tool_prefix"; then
3318 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3319 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3320 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3322 if test "${ac_cv_prog_RANLIB+set}" = set; then
3323 echo $ECHO_N "(cached) $ECHO_C" >&6
3325 if test -n "$RANLIB"; then
3326 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3328 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3332 test -z "$as_dir" && as_dir
=.
3333 for ac_exec_ext
in '' $ac_executable_extensions; do
3334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3335 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3345 RANLIB
=$ac_cv_prog_RANLIB
3346 if test -n "$RANLIB"; then
3347 { echo "$as_me:$LINENO: result: $RANLIB" >&5
3348 echo "${ECHO_T}$RANLIB" >&6; }
3350 { echo "$as_me:$LINENO: result: no" >&5
3351 echo "${ECHO_T}no" >&6; }
3356 if test -z "$ac_cv_prog_RANLIB"; then
3357 ac_ct_RANLIB
=$RANLIB
3358 # Extract the first word of "ranlib", so it can be a program name with args.
3359 set dummy ranlib
; ac_word
=$2
3360 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3362 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3363 echo $ECHO_N "(cached) $ECHO_C" >&6
3365 if test -n "$ac_ct_RANLIB"; then
3366 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3368 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3372 test -z "$as_dir" && as_dir
=.
3373 for ac_exec_ext
in '' $ac_executable_extensions; do
3374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3375 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3385 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3386 if test -n "$ac_ct_RANLIB"; then
3387 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3388 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3390 { echo "$as_me:$LINENO: result: no" >&5
3391 echo "${ECHO_T}no" >&6; }
3394 if test "x$ac_ct_RANLIB" = x
; then
3397 case $cross_compiling:$ac_tool_warned in
3399 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3400 whose name does not start with the host triplet. If you think this
3401 configuration is useful to you, please write to autoconf@gnu.org." >&5
3402 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3403 whose name does not start with the host triplet. If you think this
3404 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3405 ac_tool_warned
=yes ;;
3407 RANLIB
=$ac_ct_RANLIB
3410 RANLIB
="$ac_cv_prog_RANLIB"
3413 if test "x$CC" != xcc
; then
3414 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3415 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3417 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3418 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3420 set dummy
$CC; ac_cc
=`echo $2 |
3421 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3422 if { as_var
=ac_cv_prog_cc_
${ac_cc}_c_o
; eval "test \"\${$as_var+set}\" = set"; }; then
3423 echo $ECHO_N "(cached) $ECHO_C" >&6
3425 cat >conftest.
$ac_ext <<_ACEOF
3428 cat confdefs.h
>>conftest.
$ac_ext
3429 cat >>conftest.
$ac_ext <<_ACEOF
3430 /* end confdefs.h. */
3440 # Make sure it works both with $CC and with simple cc.
3441 # We do the test twice because some compilers refuse to overwrite an
3442 # existing .o file with -o, though they will create one.
3443 ac_try
='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3445 if { (case "(($ac_try" in
3446 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
3447 *) ac_try_echo=$ac_try;;
3449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3450 (eval "$ac_try") 2>&5
3452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453 (exit $ac_status); } &&
3454 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3455 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
3456 *) ac_try_echo
=$ac_try;;
3458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3459 (eval "$ac_try") 2>&5
3461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462 (exit $ac_status); };
3464 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
3465 if test "x$CC" != xcc
; then
3466 # Test first that cc exists at all.
3467 if { ac_try
='cc -c conftest.$ac_ext >&5'
3468 { (case "(($ac_try" in
3469 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
3470 *) ac_try_echo=$ac_try;;
3472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3473 (eval "$ac_try") 2>&5
3475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476 (exit $ac_status); }; }; then
3477 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3479 if { (case "(($ac_try" in
3480 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
3481 *) ac_try_echo
=$ac_try;;
3483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3484 (eval "$ac_try") 2>&5
3486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487 (exit $ac_status); } &&
3488 test -f conftest2.
$ac_objext && { (case "(($ac_try" in
3489 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
3490 *) ac_try_echo=$ac_try;;
3492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3493 (eval "$ac_try") 2>&5
3495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496 (exit $ac_status); };
3501 # cc exists but doesn't like -o.
3502 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3507 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3509 rm -f core conftest*
3512 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3513 { echo "$as_me:$LINENO: result: yes" >&5
3514 echo "${ECHO_T}yes" >&6; }
3516 { echo "$as_me:$LINENO: result: no" >&5
3517 echo "${ECHO_T}no" >&6; }
3519 cat >>confdefs.h <<\_ACEOF
3520 #define NO_MINUS_C_MINUS_O 1
3525 # FIXME: we rely on the cache variable name because
3526 # there is no other way.
3528 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3529 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o
`\" != yes"; then
3530 # Losing compiler, so override with the script.
3531 # FIXME: It is wrong to rewrite CC.
3532 # But if we don't then we get into trouble of one sort or another.
3533 # A longer-term fix would be to have automake use am__CC in this case,
3534 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3535 CC="$am_aux_dir/compile $CC"
3540 # Checks for header files.
3548 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3549 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3550 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3551 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
3552 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3553 echo $ECHO_N "(cached) $ECHO_C" >&6
3555 cat >conftest.$ac_ext <<_ACEOF
3558 cat confdefs.h >>conftest.$ac_ext
3559 cat >>conftest.$ac_ext <<_ACEOF
3560 /* end confdefs.h. */
3561 #include <sys/types.h>
3573 rm -f conftest.$ac_objext
3574 if { (ac_try="$ac_compile"
3576 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
3577 *) ac_try_echo
=$ac_try;;
3579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3580 (eval "$ac_compile") 2>conftest.er1
3582 grep -v '^ *+' conftest.er1
>conftest.err
3584 cat conftest.err
>&5
3585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586 (exit $ac_status); } && {
3587 test -z "$ac_c_werror_flag" ||
3588 test ! -s conftest.err
3589 } && test -s conftest.
$ac_objext; then
3590 eval "$as_ac_Header=yes"
3592 echo "$as_me: failed program was:" >&5
3593 sed 's/^/| /' conftest.
$ac_ext >&5
3595 eval "$as_ac_Header=no"
3598 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3600 ac_res
=`eval echo '${'$as_ac_Header'}'`
3601 { echo "$as_me:$LINENO: result: $ac_res" >&5
3602 echo "${ECHO_T}$ac_res" >&6; }
3603 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3604 cat >>confdefs.h
<<_ACEOF
3605 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
3608 ac_header_dirent
=$ac_hdr; break
3612 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3613 if test $ac_header_dirent = dirent.h
; then
3614 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
3615 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
3616 if test "${ac_cv_search_opendir+set}" = set; then
3617 echo $ECHO_N "(cached) $ECHO_C" >&6
3619 ac_func_search_save_LIBS
=$LIBS
3620 cat >conftest.
$ac_ext <<_ACEOF
3623 cat confdefs.h
>>conftest.
$ac_ext
3624 cat >>conftest.
$ac_ext <<_ACEOF
3625 /* end confdefs.h. */
3627 /* Override any GCC internal prototype to avoid an error.
3628 Use char because int might match the return type of a GCC
3629 builtin and then its argument prototype would still apply. */
3642 for ac_lib
in '' dir
; do
3643 if test -z "$ac_lib"; then
3644 ac_res
="none required"
3647 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
3649 rm -f conftest.
$ac_objext conftest
$ac_exeext
3650 if { (ac_try
="$ac_link"
3652 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
3653 *) ac_try_echo=$ac_try;;
3655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3656 (eval "$ac_link") 2>conftest.er1
3658 grep -v '^ *+' conftest.er1 >conftest.err
3660 cat conftest.err >&5
3661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662 (exit $ac_status); } && {
3663 test -z "$ac_c_werror_flag" ||
3664 test ! -s conftest.err
3665 } && test -s conftest$ac_exeext &&
3666 $as_test_x conftest$ac_exeext; then
3667 ac_cv_search_opendir=$ac_res
3669 echo "$as_me: failed program was:" >&5
3670 sed 's/^/| /' conftest.$ac_ext >&5
3675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3677 if test "${ac_cv_search_opendir+set}" = set; then
3681 if test "${ac_cv_search_opendir+set}" = set; then
3684 ac_cv_search_opendir=no
3687 LIBS=$ac_func_search_save_LIBS
3689 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3690 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
3691 ac_res=$ac_cv_search_opendir
3692 if test "$ac_res" != no; then
3693 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3698 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
3699 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
3700 if test "${ac_cv_search_opendir+set}" = set; then
3701 echo $ECHO_N "(cached) $ECHO_C" >&6
3703 ac_func_search_save_LIBS=$LIBS
3704 cat >conftest.$ac_ext <<_ACEOF
3707 cat confdefs.h >>conftest.$ac_ext
3708 cat >>conftest.$ac_ext <<_ACEOF
3709 /* end confdefs.h. */
3711 /* Override any GCC internal prototype to avoid an error.
3712 Use char because int might match the return type of a GCC
3713 builtin and then its argument prototype would still apply. */
3726 for ac_lib in '' x; do
3727 if test -z "$ac_lib"; then
3728 ac_res="none required"
3731 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3733 rm -f conftest.$ac_objext conftest$ac_exeext
3734 if { (ac_try="$ac_link"
3736 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
3737 *) ac_try_echo
=$ac_try;;
3739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3740 (eval "$ac_link") 2>conftest.er1
3742 grep -v '^ *+' conftest.er1
>conftest.err
3744 cat conftest.err
>&5
3745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3746 (exit $ac_status); } && {
3747 test -z "$ac_c_werror_flag" ||
3748 test ! -s conftest.err
3749 } && test -s conftest
$ac_exeext &&
3750 $as_test_x conftest
$ac_exeext; then
3751 ac_cv_search_opendir
=$ac_res
3753 echo "$as_me: failed program was:" >&5
3754 sed 's/^/| /' conftest.
$ac_ext >&5
3759 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
3761 if test "${ac_cv_search_opendir+set}" = set; then
3765 if test "${ac_cv_search_opendir+set}" = set; then
3768 ac_cv_search_opendir
=no
3771 LIBS
=$ac_func_search_save_LIBS
3773 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3774 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
3775 ac_res
=$ac_cv_search_opendir
3776 if test "$ac_res" != no
; then
3777 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
3784 ac_cpp
='$CPP $CPPFLAGS'
3785 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3786 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3787 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3788 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3789 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3790 # On Suns, sometimes $CPP names a directory.
3791 if test -n "$CPP" && test -d "$CPP"; then
3794 if test -z "$CPP"; then
3795 if test "${ac_cv_prog_CPP+set}" = set; then
3796 echo $ECHO_N "(cached) $ECHO_C" >&6
3798 # Double quotes because CPP needs to be expanded
3799 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3802 for ac_c_preproc_warn_flag
in '' yes
3804 # Use a header file that comes with gcc, so configuring glibc
3805 # with a fresh cross-compiler works.
3806 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3807 # <limits.h> exists even on freestanding compilers.
3808 # On the NeXT, cc -E runs the code through the compiler's parser,
3809 # not just through cpp. "Syntax error" is here to catch this case.
3810 cat >conftest.
$ac_ext <<_ACEOF
3813 cat confdefs.h
>>conftest.
$ac_ext
3814 cat >>conftest.
$ac_ext <<_ACEOF
3815 /* end confdefs.h. */
3817 # include <limits.h>
3819 # include <assert.h>
3823 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3825 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
3826 *) ac_try_echo=$ac_try;;
3828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3829 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3831 grep -v '^ *+' conftest.er1 >conftest.err
3833 cat conftest.err >&5
3834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835 (exit $ac_status); } >/dev/null && {
3836 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3837 test ! -s conftest.err
3841 echo "$as_me: failed program was:" >&5
3842 sed 's/^/| /' conftest.$ac_ext >&5
3844 # Broken: fails on valid input.
3848 rm -f conftest.err conftest.$ac_ext
3850 # OK, works on sane cases. Now check whether nonexistent headers
3851 # can be detected and how.
3852 cat >conftest.$ac_ext <<_ACEOF
3855 cat confdefs.h >>conftest.$ac_ext
3856 cat >>conftest.$ac_ext <<_ACEOF
3857 /* end confdefs.h. */
3858 #include <ac_nonexistent.h>
3860 if { (ac_try="$ac_cpp conftest.$ac_ext"
3862 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
3863 *) ac_try_echo
=$ac_try;;
3865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3866 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3868 grep -v '^ *+' conftest.er1
>conftest.err
3870 cat conftest.err
>&5
3871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872 (exit $ac_status); } >/dev
/null
&& {
3873 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3874 test ! -s conftest.err
3876 # Broken: success on invalid input.
3879 echo "$as_me: failed program was:" >&5
3880 sed 's/^/| /' conftest.
$ac_ext >&5
3882 # Passes both tests.
3887 rm -f conftest.err conftest.
$ac_ext
3890 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3891 rm -f conftest.err conftest.
$ac_ext
3892 if $ac_preproc_ok; then
3904 { echo "$as_me:$LINENO: result: $CPP" >&5
3905 echo "${ECHO_T}$CPP" >&6; }
3907 for ac_c_preproc_warn_flag
in '' yes
3909 # Use a header file that comes with gcc, so configuring glibc
3910 # with a fresh cross-compiler works.
3911 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3912 # <limits.h> exists even on freestanding compilers.
3913 # On the NeXT, cc -E runs the code through the compiler's parser,
3914 # not just through cpp. "Syntax error" is here to catch this case.
3915 cat >conftest.
$ac_ext <<_ACEOF
3918 cat confdefs.h
>>conftest.
$ac_ext
3919 cat >>conftest.
$ac_ext <<_ACEOF
3920 /* end confdefs.h. */
3922 # include <limits.h>
3924 # include <assert.h>
3928 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3930 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
3931 *) ac_try_echo=$ac_try;;
3933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3934 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3936 grep -v '^ *+' conftest.er1 >conftest.err
3938 cat conftest.err >&5
3939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940 (exit $ac_status); } >/dev/null && {
3941 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3942 test ! -s conftest.err
3946 echo "$as_me: failed program was:" >&5
3947 sed 's/^/| /' conftest.$ac_ext >&5
3949 # Broken: fails on valid input.
3953 rm -f conftest.err conftest.$ac_ext
3955 # OK, works on sane cases. Now check whether nonexistent headers
3956 # can be detected and how.
3957 cat >conftest.$ac_ext <<_ACEOF
3960 cat confdefs.h >>conftest.$ac_ext
3961 cat >>conftest.$ac_ext <<_ACEOF
3962 /* end confdefs.h. */
3963 #include <ac_nonexistent.h>
3965 if { (ac_try="$ac_cpp conftest.$ac_ext"
3967 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
3968 *) ac_try_echo
=$ac_try;;
3970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3971 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3973 grep -v '^ *+' conftest.er1
>conftest.err
3975 cat conftest.err
>&5
3976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977 (exit $ac_status); } >/dev
/null
&& {
3978 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3979 test ! -s conftest.err
3981 # Broken: success on invalid input.
3984 echo "$as_me: failed program was:" >&5
3985 sed 's/^/| /' conftest.
$ac_ext >&5
3987 # Passes both tests.
3992 rm -f conftest.err conftest.
$ac_ext
3995 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3996 rm -f conftest.err conftest.
$ac_ext
3997 if $ac_preproc_ok; then
4000 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4001 See \`config.log' for more details." >&5
4002 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4003 See \`config.log' for more details." >&2;}
4004 { (exit 1); exit 1; }; }
4008 ac_cpp
='$CPP $CPPFLAGS'
4009 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4010 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4011 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4014 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4015 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4016 if test "${ac_cv_path_GREP+set}" = set; then
4017 echo $ECHO_N "(cached) $ECHO_C" >&6
4019 # Extract the first word of "grep ggrep" to use in msg output
4020 if test -z "$GREP"; then
4021 set dummy
grep ggrep
; ac_prog_name
=$2
4022 if test "${ac_cv_path_GREP+set}" = set; then
4023 echo $ECHO_N "(cached) $ECHO_C" >&6
4025 ac_path_GREP_found
=false
4026 # Loop through the user's path and test for each of PROGNAME-LIST
4027 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4028 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4031 test -z "$as_dir" && as_dir
=.
4032 for ac_prog
in grep ggrep
; do
4033 for ac_exec_ext
in '' $ac_executable_extensions; do
4034 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4035 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4036 # Check for GNU ac_path_GREP and select it if it is found.
4037 # Check for GNU $ac_path_GREP
4038 case `"$ac_path_GREP" --version 2>&1` in
4040 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4043 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4046 cat "conftest.in" "conftest.in" >"conftest.tmp"
4047 mv "conftest.tmp" "conftest.in"
4048 cp "conftest.in" "conftest.nl"
4049 echo 'GREP' >> "conftest.nl"
4050 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null
|| break
4051 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 || break
4052 ac_count
=`expr $ac_count + 1`
4053 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4054 # Best one so far, save it but keep looking for a better one
4055 ac_cv_path_GREP
="$ac_path_GREP"
4056 ac_path_GREP_max
=$ac_count
4058 # 10*(2^10) chars as input seems more than enough
4059 test $ac_count -gt 10 && break
4061 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4065 $ac_path_GREP_found && break 3
4075 GREP
="$ac_cv_path_GREP"
4076 if test -z "$GREP"; then
4077 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4078 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4079 { (exit 1); exit 1; }; }
4083 ac_cv_path_GREP
=$GREP
4088 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4089 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4090 GREP
="$ac_cv_path_GREP"
4093 { echo "$as_me:$LINENO: checking for egrep" >&5
4094 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4095 if test "${ac_cv_path_EGREP+set}" = set; then
4096 echo $ECHO_N "(cached) $ECHO_C" >&6
4098 if echo a
| $GREP -E '(a|b)' >/dev
/null
2>&1
4099 then ac_cv_path_EGREP
="$GREP -E"
4101 # Extract the first word of "egrep" to use in msg output
4102 if test -z "$EGREP"; then
4103 set dummy
egrep; ac_prog_name
=$2
4104 if test "${ac_cv_path_EGREP+set}" = set; then
4105 echo $ECHO_N "(cached) $ECHO_C" >&6
4107 ac_path_EGREP_found
=false
4108 # Loop through the user's path and test for each of PROGNAME-LIST
4109 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4110 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4113 test -z "$as_dir" && as_dir
=.
4114 for ac_prog
in egrep; do
4115 for ac_exec_ext
in '' $ac_executable_extensions; do
4116 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4117 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4118 # Check for GNU ac_path_EGREP and select it if it is found.
4119 # Check for GNU $ac_path_EGREP
4120 case `"$ac_path_EGREP" --version 2>&1` in
4122 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4125 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4128 cat "conftest.in" "conftest.in" >"conftest.tmp"
4129 mv "conftest.tmp" "conftest.in"
4130 cp "conftest.in" "conftest.nl"
4131 echo 'EGREP' >> "conftest.nl"
4132 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null
|| break
4133 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 || break
4134 ac_count
=`expr $ac_count + 1`
4135 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4136 # Best one so far, save it but keep looking for a better one
4137 ac_cv_path_EGREP
="$ac_path_EGREP"
4138 ac_path_EGREP_max
=$ac_count
4140 # 10*(2^10) chars as input seems more than enough
4141 test $ac_count -gt 10 && break
4143 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4147 $ac_path_EGREP_found && break 3
4157 EGREP
="$ac_cv_path_EGREP"
4158 if test -z "$EGREP"; then
4159 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4160 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4161 { (exit 1); exit 1; }; }
4165 ac_cv_path_EGREP
=$EGREP
4171 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4172 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4173 EGREP
="$ac_cv_path_EGREP"
4176 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4177 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4178 if test "${ac_cv_header_stdc+set}" = set; then
4179 echo $ECHO_N "(cached) $ECHO_C" >&6
4181 cat >conftest.
$ac_ext <<_ACEOF
4184 cat confdefs.h
>>conftest.
$ac_ext
4185 cat >>conftest.
$ac_ext <<_ACEOF
4186 /* end confdefs.h. */
4200 rm -f conftest.
$ac_objext
4201 if { (ac_try
="$ac_compile"
4203 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
4204 *) ac_try_echo=$ac_try;;
4206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4207 (eval "$ac_compile") 2>conftest.er1
4209 grep -v '^ *+' conftest.er1 >conftest.err
4211 cat conftest.err >&5
4212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213 (exit $ac_status); } && {
4214 test -z "$ac_c_werror_flag" ||
4215 test ! -s conftest.err
4216 } && test -s conftest.$ac_objext; then
4217 ac_cv_header_stdc=yes
4219 echo "$as_me: failed program was:" >&5
4220 sed 's/^/| /' conftest.$ac_ext >&5
4222 ac_cv_header_stdc=no
4225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4227 if test $ac_cv_header_stdc = yes; then
4228 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4229 cat >conftest.$ac_ext <<_ACEOF
4232 cat confdefs.h >>conftest.$ac_ext
4233 cat >>conftest.$ac_ext <<_ACEOF
4234 /* end confdefs.h. */
4238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4239 $EGREP "memchr" >/dev/null 2>&1; then
4242 ac_cv_header_stdc=no
4248 if test $ac_cv_header_stdc = yes; then
4249 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4250 cat >conftest.$ac_ext <<_ACEOF
4253 cat confdefs.h >>conftest.$ac_ext
4254 cat >>conftest.$ac_ext <<_ACEOF
4255 /* end confdefs.h. */
4259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4260 $EGREP "free" >/dev/null 2>&1; then
4263 ac_cv_header_stdc=no
4269 if test $ac_cv_header_stdc = yes; then
4270 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4271 if test "$cross_compiling" = yes; then
4274 cat >conftest.$ac_ext <<_ACEOF
4277 cat confdefs.h >>conftest.$ac_ext
4278 cat >>conftest.$ac_ext <<_ACEOF
4279 /* end confdefs.h. */
4282 #if ((' ' & 0x0FF) == 0x020)
4283 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4284 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4286 # define ISLOWER(c) \
4287 (('a' <= (c) && (c) <= 'i') \
4288 || ('j' <= (c) && (c) <= 'r') \
4289 || ('s' <= (c) && (c) <= 'z'))
4290 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4293 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4298 for (i = 0; i < 256; i++)
4299 if (XOR (islower (i), ISLOWER (i))
4300 || toupper (i) != TOUPPER (i))
4305 rm -f conftest$ac_exeext
4306 if { (ac_try="$ac_link"
4308 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
4309 *) ac_try_echo
=$ac_try;;
4311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4312 (eval "$ac_link") 2>&5
4314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4315 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4316 { (case "(($ac_try" in
4317 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
4318 *) ac_try_echo=$ac_try;;
4320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4321 (eval "$ac_try") 2>&5
4323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324 (exit $ac_status); }; }; then
4327 echo "$as_me: program exited with status $ac_status" >&5
4328 echo "$as_me: failed program was:" >&5
4329 sed 's/^/| /' conftest.$ac_ext >&5
4332 ac_cv_header_stdc=no
4334 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4340 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4341 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4342 if test $ac_cv_header_stdc = yes; then
4344 cat >>confdefs.h <<\_ACEOF
4345 #define STDC_HEADERS 1
4350 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4351 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
4352 if test "${ac_cv_header_sys_wait_h+set}" = set; then
4353 echo $ECHO_N "(cached) $ECHO_C" >&6
4355 cat >conftest.$ac_ext <<_ACEOF
4358 cat confdefs.h >>conftest.$ac_ext
4359 cat >>conftest.$ac_ext <<_ACEOF
4360 /* end confdefs.h. */
4361 #include <sys/types.h>
4362 #include <sys/wait.h>
4364 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4367 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4375 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4380 rm -f conftest.$ac_objext
4381 if { (ac_try="$ac_compile"
4383 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
4384 *) ac_try_echo
=$ac_try;;
4386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4387 (eval "$ac_compile") 2>conftest.er1
4389 grep -v '^ *+' conftest.er1
>conftest.err
4391 cat conftest.err
>&5
4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); } && {
4394 test -z "$ac_c_werror_flag" ||
4395 test ! -s conftest.err
4396 } && test -s conftest.
$ac_objext; then
4397 ac_cv_header_sys_wait_h
=yes
4399 echo "$as_me: failed program was:" >&5
4400 sed 's/^/| /' conftest.
$ac_ext >&5
4402 ac_cv_header_sys_wait_h
=no
4405 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4407 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4408 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
4409 if test $ac_cv_header_sys_wait_h = yes; then
4411 cat >>confdefs.h
<<\_ACEOF
4412 #define HAVE_SYS_WAIT_H 1
4417 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4427 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4428 inttypes.h stdint.h unistd.h
4430 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4431 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4433 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4434 echo $ECHO_N "(cached) $ECHO_C" >&6
4436 cat >conftest.
$ac_ext <<_ACEOF
4439 cat confdefs.h
>>conftest.
$ac_ext
4440 cat >>conftest.
$ac_ext <<_ACEOF
4441 /* end confdefs.h. */
4442 $ac_includes_default
4444 #include <$ac_header>
4446 rm -f conftest.
$ac_objext
4447 if { (ac_try
="$ac_compile"
4449 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
4450 *) ac_try_echo=$ac_try;;
4452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4453 (eval "$ac_compile") 2>conftest.er1
4455 grep -v '^ *+' conftest.er1 >conftest.err
4457 cat conftest.err >&5
4458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459 (exit $ac_status); } && {
4460 test -z "$ac_c_werror_flag" ||
4461 test ! -s conftest.err
4462 } && test -s conftest.$ac_objext; then
4463 eval "$as_ac_Header=yes"
4465 echo "$as_me: failed program was:" >&5
4466 sed 's/^/| /' conftest.$ac_ext >&5
4468 eval "$as_ac_Header=no"
4471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4473 ac_res=`eval echo '${'$as_ac_Header'}'`
4474 { echo "$as_me:$LINENO: result: $ac_res" >&5
4475 echo "${ECHO_T}$ac_res" >&6; }
4476 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4477 cat >>confdefs.h <<_ACEOF
4478 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4503 for ac_header in fcntl.h limits.h mach/mach.h netdb.h netinet/in.h paths.h stddef.h stdlib.h string.h sys/ioctl.h sys/mount.h sys/param.h sys/socket.h sys/time.h syslog.h termios.h unistd.h
4505 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4506 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4507 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4508 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4509 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4510 echo $ECHO_N "(cached) $ECHO_C" >&6
4512 ac_res=`eval echo '${'$as_ac_Header'}'`
4513 { echo "$as_me:$LINENO: result: $ac_res" >&5
4514 echo "${ECHO_T}$ac_res" >&6; }
4516 # Is the header compilable?
4517 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4518 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4519 cat >conftest.$ac_ext <<_ACEOF
4522 cat confdefs.h >>conftest.$ac_ext
4523 cat >>conftest.$ac_ext <<_ACEOF
4524 /* end confdefs.h. */
4525 $ac_includes_default
4526 #include <$ac_header>
4528 rm -f conftest.$ac_objext
4529 if { (ac_try="$ac_compile"
4531 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
4532 *) ac_try_echo
=$ac_try;;
4534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4535 (eval "$ac_compile") 2>conftest.er1
4537 grep -v '^ *+' conftest.er1
>conftest.err
4539 cat conftest.err
>&5
4540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541 (exit $ac_status); } && {
4542 test -z "$ac_c_werror_flag" ||
4543 test ! -s conftest.err
4544 } && test -s conftest.
$ac_objext; then
4545 ac_header_compiler
=yes
4547 echo "$as_me: failed program was:" >&5
4548 sed 's/^/| /' conftest.
$ac_ext >&5
4550 ac_header_compiler
=no
4553 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4554 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4555 echo "${ECHO_T}$ac_header_compiler" >&6; }
4557 # Is the header present?
4558 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4559 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4560 cat >conftest.
$ac_ext <<_ACEOF
4563 cat confdefs.h
>>conftest.
$ac_ext
4564 cat >>conftest.
$ac_ext <<_ACEOF
4565 /* end confdefs.h. */
4566 #include <$ac_header>
4568 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4570 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
4571 *) ac_try_echo=$ac_try;;
4573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4574 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4576 grep -v '^ *+' conftest.er1 >conftest.err
4578 cat conftest.err >&5
4579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580 (exit $ac_status); } >/dev/null && {
4581 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4582 test ! -s conftest.err
4584 ac_header_preproc=yes
4586 echo "$as_me: failed program was:" >&5
4587 sed 's/^/| /' conftest.$ac_ext >&5
4589 ac_header_preproc=no
4592 rm -f conftest.err conftest.$ac_ext
4593 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4594 echo "${ECHO_T}$ac_header_preproc" >&6; }
4596 # So? What about this header?
4597 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4599 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4600 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4601 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4602 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4603 ac_header_preproc=yes
4606 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4607 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4608 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4609 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4610 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4611 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4612 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4613 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4614 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4615 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4616 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4617 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4619 ## -------------------------------------------------- ##
4620 ## Report this to launchd-bug-reports@group.apple.com ##
4621 ## -------------------------------------------------- ##
4623 ) | sed "s/^/$as_me: WARNING: /" >&2
4626 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4627 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4628 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4629 echo $ECHO_N "(cached) $ECHO_C" >&6
4631 eval "$as_ac_Header=\$ac_header_preproc"
4633 ac_res=`eval echo '${'$as_ac_Header'}'`
4634 { echo "$as_me:$LINENO: result: $ac_res" >&5
4635 echo "${ECHO_T}$ac_res" >&6; }
4638 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4639 cat >>confdefs.h <<_ACEOF
4640 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4648 # Checks for typedefs, structures, and compiler characteristics.
4649 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
4650 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
4651 if test "${ac_cv_header_stdbool_h+set}" = set; then
4652 echo $ECHO_N "(cached) $ECHO_C" >&6
4654 cat >conftest.$ac_ext <<_ACEOF
4657 cat confdefs.h >>conftest.$ac_ext
4658 cat >>conftest.$ac_ext <<_ACEOF
4659 /* end confdefs.h. */
4661 #include <stdbool.h>
4663 "error: bool is not defined"
4666 "error: false is not defined"
4669 "error: false is not 0"
4672 "error: true is not defined"
4675 "error: true is not 1"
4677 #ifndef __bool_true_false_are_defined
4678 "error: __bool_true_false_are_defined is not defined"
4681 struct s { _Bool s: 1; _Bool t; } s;
4683 char a[true == 1 ? 1 : -1];
4684 char b[false == 0 ? 1 : -1];
4685 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
4686 char d[(bool) 0.5 == true ? 1 : -1];
4688 char f[(_Bool) 0.0 == false ? 1 : -1];
4690 char h[sizeof (_Bool)];
4692 enum { j = false, k = true, l = false * true, m = true * 256 };
4694 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
4695 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
4696 # if defined __xlc__ || defined __GNUC__
4697 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
4698 reported by James Lemley on 2005-10-05; see
4699 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
4700 This test is not quite right, since xlc is allowed to
4701 reject this program, as the initializer for xlcbug is
4702 not one of the forms that C requires support for.
4703 However, doing the test right would require a runtime
4704 test, and that would make cross-compilation harder.
4705 Let us hope that IBM fixes the xlc bug, and also adds
4706 support for this kind of constant expression. In the
4707 meantime, this test will reject xlc, which is OK, since
4708 our stdbool.h substitute should suffice. We also test
4709 this with GCC, where it should work, to detect more
4710 quickly whether someone messes up the test in the
4712 char digs[] = "0123456789";
4713 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
4715 /* Catch a bug in an HP-UX C compiler. See
4716 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
4717 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
4728 /* Refer to every declared value, to avoid compiler optimizations. */
4729 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
4730 + !m + !n + !o + !p + !q + !pq);
4736 rm -f conftest.$ac_objext
4737 if { (ac_try="$ac_compile"
4739 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
4740 *) ac_try_echo
=$ac_try;;
4742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4743 (eval "$ac_compile") 2>conftest.er1
4745 grep -v '^ *+' conftest.er1
>conftest.err
4747 cat conftest.err
>&5
4748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749 (exit $ac_status); } && {
4750 test -z "$ac_c_werror_flag" ||
4751 test ! -s conftest.err
4752 } && test -s conftest.
$ac_objext; then
4753 ac_cv_header_stdbool_h
=yes
4755 echo "$as_me: failed program was:" >&5
4756 sed 's/^/| /' conftest.
$ac_ext >&5
4758 ac_cv_header_stdbool_h
=no
4761 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4763 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
4764 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
4765 { echo "$as_me:$LINENO: checking for _Bool" >&5
4766 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
4767 if test "${ac_cv_type__Bool+set}" = set; then
4768 echo $ECHO_N "(cached) $ECHO_C" >&6
4770 cat >conftest.
$ac_ext <<_ACEOF
4773 cat confdefs.h
>>conftest.
$ac_ext
4774 cat >>conftest.
$ac_ext <<_ACEOF
4775 /* end confdefs.h. */
4776 $ac_includes_default
4777 typedef _Bool ac__type_new_;
4781 if ((ac__type_new_ *) 0)
4783 if (sizeof (ac__type_new_))
4789 rm -f conftest.
$ac_objext
4790 if { (ac_try
="$ac_compile"
4792 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
4793 *) ac_try_echo=$ac_try;;
4795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4796 (eval "$ac_compile") 2>conftest.er1
4798 grep -v '^ *+' conftest.er1 >conftest.err
4800 cat conftest.err >&5
4801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802 (exit $ac_status); } && {
4803 test -z "$ac_c_werror_flag" ||
4804 test ! -s conftest.err
4805 } && test -s conftest.$ac_objext; then
4806 ac_cv_type__Bool=yes
4808 echo "$as_me: failed program was:" >&5
4809 sed 's/^/| /' conftest.$ac_ext >&5
4814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4816 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
4817 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
4818 if test $ac_cv_type__Bool = yes; then
4820 cat >>confdefs.h <<_ACEOF
4821 #define HAVE__BOOL 1
4827 if test $ac_cv_header_stdbool_h = yes; then
4829 cat >>confdefs.h <<\_ACEOF
4830 #define HAVE_STDBOOL_H 1
4835 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4836 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
4837 if test "${ac_cv_c_const+set}" = set; then
4838 echo $ECHO_N "(cached) $ECHO_C" >&6
4840 cat >conftest.$ac_ext <<_ACEOF
4843 cat confdefs.h >>conftest.$ac_ext
4844 cat >>conftest.$ac_ext <<_ACEOF
4845 /* end confdefs.h. */
4850 /* FIXME: Include the comments suggested by Paul. */
4852 /* Ultrix mips cc rejects this. */
4853 typedef int charset[2];
4855 /* SunOS 4.1.1 cc rejects this. */
4856 char const *const *pcpcc;
4858 /* NEC SVR4.0.2 mips cc rejects this. */
4859 struct point {int x, y;};
4860 static struct point const zero = {0,0};
4861 /* AIX XL C 1.02.0.0 rejects this.
4862 It does not let you subtract one const X* pointer from another in
4863 an arm of an if-expression whose if-part is not a constant
4865 const char *g = "string";
4866 pcpcc = &g + (g ? g-g : 0);
4867 /* HPUX 7.0 cc rejects these. */
4869 ppc = (char**) pcpcc;
4870 pcpcc = (char const *const *) ppc;
4871 { /* SCO 3.2v4 cc rejects this. */
4873 char const *s = 0 ? (char *) 0 : (char const *) 0;
4878 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4880 const int *foo = &x[0];
4883 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4884 typedef const int *iptr;
4888 { /* AIX XL C 1.02.0.0 rejects this saying
4889 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4890 struct s { int j; const int *ap[3]; };
4891 struct s *b; b->j = 5;
4893 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4897 return !cs[0] && !zero.x;
4904 rm -f conftest.$ac_objext
4905 if { (ac_try="$ac_compile"
4907 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
4908 *) ac_try_echo
=$ac_try;;
4910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4911 (eval "$ac_compile") 2>conftest.er1
4913 grep -v '^ *+' conftest.er1
>conftest.err
4915 cat conftest.err
>&5
4916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917 (exit $ac_status); } && {
4918 test -z "$ac_c_werror_flag" ||
4919 test ! -s conftest.err
4920 } && test -s conftest.
$ac_objext; then
4923 echo "$as_me: failed program was:" >&5
4924 sed 's/^/| /' conftest.
$ac_ext >&5
4929 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4931 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4932 echo "${ECHO_T}$ac_cv_c_const" >&6; }
4933 if test $ac_cv_c_const = no
; then
4935 cat >>confdefs.h
<<\_ACEOF
4941 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
4942 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
4943 if test "${ac_cv_type_uid_t+set}" = set; then
4944 echo $ECHO_N "(cached) $ECHO_C" >&6
4946 cat >conftest.
$ac_ext <<_ACEOF
4949 cat confdefs.h
>>conftest.
$ac_ext
4950 cat >>conftest.
$ac_ext <<_ACEOF
4951 /* end confdefs.h. */
4952 #include <sys/types.h>
4955 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4956 $EGREP "uid_t" >/dev
/null
2>&1; then
4957 ac_cv_type_uid_t
=yes
4964 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
4965 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
4966 if test $ac_cv_type_uid_t = no
; then
4968 cat >>confdefs.h
<<\_ACEOF
4973 cat >>confdefs.h
<<\_ACEOF
4979 { echo "$as_me:$LINENO: checking for mode_t" >&5
4980 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
4981 if test "${ac_cv_type_mode_t+set}" = set; then
4982 echo $ECHO_N "(cached) $ECHO_C" >&6
4984 cat >conftest.
$ac_ext <<_ACEOF
4987 cat confdefs.h
>>conftest.
$ac_ext
4988 cat >>conftest.
$ac_ext <<_ACEOF
4989 /* end confdefs.h. */
4990 $ac_includes_default
4991 typedef mode_t ac__type_new_;
4995 if ((ac__type_new_ *) 0)
4997 if (sizeof (ac__type_new_))
5003 rm -f conftest.
$ac_objext
5004 if { (ac_try
="$ac_compile"
5006 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
5007 *) ac_try_echo=$ac_try;;
5009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5010 (eval "$ac_compile") 2>conftest.er1
5012 grep -v '^ *+' conftest.er1 >conftest.err
5014 cat conftest.err >&5
5015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016 (exit $ac_status); } && {
5017 test -z "$ac_c_werror_flag" ||
5018 test ! -s conftest.err
5019 } && test -s conftest.$ac_objext; then
5020 ac_cv_type_mode_t=yes
5022 echo "$as_me: failed program was:" >&5
5023 sed 's/^/| /' conftest.$ac_ext >&5
5025 ac_cv_type_mode_t=no
5028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5030 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
5031 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
5032 if test $ac_cv_type_mode_t = yes; then
5036 cat >>confdefs.h <<_ACEOF
5042 { echo "$as_me:$LINENO: checking for off_t" >&5
5043 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
5044 if test "${ac_cv_type_off_t+set}" = set; then
5045 echo $ECHO_N "(cached) $ECHO_C" >&6
5047 cat >conftest.$ac_ext <<_ACEOF
5050 cat confdefs.h >>conftest.$ac_ext
5051 cat >>conftest.$ac_ext <<_ACEOF
5052 /* end confdefs.h. */
5053 $ac_includes_default
5054 typedef off_t ac__type_new_;
5058 if ((ac__type_new_ *) 0)
5060 if (sizeof (ac__type_new_))
5066 rm -f conftest.$ac_objext
5067 if { (ac_try="$ac_compile"
5069 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
5070 *) ac_try_echo
=$ac_try;;
5072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5073 (eval "$ac_compile") 2>conftest.er1
5075 grep -v '^ *+' conftest.er1
>conftest.err
5077 cat conftest.err
>&5
5078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079 (exit $ac_status); } && {
5080 test -z "$ac_c_werror_flag" ||
5081 test ! -s conftest.err
5082 } && test -s conftest.
$ac_objext; then
5083 ac_cv_type_off_t
=yes
5085 echo "$as_me: failed program was:" >&5
5086 sed 's/^/| /' conftest.
$ac_ext >&5
5091 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5093 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5094 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
5095 if test $ac_cv_type_off_t = yes; then
5099 cat >>confdefs.h
<<_ACEOF
5100 #define off_t long int
5105 { echo "$as_me:$LINENO: checking for pid_t" >&5
5106 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
5107 if test "${ac_cv_type_pid_t+set}" = set; then
5108 echo $ECHO_N "(cached) $ECHO_C" >&6
5110 cat >conftest.
$ac_ext <<_ACEOF
5113 cat confdefs.h
>>conftest.
$ac_ext
5114 cat >>conftest.
$ac_ext <<_ACEOF
5115 /* end confdefs.h. */
5116 $ac_includes_default
5117 typedef pid_t ac__type_new_;
5121 if ((ac__type_new_ *) 0)
5123 if (sizeof (ac__type_new_))
5129 rm -f conftest.
$ac_objext
5130 if { (ac_try
="$ac_compile"
5132 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
5133 *) ac_try_echo=$ac_try;;
5135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5136 (eval "$ac_compile") 2>conftest.er1
5138 grep -v '^ *+' conftest.er1 >conftest.err
5140 cat conftest.err >&5
5141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5142 (exit $ac_status); } && {
5143 test -z "$ac_c_werror_flag" ||
5144 test ! -s conftest.err
5145 } && test -s conftest.$ac_objext; then
5146 ac_cv_type_pid_t=yes
5148 echo "$as_me: failed program was:" >&5
5149 sed 's/^/| /' conftest.$ac_ext >&5
5154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5156 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5157 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
5158 if test $ac_cv_type_pid_t = yes; then
5162 cat >>confdefs.h <<_ACEOF
5168 { echo "$as_me:$LINENO: checking for size_t" >&5
5169 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5170 if test "${ac_cv_type_size_t+set}" = set; then
5171 echo $ECHO_N "(cached) $ECHO_C" >&6
5173 cat >conftest.$ac_ext <<_ACEOF
5176 cat confdefs.h >>conftest.$ac_ext
5177 cat >>conftest.$ac_ext <<_ACEOF
5178 /* end confdefs.h. */
5179 $ac_includes_default
5180 typedef size_t ac__type_new_;
5184 if ((ac__type_new_ *) 0)
5186 if (sizeof (ac__type_new_))
5192 rm -f conftest.$ac_objext
5193 if { (ac_try="$ac_compile"
5195 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
5196 *) ac_try_echo
=$ac_try;;
5198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5199 (eval "$ac_compile") 2>conftest.er1
5201 grep -v '^ *+' conftest.er1
>conftest.err
5203 cat conftest.err
>&5
5204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205 (exit $ac_status); } && {
5206 test -z "$ac_c_werror_flag" ||
5207 test ! -s conftest.err
5208 } && test -s conftest.
$ac_objext; then
5209 ac_cv_type_size_t
=yes
5211 echo "$as_me: failed program was:" >&5
5212 sed 's/^/| /' conftest.
$ac_ext >&5
5214 ac_cv_type_size_t
=no
5217 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5219 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5220 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5221 if test $ac_cv_type_size_t = yes; then
5225 cat >>confdefs.h
<<_ACEOF
5226 #define size_t unsigned int
5231 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5232 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
5233 if test "${ac_cv_header_time+set}" = set; then
5234 echo $ECHO_N "(cached) $ECHO_C" >&6
5236 cat >conftest.
$ac_ext <<_ACEOF
5239 cat confdefs.h
>>conftest.
$ac_ext
5240 cat >>conftest.
$ac_ext <<_ACEOF
5241 /* end confdefs.h. */
5242 #include <sys/types.h>
5243 #include <sys/time.h>
5249 if ((struct tm *) 0)
5255 rm -f conftest.
$ac_objext
5256 if { (ac_try
="$ac_compile"
5258 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
5259 *) ac_try_echo=$ac_try;;
5261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5262 (eval "$ac_compile") 2>conftest.er1
5264 grep -v '^ *+' conftest.er1 >conftest.err
5266 cat conftest.err >&5
5267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268 (exit $ac_status); } && {
5269 test -z "$ac_c_werror_flag" ||
5270 test ! -s conftest.err
5271 } && test -s conftest.$ac_objext; then
5272 ac_cv_header_time=yes
5274 echo "$as_me: failed program was:" >&5
5275 sed 's/^/| /' conftest.$ac_ext >&5
5277 ac_cv_header_time=no
5280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5282 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5283 echo "${ECHO_T}$ac_cv_header_time" >&6; }
5284 if test $ac_cv_header_time = yes; then
5286 cat >>confdefs.h <<\_ACEOF
5287 #define TIME_WITH_SYS_TIME 1
5292 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5293 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
5294 if test "${ac_cv_struct_tm+set}" = set; then
5295 echo $ECHO_N "(cached) $ECHO_C" >&6
5297 cat >conftest.$ac_ext <<_ACEOF
5300 cat confdefs.h >>conftest.$ac_ext
5301 cat >>conftest.$ac_ext <<_ACEOF
5302 /* end confdefs.h. */
5303 #include <sys/types.h>
5310 int *p = &tm.tm_sec;
5316 rm -f conftest.$ac_objext
5317 if { (ac_try="$ac_compile"
5319 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
5320 *) ac_try_echo
=$ac_try;;
5322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5323 (eval "$ac_compile") 2>conftest.er1
5325 grep -v '^ *+' conftest.er1
>conftest.err
5327 cat conftest.err
>&5
5328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329 (exit $ac_status); } && {
5330 test -z "$ac_c_werror_flag" ||
5331 test ! -s conftest.err
5332 } && test -s conftest.
$ac_objext; then
5333 ac_cv_struct_tm
=time.h
5335 echo "$as_me: failed program was:" >&5
5336 sed 's/^/| /' conftest.
$ac_ext >&5
5338 ac_cv_struct_tm
=sys
/time.h
5341 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5343 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5344 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
5345 if test $ac_cv_struct_tm = sys
/time.h
; then
5347 cat >>confdefs.h
<<\_ACEOF
5348 #define TM_IN_SYS_TIME 1
5354 # Checks for library functions.
5355 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5356 # for constant arguments. Useless!
5357 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
5358 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
5359 if test "${ac_cv_working_alloca_h+set}" = set; then
5360 echo $ECHO_N "(cached) $ECHO_C" >&6
5362 cat >conftest.
$ac_ext <<_ACEOF
5365 cat confdefs.h
>>conftest.
$ac_ext
5366 cat >>conftest.
$ac_ext <<_ACEOF
5367 /* end confdefs.h. */
5372 char *p = (char *) alloca (2 * sizeof (int));
5378 rm -f conftest.
$ac_objext conftest
$ac_exeext
5379 if { (ac_try
="$ac_link"
5381 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
5382 *) ac_try_echo=$ac_try;;
5384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5385 (eval "$ac_link") 2>conftest.er1
5387 grep -v '^ *+' conftest.er1 >conftest.err
5389 cat conftest.err >&5
5390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391 (exit $ac_status); } && {
5392 test -z "$ac_c_werror_flag" ||
5393 test ! -s conftest.err
5394 } && test -s conftest$ac_exeext &&
5395 $as_test_x conftest$ac_exeext; then
5396 ac_cv_working_alloca_h=yes
5398 echo "$as_me: failed program was:" >&5
5399 sed 's/^/| /' conftest.$ac_ext >&5
5401 ac_cv_working_alloca_h=no
5404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5405 conftest$ac_exeext conftest.$ac_ext
5407 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5408 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
5409 if test $ac_cv_working_alloca_h = yes; then
5411 cat >>confdefs.h <<\_ACEOF
5412 #define HAVE_ALLOCA_H 1
5417 { echo "$as_me:$LINENO: checking for alloca" >&5
5418 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
5419 if test "${ac_cv_func_alloca_works+set}" = set; then
5420 echo $ECHO_N "(cached) $ECHO_C" >&6
5422 cat >conftest.$ac_ext <<_ACEOF
5425 cat confdefs.h >>conftest.$ac_ext
5426 cat >>conftest.$ac_ext <<_ACEOF
5427 /* end confdefs.h. */
5429 # define alloca __builtin_alloca
5432 # include <malloc.h>
5433 # define alloca _alloca
5435 # ifdef HAVE_ALLOCA_H
5436 # include <alloca.h>
5441 # ifndef alloca /* predefined by HP cc +Olibcalls */
5452 char *p = (char *) alloca (1);
5458 rm -f conftest.$ac_objext conftest$ac_exeext
5459 if { (ac_try="$ac_link"
5461 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
5462 *) ac_try_echo
=$ac_try;;
5464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5465 (eval "$ac_link") 2>conftest.er1
5467 grep -v '^ *+' conftest.er1
>conftest.err
5469 cat conftest.err
>&5
5470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5471 (exit $ac_status); } && {
5472 test -z "$ac_c_werror_flag" ||
5473 test ! -s conftest.err
5474 } && test -s conftest
$ac_exeext &&
5475 $as_test_x conftest
$ac_exeext; then
5476 ac_cv_func_alloca_works
=yes
5478 echo "$as_me: failed program was:" >&5
5479 sed 's/^/| /' conftest.
$ac_ext >&5
5481 ac_cv_func_alloca_works
=no
5484 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
5485 conftest
$ac_exeext conftest.
$ac_ext
5487 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5488 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
5490 if test $ac_cv_func_alloca_works = yes; then
5492 cat >>confdefs.h
<<\_ACEOF
5493 #define HAVE_ALLOCA 1
5497 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5498 # that cause trouble. Some versions do not even contain alloca or
5499 # contain a buggy version. If you still want to use their alloca,
5500 # use ar to extract alloca.o from them instead of compiling alloca.c.
5502 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
5504 cat >>confdefs.h
<<\_ACEOF
5509 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5510 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
5511 if test "${ac_cv_os_cray+set}" = set; then
5512 echo $ECHO_N "(cached) $ECHO_C" >&6
5514 cat >conftest.
$ac_ext <<_ACEOF
5517 cat confdefs.h
>>conftest.
$ac_ext
5518 cat >>conftest.
$ac_ext <<_ACEOF
5519 /* end confdefs.h. */
5520 #if defined CRAY && ! defined CRAY2
5527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5528 $EGREP "webecray" >/dev
/null
2>&1; then
5536 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5537 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
5538 if test $ac_cv_os_cray = yes; then
5539 for ac_func
in _getb67 GETB67 getb67
; do
5540 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5541 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5542 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5543 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5544 echo $ECHO_N "(cached) $ECHO_C" >&6
5546 cat >conftest.
$ac_ext <<_ACEOF
5549 cat confdefs.h
>>conftest.
$ac_ext
5550 cat >>conftest.
$ac_ext <<_ACEOF
5551 /* end confdefs.h. */
5552 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5553 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5554 #define $ac_func innocuous_$ac_func
5556 /* System header to define __stub macros and hopefully few prototypes,
5557 which can conflict with char $ac_func (); below.
5558 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5559 <limits.h> exists even on freestanding compilers. */
5562 # include <limits.h>
5564 # include <assert.h>
5569 /* Override any GCC internal prototype to avoid an error.
5570 Use char because int might match the return type of a GCC
5571 builtin and then its argument prototype would still apply. */
5576 /* The GNU C library defines this for functions which it implements
5577 to always fail with ENOSYS. Some functions are actually named
5578 something starting with __ and the normal name is an alias. */
5579 #if defined __stub_$ac_func || defined __stub___$ac_func
5591 rm -f conftest.
$ac_objext conftest
$ac_exeext
5592 if { (ac_try
="$ac_link"
5594 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
5595 *) ac_try_echo=$ac_try;;
5597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5598 (eval "$ac_link") 2>conftest.er1
5600 grep -v '^ *+' conftest.er1 >conftest.err
5602 cat conftest.err >&5
5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604 (exit $ac_status); } && {
5605 test -z "$ac_c_werror_flag" ||
5606 test ! -s conftest.err
5607 } && test -s conftest$ac_exeext &&
5608 $as_test_x conftest$ac_exeext; then
5609 eval "$as_ac_var=yes"
5611 echo "$as_me: failed program was:" >&5
5612 sed 's/^/| /' conftest.$ac_ext >&5
5614 eval "$as_ac_var=no"
5617 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5618 conftest$ac_exeext conftest.$ac_ext
5620 ac_res=`eval echo '${'$as_ac_var'}'`
5621 { echo "$as_me:$LINENO: result: $ac_res" >&5
5622 echo "${ECHO_T}$ac_res" >&6; }
5623 if test `eval echo '${'$as_ac_var'}'` = yes; then
5625 cat >>confdefs.h <<_ACEOF
5626 #define CRAY_STACKSEG_END $ac_func
5635 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5636 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
5637 if test "${ac_cv_c_stack_direction+set}" = set; then
5638 echo $ECHO_N "(cached) $ECHO_C" >&6
5640 if test "$cross_compiling" = yes; then
5641 ac_cv_c_stack_direction=0
5643 cat >conftest.$ac_ext <<_ACEOF
5646 cat confdefs.h >>conftest.$ac_ext
5647 cat >>conftest.$ac_ext <<_ACEOF
5648 /* end confdefs.h. */
5649 $ac_includes_default
5651 find_stack_direction ()
5653 static char *addr = 0;
5658 return find_stack_direction ();
5661 return (&dummy > addr) ? 1 : -1;
5667 return find_stack_direction () < 0;
5670 rm -f conftest$ac_exeext
5671 if { (ac_try="$ac_link"
5673 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
5674 *) ac_try_echo
=$ac_try;;
5676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5677 (eval "$ac_link") 2>&5
5679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5681 { (case "(($ac_try" in
5682 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
5683 *) ac_try_echo=$ac_try;;
5685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5686 (eval "$ac_try") 2>&5
5688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689 (exit $ac_status); }; }; then
5690 ac_cv_c_stack_direction=1
5692 echo "$as_me: program exited with status $ac_status" >&5
5693 echo "$as_me: failed program was:" >&5
5694 sed 's/^/| /' conftest.$ac_ext >&5
5697 ac_cv_c_stack_direction=-1
5699 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5704 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5705 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
5707 cat >>confdefs.h <<_ACEOF
5708 #define STACK_DIRECTION $ac_cv_c_stack_direction
5714 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
5715 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
5716 if test "${ac_cv_func_closedir_void+set}" = set; then
5717 echo $ECHO_N "(cached) $ECHO_C" >&6
5719 if test "$cross_compiling" = yes; then
5720 ac_cv_func_closedir_void=yes
5722 cat >conftest.$ac_ext <<_ACEOF
5725 cat confdefs.h >>conftest.$ac_ext
5726 cat >>conftest.$ac_ext <<_ACEOF
5727 /* end confdefs.h. */
5728 $ac_includes_default
5729 #include <$ac_header_dirent>
5737 return closedir (opendir (".")) != 0;
5742 rm -f conftest$ac_exeext
5743 if { (ac_try="$ac_link"
5745 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
5746 *) ac_try_echo
=$ac_try;;
5748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5749 (eval "$ac_link") 2>&5
5751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5753 { (case "(($ac_try" in
5754 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
5755 *) ac_try_echo=$ac_try;;
5757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5758 (eval "$ac_try") 2>&5
5760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761 (exit $ac_status); }; }; then
5762 ac_cv_func_closedir_void=no
5764 echo "$as_me: program exited with status $ac_status" >&5
5765 echo "$as_me: failed program was:" >&5
5766 sed 's/^/| /' conftest.$ac_ext >&5
5769 ac_cv_func_closedir_void=yes
5771 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5776 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
5777 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
5778 if test $ac_cv_func_closedir_void = yes; then
5780 cat >>confdefs.h <<\_ACEOF
5781 #define CLOSEDIR_VOID 1
5787 for ac_header in vfork.h
5789 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5790 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5791 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5794 echo $ECHO_N "(cached) $ECHO_C" >&6
5796 ac_res=`eval echo '${'$as_ac_Header'}'`
5797 { echo "$as_me:$LINENO: result: $ac_res" >&5
5798 echo "${ECHO_T}$ac_res" >&6; }
5800 # Is the header compilable?
5801 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5802 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5803 cat >conftest.$ac_ext <<_ACEOF
5806 cat confdefs.h >>conftest.$ac_ext
5807 cat >>conftest.$ac_ext <<_ACEOF
5808 /* end confdefs.h. */
5809 $ac_includes_default
5810 #include <$ac_header>
5812 rm -f conftest.$ac_objext
5813 if { (ac_try="$ac_compile"
5815 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
5816 *) ac_try_echo
=$ac_try;;
5818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5819 (eval "$ac_compile") 2>conftest.er1
5821 grep -v '^ *+' conftest.er1
>conftest.err
5823 cat conftest.err
>&5
5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825 (exit $ac_status); } && {
5826 test -z "$ac_c_werror_flag" ||
5827 test ! -s conftest.err
5828 } && test -s conftest.
$ac_objext; then
5829 ac_header_compiler
=yes
5831 echo "$as_me: failed program was:" >&5
5832 sed 's/^/| /' conftest.
$ac_ext >&5
5834 ac_header_compiler
=no
5837 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5838 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5839 echo "${ECHO_T}$ac_header_compiler" >&6; }
5841 # Is the header present?
5842 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5843 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5844 cat >conftest.
$ac_ext <<_ACEOF
5847 cat confdefs.h
>>conftest.
$ac_ext
5848 cat >>conftest.
$ac_ext <<_ACEOF
5849 /* end confdefs.h. */
5850 #include <$ac_header>
5852 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5854 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
5855 *) ac_try_echo=$ac_try;;
5857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5858 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5860 grep -v '^ *+' conftest.er1 >conftest.err
5862 cat conftest.err >&5
5863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864 (exit $ac_status); } >/dev/null && {
5865 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5866 test ! -s conftest.err
5868 ac_header_preproc=yes
5870 echo "$as_me: failed program was:" >&5
5871 sed 's/^/| /' conftest.$ac_ext >&5
5873 ac_header_preproc=no
5876 rm -f conftest.err conftest.$ac_ext
5877 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5878 echo "${ECHO_T}$ac_header_preproc" >&6; }
5880 # So? What about this header?
5881 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5883 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5884 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5885 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5886 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5887 ac_header_preproc=yes
5890 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5891 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5892 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5893 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5894 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5895 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5896 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5897 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5899 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5900 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5901 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5903 ## -------------------------------------------------- ##
5904 ## Report this to launchd-bug-reports@group.apple.com ##
5905 ## -------------------------------------------------- ##
5907 ) | sed "s/^/$as_me: WARNING: /" >&2
5910 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5911 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5912 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5913 echo $ECHO_N "(cached) $ECHO_C" >&6
5915 eval "$as_ac_Header=\$ac_header_preproc"
5917 ac_res=`eval echo '${'$as_ac_Header'}'`
5918 { echo "$as_me:$LINENO: result: $ac_res" >&5
5919 echo "${ECHO_T}$ac_res" >&6; }
5922 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5923 cat >>confdefs.h <<_ACEOF
5924 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5933 for ac_func in fork vfork
5935 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5936 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5937 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5938 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5939 echo $ECHO_N "(cached) $ECHO_C" >&6
5941 cat >conftest.$ac_ext <<_ACEOF
5944 cat confdefs.h >>conftest.$ac_ext
5945 cat >>conftest.$ac_ext <<_ACEOF
5946 /* end confdefs.h. */
5947 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5948 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5949 #define $ac_func innocuous_$ac_func
5951 /* System header to define __stub macros and hopefully few prototypes,
5952 which can conflict with char $ac_func (); below.
5953 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5954 <limits.h> exists even on freestanding compilers. */
5957 # include <limits.h>
5959 # include <assert.h>
5964 /* Override any GCC internal prototype to avoid an error.
5965 Use char because int might match the return type of a GCC
5966 builtin and then its argument prototype would still apply. */
5971 /* The GNU C library defines this for functions which it implements
5972 to always fail with ENOSYS. Some functions are actually named
5973 something starting with __ and the normal name is an alias. */
5974 #if defined __stub_$ac_func || defined __stub___$ac_func
5986 rm -f conftest.$ac_objext conftest$ac_exeext
5987 if { (ac_try="$ac_link"
5989 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
5990 *) ac_try_echo
=$ac_try;;
5992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5993 (eval "$ac_link") 2>conftest.er1
5995 grep -v '^ *+' conftest.er1
>conftest.err
5997 cat conftest.err
>&5
5998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999 (exit $ac_status); } && {
6000 test -z "$ac_c_werror_flag" ||
6001 test ! -s conftest.err
6002 } && test -s conftest
$ac_exeext &&
6003 $as_test_x conftest
$ac_exeext; then
6004 eval "$as_ac_var=yes"
6006 echo "$as_me: failed program was:" >&5
6007 sed 's/^/| /' conftest.
$ac_ext >&5
6009 eval "$as_ac_var=no"
6012 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6013 conftest
$ac_exeext conftest.
$ac_ext
6015 ac_res
=`eval echo '${'$as_ac_var'}'`
6016 { echo "$as_me:$LINENO: result: $ac_res" >&5
6017 echo "${ECHO_T}$ac_res" >&6; }
6018 if test `eval echo '${'$as_ac_var'}'` = yes; then
6019 cat >>confdefs.h
<<_ACEOF
6020 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6026 if test "x$ac_cv_func_fork" = xyes
; then
6027 { echo "$as_me:$LINENO: checking for working fork" >&5
6028 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
6029 if test "${ac_cv_func_fork_works+set}" = set; then
6030 echo $ECHO_N "(cached) $ECHO_C" >&6
6032 if test "$cross_compiling" = yes; then
6033 ac_cv_func_fork_works
=cross
6035 cat >conftest.
$ac_ext <<_ACEOF
6038 cat confdefs.h
>>conftest.
$ac_ext
6039 cat >>conftest.
$ac_ext <<_ACEOF
6040 /* end confdefs.h. */
6041 $ac_includes_default
6046 /* By Ruediger Kuhlmann. */
6053 rm -f conftest
$ac_exeext
6054 if { (ac_try
="$ac_link"
6056 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
6057 *) ac_try_echo=$ac_try;;
6059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6060 (eval "$ac_link") 2>&5
6062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6064 { (case "(($ac_try" in
6065 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
6066 *) ac_try_echo
=$ac_try;;
6068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6069 (eval "$ac_try") 2>&5
6071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072 (exit $ac_status); }; }; then
6073 ac_cv_func_fork_works
=yes
6075 echo "$as_me: program exited with status $ac_status" >&5
6076 echo "$as_me: failed program was:" >&5
6077 sed 's/^/| /' conftest.
$ac_ext >&5
6080 ac_cv_func_fork_works
=no
6082 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6087 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
6088 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
6091 ac_cv_func_fork_works
=$ac_cv_func_fork
6093 if test "x$ac_cv_func_fork_works" = xcross
; then
6095 *-*-amigaos* | *-*-msdosdjgpp*)
6096 # Override, as these systems have only a dummy fork() stub
6097 ac_cv_func_fork_works
=no
6100 ac_cv_func_fork_works
=yes
6103 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
6104 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
6106 ac_cv_func_vfork_works
=$ac_cv_func_vfork
6107 if test "x$ac_cv_func_vfork" = xyes
; then
6108 { echo "$as_me:$LINENO: checking for working vfork" >&5
6109 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
6110 if test "${ac_cv_func_vfork_works+set}" = set; then
6111 echo $ECHO_N "(cached) $ECHO_C" >&6
6113 if test "$cross_compiling" = yes; then
6114 ac_cv_func_vfork_works
=cross
6116 cat >conftest.
$ac_ext <<_ACEOF
6119 cat confdefs.h
>>conftest.
$ac_ext
6120 cat >>conftest.
$ac_ext <<_ACEOF
6121 /* end confdefs.h. */
6122 /* Thanks to Paul Eggert for this test. */
6123 $ac_includes_default
6124 #include <sys/wait.h>
6128 /* On some sparc systems, changes by the child to local and incoming
6129 argument registers are propagated back to the parent. The compiler
6130 is told about this with #include <vfork.h>, but some compilers
6131 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
6132 static variable whose address is put into a register that is
6133 clobbered by the vfork. */
6136 sparc_address_test (int arg)
6138 sparc_address_test (arg) int arg;
6159 pid_t parent = getpid ();
6162 sparc_address_test (0);
6167 /* Here is another test for sparc vfork register problems. This
6168 test uses lots of local variables, at least as many local
6169 variables as main has allocated so far including compiler
6170 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
6171 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
6172 reuse the register of parent for one of the local variables,
6173 since it will think that parent can't possibly be used any more
6174 in this routine. Assigning to the local variable will thus
6175 munge parent in the parent process. */
6177 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
6178 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
6179 /* Convince the compiler that p..p7 are live; otherwise, it might
6180 use the same hardware register for all 8 local variables. */
6181 if (p != p1 || p != p2 || p != p3 || p != p4
6182 || p != p5 || p != p6 || p != p7)
6185 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
6186 from child file descriptors. If the child closes a descriptor
6187 before it execs or exits, this munges the parent's descriptor
6188 as well. Test for this by closing stdout in the child. */
6189 _exit(close(fileno(stdout)) != 0);
6194 while (wait(&status) != child)
6197 /* Was there some problem with vforking? */
6200 /* Did the child fail? (This shouldn't happen.) */
6203 /* Did the vfork/compiler bug occur? */
6204 || parent != getpid()
6206 /* Did the file descriptor bug occur? */
6207 || fstat(fileno(stdout), &st) != 0
6212 rm -f conftest
$ac_exeext
6213 if { (ac_try
="$ac_link"
6215 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
6216 *) ac_try_echo=$ac_try;;
6218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6219 (eval "$ac_link") 2>&5
6221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6223 { (case "(($ac_try" in
6224 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
6225 *) ac_try_echo
=$ac_try;;
6227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6228 (eval "$ac_try") 2>&5
6230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231 (exit $ac_status); }; }; then
6232 ac_cv_func_vfork_works
=yes
6234 echo "$as_me: program exited with status $ac_status" >&5
6235 echo "$as_me: failed program was:" >&5
6236 sed 's/^/| /' conftest.
$ac_ext >&5
6239 ac_cv_func_vfork_works
=no
6241 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6246 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
6247 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
6250 if test "x$ac_cv_func_fork_works" = xcross
; then
6251 ac_cv_func_vfork_works
=$ac_cv_func_vfork
6252 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
6253 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
6256 if test "x$ac_cv_func_vfork_works" = xyes
; then
6258 cat >>confdefs.h
<<\_ACEOF
6259 #define HAVE_WORKING_VFORK 1
6264 cat >>confdefs.h
<<\_ACEOF
6269 if test "x$ac_cv_func_fork_works" = xyes
; then
6271 cat >>confdefs.h
<<\_ACEOF
6272 #define HAVE_WORKING_FORK 1
6277 if test $ac_cv_c_compiler_gnu = yes; then
6278 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
6279 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
6280 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
6281 echo $ECHO_N "(cached) $ECHO_C" >&6
6283 ac_pattern
="Autoconf.*'x'"
6284 cat >conftest.
$ac_ext <<_ACEOF
6287 cat confdefs.h
>>conftest.
$ac_ext
6288 cat >>conftest.
$ac_ext <<_ACEOF
6289 /* end confdefs.h. */
6293 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6294 $EGREP "$ac_pattern" >/dev
/null
2>&1; then
6295 ac_cv_prog_gcc_traditional
=yes
6297 ac_cv_prog_gcc_traditional
=no
6302 if test $ac_cv_prog_gcc_traditional = no
; then
6303 cat >conftest.
$ac_ext <<_ACEOF
6306 cat confdefs.h
>>conftest.
$ac_ext
6307 cat >>conftest.
$ac_ext <<_ACEOF
6308 /* end confdefs.h. */
6312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6313 $EGREP "$ac_pattern" >/dev
/null
2>&1; then
6314 ac_cv_prog_gcc_traditional
=yes
6320 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
6321 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
6322 if test $ac_cv_prog_gcc_traditional = yes; then
6323 CC
="$CC -traditional"
6327 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
6328 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
6329 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
6330 echo $ECHO_N "(cached) $ECHO_C" >&6
6332 rm -f conftest.sym conftest.
file
6334 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
6335 if test "$cross_compiling" = yes; then
6336 ac_cv_func_lstat_dereferences_slashed_symlink
=no
6338 cat >conftest.
$ac_ext <<_ACEOF
6341 cat confdefs.h
>>conftest.
$ac_ext
6342 cat >>conftest.
$ac_ext <<_ACEOF
6343 /* end confdefs.h. */
6344 $ac_includes_default
6349 /* Linux will dereference the symlink and fail.
6350 That is better in the sense that it means we will not
6351 have to compile and use the lstat wrapper. */
6352 return lstat ("conftest.sym/", &sbuf) == 0;
6357 rm -f conftest
$ac_exeext
6358 if { (ac_try
="$ac_link"
6360 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
6361 *) ac_try_echo=$ac_try;;
6363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6364 (eval "$ac_link") 2>&5
6366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6368 { (case "(($ac_try" in
6369 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
6370 *) ac_try_echo
=$ac_try;;
6372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6373 (eval "$ac_try") 2>&5
6375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6376 (exit $ac_status); }; }; then
6377 ac_cv_func_lstat_dereferences_slashed_symlink
=yes
6379 echo "$as_me: program exited with status $ac_status" >&5
6380 echo "$as_me: failed program was:" >&5
6381 sed 's/^/| /' conftest.
$ac_ext >&5
6384 ac_cv_func_lstat_dereferences_slashed_symlink
=no
6386 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6391 # If the `ln -s' command failed, then we probably don't even
6392 # have an lstat function.
6393 ac_cv_func_lstat_dereferences_slashed_symlink
=no
6395 rm -f conftest.sym conftest.
file
6398 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
6399 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
6401 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
6403 cat >>confdefs.h
<<_ACEOF
6404 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
6408 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no
; then
6409 case " $LIBOBJS " in
6410 *" lstat.$ac_objext "* ) ;;
6411 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext"
6417 { echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
6418 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; }
6419 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
6420 echo $ECHO_N "(cached) $ECHO_C" >&6
6422 if test "$cross_compiling" = yes; then
6423 ac_cv_func_lstat_empty_string_bug
=yes
6425 cat >conftest.
$ac_ext <<_ACEOF
6428 cat confdefs.h
>>conftest.
$ac_ext
6429 cat >>conftest.
$ac_ext <<_ACEOF
6430 /* end confdefs.h. */
6431 $ac_includes_default
6436 return lstat ("", &sbuf) == 0;
6441 rm -f conftest
$ac_exeext
6442 if { (ac_try
="$ac_link"
6444 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
6445 *) ac_try_echo=$ac_try;;
6447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6448 (eval "$ac_link") 2>&5
6450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6452 { (case "(($ac_try" in
6453 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
6454 *) ac_try_echo
=$ac_try;;
6456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6457 (eval "$ac_try") 2>&5
6459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460 (exit $ac_status); }; }; then
6461 ac_cv_func_lstat_empty_string_bug
=no
6463 echo "$as_me: program exited with status $ac_status" >&5
6464 echo "$as_me: failed program was:" >&5
6465 sed 's/^/| /' conftest.
$ac_ext >&5
6468 ac_cv_func_lstat_empty_string_bug
=yes
6470 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6475 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
6476 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; }
6477 if test $ac_cv_func_lstat_empty_string_bug = yes; then
6478 case " $LIBOBJS " in
6479 *" lstat.$ac_objext "* ) ;;
6480 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext"
6485 cat >>confdefs.h
<<_ACEOF
6486 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
6491 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
6492 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
6493 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
6494 echo $ECHO_N "(cached) $ECHO_C" >&6
6496 rm -f conftest.sym conftest.
file
6498 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
6499 if test "$cross_compiling" = yes; then
6500 ac_cv_func_lstat_dereferences_slashed_symlink
=no
6502 cat >conftest.
$ac_ext <<_ACEOF
6505 cat confdefs.h
>>conftest.
$ac_ext
6506 cat >>conftest.
$ac_ext <<_ACEOF
6507 /* end confdefs.h. */
6508 $ac_includes_default
6513 /* Linux will dereference the symlink and fail.
6514 That is better in the sense that it means we will not
6515 have to compile and use the lstat wrapper. */
6516 return lstat ("conftest.sym/", &sbuf) == 0;
6521 rm -f conftest
$ac_exeext
6522 if { (ac_try
="$ac_link"
6524 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
6525 *) ac_try_echo=$ac_try;;
6527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6528 (eval "$ac_link") 2>&5
6530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6532 { (case "(($ac_try" in
6533 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
6534 *) ac_try_echo
=$ac_try;;
6536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6537 (eval "$ac_try") 2>&5
6539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540 (exit $ac_status); }; }; then
6541 ac_cv_func_lstat_dereferences_slashed_symlink
=yes
6543 echo "$as_me: program exited with status $ac_status" >&5
6544 echo "$as_me: failed program was:" >&5
6545 sed 's/^/| /' conftest.
$ac_ext >&5
6548 ac_cv_func_lstat_dereferences_slashed_symlink
=no
6550 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6555 # If the `ln -s' command failed, then we probably don't even
6556 # have an lstat function.
6557 ac_cv_func_lstat_dereferences_slashed_symlink
=no
6559 rm -f conftest.sym conftest.
file
6562 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
6563 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
6565 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
6567 cat >>confdefs.h
<<_ACEOF
6568 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
6572 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no
; then
6573 case " $LIBOBJS " in
6574 *" lstat.$ac_objext "* ) ;;
6575 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext"
6585 for ac_header
in $ac_header_list
6587 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6588 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6589 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6590 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6591 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6592 echo $ECHO_N "(cached) $ECHO_C" >&6
6594 ac_res
=`eval echo '${'$as_ac_Header'}'`
6595 { echo "$as_me:$LINENO: result: $ac_res" >&5
6596 echo "${ECHO_T}$ac_res" >&6; }
6598 # Is the header compilable?
6599 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6600 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6601 cat >conftest.
$ac_ext <<_ACEOF
6604 cat confdefs.h
>>conftest.
$ac_ext
6605 cat >>conftest.
$ac_ext <<_ACEOF
6606 /* end confdefs.h. */
6607 $ac_includes_default
6608 #include <$ac_header>
6610 rm -f conftest.
$ac_objext
6611 if { (ac_try
="$ac_compile"
6613 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
6614 *) ac_try_echo=$ac_try;;
6616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6617 (eval "$ac_compile") 2>conftest.er1
6619 grep -v '^ *+' conftest.er1 >conftest.err
6621 cat conftest.err >&5
6622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6623 (exit $ac_status); } && {
6624 test -z "$ac_c_werror_flag" ||
6625 test ! -s conftest.err
6626 } && test -s conftest.$ac_objext; then
6627 ac_header_compiler=yes
6629 echo "$as_me: failed program was:" >&5
6630 sed 's/^/| /' conftest.$ac_ext >&5
6632 ac_header_compiler=no
6635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6636 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6637 echo "${ECHO_T}$ac_header_compiler" >&6; }
6639 # Is the header present?
6640 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6641 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6642 cat >conftest.$ac_ext <<_ACEOF
6645 cat confdefs.h >>conftest.$ac_ext
6646 cat >>conftest.$ac_ext <<_ACEOF
6647 /* end confdefs.h. */
6648 #include <$ac_header>
6650 if { (ac_try="$ac_cpp conftest.$ac_ext"
6652 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
6653 *) ac_try_echo
=$ac_try;;
6655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6656 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6658 grep -v '^ *+' conftest.er1
>conftest.err
6660 cat conftest.err
>&5
6661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6662 (exit $ac_status); } >/dev
/null
&& {
6663 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6664 test ! -s conftest.err
6666 ac_header_preproc
=yes
6668 echo "$as_me: failed program was:" >&5
6669 sed 's/^/| /' conftest.
$ac_ext >&5
6671 ac_header_preproc
=no
6674 rm -f conftest.err conftest.
$ac_ext
6675 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6676 echo "${ECHO_T}$ac_header_preproc" >&6; }
6678 # So? What about this header?
6679 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6681 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6682 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6683 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6684 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6685 ac_header_preproc
=yes
6688 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6689 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6690 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6691 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6692 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6693 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6694 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6695 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6696 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6697 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6698 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6699 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6701 ## -------------------------------------------------- ##
6702 ## Report this to launchd-bug-reports@group.apple.com ##
6703 ## -------------------------------------------------- ##
6705 ) | sed "s/^/$as_me: WARNING: /" >&2
6708 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6710 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6711 echo $ECHO_N "(cached) $ECHO_C" >&6
6713 eval "$as_ac_Header=\$ac_header_preproc"
6715 ac_res
=`eval echo '${'$as_ac_Header'}'`
6716 { echo "$as_me:$LINENO: result: $ac_res" >&5
6717 echo "${ECHO_T}$ac_res" >&6; }
6720 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6721 cat >>confdefs.h
<<_ACEOF
6722 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6737 for ac_func
in $ac_func_list
6739 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6740 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6741 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6742 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6743 echo $ECHO_N "(cached) $ECHO_C" >&6
6745 cat >conftest.
$ac_ext <<_ACEOF
6748 cat confdefs.h
>>conftest.
$ac_ext
6749 cat >>conftest.
$ac_ext <<_ACEOF
6750 /* end confdefs.h. */
6751 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6752 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6753 #define $ac_func innocuous_$ac_func
6755 /* System header to define __stub macros and hopefully few prototypes,
6756 which can conflict with char $ac_func (); below.
6757 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6758 <limits.h> exists even on freestanding compilers. */
6761 # include <limits.h>
6763 # include <assert.h>
6768 /* Override any GCC internal prototype to avoid an error.
6769 Use char because int might match the return type of a GCC
6770 builtin and then its argument prototype would still apply. */
6775 /* The GNU C library defines this for functions which it implements
6776 to always fail with ENOSYS. Some functions are actually named
6777 something starting with __ and the normal name is an alias. */
6778 #if defined __stub_$ac_func || defined __stub___$ac_func
6790 rm -f conftest.
$ac_objext conftest
$ac_exeext
6791 if { (ac_try
="$ac_link"
6793 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
6794 *) ac_try_echo=$ac_try;;
6796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6797 (eval "$ac_link") 2>conftest.er1
6799 grep -v '^ *+' conftest.er1 >conftest.err
6801 cat conftest.err >&5
6802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6803 (exit $ac_status); } && {
6804 test -z "$ac_c_werror_flag" ||
6805 test ! -s conftest.err
6806 } && test -s conftest$ac_exeext &&
6807 $as_test_x conftest$ac_exeext; then
6808 eval "$as_ac_var=yes"
6810 echo "$as_me: failed program was:" >&5
6811 sed 's/^/| /' conftest.$ac_ext >&5
6813 eval "$as_ac_var=no"
6816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6817 conftest$ac_exeext conftest.$ac_ext
6819 ac_res=`eval echo '${'$as_ac_var'}'`
6820 { echo "$as_me:$LINENO: result: $ac_res" >&5
6821 echo "${ECHO_T}$ac_res" >&6; }
6822 if test `eval echo '${'$as_ac_var'}'` = yes; then
6823 cat >>confdefs.h <<_ACEOF
6824 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6846 { echo "$as_me:$LINENO: checking for working mktime" >&5
6847 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
6848 if test "${ac_cv_func_working_mktime+set}" = set; then
6849 echo $ECHO_N "(cached) $ECHO_C" >&6
6851 if test "$cross_compiling" = yes; then
6852 ac_cv_func_working_mktime=no
6854 cat >conftest.$ac_ext <<_ACEOF
6857 cat confdefs.h >>conftest.$ac_ext
6858 cat >>conftest.$ac_ext <<_ACEOF
6859 /* end confdefs.h. */
6860 /* Test program from Paul Eggert and Tony Leneis. */
6861 #ifdef TIME_WITH_SYS_TIME
6862 # include <sys/time.h>
6865 # ifdef HAVE_SYS_TIME_H
6866 # include <sys/time.h>
6874 #ifdef HAVE_UNISTD_H
6875 # include <unistd.h>
6879 # define alarm(X) /* empty */
6882 /* Work around redefinition to rpl_putenv by other config tests. */
6885 static time_t time_t_max;
6886 static time_t time_t_min;
6888 /* Values we'll use to set the TZ environment variable. */
6889 static char *tz_strings[] = {
6890 (char *) 0, "TZ=GMT0", "TZ=JST-9",
6891 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
6893 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
6895 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
6896 Based on a problem report from Andreas Jaeger. */
6898 spring_forward_gap ()
6900 /* glibc (up to about 1998-10-07) failed this test. */
6903 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
6904 instead of "TZ=America/Vancouver" in order to detect the bug even
6905 on systems that don't support the Olson extension, or don't have the
6906 full zoneinfo tables installed. */
6907 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
6916 return mktime (&tm) != (time_t) -1;
6924 return ! (lt = localtime (&now)) || mktime (lt) == now;
6931 return (mktime_test1 (now)
6932 && mktime_test1 ((time_t) (time_t_max - now))
6933 && mktime_test1 ((time_t) (time_t_min + now)));
6939 /* Based on code from Ariel Faigon. */
6949 return tm.tm_mon == 2 && tm.tm_mday == 31;
6958 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
6960 if (now != (time_t) -1)
6962 struct tm *lt = localtime (&now);
6964 && lt->tm_year == tm.tm_year
6965 && lt->tm_mon == tm.tm_mon
6966 && lt->tm_mday == tm.tm_mday
6967 && lt->tm_hour == tm.tm_hour
6968 && lt->tm_min == tm.tm_min
6969 && lt->tm_sec == tm.tm_sec
6970 && lt->tm_yday == tm.tm_yday
6971 && lt->tm_wday == tm.tm_wday
6972 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
6973 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
6982 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
6983 ignoring leap seconds. */
6984 unsigned long int answer = 2527315200UL;
6988 tm.tm_year = 2050 - 1900;
6991 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
6994 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
6995 instead of "TZ=America/Vancouver" in order to detect the bug even
6996 on systems that don't support the Olson extension, or don't have the
6997 full zoneinfo tables installed. */
6998 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
7002 /* Check that the result is either a failure, or close enough
7003 to the correct answer that we can assume the discrepancy is
7004 due to leap seconds. */
7005 return (t == (time_t) -1
7006 || (0 < t && answer - 120 <= t && t <= answer + 120));
7015 /* This test makes some buggy mktime implementations loop.
7016 Give up after 60 seconds; a mktime slower than that
7017 isn't worth using anyway. */
7020 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
7023 if ((time_t) -1 < 0)
7024 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
7026 delta = time_t_max / 997; /* a suitable prime number */
7027 for (i = 0; i < N_STRINGS; i++)
7030 putenv (tz_strings[i]);
7032 for (t = 0; t <= time_t_max - delta; t += delta)
7033 if (! mktime_test (t))
7035 if (! (mktime_test ((time_t) 1)
7036 && mktime_test ((time_t) (60 * 60))
7037 && mktime_test ((time_t) (60 * 60 * 24))))
7040 for (j = 1; 0 < j; j *= 2)
7041 if (! bigtime_test (j))
7043 if (! bigtime_test (j - 1))
7046 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
7049 rm -f conftest$ac_exeext
7050 if { (ac_try="$ac_link"
7052 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
7053 *) ac_try_echo
=$ac_try;;
7055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7056 (eval "$ac_link") 2>&5
7058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7060 { (case "(($ac_try" in
7061 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
7062 *) ac_try_echo=$ac_try;;
7064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7065 (eval "$ac_try") 2>&5
7067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068 (exit $ac_status); }; }; then
7069 ac_cv_func_working_mktime=yes
7071 echo "$as_me: program exited with status $ac_status" >&5
7072 echo "$as_me: failed program was:" >&5
7073 sed 's/^/| /' conftest.$ac_ext >&5
7076 ac_cv_func_working_mktime=no
7078 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7083 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
7084 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
7085 if test $ac_cv_func_working_mktime = no; then
7086 case " $LIBOBJS " in
7087 *" mktime.$ac_objext "* ) ;;
7088 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
7096 for ac_header in sys/select.h sys/socket.h
7098 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7099 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7100 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7101 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7103 echo $ECHO_N "(cached) $ECHO_C" >&6
7105 ac_res=`eval echo '${'$as_ac_Header'}'`
7106 { echo "$as_me:$LINENO: result: $ac_res" >&5
7107 echo "${ECHO_T}$ac_res" >&6; }
7109 # Is the header compilable?
7110 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7111 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7112 cat >conftest.$ac_ext <<_ACEOF
7115 cat confdefs.h >>conftest.$ac_ext
7116 cat >>conftest.$ac_ext <<_ACEOF
7117 /* end confdefs.h. */
7118 $ac_includes_default
7119 #include <$ac_header>
7121 rm -f conftest.$ac_objext
7122 if { (ac_try="$ac_compile"
7124 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
7125 *) ac_try_echo
=$ac_try;;
7127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7128 (eval "$ac_compile") 2>conftest.er1
7130 grep -v '^ *+' conftest.er1
>conftest.err
7132 cat conftest.err
>&5
7133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7134 (exit $ac_status); } && {
7135 test -z "$ac_c_werror_flag" ||
7136 test ! -s conftest.err
7137 } && test -s conftest.
$ac_objext; then
7138 ac_header_compiler
=yes
7140 echo "$as_me: failed program was:" >&5
7141 sed 's/^/| /' conftest.
$ac_ext >&5
7143 ac_header_compiler
=no
7146 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7147 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7148 echo "${ECHO_T}$ac_header_compiler" >&6; }
7150 # Is the header present?
7151 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7152 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7153 cat >conftest.
$ac_ext <<_ACEOF
7156 cat confdefs.h
>>conftest.
$ac_ext
7157 cat >>conftest.
$ac_ext <<_ACEOF
7158 /* end confdefs.h. */
7159 #include <$ac_header>
7161 if { (ac_try
="$ac_cpp conftest.$ac_ext"
7163 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
7164 *) ac_try_echo=$ac_try;;
7166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7167 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7169 grep -v '^ *+' conftest.er1 >conftest.err
7171 cat conftest.err >&5
7172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7173 (exit $ac_status); } >/dev/null && {
7174 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7175 test ! -s conftest.err
7177 ac_header_preproc=yes
7179 echo "$as_me: failed program was:" >&5
7180 sed 's/^/| /' conftest.$ac_ext >&5
7182 ac_header_preproc=no
7185 rm -f conftest.err conftest.$ac_ext
7186 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7187 echo "${ECHO_T}$ac_header_preproc" >&6; }
7189 # So? What about this header?
7190 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7192 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7193 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7194 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7195 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7196 ac_header_preproc=yes
7199 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7200 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7201 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7202 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7203 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7204 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7205 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7206 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7207 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7208 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7209 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7210 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7212 ## -------------------------------------------------- ##
7213 ## Report this to launchd-bug-reports@group.apple.com ##
7214 ## -------------------------------------------------- ##
7216 ) | sed "s/^/$as_me: WARNING: /" >&2
7219 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7220 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7221 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7222 echo $ECHO_N "(cached) $ECHO_C" >&6
7224 eval "$as_ac_Header=\$ac_header_preproc"
7226 ac_res=`eval echo '${'$as_ac_Header'}'`
7227 { echo "$as_me:$LINENO: result: $ac_res" >&5
7228 echo "${ECHO_T}$ac_res" >&6; }
7231 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7232 cat >>confdefs.h <<_ACEOF
7233 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7240 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
7241 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
7242 if test "${ac_cv_func_select_args+set}" = set; then
7243 echo $ECHO_N "(cached) $ECHO_C" >&6
7245 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
7246 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
7247 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
7248 cat >conftest.$ac_ext <<_ACEOF
7251 cat confdefs.h >>conftest.$ac_ext
7252 cat >>conftest.$ac_ext <<_ACEOF
7253 /* end confdefs.h. */
7254 $ac_includes_default
7255 #ifdef HAVE_SYS_SELECT_H
7256 # include <sys/select.h>
7258 #ifdef HAVE_SYS_SOCKET_H
7259 # include <sys/socket.h>
7265 extern int select ($ac_arg1,
7266 $ac_arg234, $ac_arg234, $ac_arg234,
7272 rm -f conftest.$ac_objext
7273 if { (ac_try="$ac_compile"
7275 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
7276 *) ac_try_echo
=$ac_try;;
7278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7279 (eval "$ac_compile") 2>conftest.er1
7281 grep -v '^ *+' conftest.er1
>conftest.err
7283 cat conftest.err
>&5
7284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7285 (exit $ac_status); } && {
7286 test -z "$ac_c_werror_flag" ||
7287 test ! -s conftest.err
7288 } && test -s conftest.
$ac_objext; then
7289 ac_cv_func_select_args
="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
7291 echo "$as_me: failed program was:" >&5
7292 sed 's/^/| /' conftest.
$ac_ext >&5
7297 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7301 # Provide a safe default value.
7302 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
7305 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
7306 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
7307 ac_save_IFS
=$IFS; IFS
=','
7308 set dummy
`echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
7312 cat >>confdefs.h
<<_ACEOF
7313 #define SELECT_TYPE_ARG1 $1
7317 cat >>confdefs.h
<<_ACEOF
7318 #define SELECT_TYPE_ARG234 ($2)
7322 cat >>confdefs.h
<<_ACEOF
7323 #define SELECT_TYPE_ARG5 ($3)
7328 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7329 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7330 if test "${ac_cv_type_signal+set}" = set; then
7331 echo $ECHO_N "(cached) $ECHO_C" >&6
7333 cat >conftest.
$ac_ext <<_ACEOF
7336 cat confdefs.h
>>conftest.
$ac_ext
7337 cat >>conftest.
$ac_ext <<_ACEOF
7338 /* end confdefs.h. */
7339 #include <sys/types.h>
7345 return *(signal (0, 0)) (0) == 1;
7350 rm -f conftest.
$ac_objext
7351 if { (ac_try
="$ac_compile"
7353 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
7354 *) ac_try_echo=$ac_try;;
7356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7357 (eval "$ac_compile") 2>conftest.er1
7359 grep -v '^ *+' conftest.er1 >conftest.err
7361 cat conftest.err >&5
7362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363 (exit $ac_status); } && {
7364 test -z "$ac_c_werror_flag" ||
7365 test ! -s conftest.err
7366 } && test -s conftest.$ac_objext; then
7367 ac_cv_type_signal=int
7369 echo "$as_me: failed program was:" >&5
7370 sed 's/^/| /' conftest.$ac_ext >&5
7372 ac_cv_type_signal=void
7375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7377 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7378 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7380 cat >>confdefs.h <<_ACEOF
7381 #define RETSIGTYPE $ac_cv_type_signal
7385 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
7386 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
7387 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
7388 echo $ECHO_N "(cached) $ECHO_C" >&6
7390 if test "$cross_compiling" = yes; then
7391 ac_cv_func_stat_empty_string_bug=yes
7393 cat >conftest.$ac_ext <<_ACEOF
7396 cat confdefs.h >>conftest.$ac_ext
7397 cat >>conftest.$ac_ext <<_ACEOF
7398 /* end confdefs.h. */
7399 $ac_includes_default
7404 return stat ("", &sbuf) == 0;
7409 rm -f conftest$ac_exeext
7410 if { (ac_try="$ac_link"
7412 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
7413 *) ac_try_echo
=$ac_try;;
7415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7416 (eval "$ac_link") 2>&5
7418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7420 { (case "(($ac_try" in
7421 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
7422 *) ac_try_echo=$ac_try;;
7424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7425 (eval "$ac_try") 2>&5
7427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7428 (exit $ac_status); }; }; then
7429 ac_cv_func_stat_empty_string_bug=no
7431 echo "$as_me: program exited with status $ac_status" >&5
7432 echo "$as_me: failed program was:" >&5
7433 sed 's/^/| /' conftest.$ac_ext >&5
7436 ac_cv_func_stat_empty_string_bug=yes
7438 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7443 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
7444 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
7445 if test $ac_cv_func_stat_empty_string_bug = yes; then
7446 case " $LIBOBJS " in
7447 *" stat.$ac_objext "* ) ;;
7448 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
7453 cat >>confdefs.h <<_ACEOF
7454 #define HAVE_STAT_EMPTY_STRING_BUG 1
7481 for ac_func in atexit dup2 gethostname gettimeofday malloc mmap memmove memset mkdir munmap realloc rmdir select setenv socket strcasecmp strchr strdup strerror strrchr strstr strtol
7483 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7484 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7485 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7486 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7487 echo $ECHO_N "(cached) $ECHO_C" >&6
7489 cat >conftest.$ac_ext <<_ACEOF
7492 cat confdefs.h >>conftest.$ac_ext
7493 cat >>conftest.$ac_ext <<_ACEOF
7494 /* end confdefs.h. */
7495 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7496 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7497 #define $ac_func innocuous_$ac_func
7499 /* System header to define __stub macros and hopefully few prototypes,
7500 which can conflict with char $ac_func (); below.
7501 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7502 <limits.h> exists even on freestanding compilers. */
7505 # include <limits.h>
7507 # include <assert.h>
7512 /* Override any GCC internal prototype to avoid an error.
7513 Use char because int might match the return type of a GCC
7514 builtin and then its argument prototype would still apply. */
7519 /* The GNU C library defines this for functions which it implements
7520 to always fail with ENOSYS. Some functions are actually named
7521 something starting with __ and the normal name is an alias. */
7522 #if defined __stub_$ac_func || defined __stub___$ac_func
7534 rm -f conftest.$ac_objext conftest$ac_exeext
7535 if { (ac_try="$ac_link"
7537 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
7538 *) ac_try_echo
=$ac_try;;
7540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7541 (eval "$ac_link") 2>conftest.er1
7543 grep -v '^ *+' conftest.er1
>conftest.err
7545 cat conftest.err
>&5
7546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7547 (exit $ac_status); } && {
7548 test -z "$ac_c_werror_flag" ||
7549 test ! -s conftest.err
7550 } && test -s conftest
$ac_exeext &&
7551 $as_test_x conftest
$ac_exeext; then
7552 eval "$as_ac_var=yes"
7554 echo "$as_me: failed program was:" >&5
7555 sed 's/^/| /' conftest.
$ac_ext >&5
7557 eval "$as_ac_var=no"
7560 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7561 conftest
$ac_exeext conftest.
$ac_ext
7563 ac_res
=`eval echo '${'$as_ac_var'}'`
7564 { echo "$as_me:$LINENO: result: $ac_res" >&5
7565 echo "${ECHO_T}$ac_res" >&6; }
7566 if test `eval echo '${'$as_ac_var'}'` = yes; then
7567 cat >>confdefs.h
<<_ACEOF
7568 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7575 # check for a Security framework that includes session support
7576 ac_func_search_save_LIBS
=$LIBS
7577 LIBS
="-framework Security $ac_func_search_save_LIBS"
7578 { echo "$as_me:$LINENO: checking for SessionCreate" >&5
7579 echo $ECHO_N "checking for SessionCreate... $ECHO_C" >&6; }
7580 if test "${ac_cv_func_SessionCreate+set}" = set; then
7581 echo $ECHO_N "(cached) $ECHO_C" >&6
7583 cat >conftest.
$ac_ext <<_ACEOF
7586 cat confdefs.h
>>conftest.
$ac_ext
7587 cat >>conftest.
$ac_ext <<_ACEOF
7588 /* end confdefs.h. */
7589 /* Define SessionCreate to an innocuous variant, in case <limits.h> declares SessionCreate.
7590 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7591 #define SessionCreate innocuous_SessionCreate
7593 /* System header to define __stub macros and hopefully few prototypes,
7594 which can conflict with char SessionCreate (); below.
7595 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7596 <limits.h> exists even on freestanding compilers. */
7599 # include <limits.h>
7601 # include <assert.h>
7604 #undef SessionCreate
7606 /* Override any GCC internal prototype to avoid an error.
7607 Use char because int might match the return type of a GCC
7608 builtin and then its argument prototype would still apply. */
7612 char SessionCreate ();
7613 /* The GNU C library defines this for functions which it implements
7614 to always fail with ENOSYS. Some functions are actually named
7615 something starting with __ and the normal name is an alias. */
7616 #if defined __stub_SessionCreate || defined __stub___SessionCreate
7623 return SessionCreate ();
7628 rm -f conftest.
$ac_objext conftest
$ac_exeext
7629 if { (ac_try
="$ac_link"
7631 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
7632 *) ac_try_echo=$ac_try;;
7634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7635 (eval "$ac_link") 2>conftest.er1
7637 grep -v '^ *+' conftest.er1 >conftest.err
7639 cat conftest.err >&5
7640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641 (exit $ac_status); } && {
7642 test -z "$ac_c_werror_flag" ||
7643 test ! -s conftest.err
7644 } && test -s conftest$ac_exeext &&
7645 $as_test_x conftest$ac_exeext; then
7646 ac_cv_func_SessionCreate=yes
7648 echo "$as_me: failed program was:" >&5
7649 sed 's/^/| /' conftest.$ac_ext >&5
7651 ac_cv_func_SessionCreate=no
7654 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7655 conftest$ac_exeext conftest.$ac_ext
7657 { echo "$as_me:$LINENO: result: $ac_cv_func_SessionCreate" >&5
7658 echo "${ECHO_T}$ac_cv_func_SessionCreate" >&6; }
7659 if test $ac_cv_func_SessionCreate = yes; then
7661 cat >>confdefs.h <<\_ACEOF
7662 #define HAVE_SECURITY 1
7665 LIBS_SECURITY="-framework Security"
7667 WEAKLIBS_SECURITY="-weak_framework Security"
7671 LIBS=$ac_func_search_save_LIBS
7673 # check for seatbelt
7674 { echo "$as_me:$LINENO: checking for sandbox_init" >&5
7675 echo $ECHO_N "checking for sandbox_init... $ECHO_C" >&6; }
7676 if test "${ac_cv_func_sandbox_init+set}" = set; then
7677 echo $ECHO_N "(cached) $ECHO_C" >&6
7679 cat >conftest.$ac_ext <<_ACEOF
7682 cat confdefs.h >>conftest.$ac_ext
7683 cat >>conftest.$ac_ext <<_ACEOF
7684 /* end confdefs.h. */
7685 /* Define sandbox_init to an innocuous variant, in case <limits.h> declares sandbox_init.
7686 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7687 #define sandbox_init innocuous_sandbox_init
7689 /* System header to define __stub macros and hopefully few prototypes,
7690 which can conflict with char sandbox_init (); below.
7691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7692 <limits.h> exists even on freestanding compilers. */
7695 # include <limits.h>
7697 # include <assert.h>
7702 /* Override any GCC internal prototype to avoid an error.
7703 Use char because int might match the return type of a GCC
7704 builtin and then its argument prototype would still apply. */
7708 char sandbox_init ();
7709 /* The GNU C library defines this for functions which it implements
7710 to always fail with ENOSYS. Some functions are actually named
7711 something starting with __ and the normal name is an alias. */
7712 #if defined __stub_sandbox_init || defined __stub___sandbox_init
7719 return sandbox_init ();
7724 rm -f conftest.$ac_objext conftest$ac_exeext
7725 if { (ac_try="$ac_link"
7727 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
7728 *) ac_try_echo
=$ac_try;;
7730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7731 (eval "$ac_link") 2>conftest.er1
7733 grep -v '^ *+' conftest.er1
>conftest.err
7735 cat conftest.err
>&5
7736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737 (exit $ac_status); } && {
7738 test -z "$ac_c_werror_flag" ||
7739 test ! -s conftest.err
7740 } && test -s conftest
$ac_exeext &&
7741 $as_test_x conftest
$ac_exeext; then
7742 ac_cv_func_sandbox_init
=yes
7744 echo "$as_me: failed program was:" >&5
7745 sed 's/^/| /' conftest.
$ac_ext >&5
7747 ac_cv_func_sandbox_init
=no
7750 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7751 conftest
$ac_exeext conftest.
$ac_ext
7753 { echo "$as_me:$LINENO: result: $ac_cv_func_sandbox_init" >&5
7754 echo "${ECHO_T}$ac_cv_func_sandbox_init" >&6; }
7755 if test $ac_cv_func_sandbox_init = yes; then
7757 cat >>confdefs.h
<<\_ACEOF
7758 #define HAVE_SANDBOX 1
7764 # check for quarantine
7765 { echo "$as_me:$LINENO: checking for _qtn_proc_init_with_data" >&5
7766 echo $ECHO_N "checking for _qtn_proc_init_with_data... $ECHO_C" >&6; }
7767 if test "${ac_cv_func__qtn_proc_init_with_data+set}" = set; then
7768 echo $ECHO_N "(cached) $ECHO_C" >&6
7770 cat >conftest.
$ac_ext <<_ACEOF
7773 cat confdefs.h
>>conftest.
$ac_ext
7774 cat >>conftest.
$ac_ext <<_ACEOF
7775 /* end confdefs.h. */
7776 /* Define _qtn_proc_init_with_data to an innocuous variant, in case <limits.h> declares _qtn_proc_init_with_data.
7777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7778 #define _qtn_proc_init_with_data innocuous__qtn_proc_init_with_data
7780 /* System header to define __stub macros and hopefully few prototypes,
7781 which can conflict with char _qtn_proc_init_with_data (); below.
7782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7783 <limits.h> exists even on freestanding compilers. */
7786 # include <limits.h>
7788 # include <assert.h>
7791 #undef _qtn_proc_init_with_data
7793 /* Override any GCC internal prototype to avoid an error.
7794 Use char because int might match the return type of a GCC
7795 builtin and then its argument prototype would still apply. */
7799 char _qtn_proc_init_with_data ();
7800 /* The GNU C library defines this for functions which it implements
7801 to always fail with ENOSYS. Some functions are actually named
7802 something starting with __ and the normal name is an alias. */
7803 #if defined __stub__qtn_proc_init_with_data || defined __stub____qtn_proc_init_with_data
7810 return _qtn_proc_init_with_data ();
7815 rm -f conftest.
$ac_objext conftest
$ac_exeext
7816 if { (ac_try
="$ac_link"
7818 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
7819 *) ac_try_echo=$ac_try;;
7821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7822 (eval "$ac_link") 2>conftest.er1
7824 grep -v '^ *+' conftest.er1 >conftest.err
7826 cat conftest.err >&5
7827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828 (exit $ac_status); } && {
7829 test -z "$ac_c_werror_flag" ||
7830 test ! -s conftest.err
7831 } && test -s conftest$ac_exeext &&
7832 $as_test_x conftest$ac_exeext; then
7833 ac_cv_func__qtn_proc_init_with_data=yes
7835 echo "$as_me: failed program was:" >&5
7836 sed 's/^/| /' conftest.$ac_ext >&5
7838 ac_cv_func__qtn_proc_init_with_data=no
7841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7842 conftest$ac_exeext conftest.$ac_ext
7844 { echo "$as_me:$LINENO: result: $ac_cv_func__qtn_proc_init_with_data" >&5
7845 echo "${ECHO_T}$ac_cv_func__qtn_proc_init_with_data" >&6; }
7846 if test $ac_cv_func__qtn_proc_init_with_data = yes; then
7848 cat >>confdefs.h <<\_ACEOF
7849 #define HAVE_QUARANTINE 1
7855 ac_config_files="$ac_config_files Makefile src/Makefile"
7858 if test "$RC_ProjectName" = launchd_libs; then
7866 if test $(tconf --test TARGET_OS_EMBEDDED) = YES; then
7867 DO_EMBEDDED_MAGIC_TRUE=
7868 DO_EMBEDDED_MAGIC_FALSE='#'
7870 DO_EMBEDDED_MAGIC_TRUE='#'
7871 DO_EMBEDDED_MAGIC_FALSE=
7876 cat >confcache <<\_ACEOF
7877 # This file is a shell script that caches the results of configure
7878 # tests run on this system so they can be shared between configure
7879 # scripts and configure runs, see configure's option --config-cache.
7880 # It is not useful on other systems. If it contains results you don't
7881 # want to keep, you may remove or edit it.
7883 # config.status only pays attention to the cache file if you give it
7884 # the --recheck option to rerun configure.
7886 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
7887 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7892 # The following way of writing the cache mishandles newlines in values,
7893 # but we know of no workaround that is simple, portable, and efficient.
7894 # So, we kill variables containing newlines.
7895 # Ultrix sh set writes to stderr and can't be redirected directly,
7896 # and sets the high bit in the cache file unless we assign to the vars.
7898 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7899 eval ac_val
=\$
$ac_var
7903 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
7904 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
7907 _
| IFS
| as_nl
) ;; #(
7908 *) $as_unset $ac_var ;;
7914 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7915 *${as_nl}ac_space
=\
*)
7916 # `set' does not quote correctly, so add quotes (double-quote
7917 # substitution turns \\\\ into \\, and sed turns \\ into \).
7920 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7923 # `set' quotes correctly as required by POSIX, so do not add quotes.
7924 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7933 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7935 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7937 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
7938 if test -w "$cache_file"; then
7939 test "x$cache_file" != "x/dev/null" &&
7940 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
7941 echo "$as_me: updating cache $cache_file" >&6;}
7942 cat confcache
>$cache_file
7944 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
7945 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7950 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7951 # Let make expand exec_prefix.
7952 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7954 DEFS
=-DHAVE_CONFIG_H
7958 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
7959 # 1. Remove the extension, and $U if already installed.
7960 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
7961 ac_i
=`echo "$ac_i" | sed "$ac_script"`
7962 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7963 # will be set to the directory where LIBOBJS objects are built.
7964 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7965 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
7969 LTLIBOBJS
=$ac_ltlibobjs
7972 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7973 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
7974 Usually this means the macro was only invoked conditionally." >&5
7975 echo "$as_me: error: conditional \"AMDEP\" was never defined.
7976 Usually this means the macro was only invoked conditionally." >&2;}
7977 { (exit 1); exit 1; }; }
7979 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7980 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
7981 Usually this means the macro was only invoked conditionally." >&5
7982 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
7983 Usually this means the macro was only invoked conditionally." >&2;}
7984 { (exit 1); exit 1; }; }
7986 if test -z "${LIBS_ONLY_TRUE}" && test -z "${LIBS_ONLY_FALSE}"; then
7987 { { echo "$as_me:$LINENO: error: conditional \"LIBS_ONLY\" was never defined.
7988 Usually this means the macro was only invoked conditionally." >&5
7989 echo "$as_me: error: conditional \"LIBS_ONLY\" was never defined.
7990 Usually this means the macro was only invoked conditionally." >&2;}
7991 { (exit 1); exit 1; }; }
7993 if test -z "${DO_EMBEDDED_MAGIC_TRUE}" && test -z "${DO_EMBEDDED_MAGIC_FALSE}"; then
7994 { { echo "$as_me:$LINENO: error: conditional \"DO_EMBEDDED_MAGIC\" was never defined.
7995 Usually this means the macro was only invoked conditionally." >&5
7996 echo "$as_me: error: conditional \"DO_EMBEDDED_MAGIC\" was never defined.
7997 Usually this means the macro was only invoked conditionally." >&2;}
7998 { (exit 1); exit 1; }; }
8001 : ${CONFIG_STATUS=./config.status}
8002 ac_clean_files_save
=$ac_clean_files
8003 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
8004 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8005 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8006 cat >$CONFIG_STATUS <<_ACEOF
8008 # Generated by $as_me.
8009 # Run this file to recreate the current configuration.
8010 # Compiler output produced by configure, useful for debugging
8011 # configure, is in config.log if it exists.
8016 SHELL=\${CONFIG_SHELL-$SHELL}
8019 cat >>$CONFIG_STATUS <<\_ACEOF
8020 ## --------------------- ##
8021 ## M4sh Initialization. ##
8022 ## --------------------- ##
8024 # Be more Bourne compatible
8025 DUALCASE
=1; export DUALCASE
# for MKS sh
8026 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
8029 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8030 # is contrary to our usage. Disable this feature.
8031 alias -g '${1+"$@"}'='"$@"'
8032 setopt NO_GLOB_SUBST
8034 case `(set -o) 2>/dev/null` in
8035 *posix
*) set -o posix
;;
8044 # Avoid depending upon Character Ranges.
8045 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
8046 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8047 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
8048 as_cr_digits
='0123456789'
8049 as_cr_alnum
=$as_cr_Letters$as_cr_digits
8051 # The user is always right.
8052 if test "${PATH_SEPARATOR+set}" != set; then
8053 echo "#! /bin/sh" >conf$$.sh
8054 echo "exit 0" >>conf$$.sh
8056 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
8064 # Support unset when possible.
8065 if ( (MAIL
=60; unset MAIL
) || exit) >/dev
/null
2>&1; then
8073 # We need space, tab and new line, in precisely that order. Quoting is
8074 # there to prevent editors from complaining about space-tab.
8075 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8076 # splitting by setting IFS to empty value.)
8081 # Find who we are. Look in the path if we contain no directory separator.
8083 *[\\/]* ) as_myself
=$0 ;;
8084 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8088 test -z "$as_dir" && as_dir
=.
8089 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
8095 # We did not find ourselves, most probably we were run as `sh COMMAND'
8096 # in which case we are not to be found in the path.
8097 if test "x$as_myself" = x
; then
8100 if test ! -f "$as_myself"; then
8101 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8102 { (exit 1); exit 1; }
8105 # Work around bugs in pre-3.0 UWIN ksh.
8106 for as_var
in ENV MAIL MAILPATH
8107 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
8115 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8116 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8117 LC_TELEPHONE LC_TIME
8119 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8120 eval $as_var=C
; export $as_var
8122 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
8126 # Required to use basename.
8127 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
8128 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
8134 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8135 as_basename
=basename
8141 # Name of the executable.
8142 as_me
=`$as_basename -- "$0" ||
8143 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8144 X"$0" : 'X\(//\)$' \| \
8145 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8147 sed '/^.*\/\([^/][^/]*\)\/*$/{
8168 test "x$as_lineno_1" != "x$as_lineno_2" &&
8169 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
8171 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8172 # uniformly replaced by the line number. The first 'sed' inserts a
8173 # line-number line after each line using $LINENO; the second 'sed'
8174 # does the real work. The second script uses 'N' to pair each
8175 # line-number line with the line containing $LINENO, and appends
8176 # trailing '-' during substitution so that $LINENO is not a special
8178 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8179 # scripts with optimization help from Paolo Bonzini. Blame Lee
8180 # E. McMahon (1931-1989) for sed's syntax. :-)
8192 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
8196 chmod +x
"$as_me.lineno" ||
8197 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
8198 { (exit 1); exit 1; }; }
8200 # Don't try to exec as it changes $[0], causing all sort of problems
8201 # (the dirname of $[0] is not the place where we might find the
8202 # original and so on. Autoconf is especially sensitive to this).
8204 # Exit status is that of the last command.
8209 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
8215 ECHO_C
= ECHO_N
= ECHO_T
=
8218 case `echo 'x\c'` in
8219 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
8226 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
8227 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
8233 rm -f conf$$ conf$$.exe conf$$.
file
8234 if test -d conf$$.dir
; then
8235 rm -f conf$$.dir
/conf$$.
file
8241 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
8243 # ... but there are two gotchas:
8244 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8245 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8246 # In both cases, we have to default to `cp -p'.
8247 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe
||
8249 elif ln conf$$.
file conf$$
2>/dev
/null
; then
8254 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
8255 rmdir conf$$.dir
2>/dev
/null
8257 if mkdir -p .
2>/dev
/null
; then
8260 test -d .
/-p && rmdir .
/-p
8264 if test -x / >/dev
/null
2>&1; then
8267 if ls -dL / >/dev
/null
2>&1; then
8274 if test -d "$1"; then
8280 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
8281 ???[sx]*):;;*)false;;esac;fi
8285 as_executable_p
=$as_test_x
8287 # Sed expression to map a string onto a valid CPP name.
8288 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8290 # Sed expression to map a string onto a valid variable name.
8291 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8296 # Save the log message, to keep $[0] and so on meaningful, and to
8297 # report actual input values of CONFIG_FILES etc. instead of their
8298 # values after options handling.
8300 This file was extended by launchd $as_me 1.0, which was
8301 generated by GNU Autoconf 2.61. Invocation command line was
8303 CONFIG_FILES = $CONFIG_FILES
8304 CONFIG_HEADERS = $CONFIG_HEADERS
8305 CONFIG_LINKS = $CONFIG_LINKS
8306 CONFIG_COMMANDS = $CONFIG_COMMANDS
8309 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8314 cat >>$CONFIG_STATUS <<_ACEOF
8315 # Files that config.status was made for.
8316 config_files="$ac_config_files"
8317 config_headers="$ac_config_headers"
8318 config_commands="$ac_config_commands"
8322 cat >>$CONFIG_STATUS <<\_ACEOF
8324 \`$as_me' instantiates files from templates according to the
8325 current configuration.
8327 Usage: $0 [OPTIONS] [FILE]...
8329 -h, --help print this help, then exit
8330 -V, --version print version number and configuration settings, then exit
8331 -q, --quiet do not print progress messages
8332 -d, --debug don't remove temporary files
8333 --recheck update $as_me by reconfiguring in the same conditions
8334 --file=FILE[:TEMPLATE]
8335 instantiate the configuration file FILE
8336 --header=FILE[:TEMPLATE]
8337 instantiate the configuration header FILE
8339 Configuration files:
8342 Configuration headers:
8345 Configuration commands:
8348 Report bugs to <bug-autoconf@gnu.org>."
8351 cat >>$CONFIG_STATUS <<_ACEOF
8353 launchd config.status 1.0
8354 configured by $0, generated by GNU Autoconf 2.61,
8355 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
8357 Copyright (C) 2006 Free Software Foundation, Inc.
8358 This config.status script is free software; the Free Software Foundation
8359 gives unlimited permission to copy, distribute and modify it."
8367 cat >>$CONFIG_STATUS <<\_ACEOF
8368 # If no file are specified by the user, then we need to provide default
8369 # value. By we need to know if files were specified by the user.
8375 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
8376 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
8387 # Handling of the options.
8388 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8390 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8391 echo "$ac_cs_version"; exit ;;
8392 --debug | --debu | --deb | --de | --d | -d )
8394 --file | --fil | --fi | --f )
8396 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
8397 ac_need_defaults
=false
;;
8398 --header | --heade | --head | --hea )
8400 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
8401 ac_need_defaults
=false
;;
8403 # Conflict between --help and --header
8404 { echo "$as_me: error: ambiguous option: $1
8405 Try \`$0 --help' for more information." >&2
8406 { (exit 1); exit 1; }; };;
8407 --help | --hel | -h )
8408 echo "$ac_cs_usage"; exit ;;
8409 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8410 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8414 -*) { echo "$as_me: error: unrecognized option: $1
8415 Try \`$0 --help' for more information." >&2
8416 { (exit 1); exit 1; }; } ;;
8418 *) ac_config_targets
="$ac_config_targets $1"
8419 ac_need_defaults
=false
;;
8425 ac_configure_extra_args
=
8427 if $ac_cs_silent; then
8429 ac_configure_extra_args
="$ac_configure_extra_args --silent"
8433 cat >>$CONFIG_STATUS <<_ACEOF
8434 if \$ac_cs_recheck; then
8435 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8438 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8442 cat >>$CONFIG_STATUS <<\_ACEOF
8446 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8447 ## Running $as_me. ##
8453 cat >>$CONFIG_STATUS <<_ACEOF
8457 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8461 cat >>$CONFIG_STATUS <<\_ACEOF
8463 # Handling of arguments.
8464 for ac_config_target
in $ac_config_targets
8466 case $ac_config_target in
8467 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h" ;;
8468 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
8469 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
8470 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
8472 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8473 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8474 { (exit 1); exit 1; }; };;
8479 # If the user did not use the arguments to specify the items to instantiate,
8480 # then the envvar interface is used. Set only those that are not.
8481 # We use the long form for the default assignment because of an extremely
8482 # bizarre bug on SunOS 4.1.3.
8483 if $ac_need_defaults; then
8484 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
8485 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
8486 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
8489 # Have a temporary directory for convenience. Make it in the build tree
8490 # simply because there is no reason against having it here, and in addition,
8491 # creating and moving files from /tmp can sometimes cause problems.
8492 # Hook for its removal unless debugging.
8493 # Note that there is a small window in which the directory will not be cleaned:
8494 # after its creation but before its name has been assigned to `$tmp'.
8498 trap 'exit_status=$?
8499 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8501 trap '{ (exit 1); exit 1; }' 1 2 13 15
8503 # Create a (secure) tmp directory for tmp files.
8506 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8507 test -n "$tmp" && test -d "$tmp"
8510 tmp
=.
/conf$$
-$RANDOM
8511 (umask 077 && mkdir "$tmp")
8514 echo "$me: cannot create a temporary directory in ." >&2
8515 { (exit 1); exit 1; }
8519 # Set up the sed scripts for CONFIG_FILES section.
8522 # No need to generate the scripts if there are no CONFIG_FILES.
8523 # This happens for instance when ./config.status config.h
8524 if test -n "$CONFIG_FILES"; then
8531 for ac_last_try
in false false false false false
:; do
8532 cat >conf$
$subs.
sed <<_ACEOF
8533 SHELL!$SHELL$ac_delim
8534 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
8535 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
8536 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
8537 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
8538 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
8539 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
8540 exec_prefix!$exec_prefix$ac_delim
8541 prefix!$prefix$ac_delim
8542 program_transform_name!$program_transform_name$ac_delim
8543 bindir!$bindir$ac_delim
8544 sbindir!$sbindir$ac_delim
8545 libexecdir!$libexecdir$ac_delim
8546 datarootdir!$datarootdir$ac_delim
8547 datadir!$datadir$ac_delim
8548 sysconfdir!$sysconfdir$ac_delim
8549 sharedstatedir!$sharedstatedir$ac_delim
8550 localstatedir!$localstatedir$ac_delim
8551 includedir!$includedir$ac_delim
8552 oldincludedir!$oldincludedir$ac_delim
8553 docdir!$docdir$ac_delim
8554 infodir!$infodir$ac_delim
8555 htmldir!$htmldir$ac_delim
8556 dvidir!$dvidir$ac_delim
8557 pdfdir!$pdfdir$ac_delim
8558 psdir!$psdir$ac_delim
8559 libdir!$libdir$ac_delim
8560 localedir!$localedir$ac_delim
8561 mandir!$mandir$ac_delim
8563 ECHO_C!$ECHO_C$ac_delim
8564 ECHO_N!$ECHO_N$ac_delim
8565 ECHO_T!$ECHO_T$ac_delim
8567 build_alias!$build_alias$ac_delim
8568 host_alias!$host_alias$ac_delim
8569 target_alias!$target_alias$ac_delim
8570 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
8571 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
8572 INSTALL_DATA!$INSTALL_DATA$ac_delim
8573 am__isrc!$am__isrc$ac_delim
8574 CYGPATH_W!$CYGPATH_W$ac_delim
8575 PACKAGE!$PACKAGE$ac_delim
8576 VERSION!$VERSION$ac_delim
8577 ACLOCAL!$ACLOCAL$ac_delim
8578 AUTOCONF!$AUTOCONF$ac_delim
8579 AUTOMAKE!$AUTOMAKE$ac_delim
8580 AUTOHEADER!$AUTOHEADER$ac_delim
8581 MAKEINFO!$MAKEINFO$ac_delim
8582 install_sh!$install_sh$ac_delim
8583 STRIP!$STRIP$ac_delim
8584 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
8585 mkdir_p!$mkdir_p$ac_delim
8587 SET_MAKE!$SET_MAKE$ac_delim
8588 am__leading_dot!$am__leading_dot$ac_delim
8589 AMTAR!$AMTAR$ac_delim
8590 am__tar!$am__tar$ac_delim
8591 am__untar!$am__untar$ac_delim
8593 CFLAGS!$CFLAGS$ac_delim
8594 LDFLAGS!$LDFLAGS$ac_delim
8595 CPPFLAGS!$CPPFLAGS$ac_delim
8596 ac_ct_CC!$ac_ct_CC$ac_delim
8597 EXEEXT!$EXEEXT$ac_delim
8598 OBJEXT!$OBJEXT$ac_delim
8599 DEPDIR!$DEPDIR$ac_delim
8600 am__include!$am__include$ac_delim
8601 am__quote!$am__quote$ac_delim
8602 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
8603 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
8604 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
8605 CCDEPMODE!$CCDEPMODE$ac_delim
8606 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
8607 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
8608 RANLIB!$RANLIB$ac_delim
8611 EGREP!$EGREP$ac_delim
8612 ALLOCA!$ALLOCA$ac_delim
8613 LIBOBJS!$LIBOBJS$ac_delim
8614 LIBS_SECURITY!$LIBS_SECURITY$ac_delim
8615 WEAKLIBS_SECURITY!$WEAKLIBS_SECURITY$ac_delim
8616 LIBS_ONLY_TRUE!$LIBS_ONLY_TRUE$ac_delim
8617 LIBS_ONLY_FALSE!$LIBS_ONLY_FALSE$ac_delim
8618 DO_EMBEDDED_MAGIC_TRUE!$DO_EMBEDDED_MAGIC_TRUE$ac_delim
8619 DO_EMBEDDED_MAGIC_FALSE!$DO_EMBEDDED_MAGIC_FALSE$ac_delim
8620 LTLIBOBJS!$LTLIBOBJS$ac_delim
8623 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 88; then
8625 elif $ac_last_try; then
8626 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
8627 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
8628 { (exit 1); exit 1; }; }
8630 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
8634 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
8635 if test -n "$ac_eof"; then
8636 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
8637 ac_eof
=`expr $ac_eof + 1`
8640 cat >>$CONFIG_STATUS <<_ACEOF
8641 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
8642 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
8645 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
8646 s/^/s,@/; s/!/@,|#_!!_#|/
8649 s/'"$ac_delim"'$/,g/; t
8651 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
8652 ' >>$CONFIG_STATUS <conf$
$subs.
sed
8653 rm -f conf$
$subs.
sed
8654 cat >>$CONFIG_STATUS <<_ACEOF
8661 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8662 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8663 # trailing colons and then remove the whole line if VPATH becomes empty
8664 # (actually we leave an empty line to preserve line numbers).
8665 if test "x$srcdir" = x.
; then
8666 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
8670 s/^\([^=]*=[ ]*\):*/\1/
8676 cat >>$CONFIG_STATUS <<\_ACEOF
8677 fi # test -n "$CONFIG_FILES"
8680 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
8683 :[FHLC
]) ac_mode
=$ac_tag; continue;;
8685 case $ac_mode$ac_tag in
8687 :L
* | :C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
8688 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
8689 { (exit 1); exit 1; }; };;
8690 :[FH
]-) ac_tag
=-:-;;
8691 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
8708 -) ac_f
="$tmp/stdin";;
8709 *) # Look for the file first in the build tree, then in the source tree
8710 # (if the path is not absolute). The absolute path cannot be DOS-style,
8711 # because $ac_f cannot contain `:'.
8715 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
8717 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
8718 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
8719 { (exit 1); exit 1; }; };;
8721 ac_file_inputs
="$ac_file_inputs $ac_f"
8724 # Let's still pretend it is `configure' which instantiates (i.e., don't
8725 # use $as_me), people would be surprised to read:
8726 # /* config.h. Generated by config.status. */
8727 configure_input
="Generated from "`IFS=:
8728 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
8729 if test x
"$ac_file" != x
-; then
8730 configure_input
="$ac_file. $configure_input"
8731 { echo "$as_me:$LINENO: creating $ac_file" >&5
8732 echo "$as_me: creating $ac_file" >&6;}
8736 *:-:* | *:-) cat >"$tmp/stdin";;
8741 ac_dir
=`$as_dirname -- "$ac_file" ||
8742 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8743 X"$ac_file" : 'X\(//\)[^/]' \| \
8744 X"$ac_file" : 'X\(//\)$' \| \
8745 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8747 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8766 -*) as_dir
=.
/$as_dir;;
8768 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
8772 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
8773 *) as_qdir
=$as_dir;;
8775 as_dirs
="'$as_qdir' $as_dirs"
8776 as_dir
=`$as_dirname -- "$as_dir" ||
8777 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8778 X"$as_dir" : 'X\(//\)[^/]' \| \
8779 X"$as_dir" : 'X\(//\)$' \| \
8780 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8782 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8799 test -d "$as_dir" && break
8801 test -z "$as_dirs" || eval "mkdir $as_dirs"
8802 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
8803 echo "$as_me: error: cannot create directory $as_dir" >&2;}
8804 { (exit 1); exit 1; }; }; }
8808 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8810 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8811 # A ".." for each directory in $ac_dir_suffix.
8812 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
8813 case $ac_top_builddir_sub in
8814 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
8815 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
8818 ac_abs_top_builddir
=$ac_pwd
8819 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
8820 # for backward compatibility:
8821 ac_top_builddir
=$ac_top_build_prefix
8824 .
) # We are building in place.
8826 ac_top_srcdir
=$ac_top_builddir_sub
8827 ac_abs_top_srcdir
=$ac_pwd ;;
8828 [\\/]* | ?
:[\\/]* ) # Absolute name.
8829 ac_srcdir
=$srcdir$ac_dir_suffix;
8830 ac_top_srcdir
=$srcdir
8831 ac_abs_top_srcdir
=$srcdir ;;
8833 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
8834 ac_top_srcdir
=$ac_top_build_prefix$srcdir
8835 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
8837 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
8847 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
8848 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
8852 [\\/$
]* | ?
:[\\/]* ) ;;
8853 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
8857 cat >>$CONFIG_STATUS <<\_ACEOF
8858 # If the template does not know about datarootdir, expand it.
8859 # FIXME: This hack should be removed a few years after 2.60.
8860 ac_datarootdir_hack
=; ac_datarootdir_seen
=
8862 case `sed -n '/datarootdir/ {
8871 ' $ac_file_inputs` in
8872 *datarootdir
*) ac_datarootdir_seen
=yes;;
8873 *@datadir@
*|*@docdir@
*|*@infodir@
*|*@localedir@
*|*@mandir@
*)
8874 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8875 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8877 cat >>$CONFIG_STATUS <<_ACEOF
8878 ac_datarootdir_hack='
8879 s&@datadir@&$datadir&g
8880 s&@docdir@&$docdir&g
8881 s&@infodir@&$infodir&g
8882 s&@localedir@&$localedir&g
8883 s&@mandir@&$mandir&g
8884 s&\\\${datarootdir}&$datarootdir&g' ;;
8888 # Neutralize VPATH when `$srcdir' = `.'.
8889 # Shell code in configure.ac might set extrasub.
8890 # FIXME: do we really want to maintain this feature?
8891 cat >>$CONFIG_STATUS <<_ACEOF
8895 cat >>$CONFIG_STATUS <<\_ACEOF
8897 /@
[a
-zA-Z_][a
-zA-Z_0-9]*@
/!b
8898 s
&@configure_input@
&$configure_input&;t t
8899 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
8900 s
&@srcdir@
&$ac_srcdir&;t t
8901 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
8902 s
&@top_srcdir@
&$ac_top_srcdir&;t t
8903 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
8904 s
&@builddir@
&$ac_builddir&;t t
8905 s
&@abs_builddir@
&$ac_abs_builddir&;t t
8906 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
8907 s
&@INSTALL@
&$ac_INSTALL&;t t
8908 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
8909 $ac_datarootdir_hack
8910 " $ac_file_inputs | sed -f "$tmp/subs
-1.
sed" >$tmp/out
8912 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8913 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
8914 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
8915 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
8916 which seems to be undefined. Please make sure it is defined." >&5
8917 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
8918 which seems to be undefined. Please make sure it is defined." >&2;}
8922 -) cat "$tmp/out"; rm -f "$tmp/out";;
8923 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
8932 # Transform confdefs.h into a sed script `conftest.defines', that
8933 # substitutes the proper values into config.h.in to produce config.h.
8934 rm -f conftest.defines conftest.
tail
8935 # First, append a space to every undef/define line, to ease matching.
8936 echo 's/$/ /' >conftest.defines
8937 # Then, protect against being on the right side of a sed subst, or in
8938 # an unquoted here document, in config.status. If some macros were
8939 # called several times there might be several #defines for the same
8940 # symbol, which is useless. But do not sort them, since the last
8941 # AC_DEFINE must be honored.
8942 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
8943 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
8944 # NAME is the cpp macro being defined, VALUE is the value it is being given.
8945 # PARAMS is the parameter list in the macro definition--in most cases, it's
8946 # just an empty string.
8947 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
8948 ac_dB
='\\)[ (].*,\\1define\\2'
8956 s/^[ ]*#[ ]*define[ ][ ]*//
8961 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
8962 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
8963 ' >>conftest.defines
8965 # Remove the space that was appended to ease matching.
8966 # Then replace #undef with comments. This is necessary, for
8967 # example, in the case of _POSIX_SOURCE, which is predefined and required
8968 # on some systems where configure will not decide to define it.
8969 # (The regexp can be short, since the line contains either #define or #undef.)
8971 s,^[ #]*u.*,/* & */,' >>conftest.defines
8973 # Break up conftest.defines:
8976 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
8977 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
8978 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
8980 ac_in
='$ac_file_inputs'
8981 ac_out
='"$tmp/out1"'
8982 ac_nxt
='"$tmp/out2"'
8986 # Write a here document:
8987 cat >>$CONFIG_STATUS <<_ACEOF
8988 # First, check the format of the line:
8989 cat >"\$tmp/defines.sed" <<\\CEOF
8990 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
8991 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
8995 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
8997 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
8998 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
8999 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
9000 grep . conftest.
tail >/dev
/null
|| break
9001 rm -f conftest.defines
9002 mv conftest.
tail conftest.defines
9004 rm -f conftest.defines conftest.
tail
9006 echo "ac_result=$ac_in" >>$CONFIG_STATUS
9007 cat >>$CONFIG_STATUS <<\_ACEOF
9008 if test x
"$ac_file" != x
-; then
9009 echo "/* $configure_input */" >"$tmp/config.h"
9010 cat "$ac_result" >>"$tmp/config.h"
9011 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
9012 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9013 echo "$as_me: $ac_file is unchanged" >&6;}
9016 mv "$tmp/config.h" $ac_file
9019 echo "/* $configure_input */"
9023 # Compute $ac_file's index in $config_headers.
9025 for _am_header
in $config_headers :; do
9027 $ac_file | $ac_file:* )
9030 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
9033 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
9034 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9035 X$ac_file : 'X\(//\)[^/]' \| \
9036 X$ac_file : 'X\(//\)$' \| \
9037 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
9039 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9055 s/.*/./; q'`/stamp
-h$_am_stamp_count
9058 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
9059 echo "$as_me: executing $ac_file commands" >&6;}
9064 case $ac_file$ac_mode in
9065 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" || for mf
in $CONFIG_FILES; do
9066 # Strip MF so we end up with the name of the file.
9067 mf
=`echo "$mf" | sed -e 's/:.*$//'`
9068 # Check whether this is an Automake generated Makefile or not.
9069 # We used to match only the files named `Makefile.in', but
9070 # some people rename them; so instead we look at the file content.
9071 # Grep'ing the first line is not enough: some people post-process
9072 # each Makefile.in and add a new line on top of each file to say so.
9073 # Grep'ing the whole file is not good either: AIX grep has a line
9074 # limit of 2048, but all sed's we know have understand at least 4000.
9075 if sed 10q
"$mf" | grep '^#.*generated by automake' > /dev
/null
2>&1; then
9076 dirpart
=`$as_dirname -- "$mf" ||
9077 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9078 X"$mf" : 'X\(//\)[^/]' \| \
9079 X"$mf" : 'X\(//\)$' \| \
9080 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
9082 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9102 # Extract the definition of DEPDIR, am__include, and am__quote
9103 # from the Makefile without running `make'.
9104 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
9105 test -z "$DEPDIR" && continue
9106 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
9107 test -z "am__include" && continue
9108 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
9109 # When using ansi2knr, U may be empty or an underscore; expand it
9110 U
=`sed -n 's/^U = //p' < "$mf"`
9111 # Find all dependency output files, they are included files with
9112 # $(DEPDIR) in their names. We invoke sed twice because it is the
9113 # simplest approach to changing $(DEPDIR) to its actual value in the
9115 for file in `sed -n "
9116 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9117 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9118 # Make sure the directory exists.
9119 test -f "$dirpart/$file" && continue
9120 fdir
=`$as_dirname -- "$file" ||
9121 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9122 X"$file" : 'X\(//\)[^/]' \| \
9123 X"$file" : 'X\(//\)$' \| \
9124 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
9126 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9143 { as_dir
=$dirpart/$fdir
9145 -*) as_dir
=.
/$as_dir;;
9147 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
9151 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
9152 *) as_qdir
=$as_dir;;
9154 as_dirs
="'$as_qdir' $as_dirs"
9155 as_dir
=`$as_dirname -- "$as_dir" ||
9156 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9157 X"$as_dir" : 'X\(//\)[^/]' \| \
9158 X"$as_dir" : 'X\(//\)$' \| \
9159 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9161 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9178 test -d "$as_dir" && break
9180 test -z "$as_dirs" || eval "mkdir $as_dirs"
9181 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
9182 echo "$as_me: error: cannot create directory $as_dir" >&2;}
9183 { (exit 1); exit 1; }; }; }
9184 # echo "creating $dirpart/$file"
9185 echo '# dummy' > "$dirpart/$file"
9194 { (exit 0); exit 0; }
9196 chmod +x
$CONFIG_STATUS
9197 ac_clean_files
=$ac_clean_files_save
9200 # configure is writing to config.log, and then calls config.status.
9201 # config.status does its own redirection, appending to config.log.
9202 # Unfortunately, on DOS this fails, as config.log is still kept open
9203 # by configure, so config.status won't be able to write to it; its
9204 # output is simply discarded. So we exec the FD to /dev/null,
9205 # effectively closing config.log, so it can be properly (re)opened and
9206 # appended to by config.status. When coming back to configure, we
9207 # need to make the FD available again.
9208 if test "$no_create" != yes; then
9210 ac_config_status_args
=
9211 test "$silent" = yes &&
9212 ac_config_status_args
="$ac_config_status_args --quiet"
9214 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
9216 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9217 # would make configure fail if this is the last instruction.
9218 $ac_cs_success || { (exit 1); exit 1; }