2 # From configure.ac Revision: 37278 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59e.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be Bourne compatible
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 *posix
*) set -o posix
;; esac
27 BIN_SH
=xpg4
; export BIN_SH
# for Tru64
28 DUALCASE
=1; export DUALCASE
# for MKS sh
32 # Avoid depending upon Character Ranges.
33 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
34 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
36 as_cr_digits
='0123456789'
37 as_cr_alnum
=$as_cr_Letters$as_cr_digits
39 # The user is always right.
40 if test "${PATH_SEPARATOR+set}" != set; then
41 echo "#! /bin/sh" >conf$$.sh
42 echo "exit 0" >>conf$$.sh
44 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
52 # Support unset when possible.
53 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
61 # We need space, tab and new line, in precisely that order. Quoting is
62 # there to prevent editors from complaining about space-tab.
63 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
64 # splitting by setting IFS to empty value.)
69 # Find who we are. Look in the path if we contain no directory separator.
71 *[\\/]* ) as_myself
=$0 ;;
72 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
76 test -z "$as_dir" && as_dir
=.
77 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
83 # We did not find ourselves, most probably we were run as `sh COMMAND'
84 # in which case we are not to be found in the path.
85 if test "x$as_myself" = x
; then
88 if test ! -f "$as_myself"; then
89 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 # Work around bugs in pre-3.0 UWIN ksh.
94 for as_var
in ENV MAIL MAILPATH
95 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
103 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
104 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
107 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
108 eval $as_var=C
; export $as_var
110 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
114 # Required to use basename.
115 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
116 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
122 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
129 # Name of the executable.
130 as_me
=`$as_basename -- "$0" ||
131 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
132 X"$0" : 'X\(//\)$' \| \
133 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 sed '/^.*\/\([^/][^/]*\)\/*$/{
153 if test "x$CONFIG_SHELL" = x
; then
154 if (eval ":") 2>/dev
/null
; then
160 if test $as_have_required = yes && (eval ":
170 as_func_ret_success () {
173 as_func_ret_failure () {
178 if as_func_success; then
182 echo as_func_success failed.
185 if as_func_failure; then
187 echo as_func_failure succeeded.
190 if as_func_ret_success; then
194 echo as_func_ret_success failed.
197 if as_func_ret_failure; then
199 echo as_func_ret_failure succeeded.
202 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206 echo positional parameters were not saved.
209 test \$exitcode = 0) || { (exit 1); exit 1; }
214 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
215 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
216 ") 2> /dev
/null
; then
220 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
221 for as_dir
in /usr
/bin
/posix
$PATH_SEPARATOR/bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
224 test -z "$as_dir" && as_dir
=.
227 for as_base
in sh bash ksh sh5
; do
228 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
235 for as_shell
in $as_candidate_shells $SHELL; do
236 # Try only shells which exist, to save several forks.
237 if test -f "$as_shell" &&
238 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
239 # Be Bourne compatible
240 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in *posix
*) set -o posix
;; esac
250 BIN_SH
=xpg4
; export BIN_SH
# for Tru64
251 DUALCASE
=1; export DUALCASE
# for MKS sh
256 CONFIG_SHELL
=$as_shell
258 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
259 # Be Bourne compatible
260 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
263 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
264 # is contrary to our usage. Disable this feature.
265 alias -g '${1+"$@"}'='"$@"'
268 case `(set -o) 2>/dev/null` in *posix
*) set -o posix
;; esac
270 BIN_SH
=xpg4
; export BIN_SH
# for Tru64
271 DUALCASE
=1; export DUALCASE
# for MKS sh
283 as_func_ret_success
() {
286 as_func_ret_failure
() {
291 if as_func_success
; then
295 echo as_func_success failed.
298 if as_func_failure
; then
300 echo as_func_failure succeeded.
303 if as_func_ret_success
; then
307 echo as_func_ret_success failed.
310 if as_func_ret_failure
; then
312 echo as_func_ret_failure succeeded.
315 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
319 echo positional parameters were not saved.
322 test $exitcode = 0) ||
{ (exit 1); exit 1; }
327 test "x$as_lineno_1" != "x$as_lineno_2" &&
328 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
339 if test "x$CONFIG_SHELL" != x
; then
340 for as_var
in BASH_ENV ENV
341 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
344 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 if test $as_have_required = no
; then
349 echo This
script requires a shell
more modern than all the
350 echo shells that I found on your system. Please
install a
351 echo modern shell
, or manually run the
script under such a
352 echo shell
if you
do have one.
353 { (exit 1); exit 1; }
363 (eval "as_func_return () {
372 as_func_ret_success () {
375 as_func_ret_failure () {
380 if as_func_success; then
384 echo as_func_success failed.
387 if as_func_failure; then
389 echo as_func_failure succeeded.
392 if as_func_ret_success; then
396 echo as_func_ret_success failed.
399 if as_func_ret_failure; then
401 echo as_func_ret_failure succeeded.
404 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 echo positional parameters were not saved.
411 test \$exitcode = 0") ||
{
412 echo No shell found that supports shell functions.
413 echo Please tell autoconf@gnu.org about your system
,
414 echo including any error possibly output before this
422 test "x$as_lineno_1" != "x$as_lineno_2" &&
423 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
425 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
426 # uniformly replaced by the line number. The first 'sed' inserts a
427 # line-number line after each line using $LINENO; the second 'sed'
428 # does the real work. The second script uses 'N' to pair each
429 # line-number line with the line containing $LINENO, and appends
430 # trailing '-' during substitution so that $LINENO is not a special
432 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
433 # scripts with optimization help from Paolo Bonzini. Blame Lee
434 # E. McMahon (1931-1989) for sed's syntax. :-)
446 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 chmod +x
"$as_me.lineno" ||
451 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
452 { (exit 1); exit 1; }; }
454 # Don't try to exec as it changes $[0], causing all sort of problems
455 # (the dirname of $[0] is not the place where we might find the
456 # original and so on. Autoconf is especially sensitive to this).
458 # Exit status is that of the last command.
463 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
469 ECHO_C
= ECHO_N
= ECHO_T
=
473 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
480 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
481 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
487 rm -f conf$$ conf$$.exe conf$$.
file
488 if test -d conf$$.dir
; then
489 rm -f conf$$.dir
/conf$$.
file
495 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
497 # ... but there are two gotchas:
498 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
499 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
500 # In both cases, we have to default to `cp -p'.
501 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
503 elif ln conf$$.
file conf$$
2>/dev
/null
; then
508 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
509 rmdir conf$$.dir
2>/dev
/null
511 if mkdir
-p .
2>/dev
/null
; then
514 test -d .
/-p && rmdir .
/-p
518 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
519 # systems may use methods other than mode bits to determine executability.
520 cat >conf$$.
file <<_ASEOF
525 if test -x conf$$.
file >/dev
/null
2>&1; then
526 as_executable_p
="test -x"
532 # Sed expression to map a string onto a valid CPP name.
533 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535 # Sed expression to map a string onto a valid variable name.
536 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
540 exec 7<&0 </dev
/null
6>&1
543 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
544 # so uname gets run too.
545 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
550 ac_default_prefix
=/usr
/local
552 ac_config_libobj_dir
=.
558 SHELL
=${CONFIG_SHELL-/bin/sh}
560 # Identity of this package.
567 ac_unique_file
="asterisk"
568 ac_unique_file
="asterisk.c"
569 # Factoring default headers for most tests.
570 ac_includes_default
="\
573 # include <sys/types.h>
576 # include <sys/stat.h>
587 # if !STDC_HEADERS && HAVE_MEMORY_H
593 # include <strings.h>
596 # include <inttypes.h>
614 program_transform_name
807 ac_precious_vars
='build_alias
821 # Initialize some variables set by options.
823 ac_init_version
=false
824 # The variables have the same names as the options, with
825 # dashes changed to underlines.
833 program_transform_name
=s
,x
,x
,
841 # Installation directory options.
842 # These are left unexpanded so users can "make install exec_prefix=/foo"
843 # and all the variables that are supposed to be based on exec_prefix
844 # by default will actually change.
845 # Use braces instead of parens because sh, perl, etc. also accept them.
846 # (The list follows the same order as the GNU Coding Standards.)
847 bindir
='${exec_prefix}/bin'
848 sbindir
='${exec_prefix}/sbin'
849 libexecdir
='${exec_prefix}/libexec'
850 datarootdir
='${prefix}/share'
851 datadir
='${datarootdir}'
852 sysconfdir
='${prefix}/etc'
853 sharedstatedir
='${prefix}/com'
854 localstatedir
='${prefix}/var'
855 includedir
='${prefix}/include'
856 oldincludedir
='/usr/include'
857 docdir
='${datarootdir}/doc/${PACKAGE}'
858 infodir
='${datarootdir}/info'
863 libdir
='${exec_prefix}/lib'
864 localedir
='${datarootdir}/locale'
865 mandir
='${datarootdir}/man'
871 # If the previous option needs an argument, assign it.
872 if test -n "$ac_prev"; then
873 eval $ac_prev=\
$ac_option
879 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
883 # Accept the important Cygnus configure options, so we can diagnose typos.
885 case $ac_dashdash$ac_option in
889 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
891 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
894 -build |
--build |
--buil |
--bui |
--bu)
895 ac_prev
=build_alias
;;
896 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
897 build_alias
=$ac_optarg ;;
899 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
900 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
901 ac_prev
=cache_file
;;
902 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
903 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
904 cache_file
=$ac_optarg ;;
907 cache_file
=config.cache
;;
909 -datadir |
--datadir |
--datadi |
--datad)
911 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
912 datadir
=$ac_optarg ;;
914 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
915 |
--dataroo |
--dataro |
--datar)
916 ac_prev
=datarootdir
;;
917 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
918 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
919 datarootdir
=$ac_optarg ;;
921 -disable-* |
--disable-*)
922 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
923 # Reject names that are not valid shell variable names.
924 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
925 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
926 { (exit 1); exit 1; }; }
927 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
928 eval enable_
$ac_feature=no
;;
930 -docdir |
--docdir |
--docdi |
--doc |
--do)
932 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
935 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
937 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
940 -enable-* |
--enable-*)
941 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
942 # Reject names that are not valid shell variable names.
943 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
944 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
945 { (exit 1); exit 1; }; }
946 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
947 eval enable_
$ac_feature=\
$ac_optarg ;;
949 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
950 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
951 |
--exec |
--exe |
--ex)
952 ac_prev
=exec_prefix
;;
953 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
954 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
955 |
--exec=* |
--exe=* |
--ex=*)
956 exec_prefix
=$ac_optarg ;;
958 -gas |
--gas |
--ga |
--g)
959 # Obsolete; use --with-gas.
962 -help |
--help |
--hel |
--he |
-h)
964 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
965 ac_init_help
=recursive
;;
966 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
967 ac_init_help
=short
;;
969 -host |
--host |
--hos |
--ho)
970 ac_prev
=host_alias
;;
971 -host=* |
--host=* |
--hos=* |
--ho=*)
972 host_alias
=$ac_optarg ;;
974 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
976 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
978 htmldir
=$ac_optarg ;;
980 -includedir |
--includedir |
--includedi |
--included |
--include \
981 |
--includ |
--inclu |
--incl |
--inc)
982 ac_prev
=includedir
;;
983 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
984 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
985 includedir
=$ac_optarg ;;
987 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
989 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
990 infodir
=$ac_optarg ;;
992 -libdir |
--libdir |
--libdi |
--libd)
994 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
997 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
998 |
--libexe |
--libex |
--libe)
999 ac_prev
=libexecdir
;;
1000 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1001 |
--libexe=* |
--libex=* |
--libe=*)
1002 libexecdir
=$ac_optarg ;;
1004 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1005 ac_prev
=localedir
;;
1006 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1007 localedir
=$ac_optarg ;;
1009 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1010 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1011 ac_prev
=localstatedir
;;
1012 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1013 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1014 localstatedir
=$ac_optarg ;;
1016 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1018 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1019 mandir
=$ac_optarg ;;
1021 -nfp |
--nfp |
--nf)
1022 # Obsolete; use --without-fp.
1025 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1026 |
--no-cr |
--no-c |
-n)
1029 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1030 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1033 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1034 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1035 |
--oldin |
--oldi |
--old |
--ol |
--o)
1036 ac_prev
=oldincludedir
;;
1037 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1038 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1039 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1040 oldincludedir
=$ac_optarg ;;
1042 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1044 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1045 prefix
=$ac_optarg ;;
1047 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1048 |
--program-pre |
--program-pr |
--program-p)
1049 ac_prev
=program_prefix
;;
1050 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1051 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1052 program_prefix
=$ac_optarg ;;
1054 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1055 |
--program-suf |
--program-su |
--program-s)
1056 ac_prev
=program_suffix
;;
1057 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1058 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1059 program_suffix
=$ac_optarg ;;
1061 -program-transform-name |
--program-transform-name \
1062 |
--program-transform-nam |
--program-transform-na \
1063 |
--program-transform-n |
--program-transform- \
1064 |
--program-transform |
--program-transfor \
1065 |
--program-transfo |
--program-transf \
1066 |
--program-trans |
--program-tran \
1067 |
--progr-tra |
--program-tr |
--program-t)
1068 ac_prev
=program_transform_name
;;
1069 -program-transform-name=* |
--program-transform-name=* \
1070 |
--program-transform-nam=* |
--program-transform-na=* \
1071 |
--program-transform-n=* |
--program-transform-=* \
1072 |
--program-transform=* |
--program-transfor=* \
1073 |
--program-transfo=* |
--program-transf=* \
1074 |
--program-trans=* |
--program-tran=* \
1075 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1076 program_transform_name
=$ac_optarg ;;
1078 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1080 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1081 pdfdir
=$ac_optarg ;;
1083 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1085 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1088 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1089 |
-silent |
--silent |
--silen |
--sile |
--sil)
1092 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1094 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1096 sbindir
=$ac_optarg ;;
1098 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1099 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1100 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1102 ac_prev
=sharedstatedir
;;
1103 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1104 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1105 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1107 sharedstatedir
=$ac_optarg ;;
1109 -site |
--site |
--sit)
1111 -site=* |
--site=* |
--sit=*)
1114 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1116 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1117 srcdir
=$ac_optarg ;;
1119 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1120 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1121 ac_prev
=sysconfdir
;;
1122 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1123 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1124 sysconfdir
=$ac_optarg ;;
1126 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1127 ac_prev
=target_alias
;;
1128 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1129 target_alias
=$ac_optarg ;;
1131 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1134 -version |
--version |
--versio |
--versi |
--vers |
-V)
1135 ac_init_version
=: ;;
1138 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1139 # Reject names that are not valid shell variable names.
1140 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
1141 { echo "$as_me: error: invalid package name: $ac_package" >&2
1142 { (exit 1); exit 1; }; }
1143 ac_package
=`echo $ac_package| sed 's/-/_/g'`
1144 eval with_
$ac_package=\
$ac_optarg ;;
1146 -without-* |
--without-*)
1147 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1148 # Reject names that are not valid shell variable names.
1149 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
1150 { echo "$as_me: error: invalid package name: $ac_package" >&2
1151 { (exit 1); exit 1; }; }
1152 ac_package
=`echo $ac_package | sed 's/-/_/g'`
1153 eval with_
$ac_package=no
;;
1156 # Obsolete; use --with-x.
1159 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1160 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1161 ac_prev
=x_includes
;;
1162 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1163 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1164 x_includes
=$ac_optarg ;;
1166 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1167 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1168 ac_prev
=x_libraries
;;
1169 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1170 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1171 x_libraries
=$ac_optarg ;;
1173 -*) { echo "$as_me: error: unrecognized option: $ac_option
1174 Try \`$0 --help' for more information." >&2
1175 { (exit 1); exit 1; }; }
1179 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1180 # Reject names that are not valid shell variable names.
1181 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1182 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1183 { (exit 1); exit 1; }; }
1184 eval $ac_envvar=\
$ac_optarg
1185 export $ac_envvar ;;
1188 # FIXME: should be removed in autoconf 3.0.
1189 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1190 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1191 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1192 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1198 if test -n "$ac_prev"; then
1199 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1200 { echo "$as_me: error: missing argument to $ac_option" >&2
1201 { (exit 1); exit 1; }; }
1204 # Be sure to have absolute directory names.
1205 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1206 datadir sysconfdir sharedstatedir localstatedir includedir \
1207 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1208 libdir localedir mandir
1210 eval ac_val
=\$
$ac_var
1212 [\\/$
]* | ?
:[\\/]* ) continue;;
1213 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1215 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1216 { (exit 1); exit 1; }; }
1219 # There might be people who depend on the old broken behavior: `$host'
1220 # used to hold the argument of --host etc.
1221 # FIXME: To remove some day.
1224 target
=$target_alias
1226 # FIXME: To remove some day.
1227 if test "x$host_alias" != x
; then
1228 if test "x$build_alias" = x
; then
1229 cross_compiling
=maybe
1230 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1231 If a cross compiler is detected then cross compile mode will be used." >&2
1232 elif test "x$build_alias" != "x$host_alias"; then
1238 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1240 test "$silent" = yes && exec 6>/dev
/null
1243 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1244 ac_ls_di
=`ls -di .` &&
1245 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1246 { echo "$as_me: error: Working directory cannot be determined" >&2
1247 { (exit 1); exit 1; }; }
1248 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1249 { echo "$as_me: error: pwd does not report name of working directory" >&2
1250 { (exit 1); exit 1; }; }
1253 # Find the source files, if location was not specified.
1254 if test -z "$srcdir"; then
1255 ac_srcdir_defaulted
=yes
1256 # Try the directory containing this script, then the parent directory.
1257 ac_confdir
=`$as_dirname -- "$0" ||
1258 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1259 X"$0" : 'X\(//\)[^/]' \| \
1260 X"$0" : 'X\(//\)$' \| \
1261 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1281 if test ! -r "$srcdir/$ac_unique_file"; then
1285 ac_srcdir_defaulted
=no
1287 if test ! -r "$srcdir/$ac_unique_file"; then
1288 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1289 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1290 { (exit 1); exit 1; }; }
1292 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1294 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1295 { (exit 1); exit 1; }; }
1297 # When building in place, set srcdir=.
1298 if test "$ac_abs_confdir" = "$ac_pwd"; then
1301 # Remove unnecessary trailing slashes from srcdir.
1302 # Double slashes in file names in object file debugging info
1303 # mess up M-x gdb in Emacs.
1305 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1307 for ac_var
in $ac_precious_vars; do
1308 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1309 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1310 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1311 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1315 # Report the --help message.
1317 if test "$ac_init_help" = "long"; then
1318 # Omit some internal or obsolete options to make the list less imposing.
1319 # This message is too long to be a string in the A/UX 3.1 sh.
1321 \`configure' configures this package to adapt to many kinds of systems.
1323 Usage: $0 [OPTION]... [VAR=VALUE]...
1325 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1326 VAR=VALUE. See below for descriptions of some of the useful variables.
1328 Defaults for the options are specified in brackets.
1331 -h, --help display this help and exit
1332 --help=short display options specific to this package
1333 --help=recursive display the short help of all the included packages
1334 -V, --version display version information and exit
1335 -q, --quiet, --silent do not print \`checking...' messages
1336 --cache-file=FILE cache test results in FILE [disabled]
1337 -C, --config-cache alias for \`--cache-file=config.cache'
1338 -n, --no-create do not create output files
1339 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1341 Installation directories:
1342 --prefix=PREFIX install architecture-independent files in PREFIX
1343 [$ac_default_prefix]
1344 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1347 By default, \`make install' will install all the files in
1348 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1349 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1350 for instance \`--prefix=\$HOME'.
1352 For better control, use the options below.
1354 Fine tuning of the installation directories:
1355 --bindir=DIR user executables [EPREFIX/bin]
1356 --sbindir=DIR system admin executables [EPREFIX/sbin]
1357 --libexecdir=DIR program executables [EPREFIX/libexec]
1358 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1359 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1360 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1361 --libdir=DIR object code libraries [EPREFIX/lib]
1362 --includedir=DIR C header files [PREFIX/include]
1363 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1364 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1365 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1366 --infodir=DIR info documentation [DATAROOTDIR/info]
1367 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1368 --mandir=DIR man documentation [DATAROOTDIR/man]
1369 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1370 --htmldir=DIR html documentation [DOCDIR]
1371 --dvidir=DIR dvi documentation [DOCDIR]
1372 --pdfdir=DIR pdf documentation [DOCDIR]
1373 --psdir=DIR ps documentation [DOCDIR]
1379 --build=BUILD configure
for building on BUILD
[guessed
]
1380 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1381 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1385 if test -n "$ac_init_help"; then
1390 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1391 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1392 --enable-dev-mode Turn on developer mode
1393 --disable-largefile omit support
for large files
1396 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1397 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1398 --with-asound=PATH use Advanced Linux Sound Architecture files
in PATH
1399 --with-curses=PATH use curses files
in PATH
1400 --with-gsm=PATH use GSM files
in PATH
, or
'internal'
1401 --with-iksemel=PATH use Iksemel Jabber Library files
in PATH
1402 --with-imap=PATH use UW IMAP Toolkit files
in PATH
1403 --with-kde=PATH use KDE files
in PATH
1404 --with-nbs=PATH use Network Broadcast Sound files
in PATH
1405 --with-ncurses=PATH use ncurses files
in PATH
1406 --with-netsnmp=PATH use Net-SNMP files
in PATH
1407 --with-newt=PATH use newt files
in PATH
1408 --with-odbc=PATH use unixODBC files
in PATH
1409 --with-ogg=PATH use OGG files
in PATH
1410 --with-osptk=PATH use OSP Toolkit files
in PATH
1411 --with-oss=PATH use Open Sound System files
in PATH
1412 --with-popt=PATH use popt files
in PATH
1413 --with-postgres=PATH use PostgreSQL files
in PATH
1414 --with-pri=PATH use ISDN PRI files
in PATH
1415 --with-pwlib=PATH use PWlib files
in PATH
1416 --with-qt=PATH use Qt files
in PATH
1417 --with-radius=PATH use Radius Client files
in PATH
1418 --with-speex=PATH use Speex files
in PATH
1419 --with-sqlite=PATH use SQLite files
in PATH
1420 --with-ssl=PATH use OpenSSL files
in PATH
1421 --with-tds=PATH use FreeTDS files
in PATH
1422 --with-termcap=PATH use Termcap files
in PATH
1423 --with-tinfo=PATH use Term Info files
in PATH
1424 --with-tonezone=PATH use tonezone files
in PATH
1425 --with-vorbis=PATH use Vorbis files
in PATH
1426 --with-vpb=PATH use Voicetronix API files
in PATH
1427 --with-z=PATH use zlib files
in PATH
1428 --with-zaptel=PATH use Zaptel files
in PATH
1430 Some influential environment variables
:
1431 CC C compiler
command
1432 CFLAGS C compiler flags
1433 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1434 nonstandard directory
<lib dir
>
1435 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1436 you have headers
in a nonstandard directory
<include dir
>
1437 CXX C
++ compiler
command
1438 CXXFLAGS C
++ compiler flags
1440 CXXCPP C
++ preprocessor
1442 Use these variables to override the choices made by
`configure' or to help
1443 it to find libraries and programs with nonstandard names/locations.
1449 if test "$ac_init_help" = "recursive"; then
1450 # If there are subdirs, report their specific --help.
1451 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1452 test -d "$ac_dir" || continue
1456 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1458 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1459 # A ".." for each directory in $ac_dir_suffix.
1460 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1461 case $ac_top_builddir_sub in
1462 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1463 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1466 ac_abs_top_builddir=$ac_pwd
1467 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1468 # for backward compatibility:
1469 ac_top_builddir=$ac_top_build_prefix
1472 .) # We are building in place.
1474 ac_top_srcdir=$ac_top_builddir_sub
1475 ac_abs_top_srcdir=$ac_pwd ;;
1476 [\\/]* | ?:[\\/]* ) # Absolute name.
1477 ac_srcdir=$srcdir$ac_dir_suffix;
1478 ac_top_srcdir=$srcdir
1479 ac_abs_top_srcdir=$srcdir ;;
1481 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1482 ac_top_srcdir=$ac_top_build_prefix$srcdir
1483 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1485 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1487 cd "$ac_dir" || { ac_status=$?; continue; }
1488 # Check for guested configure.
1489 if test -f "$ac_srcdir/configure.gnu"; then
1491 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1492 elif test -f "$ac_srcdir/configure"; then
1494 $SHELL "$ac_srcdir/configure" --help=recursive
1496 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1498 cd "$ac_pwd" || { ac_status=$?; break; }
1502 test -n "$ac_init_help" && exit $ac_status
1503 if $ac_init_version; then
1506 generated by GNU Autoconf 2.59e
1508 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1509 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1510 This configure script is free software; the Free Software Foundation
1511 gives unlimited permission to copy, distribute and modify it.
1517 cat >config.log <<_ACEOF
1518 This file contains any messages produced by compilers while
1519 running configure, to aid debugging if configure makes a mistake.
1521 It was created by $as_me, which was
1522 generated by GNU Autoconf 2.59e. Invocation command line was
1534 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1535 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1536 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1537 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1538 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1540 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1541 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1543 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1544 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1545 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1546 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1547 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1548 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1549 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1557 test -z "$as_dir" && as_dir=.
1558 echo "PATH: $as_dir"
1574 # Keep a trace of the command line.
1575 # Strip out --no-create and --no-recursion so they do not pile up.
1576 # Strip out --silent because we don't want to record it for future runs.
1577 # Also quote any args containing shell meta-characters.
1578 # Make two passes to allow for proper duplicate-argument suppression.
1582 ac_must_keep_next=false
1588 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1589 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1590 | -silent | --silent | --silen | --sile | --sil)
1593 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1596 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1598 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1599 if test $ac_must_keep_next = true; then
1600 ac_must_keep_next=false # Got value, back to normal.
1603 *=* | --config-cache | -C | -disable-* | --disable-* \
1604 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1605 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1606 | -with-* | --with-* | -without-* | --without-* | --x)
1607 case "$ac_configure_args0 " in
1608 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1611 -* ) ac_must_keep_next=true ;;
1614 ac_configure_args="$ac_configure_args '$ac_arg'"
1619 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1620 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1622 # When interrupted or exit'd, cleanup temporary files, and complete
1623 # config.log. We remove comments because anyway the quotes in there
1624 # would cause problems or look ugly.
1625 # WARNING: Use '\'' to represent an apostrophe within the trap.
1626 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1627 trap 'exit_status=$?
1628 # Save into config.log some information that might help in debugging.
1633 ## ---------------- ##
1634 ## Cache variables. ##
1635 ## ---------------- ##
1638 # The following way of writing the cache mishandles newlines in values,
1640 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1641 eval ac_val=\$$ac_var
1645 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1646 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1649 _ | IFS | as_nl) ;; #(
1650 *) $as_unset $ac_var ;;
1655 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1656 *${as_nl}ac_space=\ *)
1658 "s/'\''/'\''\\\\'\'''\''/g;
1659 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1662 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1670 ## ----------------- ##
1671 ## Output variables. ##
1672 ## ----------------- ##
1675 for ac_var in $ac_subst_vars
1677 eval ac_val=\$$ac_var
1679 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1681 echo "$ac_var='\''$ac_val'\''"
1685 if test -n "$ac_subst_files"; then
1687 ## ------------------- ##
1688 ## File substitutions. ##
1689 ## ------------------- ##
1692 for ac_var in $ac_subst_files
1694 eval ac_val=\$$ac_var
1696 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1698 echo "$ac_var='\''$ac_val'\''"
1703 if test -s confdefs.h; then
1713 test "$ac_signal" != 0 &&
1714 echo "$as_me: caught signal $ac_signal"
1715 echo "$as_me: exit $exit_status"
1717 rm -f core *.core core.conftest.* &&
1718 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1721 for ac_signal in 1 2 13 15; do
1722 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1726 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1727 rm -f -r conftest* confdefs.h
1729 # Predefined preprocessor variables.
1731 cat >>confdefs.h <<_ACEOF
1732 #define PACKAGE_NAME "$PACKAGE_NAME"
1736 cat >>confdefs.h <<_ACEOF
1737 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1741 cat >>confdefs.h <<_ACEOF
1742 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1746 cat >>confdefs.h <<_ACEOF
1747 #define PACKAGE_STRING "$PACKAGE_STRING"
1751 cat >>confdefs.h <<_ACEOF
1752 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1756 # Let the site file select an alternate cache file if it wants to.
1757 # Prefer explicitly selected file to automatically selected ones.
1758 if test -n "$CONFIG_SITE"; then
1759 set x "$CONFIG_SITE"
1760 elif test "x$prefix" != xNONE; then
1761 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1763 set x "$ac_default_prefix/share/config.site" \
1764 "$ac_default_prefix/etc/config.site"
1769 if test -r "$ac_site_file"; then
1770 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1771 echo "$as_me: loading site script $ac_site_file" >&6;}
1772 sed 's/^/| /' "$ac_site_file" >&5
1777 if test -r "$cache_file"; then
1778 # Some versions of bash will fail to source /dev/null (special
1779 # files actually), so we avoid doing that.
1780 if test -f "$cache_file"; then
1781 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1782 echo "$as_me: loading cache $cache_file" >&6;}
1784 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1785 *) . "./$cache_file";;
1789 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1790 echo "$as_me: creating cache $cache_file" >&6;}
1794 # Check that the precious variables saved in the cache have kept the same
1796 ac_cache_corrupted=false
1797 for ac_var in $ac_precious_vars; do
1798 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1799 eval ac_new_set=\$ac_env_${ac_var}_set
1800 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1801 eval ac_new_val=\$ac_env_${ac_var}_value
1802 case $ac_old_set,$ac_new_set in
1804 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1805 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1806 ac_cache_corrupted=: ;;
1808 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1809 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1810 ac_cache_corrupted=: ;;
1813 if test "x$ac_old_val" != "x$ac_new_val"; then
1814 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1815 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1816 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1817 echo "$as_me: former value
: $ac_old_val" >&2;}
1818 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1819 echo "$as_me: current value
: $ac_new_val" >&2;}
1820 ac_cache_corrupted=:
1823 # Pass precious variables to config.status.
1824 if test "$ac_new_set" = set; then
1826 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1827 *) ac_arg=$ac_var=$ac_new_val ;;
1829 case " $ac_configure_args " in
1830 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1831 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1835 if $ac_cache_corrupted; then
1836 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1837 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1838 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1839 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1840 { (exit 1); exit 1; }; }
1860 ac_cpp='$CPP $CPPFLAGS'
1861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1867 # cross-compile macros
1869 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1870 if test -f "$ac_dir/install-sh"; then
1872 ac_install_sh="$ac_aux_dir/install-sh -c"
1874 elif test -f "$ac_dir/install.sh"; then
1876 ac_install_sh="$ac_aux_dir/install.sh -c"
1878 elif test -f "$ac_dir/shtool"; then
1880 ac_install_sh="$ac_aux_dir/shtool install -c"
1884 if test -z "$ac_aux_dir"; then
1885 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1886 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1887 { (exit 1); exit 1; }; }
1890 # These three variables are undocumented and unsupported,
1891 # and are intended to be withdrawn in a future Autoconf release.
1892 # They can cause serious problems if a builder's source tree is in a directory
1893 # whose full name contains unusual characters.
1894 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1895 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1896 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1899 # Make sure we can run config.sub.
1900 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1901 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1902 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1903 { (exit 1); exit 1; }; }
1905 { echo "$as_me:$LINENO: checking build system type" >&5
1906 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1907 if test "${ac_cv_build+set}" = set; then
1908 echo $ECHO_N "(cached) $ECHO_C" >&6
1910 ac_build_alias=$build_alias
1911 test "x$ac_build_alias" = x &&
1912 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1913 test "x$ac_build_alias" = x &&
1914 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1915 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1916 { (exit 1); exit 1; }; }
1917 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1918 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1919 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1920 { (exit 1); exit 1; }; }
1923 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1924 echo "${ECHO_T}$ac_cv_build" >&6; }
1925 case $ac_cv_build in
1927 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1928 echo "$as_me: error: invalid value of canonical build" >&2;}
1929 { (exit 1); exit 1; }; };;
1932 ac_save_IFS=$IFS; IFS='-'
1938 # Remember, the first character of IFS is used to create $*,
1939 # except with old shells:
1942 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
1945 { echo "$as_me:$LINENO: checking host system type" >&5
1946 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1947 if test "${ac_cv_host+set}" = set; then
1948 echo $ECHO_N "(cached) $ECHO_C" >&6
1950 if test "x$host_alias" = x; then
1951 ac_cv_host=$ac_cv_build
1953 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1954 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1955 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1956 { (exit 1); exit 1; }; }
1960 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1961 echo "${ECHO_T}$ac_cv_host" >&6; }
1964 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1965 echo "$as_me: error: invalid value of canonical host" >&2;}
1966 { (exit 1); exit 1; }; };;
1969 ac_save_IFS=$IFS; IFS='-'
1975 # Remember, the first character of IFS is used to create $*,
1976 # except with old shells:
1979 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
1982 { echo "$as_me:$LINENO: checking target system type" >&5
1983 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1984 if test "${ac_cv_target+set}" = set; then
1985 echo $ECHO_N "(cached) $ECHO_C" >&6
1987 if test "x$target_alias" = x; then
1988 ac_cv_target=$ac_cv_host
1990 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1991 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1992 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1993 { (exit 1); exit 1; }; }
1997 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1998 echo "${ECHO_T}$ac_cv_target" >&6; }
1999 case $ac_cv_target in
2001 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2002 echo "$as_me: error: invalid value of canonical target" >&2;}
2003 { (exit 1); exit 1; }; };;
2005 target=$ac_cv_target
2006 ac_save_IFS=$IFS; IFS='-'
2012 # Remember, the first character of IFS is used to create $*,
2013 # except with old shells:
2016 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
2019 # The aliases save the names the user supplied, while $host etc.
2020 # will get canonicalized.
2021 test -n "$target_alias" &&
2022 test "$program_prefix$program_suffix$program_transform_name" = \
2024 program_prefix=${target_alias}-
2026 # check existence of the package
2029 # specify output header file
2030 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
2038 ac_default_prefix=/usr/local
2041 ac_default_prefix=/usr
2042 if test ${sysconfdir} = '${prefix}/etc'; then
2045 if test ${mandir} = '${prefix}/man'; then
2046 mandir=/usr/share/man
2051 if test ${localstatedir} = '${prefix}/var'; then
2057 cat >>confdefs.h <<_ACEOF
2058 #define PBX_PLATFORM "${host}"
2062 cat >>confdefs.h <<_ACEOF
2063 #define PBX_CPU "${host_cpu}"
2067 cat >>confdefs.h <<_ACEOF
2068 #define PBX_VENDOR "${host_vendor}"
2072 cat >>confdefs.h <<_ACEOF
2073 #define PBX_OS "${host_os}"
2077 # export some useful defines
2078 PBX_PLATFORM=${host}
2080 PBX_VENDOR=${host_vendor}
2088 if test -n "$ac_tool_prefix"; then
2089 # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
2090 set dummy ${ac_tool_prefix}uname; ac_word=$2
2091 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2093 if test "${ac_cv_path_UNAME+set}" = set; then
2094 echo $ECHO_N "(cached) $ECHO_C" >&6
2098 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
2101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2105 test -z "$as_dir" && as_dir=.
2106 for ac_exec_ext in '' $ac_executable_extensions; do
2107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2108 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
2109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2119 UNAME=$ac_cv_path_UNAME
2120 if test -n "$UNAME"; then
2121 { echo "$as_me:$LINENO: result: $UNAME" >&5
2122 echo "${ECHO_T}$UNAME" >&6; }
2124 { echo "$as_me:$LINENO: result: no" >&5
2125 echo "${ECHO_T}no" >&6; }
2130 if test -z "$ac_cv_path_UNAME"; then
2132 # Extract the first word of "uname", so it can be a program name with args.
2133 set dummy uname; ac_word=$2
2134 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2136 if test "${ac_cv_path_ac_pt_UNAME+set}" = set; then
2137 echo $ECHO_N "(cached) $ECHO_C" >&6
2139 case $ac_pt_UNAME in
2141 ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
2144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2148 test -z "$as_dir" && as_dir=.
2149 for ac_exec_ext in '' $ac_executable_extensions; do
2150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2151 ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
2152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2162 ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
2163 if test -n "$ac_pt_UNAME"; then
2164 { echo "$as_me:$LINENO: result: $ac_pt_UNAME" >&5
2165 echo "${ECHO_T}$ac_pt_UNAME" >&6; }
2167 { echo "$as_me:$LINENO: result: no" >&5
2168 echo "${ECHO_T}no" >&6; }
2171 if test "x$ac_pt_UNAME" = x; then
2174 case $cross_compiling:$ac_tool_warned in
2176 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2177 whose name does not start with the host triplet. If you think this
2178 configuration is useful to you, please write to autoconf@gnu.org." >&5
2179 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2180 whose name does not start with the host triplet. If you think this
2181 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2182 ac_tool_warned=yes ;;
2187 UNAME="$ac_cv_path_UNAME"
2190 if test ! x"${UNAME}" = xNo; then
2191 PBX_OSREV=$(${UNAME} -r)
2197 cygwin*|mingw*|windows*|winnt)
2199 cat >>confdefs.h <<\_ACEOF
2204 # this is ugly - KPF
2210 cat >>confdefs.h <<\_ACEOF
2218 cat >>confdefs.h <<\_ACEOF
2226 cat >>confdefs.h <<\_ACEOF
2230 PBX_OSTYPE="FreeBSD"
2231 # XXX temporary hack to let FreeBSD use the default paths
2232 # for local stuff. We need a better solution.
2233 if test x"${CPPFLAGS}" = x; then
2234 CPPFLAGS="-I/usr/local/include"
2236 if test x"${LDFLAGS}" = x; then
2237 LDFLAGS="-L/usr/local/lib"
2242 cat >>confdefs.h <<\_ACEOF
2246 PBX_OSTYPE="OpenBSD"
2250 cat >>confdefs.h <<\_ACEOF
2258 cat >>confdefs.h <<\_ACEOF
2266 cat >>confdefs.h <<\_ACEOF
2275 # This needs to be before any macros that use the C compiler
2277 cat >>confdefs.h <<\_ACEOF
2278 #define _GNU_SOURCE 1
2289 # cross-compile checks
2290 if test x"${build}" != x"${host}";
2292 if test -n "$ac_tool_prefix"; then
2293 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2294 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2295 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2297 if test "${ac_cv_prog_CC+set}" = set; then
2298 echo $ECHO_N "(cached) $ECHO_C" >&6
2300 if test -n "$CC"; then
2301 ac_cv_prog_CC="$CC" # Let the user override the test.
2303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2307 test -z "$as_dir" && as_dir=.
2308 for ac_exec_ext in '' $ac_executable_extensions; do
2309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2310 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2321 if test -n "$CC"; then
2322 { echo "$as_me:$LINENO: result: $CC" >&5
2323 echo "${ECHO_T}$CC" >&6; }
2325 { echo "$as_me:$LINENO: result: no" >&5
2326 echo "${ECHO_T}no" >&6; }
2331 if test -z "$ac_cv_prog_CC"; then
2333 # Extract the first word of "gcc", so it can be a program name with args.
2334 set dummy gcc; ac_word=$2
2335 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2337 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2338 echo $ECHO_N "(cached) $ECHO_C" >&6
2340 if test -n "$ac_ct_CC"; then
2341 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2347 test -z "$as_dir" && as_dir=.
2348 for ac_exec_ext in '' $ac_executable_extensions; do
2349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2350 ac_cv_prog_ac_ct_CC="gcc"
2351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2360 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2361 if test -n "$ac_ct_CC"; then
2362 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2363 echo "${ECHO_T}$ac_ct_CC" >&6; }
2365 { echo "$as_me:$LINENO: result: no" >&5
2366 echo "${ECHO_T}no" >&6; }
2369 if test "x$ac_ct_CC" = x; then
2372 case $cross_compiling:$ac_tool_warned in
2374 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2375 whose name does not start with the host triplet. If you think this
2376 configuration is useful to you, please write to autoconf@gnu.org." >&5
2377 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2378 whose name does not start with the host triplet. If you think this
2379 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2380 ac_tool_warned=yes ;;
2388 if test -n "$ac_tool_prefix"; then
2389 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
2390 set dummy ${ac_tool_prefix}g++; ac_word=$2
2391 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2393 if test "${ac_cv_prog_CXX+set}" = set; then
2394 echo $ECHO_N "(cached) $ECHO_C" >&6
2396 if test -n "$CXX"; then
2397 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2403 test -z "$as_dir" && as_dir=.
2404 for ac_exec_ext in '' $ac_executable_extensions; do
2405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2406 ac_cv_prog_CXX="${ac_tool_prefix}g++"
2407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2417 if test -n "$CXX"; then
2418 { echo "$as_me:$LINENO: result: $CXX" >&5
2419 echo "${ECHO_T}$CXX" >&6; }
2421 { echo "$as_me:$LINENO: result: no" >&5
2422 echo "${ECHO_T}no" >&6; }
2427 if test -z "$ac_cv_prog_CXX"; then
2429 # Extract the first word of "g++", so it can be a program name with args.
2430 set dummy g++; ac_word=$2
2431 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2433 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2434 echo $ECHO_N "(cached) $ECHO_C" >&6
2436 if test -n "$ac_ct_CXX"; then
2437 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2443 test -z "$as_dir" && as_dir=.
2444 for ac_exec_ext in '' $ac_executable_extensions; do
2445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2446 ac_cv_prog_ac_ct_CXX="g++"
2447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2456 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2457 if test -n "$ac_ct_CXX"; then
2458 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2459 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2461 { echo "$as_me:$LINENO: result: no" >&5
2462 echo "${ECHO_T}no" >&6; }
2465 if test "x$ac_ct_CXX" = x; then
2468 case $cross_compiling:$ac_tool_warned in
2470 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2471 whose name does not start with the host triplet. If you think this
2472 configuration is useful to you, please write to autoconf@gnu.org." >&5
2473 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2474 whose name does not start with the host triplet. If you think this
2475 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2476 ac_tool_warned=yes ;;
2481 CXX="$ac_cv_prog_CXX"
2484 if test -n "$ac_tool_prefix"; then
2485 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2486 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2487 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2489 if test "${ac_cv_prog_RANLIB+set}" = set; then
2490 echo $ECHO_N "(cached) $ECHO_C" >&6
2492 if test -n "$RANLIB"; then
2493 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2499 test -z "$as_dir" && as_dir=.
2500 for ac_exec_ext in '' $ac_executable_extensions; do
2501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2502 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2512 RANLIB=$ac_cv_prog_RANLIB
2513 if test -n "$RANLIB"; then
2514 { echo "$as_me:$LINENO: result: $RANLIB" >&5
2515 echo "${ECHO_T}$RANLIB" >&6; }
2517 { echo "$as_me:$LINENO: result: no" >&5
2518 echo "${ECHO_T}no" >&6; }
2523 if test -z "$ac_cv_prog_RANLIB"; then
2524 ac_ct_RANLIB=$RANLIB
2525 # Extract the first word of "ranlib", so it can be a program name with args.
2526 set dummy ranlib; ac_word=$2
2527 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2529 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2530 echo $ECHO_N "(cached) $ECHO_C" >&6
2532 if test -n "$ac_ct_RANLIB"; then
2533 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2539 test -z "$as_dir" && as_dir=.
2540 for ac_exec_ext in '' $ac_executable_extensions; do
2541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2542 ac_cv_prog_ac_ct_RANLIB="ranlib"
2543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2552 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2553 if test -n "$ac_ct_RANLIB"; then
2554 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2555 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
2557 { echo "$as_me:$LINENO: result: no" >&5
2558 echo "${ECHO_T}no" >&6; }
2561 if test "x$ac_ct_RANLIB" = x; then
2564 case $cross_compiling:$ac_tool_warned in
2566 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2567 whose name does not start with the host triplet. If you think this
2568 configuration is useful to you, please write to autoconf@gnu.org." >&5
2569 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2570 whose name does not start with the host triplet. If you think this
2571 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2572 ac_tool_warned=yes ;;
2574 RANLIB=$ac_ct_RANLIB
2577 RANLIB="$ac_cv_prog_RANLIB"
2580 if test -n "$ac_tool_prefix"; then
2581 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2582 set dummy ${ac_tool_prefix}ar; ac_word=$2
2583 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2585 if test "${ac_cv_prog_AR+set}" = set; then
2586 echo $ECHO_N "(cached) $ECHO_C" >&6
2588 if test -n "$AR"; then
2589 ac_cv_prog_AR="$AR" # Let the user override the test.
2591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2595 test -z "$as_dir" && as_dir=.
2596 for ac_exec_ext in '' $ac_executable_extensions; do
2597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2598 ac_cv_prog_AR="${ac_tool_prefix}ar"
2599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2609 if test -n "$AR"; then
2610 { echo "$as_me:$LINENO: result: $AR" >&5
2611 echo "${ECHO_T}$AR" >&6; }
2613 { echo "$as_me:$LINENO: result: no" >&5
2614 echo "${ECHO_T}no" >&6; }
2619 if test -z "$ac_cv_prog_AR"; then
2621 # Extract the first word of "ar", so it can be a program name with args.
2622 set dummy ar; ac_word=$2
2623 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2625 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
2626 echo $ECHO_N "(cached) $ECHO_C" >&6
2628 if test -n "$ac_ct_AR"; then
2629 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2635 test -z "$as_dir" && as_dir=.
2636 for ac_exec_ext in '' $ac_executable_extensions; do
2637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2638 ac_cv_prog_ac_ct_AR="ar"
2639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2648 ac_ct_AR=$ac_cv_prog_ac_ct_AR
2649 if test -n "$ac_ct_AR"; then
2650 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
2651 echo "${ECHO_T}$ac_ct_AR" >&6; }
2653 { echo "$as_me:$LINENO: result: no" >&5
2654 echo "${ECHO_T}no" >&6; }
2657 if test "x$ac_ct_AR" = x; then
2660 case $cross_compiling:$ac_tool_warned in
2662 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2663 whose name does not start with the host triplet. If you think this
2664 configuration is useful to you, please write to autoconf@gnu.org." >&5
2665 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2666 whose name does not start with the host triplet. If you think this
2667 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2668 ac_tool_warned=yes ;;
2677 if test x"${PBX_OSTYPE}" = xWin32;
2679 if test -n "$ac_tool_prefix"; then
2680 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
2681 set dummy ${ac_tool_prefix}nm; ac_word=$2
2682 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2684 if test "${ac_cv_prog_NM+set}" = set; then
2685 echo $ECHO_N "(cached) $ECHO_C" >&6
2687 if test -n "$NM"; then
2688 ac_cv_prog_NM="$NM" # Let the user override the test.
2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2694 test -z "$as_dir" && as_dir=.
2695 for ac_exec_ext in '' $ac_executable_extensions; do
2696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2697 ac_cv_prog_NM="${ac_tool_prefix}nm"
2698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2708 if test -n "$NM"; then
2709 { echo "$as_me:$LINENO: result: $NM" >&5
2710 echo "${ECHO_T}$NM" >&6; }
2712 { echo "$as_me:$LINENO: result: no" >&5
2713 echo "${ECHO_T}no" >&6; }
2718 if test -z "$ac_cv_prog_NM"; then
2720 # Extract the first word of "nm", so it can be a program name with args.
2721 set dummy nm; ac_word=$2
2722 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2724 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
2725 echo $ECHO_N "(cached) $ECHO_C" >&6
2727 if test -n "$ac_ct_NM"; then
2728 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
2730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2734 test -z "$as_dir" && as_dir=.
2735 for ac_exec_ext in '' $ac_executable_extensions; do
2736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2737 ac_cv_prog_ac_ct_NM="nm"
2738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2747 ac_ct_NM=$ac_cv_prog_ac_ct_NM
2748 if test -n "$ac_ct_NM"; then
2749 { echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
2750 echo "${ECHO_T}$ac_ct_NM" >&6; }
2752 { echo "$as_me:$LINENO: result: no" >&5
2753 echo "${ECHO_T}no" >&6; }
2756 if test "x$ac_ct_NM" = x; then
2759 case $cross_compiling:$ac_tool_warned in
2761 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2762 whose name does not start with the host triplet. If you think this
2763 configuration is useful to you, please write to autoconf@gnu.org." >&5
2764 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2765 whose name does not start with the host triplet. If you think this
2766 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2767 ac_tool_warned=yes ;;
2775 if test -n "$ac_tool_prefix"; then
2776 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
2777 set dummy ${ac_tool_prefix}windres; ac_word=$2
2778 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2780 if test "${ac_cv_prog_WINDRES+set}" = set; then
2781 echo $ECHO_N "(cached) $ECHO_C" >&6
2783 if test -n "$WINDRES"; then
2784 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
2786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2790 test -z "$as_dir" && as_dir=.
2791 for ac_exec_ext in '' $ac_executable_extensions; do
2792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2793 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
2794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2803 WINDRES=$ac_cv_prog_WINDRES
2804 if test -n "$WINDRES"; then
2805 { echo "$as_me:$LINENO: result: $WINDRES" >&5
2806 echo "${ECHO_T}$WINDRES" >&6; }
2808 { echo "$as_me:$LINENO: result: no" >&5
2809 echo "${ECHO_T}no" >&6; }
2814 if test -z "$ac_cv_prog_WINDRES"; then
2815 ac_ct_WINDRES=$WINDRES
2816 # Extract the first word of "windres", so it can be a program name with args.
2817 set dummy windres; ac_word=$2
2818 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2820 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
2821 echo $ECHO_N "(cached) $ECHO_C" >&6
2823 if test -n "$ac_ct_WINDRES"; then
2824 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
2826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2830 test -z "$as_dir" && as_dir=.
2831 for ac_exec_ext in '' $ac_executable_extensions; do
2832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2833 ac_cv_prog_ac_ct_WINDRES="windres"
2834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2843 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
2844 if test -n "$ac_ct_WINDRES"; then
2845 { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
2846 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
2848 { echo "$as_me:$LINENO: result: no" >&5
2849 echo "${ECHO_T}no" >&6; }
2852 if test "x$ac_ct_WINDRES" = x; then
2855 case $cross_compiling:$ac_tool_warned in
2857 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2858 whose name does not start with the host triplet. If you think this
2859 configuration is useful to you, please write to autoconf@gnu.org." >&5
2860 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2861 whose name does not start with the host triplet. If you think this
2862 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2863 ac_tool_warned=yes ;;
2865 WINDRES=$ac_ct_WINDRES
2868 WINDRES="$ac_cv_prog_WINDRES"
2871 if test -n "$ac_tool_prefix"; then
2872 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
2873 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
2874 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2876 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
2877 echo $ECHO_N "(cached) $ECHO_C" >&6
2879 if test -n "$DLLWRAP"; then
2880 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
2882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886 test -z "$as_dir" && as_dir=.
2887 for ac_exec_ext in '' $ac_executable_extensions; do
2888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2889 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
2890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2899 DLLWRAP=$ac_cv_prog_DLLWRAP
2900 if test -n "$DLLWRAP"; then
2901 { echo "$as_me:$LINENO: result: $DLLWRAP" >&5
2902 echo "${ECHO_T}$DLLWRAP" >&6; }
2904 { echo "$as_me:$LINENO: result: no" >&5
2905 echo "${ECHO_T}no" >&6; }
2910 if test -z "$ac_cv_prog_DLLWRAP"; then
2911 ac_ct_DLLWRAP=$DLLWRAP
2912 # Extract the first word of "dllwrap", so it can be a program name with args.
2913 set dummy dllwrap; ac_word=$2
2914 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2916 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
2917 echo $ECHO_N "(cached) $ECHO_C" >&6
2919 if test -n "$ac_ct_DLLWRAP"; then
2920 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
2922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2926 test -z "$as_dir" && as_dir=.
2927 for ac_exec_ext in '' $ac_executable_extensions; do
2928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2929 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
2930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2939 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
2940 if test -n "$ac_ct_DLLWRAP"; then
2941 { echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
2942 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6; }
2944 { echo "$as_me:$LINENO: result: no" >&5
2945 echo "${ECHO_T}no" >&6; }
2948 if test "x$ac_ct_DLLWRAP" = x; then
2951 case $cross_compiling:$ac_tool_warned in
2953 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2954 whose name does not start with the host triplet. If you think this
2955 configuration is useful to you, please write to autoconf@gnu.org." >&5
2956 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2957 whose name does not start with the host triplet. If you think this
2958 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2959 ac_tool_warned=yes ;;
2961 DLLWRAP=$ac_ct_DLLWRAP
2964 DLLWRAP="$ac_cv_prog_DLLWRAP"
2971 # Checks for programs.
2973 ac_cpp='$CPP $CPPFLAGS'
2974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2977 if test -n "$ac_tool_prefix"; then
2978 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2979 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2980 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2982 if test "${ac_cv_prog_CC+set}" = set; then
2983 echo $ECHO_N "(cached) $ECHO_C" >&6
2985 if test -n "$CC"; then
2986 ac_cv_prog_CC="$CC" # Let the user override the test.
2988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2992 test -z "$as_dir" && as_dir=.
2993 for ac_exec_ext in '' $ac_executable_extensions; do
2994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2995 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3006 if test -n "$CC"; then
3007 { echo "$as_me:$LINENO: result: $CC" >&5
3008 echo "${ECHO_T}$CC" >&6; }
3010 { echo "$as_me:$LINENO: result: no" >&5
3011 echo "${ECHO_T}no" >&6; }
3016 if test -z "$ac_cv_prog_CC"; then
3018 # Extract the first word of "gcc", so it can be a program name with args.
3019 set dummy gcc; ac_word=$2
3020 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3022 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3023 echo $ECHO_N "(cached) $ECHO_C" >&6
3025 if test -n "$ac_ct_CC"; then
3026 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3032 test -z "$as_dir" && as_dir=.
3033 for ac_exec_ext in '' $ac_executable_extensions; do
3034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3035 ac_cv_prog_ac_ct_CC="gcc"
3036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3045 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3046 if test -n "$ac_ct_CC"; then
3047 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3048 echo "${ECHO_T}$ac_ct_CC" >&6; }
3050 { echo "$as_me:$LINENO: result: no" >&5
3051 echo "${ECHO_T}no" >&6; }
3054 if test "x$ac_ct_CC" = x; then
3057 case $cross_compiling:$ac_tool_warned in
3059 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3060 whose name does not start with the host triplet. If you think this
3061 configuration is useful to you, please write to autoconf@gnu.org." >&5
3062 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3063 whose name does not start with the host triplet. If you think this
3064 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3065 ac_tool_warned=yes ;;
3073 if test -z "$CC"; then
3074 if test -n "$ac_tool_prefix"; then
3075 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3076 set dummy ${ac_tool_prefix}cc; ac_word=$2
3077 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3079 if test "${ac_cv_prog_CC+set}" = set; then
3080 echo $ECHO_N "(cached) $ECHO_C" >&6
3082 if test -n "$CC"; then
3083 ac_cv_prog_CC="$CC" # Let the user override the test.
3085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3089 test -z "$as_dir" && as_dir=.
3090 for ac_exec_ext in '' $ac_executable_extensions; do
3091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3092 ac_cv_prog_CC="${ac_tool_prefix}cc"
3093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3103 if test -n "$CC"; then
3104 { echo "$as_me:$LINENO: result: $CC" >&5
3105 echo "${ECHO_T}$CC" >&6; }
3107 { echo "$as_me:$LINENO: result: no" >&5
3108 echo "${ECHO_T}no" >&6; }
3114 if test -z "$CC"; then
3115 # Extract the first word of "cc", so it can be a program name with args.
3116 set dummy cc; ac_word=$2
3117 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3119 if test "${ac_cv_prog_CC+set}" = set; then
3120 echo $ECHO_N "(cached) $ECHO_C" >&6
3122 if test -n "$CC"; then
3123 ac_cv_prog_CC="$CC" # Let the user override the test.
3126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3130 test -z "$as_dir" && as_dir=.
3131 for ac_exec_ext in '' $ac_executable_extensions; do
3132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3133 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3134 ac_prog_rejected=yes
3138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3145 if test $ac_prog_rejected = yes; then
3146 # We found a bogon in the path, so make sure we never use it.
3147 set dummy $ac_cv_prog_CC
3149 if test $# != 0; then
3150 # We chose a different compiler from the bogus one.
3151 # However, it has the same basename, so the bogon will be chosen
3152 # first if we set CC to just the basename; use the full file name.
3154 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3160 if test -n "$CC"; then
3161 { echo "$as_me:$LINENO: result: $CC" >&5
3162 echo "${ECHO_T}$CC" >&6; }
3164 { echo "$as_me:$LINENO: result: no" >&5
3165 echo "${ECHO_T}no" >&6; }
3170 if test -z "$CC"; then
3171 if test -n "$ac_tool_prefix"; then
3172 for ac_prog in cl.exe
3174 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3175 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3176 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3178 if test "${ac_cv_prog_CC+set}" = set; then
3179 echo $ECHO_N "(cached) $ECHO_C" >&6
3181 if test -n "$CC"; then
3182 ac_cv_prog_CC="$CC" # Let the user override the test.
3184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3188 test -z "$as_dir" && as_dir=.
3189 for ac_exec_ext in '' $ac_executable_extensions; do
3190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3191 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3202 if test -n "$CC"; then
3203 { echo "$as_me:$LINENO: result: $CC" >&5
3204 echo "${ECHO_T}$CC" >&6; }
3206 { echo "$as_me:$LINENO: result: no" >&5
3207 echo "${ECHO_T}no" >&6; }
3211 test -n "$CC" && break
3214 if test -z "$CC"; then
3216 for ac_prog in cl.exe
3218 # Extract the first word of "$ac_prog", so it can be a program name with args.
3219 set dummy $ac_prog; ac_word=$2
3220 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3222 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3223 echo $ECHO_N "(cached) $ECHO_C" >&6
3225 if test -n "$ac_ct_CC"; then
3226 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3232 test -z "$as_dir" && as_dir=.
3233 for ac_exec_ext in '' $ac_executable_extensions; do
3234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3235 ac_cv_prog_ac_ct_CC="$ac_prog"
3236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3245 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3246 if test -n "$ac_ct_CC"; then
3247 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3248 echo "${ECHO_T}$ac_ct_CC" >&6; }
3250 { echo "$as_me:$LINENO: result: no" >&5
3251 echo "${ECHO_T}no" >&6; }
3255 test -n "$ac_ct_CC" && break
3258 if test "x$ac_ct_CC" = x; then
3261 case $cross_compiling:$ac_tool_warned in
3263 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3264 whose name does not start with the host triplet. If you think this
3265 configuration is useful to you, please write to autoconf@gnu.org." >&5
3266 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3267 whose name does not start with the host triplet. If you think this
3268 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3269 ac_tool_warned=yes ;;
3278 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3279 See \`config.log
' for more details." >&5
3280 echo "$as_me: error: no acceptable C compiler found in \$PATH
3281 See \`config.log' for more details.
" >&2;}
3282 { (exit 1); exit 1; }; }
3284 # Provide some information about the compiler.
3285 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
3286 ac_compiler=`set X $ac_compile; echo $2`
3287 { (ac_try="$ac_compiler --version >&5"
3289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3290 *) ac_try_echo=$ac_try;;
3292 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3293 (eval "$ac_compiler --version >&5") 2>&5
3295 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3296 (exit $ac_status); }
3297 { (ac_try="$ac_compiler -v >&5"
3299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3300 *) ac_try_echo=$ac_try;;
3302 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3303 (eval "$ac_compiler -v >&5") 2>&5
3305 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3306 (exit $ac_status); }
3307 { (ac_try="$ac_compiler -V >&5"
3309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3310 *) ac_try_echo=$ac_try;;
3312 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3313 (eval "$ac_compiler -V >&5") 2>&5
3315 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3316 (exit $ac_status); }
3318 cat >conftest.$ac_ext <<_ACEOF
3321 cat confdefs.h >>conftest.$ac_ext
3322 cat >>conftest.$ac_ext <<_ACEOF
3323 /* end confdefs.h. */
3333 ac_clean_files_save=$ac_clean_files
3334 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
3335 # Try to create an executable without -o first, disregard a.out.
3336 # It will help us diagnose broken compilers, and finding out an intuition
3338 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
3339 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
3340 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3342 # List of possible output files, starting from the most likely.
3343 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3344 # only as a last resort. b.out is created by i960 compilers.
3345 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3347 # The IRIX 6 linker writes into existing files which may not be
3348 # executable, retaining their permissions. Remove them first so a
3349 # subsequent execution test works.
3351 for ac_file in $ac_files
3354 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3355 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3360 if { (ac_try="$ac_link_default"
3362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3363 *) ac_try_echo=$ac_try;;
3365 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3366 (eval "$ac_link_default") 2>&5
3368 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3369 (exit $ac_status); }; then
3370 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3371 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3372 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3373 # so that the user can short-circuit this test for compilers unknown to
3375 for ac_file in $ac_files
3377 test -f "$ac_file" || continue
3379 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3382 # We found the default executable, but exeext='' is most
3386 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3388 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3390 # We set ac_cv_exeext here because the later test for it is not
3391 # safe: cross compilers may not add the suffix if given an `-o'
3392 # argument, so we may need to know it at that point already.
3393 # Even if this section looks crufty: it has the advantage of
3400 test "$ac_cv_exeext" = no && ac_cv_exeext=
3403 echo "$as_me: failed program was
:" >&5
3404 sed 's/^/| /' conftest.$ac_ext >&5
3406 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
3407 See \
`config.log' for more details." >&5
3408 echo "$as_me: error: C compiler cannot create executables
3409 See \`config.log
' for more details." >&2;}
3410 { (exit 77); exit 77; }; }
3413 ac_exeext=$ac_cv_exeext
3414 { echo "$as_me:$LINENO: result: $ac_file" >&5
3415 echo "${ECHO_T}$ac_file" >&6; }
3417 # Check that the compiler produces executables we can run. If not, either
3418 # the compiler is broken, or we cross compile.
3419 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3420 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3421 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3422 # If not cross compiling, check that we can run a simple program.
3423 if test "$cross_compiling" != yes; then
3424 if { ac_try='.
/$ac_file'
3425 { (case "(($ac_try" in
3426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3427 *) ac_try_echo=$ac_try;;
3429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3430 (eval "$ac_try") 2>&5
3432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433 (exit $ac_status); }; }; then
3436 if test "$cross_compiling" = maybe; then
3439 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3440 If you meant to cross compile, use \`--host'.
3441 See \
`config.log' for more details." >&5
3442 echo "$as_me: error: cannot run C compiled programs.
3443 If you meant to cross compile, use \`--host'.
3444 See \`config.log' for more details.
" >&2;}
3445 { (exit 1); exit 1; }; }
3449 { echo "$as_me:$LINENO: result
: yes" >&5
3450 echo "${ECHO_T}yes" >&6; }
3452 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3453 ac_clean_files=$ac_clean_files_save
3454 # Check that the compiler produces executables we can run. If not, either
3455 # the compiler is broken, or we cross compile.
3456 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
3457 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
3458 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
3459 echo "${ECHO_T}$cross_compiling" >&6; }
3461 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
3462 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
3463 if { (ac_try="$ac_link"
3465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3466 *) ac_try_echo=$ac_try;;
3468 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3469 (eval "$ac_link") 2>&5
3471 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3472 (exit $ac_status); }; then
3473 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3474 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3475 # work properly (i.e., refer to `conftest.exe'), while it won't with
3477 for ac_file in conftest.exe conftest conftest.*; do
3478 test -f "$ac_file" || continue
3480 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3481 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3487 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
3488 See \
`config.log' for more details." >&5
3489 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3490 See \`config.log
' for more details." >&2;}
3491 { (exit 1); exit 1; }; }
3494 rm -f conftest$ac_cv_exeext
3495 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3496 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3498 rm -f conftest.$ac_ext
3499 EXEEXT=$ac_cv_exeext
3501 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3502 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3503 if test "${ac_cv_objext+set}" = set; then
3504 echo $ECHO_N "(cached) $ECHO_C" >&6
3506 cat >conftest.$ac_ext <<_ACEOF
3509 cat confdefs.h >>conftest.$ac_ext
3510 cat >>conftest.$ac_ext <<_ACEOF
3511 /* end confdefs.h. */
3521 rm -f conftest.o conftest.obj
3522 if { (ac_try="$ac_compile"
3524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3525 *) ac_try_echo=$ac_try;;
3527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3528 (eval "$ac_compile") 2>&5
3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); }; then
3532 for ac_file in conftest.o conftest.obj conftest.*; do
3533 test -f "$ac_file" || continue;
3535 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3536 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
3541 echo "$as_me: failed program was:" >&5
3542 sed 's
/^
/|
/' conftest.$ac_ext >&5
3544 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3545 See \`config.log' for more details.
" >&5
3546 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
3547 See \
`config.log' for more details." >&2;}
3548 { (exit 1); exit 1; }; }
3551 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3553 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3554 echo "${ECHO_T}$ac_cv_objext" >&6; }
3555 OBJEXT=$ac_cv_objext
3557 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3558 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3559 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3560 echo $ECHO_N "(cached) $ECHO_C" >&6
3562 cat >conftest.$ac_ext <<_ACEOF
3565 cat confdefs.h >>conftest.$ac_ext
3566 cat >>conftest.$ac_ext <<_ACEOF
3567 /* end confdefs.h. */
3580 rm -f conftest.$ac_objext
3581 if { (ac_try="$ac_compile"
3583 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3584 *) ac_try_echo
=$ac_try;;
3586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3587 (eval "$ac_compile") 2>conftest.er1
3589 grep -v '^ *+' conftest.er1
>conftest.err
3591 cat conftest.err
>&5
3592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593 (exit $ac_status); } &&
3594 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3595 { (case "(($ac_try" in
3596 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3597 *) ac_try_echo=$ac_try;;
3599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3600 (eval "$ac_try") 2>&5
3602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603 (exit $ac_status); }; } &&
3604 { ac_try='test -s conftest.$ac_objext'
3605 { (case "(($ac_try" in
3606 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3607 *) ac_try_echo
=$ac_try;;
3609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3610 (eval "$ac_try") 2>&5
3612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613 (exit $ac_status); }; }; then
3616 echo "$as_me: failed program was:" >&5
3617 sed 's/^/| /' conftest.
$ac_ext >&5
3622 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3623 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3626 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3627 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3628 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3629 ac_test_CFLAGS
=${CFLAGS+set}
3630 ac_save_CFLAGS
=$CFLAGS
3631 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3632 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3633 if test "${ac_cv_prog_cc_g+set}" = set; then
3634 echo $ECHO_N "(cached) $ECHO_C" >&6
3636 ac_save_c_werror_flag
=$ac_c_werror_flag
3637 ac_c_werror_flag
=yes
3640 cat >conftest.
$ac_ext <<_ACEOF
3643 cat confdefs.h
>>conftest.
$ac_ext
3644 cat >>conftest.
$ac_ext <<_ACEOF
3645 /* end confdefs.h. */
3655 rm -f conftest.
$ac_objext
3656 if { (ac_try
="$ac_compile"
3658 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3659 *) ac_try_echo=$ac_try;;
3661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3662 (eval "$ac_compile") 2>conftest.er1
3664 grep -v '^ *+' conftest.er1 >conftest.err
3666 cat conftest.err >&5
3667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668 (exit $ac_status); } &&
3669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3670 { (case "(($ac_try" in
3671 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3672 *) ac_try_echo
=$ac_try;;
3674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3675 (eval "$ac_try") 2>&5
3677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678 (exit $ac_status); }; } &&
3679 { ac_try
='test -s conftest.$ac_objext'
3680 { (case "(($ac_try" in
3681 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3682 *) ac_try_echo=$ac_try;;
3684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3685 (eval "$ac_try") 2>&5
3687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688 (exit $ac_status); }; }; then
3691 echo "$as_me: failed program was:" >&5
3692 sed 's/^/| /' conftest.$ac_ext >&5
3695 cat >conftest.$ac_ext <<_ACEOF
3698 cat confdefs.h >>conftest.$ac_ext
3699 cat >>conftest.$ac_ext <<_ACEOF
3700 /* end confdefs.h. */
3710 rm -f conftest.$ac_objext
3711 if { (ac_try="$ac_compile"
3713 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3714 *) ac_try_echo
=$ac_try;;
3716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3717 (eval "$ac_compile") 2>conftest.er1
3719 grep -v '^ *+' conftest.er1
>conftest.err
3721 cat conftest.err
>&5
3722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723 (exit $ac_status); } &&
3724 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3725 { (case "(($ac_try" in
3726 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3727 *) ac_try_echo=$ac_try;;
3729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3730 (eval "$ac_try") 2>&5
3732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733 (exit $ac_status); }; } &&
3734 { ac_try='test -s conftest.$ac_objext'
3735 { (case "(($ac_try" in
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_try") 2>&5
3742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3743 (exit $ac_status); }; }; then
3746 echo "$as_me: failed program was:" >&5
3747 sed 's/^/| /' conftest.
$ac_ext >&5
3749 ac_c_werror_flag
=$ac_save_c_werror_flag
3751 cat >conftest.
$ac_ext <<_ACEOF
3754 cat confdefs.h
>>conftest.
$ac_ext
3755 cat >>conftest.
$ac_ext <<_ACEOF
3756 /* end confdefs.h. */
3766 rm -f conftest.
$ac_objext
3767 if { (ac_try
="$ac_compile"
3769 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3770 *) ac_try_echo=$ac_try;;
3772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3773 (eval "$ac_compile") 2>conftest.er1
3775 grep -v '^ *+' conftest.er1 >conftest.err
3777 cat conftest.err >&5
3778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779 (exit $ac_status); } &&
3780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3781 { (case "(($ac_try" in
3782 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3783 *) ac_try_echo
=$ac_try;;
3785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3786 (eval "$ac_try") 2>&5
3788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3789 (exit $ac_status); }; } &&
3790 { ac_try
='test -s conftest.$ac_objext'
3791 { (case "(($ac_try" in
3792 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3793 *) ac_try_echo=$ac_try;;
3795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3796 (eval "$ac_try") 2>&5
3798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799 (exit $ac_status); }; }; then
3802 echo "$as_me: failed program was:" >&5
3803 sed 's/^/| /' conftest.$ac_ext >&5
3808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3814 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3815 ac_c_werror_flag=$ac_save_c_werror_flag
3817 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3818 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3819 if test "$ac_test_CFLAGS" = set; then
3820 CFLAGS=$ac_save_CFLAGS
3821 elif test $ac_cv_prog_cc_g = yes; then
3822 if test "$GCC" = yes; then
3828 if test "$GCC" = yes; then
3834 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3835 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3836 if test "${ac_cv_prog_cc_c89+set}" = set; then
3837 echo $ECHO_N "(cached) $ECHO_C" >&6
3839 ac_cv_prog_cc_c89=no
3841 cat >conftest.$ac_ext <<_ACEOF
3844 cat confdefs.h >>conftest.$ac_ext
3845 cat >>conftest.$ac_ext <<_ACEOF
3846 /* end confdefs.h. */
3849 #include <sys/types.h>
3850 #include <sys/stat.h>
3851 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3852 struct buf { int x; };
3853 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3854 static char *e (p, i)
3860 static char *f (char * (*g) (char **, int), char **p, ...)
3865 s = g (p, va_arg (v,int));
3870 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3871 function prototypes and stuff, but not '\xHH' hex character constants.
3872 These don't provoke an error unfortunately, instead are silently treated
3873 as 'x'. The following induces an error, until -std is added to get
3874 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3875 array size at least. It's necessary to write '\x00'==0 to get something
3876 that's true only with -std. */
3877 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3879 int test (int i, double x);
3880 struct s1 {int (*f) (int a);};
3881 struct s2 {int (*f) (double a);};
3882 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3888 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3893 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3894 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3896 CC="$ac_save_CC $ac_arg"
3897 rm -f conftest.$ac_objext
3898 if { (ac_try="$ac_compile"
3900 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3901 *) ac_try_echo
=$ac_try;;
3903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3904 (eval "$ac_compile") 2>conftest.er1
3906 grep -v '^ *+' conftest.er1
>conftest.err
3908 cat conftest.err
>&5
3909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3910 (exit $ac_status); } &&
3911 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3912 { (case "(($ac_try" in
3913 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3914 *) ac_try_echo=$ac_try;;
3916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3917 (eval "$ac_try") 2>&5
3919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920 (exit $ac_status); }; } &&
3921 { ac_try='test -s conftest.$ac_objext'
3922 { (case "(($ac_try" in
3923 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3924 *) ac_try_echo
=$ac_try;;
3926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3927 (eval "$ac_try") 2>&5
3929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3930 (exit $ac_status); }; }; then
3931 ac_cv_prog_cc_c89
=$ac_arg
3933 echo "$as_me: failed program was:" >&5
3934 sed 's/^/| /' conftest.
$ac_ext >&5
3939 rm -f conftest.err conftest.
$ac_objext
3940 test "x$ac_cv_prog_cc_c89" != "xno" && break
3942 rm -f conftest.
$ac_ext
3947 case "x$ac_cv_prog_cc_c89" in
3949 { echo "$as_me:$LINENO: result: none needed" >&5
3950 echo "${ECHO_T}none needed" >&6; } ;;
3952 { echo "$as_me:$LINENO: result: unsupported" >&5
3953 echo "${ECHO_T}unsupported" >&6; } ;;
3955 CC
="$CC $ac_cv_prog_cc_c89"
3956 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3957 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3962 ac_cpp
='$CPP $CPPFLAGS'
3963 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3964 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3965 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3968 ac_cpp
='$CXXCPP $CPPFLAGS'
3969 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3970 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3971 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3972 if test -z "$CXX"; then
3973 if test -n "$CCC"; then
3976 if test -n "$ac_tool_prefix"; then
3977 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
3979 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3980 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3981 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3983 if test "${ac_cv_prog_CXX+set}" = set; then
3984 echo $ECHO_N "(cached) $ECHO_C" >&6
3986 if test -n "$CXX"; then
3987 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
3989 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3993 test -z "$as_dir" && as_dir
=.
3994 for ac_exec_ext
in '' $ac_executable_extensions; do
3995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3996 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
3997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4007 if test -n "$CXX"; then
4008 { echo "$as_me:$LINENO: result: $CXX" >&5
4009 echo "${ECHO_T}$CXX" >&6; }
4011 { echo "$as_me:$LINENO: result: no" >&5
4012 echo "${ECHO_T}no" >&6; }
4016 test -n "$CXX" && break
4019 if test -z "$CXX"; then
4021 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
4023 # Extract the first word of "$ac_prog", so it can be a program name with args.
4024 set dummy
$ac_prog; ac_word
=$2
4025 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4027 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4028 echo $ECHO_N "(cached) $ECHO_C" >&6
4030 if test -n "$ac_ct_CXX"; then
4031 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
4033 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4037 test -z "$as_dir" && as_dir
=.
4038 for ac_exec_ext
in '' $ac_executable_extensions; do
4039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4040 ac_cv_prog_ac_ct_CXX
="$ac_prog"
4041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4050 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
4051 if test -n "$ac_ct_CXX"; then
4052 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4053 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4055 { echo "$as_me:$LINENO: result: no" >&5
4056 echo "${ECHO_T}no" >&6; }
4060 test -n "$ac_ct_CXX" && break
4063 if test "x$ac_ct_CXX" = x
; then
4066 case $cross_compiling:$ac_tool_warned in
4068 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4069 whose name does not start with the host triplet. If you think this
4070 configuration is useful to you, please write to autoconf@gnu.org." >&5
4071 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4072 whose name does not start with the host triplet. If you think this
4073 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4074 ac_tool_warned
=yes ;;
4082 # Provide some information about the compiler.
4083 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4084 ac_compiler
=`set X $ac_compile; echo $2`
4085 { (ac_try
="$ac_compiler --version >&5"
4087 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4088 *) ac_try_echo=$ac_try;;
4090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4091 (eval "$ac_compiler --version >&5") 2>&5
4093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094 (exit $ac_status); }
4095 { (ac_try="$ac_compiler -v >&5"
4097 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4098 *) ac_try_echo
=$ac_try;;
4100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4101 (eval "$ac_compiler -v >&5") 2>&5
4103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104 (exit $ac_status); }
4105 { (ac_try
="$ac_compiler -V >&5"
4107 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4108 *) ac_try_echo=$ac_try;;
4110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4111 (eval "$ac_compiler -V >&5") 2>&5
4113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114 (exit $ac_status); }
4116 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4117 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4118 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4119 echo $ECHO_N "(cached) $ECHO_C" >&6
4121 cat >conftest.$ac_ext <<_ACEOF
4124 cat confdefs.h >>conftest.$ac_ext
4125 cat >>conftest.$ac_ext <<_ACEOF
4126 /* end confdefs.h. */
4139 rm -f conftest.$ac_objext
4140 if { (ac_try="$ac_compile"
4142 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4143 *) ac_try_echo
=$ac_try;;
4145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4146 (eval "$ac_compile") 2>conftest.er1
4148 grep -v '^ *+' conftest.er1
>conftest.err
4150 cat conftest.err
>&5
4151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152 (exit $ac_status); } &&
4153 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4154 { (case "(($ac_try" in
4155 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4156 *) ac_try_echo=$ac_try;;
4158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4159 (eval "$ac_try") 2>&5
4161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162 (exit $ac_status); }; } &&
4163 { ac_try='test -s conftest.$ac_objext'
4164 { (case "(($ac_try" in
4165 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4166 *) ac_try_echo
=$ac_try;;
4168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4169 (eval "$ac_try") 2>&5
4171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172 (exit $ac_status); }; }; then
4175 echo "$as_me: failed program was:" >&5
4176 sed 's/^/| /' conftest.
$ac_ext >&5
4181 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4182 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4185 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4186 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4187 GXX
=`test $ac_compiler_gnu = yes && echo yes`
4188 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4189 ac_save_CXXFLAGS
=$CXXFLAGS
4190 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4191 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4192 if test "${ac_cv_prog_cxx_g+set}" = set; then
4193 echo $ECHO_N "(cached) $ECHO_C" >&6
4195 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4196 ac_cxx_werror_flag
=yes
4199 cat >conftest.
$ac_ext <<_ACEOF
4202 cat confdefs.h
>>conftest.
$ac_ext
4203 cat >>conftest.
$ac_ext <<_ACEOF
4204 /* end confdefs.h. */
4214 rm -f conftest.
$ac_objext
4215 if { (ac_try
="$ac_compile"
4217 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4218 *) ac_try_echo=$ac_try;;
4220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4221 (eval "$ac_compile") 2>conftest.er1
4223 grep -v '^ *+' conftest.er1 >conftest.err
4225 cat conftest.err >&5
4226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227 (exit $ac_status); } &&
4228 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4229 { (case "(($ac_try" in
4230 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4231 *) ac_try_echo
=$ac_try;;
4233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4234 (eval "$ac_try") 2>&5
4236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237 (exit $ac_status); }; } &&
4238 { ac_try
='test -s conftest.$ac_objext'
4239 { (case "(($ac_try" in
4240 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4241 *) ac_try_echo=$ac_try;;
4243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4244 (eval "$ac_try") 2>&5
4246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4247 (exit $ac_status); }; }; then
4248 ac_cv_prog_cxx_g=yes
4250 echo "$as_me: failed program was:" >&5
4251 sed 's/^/| /' conftest.$ac_ext >&5
4254 cat >conftest.$ac_ext <<_ACEOF
4257 cat confdefs.h >>conftest.$ac_ext
4258 cat >>conftest.$ac_ext <<_ACEOF
4259 /* end confdefs.h. */
4269 rm -f conftest.$ac_objext
4270 if { (ac_try="$ac_compile"
4272 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4273 *) ac_try_echo
=$ac_try;;
4275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4276 (eval "$ac_compile") 2>conftest.er1
4278 grep -v '^ *+' conftest.er1
>conftest.err
4280 cat conftest.err
>&5
4281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282 (exit $ac_status); } &&
4283 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4284 { (case "(($ac_try" in
4285 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4286 *) ac_try_echo=$ac_try;;
4288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4289 (eval "$ac_try") 2>&5
4291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292 (exit $ac_status); }; } &&
4293 { ac_try='test -s conftest.$ac_objext'
4294 { (case "(($ac_try" in
4295 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4296 *) ac_try_echo
=$ac_try;;
4298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4299 (eval "$ac_try") 2>&5
4301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302 (exit $ac_status); }; }; then
4305 echo "$as_me: failed program was:" >&5
4306 sed 's/^/| /' conftest.
$ac_ext >&5
4308 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4310 cat >conftest.
$ac_ext <<_ACEOF
4313 cat confdefs.h
>>conftest.
$ac_ext
4314 cat >>conftest.
$ac_ext <<_ACEOF
4315 /* end confdefs.h. */
4325 rm -f conftest.
$ac_objext
4326 if { (ac_try
="$ac_compile"
4328 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4329 *) ac_try_echo=$ac_try;;
4331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4332 (eval "$ac_compile") 2>conftest.er1
4334 grep -v '^ *+' conftest.er1 >conftest.err
4336 cat conftest.err >&5
4337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338 (exit $ac_status); } &&
4339 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4340 { (case "(($ac_try" in
4341 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4342 *) ac_try_echo
=$ac_try;;
4344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4345 (eval "$ac_try") 2>&5
4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348 (exit $ac_status); }; } &&
4349 { ac_try
='test -s conftest.$ac_objext'
4350 { (case "(($ac_try" in
4351 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4352 *) ac_try_echo=$ac_try;;
4354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4355 (eval "$ac_try") 2>&5
4357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358 (exit $ac_status); }; }; then
4359 ac_cv_prog_cxx_g=yes
4361 echo "$as_me: failed program was:" >&5
4362 sed 's/^/| /' conftest.$ac_ext >&5
4367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4374 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4376 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4377 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4378 if test "$ac_test_CXXFLAGS" = set; then
4379 CXXFLAGS=$ac_save_CXXFLAGS
4380 elif test $ac_cv_prog_cxx_g = yes; then
4381 if test "$GXX" = yes; then
4387 if test "$GXX" = yes; then
4394 ac_cpp='$CPP $CPPFLAGS'
4395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4400 ac_cpp='$CPP $CPPFLAGS'
4401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4404 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4405 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4406 # On Suns, sometimes $CPP names a directory.
4407 if test -n "$CPP" && test -d "$CPP"; then
4410 if test -z "$CPP"; then
4411 if test "${ac_cv_prog_CPP+set}" = set; then
4412 echo $ECHO_N "(cached) $ECHO_C" >&6
4414 # Double quotes because CPP needs to be expanded
4415 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4418 for ac_c_preproc_warn_flag in '' yes
4420 # Use a header file that comes with gcc, so configuring glibc
4421 # with a fresh cross-compiler works.
4422 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4423 # <limits.h> exists even on freestanding compilers.
4424 # On the NeXT, cc -E runs the code through the compiler's parser,
4425 # not just through cpp. "Syntax error" is here to catch this case.
4426 cat >conftest.$ac_ext <<_ACEOF
4429 cat confdefs.h >>conftest.$ac_ext
4430 cat >>conftest.$ac_ext <<_ACEOF
4431 /* end confdefs.h. */
4433 # include <limits.h>
4435 # include <assert.h>
4439 if { (ac_try="$ac_cpp conftest.$ac_ext"
4441 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4442 *) ac_try_echo
=$ac_try;;
4444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4445 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4447 grep -v '^ *+' conftest.er1
>conftest.err
4449 cat conftest.err
>&5
4450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451 (exit $ac_status); } >/dev
/null
; then
4452 if test -s conftest.err
; then
4453 ac_cpp_err
=$ac_c_preproc_warn_flag
4454 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4461 if test -z "$ac_cpp_err"; then
4464 echo "$as_me: failed program was:" >&5
4465 sed 's/^/| /' conftest.
$ac_ext >&5
4467 # Broken: fails on valid input.
4471 rm -f conftest.err conftest.
$ac_ext
4473 # OK, works on sane cases. Now check whether nonexistent headers
4474 # can be detected and how.
4475 cat >conftest.
$ac_ext <<_ACEOF
4478 cat confdefs.h
>>conftest.
$ac_ext
4479 cat >>conftest.
$ac_ext <<_ACEOF
4480 /* end confdefs.h. */
4481 #include <ac_nonexistent.h>
4483 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4485 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4486 *) ac_try_echo=$ac_try;;
4488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4489 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4491 grep -v '^ *+' conftest.er1 >conftest.err
4493 cat conftest.err >&5
4494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495 (exit $ac_status); } >/dev/null; then
4496 if test -s conftest.err; then
4497 ac_cpp_err=$ac_c_preproc_warn_flag
4498 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4505 if test -z "$ac_cpp_err"; then
4506 # Broken: success on invalid input.
4509 echo "$as_me: failed program was:" >&5
4510 sed 's/^/| /' conftest.$ac_ext >&5
4512 # Passes both tests.
4517 rm -f conftest.err conftest.$ac_ext
4520 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4521 rm -f conftest.err conftest.
$ac_ext
4522 if $ac_preproc_ok; then
4534 { echo "$as_me:$LINENO: result: $CPP" >&5
4535 echo "${ECHO_T}$CPP" >&6; }
4537 for ac_c_preproc_warn_flag
in '' yes
4539 # Use a header file that comes with gcc, so configuring glibc
4540 # with a fresh cross-compiler works.
4541 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4542 # <limits.h> exists even on freestanding compilers.
4543 # On the NeXT, cc -E runs the code through the compiler's parser,
4544 # not just through cpp. "Syntax error" is here to catch this case.
4545 cat >conftest.
$ac_ext <<_ACEOF
4548 cat confdefs.h
>>conftest.
$ac_ext
4549 cat >>conftest.
$ac_ext <<_ACEOF
4550 /* end confdefs.h. */
4552 # include <limits.h>
4554 # include <assert.h>
4558 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4560 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4561 *) ac_try_echo=$ac_try;;
4563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4564 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4566 grep -v '^ *+' conftest.er1 >conftest.err
4568 cat conftest.err >&5
4569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570 (exit $ac_status); } >/dev/null; then
4571 if test -s conftest.err; then
4572 ac_cpp_err=$ac_c_preproc_warn_flag
4573 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4580 if test -z "$ac_cpp_err"; then
4583 echo "$as_me: failed program was:" >&5
4584 sed 's/^/| /' conftest.$ac_ext >&5
4586 # Broken: fails on valid input.
4590 rm -f conftest.err conftest.$ac_ext
4592 # OK, works on sane cases. Now check whether nonexistent headers
4593 # can be detected and how.
4594 cat >conftest.$ac_ext <<_ACEOF
4597 cat confdefs.h >>conftest.$ac_ext
4598 cat >>conftest.$ac_ext <<_ACEOF
4599 /* end confdefs.h. */
4600 #include <ac_nonexistent.h>
4602 if { (ac_try="$ac_cpp conftest.$ac_ext"
4604 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4605 *) ac_try_echo
=$ac_try;;
4607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4608 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4610 grep -v '^ *+' conftest.er1
>conftest.err
4612 cat conftest.err
>&5
4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614 (exit $ac_status); } >/dev
/null
; then
4615 if test -s conftest.err
; then
4616 ac_cpp_err
=$ac_c_preproc_warn_flag
4617 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4624 if test -z "$ac_cpp_err"; then
4625 # Broken: success on invalid input.
4628 echo "$as_me: failed program was:" >&5
4629 sed 's/^/| /' conftest.
$ac_ext >&5
4631 # Passes both tests.
4636 rm -f conftest.err conftest.
$ac_ext
4639 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4640 rm -f conftest.err conftest.
$ac_ext
4641 if $ac_preproc_ok; then
4644 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4645 See \`config.log' for more details." >&5
4646 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4647 See \`config.log' for more details." >&2;}
4648 { (exit 1); exit 1; }; }
4652 ac_cpp
='$CPP $CPPFLAGS'
4653 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4654 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4655 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4658 ac_cpp
='$CXXCPP $CPPFLAGS'
4659 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4660 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4661 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4662 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4663 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
4664 if test -z "$CXXCPP"; then
4665 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4666 echo $ECHO_N "(cached) $ECHO_C" >&6
4668 # Double quotes because CXXCPP needs to be expanded
4669 for CXXCPP
in "$CXX -E" "/lib/cpp"
4672 for ac_cxx_preproc_warn_flag
in '' yes
4674 # Use a header file that comes with gcc, so configuring glibc
4675 # with a fresh cross-compiler works.
4676 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4677 # <limits.h> exists even on freestanding compilers.
4678 # On the NeXT, cc -E runs the code through the compiler's parser,
4679 # not just through cpp. "Syntax error" is here to catch this case.
4680 cat >conftest.
$ac_ext <<_ACEOF
4683 cat confdefs.h
>>conftest.
$ac_ext
4684 cat >>conftest.
$ac_ext <<_ACEOF
4685 /* end confdefs.h. */
4687 # include <limits.h>
4689 # include <assert.h>
4693 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4695 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4696 *) ac_try_echo=$ac_try;;
4698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4699 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4701 grep -v '^ *+' conftest.er1 >conftest.err
4703 cat conftest.err >&5
4704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705 (exit $ac_status); } >/dev/null; then
4706 if test -s conftest.err; then
4707 ac_cpp_err=$ac_cxx_preproc_warn_flag
4708 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4715 if test -z "$ac_cpp_err"; then
4718 echo "$as_me: failed program was:" >&5
4719 sed 's/^/| /' conftest.$ac_ext >&5
4721 # Broken: fails on valid input.
4725 rm -f conftest.err conftest.$ac_ext
4727 # OK, works on sane cases. Now check whether nonexistent headers
4728 # can be detected and how.
4729 cat >conftest.$ac_ext <<_ACEOF
4732 cat confdefs.h >>conftest.$ac_ext
4733 cat >>conftest.$ac_ext <<_ACEOF
4734 /* end confdefs.h. */
4735 #include <ac_nonexistent.h>
4737 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev
/null
; then
4750 if test -s conftest.err
; then
4751 ac_cpp_err
=$ac_cxx_preproc_warn_flag
4752 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
4759 if test -z "$ac_cpp_err"; then
4760 # Broken: success on invalid input.
4763 echo "$as_me: failed program was:" >&5
4764 sed 's/^/| /' conftest.
$ac_ext >&5
4766 # Passes both tests.
4771 rm -f conftest.err conftest.
$ac_ext
4774 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4775 rm -f conftest.err conftest.
$ac_ext
4776 if $ac_preproc_ok; then
4781 ac_cv_prog_CXXCPP
=$CXXCPP
4784 CXXCPP
=$ac_cv_prog_CXXCPP
4786 ac_cv_prog_CXXCPP
=$CXXCPP
4788 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
4789 echo "${ECHO_T}$CXXCPP" >&6; }
4791 for ac_cxx_preproc_warn_flag
in '' yes
4793 # Use a header file that comes with gcc, so configuring glibc
4794 # with a fresh cross-compiler works.
4795 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4796 # <limits.h> exists even on freestanding compilers.
4797 # On the NeXT, cc -E runs the code through the compiler's parser,
4798 # not just through cpp. "Syntax error" is here to catch this case.
4799 cat >conftest.
$ac_ext <<_ACEOF
4802 cat confdefs.h
>>conftest.
$ac_ext
4803 cat >>conftest.
$ac_ext <<_ACEOF
4804 /* end confdefs.h. */
4806 # include <limits.h>
4808 # include <assert.h>
4812 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4814 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4815 *) ac_try_echo=$ac_try;;
4817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4818 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4820 grep -v '^ *+' conftest.er1 >conftest.err
4822 cat conftest.err >&5
4823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824 (exit $ac_status); } >/dev/null; then
4825 if test -s conftest.err; then
4826 ac_cpp_err=$ac_cxx_preproc_warn_flag
4827 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4834 if test -z "$ac_cpp_err"; then
4837 echo "$as_me: failed program was:" >&5
4838 sed 's/^/| /' conftest.$ac_ext >&5
4840 # Broken: fails on valid input.
4844 rm -f conftest.err conftest.$ac_ext
4846 # OK, works on sane cases. Now check whether nonexistent headers
4847 # can be detected and how.
4848 cat >conftest.$ac_ext <<_ACEOF
4851 cat confdefs.h >>conftest.$ac_ext
4852 cat >>conftest.$ac_ext <<_ACEOF
4853 /* end confdefs.h. */
4854 #include <ac_nonexistent.h>
4856 if { (ac_try="$ac_cpp conftest.$ac_ext"
4858 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4859 *) ac_try_echo
=$ac_try;;
4861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4862 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4864 grep -v '^ *+' conftest.er1
>conftest.err
4866 cat conftest.err
>&5
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); } >/dev
/null
; then
4869 if test -s conftest.err
; then
4870 ac_cpp_err
=$ac_cxx_preproc_warn_flag
4871 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
4878 if test -z "$ac_cpp_err"; then
4879 # Broken: success on invalid input.
4882 echo "$as_me: failed program was:" >&5
4883 sed 's/^/| /' conftest.
$ac_ext >&5
4885 # Passes both tests.
4890 rm -f conftest.err conftest.
$ac_ext
4893 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4894 rm -f conftest.err conftest.
$ac_ext
4895 if $ac_preproc_ok; then
4898 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4899 See \`config.log' for more details." >&5
4900 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4901 See \`config.log' for more details." >&2;}
4902 { (exit 1); exit 1; }; }
4906 ac_cpp
='$CPP $CPPFLAGS'
4907 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4908 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4909 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4911 for ac_prog
in gawk mawk nawk
awk
4913 # Extract the first word of "$ac_prog", so it can be a program name with args.
4914 set dummy
$ac_prog; ac_word
=$2
4915 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4917 if test "${ac_cv_prog_AWK+set}" = set; then
4918 echo $ECHO_N "(cached) $ECHO_C" >&6
4920 if test -n "$AWK"; then
4921 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
4923 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4927 test -z "$as_dir" && as_dir
=.
4928 for ac_exec_ext
in '' $ac_executable_extensions; do
4929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4930 ac_cv_prog_AWK
="$ac_prog"
4931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4941 if test -n "$AWK"; then
4942 { echo "$as_me:$LINENO: result: $AWK" >&5
4943 echo "${ECHO_T}$AWK" >&6; }
4945 { echo "$as_me:$LINENO: result: no" >&5
4946 echo "${ECHO_T}no" >&6; }
4950 test -n "$AWK" && break
4953 # Find a good install program. We prefer a C program (faster),
4954 # so one script is as good as another. But avoid the broken or
4955 # incompatible versions:
4956 # SysV /etc/install, /usr/sbin/install
4957 # SunOS /usr/etc/install
4958 # IRIX /sbin/install
4960 # AmigaOS /C/install, which installs bootblocks on floppy discs
4961 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4962 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4963 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4964 # OS/2's system install, which has a completely different semantic
4965 # ./install, which can be erroneously created by make from ./install.sh.
4966 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4967 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4968 if test -z "$INSTALL"; then
4969 if test "${ac_cv_path_install+set}" = set; then
4970 echo $ECHO_N "(cached) $ECHO_C" >&6
4972 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4976 test -z "$as_dir" && as_dir
=.
4977 # Account for people who put trailing slashes in PATH elements.
4979 .
/ | .
// |
/cC
/* | \
4980 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4981 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4984 # OSF1 and SCO ODT 3.0 have their own names for install.
4985 # Don't use installbsd from OSF since it installs stuff as root
4987 for ac_prog
in ginstall scoinst
install; do
4988 for ac_exec_ext
in '' $ac_executable_extensions; do
4989 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
4990 if test $ac_prog = install &&
4991 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4992 # AIX install. It has an incompatible calling convention.
4994 elif test $ac_prog = install &&
4995 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4996 # program-specific install script used by HP pwplus--don't use.
4999 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5012 if test "${ac_cv_path_install+set}" = set; then
5013 INSTALL
=$ac_cv_path_install
5015 # As a last resort, use the slow shell script. Don't cache a
5016 # value for INSTALL within a source directory, because that will
5017 # break other packages using the cache if that directory is
5018 # removed, or if the value is a relative name.
5019 INSTALL
=$ac_install_sh
5022 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5023 echo "${ECHO_T}$INSTALL" >&6; }
5025 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5026 # It thinks the first close brace ends the variable substitution.
5027 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5029 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5031 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5033 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5034 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5036 if test "$LN_S" = "ln -s"; then
5037 { echo "$as_me:$LINENO: result: yes" >&5
5038 echo "${ECHO_T}yes" >&6; }
5040 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5041 echo "${ECHO_T}no, using $LN_S" >&6; }
5044 if test -n "$ac_tool_prefix"; then
5045 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5046 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5047 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5049 if test "${ac_cv_prog_RANLIB+set}" = set; then
5050 echo $ECHO_N "(cached) $ECHO_C" >&6
5052 if test -n "$RANLIB"; then
5053 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5055 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5059 test -z "$as_dir" && as_dir
=.
5060 for ac_exec_ext
in '' $ac_executable_extensions; do
5061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5062 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5072 RANLIB
=$ac_cv_prog_RANLIB
5073 if test -n "$RANLIB"; then
5074 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5075 echo "${ECHO_T}$RANLIB" >&6; }
5077 { echo "$as_me:$LINENO: result: no" >&5
5078 echo "${ECHO_T}no" >&6; }
5083 if test -z "$ac_cv_prog_RANLIB"; then
5084 ac_ct_RANLIB
=$RANLIB
5085 # Extract the first word of "ranlib", so it can be a program name with args.
5086 set dummy ranlib
; ac_word
=$2
5087 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5089 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5090 echo $ECHO_N "(cached) $ECHO_C" >&6
5092 if test -n "$ac_ct_RANLIB"; then
5093 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5095 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5099 test -z "$as_dir" && as_dir
=.
5100 for ac_exec_ext
in '' $ac_executable_extensions; do
5101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5102 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5112 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5113 if test -n "$ac_ct_RANLIB"; then
5114 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5115 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5117 { echo "$as_me:$LINENO: result: no" >&5
5118 echo "${ECHO_T}no" >&6; }
5121 if test "x$ac_ct_RANLIB" = x
; then
5124 case $cross_compiling:$ac_tool_warned in
5126 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5127 whose name does not start with the host triplet. If you think this
5128 configuration is useful to you, please write to autoconf@gnu.org." >&5
5129 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5130 whose name does not start with the host triplet. If you think this
5131 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5132 ac_tool_warned
=yes ;;
5134 RANLIB
=$ac_ct_RANLIB
5137 RANLIB
="$ac_cv_prog_RANLIB"
5140 { echo "$as_me:$LINENO: checking for GNU make" >&5
5141 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5142 if test "${GNU_MAKE+set}" = set; then
5143 echo $ECHO_N "(cached) $ECHO_C" >&6
5145 GNU_MAKE
='Not Found' ;
5146 for a
in make gmake gnumake
; do
5147 if test -z "$a" ; then continue ; fi ;
5148 if ( sh
-c "$a --version" 2> /dev
/null |
grep GNU
2>&1 > /dev
/null
) ; then
5155 { echo "$as_me:$LINENO: result: $GNU_MAKE" >&5
5156 echo "${ECHO_T}$GNU_MAKE" >&6; } ;
5157 if test "x$GNU_MAKE" = "xNot Found" ; then
5158 echo " *** Please install GNU make. It is required to build Asterisk!"
5164 # Extract the first word of "grep", so it can be a program name with args.
5165 set dummy
grep; ac_word
=$2
5166 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5168 if test "${ac_cv_path_GREP+set}" = set; then
5169 echo $ECHO_N "(cached) $ECHO_C" >&6
5173 ac_cv_path_GREP
="$GREP" # Let the user override the test with a path.
5176 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5180 test -z "$as_dir" && as_dir
=.
5181 for ac_exec_ext
in '' $ac_executable_extensions; do
5182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5183 ac_cv_path_GREP
="$as_dir/$ac_word$ac_exec_ext"
5184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5191 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP
=":"
5195 GREP
=$ac_cv_path_GREP
5196 if test -n "$GREP"; then
5197 { echo "$as_me:$LINENO: result: $GREP" >&5
5198 echo "${ECHO_T}$GREP" >&6; }
5200 { echo "$as_me:$LINENO: result: no" >&5
5201 echo "${ECHO_T}no" >&6; }
5205 # Extract the first word of "ar", so it can be a program name with args.
5206 set dummy
ar; ac_word
=$2
5207 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5209 if test "${ac_cv_path_AR+set}" = set; then
5210 echo $ECHO_N "(cached) $ECHO_C" >&6
5214 ac_cv_path_AR
="$AR" # Let the user override the test with a path.
5217 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5221 test -z "$as_dir" && as_dir
=.
5222 for ac_exec_ext
in '' $ac_executable_extensions; do
5223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5224 ac_cv_path_AR
="$as_dir/$ac_word$ac_exec_ext"
5225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5232 test -z "$ac_cv_path_AR" && ac_cv_path_AR
=":"
5237 if test -n "$AR"; then
5238 { echo "$as_me:$LINENO: result: $AR" >&5
5239 echo "${ECHO_T}$AR" >&6; }
5241 { echo "$as_me:$LINENO: result: no" >&5
5242 echo "${ECHO_T}no" >&6; }
5246 # Extract the first word of "find", so it can be a program name with args.
5247 set dummy
find; ac_word
=$2
5248 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5250 if test "${ac_cv_path_FIND+set}" = set; then
5251 echo $ECHO_N "(cached) $ECHO_C" >&6
5255 ac_cv_path_FIND
="$FIND" # Let the user override the test with a path.
5258 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5262 test -z "$as_dir" && as_dir
=.
5263 for ac_exec_ext
in '' $ac_executable_extensions; do
5264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5265 ac_cv_path_FIND
="$as_dir/$ac_word$ac_exec_ext"
5266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5273 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND
=":"
5277 FIND
=$ac_cv_path_FIND
5278 if test -n "$FIND"; then
5279 { echo "$as_me:$LINENO: result: $FIND" >&5
5280 echo "${ECHO_T}$FIND" >&6; }
5282 { echo "$as_me:$LINENO: result: no" >&5
5283 echo "${ECHO_T}no" >&6; }
5287 # Extract the first word of "compress", so it can be a program name with args.
5288 set dummy
compress; ac_word
=$2
5289 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5291 if test "${ac_cv_path_COMPRESS+set}" = set; then
5292 echo $ECHO_N "(cached) $ECHO_C" >&6
5296 ac_cv_path_COMPRESS
="$COMPRESS" # Let the user override the test with a path.
5299 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5303 test -z "$as_dir" && as_dir
=.
5304 for ac_exec_ext
in '' $ac_executable_extensions; do
5305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5306 ac_cv_path_COMPRESS
="$as_dir/$ac_word$ac_exec_ext"
5307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5314 test -z "$ac_cv_path_COMPRESS" && ac_cv_path_COMPRESS
=":"
5318 COMPRESS
=$ac_cv_path_COMPRESS
5319 if test -n "$COMPRESS"; then
5320 { echo "$as_me:$LINENO: result: $COMPRESS" >&5
5321 echo "${ECHO_T}$COMPRESS" >&6; }
5323 { echo "$as_me:$LINENO: result: no" >&5
5324 echo "${ECHO_T}no" >&6; }
5328 # Extract the first word of "basename", so it can be a program name with args.
5329 set dummy
basename; ac_word
=$2
5330 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5332 if test "${ac_cv_path_BASENAME+set}" = set; then
5333 echo $ECHO_N "(cached) $ECHO_C" >&6
5337 ac_cv_path_BASENAME
="$BASENAME" # Let the user override the test with a path.
5340 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5344 test -z "$as_dir" && as_dir
=.
5345 for ac_exec_ext
in '' $ac_executable_extensions; do
5346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5347 ac_cv_path_BASENAME
="$as_dir/$ac_word$ac_exec_ext"
5348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5355 test -z "$ac_cv_path_BASENAME" && ac_cv_path_BASENAME
=":"
5359 BASENAME
=$ac_cv_path_BASENAME
5360 if test -n "$BASENAME"; then
5361 { echo "$as_me:$LINENO: result: $BASENAME" >&5
5362 echo "${ECHO_T}$BASENAME" >&6; }
5364 { echo "$as_me:$LINENO: result: no" >&5
5365 echo "${ECHO_T}no" >&6; }
5369 # Extract the first word of "dirname", so it can be a program name with args.
5370 set dummy
dirname; ac_word
=$2
5371 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5373 if test "${ac_cv_path_DIRNAME+set}" = set; then
5374 echo $ECHO_N "(cached) $ECHO_C" >&6
5378 ac_cv_path_DIRNAME
="$DIRNAME" # Let the user override the test with a path.
5381 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5385 test -z "$as_dir" && as_dir
=.
5386 for ac_exec_ext
in '' $ac_executable_extensions; do
5387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5388 ac_cv_path_DIRNAME
="$as_dir/$ac_word$ac_exec_ext"
5389 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5396 test -z "$ac_cv_path_DIRNAME" && ac_cv_path_DIRNAME
=":"
5400 DIRNAME
=$ac_cv_path_DIRNAME
5401 if test -n "$DIRNAME"; then
5402 { echo "$as_me:$LINENO: result: $DIRNAME" >&5
5403 echo "${ECHO_T}$DIRNAME" >&6; }
5405 { echo "$as_me:$LINENO: result: no" >&5
5406 echo "${ECHO_T}no" >&6; }
5410 # Extract the first word of "sh", so it can be a program name with args.
5411 set dummy sh
; ac_word
=$2
5412 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5414 if test "${ac_cv_path_SHELL+set}" = set; then
5415 echo $ECHO_N "(cached) $ECHO_C" >&6
5419 ac_cv_path_SHELL
="$SHELL" # Let the user override the test with a path.
5422 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5426 test -z "$as_dir" && as_dir
=.
5427 for ac_exec_ext
in '' $ac_executable_extensions; do
5428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5429 ac_cv_path_SHELL
="$as_dir/$ac_word$ac_exec_ext"
5430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5437 test -z "$ac_cv_path_SHELL" && ac_cv_path_SHELL
=":"
5441 SHELL
=$ac_cv_path_SHELL
5442 if test -n "$SHELL"; then
5443 { echo "$as_me:$LINENO: result: $SHELL" >&5
5444 echo "${ECHO_T}$SHELL" >&6; }
5446 { echo "$as_me:$LINENO: result: no" >&5
5447 echo "${ECHO_T}no" >&6; }
5451 # Extract the first word of "ln", so it can be a program name with args.
5452 set dummy
ln; ac_word
=$2
5453 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5455 if test "${ac_cv_path_LN+set}" = set; then
5456 echo $ECHO_N "(cached) $ECHO_C" >&6
5460 ac_cv_path_LN
="$LN" # Let the user override the test with a path.
5463 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5467 test -z "$as_dir" && as_dir
=.
5468 for ac_exec_ext
in '' $ac_executable_extensions; do
5469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5470 ac_cv_path_LN
="$as_dir/$ac_word$ac_exec_ext"
5471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5478 test -z "$ac_cv_path_LN" && ac_cv_path_LN
=":"
5483 if test -n "$LN"; then
5484 { echo "$as_me:$LINENO: result: $LN" >&5
5485 echo "${ECHO_T}$LN" >&6; }
5487 { echo "$as_me:$LINENO: result: no" >&5
5488 echo "${ECHO_T}no" >&6; }
5492 # Extract the first word of "dot", so it can be a program name with args.
5493 set dummy dot
; ac_word
=$2
5494 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5496 if test "${ac_cv_path_DOT+set}" = set; then
5497 echo $ECHO_N "(cached) $ECHO_C" >&6
5501 ac_cv_path_DOT
="$DOT" # Let the user override the test with a path.
5504 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5508 test -z "$as_dir" && as_dir
=.
5509 for ac_exec_ext
in '' $ac_executable_extensions; do
5510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5511 ac_cv_path_DOT
="$as_dir/$ac_word$ac_exec_ext"
5512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5519 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT
=":"
5524 if test -n "$DOT"; then
5525 { echo "$as_me:$LINENO: result: $DOT" >&5
5526 echo "${ECHO_T}$DOT" >&6; }
5528 { echo "$as_me:$LINENO: result: no" >&5
5529 echo "${ECHO_T}no" >&6; }
5535 ac_cpp
='$CPP $CPPFLAGS'
5536 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5537 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5538 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5541 # Check whether --enable-dev-mode was given.
5542 if test "${enable_dev_mode+set}" = set; then
5543 enableval
=$enable_dev_mode; case "${enableval}" in
5544 y|ye|
yes) AST_DEVMODE
=yes ;;
5545 n|no
) AST_DEVMODE
=no
;;
5546 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-dev-mode" >&5
5547 echo "$as_me: error: bad value ${enableval} for --enable-dev-mode" >&2;}
5548 { (exit 1); exit 1; }; } ;;
5554 # package option names should be in alphabetical order
5555 # by the --with option name, to make things easier for the users :-)
5558 ALSA_DESCRIP
="Advanced Linux Sound Architecture"
5559 ALSA_OPTION
="asound"
5561 # Check whether --with-asound was given.
5562 if test "${with_asound+set}" = set; then
5563 withval
=$with_asound;
5569 ALSA_MANDATORY
="yes"
5572 ALSA_DIR
="${withval}"
5573 ALSA_MANDATORY
="yes"
5585 CURSES_DESCRIP
="curses"
5586 CURSES_OPTION
="curses"
5588 # Check whether --with-curses was given.
5589 if test "${with_curses+set}" = set; then
5590 withval
=$with_curses;
5596 CURSES_MANDATORY
="yes"
5599 CURSES_DIR
="${withval}"
5600 CURSES_MANDATORY
="yes"
5615 # Check whether --with-gsm was given.
5616 if test "${with_gsm+set}" = set; then
5626 GSM_DIR
="${withval}"
5639 IKSEMEL_DESCRIP
="Iksemel Jabber Library"
5640 IKSEMEL_OPTION
="iksemel"
5642 # Check whether --with-iksemel was given.
5643 if test "${with_iksemel+set}" = set; then
5644 withval
=$with_iksemel;
5650 IKSEMEL_MANDATORY
="yes"
5653 IKSEMEL_DIR
="${withval}"
5654 IKSEMEL_MANDATORY
="yes"
5666 IMAP_TK_DESCRIP
="UW IMAP Toolkit"
5667 IMAP_TK_OPTION
="imap"
5669 # Check whether --with-imap was given.
5670 if test "${with_imap+set}" = set; then
5677 IMAP_TK_MANDATORY
="yes"
5680 IMAP_TK_DIR
="${withval}"
5681 IMAP_TK_MANDATORY
="yes"
5696 # Check whether --with-kde was given.
5697 if test "${with_kde+set}" = set; then
5707 KDE_DIR
="${withval}"
5720 NBS_DESCRIP
="Network Broadcast Sound"
5723 # Check whether --with-nbs was given.
5724 if test "${with_nbs+set}" = set; then
5734 NBS_DIR
="${withval}"
5747 NCURSES_DESCRIP
="ncurses"
5748 NCURSES_OPTION
="ncurses"
5750 # Check whether --with-ncurses was given.
5751 if test "${with_ncurses+set}" = set; then
5752 withval
=$with_ncurses;
5758 NCURSES_MANDATORY
="yes"
5761 NCURSES_DIR
="${withval}"
5762 NCURSES_MANDATORY
="yes"
5774 NETSNMP_DESCRIP
="Net-SNMP"
5775 NETSNMP_OPTION
="netsnmp"
5777 # Check whether --with-netsnmp was given.
5778 if test "${with_netsnmp+set}" = set; then
5779 withval
=$with_netsnmp;
5785 NETSNMP_MANDATORY
="yes"
5788 NETSNMP_DIR
="${withval}"
5789 NETSNMP_MANDATORY
="yes"
5804 # Check whether --with-newt was given.
5805 if test "${with_newt+set}" = set; then
5812 NEWT_MANDATORY
="yes"
5815 NEWT_DIR
="${withval}"
5816 NEWT_MANDATORY
="yes"
5828 UNIXODBC_DESCRIP
="unixODBC"
5829 UNIXODBC_OPTION
="odbc"
5831 # Check whether --with-odbc was given.
5832 if test "${with_odbc+set}" = set; then
5839 UNIXODBC_MANDATORY
="yes"
5842 UNIXODBC_DIR
="${withval}"
5843 UNIXODBC_MANDATORY
="yes"
5858 # Check whether --with-ogg was given.
5859 if test "${with_ogg+set}" = set; then
5869 OGG_DIR
="${withval}"
5882 OSPTK_DESCRIP
="OSP Toolkit"
5883 OSPTK_OPTION
="osptk"
5885 # Check whether --with-osptk was given.
5886 if test "${with_osptk+set}" = set; then
5887 withval
=$with_osptk;
5893 OSPTK_MANDATORY
="yes"
5896 OSPTK_DIR
="${withval}"
5897 OSPTK_MANDATORY
="yes"
5909 OSS_DESCRIP
="Open Sound System"
5912 # Check whether --with-oss was given.
5913 if test "${with_oss+set}" = set; then
5923 OSS_DIR
="${withval}"
5939 # Check whether --with-popt was given.
5940 if test "${with_popt+set}" = set; then
5947 POPT_MANDATORY
="yes"
5950 POPT_DIR
="${withval}"
5951 POPT_MANDATORY
="yes"
5963 PGSQL_DESCRIP
="PostgreSQL"
5964 PGSQL_OPTION
="postgres"
5966 # Check whether --with-postgres was given.
5967 if test "${with_postgres+set}" = set; then
5968 withval
=$with_postgres;
5974 PGSQL_MANDATORY
="yes"
5977 PGSQL_DIR
="${withval}"
5978 PGSQL_MANDATORY
="yes"
5990 PRI_DESCRIP
="ISDN PRI"
5993 # Check whether --with-pri was given.
5994 if test "${with_pri+set}" = set; then
6004 PRI_DIR
="${withval}"
6017 PWLIB_DESCRIP
="PWlib"
6018 PWLIB_OPTION
="pwlib"
6020 # Check whether --with-pwlib was given.
6021 if test "${with_pwlib+set}" = set; then
6022 withval
=$with_pwlib;
6028 PWLIB_MANDATORY
="yes"
6031 PWLIB_DIR
="${withval}"
6032 PWLIB_MANDATORY
="yes"
6047 # Check whether --with-qt was given.
6048 if test "${with_qt+set}" = set; then
6071 RADIUS_DESCRIP
="Radius Client"
6072 RADIUS_OPTION
="radius"
6074 # Check whether --with-radius was given.
6075 if test "${with_radius+set}" = set; then
6076 withval
=$with_radius;
6082 RADIUS_MANDATORY
="yes"
6085 RADIUS_DIR
="${withval}"
6086 RADIUS_MANDATORY
="yes"
6098 SPEEX_DESCRIP
="Speex"
6099 SPEEX_OPTION
="speex"
6101 # Check whether --with-speex was given.
6102 if test "${with_speex+set}" = set; then
6103 withval
=$with_speex;
6109 SPEEX_MANDATORY
="yes"
6112 SPEEX_DIR
="${withval}"
6113 SPEEX_MANDATORY
="yes"
6125 SQLITE_DESCRIP
="SQLite"
6126 SQLITE_OPTION
="sqlite"
6128 # Check whether --with-sqlite was given.
6129 if test "${with_sqlite+set}" = set; then
6130 withval
=$with_sqlite;
6136 SQLITE_MANDATORY
="yes"
6139 SQLITE_DIR
="${withval}"
6140 SQLITE_MANDATORY
="yes"
6152 OPENSSL_DESCRIP
="OpenSSL"
6153 OPENSSL_OPTION
="ssl"
6155 # Check whether --with-ssl was given.
6156 if test "${with_ssl+set}" = set; then
6163 OPENSSL_MANDATORY
="yes"
6166 OPENSSL_DIR
="${withval}"
6167 OPENSSL_MANDATORY
="yes"
6179 FREETDS_DESCRIP
="FreeTDS"
6180 FREETDS_OPTION
="tds"
6182 # Check whether --with-tds was given.
6183 if test "${with_tds+set}" = set; then
6190 FREETDS_MANDATORY
="yes"
6193 FREETDS_DIR
="${withval}"
6194 FREETDS_MANDATORY
="yes"
6206 TERMCAP_DESCRIP
="Termcap"
6207 TERMCAP_OPTION
="termcap"
6209 # Check whether --with-termcap was given.
6210 if test "${with_termcap+set}" = set; then
6211 withval
=$with_termcap;
6217 TERMCAP_MANDATORY
="yes"
6220 TERMCAP_DIR
="${withval}"
6221 TERMCAP_MANDATORY
="yes"
6233 TINFO_DESCRIP
="Term Info"
6234 TINFO_OPTION
="tinfo"
6236 # Check whether --with-tinfo was given.
6237 if test "${with_tinfo+set}" = set; then
6238 withval
=$with_tinfo;
6244 TINFO_MANDATORY
="yes"
6247 TINFO_DIR
="${withval}"
6248 TINFO_MANDATORY
="yes"
6260 TONEZONE_DESCRIP
="tonezone"
6261 TONEZONE_OPTION
="tonezone"
6263 # Check whether --with-tonezone was given.
6264 if test "${with_tonezone+set}" = set; then
6265 withval
=$with_tonezone;
6271 TONEZONE_MANDATORY
="yes"
6274 TONEZONE_DIR
="${withval}"
6275 TONEZONE_MANDATORY
="yes"
6287 VORBIS_DESCRIP
="Vorbis"
6288 VORBIS_OPTION
="vorbis"
6290 # Check whether --with-vorbis was given.
6291 if test "${with_vorbis+set}" = set; then
6292 withval
=$with_vorbis;
6298 VORBIS_MANDATORY
="yes"
6301 VORBIS_DIR
="${withval}"
6302 VORBIS_MANDATORY
="yes"
6314 VPB_DESCRIP
="Voicetronix API"
6317 # Check whether --with-vpb was given.
6318 if test "${with_vpb+set}" = set; then
6328 VPB_DIR
="${withval}"
6344 # Check whether --with-z was given.
6345 if test "${with_z+set}" = set; then
6352 ZLIB_MANDATORY
="yes"
6355 ZLIB_DIR
="${withval}"
6356 ZLIB_MANDATORY
="yes"
6368 ZAPTEL_DESCRIP
="Zaptel"
6369 ZAPTEL_OPTION
="zaptel"
6371 # Check whether --with-zaptel was given.
6372 if test "${with_zaptel+set}" = set; then
6373 withval
=$with_zaptel;
6379 ZAPTEL_MANDATORY
="yes"
6382 ZAPTEL_DIR
="${withval}"
6383 ZAPTEL_MANDATORY
="yes"
6395 # check for basic system features and functionality before
6396 # checking for package libraries
6400 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
6401 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
6402 if test "${ac_cv_path_GREP+set}" = set; then
6403 echo $ECHO_N "(cached) $ECHO_C" >&6
6405 # Extract the first word of "grep ggrep" to use in msg output
6406 if test -z "$GREP"; then
6407 set dummy
grep ggrep
; ac_prog_name
=$2
6408 if test "${ac_cv_path_GREP+set}" = set; then
6409 echo $ECHO_N "(cached) $ECHO_C" >&6
6411 ac_path_GREP_found
=false
6412 # Loop through the user's path and test for each of PROGNAME-LIST
6413 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6414 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6417 test -z "$as_dir" && as_dir
=.
6418 for ac_prog
in grep ggrep
; do
6419 for ac_exec_ext
in '' $ac_executable_extensions; do
6420 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
6421 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } ||
continue
6422 # Check for GNU ac_path_GREP and select it if it is found.
6423 # Check for GNU $ac_path_GREP
6424 case `"$ac_path_GREP" --version 2>&1` in
6426 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
6429 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6432 cat "conftest.in" "conftest.in" >"conftest.tmp"
6433 mv "conftest.tmp" "conftest.in"
6434 cp "conftest.in" "conftest.nl"
6435 echo 'GREP' >> "conftest.nl"
6436 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6437 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6438 ac_count
=`expr $ac_count + 1`
6439 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6440 # Best one so far, save it but keep looking for a better one
6441 ac_cv_path_GREP
="$ac_path_GREP"
6442 ac_path_GREP_max
=$ac_count
6444 # 10*(2^10) chars as input seems more than enough
6445 test $ac_count -gt 10 && break
6447 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6451 $ac_path_GREP_found && break 3
6461 GREP
="$ac_cv_path_GREP"
6462 if test -z "$GREP"; then
6463 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6464 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6465 { (exit 1); exit 1; }; }
6469 ac_cv_path_GREP
=$GREP
6474 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6475 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
6476 GREP
="$ac_cv_path_GREP"
6479 { echo "$as_me:$LINENO: checking for egrep" >&5
6480 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6481 if test "${ac_cv_path_EGREP+set}" = set; then
6482 echo $ECHO_N "(cached) $ECHO_C" >&6
6484 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
6485 then ac_cv_path_EGREP
="$GREP -E"
6487 # Extract the first word of "egrep" to use in msg output
6488 if test -z "$EGREP"; then
6489 set dummy
egrep; ac_prog_name
=$2
6490 if test "${ac_cv_path_EGREP+set}" = set; then
6491 echo $ECHO_N "(cached) $ECHO_C" >&6
6493 ac_path_EGREP_found
=false
6494 # Loop through the user's path and test for each of PROGNAME-LIST
6495 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6496 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6499 test -z "$as_dir" && as_dir
=.
6500 for ac_prog
in egrep; do
6501 for ac_exec_ext
in '' $ac_executable_extensions; do
6502 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
6503 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } ||
continue
6504 # Check for GNU ac_path_EGREP and select it if it is found.
6505 # Check for GNU $ac_path_EGREP
6506 case `"$ac_path_EGREP" --version 2>&1` in
6508 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
6511 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6514 cat "conftest.in" "conftest.in" >"conftest.tmp"
6515 mv "conftest.tmp" "conftest.in"
6516 cp "conftest.in" "conftest.nl"
6517 echo 'EGREP' >> "conftest.nl"
6518 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6519 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6520 ac_count
=`expr $ac_count + 1`
6521 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6522 # Best one so far, save it but keep looking for a better one
6523 ac_cv_path_EGREP
="$ac_path_EGREP"
6524 ac_path_EGREP_max
=$ac_count
6526 # 10*(2^10) chars as input seems more than enough
6527 test $ac_count -gt 10 && break
6529 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6533 $ac_path_EGREP_found && break 3
6543 EGREP
="$ac_cv_path_EGREP"
6544 if test -z "$EGREP"; then
6545 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6546 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6547 { (exit 1); exit 1; }; }
6551 ac_cv_path_EGREP
=$EGREP
6557 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6558 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6559 EGREP
="$ac_cv_path_EGREP"
6562 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6563 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6564 if test "${ac_cv_header_stdc+set}" = set; then
6565 echo $ECHO_N "(cached) $ECHO_C" >&6
6567 cat >conftest.
$ac_ext <<_ACEOF
6570 cat confdefs.h
>>conftest.
$ac_ext
6571 cat >>conftest.
$ac_ext <<_ACEOF
6572 /* end confdefs.h. */
6586 rm -f conftest.
$ac_objext
6587 if { (ac_try
="$ac_compile"
6589 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6590 *) ac_try_echo=$ac_try;;
6592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6593 (eval "$ac_compile") 2>conftest.er1
6595 grep -v '^ *+' conftest.er1 >conftest.err
6597 cat conftest.err >&5
6598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599 (exit $ac_status); } &&
6600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6601 { (case "(($ac_try" in
6602 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6603 *) ac_try_echo
=$ac_try;;
6605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6606 (eval "$ac_try") 2>&5
6608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609 (exit $ac_status); }; } &&
6610 { ac_try
='test -s conftest.$ac_objext'
6611 { (case "(($ac_try" in
6612 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6613 *) ac_try_echo=$ac_try;;
6615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6616 (eval "$ac_try") 2>&5
6618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619 (exit $ac_status); }; }; then
6620 ac_cv_header_stdc=yes
6622 echo "$as_me: failed program was:" >&5
6623 sed 's/^/| /' conftest.$ac_ext >&5
6625 ac_cv_header_stdc=no
6628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6630 if test $ac_cv_header_stdc = yes; then
6631 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6632 cat >conftest.$ac_ext <<_ACEOF
6635 cat confdefs.h >>conftest.$ac_ext
6636 cat >>conftest.$ac_ext <<_ACEOF
6637 /* end confdefs.h. */
6641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6642 $EGREP "memchr" >/dev/null 2>&1; then
6645 ac_cv_header_stdc=no
6651 if test $ac_cv_header_stdc = yes; then
6652 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6653 cat >conftest.$ac_ext <<_ACEOF
6656 cat confdefs.h >>conftest.$ac_ext
6657 cat >>conftest.$ac_ext <<_ACEOF
6658 /* end confdefs.h. */
6662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6663 $EGREP "free" >/dev/null 2>&1; then
6666 ac_cv_header_stdc=no
6672 if test $ac_cv_header_stdc = yes; then
6673 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6674 if test "$cross_compiling" = yes; then
6677 cat >conftest.$ac_ext <<_ACEOF
6680 cat confdefs.h >>conftest.$ac_ext
6681 cat >>conftest.$ac_ext <<_ACEOF
6682 /* end confdefs.h. */
6685 #if ((' ' & 0x0FF) == 0x020)
6686 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6687 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6689 # define ISLOWER(c) \
6690 (('a' <= (c) && (c) <= 'i') \
6691 || ('j' <= (c) && (c) <= 'r') \
6692 || ('s' <= (c) && (c) <= 'z'))
6693 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6696 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6701 for (i = 0; i < 256; i++)
6702 if (XOR (islower (i), ISLOWER (i))
6703 || toupper (i) != TOUPPER (i))
6708 rm -f conftest$ac_exeext
6709 if { (ac_try="$ac_link"
6711 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6712 *) ac_try_echo
=$ac_try;;
6714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6715 (eval "$ac_link") 2>&5
6717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6719 { (case "(($ac_try" in
6720 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6721 *) ac_try_echo=$ac_try;;
6723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6724 (eval "$ac_try") 2>&5
6726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6727 (exit $ac_status); }; }; then
6730 echo "$as_me: program exited with status $ac_status" >&5
6731 echo "$as_me: failed program was:" >&5
6732 sed 's/^/| /' conftest.$ac_ext >&5
6735 ac_cv_header_stdc=no
6737 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6743 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6744 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6745 if test $ac_cv_header_stdc = yes; then
6747 cat >>confdefs.h <<\_ACEOF
6748 #define STDC_HEADERS 1
6753 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6763 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6764 inttypes.h stdint.h unistd.h
6766 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6767 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6768 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6769 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6770 echo $ECHO_N "(cached) $ECHO_C" >&6
6772 cat >conftest.$ac_ext <<_ACEOF
6775 cat confdefs.h >>conftest.$ac_ext
6776 cat >>conftest.$ac_ext <<_ACEOF
6777 /* end confdefs.h. */
6778 $ac_includes_default
6780 #include <$ac_header>
6782 rm -f conftest.$ac_objext
6783 if { (ac_try="$ac_compile"
6785 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6786 *) ac_try_echo
=$ac_try;;
6788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6789 (eval "$ac_compile") 2>conftest.er1
6791 grep -v '^ *+' conftest.er1
>conftest.err
6793 cat conftest.err
>&5
6794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6795 (exit $ac_status); } &&
6796 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6797 { (case "(($ac_try" in
6798 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6799 *) ac_try_echo=$ac_try;;
6801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6802 (eval "$ac_try") 2>&5
6804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6805 (exit $ac_status); }; } &&
6806 { ac_try='test -s conftest.$ac_objext'
6807 { (case "(($ac_try" in
6808 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6809 *) ac_try_echo
=$ac_try;;
6811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6812 (eval "$ac_try") 2>&5
6814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6815 (exit $ac_status); }; }; then
6816 eval "$as_ac_Header=yes"
6818 echo "$as_me: failed program was:" >&5
6819 sed 's/^/| /' conftest.
$ac_ext >&5
6821 eval "$as_ac_Header=no"
6824 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6826 ac_res
=`eval echo '${'$as_ac_Header'}'`
6827 { echo "$as_me:$LINENO: result: $ac_res" >&5
6828 echo "${ECHO_T}$ac_res" >&6; }
6829 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6830 cat >>confdefs.h
<<_ACEOF
6831 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6839 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6840 # for constant arguments. Useless!
6841 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
6842 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
6843 if test "${ac_cv_working_alloca_h+set}" = set; then
6844 echo $ECHO_N "(cached) $ECHO_C" >&6
6846 cat >conftest.
$ac_ext <<_ACEOF
6849 cat confdefs.h
>>conftest.
$ac_ext
6850 cat >>conftest.
$ac_ext <<_ACEOF
6851 /* end confdefs.h. */
6856 char *p = (char *) alloca (2 * sizeof (int));
6861 rm -f conftest.
$ac_objext conftest
$ac_exeext
6862 if { (ac_try
="$ac_link"
6864 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6865 *) ac_try_echo=$ac_try;;
6867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6868 (eval "$ac_link") 2>conftest.er1
6870 grep -v '^ *+' conftest.er1 >conftest.err
6872 cat conftest.err >&5
6873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6874 (exit $ac_status); } &&
6875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6876 { (case "(($ac_try" in
6877 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6878 *) ac_try_echo
=$ac_try;;
6880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6881 (eval "$ac_try") 2>&5
6883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884 (exit $ac_status); }; } &&
6885 { ac_try
='test -s conftest$ac_exeext'
6886 { (case "(($ac_try" in
6887 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6888 *) ac_try_echo=$ac_try;;
6890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6891 (eval "$ac_try") 2>&5
6893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894 (exit $ac_status); }; }; then
6895 ac_cv_working_alloca_h=yes
6897 echo "$as_me: failed program was:" >&5
6898 sed 's/^/| /' conftest.$ac_ext >&5
6900 ac_cv_working_alloca_h=no
6903 rm -f conftest.err conftest.$ac_objext \
6904 conftest$ac_exeext conftest.$ac_ext
6906 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6907 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
6908 if test $ac_cv_working_alloca_h = yes; then
6910 cat >>confdefs.h <<\_ACEOF
6911 #define HAVE_ALLOCA_H 1
6916 { echo "$as_me:$LINENO: checking for alloca" >&5
6917 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
6918 if test "${ac_cv_func_alloca_works+set}" = set; then
6919 echo $ECHO_N "(cached) $ECHO_C" >&6
6921 cat >conftest.$ac_ext <<_ACEOF
6924 cat confdefs.h >>conftest.$ac_ext
6925 cat >>conftest.$ac_ext <<_ACEOF
6926 /* end confdefs.h. */
6928 # define alloca __builtin_alloca
6931 # include <malloc.h>
6932 # define alloca _alloca
6935 # include <alloca.h>
6940 # ifndef alloca /* predefined by HP cc +Olibcalls */
6951 char *p = (char *) alloca (1);
6956 rm -f conftest.$ac_objext conftest$ac_exeext
6957 if { (ac_try="$ac_link"
6959 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6960 *) ac_try_echo
=$ac_try;;
6962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6963 (eval "$ac_link") 2>conftest.er1
6965 grep -v '^ *+' conftest.er1
>conftest.err
6967 cat conftest.err
>&5
6968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6969 (exit $ac_status); } &&
6970 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6971 { (case "(($ac_try" in
6972 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6973 *) ac_try_echo=$ac_try;;
6975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6976 (eval "$ac_try") 2>&5
6978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6979 (exit $ac_status); }; } &&
6980 { ac_try='test -s conftest$ac_exeext'
6981 { (case "(($ac_try" in
6982 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6983 *) ac_try_echo
=$ac_try;;
6985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6986 (eval "$ac_try") 2>&5
6988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989 (exit $ac_status); }; }; then
6990 ac_cv_func_alloca_works
=yes
6992 echo "$as_me: failed program was:" >&5
6993 sed 's/^/| /' conftest.
$ac_ext >&5
6995 ac_cv_func_alloca_works
=no
6998 rm -f conftest.err conftest.
$ac_objext \
6999 conftest
$ac_exeext conftest.
$ac_ext
7001 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
7002 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
7004 if test $ac_cv_func_alloca_works = yes; then
7006 cat >>confdefs.h
<<\_ACEOF
7007 #define HAVE_ALLOCA 1
7011 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7012 # that cause trouble. Some versions do not even contain alloca or
7013 # contain a buggy version. If you still want to use their alloca,
7014 # use ar to extract alloca.o from them instead of compiling alloca.c.
7016 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
7018 cat >>confdefs.h
<<\_ACEOF
7023 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
7024 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
7025 if test "${ac_cv_os_cray+set}" = set; then
7026 echo $ECHO_N "(cached) $ECHO_C" >&6
7028 cat >conftest.
$ac_ext <<_ACEOF
7031 cat confdefs.h
>>conftest.
$ac_ext
7032 cat >>conftest.
$ac_ext <<_ACEOF
7033 /* end confdefs.h. */
7034 #if defined CRAY && ! defined CRAY2
7041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7042 $EGREP "webecray" >/dev
/null
2>&1; then
7050 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
7051 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
7052 if test $ac_cv_os_cray = yes; then
7053 for ac_func
in _getb67 GETB67 getb67
; do
7054 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7055 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7056 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7057 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7058 echo $ECHO_N "(cached) $ECHO_C" >&6
7060 cat >conftest.
$ac_ext <<_ACEOF
7063 cat confdefs.h
>>conftest.
$ac_ext
7064 cat >>conftest.
$ac_ext <<_ACEOF
7065 /* end confdefs.h. */
7066 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7067 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7068 #define $ac_func innocuous_$ac_func
7070 /* System header to define __stub macros and hopefully few prototypes,
7071 which can conflict with char $ac_func (); below.
7072 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7073 <limits.h> exists even on freestanding compilers. */
7076 # include <limits.h>
7078 # include <assert.h>
7083 /* Override any GCC internal prototype to avoid an error.
7084 Use char because int might match the return type of a GCC
7085 builtin and then its argument prototype would still apply. */
7090 /* The GNU C library defines this for functions which it implements
7091 to always fail with ENOSYS. Some functions are actually named
7092 something starting with __ and the normal name is an alias. */
7093 #if defined __stub_$ac_func || defined __stub___$ac_func
7105 rm -f conftest.
$ac_objext conftest
$ac_exeext
7106 if { (ac_try
="$ac_link"
7108 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7109 *) ac_try_echo=$ac_try;;
7111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7112 (eval "$ac_link") 2>conftest.er1
7114 grep -v '^ *+' conftest.er1 >conftest.err
7116 cat conftest.err >&5
7117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7118 (exit $ac_status); } &&
7119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7120 { (case "(($ac_try" in
7121 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7122 *) ac_try_echo
=$ac_try;;
7124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7125 (eval "$ac_try") 2>&5
7127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128 (exit $ac_status); }; } &&
7129 { ac_try
='test -s conftest$ac_exeext'
7130 { (case "(($ac_try" in
7131 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7132 *) ac_try_echo=$ac_try;;
7134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7135 (eval "$ac_try") 2>&5
7137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7138 (exit $ac_status); }; }; then
7139 eval "$as_ac_var=yes"
7141 echo "$as_me: failed program was:" >&5
7142 sed 's/^/| /' conftest.$ac_ext >&5
7144 eval "$as_ac_var=no"
7147 rm -f conftest.err conftest.$ac_objext \
7148 conftest$ac_exeext conftest.$ac_ext
7150 ac_res=`eval echo '${'$as_ac_var'}'`
7151 { echo "$as_me:$LINENO: result: $ac_res" >&5
7152 echo "${ECHO_T}$ac_res" >&6; }
7153 if test `eval echo '${'$as_ac_var'}'` = yes; then
7155 cat >>confdefs.h <<_ACEOF
7156 #define CRAY_STACKSEG_END $ac_func
7165 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
7166 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
7167 if test "${ac_cv_c_stack_direction+set}" = set; then
7168 echo $ECHO_N "(cached) $ECHO_C" >&6
7170 if test "$cross_compiling" = yes; then
7171 ac_cv_c_stack_direction=0
7173 cat >conftest.$ac_ext <<_ACEOF
7176 cat confdefs.h >>conftest.$ac_ext
7177 cat >>conftest.$ac_ext <<_ACEOF
7178 /* end confdefs.h. */
7179 $ac_includes_default
7181 find_stack_direction ()
7183 static char *addr = 0;
7188 return find_stack_direction ();
7191 return (&dummy > addr) ? 1 : -1;
7197 return find_stack_direction () < 0;
7200 rm -f conftest$ac_exeext
7201 if { (ac_try="$ac_link"
7203 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7204 *) ac_try_echo
=$ac_try;;
7206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7207 (eval "$ac_link") 2>&5
7209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7210 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7211 { (case "(($ac_try" in
7212 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7213 *) ac_try_echo=$ac_try;;
7215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7216 (eval "$ac_try") 2>&5
7218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7219 (exit $ac_status); }; }; then
7220 ac_cv_c_stack_direction=1
7222 echo "$as_me: program exited with status $ac_status" >&5
7223 echo "$as_me: failed program was:" >&5
7224 sed 's/^/| /' conftest.$ac_ext >&5
7227 ac_cv_c_stack_direction=-1
7229 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7234 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7235 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
7237 cat >>confdefs.h <<_ACEOF
7238 #define STACK_DIRECTION $ac_cv_c_stack_direction
7250 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7251 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" |
$as_tr_sh`
7252 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7253 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
7254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7255 echo $ECHO_N "(cached) $ECHO_C" >&6
7257 cat >conftest.$ac_ext <<_ACEOF
7260 cat confdefs.h >>conftest.$ac_ext
7261 cat >>conftest.$ac_ext <<_ACEOF
7262 /* end confdefs.h. */
7263 #include <sys/types.h>
7275 rm -f conftest.$ac_objext
7276 if { (ac_try="$ac_compile"
7278 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7279 *) ac_try_echo
=$ac_try;;
7281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7282 (eval "$ac_compile") 2>conftest.er1
7284 grep -v '^ *+' conftest.er1
>conftest.err
7286 cat conftest.err
>&5
7287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288 (exit $ac_status); } &&
7289 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7290 { (case "(($ac_try" in
7291 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7292 *) ac_try_echo=$ac_try;;
7294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7295 (eval "$ac_try") 2>&5
7297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298 (exit $ac_status); }; } &&
7299 { ac_try='test -s conftest.$ac_objext'
7300 { (case "(($ac_try" in
7301 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7302 *) ac_try_echo
=$ac_try;;
7304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7305 (eval "$ac_try") 2>&5
7307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7308 (exit $ac_status); }; }; then
7309 eval "$as_ac_Header=yes"
7311 echo "$as_me: failed program was:" >&5
7312 sed 's/^/| /' conftest.
$ac_ext >&5
7314 eval "$as_ac_Header=no"
7317 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7319 ac_res
=`eval echo '${'$as_ac_Header'}'`
7320 { echo "$as_me:$LINENO: result: $ac_res" >&5
7321 echo "${ECHO_T}$ac_res" >&6; }
7322 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7323 cat >>confdefs.h
<<_ACEOF
7324 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7327 ac_header_dirent
=$ac_hdr; break
7331 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7332 if test $ac_header_dirent = dirent.h
; then
7333 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
7334 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
7335 if test "${ac_cv_search_opendir+set}" = set; then
7336 echo $ECHO_N "(cached) $ECHO_C" >&6
7338 ac_func_search_save_LIBS
=$LIBS
7339 cat >conftest.
$ac_ext <<_ACEOF
7342 cat confdefs.h
>>conftest.
$ac_ext
7343 cat >>conftest.
$ac_ext <<_ACEOF
7344 /* end confdefs.h. */
7346 /* Override any GCC internal prototype to avoid an error.
7347 Use char because int might match the return type of a GCC
7348 builtin and then its argument prototype would still apply. */
7361 for ac_lib
in '' dir
; do
7362 if test -z "$ac_lib"; then
7363 ac_res
="none required"
7366 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7368 rm -f conftest.
$ac_objext conftest
$ac_exeext
7369 if { (ac_try
="$ac_link"
7371 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7372 *) ac_try_echo=$ac_try;;
7374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7375 (eval "$ac_link") 2>conftest.er1
7377 grep -v '^ *+' conftest.er1 >conftest.err
7379 cat conftest.err >&5
7380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381 (exit $ac_status); } &&
7382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7383 { (case "(($ac_try" in
7384 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7385 *) ac_try_echo
=$ac_try;;
7387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7388 (eval "$ac_try") 2>&5
7390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7391 (exit $ac_status); }; } &&
7392 { ac_try
='test -s conftest$ac_exeext'
7393 { (case "(($ac_try" in
7394 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7395 *) ac_try_echo=$ac_try;;
7397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7398 (eval "$ac_try") 2>&5
7400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7401 (exit $ac_status); }; }; then
7402 ac_cv_search_opendir=$ac_res
7404 echo "$as_me: failed program was:" >&5
7405 sed 's/^/| /' conftest.$ac_ext >&5
7410 rm -f conftest.err conftest.$ac_objext \
7412 if test "${ac_cv_search_opendir+set}" = set; then
7416 if test "${ac_cv_search_opendir+set}" = set; then
7419 ac_cv_search_opendir=no
7422 LIBS=$ac_func_search_save_LIBS
7424 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7425 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
7426 ac_res=$ac_cv_search_opendir
7427 if test "$ac_res" != no; then
7428 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7433 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
7434 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
7435 if test "${ac_cv_search_opendir+set}" = set; then
7436 echo $ECHO_N "(cached) $ECHO_C" >&6
7438 ac_func_search_save_LIBS=$LIBS
7439 cat >conftest.$ac_ext <<_ACEOF
7442 cat confdefs.h >>conftest.$ac_ext
7443 cat >>conftest.$ac_ext <<_ACEOF
7444 /* end confdefs.h. */
7446 /* Override any GCC internal prototype to avoid an error.
7447 Use char because int might match the return type of a GCC
7448 builtin and then its argument prototype would still apply. */
7461 for ac_lib in '' x; do
7462 if test -z "$ac_lib"; then
7463 ac_res="none required"
7466 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7468 rm -f conftest.$ac_objext conftest$ac_exeext
7469 if { (ac_try="$ac_link"
7471 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7472 *) ac_try_echo
=$ac_try;;
7474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7475 (eval "$ac_link") 2>conftest.er1
7477 grep -v '^ *+' conftest.er1
>conftest.err
7479 cat conftest.err
>&5
7480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7481 (exit $ac_status); } &&
7482 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7483 { (case "(($ac_try" in
7484 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7485 *) ac_try_echo=$ac_try;;
7487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7488 (eval "$ac_try") 2>&5
7490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7491 (exit $ac_status); }; } &&
7492 { ac_try='test -s conftest$ac_exeext'
7493 { (case "(($ac_try" in
7494 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7495 *) ac_try_echo
=$ac_try;;
7497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7498 (eval "$ac_try") 2>&5
7500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7501 (exit $ac_status); }; }; then
7502 ac_cv_search_opendir
=$ac_res
7504 echo "$as_me: failed program was:" >&5
7505 sed 's/^/| /' conftest.
$ac_ext >&5
7510 rm -f conftest.err conftest.
$ac_objext \
7512 if test "${ac_cv_search_opendir+set}" = set; then
7516 if test "${ac_cv_search_opendir+set}" = set; then
7519 ac_cv_search_opendir
=no
7522 LIBS
=$ac_func_search_save_LIBS
7524 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7525 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
7526 ac_res
=$ac_cv_search_opendir
7527 if test "$ac_res" != no
; then
7528 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7534 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7535 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7536 if test "${ac_cv_header_stdc+set}" = set; then
7537 echo $ECHO_N "(cached) $ECHO_C" >&6
7539 cat >conftest.
$ac_ext <<_ACEOF
7542 cat confdefs.h
>>conftest.
$ac_ext
7543 cat >>conftest.
$ac_ext <<_ACEOF
7544 /* end confdefs.h. */
7558 rm -f conftest.
$ac_objext
7559 if { (ac_try
="$ac_compile"
7561 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7562 *) ac_try_echo=$ac_try;;
7564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7565 (eval "$ac_compile") 2>conftest.er1
7567 grep -v '^ *+' conftest.er1 >conftest.err
7569 cat conftest.err >&5
7570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7571 (exit $ac_status); } &&
7572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7573 { (case "(($ac_try" in
7574 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7575 *) ac_try_echo
=$ac_try;;
7577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7578 (eval "$ac_try") 2>&5
7580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7581 (exit $ac_status); }; } &&
7582 { ac_try
='test -s conftest.$ac_objext'
7583 { (case "(($ac_try" in
7584 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7585 *) ac_try_echo=$ac_try;;
7587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7588 (eval "$ac_try") 2>&5
7590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591 (exit $ac_status); }; }; then
7592 ac_cv_header_stdc=yes
7594 echo "$as_me: failed program was:" >&5
7595 sed 's/^/| /' conftest.$ac_ext >&5
7597 ac_cv_header_stdc=no
7600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7602 if test $ac_cv_header_stdc = yes; then
7603 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7604 cat >conftest.$ac_ext <<_ACEOF
7607 cat confdefs.h >>conftest.$ac_ext
7608 cat >>conftest.$ac_ext <<_ACEOF
7609 /* end confdefs.h. */
7613 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7614 $EGREP "memchr" >/dev/null 2>&1; then
7617 ac_cv_header_stdc=no
7623 if test $ac_cv_header_stdc = yes; then
7624 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7625 cat >conftest.$ac_ext <<_ACEOF
7628 cat confdefs.h >>conftest.$ac_ext
7629 cat >>conftest.$ac_ext <<_ACEOF
7630 /* end confdefs.h. */
7634 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7635 $EGREP "free" >/dev/null 2>&1; then
7638 ac_cv_header_stdc=no
7644 if test $ac_cv_header_stdc = yes; then
7645 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7646 if test "$cross_compiling" = yes; then
7649 cat >conftest.$ac_ext <<_ACEOF
7652 cat confdefs.h >>conftest.$ac_ext
7653 cat >>conftest.$ac_ext <<_ACEOF
7654 /* end confdefs.h. */
7657 #if ((' ' & 0x0FF) == 0x020)
7658 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7659 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7661 # define ISLOWER(c) \
7662 (('a' <= (c) && (c) <= 'i') \
7663 || ('j' <= (c) && (c) <= 'r') \
7664 || ('s' <= (c) && (c) <= 'z'))
7665 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7668 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7673 for (i = 0; i < 256; i++)
7674 if (XOR (islower (i), ISLOWER (i))
7675 || toupper (i) != TOUPPER (i))
7680 rm -f conftest$ac_exeext
7681 if { (ac_try="$ac_link"
7683 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7684 *) ac_try_echo
=$ac_try;;
7686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7687 (eval "$ac_link") 2>&5
7689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7690 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7691 { (case "(($ac_try" in
7692 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7693 *) ac_try_echo=$ac_try;;
7695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7696 (eval "$ac_try") 2>&5
7698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699 (exit $ac_status); }; }; then
7702 echo "$as_me: program exited with status $ac_status" >&5
7703 echo "$as_me: failed program was:" >&5
7704 sed 's/^/| /' conftest.$ac_ext >&5
7707 ac_cv_header_stdc=no
7709 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7715 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7716 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7717 if test $ac_cv_header_stdc = yes; then
7719 cat >>confdefs.h <<\_ACEOF
7720 #define STDC_HEADERS 1
7725 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7726 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7727 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7728 echo $ECHO_N "(cached) $ECHO_C" >&6
7730 cat >conftest.$ac_ext <<_ACEOF
7733 cat confdefs.h >>conftest.$ac_ext
7734 cat >>conftest.$ac_ext <<_ACEOF
7735 /* end confdefs.h. */
7736 #include <sys/types.h>
7737 #include <sys/wait.h>
7739 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7742 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7750 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7755 rm -f conftest.$ac_objext
7756 if { (ac_try="$ac_compile"
7758 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7759 *) ac_try_echo
=$ac_try;;
7761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7762 (eval "$ac_compile") 2>conftest.er1
7764 grep -v '^ *+' conftest.er1
>conftest.err
7766 cat conftest.err
>&5
7767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768 (exit $ac_status); } &&
7769 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7770 { (case "(($ac_try" in
7771 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7772 *) ac_try_echo=$ac_try;;
7774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7775 (eval "$ac_try") 2>&5
7777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778 (exit $ac_status); }; } &&
7779 { ac_try='test -s conftest.$ac_objext'
7780 { (case "(($ac_try" in
7781 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7782 *) ac_try_echo
=$ac_try;;
7784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7785 (eval "$ac_try") 2>&5
7787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788 (exit $ac_status); }; }; then
7789 ac_cv_header_sys_wait_h
=yes
7791 echo "$as_me: failed program was:" >&5
7792 sed 's/^/| /' conftest.
$ac_ext >&5
7794 ac_cv_header_sys_wait_h
=no
7797 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7799 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7800 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7801 if test $ac_cv_header_sys_wait_h = yes; then
7803 cat >>confdefs.h
<<\_ACEOF
7804 #define HAVE_SYS_WAIT_H 1
7832 for ac_header
in arpa
/inet.h fcntl.h inttypes.h libintl.h limits.h locale.h malloc.h netdb.h netinet
/in.h stddef.h stdint.h stdlib.h string.h
strings.h sys
/file.h sys
/ioctl.h sys
/param.h sys
/socket.h sys
/time.h syslog.h termios.h unistd.h utime.h
7834 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7835 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7836 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7837 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7838 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7839 echo $ECHO_N "(cached) $ECHO_C" >&6
7841 ac_res
=`eval echo '${'$as_ac_Header'}'`
7842 { echo "$as_me:$LINENO: result: $ac_res" >&5
7843 echo "${ECHO_T}$ac_res" >&6; }
7845 # Is the header compilable?
7846 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7847 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7848 cat >conftest.
$ac_ext <<_ACEOF
7851 cat confdefs.h
>>conftest.
$ac_ext
7852 cat >>conftest.
$ac_ext <<_ACEOF
7853 /* end confdefs.h. */
7854 $ac_includes_default
7855 #include <$ac_header>
7857 rm -f conftest.
$ac_objext
7858 if { (ac_try
="$ac_compile"
7860 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7861 *) ac_try_echo=$ac_try;;
7863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7864 (eval "$ac_compile") 2>conftest.er1
7866 grep -v '^ *+' conftest.er1 >conftest.err
7868 cat conftest.err >&5
7869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7870 (exit $ac_status); } &&
7871 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7872 { (case "(($ac_try" in
7873 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7874 *) ac_try_echo
=$ac_try;;
7876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7877 (eval "$ac_try") 2>&5
7879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880 (exit $ac_status); }; } &&
7881 { ac_try
='test -s conftest.$ac_objext'
7882 { (case "(($ac_try" in
7883 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7884 *) ac_try_echo=$ac_try;;
7886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7887 (eval "$ac_try") 2>&5
7889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7890 (exit $ac_status); }; }; then
7891 ac_header_compiler=yes
7893 echo "$as_me: failed program was:" >&5
7894 sed 's/^/| /' conftest.$ac_ext >&5
7896 ac_header_compiler=no
7899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7900 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7901 echo "${ECHO_T}$ac_header_compiler" >&6; }
7903 # Is the header present?
7904 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7905 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7906 cat >conftest.$ac_ext <<_ACEOF
7909 cat confdefs.h >>conftest.$ac_ext
7910 cat >>conftest.$ac_ext <<_ACEOF
7911 /* end confdefs.h. */
7912 #include <$ac_header>
7914 if { (ac_try="$ac_cpp conftest.$ac_ext"
7916 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7917 *) ac_try_echo
=$ac_try;;
7919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7920 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7922 grep -v '^ *+' conftest.er1
>conftest.err
7924 cat conftest.err
>&5
7925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7926 (exit $ac_status); } >/dev
/null
; then
7927 if test -s conftest.err
; then
7928 ac_cpp_err
=$ac_c_preproc_warn_flag
7929 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7936 if test -z "$ac_cpp_err"; then
7937 ac_header_preproc
=yes
7939 echo "$as_me: failed program was:" >&5
7940 sed 's/^/| /' conftest.
$ac_ext >&5
7942 ac_header_preproc
=no
7945 rm -f conftest.err conftest.
$ac_ext
7946 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7947 echo "${ECHO_T}$ac_header_preproc" >&6; }
7949 # So? What about this header?
7950 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7952 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7953 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7954 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7955 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7956 ac_header_preproc
=yes
7959 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7960 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7961 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7962 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7963 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7964 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7965 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7966 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7967 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7968 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7969 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7970 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7974 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7975 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7976 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7977 echo $ECHO_N "(cached) $ECHO_C" >&6
7979 eval "$as_ac_Header=\$ac_header_preproc"
7981 ac_res
=`eval echo '${'$as_ac_Header'}'`
7982 { echo "$as_me:$LINENO: result: $ac_res" >&5
7983 echo "${ECHO_T}$ac_res" >&6; }
7986 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7987 cat >>confdefs.h
<<_ACEOF
7988 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7996 # Check whether --enable-largefile was given.
7997 if test "${enable_largefile+set}" = set; then
7998 enableval
=$enable_largefile;
8001 if test "$enable_largefile" != no
; then
8003 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
8004 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
8005 if test "${ac_cv_sys_largefile_CC+set}" = set; then
8006 echo $ECHO_N "(cached) $ECHO_C" >&6
8008 ac_cv_sys_largefile_CC
=no
8009 if test "$GCC" != yes; then
8012 # IRIX 6.2 and later do not support large files by default,
8013 # so use the C compiler's -n32 option if that helps.
8014 cat >conftest.
$ac_ext <<_ACEOF
8017 cat confdefs.h
>>conftest.
$ac_ext
8018 cat >>conftest.
$ac_ext <<_ACEOF
8019 /* end confdefs.h. */
8020 #include <sys/types.h>
8021 /* Check that off_t can represent 2**63 - 1 correctly.
8022 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8023 since some C++ compilers masquerading as C compilers
8024 incorrectly reject 9223372036854775807. */
8025 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8026 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8027 && LARGE_OFF_T % 2147483647 == 1)
8037 rm -f conftest.
$ac_objext
8038 if { (ac_try
="$ac_compile"
8040 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8041 *) ac_try_echo=$ac_try;;
8043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8044 (eval "$ac_compile") 2>conftest.er1
8046 grep -v '^ *+' conftest.er1 >conftest.err
8048 cat conftest.err >&5
8049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050 (exit $ac_status); } &&
8051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8052 { (case "(($ac_try" in
8053 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8054 *) ac_try_echo
=$ac_try;;
8056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8057 (eval "$ac_try") 2>&5
8059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060 (exit $ac_status); }; } &&
8061 { ac_try
='test -s conftest.$ac_objext'
8062 { (case "(($ac_try" in
8063 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8064 *) ac_try_echo=$ac_try;;
8066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8067 (eval "$ac_try") 2>&5
8069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8070 (exit $ac_status); }; }; then
8073 echo "$as_me: failed program was:" >&5
8074 sed 's/^/| /' conftest.$ac_ext >&5
8079 rm -f conftest.err conftest.$ac_objext
8081 rm -f conftest.$ac_objext
8082 if { (ac_try="$ac_compile"
8084 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8085 *) ac_try_echo
=$ac_try;;
8087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8088 (eval "$ac_compile") 2>conftest.er1
8090 grep -v '^ *+' conftest.er1
>conftest.err
8092 cat conftest.err
>&5
8093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094 (exit $ac_status); } &&
8095 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8096 { (case "(($ac_try" in
8097 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8098 *) ac_try_echo=$ac_try;;
8100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8101 (eval "$ac_try") 2>&5
8103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8104 (exit $ac_status); }; } &&
8105 { ac_try='test -s conftest.$ac_objext'
8106 { (case "(($ac_try" in
8107 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8108 *) ac_try_echo
=$ac_try;;
8110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8111 (eval "$ac_try") 2>&5
8113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8114 (exit $ac_status); }; }; then
8115 ac_cv_sys_largefile_CC
=' -n32'; break
8117 echo "$as_me: failed program was:" >&5
8118 sed 's/^/| /' conftest.
$ac_ext >&5
8123 rm -f conftest.err conftest.
$ac_objext
8127 rm -f conftest.
$ac_ext
8130 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
8131 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
8132 if test "$ac_cv_sys_largefile_CC" != no
; then
8133 CC
=$CC$ac_cv_sys_largefile_CC
8136 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8137 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
8138 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
8139 echo $ECHO_N "(cached) $ECHO_C" >&6
8142 ac_cv_sys_file_offset_bits
=no
8143 cat >conftest.
$ac_ext <<_ACEOF
8146 cat confdefs.h
>>conftest.
$ac_ext
8147 cat >>conftest.
$ac_ext <<_ACEOF
8148 /* end confdefs.h. */
8149 #include <sys/types.h>
8150 /* Check that off_t can represent 2**63 - 1 correctly.
8151 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8152 since some C++ compilers masquerading as C compilers
8153 incorrectly reject 9223372036854775807. */
8154 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8155 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8156 && LARGE_OFF_T % 2147483647 == 1)
8166 rm -f conftest.
$ac_objext
8167 if { (ac_try
="$ac_compile"
8169 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8170 *) ac_try_echo=$ac_try;;
8172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8173 (eval "$ac_compile") 2>conftest.er1
8175 grep -v '^ *+' conftest.er1 >conftest.err
8177 cat conftest.err >&5
8178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179 (exit $ac_status); } &&
8180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8181 { (case "(($ac_try" in
8182 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8183 *) ac_try_echo
=$ac_try;;
8185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8186 (eval "$ac_try") 2>&5
8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189 (exit $ac_status); }; } &&
8190 { ac_try
='test -s conftest.$ac_objext'
8191 { (case "(($ac_try" in
8192 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8193 *) ac_try_echo=$ac_try;;
8195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8196 (eval "$ac_try") 2>&5
8198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199 (exit $ac_status); }; }; then
8202 echo "$as_me: failed program was:" >&5
8203 sed 's/^/| /' conftest.$ac_ext >&5
8208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8209 cat >conftest.$ac_ext <<_ACEOF
8212 cat confdefs.h >>conftest.$ac_ext
8213 cat >>conftest.$ac_ext <<_ACEOF
8214 /* end confdefs.h. */
8215 #define _FILE_OFFSET_BITS 64
8216 #include <sys/types.h>
8217 /* Check that off_t can represent 2**63 - 1 correctly.
8218 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8219 since some C++ compilers masquerading as C compilers
8220 incorrectly reject 9223372036854775807. */
8221 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8222 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8223 && LARGE_OFF_T % 2147483647 == 1)
8233 rm -f conftest.$ac_objext
8234 if { (ac_try="$ac_compile"
8236 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8237 *) ac_try_echo
=$ac_try;;
8239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8240 (eval "$ac_compile") 2>conftest.er1
8242 grep -v '^ *+' conftest.er1
>conftest.err
8244 cat conftest.err
>&5
8245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8246 (exit $ac_status); } &&
8247 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8248 { (case "(($ac_try" in
8249 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8250 *) ac_try_echo=$ac_try;;
8252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8253 (eval "$ac_try") 2>&5
8255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8256 (exit $ac_status); }; } &&
8257 { ac_try='test -s conftest.$ac_objext'
8258 { (case "(($ac_try" in
8259 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8260 *) ac_try_echo
=$ac_try;;
8262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8263 (eval "$ac_try") 2>&5
8265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266 (exit $ac_status); }; }; then
8267 ac_cv_sys_file_offset_bits
=64; break
8269 echo "$as_me: failed program was:" >&5
8270 sed 's/^/| /' conftest.
$ac_ext >&5
8275 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8279 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
8280 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
8281 if test "$ac_cv_sys_file_offset_bits" != no
; then
8283 cat >>confdefs.h
<<_ACEOF
8284 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8289 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
8290 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
8291 if test "${ac_cv_sys_large_files+set}" = set; then
8292 echo $ECHO_N "(cached) $ECHO_C" >&6
8295 ac_cv_sys_large_files
=no
8296 cat >conftest.
$ac_ext <<_ACEOF
8299 cat confdefs.h
>>conftest.
$ac_ext
8300 cat >>conftest.
$ac_ext <<_ACEOF
8301 /* end confdefs.h. */
8302 #include <sys/types.h>
8303 /* Check that off_t can represent 2**63 - 1 correctly.
8304 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8305 since some C++ compilers masquerading as C compilers
8306 incorrectly reject 9223372036854775807. */
8307 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8308 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8309 && LARGE_OFF_T % 2147483647 == 1)
8319 rm -f conftest.
$ac_objext
8320 if { (ac_try
="$ac_compile"
8322 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8323 *) ac_try_echo=$ac_try;;
8325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8326 (eval "$ac_compile") 2>conftest.er1
8328 grep -v '^ *+' conftest.er1 >conftest.err
8330 cat conftest.err >&5
8331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332 (exit $ac_status); } &&
8333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8334 { (case "(($ac_try" in
8335 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8336 *) ac_try_echo
=$ac_try;;
8338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8339 (eval "$ac_try") 2>&5
8341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342 (exit $ac_status); }; } &&
8343 { ac_try
='test -s conftest.$ac_objext'
8344 { (case "(($ac_try" in
8345 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8346 *) ac_try_echo=$ac_try;;
8348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8349 (eval "$ac_try") 2>&5
8351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8352 (exit $ac_status); }; }; then
8355 echo "$as_me: failed program was:" >&5
8356 sed 's/^/| /' conftest.$ac_ext >&5
8361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8362 cat >conftest.$ac_ext <<_ACEOF
8365 cat confdefs.h >>conftest.$ac_ext
8366 cat >>conftest.$ac_ext <<_ACEOF
8367 /* end confdefs.h. */
8368 #define _LARGE_FILES 1
8369 #include <sys/types.h>
8370 /* Check that off_t can represent 2**63 - 1 correctly.
8371 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8372 since some C++ compilers masquerading as C compilers
8373 incorrectly reject 9223372036854775807. */
8374 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8375 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8376 && LARGE_OFF_T % 2147483647 == 1)
8386 rm -f conftest.$ac_objext
8387 if { (ac_try="$ac_compile"
8389 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8390 *) ac_try_echo
=$ac_try;;
8392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8393 (eval "$ac_compile") 2>conftest.er1
8395 grep -v '^ *+' conftest.er1
>conftest.err
8397 cat conftest.err
>&5
8398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399 (exit $ac_status); } &&
8400 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8401 { (case "(($ac_try" in
8402 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8403 *) ac_try_echo=$ac_try;;
8405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8406 (eval "$ac_try") 2>&5
8408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409 (exit $ac_status); }; } &&
8410 { ac_try='test -s conftest.$ac_objext'
8411 { (case "(($ac_try" in
8412 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8413 *) ac_try_echo
=$ac_try;;
8415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8416 (eval "$ac_try") 2>&5
8418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419 (exit $ac_status); }; }; then
8420 ac_cv_sys_large_files
=1; break
8422 echo "$as_me: failed program was:" >&5
8423 sed 's/^/| /' conftest.
$ac_ext >&5
8428 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8432 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
8433 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
8434 if test "$ac_cv_sys_large_files" != no
; then
8436 cat >>confdefs.h
<<_ACEOF
8437 #define _LARGE_FILES $ac_cv_sys_large_files
8445 # Checks for typedefs, structures, and compiler characteristics.
8446 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
8447 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
8448 if test "${ac_cv_header_stdbool_h+set}" = set; then
8449 echo $ECHO_N "(cached) $ECHO_C" >&6
8451 cat >conftest.
$ac_ext <<_ACEOF
8454 cat confdefs.h
>>conftest.
$ac_ext
8455 cat >>conftest.
$ac_ext <<_ACEOF
8456 /* end confdefs.h. */
8458 #include <stdbool.h>
8460 "error: bool is not defined"
8463 "error: false is not defined"
8466 "error: false is not 0"
8469 "error: true is not defined"
8472 "error: true is not 1"
8474 #ifndef __bool_true_false_are_defined
8475 "error: __bool_true_false_are_defined is not defined"
8478 struct s { _Bool s: 1; _Bool t; } s;
8480 char a[true == 1 ? 1 : -1];
8481 char b[false == 0 ? 1 : -1];
8482 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
8483 char d[(bool) 0.5 == true ? 1 : -1];
8485 char f[(_Bool) 0.0 == false ? 1 : -1];
8487 char h[sizeof (_Bool)];
8489 enum { j = false, k = true, l = false * true, m = true * 256 };
8491 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
8492 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
8493 # if defined __xlc__ || defined __GNUC__
8494 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
8495 reported by James Lemley on 2005-10-05; see
8496 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
8497 This test is not quite right, since xlc is allowed to
8498 reject this program, as the initializer for xlcbug is
8499 not one of the forms that C requires support for.
8500 However, doing the test right would require a runtime
8501 test, and that would make cross-compilation harder.
8502 Let us hope that IBM fixes the xlc bug, and also adds
8503 support for this kind of constant expression. In the
8504 meantime, this test will reject xlc, which is OK, since
8505 our stdbool.h substitute should suffice. We also test
8506 this with GCC, where it should work, to detect more
8507 quickly whether someone messes up the test in the
8509 char digs[] = "0123456789";
8510 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
8512 /* Catch a bug in an HP-UX C compiler. See
8513 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
8514 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
8525 /* Refer to every declared value, to avoid compiler optimizations. */
8526 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
8527 + !m + !n + !o + !p + !q + !pq);
8533 rm -f conftest.
$ac_objext
8534 if { (ac_try
="$ac_compile"
8536 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8537 *) ac_try_echo=$ac_try;;
8539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8540 (eval "$ac_compile") 2>conftest.er1
8542 grep -v '^ *+' conftest.er1 >conftest.err
8544 cat conftest.err >&5
8545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546 (exit $ac_status); } &&
8547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8548 { (case "(($ac_try" in
8549 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8550 *) ac_try_echo
=$ac_try;;
8552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8553 (eval "$ac_try") 2>&5
8555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556 (exit $ac_status); }; } &&
8557 { ac_try
='test -s conftest.$ac_objext'
8558 { (case "(($ac_try" in
8559 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8560 *) ac_try_echo=$ac_try;;
8562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8563 (eval "$ac_try") 2>&5
8565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566 (exit $ac_status); }; }; then
8567 ac_cv_header_stdbool_h=yes
8569 echo "$as_me: failed program was:" >&5
8570 sed 's/^/| /' conftest.$ac_ext >&5
8572 ac_cv_header_stdbool_h=no
8575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8577 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
8578 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
8579 { echo "$as_me:$LINENO: checking for _Bool" >&5
8580 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
8581 if test "${ac_cv_type__Bool+set}" = set; then
8582 echo $ECHO_N "(cached) $ECHO_C" >&6
8584 cat >conftest.$ac_ext <<_ACEOF
8587 cat confdefs.h >>conftest.$ac_ext
8588 cat >>conftest.$ac_ext <<_ACEOF
8589 /* end confdefs.h. */
8590 $ac_includes_default
8591 typedef _Bool ac__type_new_;
8595 if ((ac__type_new_ *) 0)
8597 if (sizeof (ac__type_new_))
8603 rm -f conftest.$ac_objext
8604 if { (ac_try="$ac_compile"
8606 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8607 *) ac_try_echo
=$ac_try;;
8609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8610 (eval "$ac_compile") 2>conftest.er1
8612 grep -v '^ *+' conftest.er1
>conftest.err
8614 cat conftest.err
>&5
8615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616 (exit $ac_status); } &&
8617 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8618 { (case "(($ac_try" in
8619 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8620 *) ac_try_echo=$ac_try;;
8622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8623 (eval "$ac_try") 2>&5
8625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626 (exit $ac_status); }; } &&
8627 { ac_try='test -s conftest.$ac_objext'
8628 { (case "(($ac_try" in
8629 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8630 *) ac_try_echo
=$ac_try;;
8632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8633 (eval "$ac_try") 2>&5
8635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636 (exit $ac_status); }; }; then
8637 ac_cv_type__Bool
=yes
8639 echo "$as_me: failed program was:" >&5
8640 sed 's/^/| /' conftest.
$ac_ext >&5
8645 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8647 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
8648 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
8649 if test $ac_cv_type__Bool = yes; then
8651 cat >>confdefs.h
<<_ACEOF
8652 #define HAVE__BOOL 1
8658 if test $ac_cv_header_stdbool_h = yes; then
8660 cat >>confdefs.h
<<\_ACEOF
8661 #define HAVE_STDBOOL_H 1
8666 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8667 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8668 if test "${ac_cv_c_const+set}" = set; then
8669 echo $ECHO_N "(cached) $ECHO_C" >&6
8671 cat >conftest.
$ac_ext <<_ACEOF
8674 cat confdefs.h
>>conftest.
$ac_ext
8675 cat >>conftest.
$ac_ext <<_ACEOF
8676 /* end confdefs.h. */
8681 /* FIXME: Include the comments suggested by Paul. */
8683 /* Ultrix mips cc rejects this. */
8684 typedef int charset[2];
8686 /* SunOS 4.1.1 cc rejects this. */
8687 char const *const *ccp;
8689 /* NEC SVR4.0.2 mips cc rejects this. */
8690 struct point {int x, y;};
8691 static struct point const zero = {0,0};
8692 /* AIX XL C 1.02.0.0 rejects this.
8693 It does not let you subtract one const X* pointer from another in
8694 an arm of an if-expression whose if-part is not a constant
8696 const char *g = "string";
8697 ccp = &g + (g ? g-g : 0);
8698 /* HPUX 7.0 cc rejects these. */
8701 ccp = (char const *const *) p;
8702 { /* SCO 3.2v4 cc rejects this. */
8704 char const *s = 0 ? (char *) 0 : (char const *) 0;
8709 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8711 const int *foo = &x[0];
8714 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8715 typedef const int *iptr;
8719 { /* AIX XL C 1.02.0.0 rejects this saying
8720 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8721 struct s { int j; const int *ap[3]; };
8722 struct s *b; b->j = 5;
8724 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8728 return !x[0] && !zero.x;
8735 rm -f conftest.
$ac_objext
8736 if { (ac_try
="$ac_compile"
8738 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8739 *) ac_try_echo=$ac_try;;
8741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8742 (eval "$ac_compile") 2>conftest.er1
8744 grep -v '^ *+' conftest.er1 >conftest.err
8746 cat conftest.err >&5
8747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748 (exit $ac_status); } &&
8749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8750 { (case "(($ac_try" in
8751 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8752 *) ac_try_echo
=$ac_try;;
8754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8755 (eval "$ac_try") 2>&5
8757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8758 (exit $ac_status); }; } &&
8759 { ac_try
='test -s conftest.$ac_objext'
8760 { (case "(($ac_try" in
8761 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8762 *) ac_try_echo=$ac_try;;
8764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8765 (eval "$ac_try") 2>&5
8767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768 (exit $ac_status); }; }; then
8771 echo "$as_me: failed program was:" >&5
8772 sed 's/^/| /' conftest.$ac_ext >&5
8777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8779 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8780 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8781 if test $ac_cv_c_const = no; then
8783 cat >>confdefs.h <<\_ACEOF
8789 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
8790 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
8791 if test "${ac_cv_type_uid_t+set}" = set; then
8792 echo $ECHO_N "(cached) $ECHO_C" >&6
8794 cat >conftest.$ac_ext <<_ACEOF
8797 cat confdefs.h >>conftest.$ac_ext
8798 cat >>conftest.$ac_ext <<_ACEOF
8799 /* end confdefs.h. */
8800 #include <sys/types.h>
8803 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8804 $EGREP "uid_t" >/dev/null 2>&1; then
8805 ac_cv_type_uid_t=yes
8812 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
8813 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
8814 if test $ac_cv_type_uid_t = no; then
8816 cat >>confdefs.h <<\_ACEOF
8821 cat >>confdefs.h <<\_ACEOF
8827 { echo "$as_me:$LINENO: checking for inline" >&5
8828 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
8829 if test "${ac_cv_c_inline+set}" = set; then
8830 echo $ECHO_N "(cached) $ECHO_C" >&6
8833 for ac_kw in inline __inline__ __inline; do
8834 cat >conftest.$ac_ext <<_ACEOF
8837 cat confdefs.h >>conftest.$ac_ext
8838 cat >>conftest.$ac_ext <<_ACEOF
8839 /* end confdefs.h. */
8842 static $ac_kw foo_t static_foo () {return 0; }
8843 $ac_kw foo_t foo () {return 0; }
8847 rm -f conftest.$ac_objext
8848 if { (ac_try="$ac_compile"
8850 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8851 *) ac_try_echo
=$ac_try;;
8853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8854 (eval "$ac_compile") 2>conftest.er1
8856 grep -v '^ *+' conftest.er1
>conftest.err
8858 cat conftest.err
>&5
8859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860 (exit $ac_status); } &&
8861 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8862 { (case "(($ac_try" in
8863 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8864 *) ac_try_echo=$ac_try;;
8866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8867 (eval "$ac_try") 2>&5
8869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870 (exit $ac_status); }; } &&
8871 { ac_try='test -s conftest.$ac_objext'
8872 { (case "(($ac_try" in
8873 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8874 *) ac_try_echo
=$ac_try;;
8876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8877 (eval "$ac_try") 2>&5
8879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880 (exit $ac_status); }; }; then
8881 ac_cv_c_inline
=$ac_kw
8883 echo "$as_me: failed program was:" >&5
8884 sed 's/^/| /' conftest.
$ac_ext >&5
8889 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8890 test "$ac_cv_c_inline" != no
&& break
8894 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8895 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
8898 case $ac_cv_c_inline in
8901 case $ac_cv_c_inline in
8903 *) ac_val
=$ac_cv_c_inline;;
8905 cat >>confdefs.h
<<_ACEOF
8907 #define inline $ac_val
8913 { echo "$as_me:$LINENO: checking for mode_t" >&5
8914 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
8915 if test "${ac_cv_type_mode_t+set}" = set; then
8916 echo $ECHO_N "(cached) $ECHO_C" >&6
8918 cat >conftest.
$ac_ext <<_ACEOF
8921 cat confdefs.h
>>conftest.
$ac_ext
8922 cat >>conftest.
$ac_ext <<_ACEOF
8923 /* end confdefs.h. */
8924 $ac_includes_default
8925 typedef mode_t ac__type_new_;
8929 if ((ac__type_new_ *) 0)
8931 if (sizeof (ac__type_new_))
8937 rm -f conftest.
$ac_objext
8938 if { (ac_try
="$ac_compile"
8940 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8941 *) ac_try_echo=$ac_try;;
8943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8944 (eval "$ac_compile") 2>conftest.er1
8946 grep -v '^ *+' conftest.er1 >conftest.err
8948 cat conftest.err >&5
8949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950 (exit $ac_status); } &&
8951 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8952 { (case "(($ac_try" in
8953 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8954 *) ac_try_echo
=$ac_try;;
8956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8957 (eval "$ac_try") 2>&5
8959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960 (exit $ac_status); }; } &&
8961 { ac_try
='test -s conftest.$ac_objext'
8962 { (case "(($ac_try" in
8963 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8964 *) ac_try_echo=$ac_try;;
8966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8967 (eval "$ac_try") 2>&5
8969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8970 (exit $ac_status); }; }; then
8971 ac_cv_type_mode_t=yes
8973 echo "$as_me: failed program was:" >&5
8974 sed 's/^/| /' conftest.$ac_ext >&5
8976 ac_cv_type_mode_t=no
8979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8981 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
8982 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
8983 if test $ac_cv_type_mode_t = yes; then
8987 cat >>confdefs.h <<_ACEOF
8993 { echo "$as_me:$LINENO: checking for off_t" >&5
8994 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
8995 if test "${ac_cv_type_off_t+set}" = set; then
8996 echo $ECHO_N "(cached) $ECHO_C" >&6
8998 cat >conftest.$ac_ext <<_ACEOF
9001 cat confdefs.h >>conftest.$ac_ext
9002 cat >>conftest.$ac_ext <<_ACEOF
9003 /* end confdefs.h. */
9004 $ac_includes_default
9005 typedef off_t ac__type_new_;
9009 if ((ac__type_new_ *) 0)
9011 if (sizeof (ac__type_new_))
9017 rm -f conftest.$ac_objext
9018 if { (ac_try="$ac_compile"
9020 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9021 *) ac_try_echo
=$ac_try;;
9023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9024 (eval "$ac_compile") 2>conftest.er1
9026 grep -v '^ *+' conftest.er1
>conftest.err
9028 cat conftest.err
>&5
9029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9030 (exit $ac_status); } &&
9031 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9032 { (case "(($ac_try" in
9033 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9034 *) ac_try_echo=$ac_try;;
9036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9037 (eval "$ac_try") 2>&5
9039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040 (exit $ac_status); }; } &&
9041 { ac_try='test -s conftest.$ac_objext'
9042 { (case "(($ac_try" in
9043 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9044 *) ac_try_echo
=$ac_try;;
9046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9047 (eval "$ac_try") 2>&5
9049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9050 (exit $ac_status); }; }; then
9051 ac_cv_type_off_t
=yes
9053 echo "$as_me: failed program was:" >&5
9054 sed 's/^/| /' conftest.
$ac_ext >&5
9059 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9061 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
9062 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
9063 if test $ac_cv_type_off_t = yes; then
9067 cat >>confdefs.h
<<_ACEOF
9068 #define off_t long int
9073 { echo "$as_me:$LINENO: checking for pid_t" >&5
9074 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
9075 if test "${ac_cv_type_pid_t+set}" = set; then
9076 echo $ECHO_N "(cached) $ECHO_C" >&6
9078 cat >conftest.
$ac_ext <<_ACEOF
9081 cat confdefs.h
>>conftest.
$ac_ext
9082 cat >>conftest.
$ac_ext <<_ACEOF
9083 /* end confdefs.h. */
9084 $ac_includes_default
9085 typedef pid_t ac__type_new_;
9089 if ((ac__type_new_ *) 0)
9091 if (sizeof (ac__type_new_))
9097 rm -f conftest.
$ac_objext
9098 if { (ac_try
="$ac_compile"
9100 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9101 *) ac_try_echo=$ac_try;;
9103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9104 (eval "$ac_compile") 2>conftest.er1
9106 grep -v '^ *+' conftest.er1 >conftest.err
9108 cat conftest.err >&5
9109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110 (exit $ac_status); } &&
9111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9112 { (case "(($ac_try" in
9113 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9114 *) ac_try_echo
=$ac_try;;
9116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9117 (eval "$ac_try") 2>&5
9119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120 (exit $ac_status); }; } &&
9121 { ac_try
='test -s conftest.$ac_objext'
9122 { (case "(($ac_try" in
9123 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9124 *) ac_try_echo=$ac_try;;
9126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9127 (eval "$ac_try") 2>&5
9129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130 (exit $ac_status); }; }; then
9131 ac_cv_type_pid_t=yes
9133 echo "$as_me: failed program was:" >&5
9134 sed 's/^/| /' conftest.$ac_ext >&5
9139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9141 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9142 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
9143 if test $ac_cv_type_pid_t = yes; then
9147 cat >>confdefs.h <<_ACEOF
9153 { echo "$as_me:$LINENO: checking for size_t" >&5
9154 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
9155 if test "${ac_cv_type_size_t+set}" = set; then
9156 echo $ECHO_N "(cached) $ECHO_C" >&6
9158 cat >conftest.$ac_ext <<_ACEOF
9161 cat confdefs.h >>conftest.$ac_ext
9162 cat >>conftest.$ac_ext <<_ACEOF
9163 /* end confdefs.h. */
9164 $ac_includes_default
9165 typedef size_t ac__type_new_;
9169 if ((ac__type_new_ *) 0)
9171 if (sizeof (ac__type_new_))
9177 rm -f conftest.$ac_objext
9178 if { (ac_try="$ac_compile"
9180 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9181 *) ac_try_echo
=$ac_try;;
9183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9184 (eval "$ac_compile") 2>conftest.er1
9186 grep -v '^ *+' conftest.er1
>conftest.err
9188 cat conftest.err
>&5
9189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190 (exit $ac_status); } &&
9191 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9192 { (case "(($ac_try" in
9193 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9194 *) ac_try_echo=$ac_try;;
9196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9197 (eval "$ac_try") 2>&5
9199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200 (exit $ac_status); }; } &&
9201 { ac_try='test -s conftest.$ac_objext'
9202 { (case "(($ac_try" in
9203 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9204 *) ac_try_echo
=$ac_try;;
9206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9207 (eval "$ac_try") 2>&5
9209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9210 (exit $ac_status); }; }; then
9211 ac_cv_type_size_t
=yes
9213 echo "$as_me: failed program was:" >&5
9214 sed 's/^/| /' conftest.
$ac_ext >&5
9216 ac_cv_type_size_t
=no
9219 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9221 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9222 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
9223 if test $ac_cv_type_size_t = yes; then
9227 cat >>confdefs.h
<<_ACEOF
9228 #define size_t unsigned int
9233 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
9234 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
9235 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
9236 echo $ECHO_N "(cached) $ECHO_C" >&6
9238 cat >conftest.
$ac_ext <<_ACEOF
9241 cat confdefs.h
>>conftest.
$ac_ext
9242 cat >>conftest.
$ac_ext <<_ACEOF
9243 /* end confdefs.h. */
9244 $ac_includes_default
9248 static struct stat ac_aggr;
9249 if (ac_aggr.st_blksize)
9255 rm -f conftest.
$ac_objext
9256 if { (ac_try
="$ac_compile"
9258 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9259 *) ac_try_echo=$ac_try;;
9261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9262 (eval "$ac_compile") 2>conftest.er1
9264 grep -v '^ *+' conftest.er1 >conftest.err
9266 cat conftest.err >&5
9267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9268 (exit $ac_status); } &&
9269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9270 { (case "(($ac_try" in
9271 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9272 *) ac_try_echo
=$ac_try;;
9274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9275 (eval "$ac_try") 2>&5
9277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9278 (exit $ac_status); }; } &&
9279 { ac_try
='test -s conftest.$ac_objext'
9280 { (case "(($ac_try" in
9281 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9282 *) ac_try_echo=$ac_try;;
9284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9285 (eval "$ac_try") 2>&5
9287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288 (exit $ac_status); }; }; then
9289 ac_cv_member_struct_stat_st_blksize=yes
9291 echo "$as_me: failed program was:" >&5
9292 sed 's/^/| /' conftest.$ac_ext >&5
9294 cat >conftest.$ac_ext <<_ACEOF
9297 cat confdefs.h >>conftest.$ac_ext
9298 cat >>conftest.$ac_ext <<_ACEOF
9299 /* end confdefs.h. */
9300 $ac_includes_default
9304 static struct stat ac_aggr;
9305 if (sizeof ac_aggr.st_blksize)
9311 rm -f conftest.$ac_objext
9312 if { (ac_try="$ac_compile"
9314 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9315 *) ac_try_echo
=$ac_try;;
9317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9318 (eval "$ac_compile") 2>conftest.er1
9320 grep -v '^ *+' conftest.er1
>conftest.err
9322 cat conftest.err
>&5
9323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324 (exit $ac_status); } &&
9325 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9326 { (case "(($ac_try" in
9327 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9328 *) ac_try_echo=$ac_try;;
9330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9331 (eval "$ac_try") 2>&5
9333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9334 (exit $ac_status); }; } &&
9335 { ac_try='test -s conftest.$ac_objext'
9336 { (case "(($ac_try" in
9337 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9338 *) ac_try_echo
=$ac_try;;
9340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9341 (eval "$ac_try") 2>&5
9343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344 (exit $ac_status); }; }; then
9345 ac_cv_member_struct_stat_st_blksize
=yes
9347 echo "$as_me: failed program was:" >&5
9348 sed 's/^/| /' conftest.
$ac_ext >&5
9350 ac_cv_member_struct_stat_st_blksize
=no
9353 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9356 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9358 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
9359 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
9360 if test $ac_cv_member_struct_stat_st_blksize = yes; then
9362 cat >>confdefs.h
<<_ACEOF
9363 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
9369 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
9370 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
9371 if test "${ac_cv_header_time+set}" = set; then
9372 echo $ECHO_N "(cached) $ECHO_C" >&6
9374 cat >conftest.
$ac_ext <<_ACEOF
9377 cat confdefs.h
>>conftest.
$ac_ext
9378 cat >>conftest.
$ac_ext <<_ACEOF
9379 /* end confdefs.h. */
9380 #include <sys/types.h>
9381 #include <sys/time.h>
9387 if ((struct tm *) 0)
9393 rm -f conftest.
$ac_objext
9394 if { (ac_try
="$ac_compile"
9396 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9397 *) ac_try_echo=$ac_try;;
9399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9400 (eval "$ac_compile") 2>conftest.er1
9402 grep -v '^ *+' conftest.er1 >conftest.err
9404 cat conftest.err >&5
9405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9406 (exit $ac_status); } &&
9407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9408 { (case "(($ac_try" in
9409 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9410 *) ac_try_echo
=$ac_try;;
9412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9413 (eval "$ac_try") 2>&5
9415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416 (exit $ac_status); }; } &&
9417 { ac_try
='test -s conftest.$ac_objext'
9418 { (case "(($ac_try" in
9419 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9420 *) ac_try_echo=$ac_try;;
9422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9423 (eval "$ac_try") 2>&5
9425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426 (exit $ac_status); }; }; then
9427 ac_cv_header_time=yes
9429 echo "$as_me: failed program was:" >&5
9430 sed 's/^/| /' conftest.$ac_ext >&5
9432 ac_cv_header_time=no
9435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9437 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9438 echo "${ECHO_T}$ac_cv_header_time" >&6; }
9439 if test $ac_cv_header_time = yes; then
9441 cat >>confdefs.h <<\_ACEOF
9442 #define TIME_WITH_SYS_TIME 1
9447 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9448 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
9449 if test "${ac_cv_struct_tm+set}" = set; then
9450 echo $ECHO_N "(cached) $ECHO_C" >&6
9452 cat >conftest.$ac_ext <<_ACEOF
9455 cat confdefs.h >>conftest.$ac_ext
9456 cat >>conftest.$ac_ext <<_ACEOF
9457 /* end confdefs.h. */
9458 #include <sys/types.h>
9464 struct tm *tp; tp->tm_sec;
9469 rm -f conftest.$ac_objext
9470 if { (ac_try="$ac_compile"
9472 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9473 *) ac_try_echo
=$ac_try;;
9475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9476 (eval "$ac_compile") 2>conftest.er1
9478 grep -v '^ *+' conftest.er1
>conftest.err
9480 cat conftest.err
>&5
9481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9482 (exit $ac_status); } &&
9483 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9484 { (case "(($ac_try" in
9485 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9486 *) ac_try_echo=$ac_try;;
9488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9489 (eval "$ac_try") 2>&5
9491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492 (exit $ac_status); }; } &&
9493 { ac_try='test -s conftest.$ac_objext'
9494 { (case "(($ac_try" in
9495 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9496 *) ac_try_echo
=$ac_try;;
9498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9499 (eval "$ac_try") 2>&5
9501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9502 (exit $ac_status); }; }; then
9503 ac_cv_struct_tm
=time.h
9505 echo "$as_me: failed program was:" >&5
9506 sed 's/^/| /' conftest.
$ac_ext >&5
9508 ac_cv_struct_tm
=sys
/time.h
9511 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9513 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9514 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
9515 if test $ac_cv_struct_tm = sys
/time.h
; then
9517 cat >>confdefs.h
<<\_ACEOF
9518 #define TM_IN_SYS_TIME 1
9523 { echo "$as_me:$LINENO: checking for working volatile" >&5
9524 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
9525 if test "${ac_cv_c_volatile+set}" = set; then
9526 echo $ECHO_N "(cached) $ECHO_C" >&6
9528 cat >conftest.
$ac_ext <<_ACEOF
9531 cat confdefs.h
>>conftest.
$ac_ext
9532 cat >>conftest.
$ac_ext <<_ACEOF
9533 /* end confdefs.h. */
9540 int * volatile y = (int *) 0;
9546 rm -f conftest.
$ac_objext
9547 if { (ac_try
="$ac_compile"
9549 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9550 *) ac_try_echo=$ac_try;;
9552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9553 (eval "$ac_compile") 2>conftest.er1
9555 grep -v '^ *+' conftest.er1 >conftest.err
9557 cat conftest.err >&5
9558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9559 (exit $ac_status); } &&
9560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9561 { (case "(($ac_try" in
9562 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9563 *) ac_try_echo
=$ac_try;;
9565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9566 (eval "$ac_try") 2>&5
9568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9569 (exit $ac_status); }; } &&
9570 { ac_try
='test -s conftest.$ac_objext'
9571 { (case "(($ac_try" in
9572 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9573 *) ac_try_echo=$ac_try;;
9575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9576 (eval "$ac_try") 2>&5
9578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579 (exit $ac_status); }; }; then
9580 ac_cv_c_volatile=yes
9582 echo "$as_me: failed program was:" >&5
9583 sed 's/^/| /' conftest.$ac_ext >&5
9588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9590 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9591 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
9592 if test $ac_cv_c_volatile = no; then
9594 cat >>confdefs.h <<\_ACEOF
9600 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
9601 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
9602 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
9603 echo $ECHO_N "(cached) $ECHO_C" >&6
9605 cat >conftest.$ac_ext <<_ACEOF
9608 cat confdefs.h >>conftest.$ac_ext
9609 cat >>conftest.$ac_ext <<_ACEOF
9610 /* end confdefs.h. */
9611 $ac_includes_default
9612 typedef ptrdiff_t ac__type_new_;
9616 if ((ac__type_new_ *) 0)
9618 if (sizeof (ac__type_new_))
9624 rm -f conftest.$ac_objext
9625 if { (ac_try="$ac_compile"
9627 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9628 *) ac_try_echo
=$ac_try;;
9630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9631 (eval "$ac_compile") 2>conftest.er1
9633 grep -v '^ *+' conftest.er1
>conftest.err
9635 cat conftest.err
>&5
9636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637 (exit $ac_status); } &&
9638 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9639 { (case "(($ac_try" in
9640 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9641 *) ac_try_echo=$ac_try;;
9643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9644 (eval "$ac_try") 2>&5
9646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647 (exit $ac_status); }; } &&
9648 { ac_try='test -s conftest.$ac_objext'
9649 { (case "(($ac_try" in
9650 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9651 *) ac_try_echo
=$ac_try;;
9653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9654 (eval "$ac_try") 2>&5
9656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657 (exit $ac_status); }; }; then
9658 ac_cv_type_ptrdiff_t
=yes
9660 echo "$as_me: failed program was:" >&5
9661 sed 's/^/| /' conftest.
$ac_ext >&5
9663 ac_cv_type_ptrdiff_t
=no
9666 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9668 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
9669 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
9670 if test $ac_cv_type_ptrdiff_t = yes; then
9672 cat >>confdefs.h
<<_ACEOF
9673 #define HAVE_PTRDIFF_T 1
9680 # Checks for library functions.
9682 for ac_header
in unistd.h
9684 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9685 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9686 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9687 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9688 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9689 echo $ECHO_N "(cached) $ECHO_C" >&6
9691 ac_res
=`eval echo '${'$as_ac_Header'}'`
9692 { echo "$as_me:$LINENO: result: $ac_res" >&5
9693 echo "${ECHO_T}$ac_res" >&6; }
9695 # Is the header compilable?
9696 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9697 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9698 cat >conftest.
$ac_ext <<_ACEOF
9701 cat confdefs.h
>>conftest.
$ac_ext
9702 cat >>conftest.
$ac_ext <<_ACEOF
9703 /* end confdefs.h. */
9704 $ac_includes_default
9705 #include <$ac_header>
9707 rm -f conftest.
$ac_objext
9708 if { (ac_try
="$ac_compile"
9710 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9711 *) ac_try_echo=$ac_try;;
9713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9714 (eval "$ac_compile") 2>conftest.er1
9716 grep -v '^ *+' conftest.er1 >conftest.err
9718 cat conftest.err >&5
9719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9720 (exit $ac_status); } &&
9721 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9722 { (case "(($ac_try" in
9723 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9724 *) ac_try_echo
=$ac_try;;
9726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9727 (eval "$ac_try") 2>&5
9729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9730 (exit $ac_status); }; } &&
9731 { ac_try
='test -s conftest.$ac_objext'
9732 { (case "(($ac_try" in
9733 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9734 *) ac_try_echo=$ac_try;;
9736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9737 (eval "$ac_try") 2>&5
9739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740 (exit $ac_status); }; }; then
9741 ac_header_compiler=yes
9743 echo "$as_me: failed program was:" >&5
9744 sed 's/^/| /' conftest.$ac_ext >&5
9746 ac_header_compiler=no
9749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9750 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9751 echo "${ECHO_T}$ac_header_compiler" >&6; }
9753 # Is the header present?
9754 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9755 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9756 cat >conftest.$ac_ext <<_ACEOF
9759 cat confdefs.h >>conftest.$ac_ext
9760 cat >>conftest.$ac_ext <<_ACEOF
9761 /* end confdefs.h. */
9762 #include <$ac_header>
9764 if { (ac_try="$ac_cpp conftest.$ac_ext"
9766 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9767 *) ac_try_echo
=$ac_try;;
9769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9770 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9772 grep -v '^ *+' conftest.er1
>conftest.err
9774 cat conftest.err
>&5
9775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9776 (exit $ac_status); } >/dev
/null
; then
9777 if test -s conftest.err
; then
9778 ac_cpp_err
=$ac_c_preproc_warn_flag
9779 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9786 if test -z "$ac_cpp_err"; then
9787 ac_header_preproc
=yes
9789 echo "$as_me: failed program was:" >&5
9790 sed 's/^/| /' conftest.
$ac_ext >&5
9792 ac_header_preproc
=no
9795 rm -f conftest.err conftest.
$ac_ext
9796 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9797 echo "${ECHO_T}$ac_header_preproc" >&6; }
9799 # So? What about this header?
9800 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9802 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9803 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9804 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9805 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9806 ac_header_preproc
=yes
9809 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9810 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9811 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9812 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9813 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9814 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9815 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9816 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9817 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9818 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9819 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9820 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9824 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9825 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9826 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9827 echo $ECHO_N "(cached) $ECHO_C" >&6
9829 eval "$as_ac_Header=\$ac_header_preproc"
9831 ac_res
=`eval echo '${'$as_ac_Header'}'`
9832 { echo "$as_me:$LINENO: result: $ac_res" >&5
9833 echo "${ECHO_T}$ac_res" >&6; }
9836 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9837 cat >>confdefs.h
<<_ACEOF
9838 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9845 { echo "$as_me:$LINENO: checking for working chown" >&5
9846 echo $ECHO_N "checking for working chown... $ECHO_C" >&6; }
9847 if test "${ac_cv_func_chown_works+set}" = set; then
9848 echo $ECHO_N "(cached) $ECHO_C" >&6
9850 if test "$cross_compiling" = yes; then
9851 ac_cv_func_chown_works
=no
9853 cat >conftest.
$ac_ext <<_ACEOF
9856 cat confdefs.h
>>conftest.
$ac_ext
9857 cat >>conftest.
$ac_ext <<_ACEOF
9858 /* end confdefs.h. */
9859 $ac_includes_default
9865 char *f = "conftest.chown";
9866 struct stat before, after;
9868 if (creat (f, 0600) < 0)
9870 if (stat (f, &before) < 0)
9872 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
9874 if (stat (f, &after) < 0)
9876 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
9882 rm -f conftest
$ac_exeext
9883 if { (ac_try
="$ac_link"
9885 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9886 *) ac_try_echo=$ac_try;;
9888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9889 (eval "$ac_link") 2>&5
9891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9892 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9893 { (case "(($ac_try" in
9894 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9895 *) ac_try_echo
=$ac_try;;
9897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9898 (eval "$ac_try") 2>&5
9900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901 (exit $ac_status); }; }; then
9902 ac_cv_func_chown_works
=yes
9904 echo "$as_me: program exited with status $ac_status" >&5
9905 echo "$as_me: failed program was:" >&5
9906 sed 's/^/| /' conftest.
$ac_ext >&5
9909 ac_cv_func_chown_works
=no
9911 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9915 rm -f conftest.chown
9918 { echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
9919 echo "${ECHO_T}$ac_cv_func_chown_works" >&6; }
9920 if test $ac_cv_func_chown_works = yes; then
9922 cat >>confdefs.h
<<\_ACEOF
9923 #define HAVE_CHOWN 1
9928 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
9929 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
9930 if test "${ac_cv_func_closedir_void+set}" = set; then
9931 echo $ECHO_N "(cached) $ECHO_C" >&6
9933 if test "$cross_compiling" = yes; then
9934 ac_cv_func_closedir_void
=yes
9936 cat >conftest.
$ac_ext <<_ACEOF
9939 cat confdefs.h
>>conftest.
$ac_ext
9940 cat >>conftest.
$ac_ext <<_ACEOF
9941 /* end confdefs.h. */
9942 $ac_includes_default
9943 #include <$ac_header_dirent>
9951 return closedir (opendir (".")) != 0;
9956 rm -f conftest
$ac_exeext
9957 if { (ac_try
="$ac_link"
9959 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9960 *) ac_try_echo=$ac_try;;
9962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9963 (eval "$ac_link") 2>&5
9965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9967 { (case "(($ac_try" in
9968 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9969 *) ac_try_echo
=$ac_try;;
9971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9972 (eval "$ac_try") 2>&5
9974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975 (exit $ac_status); }; }; then
9976 ac_cv_func_closedir_void
=no
9978 echo "$as_me: program exited with status $ac_status" >&5
9979 echo "$as_me: failed program was:" >&5
9980 sed 's/^/| /' conftest.
$ac_ext >&5
9983 ac_cv_func_closedir_void
=yes
9985 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9990 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
9991 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
9992 if test $ac_cv_func_closedir_void = yes; then
9994 cat >>confdefs.h
<<\_ACEOF
9995 #define CLOSEDIR_VOID 1
10000 { echo "$as_me:$LINENO: checking for error_at_line" >&5
10001 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
10002 if test "${ac_cv_lib_error_at_line+set}" = set; then
10003 echo $ECHO_N "(cached) $ECHO_C" >&6
10005 cat >conftest.
$ac_ext <<_ACEOF
10008 cat confdefs.h
>>conftest.
$ac_ext
10009 cat >>conftest.
$ac_ext <<_ACEOF
10010 /* end confdefs.h. */
10011 $ac_includes_default
10015 error_at_line (0, 0, "", 0, "");
10020 rm -f conftest.
$ac_objext conftest
$ac_exeext
10021 if { (ac_try
="$ac_link"
10022 case "(($ac_try" in
10023 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10024 *) ac_try_echo=$ac_try;;
10026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10027 (eval "$ac_link") 2>conftest.er1
10029 grep -v '^ *+' conftest.er1 >conftest.err
10031 cat conftest.err >&5
10032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033 (exit $ac_status); } &&
10034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10035 { (case "(($ac_try" in
10036 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10037 *) ac_try_echo
=$ac_try;;
10039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10040 (eval "$ac_try") 2>&5
10042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10043 (exit $ac_status); }; } &&
10044 { ac_try
='test -s conftest$ac_exeext'
10045 { (case "(($ac_try" in
10046 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10047 *) ac_try_echo=$ac_try;;
10049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10050 (eval "$ac_try") 2>&5
10052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053 (exit $ac_status); }; }; then
10054 ac_cv_lib_error_at_line=yes
10056 echo "$as_me: failed program was:" >&5
10057 sed 's/^/| /' conftest.$ac_ext >&5
10059 ac_cv_lib_error_at_line=no
10062 rm -f conftest.err conftest.$ac_objext \
10063 conftest$ac_exeext conftest.$ac_ext
10065 { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
10066 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
10067 if test $ac_cv_lib_error_at_line = no; then
10068 case " $LIBOBJS " in
10069 *" error.$ac_objext "* ) ;;
10070 *) LIBOBJS="$LIBOBJS error.$ac_objext"
10077 for ac_header in vfork.h
10079 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
10080 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10081 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10082 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10083 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10084 echo $ECHO_N "(cached) $ECHO_C" >&6
10086 ac_res=`eval echo '${'$as_ac_Header'}'`
10087 { echo "$as_me:$LINENO: result: $ac_res" >&5
10088 echo "${ECHO_T}$ac_res" >&6; }
10090 # Is the header compilable?
10091 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10092 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10093 cat >conftest.$ac_ext <<_ACEOF
10096 cat confdefs.h >>conftest.$ac_ext
10097 cat >>conftest.$ac_ext <<_ACEOF
10098 /* end confdefs.h. */
10099 $ac_includes_default
10100 #include <$ac_header>
10102 rm -f conftest.$ac_objext
10103 if { (ac_try="$ac_compile"
10104 case "(($ac_try" in
10105 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10106 *) ac_try_echo
=$ac_try;;
10108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10109 (eval "$ac_compile") 2>conftest.er1
10111 grep -v '^ *+' conftest.er1
>conftest.err
10113 cat conftest.err
>&5
10114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115 (exit $ac_status); } &&
10116 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10117 { (case "(($ac_try" in
10118 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10119 *) ac_try_echo=$ac_try;;
10121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10122 (eval "$ac_try") 2>&5
10124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125 (exit $ac_status); }; } &&
10126 { ac_try='test -s conftest.$ac_objext'
10127 { (case "(($ac_try" in
10128 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10129 *) ac_try_echo
=$ac_try;;
10131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10132 (eval "$ac_try") 2>&5
10134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10135 (exit $ac_status); }; }; then
10136 ac_header_compiler
=yes
10138 echo "$as_me: failed program was:" >&5
10139 sed 's/^/| /' conftest.
$ac_ext >&5
10141 ac_header_compiler
=no
10144 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10145 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10146 echo "${ECHO_T}$ac_header_compiler" >&6; }
10148 # Is the header present?
10149 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10150 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10151 cat >conftest.
$ac_ext <<_ACEOF
10154 cat confdefs.h
>>conftest.
$ac_ext
10155 cat >>conftest.
$ac_ext <<_ACEOF
10156 /* end confdefs.h. */
10157 #include <$ac_header>
10159 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10160 case "(($ac_try" in
10161 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10162 *) ac_try_echo=$ac_try;;
10164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10165 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10167 grep -v '^ *+' conftest.er1 >conftest.err
10169 cat conftest.err >&5
10170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171 (exit $ac_status); } >/dev/null; then
10172 if test -s conftest.err; then
10173 ac_cpp_err=$ac_c_preproc_warn_flag
10174 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10181 if test -z "$ac_cpp_err"; then
10182 ac_header_preproc=yes
10184 echo "$as_me: failed program was:" >&5
10185 sed 's/^/| /' conftest.$ac_ext >&5
10187 ac_header_preproc=no
10190 rm -f conftest.err conftest.$ac_ext
10191 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10192 echo "${ECHO_T}$ac_header_preproc" >&6; }
10194 # So? What about this header?
10195 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10197 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10198 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10199 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10200 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10201 ac_header_preproc=yes
10204 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10205 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10206 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10207 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10208 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10209 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10210 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10211 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10212 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10213 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10214 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10215 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10219 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10220 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10221 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10222 echo $ECHO_N "(cached) $ECHO_C" >&6
10224 eval "$as_ac_Header=\$ac_header_preproc"
10226 ac_res=`eval echo '${'$as_ac_Header'}'`
10227 { echo "$as_me:$LINENO: result: $ac_res" >&5
10228 echo "${ECHO_T}$ac_res" >&6; }
10231 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10232 cat >>confdefs.h <<_ACEOF
10233 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
10242 for ac_func in fork vfork
10244 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
10245 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10246 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10247 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10248 echo $ECHO_N "(cached) $ECHO_C" >&6
10250 cat >conftest.$ac_ext <<_ACEOF
10253 cat confdefs.h >>conftest.$ac_ext
10254 cat >>conftest.$ac_ext <<_ACEOF
10255 /* end confdefs.h. */
10256 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10257 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10258 #define $ac_func innocuous_$ac_func
10260 /* System header to define __stub macros and hopefully few prototypes,
10261 which can conflict with char $ac_func (); below.
10262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10263 <limits.h> exists even on freestanding compilers. */
10266 # include <limits.h>
10268 # include <assert.h>
10273 /* Override any GCC internal prototype to avoid an error.
10274 Use char because int might match the return type of a GCC
10275 builtin and then its argument prototype would still apply. */
10280 /* The GNU C library defines this for functions which it implements
10281 to always fail with ENOSYS. Some functions are actually named
10282 something starting with __ and the normal name is an alias. */
10283 #if defined __stub_$ac_func || defined __stub___$ac_func
10290 return $ac_func ();
10295 rm -f conftest.$ac_objext conftest$ac_exeext
10296 if { (ac_try="$ac_link"
10297 case "(($ac_try" in
10298 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10299 *) ac_try_echo
=$ac_try;;
10301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10302 (eval "$ac_link") 2>conftest.er1
10304 grep -v '^ *+' conftest.er1
>conftest.err
10306 cat conftest.err
>&5
10307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308 (exit $ac_status); } &&
10309 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10310 { (case "(($ac_try" in
10311 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10312 *) ac_try_echo=$ac_try;;
10314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10315 (eval "$ac_try") 2>&5
10317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318 (exit $ac_status); }; } &&
10319 { ac_try='test -s conftest$ac_exeext'
10320 { (case "(($ac_try" in
10321 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10322 *) ac_try_echo
=$ac_try;;
10324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10325 (eval "$ac_try") 2>&5
10327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328 (exit $ac_status); }; }; then
10329 eval "$as_ac_var=yes"
10331 echo "$as_me: failed program was:" >&5
10332 sed 's/^/| /' conftest.
$ac_ext >&5
10334 eval "$as_ac_var=no"
10337 rm -f conftest.err conftest.
$ac_objext \
10338 conftest
$ac_exeext conftest.
$ac_ext
10340 ac_res
=`eval echo '${'$as_ac_var'}'`
10341 { echo "$as_me:$LINENO: result: $ac_res" >&5
10342 echo "${ECHO_T}$ac_res" >&6; }
10343 if test `eval echo '${'$as_ac_var'}'` = yes; then
10344 cat >>confdefs.h
<<_ACEOF
10345 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10351 if test "x$ac_cv_func_fork" = xyes
; then
10352 { echo "$as_me:$LINENO: checking for working fork" >&5
10353 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
10354 if test "${ac_cv_func_fork_works+set}" = set; then
10355 echo $ECHO_N "(cached) $ECHO_C" >&6
10357 if test "$cross_compiling" = yes; then
10358 ac_cv_func_fork_works
=cross
10360 cat >conftest.
$ac_ext <<_ACEOF
10363 cat confdefs.h
>>conftest.
$ac_ext
10364 cat >>conftest.
$ac_ext <<_ACEOF
10365 /* end confdefs.h. */
10366 $ac_includes_default
10371 /* By Ruediger Kuhlmann. */
10372 return fork () < 0;
10378 rm -f conftest
$ac_exeext
10379 if { (ac_try
="$ac_link"
10380 case "(($ac_try" in
10381 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10382 *) ac_try_echo=$ac_try;;
10384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10385 (eval "$ac_link") 2>&5
10387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10389 { (case "(($ac_try" in
10390 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10391 *) ac_try_echo
=$ac_try;;
10393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10394 (eval "$ac_try") 2>&5
10396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10397 (exit $ac_status); }; }; then
10398 ac_cv_func_fork_works
=yes
10400 echo "$as_me: program exited with status $ac_status" >&5
10401 echo "$as_me: failed program was:" >&5
10402 sed 's/^/| /' conftest.
$ac_ext >&5
10404 ( exit $ac_status )
10405 ac_cv_func_fork_works
=no
10407 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10412 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
10413 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
10416 ac_cv_func_fork_works
=$ac_cv_func_fork
10418 if test "x$ac_cv_func_fork_works" = xcross
; then
10420 *-*-amigaos* |
*-*-msdosdjgpp*)
10421 # Override, as these systems have only a dummy fork() stub
10422 ac_cv_func_fork_works
=no
10425 ac_cv_func_fork_works
=yes
10428 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10429 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10431 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10432 if test "x$ac_cv_func_vfork" = xyes
; then
10433 { echo "$as_me:$LINENO: checking for working vfork" >&5
10434 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
10435 if test "${ac_cv_func_vfork_works+set}" = set; then
10436 echo $ECHO_N "(cached) $ECHO_C" >&6
10438 if test "$cross_compiling" = yes; then
10439 ac_cv_func_vfork_works
=cross
10441 cat >conftest.
$ac_ext <<_ACEOF
10444 cat confdefs.h
>>conftest.
$ac_ext
10445 cat >>conftest.
$ac_ext <<_ACEOF
10446 /* end confdefs.h. */
10447 /* Thanks to Paul Eggert for this test. */
10448 $ac_includes_default
10449 #include <sys/wait.h>
10451 # include <vfork.h>
10453 /* On some sparc systems, changes by the child to local and incoming
10454 argument registers are propagated back to the parent. The compiler
10455 is told about this with #include <vfork.h>, but some compilers
10456 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
10457 static variable whose address is put into a register that is
10458 clobbered by the vfork. */
10461 sparc_address_test (int arg)
10463 sparc_address_test (arg) int arg;
10466 static pid_t child;
10484 pid_t parent = getpid ();
10487 sparc_address_test (0);
10492 /* Here is another test for sparc vfork register problems. This
10493 test uses lots of local variables, at least as many local
10494 variables as main has allocated so far including compiler
10495 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10496 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10497 reuse the register of parent for one of the local variables,
10498 since it will think that parent can't possibly be used any more
10499 in this routine. Assigning to the local variable will thus
10500 munge parent in the parent process. */
10502 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10503 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10504 /* Convince the compiler that p..p7 are live; otherwise, it might
10505 use the same hardware register for all 8 local variables. */
10506 if (p != p1 || p != p2 || p != p3 || p != p4
10507 || p != p5 || p != p6 || p != p7)
10510 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10511 from child file descriptors. If the child closes a descriptor
10512 before it execs or exits, this munges the parent's descriptor
10513 as well. Test for this by closing stdout in the child. */
10514 _exit(close(fileno(stdout)) != 0);
10519 while (wait(&status) != child)
10522 /* Was there some problem with vforking? */
10525 /* Did the child fail? (This shouldn't happen.) */
10528 /* Did the vfork/compiler bug occur? */
10529 || parent != getpid()
10531 /* Did the file descriptor bug occur? */
10532 || fstat(fileno(stdout), &st) != 0
10537 rm -f conftest
$ac_exeext
10538 if { (ac_try
="$ac_link"
10539 case "(($ac_try" in
10540 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10541 *) ac_try_echo=$ac_try;;
10543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10544 (eval "$ac_link") 2>&5
10546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10548 { (case "(($ac_try" in
10549 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10550 *) ac_try_echo
=$ac_try;;
10552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10553 (eval "$ac_try") 2>&5
10555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556 (exit $ac_status); }; }; then
10557 ac_cv_func_vfork_works
=yes
10559 echo "$as_me: program exited with status $ac_status" >&5
10560 echo "$as_me: failed program was:" >&5
10561 sed 's/^/| /' conftest.
$ac_ext >&5
10563 ( exit $ac_status )
10564 ac_cv_func_vfork_works
=no
10566 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10571 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
10572 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
10575 if test "x$ac_cv_func_fork_works" = xcross
; then
10576 ac_cv_func_vfork_works
=$ac_cv_func_vfork
10577 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10578 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10581 if test "x$ac_cv_func_vfork_works" = xyes
; then
10583 cat >>confdefs.h
<<\_ACEOF
10584 #define HAVE_WORKING_VFORK 1
10589 cat >>confdefs.h
<<\_ACEOF
10594 if test "x$ac_cv_func_fork_works" = xyes
; then
10596 cat >>confdefs.h
<<\_ACEOF
10597 #define HAVE_WORKING_FORK 1
10602 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
10603 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
10604 if test "${ac_cv_sys_largefile_source+set}" = set; then
10605 echo $ECHO_N "(cached) $ECHO_C" >&6
10608 ac_cv_sys_largefile_source
=no
10609 cat >conftest.
$ac_ext <<_ACEOF
10612 cat confdefs.h
>>conftest.
$ac_ext
10613 cat >>conftest.
$ac_ext <<_ACEOF
10614 /* end confdefs.h. */
10624 rm -f conftest.
$ac_objext
10625 if { (ac_try
="$ac_compile"
10626 case "(($ac_try" in
10627 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10628 *) ac_try_echo=$ac_try;;
10630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10631 (eval "$ac_compile") 2>conftest.er1
10633 grep -v '^ *+' conftest.er1 >conftest.err
10635 cat conftest.err >&5
10636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637 (exit $ac_status); } &&
10638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10639 { (case "(($ac_try" in
10640 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10641 *) ac_try_echo
=$ac_try;;
10643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10644 (eval "$ac_try") 2>&5
10646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647 (exit $ac_status); }; } &&
10648 { ac_try
='test -s conftest.$ac_objext'
10649 { (case "(($ac_try" in
10650 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10651 *) ac_try_echo=$ac_try;;
10653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10654 (eval "$ac_try") 2>&5
10656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657 (exit $ac_status); }; }; then
10660 echo "$as_me: failed program was:" >&5
10661 sed 's/^/| /' conftest.$ac_ext >&5
10666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10667 cat >conftest.$ac_ext <<_ACEOF
10670 cat confdefs.h >>conftest.$ac_ext
10671 cat >>conftest.$ac_ext <<_ACEOF
10672 /* end confdefs.h. */
10673 #define _LARGEFILE_SOURCE 1
10683 rm -f conftest.$ac_objext
10684 if { (ac_try="$ac_compile"
10685 case "(($ac_try" in
10686 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10687 *) ac_try_echo
=$ac_try;;
10689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10690 (eval "$ac_compile") 2>conftest.er1
10692 grep -v '^ *+' conftest.er1
>conftest.err
10694 cat conftest.err
>&5
10695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10696 (exit $ac_status); } &&
10697 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10698 { (case "(($ac_try" in
10699 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10700 *) ac_try_echo=$ac_try;;
10702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10703 (eval "$ac_try") 2>&5
10705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10706 (exit $ac_status); }; } &&
10707 { ac_try='test -s conftest.$ac_objext'
10708 { (case "(($ac_try" in
10709 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10710 *) ac_try_echo
=$ac_try;;
10712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10713 (eval "$ac_try") 2>&5
10715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716 (exit $ac_status); }; }; then
10717 ac_cv_sys_largefile_source
=1; break
10719 echo "$as_me: failed program was:" >&5
10720 sed 's/^/| /' conftest.
$ac_ext >&5
10725 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10729 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
10730 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
10731 if test "$ac_cv_sys_largefile_source" != no
; then
10733 cat >>confdefs.h
<<_ACEOF
10734 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10740 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10741 # in glibc 2.1.3, but that breaks too many other things.
10742 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10743 { echo "$as_me:$LINENO: checking for fseeko" >&5
10744 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6; }
10745 if test "${ac_cv_func_fseeko+set}" = set; then
10746 echo $ECHO_N "(cached) $ECHO_C" >&6
10748 cat >conftest.
$ac_ext <<_ACEOF
10751 cat confdefs.h
>>conftest.
$ac_ext
10752 cat >>conftest.
$ac_ext <<_ACEOF
10753 /* end confdefs.h. */
10758 return fseeko && fseeko (stdin, 0, 0);
10763 rm -f conftest.
$ac_objext conftest
$ac_exeext
10764 if { (ac_try
="$ac_link"
10765 case "(($ac_try" in
10766 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10767 *) ac_try_echo=$ac_try;;
10769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10770 (eval "$ac_link") 2>conftest.er1
10772 grep -v '^ *+' conftest.er1 >conftest.err
10774 cat conftest.err >&5
10775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776 (exit $ac_status); } &&
10777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10778 { (case "(($ac_try" in
10779 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10780 *) ac_try_echo
=$ac_try;;
10782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10783 (eval "$ac_try") 2>&5
10785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786 (exit $ac_status); }; } &&
10787 { ac_try
='test -s conftest$ac_exeext'
10788 { (case "(($ac_try" in
10789 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10790 *) ac_try_echo=$ac_try;;
10792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10793 (eval "$ac_try") 2>&5
10795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10796 (exit $ac_status); }; }; then
10797 ac_cv_func_fseeko=yes
10799 echo "$as_me: failed program was:" >&5
10800 sed 's/^/| /' conftest.$ac_ext >&5
10802 ac_cv_func_fseeko=no
10805 rm -f conftest.err conftest.$ac_objext \
10806 conftest$ac_exeext conftest.$ac_ext
10808 { echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
10809 echo "${ECHO_T}$ac_cv_func_fseeko" >&6; }
10810 if test $ac_cv_func_fseeko = yes; then
10812 cat >>confdefs.h <<\_ACEOF
10813 #define HAVE_FSEEKO 1
10818 if test $ac_cv_c_compiler_gnu = yes; then
10819 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
10820 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
10821 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
10822 echo $ECHO_N "(cached) $ECHO_C" >&6
10824 ac_pattern="Autoconf.*'x'"
10825 cat >conftest.$ac_ext <<_ACEOF
10828 cat confdefs.h >>conftest.$ac_ext
10829 cat >>conftest.$ac_ext <<_ACEOF
10830 /* end confdefs.h. */
10834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10835 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10836 ac_cv_prog_gcc_traditional=yes
10838 ac_cv_prog_gcc_traditional=no
10843 if test $ac_cv_prog_gcc_traditional = no; then
10844 cat >conftest.$ac_ext <<_ACEOF
10847 cat confdefs.h >>conftest.$ac_ext
10848 cat >>conftest.$ac_ext <<_ACEOF
10849 /* end confdefs.h. */
10850 #include <termio.h>
10853 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10854 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10855 ac_cv_prog_gcc_traditional=yes
10861 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
10862 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
10863 if test $ac_cv_prog_gcc_traditional = yes; then
10864 CC="$CC -traditional"
10869 for ac_header in stdlib.h
10871 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
10872 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10873 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10875 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10876 echo $ECHO_N "(cached) $ECHO_C" >&6
10878 ac_res=`eval echo '${'$as_ac_Header'}'`
10879 { echo "$as_me:$LINENO: result: $ac_res" >&5
10880 echo "${ECHO_T}$ac_res" >&6; }
10882 # Is the header compilable?
10883 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10884 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10885 cat >conftest.$ac_ext <<_ACEOF
10888 cat confdefs.h >>conftest.$ac_ext
10889 cat >>conftest.$ac_ext <<_ACEOF
10890 /* end confdefs.h. */
10891 $ac_includes_default
10892 #include <$ac_header>
10894 rm -f conftest.$ac_objext
10895 if { (ac_try="$ac_compile"
10896 case "(($ac_try" in
10897 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10898 *) ac_try_echo
=$ac_try;;
10900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10901 (eval "$ac_compile") 2>conftest.er1
10903 grep -v '^ *+' conftest.er1
>conftest.err
10905 cat conftest.err
>&5
10906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10907 (exit $ac_status); } &&
10908 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10909 { (case "(($ac_try" in
10910 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10911 *) ac_try_echo=$ac_try;;
10913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10914 (eval "$ac_try") 2>&5
10916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917 (exit $ac_status); }; } &&
10918 { ac_try='test -s conftest.$ac_objext'
10919 { (case "(($ac_try" in
10920 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10921 *) ac_try_echo
=$ac_try;;
10923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10924 (eval "$ac_try") 2>&5
10926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10927 (exit $ac_status); }; }; then
10928 ac_header_compiler
=yes
10930 echo "$as_me: failed program was:" >&5
10931 sed 's/^/| /' conftest.
$ac_ext >&5
10933 ac_header_compiler
=no
10936 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10937 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10938 echo "${ECHO_T}$ac_header_compiler" >&6; }
10940 # Is the header present?
10941 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10942 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10943 cat >conftest.
$ac_ext <<_ACEOF
10946 cat confdefs.h
>>conftest.
$ac_ext
10947 cat >>conftest.
$ac_ext <<_ACEOF
10948 /* end confdefs.h. */
10949 #include <$ac_header>
10951 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10952 case "(($ac_try" in
10953 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10954 *) ac_try_echo=$ac_try;;
10956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10957 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10959 grep -v '^ *+' conftest.er1 >conftest.err
10961 cat conftest.err >&5
10962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10963 (exit $ac_status); } >/dev/null; then
10964 if test -s conftest.err; then
10965 ac_cpp_err=$ac_c_preproc_warn_flag
10966 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10973 if test -z "$ac_cpp_err"; then
10974 ac_header_preproc=yes
10976 echo "$as_me: failed program was:" >&5
10977 sed 's/^/| /' conftest.$ac_ext >&5
10979 ac_header_preproc=no
10982 rm -f conftest.err conftest.$ac_ext
10983 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10984 echo "${ECHO_T}$ac_header_preproc" >&6; }
10986 # So? What about this header?
10987 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10989 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10990 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10991 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10992 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10993 ac_header_preproc=yes
10996 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10997 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10998 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10999 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11000 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11001 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11002 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11003 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11004 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11005 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11006 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11007 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11011 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11013 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11014 echo $ECHO_N "(cached) $ECHO_C" >&6
11016 eval "$as_ac_Header=\$ac_header_preproc"
11018 ac_res=`eval echo '${'$as_ac_Header'}'`
11019 { echo "$as_me:$LINENO: result: $ac_res" >&5
11020 echo "${ECHO_T}$ac_res" >&6; }
11023 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11024 cat >>confdefs.h <<_ACEOF
11025 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11032 { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
11033 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
11034 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
11035 echo $ECHO_N "(cached) $ECHO_C" >&6
11037 if test "$cross_compiling" = yes; then
11038 ac_cv_func_malloc_0_nonnull=no
11040 cat >conftest.$ac_ext <<_ACEOF
11043 cat confdefs.h >>conftest.$ac_ext
11044 cat >>conftest.$ac_ext <<_ACEOF
11045 /* end confdefs.h. */
11046 #if STDC_HEADERS || HAVE_STDLIB_H
11047 # include <stdlib.h>
11055 return ! malloc (0);
11060 rm -f conftest$ac_exeext
11061 if { (ac_try="$ac_link"
11062 case "(($ac_try" in
11063 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11064 *) ac_try_echo
=$ac_try;;
11066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11067 (eval "$ac_link") 2>&5
11069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11071 { (case "(($ac_try" in
11072 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11073 *) ac_try_echo=$ac_try;;
11075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11076 (eval "$ac_try") 2>&5
11078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079 (exit $ac_status); }; }; then
11080 ac_cv_func_malloc_0_nonnull=yes
11082 echo "$as_me: program exited with status $ac_status" >&5
11083 echo "$as_me: failed program was:" >&5
11084 sed 's/^/| /' conftest.$ac_ext >&5
11086 ( exit $ac_status )
11087 ac_cv_func_malloc_0_nonnull=no
11089 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11094 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
11095 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
11096 if test $ac_cv_func_malloc_0_nonnull = yes; then
11098 cat >>confdefs.h <<\_ACEOF
11099 #define HAVE_MALLOC 1
11103 cat >>confdefs.h <<\_ACEOF
11104 #define HAVE_MALLOC 0
11107 case " $LIBOBJS " in
11108 *" malloc.$ac_objext "* ) ;;
11109 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
11114 cat >>confdefs.h <<\_ACEOF
11115 #define malloc rpl_malloc
11122 { echo "$as_me:$LINENO: checking for working memcmp" >&5
11123 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
11124 if test "${ac_cv_func_memcmp_working+set}" = set; then
11125 echo $ECHO_N "(cached) $ECHO_C" >&6
11127 if test "$cross_compiling" = yes; then
11128 ac_cv_func_memcmp_working=no
11130 cat >conftest.$ac_ext <<_ACEOF
11133 cat confdefs.h >>conftest.$ac_ext
11134 cat >>conftest.$ac_ext <<_ACEOF
11135 /* end confdefs.h. */
11136 $ac_includes_default
11141 /* Some versions of memcmp are not 8-bit clean. */
11142 char c0 = '\100', c1 = '\200', c2 = '\201';
11143 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
11146 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
11147 or more and with at least one buffer not starting on a 4-byte boundary.
11148 William Lewis provided this test program. */
11153 for (i = 0; i < 4; i++)
11157 strcpy (a, "--------01111111");
11158 strcpy (b, "--------10000000");
11159 if (memcmp (a, b, 16) >= 0)
11169 rm -f conftest$ac_exeext
11170 if { (ac_try="$ac_link"
11171 case "(($ac_try" in
11172 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11173 *) ac_try_echo
=$ac_try;;
11175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11176 (eval "$ac_link") 2>&5
11178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11180 { (case "(($ac_try" in
11181 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11182 *) ac_try_echo=$ac_try;;
11184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11185 (eval "$ac_try") 2>&5
11187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188 (exit $ac_status); }; }; then
11189 ac_cv_func_memcmp_working=yes
11191 echo "$as_me: program exited with status $ac_status" >&5
11192 echo "$as_me: failed program was:" >&5
11193 sed 's/^/| /' conftest.$ac_ext >&5
11195 ( exit $ac_status )
11196 ac_cv_func_memcmp_working=no
11198 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11203 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
11204 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
11205 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
11206 *" memcmp.$ac_objext "* ) ;;
11207 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
11215 for ac_header in stdlib.h sys/time.h unistd.h
11217 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11218 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11219 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11220 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11221 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11222 echo $ECHO_N "(cached) $ECHO_C" >&6
11224 ac_res=`eval echo '${'$as_ac_Header'}'`
11225 { echo "$as_me:$LINENO: result: $ac_res" >&5
11226 echo "${ECHO_T}$ac_res" >&6; }
11228 # Is the header compilable?
11229 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11230 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11231 cat >conftest.$ac_ext <<_ACEOF
11234 cat confdefs.h >>conftest.$ac_ext
11235 cat >>conftest.$ac_ext <<_ACEOF
11236 /* end confdefs.h. */
11237 $ac_includes_default
11238 #include <$ac_header>
11240 rm -f conftest.$ac_objext
11241 if { (ac_try="$ac_compile"
11242 case "(($ac_try" in
11243 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11244 *) ac_try_echo
=$ac_try;;
11246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11247 (eval "$ac_compile") 2>conftest.er1
11249 grep -v '^ *+' conftest.er1
>conftest.err
11251 cat conftest.err
>&5
11252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253 (exit $ac_status); } &&
11254 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11255 { (case "(($ac_try" in
11256 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11257 *) ac_try_echo=$ac_try;;
11259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11260 (eval "$ac_try") 2>&5
11262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11263 (exit $ac_status); }; } &&
11264 { ac_try='test -s conftest.$ac_objext'
11265 { (case "(($ac_try" in
11266 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11267 *) ac_try_echo
=$ac_try;;
11269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11270 (eval "$ac_try") 2>&5
11272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273 (exit $ac_status); }; }; then
11274 ac_header_compiler
=yes
11276 echo "$as_me: failed program was:" >&5
11277 sed 's/^/| /' conftest.
$ac_ext >&5
11279 ac_header_compiler
=no
11282 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11283 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11284 echo "${ECHO_T}$ac_header_compiler" >&6; }
11286 # Is the header present?
11287 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11288 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11289 cat >conftest.
$ac_ext <<_ACEOF
11292 cat confdefs.h
>>conftest.
$ac_ext
11293 cat >>conftest.
$ac_ext <<_ACEOF
11294 /* end confdefs.h. */
11295 #include <$ac_header>
11297 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11298 case "(($ac_try" in
11299 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11300 *) ac_try_echo=$ac_try;;
11302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11303 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11305 grep -v '^ *+' conftest.er1 >conftest.err
11307 cat conftest.err >&5
11308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309 (exit $ac_status); } >/dev/null; then
11310 if test -s conftest.err; then
11311 ac_cpp_err=$ac_c_preproc_warn_flag
11312 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11319 if test -z "$ac_cpp_err"; then
11320 ac_header_preproc=yes
11322 echo "$as_me: failed program was:" >&5
11323 sed 's/^/| /' conftest.$ac_ext >&5
11325 ac_header_preproc=no
11328 rm -f conftest.err conftest.$ac_ext
11329 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11330 echo "${ECHO_T}$ac_header_preproc" >&6; }
11332 # So? What about this header?
11333 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11335 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11336 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11337 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11338 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11339 ac_header_preproc=yes
11342 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11343 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11344 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11345 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11346 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11347 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11348 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11349 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11350 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11351 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11352 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11353 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11357 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11359 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11360 echo $ECHO_N "(cached) $ECHO_C" >&6
11362 eval "$as_ac_Header=\$ac_header_preproc"
11364 ac_res=`eval echo '${'$as_ac_Header'}'`
11365 { echo "$as_me:$LINENO: result: $ac_res" >&5
11366 echo "${ECHO_T}$ac_res" >&6; }
11369 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11370 cat >>confdefs.h <<_ACEOF
11371 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11379 for ac_func in alarm
11381 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11382 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11383 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11384 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11385 echo $ECHO_N "(cached) $ECHO_C" >&6
11387 cat >conftest.$ac_ext <<_ACEOF
11390 cat confdefs.h >>conftest.$ac_ext
11391 cat >>conftest.$ac_ext <<_ACEOF
11392 /* end confdefs.h. */
11393 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11394 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11395 #define $ac_func innocuous_$ac_func
11397 /* System header to define __stub macros and hopefully few prototypes,
11398 which can conflict with char $ac_func (); below.
11399 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11400 <limits.h> exists even on freestanding compilers. */
11403 # include <limits.h>
11405 # include <assert.h>
11410 /* Override any GCC internal prototype to avoid an error.
11411 Use char because int might match the return type of a GCC
11412 builtin and then its argument prototype would still apply. */
11417 /* The GNU C library defines this for functions which it implements
11418 to always fail with ENOSYS. Some functions are actually named
11419 something starting with __ and the normal name is an alias. */
11420 #if defined __stub_$ac_func || defined __stub___$ac_func
11427 return $ac_func ();
11432 rm -f conftest.$ac_objext conftest$ac_exeext
11433 if { (ac_try="$ac_link"
11434 case "(($ac_try" in
11435 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11436 *) ac_try_echo
=$ac_try;;
11438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11439 (eval "$ac_link") 2>conftest.er1
11441 grep -v '^ *+' conftest.er1
>conftest.err
11443 cat conftest.err
>&5
11444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445 (exit $ac_status); } &&
11446 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11447 { (case "(($ac_try" in
11448 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11449 *) ac_try_echo=$ac_try;;
11451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11452 (eval "$ac_try") 2>&5
11454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455 (exit $ac_status); }; } &&
11456 { ac_try='test -s conftest$ac_exeext'
11457 { (case "(($ac_try" in
11458 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11459 *) ac_try_echo
=$ac_try;;
11461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11462 (eval "$ac_try") 2>&5
11464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465 (exit $ac_status); }; }; then
11466 eval "$as_ac_var=yes"
11468 echo "$as_me: failed program was:" >&5
11469 sed 's/^/| /' conftest.
$ac_ext >&5
11471 eval "$as_ac_var=no"
11474 rm -f conftest.err conftest.
$ac_objext \
11475 conftest
$ac_exeext conftest.
$ac_ext
11477 ac_res
=`eval echo '${'$as_ac_var'}'`
11478 { echo "$as_me:$LINENO: result: $ac_res" >&5
11479 echo "${ECHO_T}$ac_res" >&6; }
11480 if test `eval echo '${'$as_ac_var'}'` = yes; then
11481 cat >>confdefs.h
<<_ACEOF
11482 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11488 { echo "$as_me:$LINENO: checking for working mktime" >&5
11489 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
11490 if test "${ac_cv_func_working_mktime+set}" = set; then
11491 echo $ECHO_N "(cached) $ECHO_C" >&6
11493 if test "$cross_compiling" = yes; then
11494 ac_cv_func_working_mktime
=no
11496 cat >conftest.
$ac_ext <<_ACEOF
11499 cat confdefs.h
>>conftest.
$ac_ext
11500 cat >>conftest.
$ac_ext <<_ACEOF
11501 /* end confdefs.h. */
11502 /* Test program from Paul Eggert and Tony Leneis. */
11503 #if TIME_WITH_SYS_TIME
11504 # include <sys/time.h>
11507 # if HAVE_SYS_TIME_H
11508 # include <sys/time.h>
11515 # include <stdlib.h>
11519 # include <unistd.h>
11523 # define alarm(X) /* empty */
11526 /* Work around redefinition to rpl_putenv by other config tests. */
11529 static time_t time_t_max;
11530 static time_t time_t_min;
11532 /* Values we'll use to set the TZ environment variable. */
11533 static char *tz_strings[] = {
11534 (char *) 0, "TZ=GMT0", "TZ=JST-9",
11535 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
11537 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
11539 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
11540 Based on a problem report from Andreas Jaeger. */
11542 spring_forward_gap ()
11544 /* glibc (up to about 1998-10-07) failed this test. */
11547 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11548 instead of "TZ=America/Vancouver" in order to detect the bug even
11549 on systems that don't support the Olson extension, or don't have the
11550 full zoneinfo tables installed. */
11551 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
11560 return mktime (&tm) != (time_t) -1;
11568 return ! (lt = localtime (&now)) || mktime (lt) == now;
11575 return (mktime_test1 (now)
11576 && mktime_test1 ((time_t) (time_t_max - now))
11577 && mktime_test1 ((time_t) (time_t_min + now)));
11583 /* Based on code from Ariel Faigon. */
11593 return tm.tm_mon == 2 && tm.tm_mday == 31;
11602 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
11603 now = mktime (&tm);
11604 if (now != (time_t) -1)
11606 struct tm *lt = localtime (&now);
11608 && lt->tm_year == tm.tm_year
11609 && lt->tm_mon == tm.tm_mon
11610 && lt->tm_mday == tm.tm_mday
11611 && lt->tm_hour == tm.tm_hour
11612 && lt->tm_min == tm.tm_min
11613 && lt->tm_sec == tm.tm_sec
11614 && lt->tm_yday == tm.tm_yday
11615 && lt->tm_wday == tm.tm_wday
11616 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
11617 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
11629 /* This test makes some buggy mktime implementations loop.
11630 Give up after 60 seconds; a mktime slower than that
11631 isn't worth using anyway. */
11634 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
11637 if ((time_t) -1 < 0)
11638 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
11640 delta = time_t_max / 997; /* a suitable prime number */
11641 for (i = 0; i < N_STRINGS; i++)
11644 putenv (tz_strings[i]);
11646 for (t = 0; t <= time_t_max - delta; t += delta)
11647 if (! mktime_test (t))
11649 if (! (mktime_test ((time_t) 1)
11650 && mktime_test ((time_t) (60 * 60))
11651 && mktime_test ((time_t) (60 * 60 * 24))))
11654 for (j = 1; 0 < j; j *= 2)
11655 if (! bigtime_test (j))
11657 if (! bigtime_test (j - 1))
11660 return ! (irix_6_4_bug () && spring_forward_gap ());
11663 rm -f conftest
$ac_exeext
11664 if { (ac_try
="$ac_link"
11665 case "(($ac_try" in
11666 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11667 *) ac_try_echo=$ac_try;;
11669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11670 (eval "$ac_link") 2>&5
11672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11674 { (case "(($ac_try" in
11675 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11676 *) ac_try_echo
=$ac_try;;
11678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11679 (eval "$ac_try") 2>&5
11681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682 (exit $ac_status); }; }; then
11683 ac_cv_func_working_mktime
=yes
11685 echo "$as_me: program exited with status $ac_status" >&5
11686 echo "$as_me: failed program was:" >&5
11687 sed 's/^/| /' conftest.
$ac_ext >&5
11689 ( exit $ac_status )
11690 ac_cv_func_working_mktime
=no
11692 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11697 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
11698 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
11699 if test $ac_cv_func_working_mktime = no
; then
11700 case " $LIBOBJS " in
11701 *" mktime.$ac_objext "* ) ;;
11702 *) LIBOBJS
="$LIBOBJS mktime.$ac_objext"
11710 for ac_header
in stdlib.h unistd.h
11712 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11713 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11714 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11715 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11716 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11717 echo $ECHO_N "(cached) $ECHO_C" >&6
11719 ac_res
=`eval echo '${'$as_ac_Header'}'`
11720 { echo "$as_me:$LINENO: result: $ac_res" >&5
11721 echo "${ECHO_T}$ac_res" >&6; }
11723 # Is the header compilable?
11724 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11725 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11726 cat >conftest.
$ac_ext <<_ACEOF
11729 cat confdefs.h
>>conftest.
$ac_ext
11730 cat >>conftest.
$ac_ext <<_ACEOF
11731 /* end confdefs.h. */
11732 $ac_includes_default
11733 #include <$ac_header>
11735 rm -f conftest.
$ac_objext
11736 if { (ac_try
="$ac_compile"
11737 case "(($ac_try" in
11738 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11739 *) ac_try_echo=$ac_try;;
11741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11742 (eval "$ac_compile") 2>conftest.er1
11744 grep -v '^ *+' conftest.er1 >conftest.err
11746 cat conftest.err >&5
11747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748 (exit $ac_status); } &&
11749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11750 { (case "(($ac_try" in
11751 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11752 *) ac_try_echo
=$ac_try;;
11754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11755 (eval "$ac_try") 2>&5
11757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758 (exit $ac_status); }; } &&
11759 { ac_try
='test -s conftest.$ac_objext'
11760 { (case "(($ac_try" in
11761 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11762 *) ac_try_echo=$ac_try;;
11764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11765 (eval "$ac_try") 2>&5
11767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768 (exit $ac_status); }; }; then
11769 ac_header_compiler=yes
11771 echo "$as_me: failed program was:" >&5
11772 sed 's/^/| /' conftest.$ac_ext >&5
11774 ac_header_compiler=no
11777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11778 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11779 echo "${ECHO_T}$ac_header_compiler" >&6; }
11781 # Is the header present?
11782 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11783 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11784 cat >conftest.$ac_ext <<_ACEOF
11787 cat confdefs.h >>conftest.$ac_ext
11788 cat >>conftest.$ac_ext <<_ACEOF
11789 /* end confdefs.h. */
11790 #include <$ac_header>
11792 if { (ac_try="$ac_cpp conftest.$ac_ext"
11793 case "(($ac_try" in
11794 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11795 *) ac_try_echo
=$ac_try;;
11797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11798 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11800 grep -v '^ *+' conftest.er1
>conftest.err
11802 cat conftest.err
>&5
11803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804 (exit $ac_status); } >/dev
/null
; then
11805 if test -s conftest.err
; then
11806 ac_cpp_err
=$ac_c_preproc_warn_flag
11807 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11814 if test -z "$ac_cpp_err"; then
11815 ac_header_preproc
=yes
11817 echo "$as_me: failed program was:" >&5
11818 sed 's/^/| /' conftest.
$ac_ext >&5
11820 ac_header_preproc
=no
11823 rm -f conftest.err conftest.
$ac_ext
11824 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11825 echo "${ECHO_T}$ac_header_preproc" >&6; }
11827 # So? What about this header?
11828 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11830 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11831 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11832 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11833 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11834 ac_header_preproc
=yes
11837 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11838 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11839 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11840 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11841 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11842 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11843 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11844 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11845 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11846 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11847 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11848 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11852 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11853 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11854 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11855 echo $ECHO_N "(cached) $ECHO_C" >&6
11857 eval "$as_ac_Header=\$ac_header_preproc"
11859 ac_res
=`eval echo '${'$as_ac_Header'}'`
11860 { echo "$as_me:$LINENO: result: $ac_res" >&5
11861 echo "${ECHO_T}$ac_res" >&6; }
11864 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11865 cat >>confdefs.h
<<_ACEOF
11866 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11874 for ac_func
in getpagesize
11876 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11877 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11878 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11879 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11880 echo $ECHO_N "(cached) $ECHO_C" >&6
11882 cat >conftest.
$ac_ext <<_ACEOF
11885 cat confdefs.h
>>conftest.
$ac_ext
11886 cat >>conftest.
$ac_ext <<_ACEOF
11887 /* end confdefs.h. */
11888 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11890 #define $ac_func innocuous_$ac_func
11892 /* System header to define __stub macros and hopefully few prototypes,
11893 which can conflict with char $ac_func (); below.
11894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11895 <limits.h> exists even on freestanding compilers. */
11898 # include <limits.h>
11900 # include <assert.h>
11905 /* Override any GCC internal prototype to avoid an error.
11906 Use char because int might match the return type of a GCC
11907 builtin and then its argument prototype would still apply. */
11912 /* The GNU C library defines this for functions which it implements
11913 to always fail with ENOSYS. Some functions are actually named
11914 something starting with __ and the normal name is an alias. */
11915 #if defined __stub_$ac_func || defined __stub___$ac_func
11922 return $ac_func ();
11927 rm -f conftest.
$ac_objext conftest
$ac_exeext
11928 if { (ac_try
="$ac_link"
11929 case "(($ac_try" in
11930 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11931 *) ac_try_echo=$ac_try;;
11933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11934 (eval "$ac_link") 2>conftest.er1
11936 grep -v '^ *+' conftest.er1 >conftest.err
11938 cat conftest.err >&5
11939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940 (exit $ac_status); } &&
11941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11942 { (case "(($ac_try" in
11943 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11944 *) ac_try_echo
=$ac_try;;
11946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11947 (eval "$ac_try") 2>&5
11949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950 (exit $ac_status); }; } &&
11951 { ac_try
='test -s conftest$ac_exeext'
11952 { (case "(($ac_try" in
11953 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11954 *) ac_try_echo=$ac_try;;
11956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11957 (eval "$ac_try") 2>&5
11959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960 (exit $ac_status); }; }; then
11961 eval "$as_ac_var=yes"
11963 echo "$as_me: failed program was:" >&5
11964 sed 's/^/| /' conftest.$ac_ext >&5
11966 eval "$as_ac_var=no"
11969 rm -f conftest.err conftest.$ac_objext \
11970 conftest$ac_exeext conftest.$ac_ext
11972 ac_res=`eval echo '${'$as_ac_var'}'`
11973 { echo "$as_me:$LINENO: result: $ac_res" >&5
11974 echo "${ECHO_T}$ac_res" >&6; }
11975 if test `eval echo '${'$as_ac_var'}'` = yes; then
11976 cat >>confdefs.h <<_ACEOF
11977 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11983 { echo "$as_me:$LINENO: checking for working mmap" >&5
11984 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
11985 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
11986 echo $ECHO_N "(cached) $ECHO_C" >&6
11988 if test "$cross_compiling" = yes; then
11989 ac_cv_func_mmap_fixed_mapped=no
11991 cat >conftest.$ac_ext <<_ACEOF
11994 cat confdefs.h >>conftest.$ac_ext
11995 cat >>conftest.$ac_ext <<_ACEOF
11996 /* end confdefs.h. */
11997 $ac_includes_default
11998 /* malloc might have been renamed as rpl_malloc. */
12001 /* Thanks to Mike Haertel and Jim Avera for this test.
12002 Here is a matrix of mmap possibilities:
12003 mmap private not fixed
12004 mmap private fixed at somewhere currently unmapped
12005 mmap private fixed at somewhere already mapped
12006 mmap shared not fixed
12007 mmap shared fixed at somewhere currently unmapped
12008 mmap shared fixed at somewhere already mapped
12009 For private mappings, we should verify that changes cannot be read()
12010 back from the file, nor mmap's back from the file at a different
12011 address. (There have been systems where private was not correctly
12012 implemented like the infamous i386 svr4.0, and systems where the
12013 VM page cache was not coherent with the file system buffer cache
12014 like early versions of FreeBSD and possibly contemporary NetBSD.)
12015 For shared mappings, we should conversely verify that changes get
12016 propagated back to all the places they're supposed to be.
12018 Grep wants private fixed already mapped.
12019 The main things grep needs to know about mmap are:
12020 * does it exist and is it safe to write into the mmap'd area
12021 * how to use it (BSD variants) */
12024 #include <sys/mman.h>
12026 #if !STDC_HEADERS && !HAVE_STDLIB_H
12030 /* This mess was copied from the GNU getpagesize.h. */
12031 #if !HAVE_GETPAGESIZE
12032 /* Assume that all systems that can run configure have sys/param.h. */
12033 # if !HAVE_SYS_PARAM_H
12034 # define HAVE_SYS_PARAM_H 1
12037 # ifdef _SC_PAGESIZE
12038 # define getpagesize() sysconf(_SC_PAGESIZE)
12039 # else /* no _SC_PAGESIZE */
12040 # if HAVE_SYS_PARAM_H
12041 # include <sys/param.h>
12042 # ifdef EXEC_PAGESIZE
12043 # define getpagesize() EXEC_PAGESIZE
12044 # else /* no EXEC_PAGESIZE */
12046 # define getpagesize() NBPG * CLSIZE
12049 # endif /* no CLSIZE */
12050 # else /* no NBPG */
12052 # define getpagesize() NBPC
12053 # else /* no NBPC */
12055 # define getpagesize() PAGESIZE
12056 # endif /* PAGESIZE */
12057 # endif /* no NBPC */
12058 # endif /* no NBPG */
12059 # endif /* no EXEC_PAGESIZE */
12060 # else /* no HAVE_SYS_PARAM_H */
12061 # define getpagesize() 8192 /* punt totally */
12062 # endif /* no HAVE_SYS_PARAM_H */
12063 # endif /* no _SC_PAGESIZE */
12065 #endif /* no HAVE_GETPAGESIZE */
12070 char *data, *data2, *data3;
12074 pagesize = getpagesize ();
12076 /* First, make a file with some known garbage in it. */
12077 data = (char *) malloc (pagesize);
12080 for (i = 0; i < pagesize; ++i)
12081 *(data + i) = rand ();
12083 fd = creat ("conftest.mmap", 0600);
12086 if (write (fd, data, pagesize) != pagesize)
12090 /* Next, try to mmap the file at a fixed address which already has
12091 something else allocated at it. If we can, also make sure that
12092 we see the same garbage. */
12093 fd = open ("conftest.mmap", O_RDWR);
12096 data2 = (char *) malloc (2 * pagesize);
12099 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
12100 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12101 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12103 for (i = 0; i < pagesize; ++i)
12104 if (*(data + i) != *(data2 + i))
12107 /* Finally, make sure that changes to the mapped area do not
12108 percolate back to the file as seen by read(). (This is a bug on
12109 some variants of i386 svr4.0.) */
12110 for (i = 0; i < pagesize; ++i)
12111 *(data2 + i) = *(data2 + i) + 1;
12112 data3 = (char *) malloc (pagesize);
12115 if (read (fd, data3, pagesize) != pagesize)
12117 for (i = 0; i < pagesize; ++i)
12118 if (*(data + i) != *(data3 + i))
12124 rm -f conftest$ac_exeext
12125 if { (ac_try="$ac_link"
12126 case "(($ac_try" in
12127 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12128 *) ac_try_echo
=$ac_try;;
12130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12131 (eval "$ac_link") 2>&5
12133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12135 { (case "(($ac_try" in
12136 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12137 *) ac_try_echo=$ac_try;;
12139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12140 (eval "$ac_try") 2>&5
12142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143 (exit $ac_status); }; }; then
12144 ac_cv_func_mmap_fixed_mapped=yes
12146 echo "$as_me: program exited with status $ac_status" >&5
12147 echo "$as_me: failed program was:" >&5
12148 sed 's/^/| /' conftest.$ac_ext >&5
12150 ( exit $ac_status )
12151 ac_cv_func_mmap_fixed_mapped=no
12153 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12158 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
12159 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
12160 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12162 cat >>confdefs.h <<\_ACEOF
12163 #define HAVE_MMAP 1
12167 rm -f conftest.mmap
12170 for ac_header in stdlib.h
12172 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
12173 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12174 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12175 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12176 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12177 echo $ECHO_N "(cached) $ECHO_C" >&6
12179 ac_res=`eval echo '${'$as_ac_Header'}'`
12180 { echo "$as_me:$LINENO: result: $ac_res" >&5
12181 echo "${ECHO_T}$ac_res" >&6; }
12183 # Is the header compilable?
12184 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12185 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12186 cat >conftest.$ac_ext <<_ACEOF
12189 cat confdefs.h >>conftest.$ac_ext
12190 cat >>conftest.$ac_ext <<_ACEOF
12191 /* end confdefs.h. */
12192 $ac_includes_default
12193 #include <$ac_header>
12195 rm -f conftest.$ac_objext
12196 if { (ac_try="$ac_compile"
12197 case "(($ac_try" in
12198 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12199 *) ac_try_echo
=$ac_try;;
12201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12202 (eval "$ac_compile") 2>conftest.er1
12204 grep -v '^ *+' conftest.er1
>conftest.err
12206 cat conftest.err
>&5
12207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208 (exit $ac_status); } &&
12209 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12210 { (case "(($ac_try" in
12211 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12212 *) ac_try_echo=$ac_try;;
12214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12215 (eval "$ac_try") 2>&5
12217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218 (exit $ac_status); }; } &&
12219 { ac_try='test -s conftest.$ac_objext'
12220 { (case "(($ac_try" in
12221 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12222 *) ac_try_echo
=$ac_try;;
12224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12225 (eval "$ac_try") 2>&5
12227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228 (exit $ac_status); }; }; then
12229 ac_header_compiler
=yes
12231 echo "$as_me: failed program was:" >&5
12232 sed 's/^/| /' conftest.
$ac_ext >&5
12234 ac_header_compiler
=no
12237 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12238 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12239 echo "${ECHO_T}$ac_header_compiler" >&6; }
12241 # Is the header present?
12242 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12243 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12244 cat >conftest.
$ac_ext <<_ACEOF
12247 cat confdefs.h
>>conftest.
$ac_ext
12248 cat >>conftest.
$ac_ext <<_ACEOF
12249 /* end confdefs.h. */
12250 #include <$ac_header>
12252 if { (ac_try
="$ac_cpp conftest.$ac_ext"
12253 case "(($ac_try" in
12254 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12255 *) ac_try_echo=$ac_try;;
12257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12258 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12260 grep -v '^ *+' conftest.er1 >conftest.err
12262 cat conftest.err >&5
12263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12264 (exit $ac_status); } >/dev/null; then
12265 if test -s conftest.err; then
12266 ac_cpp_err=$ac_c_preproc_warn_flag
12267 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12274 if test -z "$ac_cpp_err"; then
12275 ac_header_preproc=yes
12277 echo "$as_me: failed program was:" >&5
12278 sed 's/^/| /' conftest.$ac_ext >&5
12280 ac_header_preproc=no
12283 rm -f conftest.err conftest.$ac_ext
12284 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12285 echo "${ECHO_T}$ac_header_preproc" >&6; }
12287 # So? What about this header?
12288 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12290 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12291 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12292 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12293 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12294 ac_header_preproc=yes
12297 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12298 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12299 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12300 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12301 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12302 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12303 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12304 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12305 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12306 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12307 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12308 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12312 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12313 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12314 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12315 echo $ECHO_N "(cached) $ECHO_C" >&6
12317 eval "$as_ac_Header=\$ac_header_preproc"
12319 ac_res=`eval echo '${'$as_ac_Header'}'`
12320 { echo "$as_me:$LINENO: result: $ac_res" >&5
12321 echo "${ECHO_T}$ac_res" >&6; }
12324 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12325 cat >>confdefs.h <<_ACEOF
12326 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
12333 { echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
12334 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
12335 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
12336 echo $ECHO_N "(cached) $ECHO_C" >&6
12338 if test "$cross_compiling" = yes; then
12339 ac_cv_func_realloc_0_nonnull=no
12341 cat >conftest.$ac_ext <<_ACEOF
12344 cat confdefs.h >>conftest.$ac_ext
12345 cat >>conftest.$ac_ext <<_ACEOF
12346 /* end confdefs.h. */
12347 #if STDC_HEADERS || HAVE_STDLIB_H
12348 # include <stdlib.h>
12356 return ! realloc (0, 0);
12361 rm -f conftest$ac_exeext
12362 if { (ac_try="$ac_link"
12363 case "(($ac_try" in
12364 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12365 *) ac_try_echo
=$ac_try;;
12367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12368 (eval "$ac_link") 2>&5
12370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12372 { (case "(($ac_try" in
12373 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12374 *) ac_try_echo=$ac_try;;
12376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12377 (eval "$ac_try") 2>&5
12379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380 (exit $ac_status); }; }; then
12381 ac_cv_func_realloc_0_nonnull=yes
12383 echo "$as_me: program exited with status $ac_status" >&5
12384 echo "$as_me: failed program was:" >&5
12385 sed 's/^/| /' conftest.$ac_ext >&5
12387 ( exit $ac_status )
12388 ac_cv_func_realloc_0_nonnull=no
12390 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12395 { echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
12396 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
12397 if test $ac_cv_func_realloc_0_nonnull = yes; then
12399 cat >>confdefs.h <<\_ACEOF
12400 #define HAVE_REALLOC 1
12404 cat >>confdefs.h <<\_ACEOF
12405 #define HAVE_REALLOC 0
12408 case " $LIBOBJS " in
12409 *" realloc.$ac_objext "* ) ;;
12410 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
12415 cat >>confdefs.h <<\_ACEOF
12416 #define realloc rpl_realloc
12425 for ac_header in sys/select.h sys/socket.h
12427 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
12428 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12429 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12430 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12431 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12432 echo $ECHO_N "(cached) $ECHO_C" >&6
12434 ac_res=`eval echo '${'$as_ac_Header'}'`
12435 { echo "$as_me:$LINENO: result: $ac_res" >&5
12436 echo "${ECHO_T}$ac_res" >&6; }
12438 # Is the header compilable?
12439 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12440 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12441 cat >conftest.$ac_ext <<_ACEOF
12444 cat confdefs.h >>conftest.$ac_ext
12445 cat >>conftest.$ac_ext <<_ACEOF
12446 /* end confdefs.h. */
12447 $ac_includes_default
12448 #include <$ac_header>
12450 rm -f conftest.$ac_objext
12451 if { (ac_try="$ac_compile"
12452 case "(($ac_try" in
12453 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12454 *) ac_try_echo
=$ac_try;;
12456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12457 (eval "$ac_compile") 2>conftest.er1
12459 grep -v '^ *+' conftest.er1
>conftest.err
12461 cat conftest.err
>&5
12462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12463 (exit $ac_status); } &&
12464 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12465 { (case "(($ac_try" in
12466 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12467 *) ac_try_echo=$ac_try;;
12469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12470 (eval "$ac_try") 2>&5
12472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473 (exit $ac_status); }; } &&
12474 { ac_try='test -s conftest.$ac_objext'
12475 { (case "(($ac_try" in
12476 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12477 *) ac_try_echo
=$ac_try;;
12479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12480 (eval "$ac_try") 2>&5
12482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12483 (exit $ac_status); }; }; then
12484 ac_header_compiler
=yes
12486 echo "$as_me: failed program was:" >&5
12487 sed 's/^/| /' conftest.
$ac_ext >&5
12489 ac_header_compiler
=no
12492 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12493 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12494 echo "${ECHO_T}$ac_header_compiler" >&6; }
12496 # Is the header present?
12497 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12498 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12499 cat >conftest.
$ac_ext <<_ACEOF
12502 cat confdefs.h
>>conftest.
$ac_ext
12503 cat >>conftest.
$ac_ext <<_ACEOF
12504 /* end confdefs.h. */
12505 #include <$ac_header>
12507 if { (ac_try
="$ac_cpp conftest.$ac_ext"
12508 case "(($ac_try" in
12509 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12510 *) ac_try_echo=$ac_try;;
12512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12513 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12515 grep -v '^ *+' conftest.er1 >conftest.err
12517 cat conftest.err >&5
12518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519 (exit $ac_status); } >/dev/null; then
12520 if test -s conftest.err; then
12521 ac_cpp_err=$ac_c_preproc_warn_flag
12522 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12529 if test -z "$ac_cpp_err"; then
12530 ac_header_preproc=yes
12532 echo "$as_me: failed program was:" >&5
12533 sed 's/^/| /' conftest.$ac_ext >&5
12535 ac_header_preproc=no
12538 rm -f conftest.err conftest.$ac_ext
12539 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12540 echo "${ECHO_T}$ac_header_preproc" >&6; }
12542 # So? What about this header?
12543 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12545 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12546 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12547 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12548 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12549 ac_header_preproc=yes
12552 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12553 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12554 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12555 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12556 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12557 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12558 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12559 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12560 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12561 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12562 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12563 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12567 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12569 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12570 echo $ECHO_N "(cached) $ECHO_C" >&6
12572 eval "$as_ac_Header=\$ac_header_preproc"
12574 ac_res=`eval echo '${'$as_ac_Header'}'`
12575 { echo "$as_me:$LINENO: result: $ac_res" >&5
12576 echo "${ECHO_T}$ac_res" >&6; }
12579 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12580 cat >>confdefs.h <<_ACEOF
12581 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
12588 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
12589 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
12590 if test "${ac_cv_func_select_args+set}" = set; then
12591 echo $ECHO_N "(cached) $ECHO_C" >&6
12593 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
12594 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
12595 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
12596 cat >conftest.$ac_ext <<_ACEOF
12599 cat confdefs.h >>conftest.$ac_ext
12600 cat >>conftest.$ac_ext <<_ACEOF
12601 /* end confdefs.h. */
12602 $ac_includes_default
12603 #if HAVE_SYS_SELECT_H
12604 # include <sys/select.h>
12606 #if HAVE_SYS_SOCKET_H
12607 # include <sys/socket.h>
12613 extern int select ($ac_arg1,
12614 $ac_arg234, $ac_arg234, $ac_arg234,
12620 rm -f conftest.$ac_objext
12621 if { (ac_try="$ac_compile"
12622 case "(($ac_try" in
12623 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12624 *) ac_try_echo
=$ac_try;;
12626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12627 (eval "$ac_compile") 2>conftest.er1
12629 grep -v '^ *+' conftest.er1
>conftest.err
12631 cat conftest.err
>&5
12632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633 (exit $ac_status); } &&
12634 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12635 { (case "(($ac_try" in
12636 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12637 *) ac_try_echo=$ac_try;;
12639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12640 (eval "$ac_try") 2>&5
12642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643 (exit $ac_status); }; } &&
12644 { ac_try='test -s conftest.$ac_objext'
12645 { (case "(($ac_try" in
12646 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12647 *) ac_try_echo
=$ac_try;;
12649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12650 (eval "$ac_try") 2>&5
12652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653 (exit $ac_status); }; }; then
12654 ac_cv_func_select_args
="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
12656 echo "$as_me: failed program was:" >&5
12657 sed 's/^/| /' conftest.
$ac_ext >&5
12662 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12666 # Provide a safe default value.
12667 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
12670 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
12671 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
12672 ac_save_IFS
=$IFS; IFS
=','
12673 set dummy
`echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
12677 cat >>confdefs.h
<<_ACEOF
12678 #define SELECT_TYPE_ARG1 $1
12682 cat >>confdefs.h
<<_ACEOF
12683 #define SELECT_TYPE_ARG234 ($2)
12687 cat >>confdefs.h
<<_ACEOF
12688 #define SELECT_TYPE_ARG5 ($3)
12693 { echo "$as_me:$LINENO: checking for function prototypes" >&5
12694 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
12695 if test "$ac_cv_prog_cc_c89" != no
; then
12696 { echo "$as_me:$LINENO: result: yes" >&5
12697 echo "${ECHO_T}yes" >&6; }
12699 cat >>confdefs.h
<<\_ACEOF
12700 #define PROTOTYPES 1
12704 cat >>confdefs.h
<<\_ACEOF
12705 #define __PROTOTYPES 1
12709 { echo "$as_me:$LINENO: result: no" >&5
12710 echo "${ECHO_T}no" >&6; }
12713 { echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
12714 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6; }
12715 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
12716 echo $ECHO_N "(cached) $ECHO_C" >&6
12718 ac_cv_func_setvbuf_reversed
=no
12719 cat >conftest.
$ac_ext <<_ACEOF
12722 cat confdefs.h
>>conftest.
$ac_ext
12723 cat >>conftest.
$ac_ext <<_ACEOF
12724 /* end confdefs.h. */
12727 int (setvbuf) (FILE *, int, char *, size_t);
12732 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
12737 rm -f conftest.
$ac_objext conftest
$ac_exeext
12738 if { (ac_try
="$ac_link"
12739 case "(($ac_try" in
12740 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12741 *) ac_try_echo=$ac_try;;
12743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12744 (eval "$ac_link") 2>conftest.er1
12746 grep -v '^ *+' conftest.er1 >conftest.err
12748 cat conftest.err >&5
12749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750 (exit $ac_status); } &&
12751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12752 { (case "(($ac_try" in
12753 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12754 *) ac_try_echo
=$ac_try;;
12756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12757 (eval "$ac_try") 2>&5
12759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760 (exit $ac_status); }; } &&
12761 { ac_try
='test -s conftest$ac_exeext'
12762 { (case "(($ac_try" in
12763 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12764 *) ac_try_echo=$ac_try;;
12766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12767 (eval "$ac_try") 2>&5
12769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12770 (exit $ac_status); }; }; then
12771 cat >conftest.$ac_ext <<_ACEOF
12774 cat confdefs.h >>conftest.$ac_ext
12775 cat >>conftest.$ac_ext <<_ACEOF
12776 /* end confdefs.h. */
12779 int (setvbuf) (FILE *, int, char *, size_t);
12784 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
12789 rm -f conftest.$ac_objext conftest$ac_exeext
12790 if { (ac_try="$ac_link"
12791 case "(($ac_try" in
12792 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12793 *) ac_try_echo
=$ac_try;;
12795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12796 (eval "$ac_link") 2>conftest.er1
12798 grep -v '^ *+' conftest.er1
>conftest.err
12800 cat conftest.err
>&5
12801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12802 (exit $ac_status); } &&
12803 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12804 { (case "(($ac_try" in
12805 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12806 *) ac_try_echo=$ac_try;;
12808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12809 (eval "$ac_try") 2>&5
12811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12812 (exit $ac_status); }; } &&
12813 { ac_try='test -s conftest$ac_exeext'
12814 { (case "(($ac_try" in
12815 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12816 *) ac_try_echo
=$ac_try;;
12818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12819 (eval "$ac_try") 2>&5
12821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822 (exit $ac_status); }; }; then
12823 # It compiles and links either way, so it must not be declared
12824 # with a prototype and most likely this is a K&R C compiler.
12826 if test "$cross_compiling" = yes; then
12827 : # Assume setvbuf is not reversed when cross-compiling.
12829 cat >conftest.
$ac_ext <<_ACEOF
12832 cat confdefs.h
>>conftest.
$ac_ext
12833 cat >>conftest.
$ac_ext <<_ACEOF
12834 /* end confdefs.h. */
12835 $ac_includes_default
12839 /* This call has the arguments reversed.
12840 A reversed system may check and see that the address of buf
12841 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
12843 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
12846 return 0; /* Non-reversed systems SEGV here. */
12851 rm -f conftest
$ac_exeext
12852 if { (ac_try
="$ac_link"
12853 case "(($ac_try" in
12854 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12855 *) ac_try_echo=$ac_try;;
12857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12858 (eval "$ac_link") 2>&5
12860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12861 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12862 { (case "(($ac_try" in
12863 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12864 *) ac_try_echo
=$ac_try;;
12866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12867 (eval "$ac_try") 2>&5
12869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12870 (exit $ac_status); }; }; then
12871 ac_cv_func_setvbuf_reversed
=yes
12873 echo "$as_me: program exited with status $ac_status" >&5
12874 echo "$as_me: failed program was:" >&5
12875 sed 's/^/| /' conftest.
$ac_ext >&5
12878 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12882 ac_cv_func_setvbuf_reversed
=yes
12884 echo "$as_me: failed program was:" >&5
12885 sed 's/^/| /' conftest.
$ac_ext >&5
12890 rm -f conftest.err conftest.
$ac_objext \
12891 conftest
$ac_exeext conftest.
$ac_ext
12893 echo "$as_me: failed program was:" >&5
12894 sed 's/^/| /' conftest.
$ac_ext >&5
12899 rm -f conftest.err conftest.
$ac_objext \
12900 conftest
$ac_exeext conftest.
$ac_ext
12902 { echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
12903 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6; }
12904 if test $ac_cv_func_setvbuf_reversed = yes; then
12906 cat >>confdefs.h
<<\_ACEOF
12907 #define SETVBUF_REVERSED 1
12912 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12913 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
12914 if test "${ac_cv_type_signal+set}" = set; then
12915 echo $ECHO_N "(cached) $ECHO_C" >&6
12917 cat >conftest.
$ac_ext <<_ACEOF
12920 cat confdefs.h
>>conftest.
$ac_ext
12921 cat >>conftest.
$ac_ext <<_ACEOF
12922 /* end confdefs.h. */
12923 #include <sys/types.h>
12924 #include <signal.h>
12929 return *(signal (0, 0)) (0) == 1;
12934 rm -f conftest.
$ac_objext
12935 if { (ac_try
="$ac_compile"
12936 case "(($ac_try" in
12937 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12938 *) ac_try_echo=$ac_try;;
12940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12941 (eval "$ac_compile") 2>conftest.er1
12943 grep -v '^ *+' conftest.er1 >conftest.err
12945 cat conftest.err >&5
12946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12947 (exit $ac_status); } &&
12948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12949 { (case "(($ac_try" in
12950 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12951 *) ac_try_echo
=$ac_try;;
12953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12954 (eval "$ac_try") 2>&5
12956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12957 (exit $ac_status); }; } &&
12958 { ac_try
='test -s conftest.$ac_objext'
12959 { (case "(($ac_try" in
12960 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12961 *) ac_try_echo=$ac_try;;
12963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12964 (eval "$ac_try") 2>&5
12966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12967 (exit $ac_status); }; }; then
12968 ac_cv_type_signal=int
12970 echo "$as_me: failed program was:" >&5
12971 sed 's/^/| /' conftest.$ac_ext >&5
12973 ac_cv_type_signal=void
12976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12978 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12979 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
12981 cat >>confdefs.h <<_ACEOF
12982 #define RETSIGTYPE $ac_cv_type_signal
12986 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
12987 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
12988 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
12989 echo $ECHO_N "(cached) $ECHO_C" >&6
12991 rm -f conftest.sym conftest.file
12992 echo >conftest.file
12993 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
12994 if test "$cross_compiling" = yes; then
12995 ac_cv_func_lstat_dereferences_slashed_symlink=no
12997 cat >conftest.$ac_ext <<_ACEOF
13000 cat confdefs.h >>conftest.$ac_ext
13001 cat >>conftest.$ac_ext <<_ACEOF
13002 /* end confdefs.h. */
13003 $ac_includes_default
13008 /* Linux will dereference the symlink and fail.
13009 That is better in the sense that it means we will not
13010 have to compile and use the lstat wrapper. */
13011 return lstat ("conftest.sym/", &sbuf) == 0;
13016 rm -f conftest$ac_exeext
13017 if { (ac_try="$ac_link"
13018 case "(($ac_try" in
13019 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13020 *) ac_try_echo
=$ac_try;;
13022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13023 (eval "$ac_link") 2>&5
13025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13026 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13027 { (case "(($ac_try" in
13028 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13029 *) ac_try_echo=$ac_try;;
13031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13032 (eval "$ac_try") 2>&5
13034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13035 (exit $ac_status); }; }; then
13036 ac_cv_func_lstat_dereferences_slashed_symlink=yes
13038 echo "$as_me: program exited with status $ac_status" >&5
13039 echo "$as_me: failed program was:" >&5
13040 sed 's/^/| /' conftest.$ac_ext >&5
13042 ( exit $ac_status )
13043 ac_cv_func_lstat_dereferences_slashed_symlink=no
13045 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13050 # If the `ln -s' command failed, then we probably don't even
13051 # have an lstat function.
13052 ac_cv_func_lstat_dereferences_slashed_symlink
=no
13054 rm -f conftest.sym conftest.
file
13057 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
13058 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
13060 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
13062 cat >>confdefs.h
<<_ACEOF
13063 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
13067 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no
; then
13068 case " $LIBOBJS " in
13069 *" lstat.$ac_objext "* ) ;;
13070 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext"
13076 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
13077 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
13078 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
13079 echo $ECHO_N "(cached) $ECHO_C" >&6
13081 if test "$cross_compiling" = yes; then
13082 ac_cv_func_stat_empty_string_bug
=yes
13084 cat >conftest.
$ac_ext <<_ACEOF
13087 cat confdefs.h
>>conftest.
$ac_ext
13088 cat >>conftest.
$ac_ext <<_ACEOF
13089 /* end confdefs.h. */
13090 $ac_includes_default
13095 return stat ("", &sbuf) == 0;
13100 rm -f conftest
$ac_exeext
13101 if { (ac_try
="$ac_link"
13102 case "(($ac_try" in
13103 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13104 *) ac_try_echo=$ac_try;;
13106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13107 (eval "$ac_link") 2>&5
13109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13111 { (case "(($ac_try" in
13112 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13113 *) ac_try_echo
=$ac_try;;
13115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13116 (eval "$ac_try") 2>&5
13118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13119 (exit $ac_status); }; }; then
13120 ac_cv_func_stat_empty_string_bug
=no
13122 echo "$as_me: program exited with status $ac_status" >&5
13123 echo "$as_me: failed program was:" >&5
13124 sed 's/^/| /' conftest.
$ac_ext >&5
13126 ( exit $ac_status )
13127 ac_cv_func_stat_empty_string_bug
=yes
13129 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13134 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
13135 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
13136 if test $ac_cv_func_stat_empty_string_bug = yes; then
13137 case " $LIBOBJS " in
13138 *" stat.$ac_objext "* ) ;;
13139 *) LIBOBJS
="$LIBOBJS stat.$ac_objext"
13144 cat >>confdefs.h
<<_ACEOF
13145 #define HAVE_STAT_EMPTY_STRING_BUG 1
13150 { echo "$as_me:$LINENO: checking for working strcoll" >&5
13151 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6; }
13152 if test "${ac_cv_func_strcoll_works+set}" = set; then
13153 echo $ECHO_N "(cached) $ECHO_C" >&6
13155 if test "$cross_compiling" = yes; then
13156 ac_cv_func_strcoll_works
=no
13158 cat >conftest.
$ac_ext <<_ACEOF
13161 cat confdefs.h
>>conftest.
$ac_ext
13162 cat >>conftest.
$ac_ext <<_ACEOF
13163 /* end confdefs.h. */
13164 $ac_includes_default
13168 return (strcoll ("abc", "def") >= 0 ||
13169 strcoll ("ABC", "DEF") >= 0 ||
13170 strcoll ("123", "456") >= 0)
13175 rm -f conftest
$ac_exeext
13176 if { (ac_try
="$ac_link"
13177 case "(($ac_try" in
13178 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13179 *) ac_try_echo=$ac_try;;
13181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13182 (eval "$ac_link") 2>&5
13184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13186 { (case "(($ac_try" in
13187 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13188 *) ac_try_echo
=$ac_try;;
13190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13191 (eval "$ac_try") 2>&5
13193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13194 (exit $ac_status); }; }; then
13195 ac_cv_func_strcoll_works
=yes
13197 echo "$as_me: program exited with status $ac_status" >&5
13198 echo "$as_me: failed program was:" >&5
13199 sed 's/^/| /' conftest.
$ac_ext >&5
13201 ( exit $ac_status )
13202 ac_cv_func_strcoll_works
=no
13204 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13209 { echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
13210 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6; }
13211 if test $ac_cv_func_strcoll_works = yes; then
13213 cat >>confdefs.h
<<\_ACEOF
13214 #define HAVE_STRCOLL 1
13220 for ac_func
in strftime
13222 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13223 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13224 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13225 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13226 echo $ECHO_N "(cached) $ECHO_C" >&6
13228 cat >conftest.
$ac_ext <<_ACEOF
13231 cat confdefs.h
>>conftest.
$ac_ext
13232 cat >>conftest.
$ac_ext <<_ACEOF
13233 /* end confdefs.h. */
13234 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13235 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13236 #define $ac_func innocuous_$ac_func
13238 /* System header to define __stub macros and hopefully few prototypes,
13239 which can conflict with char $ac_func (); below.
13240 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13241 <limits.h> exists even on freestanding compilers. */
13244 # include <limits.h>
13246 # include <assert.h>
13251 /* Override any GCC internal prototype to avoid an error.
13252 Use char because int might match the return type of a GCC
13253 builtin and then its argument prototype would still apply. */
13258 /* The GNU C library defines this for functions which it implements
13259 to always fail with ENOSYS. Some functions are actually named
13260 something starting with __ and the normal name is an alias. */
13261 #if defined __stub_$ac_func || defined __stub___$ac_func
13268 return $ac_func ();
13273 rm -f conftest.
$ac_objext conftest
$ac_exeext
13274 if { (ac_try
="$ac_link"
13275 case "(($ac_try" in
13276 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13277 *) ac_try_echo=$ac_try;;
13279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13280 (eval "$ac_link") 2>conftest.er1
13282 grep -v '^ *+' conftest.er1 >conftest.err
13284 cat conftest.err >&5
13285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13286 (exit $ac_status); } &&
13287 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13288 { (case "(($ac_try" in
13289 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13290 *) ac_try_echo
=$ac_try;;
13292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13293 (eval "$ac_try") 2>&5
13295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13296 (exit $ac_status); }; } &&
13297 { ac_try
='test -s conftest$ac_exeext'
13298 { (case "(($ac_try" in
13299 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13300 *) ac_try_echo=$ac_try;;
13302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13303 (eval "$ac_try") 2>&5
13305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13306 (exit $ac_status); }; }; then
13307 eval "$as_ac_var=yes"
13309 echo "$as_me: failed program was:" >&5
13310 sed 's/^/| /' conftest.$ac_ext >&5
13312 eval "$as_ac_var=no"
13315 rm -f conftest.err conftest.$ac_objext \
13316 conftest$ac_exeext conftest.$ac_ext
13318 ac_res=`eval echo '${'$as_ac_var'}'`
13319 { echo "$as_me:$LINENO: result: $ac_res" >&5
13320 echo "${ECHO_T}$ac_res" >&6; }
13321 if test `eval echo '${'$as_ac_var'}'` = yes; then
13322 cat >>confdefs.h <<_ACEOF
13323 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
13327 # strftime is in -lintl on SCO UNIX.
13328 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
13329 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
13330 if test "${ac_cv_lib_intl_strftime+set}" = set; then
13331 echo $ECHO_N "(cached) $ECHO_C" >&6
13333 ac_check_lib_save_LIBS=$LIBS
13334 LIBS="-lintl $LIBS"
13335 cat >conftest.$ac_ext <<_ACEOF
13338 cat confdefs.h >>conftest.$ac_ext
13339 cat >>conftest.$ac_ext <<_ACEOF
13340 /* end confdefs.h. */
13342 /* Override any GCC internal prototype to avoid an error.
13343 Use char because int might match the return type of a GCC
13344 builtin and then its argument prototype would still apply. */
13352 return strftime ();
13357 rm -f conftest.$ac_objext conftest$ac_exeext
13358 if { (ac_try="$ac_link"
13359 case "(($ac_try" in
13360 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13361 *) ac_try_echo
=$ac_try;;
13363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13364 (eval "$ac_link") 2>conftest.er1
13366 grep -v '^ *+' conftest.er1
>conftest.err
13368 cat conftest.err
>&5
13369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13370 (exit $ac_status); } &&
13371 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13372 { (case "(($ac_try" in
13373 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13374 *) ac_try_echo=$ac_try;;
13376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13377 (eval "$ac_try") 2>&5
13379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13380 (exit $ac_status); }; } &&
13381 { ac_try='test -s conftest$ac_exeext'
13382 { (case "(($ac_try" in
13383 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13384 *) ac_try_echo
=$ac_try;;
13386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13387 (eval "$ac_try") 2>&5
13389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390 (exit $ac_status); }; }; then
13391 ac_cv_lib_intl_strftime
=yes
13393 echo "$as_me: failed program was:" >&5
13394 sed 's/^/| /' conftest.
$ac_ext >&5
13396 ac_cv_lib_intl_strftime
=no
13399 rm -f conftest.err conftest.
$ac_objext \
13400 conftest
$ac_exeext conftest.
$ac_ext
13401 LIBS
=$ac_check_lib_save_LIBS
13403 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
13404 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
13405 if test $ac_cv_lib_intl_strftime = yes; then
13406 cat >>confdefs.h
<<\_ACEOF
13407 #define HAVE_STRFTIME 1
13410 LIBS
="-lintl $LIBS"
13416 { echo "$as_me:$LINENO: checking for working strnlen" >&5
13417 echo $ECHO_N "checking for working strnlen... $ECHO_C" >&6; }
13418 if test "${ac_cv_func_strnlen_working+set}" = set; then
13419 echo $ECHO_N "(cached) $ECHO_C" >&6
13421 if test "$cross_compiling" = yes; then
13422 ac_cv_func_strnlen_working
=no
13424 cat >conftest.
$ac_ext <<_ACEOF
13427 cat confdefs.h
>>conftest.
$ac_ext
13428 cat >>conftest.
$ac_ext <<_ACEOF
13429 /* end confdefs.h. */
13430 $ac_includes_default
13436 #define S_LEN (sizeof S - 1)
13438 /* At least one implementation is buggy: that of AIX 4.3 would
13439 give strnlen (S, 1) == 3. */
13442 for (i = 0; i < S_LEN + 1; ++i)
13444 int expected = i <= S_LEN ? i : S_LEN;
13445 if (strnlen (S, i) != expected)
13454 rm -f conftest
$ac_exeext
13455 if { (ac_try
="$ac_link"
13456 case "(($ac_try" in
13457 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13458 *) ac_try_echo=$ac_try;;
13460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13461 (eval "$ac_link") 2>&5
13463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13464 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13465 { (case "(($ac_try" in
13466 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13467 *) ac_try_echo
=$ac_try;;
13469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13470 (eval "$ac_try") 2>&5
13472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473 (exit $ac_status); }; }; then
13474 ac_cv_func_strnlen_working
=yes
13476 echo "$as_me: program exited with status $ac_status" >&5
13477 echo "$as_me: failed program was:" >&5
13478 sed 's/^/| /' conftest.
$ac_ext >&5
13480 ( exit $ac_status )
13481 ac_cv_func_strnlen_working
=no
13483 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13488 { echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
13489 echo "${ECHO_T}$ac_cv_func_strnlen_working" >&6; }
13490 test $ac_cv_func_strnlen_working = no
&& case " $LIBOBJS " in
13491 *" strnlen.$ac_objext "* ) ;;
13492 *) LIBOBJS
="$LIBOBJS strnlen.$ac_objext"
13497 { echo "$as_me:$LINENO: checking for working strtod" >&5
13498 echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; }
13499 if test "${ac_cv_func_strtod+set}" = set; then
13500 echo $ECHO_N "(cached) $ECHO_C" >&6
13502 if test "$cross_compiling" = yes; then
13503 ac_cv_func_strtod
=no
13505 cat >conftest.
$ac_ext <<_ACEOF
13508 cat confdefs.h
>>conftest.
$ac_ext
13509 cat >>conftest.
$ac_ext <<_ACEOF
13510 /* end confdefs.h. */
13512 $ac_includes_default
13520 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
13521 char *string = " +69";
13524 value = strtod (string, &term);
13525 if (value != 69 || term != (string + 4))
13530 /* Under Solaris 2.4, strtod returns the wrong value for the
13531 terminating character under some conditions. */
13532 char *string = "NaN";
13534 strtod (string, &term);
13535 if (term != string && *(term - 1) == 0)
13542 rm -f conftest
$ac_exeext
13543 if { (ac_try
="$ac_link"
13544 case "(($ac_try" in
13545 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13546 *) ac_try_echo=$ac_try;;
13548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13549 (eval "$ac_link") 2>&5
13551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13552 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13553 { (case "(($ac_try" in
13554 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13555 *) ac_try_echo
=$ac_try;;
13557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13558 (eval "$ac_try") 2>&5
13560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13561 (exit $ac_status); }; }; then
13562 ac_cv_func_strtod
=yes
13564 echo "$as_me: program exited with status $ac_status" >&5
13565 echo "$as_me: failed program was:" >&5
13566 sed 's/^/| /' conftest.
$ac_ext >&5
13568 ( exit $ac_status )
13569 ac_cv_func_strtod
=no
13571 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13576 { echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
13577 echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
13578 if test $ac_cv_func_strtod = no
; then
13579 case " $LIBOBJS " in
13580 *" strtod.$ac_objext "* ) ;;
13581 *) LIBOBJS
="$LIBOBJS strtod.$ac_objext"
13585 { echo "$as_me:$LINENO: checking for pow" >&5
13586 echo $ECHO_N "checking for pow... $ECHO_C" >&6; }
13587 if test "${ac_cv_func_pow+set}" = set; then
13588 echo $ECHO_N "(cached) $ECHO_C" >&6
13590 cat >conftest.
$ac_ext <<_ACEOF
13593 cat confdefs.h
>>conftest.
$ac_ext
13594 cat >>conftest.
$ac_ext <<_ACEOF
13595 /* end confdefs.h. */
13596 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
13597 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13598 #define pow innocuous_pow
13600 /* System header to define __stub macros and hopefully few prototypes,
13601 which can conflict with char pow (); below.
13602 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13603 <limits.h> exists even on freestanding compilers. */
13606 # include <limits.h>
13608 # include <assert.h>
13613 /* Override any GCC internal prototype to avoid an error.
13614 Use char because int might match the return type of a GCC
13615 builtin and then its argument prototype would still apply. */
13620 /* The GNU C library defines this for functions which it implements
13621 to always fail with ENOSYS. Some functions are actually named
13622 something starting with __ and the normal name is an alias. */
13623 #if defined __stub_pow || defined __stub___pow
13635 rm -f conftest.
$ac_objext conftest
$ac_exeext
13636 if { (ac_try
="$ac_link"
13637 case "(($ac_try" in
13638 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13639 *) ac_try_echo=$ac_try;;
13641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13642 (eval "$ac_link") 2>conftest.er1
13644 grep -v '^ *+' conftest.er1 >conftest.err
13646 cat conftest.err >&5
13647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13648 (exit $ac_status); } &&
13649 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13650 { (case "(($ac_try" in
13651 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13652 *) ac_try_echo
=$ac_try;;
13654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13655 (eval "$ac_try") 2>&5
13657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13658 (exit $ac_status); }; } &&
13659 { ac_try
='test -s conftest$ac_exeext'
13660 { (case "(($ac_try" in
13661 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13662 *) ac_try_echo=$ac_try;;
13664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13665 (eval "$ac_try") 2>&5
13667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13668 (exit $ac_status); }; }; then
13671 echo "$as_me: failed program was:" >&5
13672 sed 's/^/| /' conftest.$ac_ext >&5
13677 rm -f conftest.err conftest.$ac_objext \
13678 conftest$ac_exeext conftest.$ac_ext
13680 { echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
13681 echo "${ECHO_T}$ac_cv_func_pow" >&6; }
13683 if test $ac_cv_func_pow = no; then
13684 { echo "$as_me:$LINENO: checking for pow in -lm" >&5
13685 echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
13686 if test "${ac_cv_lib_m_pow+set}" = set; then
13687 echo $ECHO_N "(cached) $ECHO_C" >&6
13689 ac_check_lib_save_LIBS=$LIBS
13691 cat >conftest.$ac_ext <<_ACEOF
13694 cat confdefs.h >>conftest.$ac_ext
13695 cat >>conftest.$ac_ext <<_ACEOF
13696 /* end confdefs.h. */
13698 /* Override any GCC internal prototype to avoid an error.
13699 Use char because int might match the return type of a GCC
13700 builtin and then its argument prototype would still apply. */
13713 rm -f conftest.$ac_objext conftest$ac_exeext
13714 if { (ac_try="$ac_link"
13715 case "(($ac_try" in
13716 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13717 *) ac_try_echo
=$ac_try;;
13719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13720 (eval "$ac_link") 2>conftest.er1
13722 grep -v '^ *+' conftest.er1
>conftest.err
13724 cat conftest.err
>&5
13725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726 (exit $ac_status); } &&
13727 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13728 { (case "(($ac_try" in
13729 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13730 *) ac_try_echo=$ac_try;;
13732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13733 (eval "$ac_try") 2>&5
13735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736 (exit $ac_status); }; } &&
13737 { ac_try='test -s conftest$ac_exeext'
13738 { (case "(($ac_try" in
13739 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13740 *) ac_try_echo
=$ac_try;;
13742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13743 (eval "$ac_try") 2>&5
13745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746 (exit $ac_status); }; }; then
13747 ac_cv_lib_m_pow
=yes
13749 echo "$as_me: failed program was:" >&5
13750 sed 's/^/| /' conftest.
$ac_ext >&5
13755 rm -f conftest.err conftest.
$ac_objext \
13756 conftest
$ac_exeext conftest.
$ac_ext
13757 LIBS
=$ac_check_lib_save_LIBS
13759 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
13760 echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
13761 if test $ac_cv_lib_m_pow = yes; then
13764 { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
13765 echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
13772 { echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
13773 echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6; }
13774 if test "${ac_cv_func_utime_null+set}" = set; then
13775 echo $ECHO_N "(cached) $ECHO_C" >&6
13777 rm -f conftest.data
; >conftest.data
13778 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
13779 if test "$cross_compiling" = yes; then
13780 ac_cv_func_utime_null
=no
13782 cat >conftest.
$ac_ext <<_ACEOF
13785 cat confdefs.h
>>conftest.
$ac_ext
13786 cat >>conftest.
$ac_ext <<_ACEOF
13787 /* end confdefs.h. */
13788 $ac_includes_default
13793 return ! (stat ("conftest.data", &s) == 0
13794 && utime ("conftest.data", 0) == 0
13795 && stat ("conftest.data", &t) == 0
13796 && t.st_mtime >= s.st_mtime
13797 && t.st_mtime - s.st_mtime < 120);
13802 rm -f conftest
$ac_exeext
13803 if { (ac_try
="$ac_link"
13804 case "(($ac_try" in
13805 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13806 *) ac_try_echo=$ac_try;;
13808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13809 (eval "$ac_link") 2>&5
13811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13813 { (case "(($ac_try" in
13814 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13815 *) ac_try_echo
=$ac_try;;
13817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13818 (eval "$ac_try") 2>&5
13820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13821 (exit $ac_status); }; }; then
13822 ac_cv_func_utime_null
=yes
13824 echo "$as_me: program exited with status $ac_status" >&5
13825 echo "$as_me: failed program was:" >&5
13826 sed 's/^/| /' conftest.
$ac_ext >&5
13828 ( exit $ac_status )
13829 ac_cv_func_utime_null
=no
13831 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13836 { echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
13837 echo "${ECHO_T}$ac_cv_func_utime_null" >&6; }
13838 if test $ac_cv_func_utime_null = yes; then
13840 cat >>confdefs.h
<<\_ACEOF
13841 #define HAVE_UTIME_NULL 1
13845 rm -f conftest.data
13848 for ac_func
in vprintf
13850 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13851 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13852 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13853 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13854 echo $ECHO_N "(cached) $ECHO_C" >&6
13856 cat >conftest.
$ac_ext <<_ACEOF
13859 cat confdefs.h
>>conftest.
$ac_ext
13860 cat >>conftest.
$ac_ext <<_ACEOF
13861 /* end confdefs.h. */
13862 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13863 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13864 #define $ac_func innocuous_$ac_func
13866 /* System header to define __stub macros and hopefully few prototypes,
13867 which can conflict with char $ac_func (); below.
13868 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13869 <limits.h> exists even on freestanding compilers. */
13872 # include <limits.h>
13874 # include <assert.h>
13879 /* Override any GCC internal prototype to avoid an error.
13880 Use char because int might match the return type of a GCC
13881 builtin and then its argument prototype would still apply. */
13886 /* The GNU C library defines this for functions which it implements
13887 to always fail with ENOSYS. Some functions are actually named
13888 something starting with __ and the normal name is an alias. */
13889 #if defined __stub_$ac_func || defined __stub___$ac_func
13896 return $ac_func ();
13901 rm -f conftest.
$ac_objext conftest
$ac_exeext
13902 if { (ac_try
="$ac_link"
13903 case "(($ac_try" in
13904 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13905 *) ac_try_echo=$ac_try;;
13907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13908 (eval "$ac_link") 2>conftest.er1
13910 grep -v '^ *+' conftest.er1 >conftest.err
13912 cat conftest.err >&5
13913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13914 (exit $ac_status); } &&
13915 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13916 { (case "(($ac_try" in
13917 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13918 *) ac_try_echo
=$ac_try;;
13920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13921 (eval "$ac_try") 2>&5
13923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13924 (exit $ac_status); }; } &&
13925 { ac_try
='test -s conftest$ac_exeext'
13926 { (case "(($ac_try" in
13927 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13928 *) ac_try_echo=$ac_try;;
13930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13931 (eval "$ac_try") 2>&5
13933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13934 (exit $ac_status); }; }; then
13935 eval "$as_ac_var=yes"
13937 echo "$as_me: failed program was:" >&5
13938 sed 's/^/| /' conftest.$ac_ext >&5
13940 eval "$as_ac_var=no"
13943 rm -f conftest.err conftest.$ac_objext \
13944 conftest$ac_exeext conftest.$ac_ext
13946 ac_res=`eval echo '${'$as_ac_var'}'`
13947 { echo "$as_me:$LINENO: result: $ac_res" >&5
13948 echo "${ECHO_T}$ac_res" >&6; }
13949 if test `eval echo '${'$as_ac_var'}'` = yes; then
13950 cat >>confdefs.h <<_ACEOF
13951 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
13954 { echo "$as_me:$LINENO: checking for _doprnt" >&5
13955 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
13956 if test "${ac_cv_func__doprnt+set}" = set; then
13957 echo $ECHO_N "(cached) $ECHO_C" >&6
13959 cat >conftest.$ac_ext <<_ACEOF
13962 cat confdefs.h >>conftest.$ac_ext
13963 cat >>conftest.$ac_ext <<_ACEOF
13964 /* end confdefs.h. */
13965 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
13966 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13967 #define _doprnt innocuous__doprnt
13969 /* System header to define __stub macros and hopefully few prototypes,
13970 which can conflict with char _doprnt (); below.
13971 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13972 <limits.h> exists even on freestanding compilers. */
13975 # include <limits.h>
13977 # include <assert.h>
13982 /* Override any GCC internal prototype to avoid an error.
13983 Use char because int might match the return type of a GCC
13984 builtin and then its argument prototype would still apply. */
13989 /* The GNU C library defines this for functions which it implements
13990 to always fail with ENOSYS. Some functions are actually named
13991 something starting with __ and the normal name is an alias. */
13992 #if defined __stub__doprnt || defined __stub____doprnt
14004 rm -f conftest.$ac_objext conftest$ac_exeext
14005 if { (ac_try="$ac_link"
14006 case "(($ac_try" in
14007 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14008 *) ac_try_echo
=$ac_try;;
14010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14011 (eval "$ac_link") 2>conftest.er1
14013 grep -v '^ *+' conftest.er1
>conftest.err
14015 cat conftest.err
>&5
14016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14017 (exit $ac_status); } &&
14018 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14019 { (case "(($ac_try" in
14020 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14021 *) ac_try_echo=$ac_try;;
14023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14024 (eval "$ac_try") 2>&5
14026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027 (exit $ac_status); }; } &&
14028 { ac_try='test -s conftest$ac_exeext'
14029 { (case "(($ac_try" in
14030 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14031 *) ac_try_echo
=$ac_try;;
14033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14034 (eval "$ac_try") 2>&5
14036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037 (exit $ac_status); }; }; then
14038 ac_cv_func__doprnt
=yes
14040 echo "$as_me: failed program was:" >&5
14041 sed 's/^/| /' conftest.
$ac_ext >&5
14043 ac_cv_func__doprnt
=no
14046 rm -f conftest.err conftest.
$ac_objext \
14047 conftest
$ac_exeext conftest.
$ac_ext
14049 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
14050 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
14051 if test $ac_cv_func__doprnt = yes; then
14053 cat >>confdefs.h
<<\_ACEOF
14054 #define HAVE_DOPRNT 1
14109 for ac_func
in atexit bzero dup2 endpwent floor ftruncate getcwd gethostbyname gethostname gettimeofday inet_ntoa isascii localtime_r memchr memmove memset mkdir munmap pow putenv re_comp regcomp rint
select setenv socket sqrt strcasecmp strchr strcspn strdup strerror strncasecmp strndup strnlen strrchr strsep strspn strstr strtol unsetenv utime strtoq strcasestr asprintf vasprintf
14111 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14112 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14113 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14114 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14115 echo $ECHO_N "(cached) $ECHO_C" >&6
14117 cat >conftest.
$ac_ext <<_ACEOF
14120 cat confdefs.h
>>conftest.
$ac_ext
14121 cat >>conftest.
$ac_ext <<_ACEOF
14122 /* end confdefs.h. */
14123 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14124 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14125 #define $ac_func innocuous_$ac_func
14127 /* System header to define __stub macros and hopefully few prototypes,
14128 which can conflict with char $ac_func (); below.
14129 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14130 <limits.h> exists even on freestanding compilers. */
14133 # include <limits.h>
14135 # include <assert.h>
14140 /* Override any GCC internal prototype to avoid an error.
14141 Use char because int might match the return type of a GCC
14142 builtin and then its argument prototype would still apply. */
14147 /* The GNU C library defines this for functions which it implements
14148 to always fail with ENOSYS. Some functions are actually named
14149 something starting with __ and the normal name is an alias. */
14150 #if defined __stub_$ac_func || defined __stub___$ac_func
14157 return $ac_func ();
14162 rm -f conftest.
$ac_objext conftest
$ac_exeext
14163 if { (ac_try
="$ac_link"
14164 case "(($ac_try" in
14165 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14166 *) ac_try_echo=$ac_try;;
14168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14169 (eval "$ac_link") 2>conftest.er1
14171 grep -v '^ *+' conftest.er1 >conftest.err
14173 cat conftest.err >&5
14174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14175 (exit $ac_status); } &&
14176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14177 { (case "(($ac_try" in
14178 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14179 *) ac_try_echo
=$ac_try;;
14181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14182 (eval "$ac_try") 2>&5
14184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14185 (exit $ac_status); }; } &&
14186 { ac_try
='test -s conftest$ac_exeext'
14187 { (case "(($ac_try" in
14188 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14189 *) ac_try_echo=$ac_try;;
14191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14192 (eval "$ac_try") 2>&5
14194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195 (exit $ac_status); }; }; then
14196 eval "$as_ac_var=yes"
14198 echo "$as_me: failed program was:" >&5
14199 sed 's/^/| /' conftest.$ac_ext >&5
14201 eval "$as_ac_var=no"
14204 rm -f conftest.err conftest.$ac_objext \
14205 conftest$ac_exeext conftest.$ac_ext
14207 ac_res=`eval echo '${'$as_ac_var'}'`
14208 { echo "$as_me:$LINENO: result: $ac_res" >&5
14209 echo "${ECHO_T}$ac_res" >&6; }
14210 if test `eval echo '${'$as_ac_var'}'` = yes; then
14211 cat >>confdefs.h <<_ACEOF
14212 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
14219 echo -n "checking for compiler atomic operations... "
14220 cat >conftest.$ac_ext <<_ACEOF
14223 cat confdefs.h >>conftest.$ac_ext
14224 cat >>conftest.$ac_ext <<_ACEOF
14225 /* end confdefs.h. */
14230 int foo1; int foo2 = __sync_fetch_and_add(&foo1, 1);
14235 rm -f conftest.$ac_objext conftest$ac_exeext
14236 if { (ac_try="$ac_link"
14237 case "(($ac_try" in
14238 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14239 *) ac_try_echo
=$ac_try;;
14241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14242 (eval "$ac_link") 2>conftest.er1
14244 grep -v '^ *+' conftest.er1
>conftest.err
14246 cat conftest.err
>&5
14247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14248 (exit $ac_status); } &&
14249 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14250 { (case "(($ac_try" in
14251 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14252 *) ac_try_echo=$ac_try;;
14254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14255 (eval "$ac_try") 2>&5
14257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258 (exit $ac_status); }; } &&
14259 { ac_try='test -s conftest$ac_exeext'
14260 { (case "(($ac_try" in
14261 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14262 *) ac_try_echo
=$ac_try;;
14264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14265 (eval "$ac_try") 2>&5
14267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14268 (exit $ac_status); }; }; then
14269 { echo "$as_me:$LINENO: result: yes" >&5
14270 echo "${ECHO_T}yes" >&6; }
14272 cat >>confdefs.h
<<\_ACEOF
14273 #define HAVE_GCC_ATOMICS 1
14277 echo "$as_me: failed program was:" >&5
14278 sed 's/^/| /' conftest.
$ac_ext >&5
14280 { echo "$as_me:$LINENO: result: no" >&5
14281 echo "${ECHO_T}no" >&6; }
14285 rm -f conftest.err conftest.
$ac_objext \
14286 conftest
$ac_exeext conftest.
$ac_ext
14288 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
14289 { echo "$as_me:$LINENO: checking for libkern/OSAtomic.h" >&5
14290 echo $ECHO_N "checking for libkern/OSAtomic.h... $ECHO_C" >&6; }
14291 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
14292 echo $ECHO_N "(cached) $ECHO_C" >&6
14294 { echo "$as_me:$LINENO: result: $ac_cv_header_libkern_OSAtomic_h" >&5
14295 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
14297 # Is the header compilable?
14298 { echo "$as_me:$LINENO: checking libkern/OSAtomic.h usability" >&5
14299 echo $ECHO_N "checking libkern/OSAtomic.h usability... $ECHO_C" >&6; }
14300 cat >conftest.
$ac_ext <<_ACEOF
14303 cat confdefs.h
>>conftest.
$ac_ext
14304 cat >>conftest.
$ac_ext <<_ACEOF
14305 /* end confdefs.h. */
14306 $ac_includes_default
14307 #include <libkern/OSAtomic.h>
14309 rm -f conftest.
$ac_objext
14310 if { (ac_try
="$ac_compile"
14311 case "(($ac_try" in
14312 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14313 *) ac_try_echo=$ac_try;;
14315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14316 (eval "$ac_compile") 2>conftest.er1
14318 grep -v '^ *+' conftest.er1 >conftest.err
14320 cat conftest.err >&5
14321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14322 (exit $ac_status); } &&
14323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14324 { (case "(($ac_try" in
14325 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14326 *) ac_try_echo
=$ac_try;;
14328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14329 (eval "$ac_try") 2>&5
14331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14332 (exit $ac_status); }; } &&
14333 { ac_try
='test -s conftest.$ac_objext'
14334 { (case "(($ac_try" in
14335 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14336 *) ac_try_echo=$ac_try;;
14338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14339 (eval "$ac_try") 2>&5
14341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14342 (exit $ac_status); }; }; then
14343 ac_header_compiler=yes
14345 echo "$as_me: failed program was:" >&5
14346 sed 's/^/| /' conftest.$ac_ext >&5
14348 ac_header_compiler=no
14351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14352 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14353 echo "${ECHO_T}$ac_header_compiler" >&6; }
14355 # Is the header present?
14356 { echo "$as_me:$LINENO: checking libkern/OSAtomic.h presence" >&5
14357 echo $ECHO_N "checking libkern/OSAtomic.h presence... $ECHO_C" >&6; }
14358 cat >conftest.$ac_ext <<_ACEOF
14361 cat confdefs.h >>conftest.$ac_ext
14362 cat >>conftest.$ac_ext <<_ACEOF
14363 /* end confdefs.h. */
14364 #include <libkern/OSAtomic.h>
14366 if { (ac_try="$ac_cpp conftest.$ac_ext"
14367 case "(($ac_try" in
14368 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14369 *) ac_try_echo
=$ac_try;;
14371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14372 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14374 grep -v '^ *+' conftest.er1
>conftest.err
14376 cat conftest.err
>&5
14377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378 (exit $ac_status); } >/dev
/null
; then
14379 if test -s conftest.err
; then
14380 ac_cpp_err
=$ac_c_preproc_warn_flag
14381 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14388 if test -z "$ac_cpp_err"; then
14389 ac_header_preproc
=yes
14391 echo "$as_me: failed program was:" >&5
14392 sed 's/^/| /' conftest.
$ac_ext >&5
14394 ac_header_preproc
=no
14397 rm -f conftest.err conftest.
$ac_ext
14398 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14399 echo "${ECHO_T}$ac_header_preproc" >&6; }
14401 # So? What about this header?
14402 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14404 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: accepted by the compiler, rejected by the preprocessor!" >&5
14405 echo "$as_me: WARNING: libkern/OSAtomic.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14406 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result" >&5
14407 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the compiler's result" >&2;}
14408 ac_header_preproc
=yes
14411 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: present but cannot be compiled" >&5
14412 echo "$as_me: WARNING: libkern/OSAtomic.h: present but cannot be compiled" >&2;}
14413 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: check for missing prerequisite headers?" >&5
14414 echo "$as_me: WARNING: libkern/OSAtomic.h: check for missing prerequisite headers?" >&2;}
14415 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: see the Autoconf documentation" >&5
14416 echo "$as_me: WARNING: libkern/OSAtomic.h: see the Autoconf documentation" >&2;}
14417 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: section \"Present But Cannot Be Compiled\"" >&5
14418 echo "$as_me: WARNING: libkern/OSAtomic.h: section \"Present But Cannot Be Compiled\"" >&2;}
14419 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result" >&5
14420 echo "$as_me: WARNING: libkern/OSAtomic.h: proceeding with the preprocessor's result" >&2;}
14421 { echo "$as_me:$LINENO: WARNING: libkern/OSAtomic.h: in the future, the compiler will take precedence" >&5
14422 echo "$as_me: WARNING: libkern/OSAtomic.h: in the future, the compiler will take precedence" >&2;}
14426 { echo "$as_me:$LINENO: checking for libkern/OSAtomic.h" >&5
14427 echo $ECHO_N "checking for libkern/OSAtomic.h... $ECHO_C" >&6; }
14428 if test "${ac_cv_header_libkern_OSAtomic_h+set}" = set; then
14429 echo $ECHO_N "(cached) $ECHO_C" >&6
14431 ac_cv_header_libkern_OSAtomic_h
=$ac_header_preproc
14433 { echo "$as_me:$LINENO: result: $ac_cv_header_libkern_OSAtomic_h" >&5
14434 echo "${ECHO_T}$ac_cv_header_libkern_OSAtomic_h" >&6; }
14437 if test $ac_cv_header_libkern_OSAtomic_h = yes; then
14439 cat >>confdefs.h
<<_ACEOF
14440 #define HAVE_OSX_ATOMICS 1
14447 { echo "$as_me:$LINENO: checking for int" >&5
14448 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
14449 if test "${ac_cv_type_int+set}" = set; then
14450 echo $ECHO_N "(cached) $ECHO_C" >&6
14452 cat >conftest.
$ac_ext <<_ACEOF
14455 cat confdefs.h
>>conftest.
$ac_ext
14456 cat >>conftest.
$ac_ext <<_ACEOF
14457 /* end confdefs.h. */
14458 $ac_includes_default
14459 typedef int ac__type_new_;
14463 if ((ac__type_new_ *) 0)
14465 if (sizeof (ac__type_new_))
14471 rm -f conftest.
$ac_objext
14472 if { (ac_try
="$ac_compile"
14473 case "(($ac_try" in
14474 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14475 *) ac_try_echo=$ac_try;;
14477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14478 (eval "$ac_compile") 2>conftest.er1
14480 grep -v '^ *+' conftest.er1 >conftest.err
14482 cat conftest.err >&5
14483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14484 (exit $ac_status); } &&
14485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14486 { (case "(($ac_try" in
14487 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14488 *) ac_try_echo
=$ac_try;;
14490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14491 (eval "$ac_try") 2>&5
14493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14494 (exit $ac_status); }; } &&
14495 { ac_try
='test -s conftest.$ac_objext'
14496 { (case "(($ac_try" in
14497 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14498 *) ac_try_echo=$ac_try;;
14500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14501 (eval "$ac_try") 2>&5
14503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14504 (exit $ac_status); }; }; then
14507 echo "$as_me: failed program was:" >&5
14508 sed 's/^/| /' conftest.$ac_ext >&5
14513 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14515 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14516 echo "${ECHO_T}$ac_cv_type_int" >&6; }
14518 { echo "$as_me:$LINENO: checking size of int" >&5
14519 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
14520 if test "${ac_cv_sizeof_int+set}" = set; then
14521 echo $ECHO_N "(cached) $ECHO_C" >&6
14523 if test "$ac_cv_type_int" = yes; then
14524 # The cast to long int works around a bug in the HP C Compiler
14525 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14526 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
14527 # This bug is HP SR number 8606223364.
14528 if test "$cross_compiling" = yes; then
14529 # Depending upon the size, compute the lo and hi bounds.
14530 cat >conftest.$ac_ext <<_ACEOF
14533 cat confdefs.h >>conftest.$ac_ext
14534 cat >>conftest.$ac_ext <<_ACEOF
14535 /* end confdefs.h. */
14536 $ac_includes_default
14537 typedef int ac__type_sizeof_;
14541 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
14548 rm -f conftest.$ac_objext
14549 if { (ac_try="$ac_compile"
14550 case "(($ac_try" in
14551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14552 *) ac_try_echo=$ac_try;;
14554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14555 (eval "$ac_compile") 2>conftest.er1
14557 grep -v '^
*+' conftest.er1 >conftest.err
14559 cat conftest.err >&5
14560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14561 (exit $ac_status); } &&
14562 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
14563 { (case "(($ac_try" in
14564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14565 *) ac_try_echo=$ac_try;;
14567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14568 (eval "$ac_try") 2>&5
14570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14571 (exit $ac_status); }; } &&
14572 { ac_try='test -s conftest.
$ac_objext'
14573 { (case "(($ac_try" in
14574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14575 *) ac_try_echo=$ac_try;;
14577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14578 (eval "$ac_try") 2>&5
14580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14581 (exit $ac_status); }; }; then
14584 cat >conftest.$ac_ext <<_ACEOF
14587 cat confdefs.h >>conftest.$ac_ext
14588 cat >>conftest.$ac_ext <<_ACEOF
14589 /* end confdefs.h. */
14590 $ac_includes_default
14591 typedef int ac__type_sizeof_;
14595 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14602 rm -f conftest.$ac_objext
14603 if { (ac_try="$ac_compile"
14604 case "(($ac_try" in
14605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14606 *) ac_try_echo=$ac_try;;
14608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14609 (eval "$ac_compile") 2>conftest.er1
14611 grep -v '^
*+' conftest.er1 >conftest.err
14613 cat conftest.err >&5
14614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14615 (exit $ac_status); } &&
14616 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
14617 { (case "(($ac_try" in
14618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14619 *) ac_try_echo=$ac_try;;
14621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14622 (eval "$ac_try") 2>&5
14624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14625 (exit $ac_status); }; } &&
14626 { ac_try='test -s conftest.
$ac_objext'
14627 { (case "(($ac_try" in
14628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14629 *) ac_try_echo=$ac_try;;
14631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14632 (eval "$ac_try") 2>&5
14634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14635 (exit $ac_status); }; }; then
14636 ac_hi=$ac_mid; break
14638 echo "$as_me: failed program was:" >&5
14639 sed 's
/^
/|
/' conftest.$ac_ext >&5
14641 ac_lo=`expr $ac_mid + 1`
14642 if test $ac_lo -le $ac_mid; then
14646 ac_mid=`expr 2 '*' $ac_mid + 1`
14649 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14652 echo "$as_me: failed program was:" >&5
14653 sed 's
/^
/|
/' conftest.$ac_ext >&5
14655 cat >conftest.$ac_ext <<_ACEOF
14658 cat confdefs.h >>conftest.$ac_ext
14659 cat >>conftest.$ac_ext <<_ACEOF
14660 /* end confdefs.h. */
14661 $ac_includes_default
14662 typedef int ac__type_sizeof_;
14666 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
14673 rm -f conftest.$ac_objext
14674 if { (ac_try="$ac_compile"
14675 case "(($ac_try" in
14676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14677 *) ac_try_echo=$ac_try;;
14679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14680 (eval "$ac_compile") 2>conftest.er1
14682 grep -v '^
*+' conftest.er1 >conftest.err
14684 cat conftest.err >&5
14685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14686 (exit $ac_status); } &&
14687 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
14688 { (case "(($ac_try" in
14689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14690 *) ac_try_echo=$ac_try;;
14692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14693 (eval "$ac_try") 2>&5
14695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14696 (exit $ac_status); }; } &&
14697 { ac_try='test -s conftest.
$ac_objext'
14698 { (case "(($ac_try" in
14699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14700 *) ac_try_echo=$ac_try;;
14702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14703 (eval "$ac_try") 2>&5
14705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14706 (exit $ac_status); }; }; then
14709 cat >conftest.$ac_ext <<_ACEOF
14712 cat confdefs.h >>conftest.$ac_ext
14713 cat >>conftest.$ac_ext <<_ACEOF
14714 /* end confdefs.h. */
14715 $ac_includes_default
14716 typedef int ac__type_sizeof_;
14720 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
14727 rm -f conftest.$ac_objext
14728 if { (ac_try="$ac_compile"
14729 case "(($ac_try" in
14730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14731 *) ac_try_echo=$ac_try;;
14733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14734 (eval "$ac_compile") 2>conftest.er1
14736 grep -v '^
*+' conftest.er1 >conftest.err
14738 cat conftest.err >&5
14739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14740 (exit $ac_status); } &&
14741 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
14742 { (case "(($ac_try" in
14743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14744 *) ac_try_echo=$ac_try;;
14746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14747 (eval "$ac_try") 2>&5
14749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750 (exit $ac_status); }; } &&
14751 { ac_try='test -s conftest.
$ac_objext'
14752 { (case "(($ac_try" in
14753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14754 *) ac_try_echo=$ac_try;;
14756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14757 (eval "$ac_try") 2>&5
14759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14760 (exit $ac_status); }; }; then
14761 ac_lo=$ac_mid; break
14763 echo "$as_me: failed program was:" >&5
14764 sed 's
/^
/|
/' conftest.$ac_ext >&5
14766 ac_hi=`expr '(' $ac_mid ')' - 1`
14767 if test $ac_mid -le $ac_hi; then
14771 ac_mid=`expr 2 '*' $ac_mid`
14774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14777 echo "$as_me: failed program was:" >&5
14778 sed 's
/^
/|
/' conftest.$ac_ext >&5
14783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14787 # Binary search between lo and hi bounds.
14788 while test "x$ac_lo" != "x$ac_hi"; do
14789 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14790 cat >conftest.$ac_ext <<_ACEOF
14793 cat confdefs.h >>conftest.$ac_ext
14794 cat >>conftest.$ac_ext <<_ACEOF
14795 /* end confdefs.h. */
14796 $ac_includes_default
14797 typedef int ac__type_sizeof_;
14801 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14808 rm -f conftest.$ac_objext
14809 if { (ac_try="$ac_compile"
14810 case "(($ac_try" in
14811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14812 *) ac_try_echo=$ac_try;;
14814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14815 (eval "$ac_compile") 2>conftest.er1
14817 grep -v '^
*+' conftest.er1 >conftest.err
14819 cat conftest.err >&5
14820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14821 (exit $ac_status); } &&
14822 { ac_try='test -z "$ac_c_werror_flag" ||
test ! -s conftest.err
'
14823 { (case "(($ac_try" in
14824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14825 *) ac_try_echo=$ac_try;;
14827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14828 (eval "$ac_try") 2>&5
14830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14831 (exit $ac_status); }; } &&
14832 { ac_try='test -s conftest.
$ac_objext'
14833 { (case "(($ac_try" in
14834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14835 *) ac_try_echo=$ac_try;;
14837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14838 (eval "$ac_try") 2>&5
14840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14841 (exit $ac_status); }; }; then
14844 echo "$as_me: failed program was:" >&5
14845 sed 's
/^
/|
/' conftest.$ac_ext >&5
14847 ac_lo=`expr '(' $ac_mid ')' + 1`
14850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14853 ?*) ac_cv_sizeof_int=$ac_lo;;
14854 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
14855 See \`config.log' for more details.
" >&5
14856 echo "$as_me: error
: cannot compute sizeof
(int
)
14857 See \
`config.log' for more details." >&2;}
14858 { (exit 77); exit 77; }; } ;;
14861 cat >conftest.$ac_ext <<_ACEOF
14864 cat confdefs.h >>conftest.$ac_ext
14865 cat >>conftest.$ac_ext <<_ACEOF
14866 /* end confdefs.h. */
14867 $ac_includes_default
14868 typedef int ac__type_sizeof_;
14869 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
14870 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
14872 #include <stdlib.h>
14877 FILE *f = fopen ("conftest.val", "w");
14880 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
14882 long int i = longval ();
14883 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14885 fprintf (f, "%ld\n", i);
14889 unsigned long int i = ulongval ();
14890 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14892 fprintf (f, "%lu\n", i);
14894 return ferror (f) || fclose (f) != 0;
14900 rm -f conftest$ac_exeext
14901 if { (ac_try="$ac_link"
14902 case "(($ac_try" in
14903 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14904 *) ac_try_echo
=$ac_try;;
14906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14907 (eval "$ac_link") 2>&5
14909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14910 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14911 { (case "(($ac_try" in
14912 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14913 *) ac_try_echo=$ac_try;;
14915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14916 (eval "$ac_try") 2>&5
14918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14919 (exit $ac_status); }; }; then
14920 ac_cv_sizeof_int=`cat conftest.val
`
14922 echo "$as_me: program exited with status $ac_status" >&5
14923 echo "$as_me: failed program was:" >&5
14924 sed 's/^/| /' conftest.$ac_ext >&5
14926 ( exit $ac_status )
14927 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
14928 See \`config.log
' for more details." >&5
14929 echo "$as_me: error: cannot compute sizeof (int)
14930 See \`config.log' for more details.
" >&2;}
14931 { (exit 77); exit 77; }; }
14933 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14940 { echo "$as_me:$LINENO: result
: $ac_cv_sizeof_int" >&5
14941 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
14942 cat >>confdefs.h <<_ACEOF
14943 #define SIZEOF_INT $ac_cv_sizeof_int
14948 # do the package library checks now
14951 if test "${USE_ALSA}" != "no
"; then
14953 if test "x
${ALSA_DIR}" != "x
"; then
14954 if test -d ${ALSA_DIR}/lib; then
14955 pbxlibdir="-L${ALSA_DIR}/lib
"
14957 pbxlibdir="-L${ALSA_DIR}"
14960 { echo "$as_me:$LINENO: checking
for snd_spcm_init
in -lasound" >&5
14961 echo $ECHO_N "checking
for snd_spcm_init
in -lasound...
$ECHO_C" >&6; }
14962 if test "${ac_cv_lib_asound_snd_spcm_init+set}" = set; then
14963 echo $ECHO_N "(cached
) $ECHO_C" >&6
14965 ac_check_lib_save_LIBS=$LIBS
14966 LIBS="-lasound ${pbxlibdir} -lm -ldl $LIBS"
14967 cat >conftest.$ac_ext <<_ACEOF
14970 cat confdefs.h >>conftest.$ac_ext
14971 cat >>conftest.$ac_ext <<_ACEOF
14972 /* end confdefs.h. */
14974 /* Override any GCC internal prototype to avoid an error.
14975 Use char because int might match the return type of a GCC
14976 builtin and then its argument prototype would still apply. */
14980 char snd_spcm_init ();
14984 return snd_spcm_init ();
14989 rm -f conftest.$ac_objext conftest$ac_exeext
14990 if { (ac_try="$ac_link"
14991 case "(($ac_try" in
14992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14993 *) ac_try_echo=$ac_try;;
14995 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14996 (eval "$ac_link") 2>conftest.er1
14998 grep -v '^ *+' conftest.er1 >conftest.err
15000 cat conftest.err >&5
15001 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15002 (exit $ac_status); } &&
15003 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15004 { (case "(($ac_try" in
15005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15006 *) ac_try_echo=$ac_try;;
15008 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15009 (eval "$ac_try") 2>&5
15011 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15012 (exit $ac_status); }; } &&
15013 { ac_try='test -s conftest$ac_exeext'
15014 { (case "(($ac_try" in
15015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15016 *) ac_try_echo=$ac_try;;
15018 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15019 (eval "$ac_try") 2>&5
15021 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15022 (exit $ac_status); }; }; then
15023 ac_cv_lib_asound_snd_spcm_init=yes
15025 echo "$as_me: failed program was
:" >&5
15026 sed 's/^/| /' conftest.$ac_ext >&5
15028 ac_cv_lib_asound_snd_spcm_init=no
15031 rm -f conftest.err conftest.$ac_objext \
15032 conftest$ac_exeext conftest.$ac_ext
15033 LIBS=$ac_check_lib_save_LIBS
15035 { echo "$as_me:$LINENO: result
: $ac_cv_lib_asound_snd_spcm_init" >&5
15036 echo "${ECHO_T}$ac_cv_lib_asound_snd_spcm_init" >&6; }
15037 if test $ac_cv_lib_asound_snd_spcm_init = yes; then
15044 if test "${AST_ALSA_FOUND}" = "yes"; then
15045 ALSA_LIB="-lasound -lm -ldl"
15046 ALSA_HEADER_FOUND="1"
15047 if test "x
${ALSA_DIR}" != "x
"; then
15048 ALSA_LIB="${pbxlibdir} ${ALSA_LIB}"
15049 ALSA_INCLUDE="-I${ALSA_DIR}/include
"
15050 if test "xalsa
/asoundlib.h
" != "x
" ; then
15051 as_ac_Header=`echo "ac_cv_header_
${ALSA_DIR}/include
/alsa
/asoundlib.h
" | $as_tr_sh`
15052 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15053 { echo "$as_me:$LINENO: checking
for ${ALSA_DIR}/include
/alsa
/asoundlib.h
" >&5
15054 echo $ECHO_N "checking
for ${ALSA_DIR}/include
/alsa
/asoundlib.h...
$ECHO_C" >&6; }
15055 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15056 echo $ECHO_N "(cached
) $ECHO_C" >&6
15058 ac_res=`eval echo '${'$as_ac_Header'}'`
15059 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15060 echo "${ECHO_T}$ac_res" >&6; }
15062 # Is the header compilable?
15063 { echo "$as_me:$LINENO: checking
${ALSA_DIR}/include
/alsa
/asoundlib.h usability
" >&5
15064 echo $ECHO_N "checking
${ALSA_DIR}/include
/alsa
/asoundlib.h usability...
$ECHO_C" >&6; }
15065 cat >conftest.$ac_ext <<_ACEOF
15068 cat confdefs.h >>conftest.$ac_ext
15069 cat >>conftest.$ac_ext <<_ACEOF
15070 /* end confdefs.h. */
15071 $ac_includes_default
15072 #include <${ALSA_DIR}/include/alsa/asoundlib.h>
15074 rm -f conftest.$ac_objext
15075 if { (ac_try="$ac_compile"
15076 case "(($ac_try" in
15077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15078 *) ac_try_echo=$ac_try;;
15080 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15081 (eval "$ac_compile") 2>conftest.er1
15083 grep -v '^ *+' conftest.er1 >conftest.err
15085 cat conftest.err >&5
15086 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15087 (exit $ac_status); } &&
15088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15089 { (case "(($ac_try" in
15090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15091 *) ac_try_echo=$ac_try;;
15093 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15094 (eval "$ac_try") 2>&5
15096 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15097 (exit $ac_status); }; } &&
15098 { ac_try='test -s conftest.$ac_objext'
15099 { (case "(($ac_try" in
15100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15101 *) ac_try_echo=$ac_try;;
15103 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15104 (eval "$ac_try") 2>&5
15106 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15107 (exit $ac_status); }; }; then
15108 ac_header_compiler=yes
15110 echo "$as_me: failed program was
:" >&5
15111 sed 's/^/| /' conftest.$ac_ext >&5
15113 ac_header_compiler=no
15116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15117 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15118 echo "${ECHO_T}$ac_header_compiler" >&6; }
15120 # Is the header present?
15121 { echo "$as_me:$LINENO: checking
${ALSA_DIR}/include
/alsa
/asoundlib.h presence
" >&5
15122 echo $ECHO_N "checking
${ALSA_DIR}/include
/alsa
/asoundlib.h presence...
$ECHO_C" >&6; }
15123 cat >conftest.$ac_ext <<_ACEOF
15126 cat confdefs.h >>conftest.$ac_ext
15127 cat >>conftest.$ac_ext <<_ACEOF
15128 /* end confdefs.h. */
15129 #include <${ALSA_DIR}/include/alsa/asoundlib.h>
15131 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15132 case "(($ac_try" in
15133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15134 *) ac_try_echo=$ac_try;;
15136 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15137 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15139 grep -v '^ *+' conftest.er1 >conftest.err
15141 cat conftest.err >&5
15142 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15143 (exit $ac_status); } >/dev/null; then
15144 if test -s conftest.err; then
15145 ac_cpp_err=$ac_c_preproc_warn_flag
15146 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15153 if test -z "$ac_cpp_err"; then
15154 ac_header_preproc=yes
15156 echo "$as_me: failed program was
:" >&5
15157 sed 's/^/| /' conftest.$ac_ext >&5
15159 ac_header_preproc=no
15162 rm -f conftest.err conftest.$ac_ext
15163 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15164 echo "${ECHO_T}$ac_header_preproc" >&6; }
15166 # So? What about this header?
15167 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15169 { echo "$as_me:$LINENO: WARNING
: ${ALSA_DIR}/include
/alsa
/asoundlib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
15170 echo "$as_me: WARNING
: ${ALSA_DIR}/include
/alsa
/asoundlib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15171 { echo "$as_me:$LINENO: WARNING
: ${ALSA_DIR}/include
/alsa
/asoundlib.h
: proceeding with the compiler
's result" >&5
15172 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the compiler's result
" >&2;}
15173 ac_header_preproc=yes
15176 { echo "$as_me:$LINENO: WARNING
: ${ALSA_DIR}/include
/alsa
/asoundlib.h
: present but cannot be compiled
" >&5
15177 echo "$as_me: WARNING
: ${ALSA_DIR}/include
/alsa
/asoundlib.h
: present but cannot be compiled
" >&2;}
15178 { echo "$as_me:$LINENO: WARNING
: ${ALSA_DIR}/include
/alsa
/asoundlib.h
: check
for missing prerequisite headers?
" >&5
15179 echo "$as_me: WARNING
: ${ALSA_DIR}/include
/alsa
/asoundlib.h
: check
for missing prerequisite headers?
" >&2;}
15180 { echo "$as_me:$LINENO: WARNING
: ${ALSA_DIR}/include
/alsa
/asoundlib.h
: see the Autoconf documentation
" >&5
15181 echo "$as_me: WARNING
: ${ALSA_DIR}/include
/alsa
/asoundlib.h
: see the Autoconf documentation
" >&2;}
15182 { echo "$as_me:$LINENO: WARNING
: ${ALSA_DIR}/include
/alsa
/asoundlib.h
: section
\"Present But Cannot Be Compiled
\"" >&5
15183 echo "$as_me: WARNING
: ${ALSA_DIR}/include
/alsa
/asoundlib.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
15184 { echo "$as_me:$LINENO: WARNING
: ${ALSA_DIR}/include
/alsa
/asoundlib.h
: proceeding with the preprocessor
's result" >&5
15185 echo "$as_me: WARNING: ${ALSA_DIR}/include/alsa/asoundlib.h: proceeding with the preprocessor's result
" >&2;}
15186 { echo "$as_me:$LINENO: WARNING
: ${ALSA_DIR}/include
/alsa
/asoundlib.h
: in the future
, the compiler will take precedence
" >&5
15187 echo "$as_me: WARNING
: ${ALSA_DIR}/include
/alsa
/asoundlib.h
: in the future
, the compiler will take precedence
" >&2;}
15191 { echo "$as_me:$LINENO: checking
for ${ALSA_DIR}/include
/alsa
/asoundlib.h
" >&5
15192 echo $ECHO_N "checking
for ${ALSA_DIR}/include
/alsa
/asoundlib.h...
$ECHO_C" >&6; }
15193 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15194 echo $ECHO_N "(cached
) $ECHO_C" >&6
15196 eval "$as_ac_Header=\
$ac_header_preproc"
15198 ac_res=`eval echo '${'$as_ac_Header'}'`
15199 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15200 echo "${ECHO_T}$ac_res" >&6; }
15203 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15204 ALSA_HEADER_FOUND=1
15206 ALSA_HEADER_FOUND=0
15212 if test "xalsa
/asoundlib.h
" != "x
" ; then
15213 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
15214 { echo "$as_me:$LINENO: checking
for alsa
/asoundlib.h
" >&5
15215 echo $ECHO_N "checking
for alsa
/asoundlib.h...
$ECHO_C" >&6; }
15216 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
15217 echo $ECHO_N "(cached
) $ECHO_C" >&6
15219 { echo "$as_me:$LINENO: result
: $ac_cv_header_alsa_asoundlib_h" >&5
15220 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
15222 # Is the header compilable?
15223 { echo "$as_me:$LINENO: checking alsa
/asoundlib.h usability
" >&5
15224 echo $ECHO_N "checking alsa
/asoundlib.h usability...
$ECHO_C" >&6; }
15225 cat >conftest.$ac_ext <<_ACEOF
15228 cat confdefs.h >>conftest.$ac_ext
15229 cat >>conftest.$ac_ext <<_ACEOF
15230 /* end confdefs.h. */
15231 $ac_includes_default
15232 #include <alsa/asoundlib.h>
15234 rm -f conftest.$ac_objext
15235 if { (ac_try="$ac_compile"
15236 case "(($ac_try" in
15237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15238 *) ac_try_echo=$ac_try;;
15240 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15241 (eval "$ac_compile") 2>conftest.er1
15243 grep -v '^ *+' conftest.er1 >conftest.err
15245 cat conftest.err >&5
15246 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15247 (exit $ac_status); } &&
15248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15249 { (case "(($ac_try" in
15250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15251 *) ac_try_echo=$ac_try;;
15253 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15254 (eval "$ac_try") 2>&5
15256 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15257 (exit $ac_status); }; } &&
15258 { ac_try='test -s conftest.$ac_objext'
15259 { (case "(($ac_try" in
15260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15261 *) ac_try_echo=$ac_try;;
15263 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15264 (eval "$ac_try") 2>&5
15266 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15267 (exit $ac_status); }; }; then
15268 ac_header_compiler=yes
15270 echo "$as_me: failed program was
:" >&5
15271 sed 's/^/| /' conftest.$ac_ext >&5
15273 ac_header_compiler=no
15276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15277 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15278 echo "${ECHO_T}$ac_header_compiler" >&6; }
15280 # Is the header present?
15281 { echo "$as_me:$LINENO: checking alsa
/asoundlib.h presence
" >&5
15282 echo $ECHO_N "checking alsa
/asoundlib.h presence...
$ECHO_C" >&6; }
15283 cat >conftest.$ac_ext <<_ACEOF
15286 cat confdefs.h >>conftest.$ac_ext
15287 cat >>conftest.$ac_ext <<_ACEOF
15288 /* end confdefs.h. */
15289 #include <alsa/asoundlib.h>
15291 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15292 case "(($ac_try" in
15293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15294 *) ac_try_echo=$ac_try;;
15296 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15297 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15299 grep -v '^ *+' conftest.er1 >conftest.err
15301 cat conftest.err >&5
15302 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15303 (exit $ac_status); } >/dev/null; then
15304 if test -s conftest.err; then
15305 ac_cpp_err=$ac_c_preproc_warn_flag
15306 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15313 if test -z "$ac_cpp_err"; then
15314 ac_header_preproc=yes
15316 echo "$as_me: failed program was
:" >&5
15317 sed 's/^/| /' conftest.$ac_ext >&5
15319 ac_header_preproc=no
15322 rm -f conftest.err conftest.$ac_ext
15323 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15324 echo "${ECHO_T}$ac_header_preproc" >&6; }
15326 # So? What about this header?
15327 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15329 { echo "$as_me:$LINENO: WARNING
: alsa
/asoundlib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
15330 echo "$as_me: WARNING
: alsa
/asoundlib.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15331 { echo "$as_me:$LINENO: WARNING
: alsa
/asoundlib.h
: proceeding with the compiler
's result" >&5
15332 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the compiler's result
" >&2;}
15333 ac_header_preproc=yes
15336 { echo "$as_me:$LINENO: WARNING
: alsa
/asoundlib.h
: present but cannot be compiled
" >&5
15337 echo "$as_me: WARNING
: alsa
/asoundlib.h
: present but cannot be compiled
" >&2;}
15338 { echo "$as_me:$LINENO: WARNING
: alsa
/asoundlib.h
: check
for missing prerequisite headers?
" >&5
15339 echo "$as_me: WARNING
: alsa
/asoundlib.h
: check
for missing prerequisite headers?
" >&2;}
15340 { echo "$as_me:$LINENO: WARNING
: alsa
/asoundlib.h
: see the Autoconf documentation
" >&5
15341 echo "$as_me: WARNING
: alsa
/asoundlib.h
: see the Autoconf documentation
" >&2;}
15342 { echo "$as_me:$LINENO: WARNING
: alsa
/asoundlib.h
: section
\"Present But Cannot Be Compiled
\"" >&5
15343 echo "$as_me: WARNING
: alsa
/asoundlib.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
15344 { echo "$as_me:$LINENO: WARNING
: alsa
/asoundlib.h
: proceeding with the preprocessor
's result" >&5
15345 echo "$as_me: WARNING: alsa/asoundlib.h: proceeding with the preprocessor's result
" >&2;}
15346 { echo "$as_me:$LINENO: WARNING
: alsa
/asoundlib.h
: in the future
, the compiler will take precedence
" >&5
15347 echo "$as_me: WARNING
: alsa
/asoundlib.h
: in the future
, the compiler will take precedence
" >&2;}
15351 { echo "$as_me:$LINENO: checking
for alsa
/asoundlib.h
" >&5
15352 echo $ECHO_N "checking
for alsa
/asoundlib.h...
$ECHO_C" >&6; }
15353 if test "${ac_cv_header_alsa_asoundlib_h+set}" = set; then
15354 echo $ECHO_N "(cached
) $ECHO_C" >&6
15356 ac_cv_header_alsa_asoundlib_h=$ac_header_preproc
15358 { echo "$as_me:$LINENO: result
: $ac_cv_header_alsa_asoundlib_h" >&5
15359 echo "${ECHO_T}$ac_cv_header_alsa_asoundlib_h" >&6; }
15362 if test $ac_cv_header_alsa_asoundlib_h = yes; then
15363 ALSA_HEADER_FOUND=1
15365 ALSA_HEADER_FOUND=0
15371 if test "x
${ALSA_HEADER_FOUND}" = "x0
" ; then
15372 if test ! -z "${ALSA_MANDATORY}" ;
15375 echo " *** It appears that you
do not have the asound development package installed.
"
15376 echo " *** Please
install it to include
${ALSA_DESCRIP} support
, or re-run configure
"
15377 echo " *** without explicitly specifying
--with-${ALSA_OPTION}"
15386 cat >>confdefs.h <<_ACEOF
15387 #define HAVE_ALSA 1
15391 elif test ! -z "${ALSA_MANDATORY}";
15394 echo "*** The
${ALSA_DESCRIP} installation on this system appears to be broken.
"
15395 echo "*** Either correct the installation
, or run configure
"
15396 echo "*** without explicitly specifying
--with-${ALSA_OPTION}"
15403 if test "${USE_CURSES}" != "no
"; then
15405 if test "x
${CURSES_DIR}" != "x
"; then
15406 if test -d ${CURSES_DIR}/lib; then
15407 pbxlibdir="-L${CURSES_DIR}/lib
"
15409 pbxlibdir="-L${CURSES_DIR}"
15412 { echo "$as_me:$LINENO: checking
for initscr
in -lcurses" >&5
15413 echo $ECHO_N "checking
for initscr
in -lcurses...
$ECHO_C" >&6; }
15414 if test "${ac_cv_lib_curses_initscr+set}" = set; then
15415 echo $ECHO_N "(cached
) $ECHO_C" >&6
15417 ac_check_lib_save_LIBS=$LIBS
15418 LIBS="-lcurses ${pbxlibdir} $LIBS"
15419 cat >conftest.$ac_ext <<_ACEOF
15422 cat confdefs.h >>conftest.$ac_ext
15423 cat >>conftest.$ac_ext <<_ACEOF
15424 /* end confdefs.h. */
15426 /* Override any GCC internal prototype to avoid an error.
15427 Use char because int might match the return type of a GCC
15428 builtin and then its argument prototype would still apply. */
15441 rm -f conftest.$ac_objext conftest$ac_exeext
15442 if { (ac_try="$ac_link"
15443 case "(($ac_try" in
15444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15445 *) ac_try_echo=$ac_try;;
15447 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15448 (eval "$ac_link") 2>conftest.er1
15450 grep -v '^ *+' conftest.er1 >conftest.err
15452 cat conftest.err >&5
15453 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15454 (exit $ac_status); } &&
15455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15456 { (case "(($ac_try" in
15457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15458 *) ac_try_echo=$ac_try;;
15460 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15461 (eval "$ac_try") 2>&5
15463 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15464 (exit $ac_status); }; } &&
15465 { ac_try='test -s conftest$ac_exeext'
15466 { (case "(($ac_try" in
15467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15468 *) ac_try_echo=$ac_try;;
15470 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15471 (eval "$ac_try") 2>&5
15473 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15474 (exit $ac_status); }; }; then
15475 ac_cv_lib_curses_initscr=yes
15477 echo "$as_me: failed program was
:" >&5
15478 sed 's/^/| /' conftest.$ac_ext >&5
15480 ac_cv_lib_curses_initscr=no
15483 rm -f conftest.err conftest.$ac_objext \
15484 conftest$ac_exeext conftest.$ac_ext
15485 LIBS=$ac_check_lib_save_LIBS
15487 { echo "$as_me:$LINENO: result
: $ac_cv_lib_curses_initscr" >&5
15488 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6; }
15489 if test $ac_cv_lib_curses_initscr = yes; then
15490 AST_CURSES_FOUND=yes
15492 AST_CURSES_FOUND=no
15496 if test "${AST_CURSES_FOUND}" = "yes"; then
15497 CURSES_LIB="-lcurses "
15498 CURSES_HEADER_FOUND="1"
15499 if test "x
${CURSES_DIR}" != "x
"; then
15500 CURSES_LIB="${pbxlibdir} ${CURSES_LIB}"
15501 CURSES_INCLUDE="-I${CURSES_DIR}/include
"
15502 if test "xcurses.h
" != "x
" ; then
15503 as_ac_Header=`echo "ac_cv_header_
${CURSES_DIR}/include
/curses.h
" | $as_tr_sh`
15504 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15505 { echo "$as_me:$LINENO: checking
for ${CURSES_DIR}/include
/curses.h
" >&5
15506 echo $ECHO_N "checking
for ${CURSES_DIR}/include
/curses.h...
$ECHO_C" >&6; }
15507 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15508 echo $ECHO_N "(cached
) $ECHO_C" >&6
15510 ac_res=`eval echo '${'$as_ac_Header'}'`
15511 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15512 echo "${ECHO_T}$ac_res" >&6; }
15514 # Is the header compilable?
15515 { echo "$as_me:$LINENO: checking
${CURSES_DIR}/include
/curses.h usability
" >&5
15516 echo $ECHO_N "checking
${CURSES_DIR}/include
/curses.h usability...
$ECHO_C" >&6; }
15517 cat >conftest.$ac_ext <<_ACEOF
15520 cat confdefs.h >>conftest.$ac_ext
15521 cat >>conftest.$ac_ext <<_ACEOF
15522 /* end confdefs.h. */
15523 $ac_includes_default
15524 #include <${CURSES_DIR}/include/curses.h>
15526 rm -f conftest.$ac_objext
15527 if { (ac_try="$ac_compile"
15528 case "(($ac_try" in
15529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15530 *) ac_try_echo=$ac_try;;
15532 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15533 (eval "$ac_compile") 2>conftest.er1
15535 grep -v '^ *+' conftest.er1 >conftest.err
15537 cat conftest.err >&5
15538 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15539 (exit $ac_status); } &&
15540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15541 { (case "(($ac_try" in
15542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15543 *) ac_try_echo=$ac_try;;
15545 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15546 (eval "$ac_try") 2>&5
15548 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15549 (exit $ac_status); }; } &&
15550 { ac_try='test -s conftest.$ac_objext'
15551 { (case "(($ac_try" in
15552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15553 *) ac_try_echo=$ac_try;;
15555 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15556 (eval "$ac_try") 2>&5
15558 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15559 (exit $ac_status); }; }; then
15560 ac_header_compiler=yes
15562 echo "$as_me: failed program was
:" >&5
15563 sed 's/^/| /' conftest.$ac_ext >&5
15565 ac_header_compiler=no
15568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15569 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15570 echo "${ECHO_T}$ac_header_compiler" >&6; }
15572 # Is the header present?
15573 { echo "$as_me:$LINENO: checking
${CURSES_DIR}/include
/curses.h presence
" >&5
15574 echo $ECHO_N "checking
${CURSES_DIR}/include
/curses.h presence...
$ECHO_C" >&6; }
15575 cat >conftest.$ac_ext <<_ACEOF
15578 cat confdefs.h >>conftest.$ac_ext
15579 cat >>conftest.$ac_ext <<_ACEOF
15580 /* end confdefs.h. */
15581 #include <${CURSES_DIR}/include/curses.h>
15583 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15584 case "(($ac_try" in
15585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15586 *) ac_try_echo=$ac_try;;
15588 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15589 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15591 grep -v '^ *+' conftest.er1 >conftest.err
15593 cat conftest.err >&5
15594 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15595 (exit $ac_status); } >/dev/null; then
15596 if test -s conftest.err; then
15597 ac_cpp_err=$ac_c_preproc_warn_flag
15598 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15605 if test -z "$ac_cpp_err"; then
15606 ac_header_preproc=yes
15608 echo "$as_me: failed program was
:" >&5
15609 sed 's/^/| /' conftest.$ac_ext >&5
15611 ac_header_preproc=no
15614 rm -f conftest.err conftest.$ac_ext
15615 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15616 echo "${ECHO_T}$ac_header_preproc" >&6; }
15618 # So? What about this header?
15619 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15621 { echo "$as_me:$LINENO: WARNING
: ${CURSES_DIR}/include
/curses.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
15622 echo "$as_me: WARNING
: ${CURSES_DIR}/include
/curses.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15623 { echo "$as_me:$LINENO: WARNING
: ${CURSES_DIR}/include
/curses.h
: proceeding with the compiler
's result" >&5
15624 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the compiler's result
" >&2;}
15625 ac_header_preproc=yes
15628 { echo "$as_me:$LINENO: WARNING
: ${CURSES_DIR}/include
/curses.h
: present but cannot be compiled
" >&5
15629 echo "$as_me: WARNING
: ${CURSES_DIR}/include
/curses.h
: present but cannot be compiled
" >&2;}
15630 { echo "$as_me:$LINENO: WARNING
: ${CURSES_DIR}/include
/curses.h
: check
for missing prerequisite headers?
" >&5
15631 echo "$as_me: WARNING
: ${CURSES_DIR}/include
/curses.h
: check
for missing prerequisite headers?
" >&2;}
15632 { echo "$as_me:$LINENO: WARNING
: ${CURSES_DIR}/include
/curses.h
: see the Autoconf documentation
" >&5
15633 echo "$as_me: WARNING
: ${CURSES_DIR}/include
/curses.h
: see the Autoconf documentation
" >&2;}
15634 { echo "$as_me:$LINENO: WARNING
: ${CURSES_DIR}/include
/curses.h
: section
\"Present But Cannot Be Compiled
\"" >&5
15635 echo "$as_me: WARNING
: ${CURSES_DIR}/include
/curses.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
15636 { echo "$as_me:$LINENO: WARNING
: ${CURSES_DIR}/include
/curses.h
: proceeding with the preprocessor
's result" >&5
15637 echo "$as_me: WARNING: ${CURSES_DIR}/include/curses.h: proceeding with the preprocessor's result
" >&2;}
15638 { echo "$as_me:$LINENO: WARNING
: ${CURSES_DIR}/include
/curses.h
: in the future
, the compiler will take precedence
" >&5
15639 echo "$as_me: WARNING
: ${CURSES_DIR}/include
/curses.h
: in the future
, the compiler will take precedence
" >&2;}
15643 { echo "$as_me:$LINENO: checking
for ${CURSES_DIR}/include
/curses.h
" >&5
15644 echo $ECHO_N "checking
for ${CURSES_DIR}/include
/curses.h...
$ECHO_C" >&6; }
15645 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15646 echo $ECHO_N "(cached
) $ECHO_C" >&6
15648 eval "$as_ac_Header=\
$ac_header_preproc"
15650 ac_res=`eval echo '${'$as_ac_Header'}'`
15651 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15652 echo "${ECHO_T}$ac_res" >&6; }
15655 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15656 CURSES_HEADER_FOUND=1
15658 CURSES_HEADER_FOUND=0
15664 if test "xcurses.h
" != "x
" ; then
15665 if test "${ac_cv_header_curses_h+set}" = set; then
15666 { echo "$as_me:$LINENO: checking
for curses.h
" >&5
15667 echo $ECHO_N "checking
for curses.h...
$ECHO_C" >&6; }
15668 if test "${ac_cv_header_curses_h+set}" = set; then
15669 echo $ECHO_N "(cached
) $ECHO_C" >&6
15671 { echo "$as_me:$LINENO: result
: $ac_cv_header_curses_h" >&5
15672 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
15674 # Is the header compilable?
15675 { echo "$as_me:$LINENO: checking curses.h usability
" >&5
15676 echo $ECHO_N "checking curses.h usability...
$ECHO_C" >&6; }
15677 cat >conftest.$ac_ext <<_ACEOF
15680 cat confdefs.h >>conftest.$ac_ext
15681 cat >>conftest.$ac_ext <<_ACEOF
15682 /* end confdefs.h. */
15683 $ac_includes_default
15684 #include <curses.h>
15686 rm -f conftest.$ac_objext
15687 if { (ac_try="$ac_compile"
15688 case "(($ac_try" in
15689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15690 *) ac_try_echo=$ac_try;;
15692 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15693 (eval "$ac_compile") 2>conftest.er1
15695 grep -v '^ *+' conftest.er1 >conftest.err
15697 cat conftest.err >&5
15698 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15699 (exit $ac_status); } &&
15700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15701 { (case "(($ac_try" in
15702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15703 *) ac_try_echo=$ac_try;;
15705 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15706 (eval "$ac_try") 2>&5
15708 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15709 (exit $ac_status); }; } &&
15710 { ac_try='test -s conftest.$ac_objext'
15711 { (case "(($ac_try" in
15712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15713 *) ac_try_echo=$ac_try;;
15715 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15716 (eval "$ac_try") 2>&5
15718 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15719 (exit $ac_status); }; }; then
15720 ac_header_compiler=yes
15722 echo "$as_me: failed program was
:" >&5
15723 sed 's/^/| /' conftest.$ac_ext >&5
15725 ac_header_compiler=no
15728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15729 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15730 echo "${ECHO_T}$ac_header_compiler" >&6; }
15732 # Is the header present?
15733 { echo "$as_me:$LINENO: checking curses.h presence
" >&5
15734 echo $ECHO_N "checking curses.h presence...
$ECHO_C" >&6; }
15735 cat >conftest.$ac_ext <<_ACEOF
15738 cat confdefs.h >>conftest.$ac_ext
15739 cat >>conftest.$ac_ext <<_ACEOF
15740 /* end confdefs.h. */
15741 #include <curses.h>
15743 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15744 case "(($ac_try" in
15745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15746 *) ac_try_echo=$ac_try;;
15748 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15749 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15751 grep -v '^ *+' conftest.er1 >conftest.err
15753 cat conftest.err >&5
15754 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15755 (exit $ac_status); } >/dev/null; then
15756 if test -s conftest.err; then
15757 ac_cpp_err=$ac_c_preproc_warn_flag
15758 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15765 if test -z "$ac_cpp_err"; then
15766 ac_header_preproc=yes
15768 echo "$as_me: failed program was
:" >&5
15769 sed 's/^/| /' conftest.$ac_ext >&5
15771 ac_header_preproc=no
15774 rm -f conftest.err conftest.$ac_ext
15775 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15776 echo "${ECHO_T}$ac_header_preproc" >&6; }
15778 # So? What about this header?
15779 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15781 { echo "$as_me:$LINENO: WARNING
: curses.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
15782 echo "$as_me: WARNING
: curses.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15783 { echo "$as_me:$LINENO: WARNING
: curses.h
: proceeding with the compiler
's result" >&5
15784 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result
" >&2;}
15785 ac_header_preproc=yes
15788 { echo "$as_me:$LINENO: WARNING
: curses.h
: present but cannot be compiled
" >&5
15789 echo "$as_me: WARNING
: curses.h
: present but cannot be compiled
" >&2;}
15790 { echo "$as_me:$LINENO: WARNING
: curses.h
: check
for missing prerequisite headers?
" >&5
15791 echo "$as_me: WARNING
: curses.h
: check
for missing prerequisite headers?
" >&2;}
15792 { echo "$as_me:$LINENO: WARNING
: curses.h
: see the Autoconf documentation
" >&5
15793 echo "$as_me: WARNING
: curses.h
: see the Autoconf documentation
" >&2;}
15794 { echo "$as_me:$LINENO: WARNING
: curses.h
: section
\"Present But Cannot Be Compiled
\"" >&5
15795 echo "$as_me: WARNING
: curses.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
15796 { echo "$as_me:$LINENO: WARNING
: curses.h
: proceeding with the preprocessor
's result" >&5
15797 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result
" >&2;}
15798 { echo "$as_me:$LINENO: WARNING
: curses.h
: in the future
, the compiler will take precedence
" >&5
15799 echo "$as_me: WARNING
: curses.h
: in the future
, the compiler will take precedence
" >&2;}
15803 { echo "$as_me:$LINENO: checking
for curses.h
" >&5
15804 echo $ECHO_N "checking
for curses.h...
$ECHO_C" >&6; }
15805 if test "${ac_cv_header_curses_h+set}" = set; then
15806 echo $ECHO_N "(cached
) $ECHO_C" >&6
15808 ac_cv_header_curses_h=$ac_header_preproc
15810 { echo "$as_me:$LINENO: result
: $ac_cv_header_curses_h" >&5
15811 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
15814 if test $ac_cv_header_curses_h = yes; then
15815 CURSES_HEADER_FOUND=1
15817 CURSES_HEADER_FOUND=0
15823 if test "x
${CURSES_HEADER_FOUND}" = "x0
" ; then
15824 if test ! -z "${CURSES_MANDATORY}" ;
15827 echo " *** It appears that you
do not have the curses development package installed.
"
15828 echo " *** Please
install it to include
${CURSES_DESCRIP} support
, or re-run configure
"
15829 echo " *** without explicitly specifying
--with-${CURSES_OPTION}"
15838 cat >>confdefs.h <<_ACEOF
15839 #define HAVE_CURSES 1
15843 elif test ! -z "${CURSES_MANDATORY}";
15846 echo "*** The
${CURSES_DESCRIP} installation on this system appears to be broken.
"
15847 echo "*** Either correct the installation
, or run configure
"
15848 echo "*** without explicitly specifying
--with-${CURSES_OPTION}"
15856 if test "${USE_GSM}" != "no
"; then
15857 if test "${GSM_DIR}" = "internal
"; then
15859 elif test "${GSM_DIR}" != ""; then
15862 if test "${GSM_SYSTEM}" = "yes"; then
15864 if test "x
${GSM_DIR}" != "x
"; then
15865 if test -d ${GSM_DIR}/lib; then
15866 gsmlibdir="-L${GSM_DIR}/lib
"
15868 gsmlibdir="-L${GSM_DIR}"
15871 { echo "$as_me:$LINENO: checking
for gsm_create
in -lgsm" >&5
15872 echo $ECHO_N "checking
for gsm_create
in -lgsm...
$ECHO_C" >&6; }
15873 if test "${ac_cv_lib_gsm_gsm_create+set}" = set; then
15874 echo $ECHO_N "(cached
) $ECHO_C" >&6
15876 ac_check_lib_save_LIBS=$LIBS
15877 LIBS="-lgsm ${gsmlibdir} $LIBS"
15878 cat >conftest.$ac_ext <<_ACEOF
15881 cat confdefs.h >>conftest.$ac_ext
15882 cat >>conftest.$ac_ext <<_ACEOF
15883 /* end confdefs.h. */
15885 /* Override any GCC internal prototype to avoid an error.
15886 Use char because int might match the return type of a GCC
15887 builtin and then its argument prototype would still apply. */
15891 char gsm_create ();
15895 return gsm_create ();
15900 rm -f conftest.$ac_objext conftest$ac_exeext
15901 if { (ac_try="$ac_link"
15902 case "(($ac_try" in
15903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15904 *) ac_try_echo=$ac_try;;
15906 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15907 (eval "$ac_link") 2>conftest.er1
15909 grep -v '^ *+' conftest.er1 >conftest.err
15911 cat conftest.err >&5
15912 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15913 (exit $ac_status); } &&
15914 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15915 { (case "(($ac_try" in
15916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15917 *) ac_try_echo=$ac_try;;
15919 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15920 (eval "$ac_try") 2>&5
15922 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15923 (exit $ac_status); }; } &&
15924 { ac_try='test -s conftest$ac_exeext'
15925 { (case "(($ac_try" in
15926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15927 *) ac_try_echo=$ac_try;;
15929 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15930 (eval "$ac_try") 2>&5
15932 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15933 (exit $ac_status); }; }; then
15934 ac_cv_lib_gsm_gsm_create=yes
15936 echo "$as_me: failed program was
:" >&5
15937 sed 's/^/| /' conftest.$ac_ext >&5
15939 ac_cv_lib_gsm_gsm_create=no
15942 rm -f conftest.err conftest.$ac_objext \
15943 conftest$ac_exeext conftest.$ac_ext
15944 LIBS=$ac_check_lib_save_LIBS
15946 { echo "$as_me:$LINENO: result
: $ac_cv_lib_gsm_gsm_create" >&5
15947 echo "${ECHO_T}$ac_cv_lib_gsm_gsm_create" >&6; }
15948 if test $ac_cv_lib_gsm_gsm_create = yes; then
15950 cat >>confdefs.h <<_ACEOF
15956 if test "${ac_cv_lib_gsm_gsm_create}" = "yes"; then
15958 if test "x
${GSM_DIR}" != "x
"; then
15959 GSM_LIB="${gsmlibdir} ${GSM_LIB}"
15960 GSM_INCLUDE="-I${GSM_DIR}/include
"
15966 if test "${GSM_INTERNAL}" = "yes"; then
15973 if test "${USE_IKSEMEL}" != "no
"; then
15975 if test "x
${IKSEMEL_DIR}" != "x
"; then
15976 if test -d ${IKSEMEL_DIR}/lib; then
15977 pbxlibdir="-L${IKSEMEL_DIR}/lib
"
15979 pbxlibdir="-L${IKSEMEL_DIR}"
15982 { echo "$as_me:$LINENO: checking
for iks_start_sasl
in -liksemel" >&5
15983 echo $ECHO_N "checking
for iks_start_sasl
in -liksemel...
$ECHO_C" >&6; }
15984 if test "${ac_cv_lib_iksemel_iks_start_sasl+set}" = set; then
15985 echo $ECHO_N "(cached
) $ECHO_C" >&6
15987 ac_check_lib_save_LIBS=$LIBS
15988 LIBS="-liksemel ${pbxlibdir} $LIBS"
15989 cat >conftest.$ac_ext <<_ACEOF
15992 cat confdefs.h >>conftest.$ac_ext
15993 cat >>conftest.$ac_ext <<_ACEOF
15994 /* end confdefs.h. */
15996 /* Override any GCC internal prototype to avoid an error.
15997 Use char because int might match the return type of a GCC
15998 builtin and then its argument prototype would still apply. */
16002 char iks_start_sasl ();
16006 return iks_start_sasl ();
16011 rm -f conftest.$ac_objext conftest$ac_exeext
16012 if { (ac_try="$ac_link"
16013 case "(($ac_try" in
16014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16015 *) ac_try_echo=$ac_try;;
16017 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16018 (eval "$ac_link") 2>conftest.er1
16020 grep -v '^ *+' conftest.er1 >conftest.err
16022 cat conftest.err >&5
16023 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16024 (exit $ac_status); } &&
16025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16026 { (case "(($ac_try" in
16027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16028 *) ac_try_echo=$ac_try;;
16030 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16031 (eval "$ac_try") 2>&5
16033 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16034 (exit $ac_status); }; } &&
16035 { ac_try='test -s conftest$ac_exeext'
16036 { (case "(($ac_try" in
16037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16038 *) ac_try_echo=$ac_try;;
16040 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16041 (eval "$ac_try") 2>&5
16043 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16044 (exit $ac_status); }; }; then
16045 ac_cv_lib_iksemel_iks_start_sasl=yes
16047 echo "$as_me: failed program was
:" >&5
16048 sed 's/^/| /' conftest.$ac_ext >&5
16050 ac_cv_lib_iksemel_iks_start_sasl=no
16053 rm -f conftest.err conftest.$ac_objext \
16054 conftest$ac_exeext conftest.$ac_ext
16055 LIBS=$ac_check_lib_save_LIBS
16057 { echo "$as_me:$LINENO: result
: $ac_cv_lib_iksemel_iks_start_sasl" >&5
16058 echo "${ECHO_T}$ac_cv_lib_iksemel_iks_start_sasl" >&6; }
16059 if test $ac_cv_lib_iksemel_iks_start_sasl = yes; then
16060 AST_IKSEMEL_FOUND=yes
16062 AST_IKSEMEL_FOUND=no
16066 if test "${AST_IKSEMEL_FOUND}" = "yes"; then
16067 IKSEMEL_LIB="-liksemel "
16068 IKSEMEL_HEADER_FOUND="1"
16069 if test "x
${IKSEMEL_DIR}" != "x
"; then
16070 IKSEMEL_LIB="${pbxlibdir} ${IKSEMEL_LIB}"
16071 IKSEMEL_INCLUDE="-I${IKSEMEL_DIR}/include
"
16072 if test "xiksemel.h
" != "x
" ; then
16073 as_ac_Header=`echo "ac_cv_header_
${IKSEMEL_DIR}/include
/iksemel.h
" | $as_tr_sh`
16074 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16075 { echo "$as_me:$LINENO: checking
for ${IKSEMEL_DIR}/include
/iksemel.h
" >&5
16076 echo $ECHO_N "checking
for ${IKSEMEL_DIR}/include
/iksemel.h...
$ECHO_C" >&6; }
16077 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16078 echo $ECHO_N "(cached
) $ECHO_C" >&6
16080 ac_res=`eval echo '${'$as_ac_Header'}'`
16081 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16082 echo "${ECHO_T}$ac_res" >&6; }
16084 # Is the header compilable?
16085 { echo "$as_me:$LINENO: checking
${IKSEMEL_DIR}/include
/iksemel.h usability
" >&5
16086 echo $ECHO_N "checking
${IKSEMEL_DIR}/include
/iksemel.h usability...
$ECHO_C" >&6; }
16087 cat >conftest.$ac_ext <<_ACEOF
16090 cat confdefs.h >>conftest.$ac_ext
16091 cat >>conftest.$ac_ext <<_ACEOF
16092 /* end confdefs.h. */
16093 $ac_includes_default
16094 #include <${IKSEMEL_DIR}/include/iksemel.h>
16096 rm -f conftest.$ac_objext
16097 if { (ac_try="$ac_compile"
16098 case "(($ac_try" in
16099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16100 *) ac_try_echo=$ac_try;;
16102 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16103 (eval "$ac_compile") 2>conftest.er1
16105 grep -v '^ *+' conftest.er1 >conftest.err
16107 cat conftest.err >&5
16108 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16109 (exit $ac_status); } &&
16110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16111 { (case "(($ac_try" in
16112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16113 *) ac_try_echo=$ac_try;;
16115 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16116 (eval "$ac_try") 2>&5
16118 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16119 (exit $ac_status); }; } &&
16120 { ac_try='test -s conftest.$ac_objext'
16121 { (case "(($ac_try" in
16122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16123 *) ac_try_echo=$ac_try;;
16125 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16126 (eval "$ac_try") 2>&5
16128 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16129 (exit $ac_status); }; }; then
16130 ac_header_compiler=yes
16132 echo "$as_me: failed program was
:" >&5
16133 sed 's/^/| /' conftest.$ac_ext >&5
16135 ac_header_compiler=no
16138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16139 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16140 echo "${ECHO_T}$ac_header_compiler" >&6; }
16142 # Is the header present?
16143 { echo "$as_me:$LINENO: checking
${IKSEMEL_DIR}/include
/iksemel.h presence
" >&5
16144 echo $ECHO_N "checking
${IKSEMEL_DIR}/include
/iksemel.h presence...
$ECHO_C" >&6; }
16145 cat >conftest.$ac_ext <<_ACEOF
16148 cat confdefs.h >>conftest.$ac_ext
16149 cat >>conftest.$ac_ext <<_ACEOF
16150 /* end confdefs.h. */
16151 #include <${IKSEMEL_DIR}/include/iksemel.h>
16153 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16154 case "(($ac_try" in
16155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16156 *) ac_try_echo=$ac_try;;
16158 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16159 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16161 grep -v '^ *+' conftest.er1 >conftest.err
16163 cat conftest.err >&5
16164 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16165 (exit $ac_status); } >/dev/null; then
16166 if test -s conftest.err; then
16167 ac_cpp_err=$ac_c_preproc_warn_flag
16168 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16175 if test -z "$ac_cpp_err"; then
16176 ac_header_preproc=yes
16178 echo "$as_me: failed program was
:" >&5
16179 sed 's/^/| /' conftest.$ac_ext >&5
16181 ac_header_preproc=no
16184 rm -f conftest.err conftest.$ac_ext
16185 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16186 echo "${ECHO_T}$ac_header_preproc" >&6; }
16188 # So? What about this header?
16189 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16191 { echo "$as_me:$LINENO: WARNING
: ${IKSEMEL_DIR}/include
/iksemel.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
16192 echo "$as_me: WARNING
: ${IKSEMEL_DIR}/include
/iksemel.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16193 { echo "$as_me:$LINENO: WARNING
: ${IKSEMEL_DIR}/include
/iksemel.h
: proceeding with the compiler
's result" >&5
16194 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the compiler's result
" >&2;}
16195 ac_header_preproc=yes
16198 { echo "$as_me:$LINENO: WARNING
: ${IKSEMEL_DIR}/include
/iksemel.h
: present but cannot be compiled
" >&5
16199 echo "$as_me: WARNING
: ${IKSEMEL_DIR}/include
/iksemel.h
: present but cannot be compiled
" >&2;}
16200 { echo "$as_me:$LINENO: WARNING
: ${IKSEMEL_DIR}/include
/iksemel.h
: check
for missing prerequisite headers?
" >&5
16201 echo "$as_me: WARNING
: ${IKSEMEL_DIR}/include
/iksemel.h
: check
for missing prerequisite headers?
" >&2;}
16202 { echo "$as_me:$LINENO: WARNING
: ${IKSEMEL_DIR}/include
/iksemel.h
: see the Autoconf documentation
" >&5
16203 echo "$as_me: WARNING
: ${IKSEMEL_DIR}/include
/iksemel.h
: see the Autoconf documentation
" >&2;}
16204 { echo "$as_me:$LINENO: WARNING
: ${IKSEMEL_DIR}/include
/iksemel.h
: section
\"Present But Cannot Be Compiled
\"" >&5
16205 echo "$as_me: WARNING
: ${IKSEMEL_DIR}/include
/iksemel.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
16206 { echo "$as_me:$LINENO: WARNING
: ${IKSEMEL_DIR}/include
/iksemel.h
: proceeding with the preprocessor
's result" >&5
16207 echo "$as_me: WARNING: ${IKSEMEL_DIR}/include/iksemel.h: proceeding with the preprocessor's result
" >&2;}
16208 { echo "$as_me:$LINENO: WARNING
: ${IKSEMEL_DIR}/include
/iksemel.h
: in the future
, the compiler will take precedence
" >&5
16209 echo "$as_me: WARNING
: ${IKSEMEL_DIR}/include
/iksemel.h
: in the future
, the compiler will take precedence
" >&2;}
16213 { echo "$as_me:$LINENO: checking
for ${IKSEMEL_DIR}/include
/iksemel.h
" >&5
16214 echo $ECHO_N "checking
for ${IKSEMEL_DIR}/include
/iksemel.h...
$ECHO_C" >&6; }
16215 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16216 echo $ECHO_N "(cached
) $ECHO_C" >&6
16218 eval "$as_ac_Header=\
$ac_header_preproc"
16220 ac_res=`eval echo '${'$as_ac_Header'}'`
16221 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16222 echo "${ECHO_T}$ac_res" >&6; }
16225 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16226 IKSEMEL_HEADER_FOUND=1
16228 IKSEMEL_HEADER_FOUND=0
16234 if test "xiksemel.h
" != "x
" ; then
16235 if test "${ac_cv_header_iksemel_h+set}" = set; then
16236 { echo "$as_me:$LINENO: checking
for iksemel.h
" >&5
16237 echo $ECHO_N "checking
for iksemel.h...
$ECHO_C" >&6; }
16238 if test "${ac_cv_header_iksemel_h+set}" = set; then
16239 echo $ECHO_N "(cached
) $ECHO_C" >&6
16241 { echo "$as_me:$LINENO: result
: $ac_cv_header_iksemel_h" >&5
16242 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
16244 # Is the header compilable?
16245 { echo "$as_me:$LINENO: checking iksemel.h usability
" >&5
16246 echo $ECHO_N "checking iksemel.h usability...
$ECHO_C" >&6; }
16247 cat >conftest.$ac_ext <<_ACEOF
16250 cat confdefs.h >>conftest.$ac_ext
16251 cat >>conftest.$ac_ext <<_ACEOF
16252 /* end confdefs.h. */
16253 $ac_includes_default
16254 #include <iksemel.h>
16256 rm -f conftest.$ac_objext
16257 if { (ac_try="$ac_compile"
16258 case "(($ac_try" in
16259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16260 *) ac_try_echo=$ac_try;;
16262 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16263 (eval "$ac_compile") 2>conftest.er1
16265 grep -v '^ *+' conftest.er1 >conftest.err
16267 cat conftest.err >&5
16268 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16269 (exit $ac_status); } &&
16270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16271 { (case "(($ac_try" in
16272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16273 *) ac_try_echo=$ac_try;;
16275 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16276 (eval "$ac_try") 2>&5
16278 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16279 (exit $ac_status); }; } &&
16280 { ac_try='test -s conftest.$ac_objext'
16281 { (case "(($ac_try" in
16282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16283 *) ac_try_echo=$ac_try;;
16285 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16286 (eval "$ac_try") 2>&5
16288 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16289 (exit $ac_status); }; }; then
16290 ac_header_compiler=yes
16292 echo "$as_me: failed program was
:" >&5
16293 sed 's/^/| /' conftest.$ac_ext >&5
16295 ac_header_compiler=no
16298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16299 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16300 echo "${ECHO_T}$ac_header_compiler" >&6; }
16302 # Is the header present?
16303 { echo "$as_me:$LINENO: checking iksemel.h presence
" >&5
16304 echo $ECHO_N "checking iksemel.h presence...
$ECHO_C" >&6; }
16305 cat >conftest.$ac_ext <<_ACEOF
16308 cat confdefs.h >>conftest.$ac_ext
16309 cat >>conftest.$ac_ext <<_ACEOF
16310 /* end confdefs.h. */
16311 #include <iksemel.h>
16313 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16314 case "(($ac_try" in
16315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16316 *) ac_try_echo=$ac_try;;
16318 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16319 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16321 grep -v '^ *+' conftest.er1 >conftest.err
16323 cat conftest.err >&5
16324 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16325 (exit $ac_status); } >/dev/null; then
16326 if test -s conftest.err; then
16327 ac_cpp_err=$ac_c_preproc_warn_flag
16328 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16335 if test -z "$ac_cpp_err"; then
16336 ac_header_preproc=yes
16338 echo "$as_me: failed program was
:" >&5
16339 sed 's/^/| /' conftest.$ac_ext >&5
16341 ac_header_preproc=no
16344 rm -f conftest.err conftest.$ac_ext
16345 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16346 echo "${ECHO_T}$ac_header_preproc" >&6; }
16348 # So? What about this header?
16349 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16351 { echo "$as_me:$LINENO: WARNING
: iksemel.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
16352 echo "$as_me: WARNING
: iksemel.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16353 { echo "$as_me:$LINENO: WARNING
: iksemel.h
: proceeding with the compiler
's result" >&5
16354 echo "$as_me: WARNING: iksemel.h: proceeding with the compiler's result
" >&2;}
16355 ac_header_preproc=yes
16358 { echo "$as_me:$LINENO: WARNING
: iksemel.h
: present but cannot be compiled
" >&5
16359 echo "$as_me: WARNING
: iksemel.h
: present but cannot be compiled
" >&2;}
16360 { echo "$as_me:$LINENO: WARNING
: iksemel.h
: check
for missing prerequisite headers?
" >&5
16361 echo "$as_me: WARNING
: iksemel.h
: check
for missing prerequisite headers?
" >&2;}
16362 { echo "$as_me:$LINENO: WARNING
: iksemel.h
: see the Autoconf documentation
" >&5
16363 echo "$as_me: WARNING
: iksemel.h
: see the Autoconf documentation
" >&2;}
16364 { echo "$as_me:$LINENO: WARNING
: iksemel.h
: section
\"Present But Cannot Be Compiled
\"" >&5
16365 echo "$as_me: WARNING
: iksemel.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
16366 { echo "$as_me:$LINENO: WARNING
: iksemel.h
: proceeding with the preprocessor
's result" >&5
16367 echo "$as_me: WARNING: iksemel.h: proceeding with the preprocessor's result
" >&2;}
16368 { echo "$as_me:$LINENO: WARNING
: iksemel.h
: in the future
, the compiler will take precedence
" >&5
16369 echo "$as_me: WARNING
: iksemel.h
: in the future
, the compiler will take precedence
" >&2;}
16373 { echo "$as_me:$LINENO: checking
for iksemel.h
" >&5
16374 echo $ECHO_N "checking
for iksemel.h...
$ECHO_C" >&6; }
16375 if test "${ac_cv_header_iksemel_h+set}" = set; then
16376 echo $ECHO_N "(cached
) $ECHO_C" >&6
16378 ac_cv_header_iksemel_h=$ac_header_preproc
16380 { echo "$as_me:$LINENO: result
: $ac_cv_header_iksemel_h" >&5
16381 echo "${ECHO_T}$ac_cv_header_iksemel_h" >&6; }
16384 if test $ac_cv_header_iksemel_h = yes; then
16385 IKSEMEL_HEADER_FOUND=1
16387 IKSEMEL_HEADER_FOUND=0
16393 if test "x
${IKSEMEL_HEADER_FOUND}" = "x0
" ; then
16394 if test ! -z "${IKSEMEL_MANDATORY}" ;
16397 echo " *** It appears that you
do not have the iksemel development package installed.
"
16398 echo " *** Please
install it to include
${IKSEMEL_DESCRIP} support
, or re-run configure
"
16399 echo " *** without explicitly specifying
--with-${IKSEMEL_OPTION}"
16408 cat >>confdefs.h <<_ACEOF
16409 #define HAVE_IKSEMEL 1
16413 elif test ! -z "${IKSEMEL_MANDATORY}";
16416 echo "*** The
${IKSEMEL_DESCRIP} installation on this system appears to be broken.
"
16417 echo "*** Either correct the installation
, or run configure
"
16418 echo "*** without explicitly specifying
--with-${IKSEMEL_OPTION}"
16424 if test "${USE_IMAP_TK}" != "no
"; then
16425 if test "${IMAP_TK_DIR}" = ""; then
16426 IMAP_TK_DIR=`pwd`"/..
/imap-2004g
"
16428 echo -n "checking
for UW IMAP Toolkit c-client library...
"
16429 saved_cppflags="${CPPFLAGS}"
16430 saved_libs="${LIBS}"
16431 if test -f ${IMAP_TK_DIR}/c-client/LDFLAGS ; then
16432 imap_ldflags=`cat ${IMAP_TK_DIR}/c-client/LDFLAGS`
16434 CPPFLAGS="${CPPFLAGS} -I${IMAP_TK_DIR}/c-client
"
16435 LIBS="${LIBS} ${IMAP_TK_DIR}/c-client/c-client.a "`echo ${imap_ldflags}`
16436 cat >conftest.$ac_ext <<_ACEOF
16439 cat confdefs.h >>conftest.$ac_ext
16440 cat >>conftest.$ac_ext <<_ACEOF
16441 /* end confdefs.h. */
16442 #include "c-client.h"
16447 void mm_searched (MAILSTREAM *stream,unsigned long number)
16450 void mm_exists (MAILSTREAM *stream,unsigned long number)
16453 void mm_expunged (MAILSTREAM *stream,unsigned long number)
16456 void mm_flags (MAILSTREAM *stream,unsigned long number)
16459 void mm_notify (MAILSTREAM *stream,char *string,long errflg)
16462 void mm_list (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
16465 void mm_lsub (MAILSTREAM *stream,int delimiter,char *mailbox,long attributes)
16468 void mm_status (MAILSTREAM *stream,char *mailbox,MAILSTATUS *status)
16471 void mm_log (char *string,long errflg)
16474 void mm_dlog (char *string)
16477 void mm_login (NETMBX *mb,char *user,char *pwd,long trial)
16480 void mm_critical (MAILSTREAM *stream)
16483 void mm_nocritical (MAILSTREAM *stream)
16486 long mm_diskerror (MAILSTREAM *stream,long errcode,long serious)
16489 void mm_fatal (char *string)
16494 MAILSTREAM *foo = mail_open(NULL, "", 0);
16502 rm -f conftest.$ac_objext conftest$ac_exeext
16503 if { (ac_try="$ac_link"
16504 case "(($ac_try" in
16505 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16506 *) ac_try_echo
=$ac_try;;
16508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16509 (eval "$ac_link") 2>conftest.er1
16511 grep -v '^ *+' conftest.er1
>conftest.err
16513 cat conftest.err
>&5
16514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16515 (exit $ac_status); } &&
16516 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16517 { (case "(($ac_try" in
16518 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16519 *) ac_try_echo=$ac_try;;
16521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16522 (eval "$ac_try") 2>&5
16524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16525 (exit $ac_status); }; } &&
16526 { ac_try='test -s conftest$ac_exeext'
16527 { (case "(($ac_try" in
16528 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16529 *) ac_try_echo
=$ac_try;;
16531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16532 (eval "$ac_try") 2>&5
16534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16535 (exit $ac_status); }; }; then
16536 ac_cv_imap_tk
="yes"
16538 echo "$as_me: failed program was:" >&5
16539 sed 's/^/| /' conftest.
$ac_ext >&5
16545 rm -f conftest.err conftest.
$ac_objext \
16546 conftest
$ac_exeext conftest.
$ac_ext
16547 CPPFLAGS
="${saved_cppflags}"
16548 LIBS
="${saved_libs}"
16549 if test "${ac_cv_imap_tk}" = "yes"; then
16550 { echo "$as_me:$LINENO: result: yes" >&5
16551 echo "${ECHO_T}yes" >&6; }
16552 IMAP_TK_LIB
="${IMAP_TK_DIR}/c-client/c-client.a "`echo ${imap_ldflags}`
16553 IMAP_TK_INCLUDE
="-I${IMAP_TK_DIR}/c-client"
16556 cat >>confdefs.h
<<\_ACEOF
16557 #define HAVE_IMAP_TK 1
16560 elif test ! -z "${IMAP_TK_MANDATORY}"; then
16561 { echo "$as_me:$LINENO: result: no" >&5
16562 echo "${ECHO_T}no" >&6; }
16564 echo "*** The UW IMAP Toolkit installation on this system appears to be broken."
16565 echo "*** Either correct the installation, or run configure"
16566 echo "*** including --without-imap."
16569 { echo "$as_me:$LINENO: result: no" >&5
16570 echo "${ECHO_T}no" >&6; }
16575 ac_cpp
='$CXXCPP $CPPFLAGS'
16576 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16577 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16578 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
16581 if test "${USE_KDE}" != "no"; then
16582 echo -n "checking for crashHandler in -lkdecore... "
16583 saved_libs
="${LIBS}"
16584 saved_cppflags
="${CPPFLAGS}"
16585 CPPFLAGS
="${CPPFLAGS} -I${KDE_DIR}/include"
16586 if test -d ${KDE_DIR}/lib
; then
16587 kdelibdir
="${KDE_DIR}/lib"
16589 kdelibdir
="${KDE_DIR}"
16591 LIBS
="${LIBS} -L${kdelibdir} -lkdecore"
16594 cat >conftest.
$ac_ext <<_ACEOF
16597 cat confdefs.h
>>conftest.
$ac_ext
16598 cat >>conftest.
$ac_ext <<_ACEOF
16599 /* end confdefs.h. */
16600 #include "kcrash.h"
16604 KCrash::defaultCrashHandler(1);
16610 rm -f conftest.
$ac_objext conftest
$ac_exeext
16611 if { (ac_try
="$ac_link"
16612 case "(($ac_try" in
16613 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16614 *) ac_try_echo=$ac_try;;
16616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16617 (eval "$ac_link") 2>conftest.er1
16619 grep -v '^ *+' conftest.er1 >conftest.err
16621 cat conftest.err >&5
16622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16623 (exit $ac_status); } &&
16624 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
16625 { (case "(($ac_try" in
16626 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16627 *) ac_try_echo
=$ac_try;;
16629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16630 (eval "$ac_try") 2>&5
16632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16633 (exit $ac_status); }; } &&
16634 { ac_try
='test -s conftest$ac_exeext'
16635 { (case "(($ac_try" in
16636 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16637 *) ac_try_echo=$ac_try;;
16639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16640 (eval "$ac_try") 2>&5
16642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643 (exit $ac_status); }; }; then
16644 ac_cv_lib_kde_crash="yes"
16646 echo "$as_me: failed program was:" >&5
16647 sed 's/^/| /' conftest.$ac_ext >&5
16649 ac_cv_lib_kde_crash="no"
16652 rm -f conftest.err conftest.$ac_objext \
16653 conftest$ac_exeext conftest.$ac_ext
16655 LIBS="${saved_libs}"
16656 CPPFLAGS="${saved_cppflags}"
16658 if test "${ac_cv_lib_kde_crash}" = "yes"; then
16659 { echo "$as_me:$LINENO: result: yes" >&5
16660 echo "${ECHO_T}yes" >&6; }
16661 KDE_LIB="-lkdecore -lkdeui"
16662 if test "${KDE_DIR}" != ""; then
16663 KDE_LIB="-L${kdelibdir} ${KDE_LIB}"
16664 KDE_INCLUDE="-I${KDE_DIR}/include"
16668 cat >>confdefs.h <<\_ACEOF
16669 #define HAVE_LIBKDE 1
16672 elif test ! -z "${KDE_MANDATORY}"; then
16673 { echo "$as_me:$LINENO: result: no" >&5
16674 echo "${ECHO_T}no" >&6; }
16676 echo "*** The KDE installation on this system appears to be broken."
16677 echo "*** Either correct the installation, or run configure"
16678 echo "*** including --without-kde."
16681 { echo "$as_me:$LINENO: result: no" >&5
16682 echo "${ECHO_T}no" >&6; }
16685 if test "${PBX_KDE}" = 1; then
16686 if test -n "$ac_tool_prefix"; then
16687 # Extract the first word of "${ac_tool_prefix}kdeinit", so it can be a program name with args.
16688 set dummy ${ac_tool_prefix}kdeinit; ac_word=$2
16689 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16691 if test "${ac_cv_path_KDEINIT+set}" = set; then
16692 echo $ECHO_N "(cached) $ECHO_C" >&6
16696 ac_cv_path_KDEINIT="$KDEINIT" # Let the user override the test with a path.
16699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16700 for as_dir in $PATH
16703 test -z "$as_dir" && as_dir=.
16704 for ac_exec_ext in '' $ac_executable_extensions; do
16705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
16706 ac_cv_path_KDEINIT="$as_dir/$ac_word$ac_exec_ext"
16707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16717 KDEINIT=$ac_cv_path_KDEINIT
16718 if test -n "$KDEINIT"; then
16719 { echo "$as_me:$LINENO: result: $KDEINIT" >&5
16720 echo "${ECHO_T}$KDEINIT" >&6; }
16722 { echo "$as_me:$LINENO: result: no" >&5
16723 echo "${ECHO_T}no" >&6; }
16728 if test -z "$ac_cv_path_KDEINIT"; then
16729 ac_pt_KDEINIT=$KDEINIT
16730 # Extract the first word of "kdeinit", so it can be a program name with args.
16731 set dummy kdeinit; ac_word=$2
16732 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16734 if test "${ac_cv_path_ac_pt_KDEINIT+set}" = set; then
16735 echo $ECHO_N "(cached) $ECHO_C" >&6
16737 case $ac_pt_KDEINIT in
16739 ac_cv_path_ac_pt_KDEINIT="$ac_pt_KDEINIT" # Let the user override the test with a path.
16742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16743 for as_dir in $PATH
16746 test -z "$as_dir" && as_dir=.
16747 for ac_exec_ext in '' $ac_executable_extensions; do
16748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
16749 ac_cv_path_ac_pt_KDEINIT="$as_dir/$ac_word$ac_exec_ext"
16750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16760 ac_pt_KDEINIT=$ac_cv_path_ac_pt_KDEINIT
16761 if test -n "$ac_pt_KDEINIT"; then
16762 { echo "$as_me:$LINENO: result: $ac_pt_KDEINIT" >&5
16763 echo "${ECHO_T}$ac_pt_KDEINIT" >&6; }
16765 { echo "$as_me:$LINENO: result: no" >&5
16766 echo "${ECHO_T}no" >&6; }
16769 if test "x$ac_pt_KDEINIT" = x; then
16772 case $cross_compiling:$ac_tool_warned in
16774 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
16775 whose name does not start with the host triplet. If you think this
16776 configuration is useful to you, please write to autoconf@gnu.org." >&5
16777 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
16778 whose name does not start with the host triplet. If you think this
16779 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
16780 ac_tool_warned=yes ;;
16782 KDEINIT=$ac_pt_KDEINIT
16785 KDEINIT="$ac_cv_path_KDEINIT"
16788 if test ! x"${KDEINIT}" = xNo; then
16789 KDEDIR=$(${DIRNAME} ${KDEINIT})
16790 KDEDIR=$(${DIRNAME} ${KDEDIR})
16796 ac_cpp='$CPP $CPPFLAGS'
16797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16803 if test "${USE_NBS}" != "no"; then
16805 if test "x${NBS_DIR}" != "x"; then
16806 if test -d ${NBS_DIR}/lib; then
16807 pbxlibdir="-L${NBS_DIR}/lib"
16809 pbxlibdir="-L${NBS_DIR}"
16812 { echo "$as_me:$LINENO: checking for nbs_connect in -lnbs" >&5
16813 echo $ECHO_N "checking for nbs_connect in -lnbs... $ECHO_C" >&6; }
16814 if test "${ac_cv_lib_nbs_nbs_connect+set}" = set; then
16815 echo $ECHO_N "(cached) $ECHO_C" >&6
16817 ac_check_lib_save_LIBS=$LIBS
16818 LIBS="-lnbs ${pbxlibdir} $LIBS"
16819 cat >conftest.$ac_ext <<_ACEOF
16822 cat confdefs.h >>conftest.$ac_ext
16823 cat >>conftest.$ac_ext <<_ACEOF
16824 /* end confdefs.h. */
16826 /* Override any GCC internal prototype to avoid an error.
16827 Use char because int might match the return type of a GCC
16828 builtin and then its argument prototype would still apply. */
16832 char nbs_connect ();
16836 return nbs_connect ();
16841 rm -f conftest.$ac_objext conftest$ac_exeext
16842 if { (ac_try="$ac_link"
16843 case "(($ac_try" in
16844 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16845 *) ac_try_echo
=$ac_try;;
16847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16848 (eval "$ac_link") 2>conftest.er1
16850 grep -v '^ *+' conftest.er1
>conftest.err
16852 cat conftest.err
>&5
16853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16854 (exit $ac_status); } &&
16855 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16856 { (case "(($ac_try" in
16857 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16858 *) ac_try_echo=$ac_try;;
16860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16861 (eval "$ac_try") 2>&5
16863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864 (exit $ac_status); }; } &&
16865 { ac_try='test -s conftest$ac_exeext'
16866 { (case "(($ac_try" in
16867 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16868 *) ac_try_echo
=$ac_try;;
16870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16871 (eval "$ac_try") 2>&5
16873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874 (exit $ac_status); }; }; then
16875 ac_cv_lib_nbs_nbs_connect
=yes
16877 echo "$as_me: failed program was:" >&5
16878 sed 's/^/| /' conftest.
$ac_ext >&5
16880 ac_cv_lib_nbs_nbs_connect
=no
16883 rm -f conftest.err conftest.
$ac_objext \
16884 conftest
$ac_exeext conftest.
$ac_ext
16885 LIBS
=$ac_check_lib_save_LIBS
16887 { echo "$as_me:$LINENO: result: $ac_cv_lib_nbs_nbs_connect" >&5
16888 echo "${ECHO_T}$ac_cv_lib_nbs_nbs_connect" >&6; }
16889 if test $ac_cv_lib_nbs_nbs_connect = yes; then
16896 if test "${AST_NBS_FOUND}" = "yes"; then
16898 NBS_HEADER_FOUND
="1"
16899 if test "x${NBS_DIR}" != "x"; then
16900 NBS_LIB
="${pbxlibdir} ${NBS_LIB}"
16901 NBS_INCLUDE
="-I${NBS_DIR}/include"
16902 if test "xnbs.h" != "x" ; then
16903 as_ac_Header
=`echo "ac_cv_header_${NBS_DIR}/include/nbs.h" | $as_tr_sh`
16904 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16905 { echo "$as_me:$LINENO: checking for ${NBS_DIR}/include/nbs.h" >&5
16906 echo $ECHO_N "checking for ${NBS_DIR}/include/nbs.h... $ECHO_C" >&6; }
16907 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16908 echo $ECHO_N "(cached) $ECHO_C" >&6
16910 ac_res
=`eval echo '${'$as_ac_Header'}'`
16911 { echo "$as_me:$LINENO: result: $ac_res" >&5
16912 echo "${ECHO_T}$ac_res" >&6; }
16914 # Is the header compilable?
16915 { echo "$as_me:$LINENO: checking ${NBS_DIR}/include/nbs.h usability" >&5
16916 echo $ECHO_N "checking ${NBS_DIR}/include/nbs.h usability... $ECHO_C" >&6; }
16917 cat >conftest.
$ac_ext <<_ACEOF
16920 cat confdefs.h
>>conftest.
$ac_ext
16921 cat >>conftest.
$ac_ext <<_ACEOF
16922 /* end confdefs.h. */
16923 $ac_includes_default
16924 #include <${NBS_DIR}/include/nbs.h>
16926 rm -f conftest.
$ac_objext
16927 if { (ac_try
="$ac_compile"
16928 case "(($ac_try" in
16929 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16930 *) ac_try_echo=$ac_try;;
16932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16933 (eval "$ac_compile") 2>conftest.er1
16935 grep -v '^ *+' conftest.er1 >conftest.err
16937 cat conftest.err >&5
16938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16939 (exit $ac_status); } &&
16940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16941 { (case "(($ac_try" in
16942 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16943 *) ac_try_echo
=$ac_try;;
16945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16946 (eval "$ac_try") 2>&5
16948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16949 (exit $ac_status); }; } &&
16950 { ac_try
='test -s conftest.$ac_objext'
16951 { (case "(($ac_try" in
16952 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16953 *) ac_try_echo=$ac_try;;
16955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16956 (eval "$ac_try") 2>&5
16958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16959 (exit $ac_status); }; }; then
16960 ac_header_compiler=yes
16962 echo "$as_me: failed program was:" >&5
16963 sed 's/^/| /' conftest.$ac_ext >&5
16965 ac_header_compiler=no
16968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16969 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16970 echo "${ECHO_T}$ac_header_compiler" >&6; }
16972 # Is the header present?
16973 { echo "$as_me:$LINENO: checking ${NBS_DIR}/include/nbs.h presence" >&5
16974 echo $ECHO_N "checking ${NBS_DIR}/include/nbs.h presence... $ECHO_C" >&6; }
16975 cat >conftest.$ac_ext <<_ACEOF
16978 cat confdefs.h >>conftest.$ac_ext
16979 cat >>conftest.$ac_ext <<_ACEOF
16980 /* end confdefs.h. */
16981 #include <${NBS_DIR}/include/nbs.h>
16983 if { (ac_try="$ac_cpp conftest.$ac_ext"
16984 case "(($ac_try" in
16985 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16986 *) ac_try_echo
=$ac_try;;
16988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16989 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16991 grep -v '^ *+' conftest.er1
>conftest.err
16993 cat conftest.err
>&5
16994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16995 (exit $ac_status); } >/dev
/null
; then
16996 if test -s conftest.err
; then
16997 ac_cpp_err
=$ac_c_preproc_warn_flag
16998 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
17005 if test -z "$ac_cpp_err"; then
17006 ac_header_preproc
=yes
17008 echo "$as_me: failed program was:" >&5
17009 sed 's/^/| /' conftest.
$ac_ext >&5
17011 ac_header_preproc
=no
17014 rm -f conftest.err conftest.
$ac_ext
17015 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17016 echo "${ECHO_T}$ac_header_preproc" >&6; }
17018 # So? What about this header?
17019 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17021 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
17022 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17023 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the compiler's result" >&5
17024 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the compiler's result" >&2;}
17025 ac_header_preproc
=yes
17028 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: present but cannot be compiled" >&5
17029 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: present but cannot be compiled" >&2;}
17030 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: check for missing prerequisite headers?" >&5
17031 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: check for missing prerequisite headers?" >&2;}
17032 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: see the Autoconf documentation" >&5
17033 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: see the Autoconf documentation" >&2;}
17034 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: section \"Present But Cannot Be Compiled\"" >&5
17035 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
17036 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the preprocessor's result" >&5
17037 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: proceeding with the preprocessor's result" >&2;}
17038 { echo "$as_me:$LINENO: WARNING: ${NBS_DIR}/include/nbs.h: in the future, the compiler will take precedence" >&5
17039 echo "$as_me: WARNING: ${NBS_DIR}/include/nbs.h: in the future, the compiler will take precedence" >&2;}
17043 { echo "$as_me:$LINENO: checking for ${NBS_DIR}/include/nbs.h" >&5
17044 echo $ECHO_N "checking for ${NBS_DIR}/include/nbs.h... $ECHO_C" >&6; }
17045 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17046 echo $ECHO_N "(cached) $ECHO_C" >&6
17048 eval "$as_ac_Header=\$ac_header_preproc"
17050 ac_res
=`eval echo '${'$as_ac_Header'}'`
17051 { echo "$as_me:$LINENO: result: $ac_res" >&5
17052 echo "${ECHO_T}$ac_res" >&6; }
17055 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17064 if test "xnbs.h" != "x" ; then
17065 if test "${ac_cv_header_nbs_h+set}" = set; then
17066 { echo "$as_me:$LINENO: checking for nbs.h" >&5
17067 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
17068 if test "${ac_cv_header_nbs_h+set}" = set; then
17069 echo $ECHO_N "(cached) $ECHO_C" >&6
17071 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
17072 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
17074 # Is the header compilable?
17075 { echo "$as_me:$LINENO: checking nbs.h usability" >&5
17076 echo $ECHO_N "checking nbs.h usability... $ECHO_C" >&6; }
17077 cat >conftest.
$ac_ext <<_ACEOF
17080 cat confdefs.h
>>conftest.
$ac_ext
17081 cat >>conftest.
$ac_ext <<_ACEOF
17082 /* end confdefs.h. */
17083 $ac_includes_default
17086 rm -f conftest.
$ac_objext
17087 if { (ac_try
="$ac_compile"
17088 case "(($ac_try" in
17089 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17090 *) ac_try_echo=$ac_try;;
17092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17093 (eval "$ac_compile") 2>conftest.er1
17095 grep -v '^ *+' conftest.er1 >conftest.err
17097 cat conftest.err >&5
17098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17099 (exit $ac_status); } &&
17100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17101 { (case "(($ac_try" in
17102 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17103 *) ac_try_echo
=$ac_try;;
17105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17106 (eval "$ac_try") 2>&5
17108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17109 (exit $ac_status); }; } &&
17110 { ac_try
='test -s conftest.$ac_objext'
17111 { (case "(($ac_try" in
17112 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17113 *) ac_try_echo=$ac_try;;
17115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17116 (eval "$ac_try") 2>&5
17118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17119 (exit $ac_status); }; }; then
17120 ac_header_compiler=yes
17122 echo "$as_me: failed program was:" >&5
17123 sed 's/^/| /' conftest.$ac_ext >&5
17125 ac_header_compiler=no
17128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17129 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17130 echo "${ECHO_T}$ac_header_compiler" >&6; }
17132 # Is the header present?
17133 { echo "$as_me:$LINENO: checking nbs.h presence" >&5
17134 echo $ECHO_N "checking nbs.h presence... $ECHO_C" >&6; }
17135 cat >conftest.$ac_ext <<_ACEOF
17138 cat confdefs.h >>conftest.$ac_ext
17139 cat >>conftest.$ac_ext <<_ACEOF
17140 /* end confdefs.h. */
17143 if { (ac_try="$ac_cpp conftest.$ac_ext"
17144 case "(($ac_try" in
17145 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17146 *) ac_try_echo
=$ac_try;;
17148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17149 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17151 grep -v '^ *+' conftest.er1
>conftest.err
17153 cat conftest.err
>&5
17154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155 (exit $ac_status); } >/dev
/null
; then
17156 if test -s conftest.err
; then
17157 ac_cpp_err
=$ac_c_preproc_warn_flag
17158 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
17165 if test -z "$ac_cpp_err"; then
17166 ac_header_preproc
=yes
17168 echo "$as_me: failed program was:" >&5
17169 sed 's/^/| /' conftest.
$ac_ext >&5
17171 ac_header_preproc
=no
17174 rm -f conftest.err conftest.
$ac_ext
17175 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17176 echo "${ECHO_T}$ac_header_preproc" >&6; }
17178 # So? What about this header?
17179 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17181 { echo "$as_me:$LINENO: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&5
17182 echo "$as_me: WARNING: nbs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17183 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the compiler's result" >&5
17184 echo "$as_me: WARNING: nbs.h: proceeding with the compiler's result" >&2;}
17185 ac_header_preproc
=yes
17188 { echo "$as_me:$LINENO: WARNING: nbs.h: present but cannot be compiled" >&5
17189 echo "$as_me: WARNING: nbs.h: present but cannot be compiled" >&2;}
17190 { echo "$as_me:$LINENO: WARNING: nbs.h: check for missing prerequisite headers?" >&5
17191 echo "$as_me: WARNING: nbs.h: check for missing prerequisite headers?" >&2;}
17192 { echo "$as_me:$LINENO: WARNING: nbs.h: see the Autoconf documentation" >&5
17193 echo "$as_me: WARNING: nbs.h: see the Autoconf documentation" >&2;}
17194 { echo "$as_me:$LINENO: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&5
17195 echo "$as_me: WARNING: nbs.h: section \"Present But Cannot Be Compiled\"" >&2;}
17196 { echo "$as_me:$LINENO: WARNING: nbs.h: proceeding with the preprocessor's result" >&5
17197 echo "$as_me: WARNING: nbs.h: proceeding with the preprocessor's result" >&2;}
17198 { echo "$as_me:$LINENO: WARNING: nbs.h: in the future, the compiler will take precedence" >&5
17199 echo "$as_me: WARNING: nbs.h: in the future, the compiler will take precedence" >&2;}
17203 { echo "$as_me:$LINENO: checking for nbs.h" >&5
17204 echo $ECHO_N "checking for nbs.h... $ECHO_C" >&6; }
17205 if test "${ac_cv_header_nbs_h+set}" = set; then
17206 echo $ECHO_N "(cached) $ECHO_C" >&6
17208 ac_cv_header_nbs_h
=$ac_header_preproc
17210 { echo "$as_me:$LINENO: result: $ac_cv_header_nbs_h" >&5
17211 echo "${ECHO_T}$ac_cv_header_nbs_h" >&6; }
17214 if test $ac_cv_header_nbs_h = yes; then
17223 if test "x${NBS_HEADER_FOUND}" = "x0" ; then
17224 if test ! -z "${NBS_MANDATORY}" ;
17227 echo " *** It appears that you do not have the nbs development package installed."
17228 echo " *** Please install it to include ${NBS_DESCRIP} support, or re-run configure"
17229 echo " *** without explicitly specifying --with-${NBS_OPTION}"
17238 cat >>confdefs.h
<<_ACEOF
17243 elif test ! -z "${NBS_MANDATORY}";
17246 echo "*** The ${NBS_DESCRIP} installation on this system appears to be broken."
17247 echo "*** Either correct the installation, or run configure"
17248 echo "*** without explicitly specifying --with-${NBS_OPTION}"
17255 if test "${USE_NCURSES}" != "no"; then
17257 if test "x${NCURSES_DIR}" != "x"; then
17258 if test -d ${NCURSES_DIR}/lib
; then
17259 pbxlibdir
="-L${NCURSES_DIR}/lib"
17261 pbxlibdir
="-L${NCURSES_DIR}"
17264 { echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
17265 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6; }
17266 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
17267 echo $ECHO_N "(cached) $ECHO_C" >&6
17269 ac_check_lib_save_LIBS
=$LIBS
17270 LIBS
="-lncurses ${pbxlibdir} $LIBS"
17271 cat >conftest.
$ac_ext <<_ACEOF
17274 cat confdefs.h
>>conftest.
$ac_ext
17275 cat >>conftest.
$ac_ext <<_ACEOF
17276 /* end confdefs.h. */
17278 /* Override any GCC internal prototype to avoid an error.
17279 Use char because int might match the return type of a GCC
17280 builtin and then its argument prototype would still apply. */
17293 rm -f conftest.
$ac_objext conftest
$ac_exeext
17294 if { (ac_try
="$ac_link"
17295 case "(($ac_try" in
17296 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17297 *) ac_try_echo=$ac_try;;
17299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17300 (eval "$ac_link") 2>conftest.er1
17302 grep -v '^ *+' conftest.er1 >conftest.err
17304 cat conftest.err >&5
17305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17306 (exit $ac_status); } &&
17307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17308 { (case "(($ac_try" in
17309 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17310 *) ac_try_echo
=$ac_try;;
17312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17313 (eval "$ac_try") 2>&5
17315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17316 (exit $ac_status); }; } &&
17317 { ac_try
='test -s conftest$ac_exeext'
17318 { (case "(($ac_try" in
17319 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17320 *) ac_try_echo=$ac_try;;
17322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17323 (eval "$ac_try") 2>&5
17325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326 (exit $ac_status); }; }; then
17327 ac_cv_lib_ncurses_initscr=yes
17329 echo "$as_me: failed program was:" >&5
17330 sed 's/^/| /' conftest.$ac_ext >&5
17332 ac_cv_lib_ncurses_initscr=no
17335 rm -f conftest.err conftest.$ac_objext \
17336 conftest$ac_exeext conftest.$ac_ext
17337 LIBS=$ac_check_lib_save_LIBS
17339 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
17340 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6; }
17341 if test $ac_cv_lib_ncurses_initscr = yes; then
17342 AST_NCURSES_FOUND=yes
17344 AST_NCURSES_FOUND=no
17348 if test "${AST_NCURSES_FOUND}" = "yes"; then
17349 NCURSES_LIB="-lncurses "
17350 NCURSES_HEADER_FOUND="1"
17351 if test "x${NCURSES_DIR}" != "x"; then
17352 NCURSES_LIB="${pbxlibdir} ${NCURSES_LIB}"
17353 NCURSES_INCLUDE="-I${NCURSES_DIR}/include"
17354 if test "xcurses.h" != "x" ; then
17355 as_ac_Header=`echo "ac_cv_header_${NCURSES_DIR}/include/curses.h" |
$as_tr_sh`
17356 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17357 { echo "$as_me:$LINENO: checking for ${NCURSES_DIR}/include/curses.h" >&5
17358 echo $ECHO_N "checking for ${NCURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
17359 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17360 echo $ECHO_N "(cached) $ECHO_C" >&6
17362 ac_res=`eval echo '${'$as_ac_Header'}'`
17363 { echo "$as_me:$LINENO: result: $ac_res" >&5
17364 echo "${ECHO_T}$ac_res" >&6; }
17366 # Is the header compilable?
17367 { echo "$as_me:$LINENO: checking ${NCURSES_DIR}/include/curses.h usability" >&5
17368 echo $ECHO_N "checking ${NCURSES_DIR}/include/curses.h usability... $ECHO_C" >&6; }
17369 cat >conftest.$ac_ext <<_ACEOF
17372 cat confdefs.h >>conftest.$ac_ext
17373 cat >>conftest.$ac_ext <<_ACEOF
17374 /* end confdefs.h. */
17375 $ac_includes_default
17376 #include <${NCURSES_DIR}/include/curses.h>
17378 rm -f conftest.$ac_objext
17379 if { (ac_try="$ac_compile"
17380 case "(($ac_try" in
17381 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17382 *) ac_try_echo
=$ac_try;;
17384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17385 (eval "$ac_compile") 2>conftest.er1
17387 grep -v '^ *+' conftest.er1
>conftest.err
17389 cat conftest.err
>&5
17390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17391 (exit $ac_status); } &&
17392 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17393 { (case "(($ac_try" in
17394 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17395 *) ac_try_echo=$ac_try;;
17397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17398 (eval "$ac_try") 2>&5
17400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17401 (exit $ac_status); }; } &&
17402 { ac_try='test -s conftest.$ac_objext'
17403 { (case "(($ac_try" in
17404 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17405 *) ac_try_echo
=$ac_try;;
17407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17408 (eval "$ac_try") 2>&5
17410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17411 (exit $ac_status); }; }; then
17412 ac_header_compiler
=yes
17414 echo "$as_me: failed program was:" >&5
17415 sed 's/^/| /' conftest.
$ac_ext >&5
17417 ac_header_compiler
=no
17420 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17421 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17422 echo "${ECHO_T}$ac_header_compiler" >&6; }
17424 # Is the header present?
17425 { echo "$as_me:$LINENO: checking ${NCURSES_DIR}/include/curses.h presence" >&5
17426 echo $ECHO_N "checking ${NCURSES_DIR}/include/curses.h presence... $ECHO_C" >&6; }
17427 cat >conftest.
$ac_ext <<_ACEOF
17430 cat confdefs.h
>>conftest.
$ac_ext
17431 cat >>conftest.
$ac_ext <<_ACEOF
17432 /* end confdefs.h. */
17433 #include <${NCURSES_DIR}/include/curses.h>
17435 if { (ac_try
="$ac_cpp conftest.$ac_ext"
17436 case "(($ac_try" in
17437 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17438 *) ac_try_echo=$ac_try;;
17440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17441 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17443 grep -v '^ *+' conftest.er1 >conftest.err
17445 cat conftest.err >&5
17446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17447 (exit $ac_status); } >/dev/null; then
17448 if test -s conftest.err; then
17449 ac_cpp_err=$ac_c_preproc_warn_flag
17450 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17457 if test -z "$ac_cpp_err"; then
17458 ac_header_preproc=yes
17460 echo "$as_me: failed program was:" >&5
17461 sed 's/^/| /' conftest.$ac_ext >&5
17463 ac_header_preproc=no
17466 rm -f conftest.err conftest.$ac_ext
17467 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17468 echo "${ECHO_T}$ac_header_preproc" >&6; }
17470 # So? What about this header?
17471 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17473 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
17474 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17475 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&5
17476 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the compiler's result" >&2;}
17477 ac_header_preproc=yes
17480 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: present but cannot be compiled" >&5
17481 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: present but cannot be compiled" >&2;}
17482 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&5
17483 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: check for missing prerequisite headers?" >&2;}
17484 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: see the Autoconf documentation" >&5
17485 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: see the Autoconf documentation" >&2;}
17486 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&5
17487 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
17488 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&5
17489 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: proceeding with the preprocessor's result" >&2;}
17490 { echo "$as_me:$LINENO: WARNING: ${NCURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&5
17491 echo "$as_me: WARNING: ${NCURSES_DIR}/include/curses.h: in the future, the compiler will take precedence" >&2;}
17495 { echo "$as_me:$LINENO: checking for ${NCURSES_DIR}/include/curses.h" >&5
17496 echo $ECHO_N "checking for ${NCURSES_DIR}/include/curses.h... $ECHO_C" >&6; }
17497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17498 echo $ECHO_N "(cached) $ECHO_C" >&6
17500 eval "$as_ac_Header=\$ac_header_preproc"
17502 ac_res=`eval echo '${'$as_ac_Header'}'`
17503 { echo "$as_me:$LINENO: result: $ac_res" >&5
17504 echo "${ECHO_T}$ac_res" >&6; }
17507 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17508 NCURSES_HEADER_FOUND=1
17510 NCURSES_HEADER_FOUND=0
17516 if test "xcurses.h" != "x" ; then
17517 if test "${ac_cv_header_curses_h+set}" = set; then
17518 { echo "$as_me:$LINENO: checking for curses.h" >&5
17519 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
17520 if test "${ac_cv_header_curses_h+set}" = set; then
17521 echo $ECHO_N "(cached) $ECHO_C" >&6
17523 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
17524 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
17526 # Is the header compilable?
17527 { echo "$as_me:$LINENO: checking curses.h usability" >&5
17528 echo $ECHO_N "checking curses.h usability... $ECHO_C" >&6; }
17529 cat >conftest.$ac_ext <<_ACEOF
17532 cat confdefs.h >>conftest.$ac_ext
17533 cat >>conftest.$ac_ext <<_ACEOF
17534 /* end confdefs.h. */
17535 $ac_includes_default
17536 #include <curses.h>
17538 rm -f conftest.$ac_objext
17539 if { (ac_try="$ac_compile"
17540 case "(($ac_try" in
17541 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17542 *) ac_try_echo
=$ac_try;;
17544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17545 (eval "$ac_compile") 2>conftest.er1
17547 grep -v '^ *+' conftest.er1
>conftest.err
17549 cat conftest.err
>&5
17550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17551 (exit $ac_status); } &&
17552 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17553 { (case "(($ac_try" in
17554 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17555 *) ac_try_echo=$ac_try;;
17557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17558 (eval "$ac_try") 2>&5
17560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17561 (exit $ac_status); }; } &&
17562 { ac_try='test -s conftest.$ac_objext'
17563 { (case "(($ac_try" in
17564 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17565 *) ac_try_echo
=$ac_try;;
17567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17568 (eval "$ac_try") 2>&5
17570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17571 (exit $ac_status); }; }; then
17572 ac_header_compiler
=yes
17574 echo "$as_me: failed program was:" >&5
17575 sed 's/^/| /' conftest.
$ac_ext >&5
17577 ac_header_compiler
=no
17580 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17581 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17582 echo "${ECHO_T}$ac_header_compiler" >&6; }
17584 # Is the header present?
17585 { echo "$as_me:$LINENO: checking curses.h presence" >&5
17586 echo $ECHO_N "checking curses.h presence... $ECHO_C" >&6; }
17587 cat >conftest.
$ac_ext <<_ACEOF
17590 cat confdefs.h
>>conftest.
$ac_ext
17591 cat >>conftest.
$ac_ext <<_ACEOF
17592 /* end confdefs.h. */
17593 #include <curses.h>
17595 if { (ac_try
="$ac_cpp conftest.$ac_ext"
17596 case "(($ac_try" in
17597 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17598 *) ac_try_echo=$ac_try;;
17600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17603 grep -v '^ *+' conftest.er1 >conftest.err
17605 cat conftest.err >&5
17606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17607 (exit $ac_status); } >/dev/null; then
17608 if test -s conftest.err; then
17609 ac_cpp_err=$ac_c_preproc_warn_flag
17610 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17617 if test -z "$ac_cpp_err"; then
17618 ac_header_preproc=yes
17620 echo "$as_me: failed program was:" >&5
17621 sed 's/^/| /' conftest.$ac_ext >&5
17623 ac_header_preproc=no
17626 rm -f conftest.err conftest.$ac_ext
17627 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17628 echo "${ECHO_T}$ac_header_preproc" >&6; }
17630 # So? What about this header?
17631 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17633 { echo "$as_me:$LINENO: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&5
17634 echo "$as_me: WARNING: curses.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17635 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the compiler's result" >&5
17636 echo "$as_me: WARNING: curses.h: proceeding with the compiler's result" >&2;}
17637 ac_header_preproc=yes
17640 { echo "$as_me:$LINENO: WARNING: curses.h: present but cannot be compiled" >&5
17641 echo "$as_me: WARNING: curses.h: present but cannot be compiled" >&2;}
17642 { echo "$as_me:$LINENO: WARNING: curses.h: check for missing prerequisite headers?" >&5
17643 echo "$as_me: WARNING: curses.h: check for missing prerequisite headers?" >&2;}
17644 { echo "$as_me:$LINENO: WARNING: curses.h: see the Autoconf documentation" >&5
17645 echo "$as_me: WARNING: curses.h: see the Autoconf documentation" >&2;}
17646 { echo "$as_me:$LINENO: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&5
17647 echo "$as_me: WARNING: curses.h: section \"Present But Cannot Be Compiled\"" >&2;}
17648 { echo "$as_me:$LINENO: WARNING: curses.h: proceeding with the preprocessor's result" >&5
17649 echo "$as_me: WARNING: curses.h: proceeding with the preprocessor's result" >&2;}
17650 { echo "$as_me:$LINENO: WARNING: curses.h: in the future, the compiler will take precedence" >&5
17651 echo "$as_me: WARNING: curses.h: in the future, the compiler will take precedence" >&2;}
17655 { echo "$as_me:$LINENO: checking for curses.h" >&5
17656 echo $ECHO_N "checking for curses.h... $ECHO_C" >&6; }
17657 if test "${ac_cv_header_curses_h+set}" = set; then
17658 echo $ECHO_N "(cached) $ECHO_C" >&6
17660 ac_cv_header_curses_h=$ac_header_preproc
17662 { echo "$as_me:$LINENO: result: $ac_cv_header_curses_h" >&5
17663 echo "${ECHO_T}$ac_cv_header_curses_h" >&6; }
17666 if test $ac_cv_header_curses_h = yes; then
17667 NCURSES_HEADER_FOUND=1
17669 NCURSES_HEADER_FOUND=0
17675 if test "x${NCURSES_HEADER_FOUND}" = "x0" ; then
17676 if test ! -z "${NCURSES_MANDATORY}" ;
17679 echo " *** It appears that you do not have the ncurses development package installed."
17680 echo " *** Please install it to include ${NCURSES_DESCRIP} support, or re-run configure"
17681 echo " *** without explicitly specifying --with-${NCURSES_OPTION}"
17690 cat >>confdefs.h <<_ACEOF
17691 #define HAVE_NCURSES 1
17695 elif test ! -z "${NCURSES_MANDATORY}";
17698 echo "*** The ${NCURSES_DESCRIP} installation on this system appears to be broken."
17699 echo "*** Either correct the installation, or run configure"
17700 echo "*** without explicitly specifying --with-${NCURSES_OPTION}"
17707 if test "${USE_NETSNMP}" != "no"; then
17708 if test "x${NETSNMP_DIR}" != "x"; then
17709 if test -n "$ac_tool_prefix"; then
17710 # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
17711 set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
17712 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17714 if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
17715 echo $ECHO_N "(cached) $ECHO_C" >&6
17717 case $NETSNMP_CONFIG in
17719 ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
17722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17723 for as_dir in ${NETSNMP_DIR}/bin
17726 test -z "$as_dir" && as_dir=.
17727 for ac_exec_ext in '' $ac_executable_extensions; do
17728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
17729 ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17740 NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
17741 if test -n "$NETSNMP_CONFIG"; then
17742 { echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
17743 echo "${ECHO_T}$NETSNMP_CONFIG" >&6; }
17745 { echo "$as_me:$LINENO: result: no" >&5
17746 echo "${ECHO_T}no" >&6; }
17751 if test -z "$ac_cv_path_NETSNMP_CONFIG"; then
17752 ac_pt_NETSNMP_CONFIG=$NETSNMP_CONFIG
17753 # Extract the first word of "net-snmp-config", so it can be a program name with args.
17754 set dummy net-snmp-config; ac_word=$2
17755 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17757 if test "${ac_cv_path_ac_pt_NETSNMP_CONFIG+set}" = set; then
17758 echo $ECHO_N "(cached) $ECHO_C" >&6
17760 case $ac_pt_NETSNMP_CONFIG in
17762 ac_cv_path_ac_pt_NETSNMP_CONFIG="$ac_pt_NETSNMP_CONFIG" # Let the user override the test with a path.
17765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17766 for as_dir in ${NETSNMP_DIR}/bin
17769 test -z "$as_dir" && as_dir=.
17770 for ac_exec_ext in '' $ac_executable_extensions; do
17771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
17772 ac_cv_path_ac_pt_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17783 ac_pt_NETSNMP_CONFIG=$ac_cv_path_ac_pt_NETSNMP_CONFIG
17784 if test -n "$ac_pt_NETSNMP_CONFIG"; then
17785 { echo "$as_me:$LINENO: result: $ac_pt_NETSNMP_CONFIG" >&5
17786 echo "${ECHO_T}$ac_pt_NETSNMP_CONFIG" >&6; }
17788 { echo "$as_me:$LINENO: result: no" >&5
17789 echo "${ECHO_T}no" >&6; }
17792 if test "x$ac_pt_NETSNMP_CONFIG" = x; then
17793 NETSNMP_CONFIG="No"
17795 case $cross_compiling:$ac_tool_warned in
17797 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
17798 whose name does not start with the host triplet. If you think this
17799 configuration is useful to you, please write to autoconf@gnu.org." >&5
17800 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
17801 whose name does not start with the host triplet. If you think this
17802 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
17803 ac_tool_warned=yes ;;
17805 NETSNMP_CONFIG=$ac_pt_NETSNMP_CONFIG
17808 NETSNMP_CONFIG="$ac_cv_path_NETSNMP_CONFIG"
17811 if test x"${NETSNMP_CONFIG}" = xNo; then
17813 echo "*** net-snmp-config was not found in the path you specified:"
17814 echo "*** ${NETSNMP_DIR}/bin"
17815 echo "*** Either correct the installation, or run configure"
17816 echo "*** including --without-netsnmp"
17820 if test -n "$ac_tool_prefix"; then
17821 # Extract the first word of "${ac_tool_prefix}net-snmp-config", so it can be a program name with args.
17822 set dummy ${ac_tool_prefix}net-snmp-config; ac_word=$2
17823 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17825 if test "${ac_cv_path_NETSNMP_CONFIG+set}" = set; then
17826 echo $ECHO_N "(cached) $ECHO_C" >&6
17828 case $NETSNMP_CONFIG in
17830 ac_cv_path_NETSNMP_CONFIG="$NETSNMP_CONFIG" # Let the user override the test with a path.
17833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17834 for as_dir in $PATH
17837 test -z "$as_dir" && as_dir=.
17838 for ac_exec_ext in '' $ac_executable_extensions; do
17839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
17840 ac_cv_path_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17851 NETSNMP_CONFIG=$ac_cv_path_NETSNMP_CONFIG
17852 if test -n "$NETSNMP_CONFIG"; then
17853 { echo "$as_me:$LINENO: result: $NETSNMP_CONFIG" >&5
17854 echo "${ECHO_T}$NETSNMP_CONFIG" >&6; }
17856 { echo "$as_me:$LINENO: result: no" >&5
17857 echo "${ECHO_T}no" >&6; }
17862 if test -z "$ac_cv_path_NETSNMP_CONFIG"; then
17863 ac_pt_NETSNMP_CONFIG=$NETSNMP_CONFIG
17864 # Extract the first word of "net-snmp-config", so it can be a program name with args.
17865 set dummy net-snmp-config; ac_word=$2
17866 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17868 if test "${ac_cv_path_ac_pt_NETSNMP_CONFIG+set}" = set; then
17869 echo $ECHO_N "(cached) $ECHO_C" >&6
17871 case $ac_pt_NETSNMP_CONFIG in
17873 ac_cv_path_ac_pt_NETSNMP_CONFIG="$ac_pt_NETSNMP_CONFIG" # Let the user override the test with a path.
17876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17877 for as_dir in $PATH
17880 test -z "$as_dir" && as_dir=.
17881 for ac_exec_ext in '' $ac_executable_extensions; do
17882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
17883 ac_cv_path_ac_pt_NETSNMP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17894 ac_pt_NETSNMP_CONFIG=$ac_cv_path_ac_pt_NETSNMP_CONFIG
17895 if test -n "$ac_pt_NETSNMP_CONFIG"; then
17896 { echo "$as_me:$LINENO: result: $ac_pt_NETSNMP_CONFIG" >&5
17897 echo "${ECHO_T}$ac_pt_NETSNMP_CONFIG" >&6; }
17899 { echo "$as_me:$LINENO: result: no" >&5
17900 echo "${ECHO_T}no" >&6; }
17903 if test "x$ac_pt_NETSNMP_CONFIG" = x; then
17904 NETSNMP_CONFIG="No"
17906 case $cross_compiling:$ac_tool_warned in
17908 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
17909 whose name does not start with the host triplet. If you think this
17910 configuration is useful to you, please write to autoconf@gnu.org." >&5
17911 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
17912 whose name does not start with the host triplet. If you think this
17913 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
17914 ac_tool_warned=yes ;;
17916 NETSNMP_CONFIG=$ac_pt_NETSNMP_CONFIG
17919 NETSNMP_CONFIG="$ac_cv_path_NETSNMP_CONFIG"
17924 if test x"${NETSNMP_CONFIG}" != xNo; then
17925 NETSNMP_libs=`net-snmp-config
--agent-libs`
17927 { echo "$as_me:$LINENO: checking for snmp_register_callback in -lnetsnmp" >&5
17928 echo $ECHO_N "checking for snmp_register_callback in -lnetsnmp... $ECHO_C" >&6; }
17929 if test "${ac_cv_lib_netsnmp_snmp_register_callback+set}" = set; then
17930 echo $ECHO_N "(cached) $ECHO_C" >&6
17932 ac_check_lib_save_LIBS=$LIBS
17933 LIBS="-lnetsnmp ${NETSNMP_libs} $LIBS"
17934 cat >conftest.$ac_ext <<_ACEOF
17937 cat confdefs.h >>conftest.$ac_ext
17938 cat >>conftest.$ac_ext <<_ACEOF
17939 /* end confdefs.h. */
17941 /* Override any GCC internal prototype to avoid an error.
17942 Use char because int might match the return type of a GCC
17943 builtin and then its argument prototype would still apply. */
17947 char snmp_register_callback ();
17951 return snmp_register_callback ();
17956 rm -f conftest.$ac_objext conftest$ac_exeext
17957 if { (ac_try="$ac_link"
17958 case "(($ac_try" in
17959 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17960 *) ac_try_echo
=$ac_try;;
17962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17963 (eval "$ac_link") 2>conftest.er1
17965 grep -v '^ *+' conftest.er1
>conftest.err
17967 cat conftest.err
>&5
17968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17969 (exit $ac_status); } &&
17970 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17971 { (case "(($ac_try" in
17972 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17973 *) ac_try_echo=$ac_try;;
17975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17976 (eval "$ac_try") 2>&5
17978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17979 (exit $ac_status); }; } &&
17980 { ac_try='test -s conftest$ac_exeext'
17981 { (case "(($ac_try" in
17982 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17983 *) ac_try_echo
=$ac_try;;
17985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17986 (eval "$ac_try") 2>&5
17988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17989 (exit $ac_status); }; }; then
17990 ac_cv_lib_netsnmp_snmp_register_callback
=yes
17992 echo "$as_me: failed program was:" >&5
17993 sed 's/^/| /' conftest.
$ac_ext >&5
17995 ac_cv_lib_netsnmp_snmp_register_callback
=no
17998 rm -f conftest.err conftest.
$ac_objext \
17999 conftest
$ac_exeext conftest.
$ac_ext
18000 LIBS
=$ac_check_lib_save_LIBS
18002 { echo "$as_me:$LINENO: result: $ac_cv_lib_netsnmp_snmp_register_callback" >&5
18003 echo "${ECHO_T}$ac_cv_lib_netsnmp_snmp_register_callback" >&6; }
18004 if test $ac_cv_lib_netsnmp_snmp_register_callback = yes; then
18006 cat >>confdefs.h
<<_ACEOF
18007 #define HAVE_NETSNMP 1
18013 if test "${ac_cv_lib_netsnmp_snmp_register_callback}" = "yes"; then
18014 NETSNMP_LIB
="${NETSNMP_libs}"
18016 elif test ! -z "${NETSNMP_MANDATORY}";
18019 echo "*** The Net-SNMP installation on this system appears to be broken."
18020 echo "*** Either correct the installation, or run configure"
18021 echo "*** including --without-netsnmp"
18024 elif test ! -z "${NETSNMP_MANDATORY}";
18027 echo "*** The Net-SNMP installation on this system appears to be broken."
18028 echo "*** Either correct the installation, or run configure"
18029 echo "*** including --without-netsnmp"
18034 if test "${USE_NEWT}" != "no"; then
18036 if test "x${NEWT_DIR}" != "x"; then
18037 if test -d ${NEWT_DIR}/lib
; then
18038 pbxlibdir
="-L${NEWT_DIR}/lib"
18040 pbxlibdir
="-L${NEWT_DIR}"
18043 { echo "$as_me:$LINENO: checking for newtBell in -lnewt" >&5
18044 echo $ECHO_N "checking for newtBell in -lnewt... $ECHO_C" >&6; }
18045 if test "${ac_cv_lib_newt_newtBell+set}" = set; then
18046 echo $ECHO_N "(cached) $ECHO_C" >&6
18048 ac_check_lib_save_LIBS
=$LIBS
18049 LIBS
="-lnewt ${pbxlibdir} $LIBS"
18050 cat >conftest.
$ac_ext <<_ACEOF
18053 cat confdefs.h
>>conftest.
$ac_ext
18054 cat >>conftest.
$ac_ext <<_ACEOF
18055 /* end confdefs.h. */
18057 /* Override any GCC internal prototype to avoid an error.
18058 Use char because int might match the return type of a GCC
18059 builtin and then its argument prototype would still apply. */
18067 return newtBell ();
18072 rm -f conftest.
$ac_objext conftest
$ac_exeext
18073 if { (ac_try
="$ac_link"
18074 case "(($ac_try" in
18075 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18076 *) ac_try_echo=$ac_try;;
18078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18079 (eval "$ac_link") 2>conftest.er1
18081 grep -v '^ *+' conftest.er1 >conftest.err
18083 cat conftest.err >&5
18084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18085 (exit $ac_status); } &&
18086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18087 { (case "(($ac_try" in
18088 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18089 *) ac_try_echo
=$ac_try;;
18091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18092 (eval "$ac_try") 2>&5
18094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18095 (exit $ac_status); }; } &&
18096 { ac_try
='test -s conftest$ac_exeext'
18097 { (case "(($ac_try" in
18098 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18099 *) ac_try_echo=$ac_try;;
18101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18102 (eval "$ac_try") 2>&5
18104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18105 (exit $ac_status); }; }; then
18106 ac_cv_lib_newt_newtBell=yes
18108 echo "$as_me: failed program was:" >&5
18109 sed 's/^/| /' conftest.$ac_ext >&5
18111 ac_cv_lib_newt_newtBell=no
18114 rm -f conftest.err conftest.$ac_objext \
18115 conftest$ac_exeext conftest.$ac_ext
18116 LIBS=$ac_check_lib_save_LIBS
18118 { echo "$as_me:$LINENO: result: $ac_cv_lib_newt_newtBell" >&5
18119 echo "${ECHO_T}$ac_cv_lib_newt_newtBell" >&6; }
18120 if test $ac_cv_lib_newt_newtBell = yes; then
18127 if test "${AST_NEWT_FOUND}" = "yes"; then
18129 NEWT_HEADER_FOUND="1"
18130 if test "x${NEWT_DIR}" != "x"; then
18131 NEWT_LIB="${pbxlibdir} ${NEWT_LIB}"
18132 NEWT_INCLUDE="-I${NEWT_DIR}/include"
18133 if test "xnewt.h" != "x" ; then
18134 as_ac_Header=`echo "ac_cv_header_${NEWT_DIR}/include/newt.h" |
$as_tr_sh`
18135 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18136 { echo "$as_me:$LINENO: checking for ${NEWT_DIR}/include/newt.h" >&5
18137 echo $ECHO_N "checking for ${NEWT_DIR}/include/newt.h... $ECHO_C" >&6; }
18138 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18139 echo $ECHO_N "(cached) $ECHO_C" >&6
18141 ac_res=`eval echo '${'$as_ac_Header'}'`
18142 { echo "$as_me:$LINENO: result: $ac_res" >&5
18143 echo "${ECHO_T}$ac_res" >&6; }
18145 # Is the header compilable?
18146 { echo "$as_me:$LINENO: checking ${NEWT_DIR}/include/newt.h usability" >&5
18147 echo $ECHO_N "checking ${NEWT_DIR}/include/newt.h usability... $ECHO_C" >&6; }
18148 cat >conftest.$ac_ext <<_ACEOF
18151 cat confdefs.h >>conftest.$ac_ext
18152 cat >>conftest.$ac_ext <<_ACEOF
18153 /* end confdefs.h. */
18154 $ac_includes_default
18155 #include <${NEWT_DIR}/include/newt.h>
18157 rm -f conftest.$ac_objext
18158 if { (ac_try="$ac_compile"
18159 case "(($ac_try" in
18160 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18161 *) ac_try_echo
=$ac_try;;
18163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18164 (eval "$ac_compile") 2>conftest.er1
18166 grep -v '^ *+' conftest.er1
>conftest.err
18168 cat conftest.err
>&5
18169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18170 (exit $ac_status); } &&
18171 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18172 { (case "(($ac_try" in
18173 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18174 *) ac_try_echo=$ac_try;;
18176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18177 (eval "$ac_try") 2>&5
18179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18180 (exit $ac_status); }; } &&
18181 { ac_try='test -s conftest.$ac_objext'
18182 { (case "(($ac_try" in
18183 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18184 *) ac_try_echo
=$ac_try;;
18186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18187 (eval "$ac_try") 2>&5
18189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18190 (exit $ac_status); }; }; then
18191 ac_header_compiler
=yes
18193 echo "$as_me: failed program was:" >&5
18194 sed 's/^/| /' conftest.
$ac_ext >&5
18196 ac_header_compiler
=no
18199 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18200 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18201 echo "${ECHO_T}$ac_header_compiler" >&6; }
18203 # Is the header present?
18204 { echo "$as_me:$LINENO: checking ${NEWT_DIR}/include/newt.h presence" >&5
18205 echo $ECHO_N "checking ${NEWT_DIR}/include/newt.h presence... $ECHO_C" >&6; }
18206 cat >conftest.
$ac_ext <<_ACEOF
18209 cat confdefs.h
>>conftest.
$ac_ext
18210 cat >>conftest.
$ac_ext <<_ACEOF
18211 /* end confdefs.h. */
18212 #include <${NEWT_DIR}/include/newt.h>
18214 if { (ac_try
="$ac_cpp conftest.$ac_ext"
18215 case "(($ac_try" in
18216 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18217 *) ac_try_echo=$ac_try;;
18219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18220 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18222 grep -v '^ *+' conftest.er1 >conftest.err
18224 cat conftest.err >&5
18225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18226 (exit $ac_status); } >/dev/null; then
18227 if test -s conftest.err; then
18228 ac_cpp_err=$ac_c_preproc_warn_flag
18229 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18236 if test -z "$ac_cpp_err"; then
18237 ac_header_preproc=yes
18239 echo "$as_me: failed program was:" >&5
18240 sed 's/^/| /' conftest.$ac_ext >&5
18242 ac_header_preproc=no
18245 rm -f conftest.err conftest.$ac_ext
18246 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18247 echo "${ECHO_T}$ac_header_preproc" >&6; }
18249 # So? What about this header?
18250 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18252 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: accepted by the compiler, rejected by the preprocessor!" >&5
18253 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18254 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the compiler's result" >&5
18255 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the compiler's result" >&2;}
18256 ac_header_preproc=yes
18259 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: present but cannot be compiled" >&5
18260 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: present but cannot be compiled" >&2;}
18261 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: check for missing prerequisite headers?" >&5
18262 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: check for missing prerequisite headers?" >&2;}
18263 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: see the Autoconf documentation" >&5
18264 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: see the Autoconf documentation" >&2;}
18265 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: section \"Present But Cannot Be Compiled\"" >&5
18266 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: section \"Present But Cannot Be Compiled\"" >&2;}
18267 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the preprocessor's result" >&5
18268 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: proceeding with the preprocessor's result" >&2;}
18269 { echo "$as_me:$LINENO: WARNING: ${NEWT_DIR}/include/newt.h: in the future, the compiler will take precedence" >&5
18270 echo "$as_me: WARNING: ${NEWT_DIR}/include/newt.h: in the future, the compiler will take precedence" >&2;}
18274 { echo "$as_me:$LINENO: checking for ${NEWT_DIR}/include/newt.h" >&5
18275 echo $ECHO_N "checking for ${NEWT_DIR}/include/newt.h... $ECHO_C" >&6; }
18276 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18277 echo $ECHO_N "(cached) $ECHO_C" >&6
18279 eval "$as_ac_Header=\$ac_header_preproc"
18281 ac_res=`eval echo '${'$as_ac_Header'}'`
18282 { echo "$as_me:$LINENO: result: $ac_res" >&5
18283 echo "${ECHO_T}$ac_res" >&6; }
18286 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18287 NEWT_HEADER_FOUND=1
18289 NEWT_HEADER_FOUND=0
18295 if test "xnewt.h" != "x" ; then
18296 if test "${ac_cv_header_newt_h+set}" = set; then
18297 { echo "$as_me:$LINENO: checking for newt.h" >&5
18298 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
18299 if test "${ac_cv_header_newt_h+set}" = set; then
18300 echo $ECHO_N "(cached) $ECHO_C" >&6
18302 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
18303 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
18305 # Is the header compilable?
18306 { echo "$as_me:$LINENO: checking newt.h usability" >&5
18307 echo $ECHO_N "checking newt.h usability... $ECHO_C" >&6; }
18308 cat >conftest.$ac_ext <<_ACEOF
18311 cat confdefs.h >>conftest.$ac_ext
18312 cat >>conftest.$ac_ext <<_ACEOF
18313 /* end confdefs.h. */
18314 $ac_includes_default
18317 rm -f conftest.$ac_objext
18318 if { (ac_try="$ac_compile"
18319 case "(($ac_try" in
18320 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18321 *) ac_try_echo
=$ac_try;;
18323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18324 (eval "$ac_compile") 2>conftest.er1
18326 grep -v '^ *+' conftest.er1
>conftest.err
18328 cat conftest.err
>&5
18329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18330 (exit $ac_status); } &&
18331 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18332 { (case "(($ac_try" in
18333 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18334 *) ac_try_echo=$ac_try;;
18336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18337 (eval "$ac_try") 2>&5
18339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18340 (exit $ac_status); }; } &&
18341 { ac_try='test -s conftest.$ac_objext'
18342 { (case "(($ac_try" in
18343 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18344 *) ac_try_echo
=$ac_try;;
18346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18347 (eval "$ac_try") 2>&5
18349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18350 (exit $ac_status); }; }; then
18351 ac_header_compiler
=yes
18353 echo "$as_me: failed program was:" >&5
18354 sed 's/^/| /' conftest.
$ac_ext >&5
18356 ac_header_compiler
=no
18359 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18360 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18361 echo "${ECHO_T}$ac_header_compiler" >&6; }
18363 # Is the header present?
18364 { echo "$as_me:$LINENO: checking newt.h presence" >&5
18365 echo $ECHO_N "checking newt.h presence... $ECHO_C" >&6; }
18366 cat >conftest.
$ac_ext <<_ACEOF
18369 cat confdefs.h
>>conftest.
$ac_ext
18370 cat >>conftest.
$ac_ext <<_ACEOF
18371 /* end confdefs.h. */
18374 if { (ac_try
="$ac_cpp conftest.$ac_ext"
18375 case "(($ac_try" in
18376 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18377 *) ac_try_echo=$ac_try;;
18379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18380 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18382 grep -v '^ *+' conftest.er1 >conftest.err
18384 cat conftest.err >&5
18385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18386 (exit $ac_status); } >/dev/null; then
18387 if test -s conftest.err; then
18388 ac_cpp_err=$ac_c_preproc_warn_flag
18389 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18396 if test -z "$ac_cpp_err"; then
18397 ac_header_preproc=yes
18399 echo "$as_me: failed program was:" >&5
18400 sed 's/^/| /' conftest.$ac_ext >&5
18402 ac_header_preproc=no
18405 rm -f conftest.err conftest.$ac_ext
18406 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18407 echo "${ECHO_T}$ac_header_preproc" >&6; }
18409 # So? What about this header?
18410 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18412 { echo "$as_me:$LINENO: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&5
18413 echo "$as_me: WARNING: newt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18414 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the compiler's result" >&5
18415 echo "$as_me: WARNING: newt.h: proceeding with the compiler's result" >&2;}
18416 ac_header_preproc=yes
18419 { echo "$as_me:$LINENO: WARNING: newt.h: present but cannot be compiled" >&5
18420 echo "$as_me: WARNING: newt.h: present but cannot be compiled" >&2;}
18421 { echo "$as_me:$LINENO: WARNING: newt.h: check for missing prerequisite headers?" >&5
18422 echo "$as_me: WARNING: newt.h: check for missing prerequisite headers?" >&2;}
18423 { echo "$as_me:$LINENO: WARNING: newt.h: see the Autoconf documentation" >&5
18424 echo "$as_me: WARNING: newt.h: see the Autoconf documentation" >&2;}
18425 { echo "$as_me:$LINENO: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&5
18426 echo "$as_me: WARNING: newt.h: section \"Present But Cannot Be Compiled\"" >&2;}
18427 { echo "$as_me:$LINENO: WARNING: newt.h: proceeding with the preprocessor's result" >&5
18428 echo "$as_me: WARNING: newt.h: proceeding with the preprocessor's result" >&2;}
18429 { echo "$as_me:$LINENO: WARNING: newt.h: in the future, the compiler will take precedence" >&5
18430 echo "$as_me: WARNING: newt.h: in the future, the compiler will take precedence" >&2;}
18434 { echo "$as_me:$LINENO: checking for newt.h" >&5
18435 echo $ECHO_N "checking for newt.h... $ECHO_C" >&6; }
18436 if test "${ac_cv_header_newt_h+set}" = set; then
18437 echo $ECHO_N "(cached) $ECHO_C" >&6
18439 ac_cv_header_newt_h=$ac_header_preproc
18441 { echo "$as_me:$LINENO: result: $ac_cv_header_newt_h" >&5
18442 echo "${ECHO_T}$ac_cv_header_newt_h" >&6; }
18445 if test $ac_cv_header_newt_h = yes; then
18446 NEWT_HEADER_FOUND=1
18448 NEWT_HEADER_FOUND=0
18454 if test "x${NEWT_HEADER_FOUND}" = "x0" ; then
18455 if test ! -z "${NEWT_MANDATORY}" ;
18458 echo " *** It appears that you do not have the newt development package installed."
18459 echo " *** Please install it to include ${NEWT_DESCRIP} support, or re-run configure"
18460 echo " *** without explicitly specifying --with-${NEWT_OPTION}"
18469 cat >>confdefs.h <<_ACEOF
18470 #define HAVE_NEWT 1
18474 elif test ! -z "${NEWT_MANDATORY}";
18477 echo "*** The ${NEWT_DESCRIP} installation on this system appears to be broken."
18478 echo "*** Either correct the installation, or run configure"
18479 echo "*** without explicitly specifying --with-${NEWT_OPTION}"
18486 if test "${USE_UNIXODBC}" != "no"; then
18488 if test "x${UNIXODBC_DIR}" != "x"; then
18489 if test -d ${UNIXODBC_DIR}/lib; then
18490 pbxlibdir="-L${UNIXODBC_DIR}/lib"
18492 pbxlibdir="-L${UNIXODBC_DIR}"
18495 { echo "$as_me:$LINENO: checking for SQLConnect in -lodbc" >&5
18496 echo $ECHO_N "checking for SQLConnect in -lodbc... $ECHO_C" >&6; }
18497 if test "${ac_cv_lib_odbc_SQLConnect+set}" = set; then
18498 echo $ECHO_N "(cached) $ECHO_C" >&6
18500 ac_check_lib_save_LIBS=$LIBS
18501 LIBS="-lodbc ${pbxlibdir} $LIBS"
18502 cat >conftest.$ac_ext <<_ACEOF
18505 cat confdefs.h >>conftest.$ac_ext
18506 cat >>conftest.$ac_ext <<_ACEOF
18507 /* end confdefs.h. */
18509 /* Override any GCC internal prototype to avoid an error.
18510 Use char because int might match the return type of a GCC
18511 builtin and then its argument prototype would still apply. */
18515 char SQLConnect ();
18519 return SQLConnect ();
18524 rm -f conftest.$ac_objext conftest$ac_exeext
18525 if { (ac_try="$ac_link"
18526 case "(($ac_try" in
18527 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18528 *) ac_try_echo
=$ac_try;;
18530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18531 (eval "$ac_link") 2>conftest.er1
18533 grep -v '^ *+' conftest.er1
>conftest.err
18535 cat conftest.err
>&5
18536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18537 (exit $ac_status); } &&
18538 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18539 { (case "(($ac_try" in
18540 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18541 *) ac_try_echo=$ac_try;;
18543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18544 (eval "$ac_try") 2>&5
18546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18547 (exit $ac_status); }; } &&
18548 { ac_try='test -s conftest$ac_exeext'
18549 { (case "(($ac_try" in
18550 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18551 *) ac_try_echo
=$ac_try;;
18553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18554 (eval "$ac_try") 2>&5
18556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18557 (exit $ac_status); }; }; then
18558 ac_cv_lib_odbc_SQLConnect
=yes
18560 echo "$as_me: failed program was:" >&5
18561 sed 's/^/| /' conftest.
$ac_ext >&5
18563 ac_cv_lib_odbc_SQLConnect
=no
18566 rm -f conftest.err conftest.
$ac_objext \
18567 conftest
$ac_exeext conftest.
$ac_ext
18568 LIBS
=$ac_check_lib_save_LIBS
18570 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLConnect" >&5
18571 echo "${ECHO_T}$ac_cv_lib_odbc_SQLConnect" >&6; }
18572 if test $ac_cv_lib_odbc_SQLConnect = yes; then
18573 AST_UNIXODBC_FOUND
=yes
18575 AST_UNIXODBC_FOUND
=no
18579 if test "${AST_UNIXODBC_FOUND}" = "yes"; then
18580 UNIXODBC_LIB
="-lodbc "
18581 UNIXODBC_HEADER_FOUND
="1"
18582 if test "x${UNIXODBC_DIR}" != "x"; then
18583 UNIXODBC_LIB
="${pbxlibdir} ${UNIXODBC_LIB}"
18584 UNIXODBC_INCLUDE
="-I${UNIXODBC_DIR}/include"
18585 if test "xsql.h" != "x" ; then
18586 as_ac_Header
=`echo "ac_cv_header_${UNIXODBC_DIR}/include/sql.h" | $as_tr_sh`
18587 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18588 { echo "$as_me:$LINENO: checking for ${UNIXODBC_DIR}/include/sql.h" >&5
18589 echo $ECHO_N "checking for ${UNIXODBC_DIR}/include/sql.h... $ECHO_C" >&6; }
18590 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18591 echo $ECHO_N "(cached) $ECHO_C" >&6
18593 ac_res
=`eval echo '${'$as_ac_Header'}'`
18594 { echo "$as_me:$LINENO: result: $ac_res" >&5
18595 echo "${ECHO_T}$ac_res" >&6; }
18597 # Is the header compilable?
18598 { echo "$as_me:$LINENO: checking ${UNIXODBC_DIR}/include/sql.h usability" >&5
18599 echo $ECHO_N "checking ${UNIXODBC_DIR}/include/sql.h usability... $ECHO_C" >&6; }
18600 cat >conftest.
$ac_ext <<_ACEOF
18603 cat confdefs.h
>>conftest.
$ac_ext
18604 cat >>conftest.
$ac_ext <<_ACEOF
18605 /* end confdefs.h. */
18606 $ac_includes_default
18607 #include <${UNIXODBC_DIR}/include/sql.h>
18609 rm -f conftest.
$ac_objext
18610 if { (ac_try
="$ac_compile"
18611 case "(($ac_try" in
18612 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18613 *) ac_try_echo=$ac_try;;
18615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18616 (eval "$ac_compile") 2>conftest.er1
18618 grep -v '^ *+' conftest.er1 >conftest.err
18620 cat conftest.err >&5
18621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18622 (exit $ac_status); } &&
18623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18624 { (case "(($ac_try" in
18625 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18626 *) ac_try_echo
=$ac_try;;
18628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18629 (eval "$ac_try") 2>&5
18631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18632 (exit $ac_status); }; } &&
18633 { ac_try
='test -s conftest.$ac_objext'
18634 { (case "(($ac_try" in
18635 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18636 *) ac_try_echo=$ac_try;;
18638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18639 (eval "$ac_try") 2>&5
18641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18642 (exit $ac_status); }; }; then
18643 ac_header_compiler=yes
18645 echo "$as_me: failed program was:" >&5
18646 sed 's/^/| /' conftest.$ac_ext >&5
18648 ac_header_compiler=no
18651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18652 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18653 echo "${ECHO_T}$ac_header_compiler" >&6; }
18655 # Is the header present?
18656 { echo "$as_me:$LINENO: checking ${UNIXODBC_DIR}/include/sql.h presence" >&5
18657 echo $ECHO_N "checking ${UNIXODBC_DIR}/include/sql.h presence... $ECHO_C" >&6; }
18658 cat >conftest.$ac_ext <<_ACEOF
18661 cat confdefs.h >>conftest.$ac_ext
18662 cat >>conftest.$ac_ext <<_ACEOF
18663 /* end confdefs.h. */
18664 #include <${UNIXODBC_DIR}/include/sql.h>
18666 if { (ac_try="$ac_cpp conftest.$ac_ext"
18667 case "(($ac_try" in
18668 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18669 *) ac_try_echo
=$ac_try;;
18671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18672 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18674 grep -v '^ *+' conftest.er1
>conftest.err
18676 cat conftest.err
>&5
18677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18678 (exit $ac_status); } >/dev
/null
; then
18679 if test -s conftest.err
; then
18680 ac_cpp_err
=$ac_c_preproc_warn_flag
18681 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18688 if test -z "$ac_cpp_err"; then
18689 ac_header_preproc
=yes
18691 echo "$as_me: failed program was:" >&5
18692 sed 's/^/| /' conftest.
$ac_ext >&5
18694 ac_header_preproc
=no
18697 rm -f conftest.err conftest.
$ac_ext
18698 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18699 echo "${ECHO_T}$ac_header_preproc" >&6; }
18701 # So? What about this header?
18702 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18704 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
18705 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18706 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the compiler's result" >&5
18707 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the compiler's result" >&2;}
18708 ac_header_preproc
=yes
18711 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: present but cannot be compiled" >&5
18712 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: present but cannot be compiled" >&2;}
18713 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: check for missing prerequisite headers?" >&5
18714 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: check for missing prerequisite headers?" >&2;}
18715 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: see the Autoconf documentation" >&5
18716 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: see the Autoconf documentation" >&2;}
18717 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: section \"Present But Cannot Be Compiled\"" >&5
18718 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
18719 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the preprocessor's result" >&5
18720 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: proceeding with the preprocessor's result" >&2;}
18721 { echo "$as_me:$LINENO: WARNING: ${UNIXODBC_DIR}/include/sql.h: in the future, the compiler will take precedence" >&5
18722 echo "$as_me: WARNING: ${UNIXODBC_DIR}/include/sql.h: in the future, the compiler will take precedence" >&2;}
18726 { echo "$as_me:$LINENO: checking for ${UNIXODBC_DIR}/include/sql.h" >&5
18727 echo $ECHO_N "checking for ${UNIXODBC_DIR}/include/sql.h... $ECHO_C" >&6; }
18728 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18729 echo $ECHO_N "(cached) $ECHO_C" >&6
18731 eval "$as_ac_Header=\$ac_header_preproc"
18733 ac_res
=`eval echo '${'$as_ac_Header'}'`
18734 { echo "$as_me:$LINENO: result: $ac_res" >&5
18735 echo "${ECHO_T}$ac_res" >&6; }
18738 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18739 UNIXODBC_HEADER_FOUND
=1
18741 UNIXODBC_HEADER_FOUND
=0
18747 if test "xsql.h" != "x" ; then
18748 if test "${ac_cv_header_sql_h+set}" = set; then
18749 { echo "$as_me:$LINENO: checking for sql.h" >&5
18750 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
18751 if test "${ac_cv_header_sql_h+set}" = set; then
18752 echo $ECHO_N "(cached) $ECHO_C" >&6
18754 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
18755 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
18757 # Is the header compilable?
18758 { echo "$as_me:$LINENO: checking sql.h usability" >&5
18759 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6; }
18760 cat >conftest.
$ac_ext <<_ACEOF
18763 cat confdefs.h
>>conftest.
$ac_ext
18764 cat >>conftest.
$ac_ext <<_ACEOF
18765 /* end confdefs.h. */
18766 $ac_includes_default
18769 rm -f conftest.
$ac_objext
18770 if { (ac_try
="$ac_compile"
18771 case "(($ac_try" in
18772 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18773 *) ac_try_echo=$ac_try;;
18775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18776 (eval "$ac_compile") 2>conftest.er1
18778 grep -v '^ *+' conftest.er1 >conftest.err
18780 cat conftest.err >&5
18781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18782 (exit $ac_status); } &&
18783 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18784 { (case "(($ac_try" in
18785 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18786 *) ac_try_echo
=$ac_try;;
18788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18789 (eval "$ac_try") 2>&5
18791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18792 (exit $ac_status); }; } &&
18793 { ac_try
='test -s conftest.$ac_objext'
18794 { (case "(($ac_try" in
18795 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18796 *) ac_try_echo=$ac_try;;
18798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18799 (eval "$ac_try") 2>&5
18801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18802 (exit $ac_status); }; }; then
18803 ac_header_compiler=yes
18805 echo "$as_me: failed program was:" >&5
18806 sed 's/^/| /' conftest.$ac_ext >&5
18808 ac_header_compiler=no
18811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18812 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18813 echo "${ECHO_T}$ac_header_compiler" >&6; }
18815 # Is the header present?
18816 { echo "$as_me:$LINENO: checking sql.h presence" >&5
18817 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6; }
18818 cat >conftest.$ac_ext <<_ACEOF
18821 cat confdefs.h >>conftest.$ac_ext
18822 cat >>conftest.$ac_ext <<_ACEOF
18823 /* end confdefs.h. */
18826 if { (ac_try="$ac_cpp conftest.$ac_ext"
18827 case "(($ac_try" in
18828 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18829 *) ac_try_echo
=$ac_try;;
18831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18832 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18834 grep -v '^ *+' conftest.er1
>conftest.err
18836 cat conftest.err
>&5
18837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18838 (exit $ac_status); } >/dev
/null
; then
18839 if test -s conftest.err
; then
18840 ac_cpp_err
=$ac_c_preproc_warn_flag
18841 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18848 if test -z "$ac_cpp_err"; then
18849 ac_header_preproc
=yes
18851 echo "$as_me: failed program was:" >&5
18852 sed 's/^/| /' conftest.
$ac_ext >&5
18854 ac_header_preproc
=no
18857 rm -f conftest.err conftest.
$ac_ext
18858 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18859 echo "${ECHO_T}$ac_header_preproc" >&6; }
18861 # So? What about this header?
18862 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18864 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
18865 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18866 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
18867 echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
18868 ac_header_preproc
=yes
18871 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
18872 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
18873 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
18874 echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
18875 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
18876 echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
18877 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
18878 echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
18879 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
18880 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
18881 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
18882 echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
18886 { echo "$as_me:$LINENO: checking for sql.h" >&5
18887 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
18888 if test "${ac_cv_header_sql_h+set}" = set; then
18889 echo $ECHO_N "(cached) $ECHO_C" >&6
18891 ac_cv_header_sql_h
=$ac_header_preproc
18893 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
18894 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
18897 if test $ac_cv_header_sql_h = yes; then
18898 UNIXODBC_HEADER_FOUND
=1
18900 UNIXODBC_HEADER_FOUND
=0
18906 if test "x${UNIXODBC_HEADER_FOUND}" = "x0" ; then
18907 if test ! -z "${UNIXODBC_MANDATORY}" ;
18910 echo " *** It appears that you do not have the odbc development package installed."
18911 echo " *** Please install it to include ${UNIXODBC_DESCRIP} support, or re-run configure"
18912 echo " *** without explicitly specifying --with-${UNIXODBC_OPTION}"
18916 UNIXODBC_INCLUDE
=""
18921 cat >>confdefs.h
<<_ACEOF
18922 #define HAVE_UNIXODBC 1
18926 elif test ! -z "${UNIXODBC_MANDATORY}";
18929 echo "*** The ${UNIXODBC_DESCRIP} installation on this system appears to be broken."
18930 echo "*** Either correct the installation, or run configure"
18931 echo "*** without explicitly specifying --with-${UNIXODBC_OPTION}"
18938 if test "${USE_OGG}" != "no"; then
18940 if test "x${OGG_DIR}" != "x"; then
18941 if test -d ${OGG_DIR}/lib
; then
18942 pbxlibdir
="-L${OGG_DIR}/lib"
18944 pbxlibdir
="-L${OGG_DIR}"
18947 { echo "$as_me:$LINENO: checking for ogg_sync_init in -logg" >&5
18948 echo $ECHO_N "checking for ogg_sync_init in -logg... $ECHO_C" >&6; }
18949 if test "${ac_cv_lib_ogg_ogg_sync_init+set}" = set; then
18950 echo $ECHO_N "(cached) $ECHO_C" >&6
18952 ac_check_lib_save_LIBS
=$LIBS
18953 LIBS
="-logg ${pbxlibdir} $LIBS"
18954 cat >conftest.
$ac_ext <<_ACEOF
18957 cat confdefs.h
>>conftest.
$ac_ext
18958 cat >>conftest.
$ac_ext <<_ACEOF
18959 /* end confdefs.h. */
18961 /* Override any GCC internal prototype to avoid an error.
18962 Use char because int might match the return type of a GCC
18963 builtin and then its argument prototype would still apply. */
18967 char ogg_sync_init ();
18971 return ogg_sync_init ();
18976 rm -f conftest.
$ac_objext conftest
$ac_exeext
18977 if { (ac_try
="$ac_link"
18978 case "(($ac_try" in
18979 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18980 *) ac_try_echo=$ac_try;;
18982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18983 (eval "$ac_link") 2>conftest.er1
18985 grep -v '^ *+' conftest.er1 >conftest.err
18987 cat conftest.err >&5
18988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18989 (exit $ac_status); } &&
18990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18991 { (case "(($ac_try" in
18992 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18993 *) ac_try_echo
=$ac_try;;
18995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18996 (eval "$ac_try") 2>&5
18998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18999 (exit $ac_status); }; } &&
19000 { ac_try
='test -s conftest$ac_exeext'
19001 { (case "(($ac_try" in
19002 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19003 *) ac_try_echo=$ac_try;;
19005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19006 (eval "$ac_try") 2>&5
19008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19009 (exit $ac_status); }; }; then
19010 ac_cv_lib_ogg_ogg_sync_init=yes
19012 echo "$as_me: failed program was:" >&5
19013 sed 's/^/| /' conftest.$ac_ext >&5
19015 ac_cv_lib_ogg_ogg_sync_init=no
19018 rm -f conftest.err conftest.$ac_objext \
19019 conftest$ac_exeext conftest.$ac_ext
19020 LIBS=$ac_check_lib_save_LIBS
19022 { echo "$as_me:$LINENO: result: $ac_cv_lib_ogg_ogg_sync_init" >&5
19023 echo "${ECHO_T}$ac_cv_lib_ogg_ogg_sync_init" >&6; }
19024 if test $ac_cv_lib_ogg_ogg_sync_init = yes; then
19031 if test "${AST_OGG_FOUND}" = "yes"; then
19033 OGG_HEADER_FOUND="1"
19034 if test "x${OGG_DIR}" != "x"; then
19035 OGG_LIB="${pbxlibdir} ${OGG_LIB}"
19036 OGG_INCLUDE="-I${OGG_DIR}/include"
19037 if test "x" != "x" ; then
19038 as_ac_Header=`echo "ac_cv_header_${OGG_DIR}/include/" |
$as_tr_sh`
19039 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19040 { echo "$as_me:$LINENO: checking for ${OGG_DIR}/include/" >&5
19041 echo $ECHO_N "checking for ${OGG_DIR}/include/... $ECHO_C" >&6; }
19042 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19043 echo $ECHO_N "(cached) $ECHO_C" >&6
19045 ac_res=`eval echo '${'$as_ac_Header'}'`
19046 { echo "$as_me:$LINENO: result: $ac_res" >&5
19047 echo "${ECHO_T}$ac_res" >&6; }
19049 # Is the header compilable?
19050 { echo "$as_me:$LINENO: checking ${OGG_DIR}/include/ usability" >&5
19051 echo $ECHO_N "checking ${OGG_DIR}/include/ usability... $ECHO_C" >&6; }
19052 cat >conftest.$ac_ext <<_ACEOF
19055 cat confdefs.h >>conftest.$ac_ext
19056 cat >>conftest.$ac_ext <<_ACEOF
19057 /* end confdefs.h. */
19058 $ac_includes_default
19059 #include <${OGG_DIR}/include/>
19061 rm -f conftest.$ac_objext
19062 if { (ac_try="$ac_compile"
19063 case "(($ac_try" in
19064 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19065 *) ac_try_echo
=$ac_try;;
19067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19068 (eval "$ac_compile") 2>conftest.er1
19070 grep -v '^ *+' conftest.er1
>conftest.err
19072 cat conftest.err
>&5
19073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19074 (exit $ac_status); } &&
19075 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19076 { (case "(($ac_try" in
19077 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19078 *) ac_try_echo=$ac_try;;
19080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19081 (eval "$ac_try") 2>&5
19083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19084 (exit $ac_status); }; } &&
19085 { ac_try='test -s conftest.$ac_objext'
19086 { (case "(($ac_try" in
19087 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19088 *) ac_try_echo
=$ac_try;;
19090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19091 (eval "$ac_try") 2>&5
19093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19094 (exit $ac_status); }; }; then
19095 ac_header_compiler
=yes
19097 echo "$as_me: failed program was:" >&5
19098 sed 's/^/| /' conftest.
$ac_ext >&5
19100 ac_header_compiler
=no
19103 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19104 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19105 echo "${ECHO_T}$ac_header_compiler" >&6; }
19107 # Is the header present?
19108 { echo "$as_me:$LINENO: checking ${OGG_DIR}/include/ presence" >&5
19109 echo $ECHO_N "checking ${OGG_DIR}/include/ presence... $ECHO_C" >&6; }
19110 cat >conftest.
$ac_ext <<_ACEOF
19113 cat confdefs.h
>>conftest.
$ac_ext
19114 cat >>conftest.
$ac_ext <<_ACEOF
19115 /* end confdefs.h. */
19116 #include <${OGG_DIR}/include/>
19118 if { (ac_try
="$ac_cpp conftest.$ac_ext"
19119 case "(($ac_try" in
19120 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19121 *) ac_try_echo=$ac_try;;
19123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19124 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19126 grep -v '^ *+' conftest.er1 >conftest.err
19128 cat conftest.err >&5
19129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19130 (exit $ac_status); } >/dev/null; then
19131 if test -s conftest.err; then
19132 ac_cpp_err=$ac_c_preproc_warn_flag
19133 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19140 if test -z "$ac_cpp_err"; then
19141 ac_header_preproc=yes
19143 echo "$as_me: failed program was:" >&5
19144 sed 's/^/| /' conftest.$ac_ext >&5
19146 ac_header_preproc=no
19149 rm -f conftest.err conftest.$ac_ext
19150 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19151 echo "${ECHO_T}$ac_header_preproc" >&6; }
19153 # So? What about this header?
19154 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19156 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
19157 echo "$as_me: WARNING: ${OGG_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
19158 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: proceeding with the compiler's result" >&5
19159 echo "$as_me: WARNING: ${OGG_DIR}/include/: proceeding with the compiler's result" >&2;}
19160 ac_header_preproc=yes
19163 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: present but cannot be compiled" >&5
19164 echo "$as_me: WARNING: ${OGG_DIR}/include/: present but cannot be compiled" >&2;}
19165 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: check for missing prerequisite headers?" >&5
19166 echo "$as_me: WARNING: ${OGG_DIR}/include/: check for missing prerequisite headers?" >&2;}
19167 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: see the Autoconf documentation" >&5
19168 echo "$as_me: WARNING: ${OGG_DIR}/include/: see the Autoconf documentation" >&2;}
19169 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
19170 echo "$as_me: WARNING: ${OGG_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
19171 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: proceeding with the preprocessor's result" >&5
19172 echo "$as_me: WARNING: ${OGG_DIR}/include/: proceeding with the preprocessor's result" >&2;}
19173 { echo "$as_me:$LINENO: WARNING: ${OGG_DIR}/include/: in the future, the compiler will take precedence" >&5
19174 echo "$as_me: WARNING: ${OGG_DIR}/include/: in the future, the compiler will take precedence" >&2;}
19178 { echo "$as_me:$LINENO: checking for ${OGG_DIR}/include/" >&5
19179 echo $ECHO_N "checking for ${OGG_DIR}/include/... $ECHO_C" >&6; }
19180 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19181 echo $ECHO_N "(cached) $ECHO_C" >&6
19183 eval "$as_ac_Header=\$ac_header_preproc"
19185 ac_res=`eval echo '${'$as_ac_Header'}'`
19186 { echo "$as_me:$LINENO: result: $ac_res" >&5
19187 echo "${ECHO_T}$ac_res" >&6; }
19190 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19199 if test "x" != "x" ; then
19200 if test "${ac_cv_header_+set}" = set; then
19201 { echo "$as_me:$LINENO: checking for " >&5
19202 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
19203 if test "${ac_cv_header_+set}" = set; then
19204 echo $ECHO_N "(cached) $ECHO_C" >&6
19206 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
19207 echo "${ECHO_T}$ac_cv_header_" >&6; }
19209 # Is the header compilable?
19210 { echo "$as_me:$LINENO: checking usability" >&5
19211 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
19212 cat >conftest.$ac_ext <<_ACEOF
19215 cat confdefs.h >>conftest.$ac_ext
19216 cat >>conftest.$ac_ext <<_ACEOF
19217 /* end confdefs.h. */
19218 $ac_includes_default
19221 rm -f conftest.$ac_objext
19222 if { (ac_try="$ac_compile"
19223 case "(($ac_try" in
19224 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19225 *) ac_try_echo
=$ac_try;;
19227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19228 (eval "$ac_compile") 2>conftest.er1
19230 grep -v '^ *+' conftest.er1
>conftest.err
19232 cat conftest.err
>&5
19233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19234 (exit $ac_status); } &&
19235 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19236 { (case "(($ac_try" in
19237 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19238 *) ac_try_echo=$ac_try;;
19240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19241 (eval "$ac_try") 2>&5
19243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244 (exit $ac_status); }; } &&
19245 { ac_try='test -s conftest.$ac_objext'
19246 { (case "(($ac_try" in
19247 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19248 *) ac_try_echo
=$ac_try;;
19250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19251 (eval "$ac_try") 2>&5
19253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19254 (exit $ac_status); }; }; then
19255 ac_header_compiler
=yes
19257 echo "$as_me: failed program was:" >&5
19258 sed 's/^/| /' conftest.
$ac_ext >&5
19260 ac_header_compiler
=no
19263 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
19264 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19265 echo "${ECHO_T}$ac_header_compiler" >&6; }
19267 # Is the header present?
19268 { echo "$as_me:$LINENO: checking presence" >&5
19269 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
19270 cat >conftest.
$ac_ext <<_ACEOF
19273 cat confdefs.h
>>conftest.
$ac_ext
19274 cat >>conftest.
$ac_ext <<_ACEOF
19275 /* end confdefs.h. */
19278 if { (ac_try
="$ac_cpp conftest.$ac_ext"
19279 case "(($ac_try" in
19280 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19281 *) ac_try_echo=$ac_try;;
19283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19284 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19286 grep -v '^ *+' conftest.er1 >conftest.err
19288 cat conftest.err >&5
19289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19290 (exit $ac_status); } >/dev/null; then
19291 if test -s conftest.err; then
19292 ac_cpp_err=$ac_c_preproc_warn_flag
19293 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19300 if test -z "$ac_cpp_err"; then
19301 ac_header_preproc=yes
19303 echo "$as_me: failed program was:" >&5
19304 sed 's/^/| /' conftest.$ac_ext >&5
19306 ac_header_preproc=no
19309 rm -f conftest.err conftest.$ac_ext
19310 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19311 echo "${ECHO_T}$ac_header_preproc" >&6; }
19313 # So? What about this header?
19314 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19316 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
19317 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
19318 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
19319 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
19320 ac_header_preproc=yes
19323 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
19324 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
19325 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
19326 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
19327 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
19328 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
19329 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
19330 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
19331 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
19332 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
19333 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
19334 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
19338 { echo "$as_me:$LINENO: checking for " >&5
19339 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
19340 if test "${ac_cv_header_+set}" = set; then
19341 echo $ECHO_N "(cached) $ECHO_C" >&6
19343 ac_cv_header_=$ac_header_preproc
19345 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
19346 echo "${ECHO_T}$ac_cv_header_" >&6; }
19349 if test $ac_cv_header_ = yes; then
19358 if test "x${OGG_HEADER_FOUND}" = "x0" ; then
19359 if test ! -z "${OGG_MANDATORY}" ;
19362 echo " *** It appears that you do not have the ogg development package installed."
19363 echo " *** Please install it to include ${OGG_DESCRIP} support, or re-run configure"
19364 echo " *** without explicitly specifying --with-${OGG_OPTION}"
19373 cat >>confdefs.h <<_ACEOF
19378 elif test ! -z "${OGG_MANDATORY}";
19381 echo "*** The ${OGG_DESCRIP} installation on this system appears to be broken."
19382 echo "*** Either correct the installation, or run configure"
19383 echo "*** without explicitly specifying --with-${OGG_OPTION}"
19390 if test "${USE_OSPTK}" != "no"; then
19392 if test "x${OSPTK_DIR}" != "x"; then
19393 if test -d ${OSPTK_DIR}/lib; then
19394 pbxlibdir="-L${OSPTK_DIR}/lib"
19396 pbxlibdir="-L${OSPTK_DIR}"
19399 { echo "$as_me:$LINENO: checking for OSPPCryptoDecrypt in -losptk" >&5
19400 echo $ECHO_N "checking for OSPPCryptoDecrypt in -losptk... $ECHO_C" >&6; }
19401 if test "${ac_cv_lib_osptk_OSPPCryptoDecrypt+set}" = set; then
19402 echo $ECHO_N "(cached) $ECHO_C" >&6
19404 ac_check_lib_save_LIBS=$LIBS
19405 LIBS="-losptk ${pbxlibdir} -lcrypto -lssl $LIBS"
19406 cat >conftest.$ac_ext <<_ACEOF
19409 cat confdefs.h >>conftest.$ac_ext
19410 cat >>conftest.$ac_ext <<_ACEOF
19411 /* end confdefs.h. */
19413 /* Override any GCC internal prototype to avoid an error.
19414 Use char because int might match the return type of a GCC
19415 builtin and then its argument prototype would still apply. */
19419 char OSPPCryptoDecrypt ();
19423 return OSPPCryptoDecrypt ();
19428 rm -f conftest.$ac_objext conftest$ac_exeext
19429 if { (ac_try="$ac_link"
19430 case "(($ac_try" in
19431 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19432 *) ac_try_echo
=$ac_try;;
19434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19435 (eval "$ac_link") 2>conftest.er1
19437 grep -v '^ *+' conftest.er1
>conftest.err
19439 cat conftest.err
>&5
19440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441 (exit $ac_status); } &&
19442 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19443 { (case "(($ac_try" in
19444 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19445 *) ac_try_echo=$ac_try;;
19447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19448 (eval "$ac_try") 2>&5
19450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19451 (exit $ac_status); }; } &&
19452 { ac_try='test -s conftest$ac_exeext'
19453 { (case "(($ac_try" in
19454 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19455 *) ac_try_echo
=$ac_try;;
19457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19458 (eval "$ac_try") 2>&5
19460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19461 (exit $ac_status); }; }; then
19462 ac_cv_lib_osptk_OSPPCryptoDecrypt
=yes
19464 echo "$as_me: failed program was:" >&5
19465 sed 's/^/| /' conftest.
$ac_ext >&5
19467 ac_cv_lib_osptk_OSPPCryptoDecrypt
=no
19470 rm -f conftest.err conftest.
$ac_objext \
19471 conftest
$ac_exeext conftest.
$ac_ext
19472 LIBS
=$ac_check_lib_save_LIBS
19474 { echo "$as_me:$LINENO: result: $ac_cv_lib_osptk_OSPPCryptoDecrypt" >&5
19475 echo "${ECHO_T}$ac_cv_lib_osptk_OSPPCryptoDecrypt" >&6; }
19476 if test $ac_cv_lib_osptk_OSPPCryptoDecrypt = yes; then
19477 AST_OSPTK_FOUND
=yes
19483 if test "${AST_OSPTK_FOUND}" = "yes"; then
19484 OSPTK_LIB
="-losptk -lcrypto -lssl"
19485 OSPTK_HEADER_FOUND
="1"
19486 if test "x${OSPTK_DIR}" != "x"; then
19487 OSPTK_LIB
="${pbxlibdir} ${OSPTK_LIB}"
19488 OSPTK_INCLUDE
="-I${OSPTK_DIR}/include"
19489 if test "xosp/osp.h" != "x" ; then
19490 as_ac_Header
=`echo "ac_cv_header_${OSPTK_DIR}/include/osp/osp.h" | $as_tr_sh`
19491 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19492 { echo "$as_me:$LINENO: checking for ${OSPTK_DIR}/include/osp/osp.h" >&5
19493 echo $ECHO_N "checking for ${OSPTK_DIR}/include/osp/osp.h... $ECHO_C" >&6; }
19494 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19495 echo $ECHO_N "(cached) $ECHO_C" >&6
19497 ac_res
=`eval echo '${'$as_ac_Header'}'`
19498 { echo "$as_me:$LINENO: result: $ac_res" >&5
19499 echo "${ECHO_T}$ac_res" >&6; }
19501 # Is the header compilable?
19502 { echo "$as_me:$LINENO: checking ${OSPTK_DIR}/include/osp/osp.h usability" >&5
19503 echo $ECHO_N "checking ${OSPTK_DIR}/include/osp/osp.h usability... $ECHO_C" >&6; }
19504 cat >conftest.
$ac_ext <<_ACEOF
19507 cat confdefs.h
>>conftest.
$ac_ext
19508 cat >>conftest.
$ac_ext <<_ACEOF
19509 /* end confdefs.h. */
19510 $ac_includes_default
19511 #include <${OSPTK_DIR}/include/osp/osp.h>
19513 rm -f conftest.
$ac_objext
19514 if { (ac_try
="$ac_compile"
19515 case "(($ac_try" in
19516 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19517 *) ac_try_echo=$ac_try;;
19519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19520 (eval "$ac_compile") 2>conftest.er1
19522 grep -v '^ *+' conftest.er1 >conftest.err
19524 cat conftest.err >&5
19525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19526 (exit $ac_status); } &&
19527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19528 { (case "(($ac_try" in
19529 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19530 *) ac_try_echo
=$ac_try;;
19532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19533 (eval "$ac_try") 2>&5
19535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19536 (exit $ac_status); }; } &&
19537 { ac_try
='test -s conftest.$ac_objext'
19538 { (case "(($ac_try" in
19539 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19540 *) ac_try_echo=$ac_try;;
19542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19543 (eval "$ac_try") 2>&5
19545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546 (exit $ac_status); }; }; then
19547 ac_header_compiler=yes
19549 echo "$as_me: failed program was:" >&5
19550 sed 's/^/| /' conftest.$ac_ext >&5
19552 ac_header_compiler=no
19555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19556 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19557 echo "${ECHO_T}$ac_header_compiler" >&6; }
19559 # Is the header present?
19560 { echo "$as_me:$LINENO: checking ${OSPTK_DIR}/include/osp/osp.h presence" >&5
19561 echo $ECHO_N "checking ${OSPTK_DIR}/include/osp/osp.h presence... $ECHO_C" >&6; }
19562 cat >conftest.$ac_ext <<_ACEOF
19565 cat confdefs.h >>conftest.$ac_ext
19566 cat >>conftest.$ac_ext <<_ACEOF
19567 /* end confdefs.h. */
19568 #include <${OSPTK_DIR}/include/osp/osp.h>
19570 if { (ac_try="$ac_cpp conftest.$ac_ext"
19571 case "(($ac_try" in
19572 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19573 *) ac_try_echo
=$ac_try;;
19575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19576 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19578 grep -v '^ *+' conftest.er1
>conftest.err
19580 cat conftest.err
>&5
19581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19582 (exit $ac_status); } >/dev
/null
; then
19583 if test -s conftest.err
; then
19584 ac_cpp_err
=$ac_c_preproc_warn_flag
19585 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19592 if test -z "$ac_cpp_err"; then
19593 ac_header_preproc
=yes
19595 echo "$as_me: failed program was:" >&5
19596 sed 's/^/| /' conftest.
$ac_ext >&5
19598 ac_header_preproc
=no
19601 rm -f conftest.err conftest.
$ac_ext
19602 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19603 echo "${ECHO_T}$ac_header_preproc" >&6; }
19605 # So? What about this header?
19606 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19608 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&5
19609 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19610 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the compiler's result" >&5
19611 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the compiler's result" >&2;}
19612 ac_header_preproc
=yes
19615 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: present but cannot be compiled" >&5
19616 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: present but cannot be compiled" >&2;}
19617 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: check for missing prerequisite headers?" >&5
19618 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: check for missing prerequisite headers?" >&2;}
19619 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: see the Autoconf documentation" >&5
19620 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: see the Autoconf documentation" >&2;}
19621 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: section \"Present But Cannot Be Compiled\"" >&5
19622 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: section \"Present But Cannot Be Compiled\"" >&2;}
19623 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the preprocessor's result" >&5
19624 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: proceeding with the preprocessor's result" >&2;}
19625 { echo "$as_me:$LINENO: WARNING: ${OSPTK_DIR}/include/osp/osp.h: in the future, the compiler will take precedence" >&5
19626 echo "$as_me: WARNING: ${OSPTK_DIR}/include/osp/osp.h: in the future, the compiler will take precedence" >&2;}
19630 { echo "$as_me:$LINENO: checking for ${OSPTK_DIR}/include/osp/osp.h" >&5
19631 echo $ECHO_N "checking for ${OSPTK_DIR}/include/osp/osp.h... $ECHO_C" >&6; }
19632 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19633 echo $ECHO_N "(cached) $ECHO_C" >&6
19635 eval "$as_ac_Header=\$ac_header_preproc"
19637 ac_res
=`eval echo '${'$as_ac_Header'}'`
19638 { echo "$as_me:$LINENO: result: $ac_res" >&5
19639 echo "${ECHO_T}$ac_res" >&6; }
19642 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19643 OSPTK_HEADER_FOUND
=1
19645 OSPTK_HEADER_FOUND
=0
19651 if test "xosp/osp.h" != "x" ; then
19652 if test "${ac_cv_header_osp_osp_h+set}" = set; then
19653 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
19654 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
19655 if test "${ac_cv_header_osp_osp_h+set}" = set; then
19656 echo $ECHO_N "(cached) $ECHO_C" >&6
19658 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
19659 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
19661 # Is the header compilable?
19662 { echo "$as_me:$LINENO: checking osp/osp.h usability" >&5
19663 echo $ECHO_N "checking osp/osp.h usability... $ECHO_C" >&6; }
19664 cat >conftest.
$ac_ext <<_ACEOF
19667 cat confdefs.h
>>conftest.
$ac_ext
19668 cat >>conftest.
$ac_ext <<_ACEOF
19669 /* end confdefs.h. */
19670 $ac_includes_default
19671 #include <osp/osp.h>
19673 rm -f conftest.
$ac_objext
19674 if { (ac_try
="$ac_compile"
19675 case "(($ac_try" in
19676 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19677 *) ac_try_echo=$ac_try;;
19679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19680 (eval "$ac_compile") 2>conftest.er1
19682 grep -v '^ *+' conftest.er1 >conftest.err
19684 cat conftest.err >&5
19685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19686 (exit $ac_status); } &&
19687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19688 { (case "(($ac_try" in
19689 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19690 *) ac_try_echo
=$ac_try;;
19692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19693 (eval "$ac_try") 2>&5
19695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19696 (exit $ac_status); }; } &&
19697 { ac_try
='test -s conftest.$ac_objext'
19698 { (case "(($ac_try" in
19699 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19700 *) ac_try_echo=$ac_try;;
19702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19703 (eval "$ac_try") 2>&5
19705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19706 (exit $ac_status); }; }; then
19707 ac_header_compiler=yes
19709 echo "$as_me: failed program was:" >&5
19710 sed 's/^/| /' conftest.$ac_ext >&5
19712 ac_header_compiler=no
19715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19716 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19717 echo "${ECHO_T}$ac_header_compiler" >&6; }
19719 # Is the header present?
19720 { echo "$as_me:$LINENO: checking osp/osp.h presence" >&5
19721 echo $ECHO_N "checking osp/osp.h presence... $ECHO_C" >&6; }
19722 cat >conftest.$ac_ext <<_ACEOF
19725 cat confdefs.h >>conftest.$ac_ext
19726 cat >>conftest.$ac_ext <<_ACEOF
19727 /* end confdefs.h. */
19728 #include <osp/osp.h>
19730 if { (ac_try="$ac_cpp conftest.$ac_ext"
19731 case "(($ac_try" in
19732 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19733 *) ac_try_echo
=$ac_try;;
19735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19736 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19738 grep -v '^ *+' conftest.er1
>conftest.err
19740 cat conftest.err
>&5
19741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19742 (exit $ac_status); } >/dev
/null
; then
19743 if test -s conftest.err
; then
19744 ac_cpp_err
=$ac_c_preproc_warn_flag
19745 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19752 if test -z "$ac_cpp_err"; then
19753 ac_header_preproc
=yes
19755 echo "$as_me: failed program was:" >&5
19756 sed 's/^/| /' conftest.
$ac_ext >&5
19758 ac_header_preproc
=no
19761 rm -f conftest.err conftest.
$ac_ext
19762 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19763 echo "${ECHO_T}$ac_header_preproc" >&6; }
19765 # So? What about this header?
19766 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19768 { echo "$as_me:$LINENO: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&5
19769 echo "$as_me: WARNING: osp/osp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19770 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the compiler's result" >&5
19771 echo "$as_me: WARNING: osp/osp.h: proceeding with the compiler's result" >&2;}
19772 ac_header_preproc
=yes
19775 { echo "$as_me:$LINENO: WARNING: osp/osp.h: present but cannot be compiled" >&5
19776 echo "$as_me: WARNING: osp/osp.h: present but cannot be compiled" >&2;}
19777 { echo "$as_me:$LINENO: WARNING: osp/osp.h: check for missing prerequisite headers?" >&5
19778 echo "$as_me: WARNING: osp/osp.h: check for missing prerequisite headers?" >&2;}
19779 { echo "$as_me:$LINENO: WARNING: osp/osp.h: see the Autoconf documentation" >&5
19780 echo "$as_me: WARNING: osp/osp.h: see the Autoconf documentation" >&2;}
19781 { echo "$as_me:$LINENO: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&5
19782 echo "$as_me: WARNING: osp/osp.h: section \"Present But Cannot Be Compiled\"" >&2;}
19783 { echo "$as_me:$LINENO: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&5
19784 echo "$as_me: WARNING: osp/osp.h: proceeding with the preprocessor's result" >&2;}
19785 { echo "$as_me:$LINENO: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&5
19786 echo "$as_me: WARNING: osp/osp.h: in the future, the compiler will take precedence" >&2;}
19790 { echo "$as_me:$LINENO: checking for osp/osp.h" >&5
19791 echo $ECHO_N "checking for osp/osp.h... $ECHO_C" >&6; }
19792 if test "${ac_cv_header_osp_osp_h+set}" = set; then
19793 echo $ECHO_N "(cached) $ECHO_C" >&6
19795 ac_cv_header_osp_osp_h
=$ac_header_preproc
19797 { echo "$as_me:$LINENO: result: $ac_cv_header_osp_osp_h" >&5
19798 echo "${ECHO_T}$ac_cv_header_osp_osp_h" >&6; }
19801 if test $ac_cv_header_osp_osp_h = yes; then
19802 OSPTK_HEADER_FOUND
=1
19804 OSPTK_HEADER_FOUND
=0
19810 if test "x${OSPTK_HEADER_FOUND}" = "x0" ; then
19811 if test ! -z "${OSPTK_MANDATORY}" ;
19814 echo " *** It appears that you do not have the osptk development package installed."
19815 echo " *** Please install it to include ${OSPTK_DESCRIP} support, or re-run configure"
19816 echo " *** without explicitly specifying --with-${OSPTK_OPTION}"
19825 cat >>confdefs.h
<<_ACEOF
19826 #define HAVE_OSPTK 1
19830 elif test ! -z "${OSPTK_MANDATORY}";
19833 echo "*** The ${OSPTK_DESCRIP} installation on this system appears to be broken."
19834 echo "*** Either correct the installation, or run configure"
19835 echo "*** without explicitly specifying --with-${OSPTK_OPTION}"
19842 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
19843 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
19844 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
19845 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
19846 echo $ECHO_N "(cached) $ECHO_C" >&6
19848 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
19849 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
19851 # Is the header compilable?
19852 { echo "$as_me:$LINENO: checking linux/soundcard.h usability" >&5
19853 echo $ECHO_N "checking linux/soundcard.h usability... $ECHO_C" >&6; }
19854 cat >conftest.
$ac_ext <<_ACEOF
19857 cat confdefs.h
>>conftest.
$ac_ext
19858 cat >>conftest.
$ac_ext <<_ACEOF
19859 /* end confdefs.h. */
19860 $ac_includes_default
19861 #include <linux/soundcard.h>
19863 rm -f conftest.
$ac_objext
19864 if { (ac_try
="$ac_compile"
19865 case "(($ac_try" in
19866 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19867 *) ac_try_echo=$ac_try;;
19869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19870 (eval "$ac_compile") 2>conftest.er1
19872 grep -v '^ *+' conftest.er1 >conftest.err
19874 cat conftest.err >&5
19875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19876 (exit $ac_status); } &&
19877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19878 { (case "(($ac_try" in
19879 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19880 *) ac_try_echo
=$ac_try;;
19882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19883 (eval "$ac_try") 2>&5
19885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19886 (exit $ac_status); }; } &&
19887 { ac_try
='test -s conftest.$ac_objext'
19888 { (case "(($ac_try" in
19889 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19890 *) ac_try_echo=$ac_try;;
19892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19893 (eval "$ac_try") 2>&5
19895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19896 (exit $ac_status); }; }; then
19897 ac_header_compiler=yes
19899 echo "$as_me: failed program was:" >&5
19900 sed 's/^/| /' conftest.$ac_ext >&5
19902 ac_header_compiler=no
19905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19906 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19907 echo "${ECHO_T}$ac_header_compiler" >&6; }
19909 # Is the header present?
19910 { echo "$as_me:$LINENO: checking linux/soundcard.h presence" >&5
19911 echo $ECHO_N "checking linux/soundcard.h presence... $ECHO_C" >&6; }
19912 cat >conftest.$ac_ext <<_ACEOF
19915 cat confdefs.h >>conftest.$ac_ext
19916 cat >>conftest.$ac_ext <<_ACEOF
19917 /* end confdefs.h. */
19918 #include <linux/soundcard.h>
19920 if { (ac_try="$ac_cpp conftest.$ac_ext"
19921 case "(($ac_try" in
19922 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19923 *) ac_try_echo
=$ac_try;;
19925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19926 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19928 grep -v '^ *+' conftest.er1
>conftest.err
19930 cat conftest.err
>&5
19931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19932 (exit $ac_status); } >/dev
/null
; then
19933 if test -s conftest.err
; then
19934 ac_cpp_err
=$ac_c_preproc_warn_flag
19935 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19942 if test -z "$ac_cpp_err"; then
19943 ac_header_preproc
=yes
19945 echo "$as_me: failed program was:" >&5
19946 sed 's/^/| /' conftest.
$ac_ext >&5
19948 ac_header_preproc
=no
19951 rm -f conftest.err conftest.
$ac_ext
19952 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19953 echo "${ECHO_T}$ac_header_preproc" >&6; }
19955 # So? What about this header?
19956 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19958 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
19959 echo "$as_me: WARNING: linux/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19960 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&5
19961 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the compiler's result" >&2;}
19962 ac_header_preproc
=yes
19965 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: present but cannot be compiled" >&5
19966 echo "$as_me: WARNING: linux/soundcard.h: present but cannot be compiled" >&2;}
19967 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&5
19968 echo "$as_me: WARNING: linux/soundcard.h: check for missing prerequisite headers?" >&2;}
19969 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: see the Autoconf documentation" >&5
19970 echo "$as_me: WARNING: linux/soundcard.h: see the Autoconf documentation" >&2;}
19971 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
19972 echo "$as_me: WARNING: linux/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
19973 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&5
19974 echo "$as_me: WARNING: linux/soundcard.h: proceeding with the preprocessor's result" >&2;}
19975 { echo "$as_me:$LINENO: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&5
19976 echo "$as_me: WARNING: linux/soundcard.h: in the future, the compiler will take precedence" >&2;}
19980 { echo "$as_me:$LINENO: checking for linux/soundcard.h" >&5
19981 echo $ECHO_N "checking for linux/soundcard.h... $ECHO_C" >&6; }
19982 if test "${ac_cv_header_linux_soundcard_h+set}" = set; then
19983 echo $ECHO_N "(cached) $ECHO_C" >&6
19985 ac_cv_header_linux_soundcard_h
=$ac_header_preproc
19987 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_soundcard_h" >&5
19988 echo "${ECHO_T}$ac_cv_header_linux_soundcard_h" >&6; }
19991 if test $ac_cv_header_linux_soundcard_h = yes; then
19995 cat >>confdefs.h
<<_ACEOF
20003 if test "$PBX_OSS" = "0"; then
20004 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
20005 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
20006 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
20007 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
20008 echo $ECHO_N "(cached) $ECHO_C" >&6
20010 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
20011 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
20013 # Is the header compilable?
20014 { echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
20015 echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6; }
20016 cat >conftest.
$ac_ext <<_ACEOF
20019 cat confdefs.h
>>conftest.
$ac_ext
20020 cat >>conftest.
$ac_ext <<_ACEOF
20021 /* end confdefs.h. */
20022 $ac_includes_default
20023 #include <sys/soundcard.h>
20025 rm -f conftest.
$ac_objext
20026 if { (ac_try
="$ac_compile"
20027 case "(($ac_try" in
20028 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20029 *) ac_try_echo=$ac_try;;
20031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20032 (eval "$ac_compile") 2>conftest.er1
20034 grep -v '^ *+' conftest.er1 >conftest.err
20036 cat conftest.err >&5
20037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20038 (exit $ac_status); } &&
20039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20040 { (case "(($ac_try" in
20041 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20042 *) ac_try_echo
=$ac_try;;
20044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20045 (eval "$ac_try") 2>&5
20047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20048 (exit $ac_status); }; } &&
20049 { ac_try
='test -s conftest.$ac_objext'
20050 { (case "(($ac_try" in
20051 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20052 *) ac_try_echo=$ac_try;;
20054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20055 (eval "$ac_try") 2>&5
20057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20058 (exit $ac_status); }; }; then
20059 ac_header_compiler=yes
20061 echo "$as_me: failed program was:" >&5
20062 sed 's/^/| /' conftest.$ac_ext >&5
20064 ac_header_compiler=no
20067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20068 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20069 echo "${ECHO_T}$ac_header_compiler" >&6; }
20071 # Is the header present?
20072 { echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
20073 echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6; }
20074 cat >conftest.$ac_ext <<_ACEOF
20077 cat confdefs.h >>conftest.$ac_ext
20078 cat >>conftest.$ac_ext <<_ACEOF
20079 /* end confdefs.h. */
20080 #include <sys/soundcard.h>
20082 if { (ac_try="$ac_cpp conftest.$ac_ext"
20083 case "(($ac_try" in
20084 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20085 *) ac_try_echo
=$ac_try;;
20087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20088 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20090 grep -v '^ *+' conftest.er1
>conftest.err
20092 cat conftest.err
>&5
20093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20094 (exit $ac_status); } >/dev
/null
; then
20095 if test -s conftest.err
; then
20096 ac_cpp_err
=$ac_c_preproc_warn_flag
20097 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20104 if test -z "$ac_cpp_err"; then
20105 ac_header_preproc
=yes
20107 echo "$as_me: failed program was:" >&5
20108 sed 's/^/| /' conftest.
$ac_ext >&5
20110 ac_header_preproc
=no
20113 rm -f conftest.err conftest.
$ac_ext
20114 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20115 echo "${ECHO_T}$ac_header_preproc" >&6; }
20117 # So? What about this header?
20118 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20120 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
20121 echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20122 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
20123 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
20124 ac_header_preproc
=yes
20127 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
20128 echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
20129 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
20130 echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
20131 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
20132 echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
20133 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
20134 echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
20135 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
20136 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
20137 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
20138 echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
20142 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
20143 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
20144 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
20145 echo $ECHO_N "(cached) $ECHO_C" >&6
20147 ac_cv_header_sys_soundcard_h
=$ac_header_preproc
20149 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
20150 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
20153 if test $ac_cv_header_sys_soundcard_h = yes; then
20157 cat >>confdefs.h
<<_ACEOF
20166 if test "$PBX_OSS" = "0"; then
20168 if test "${USE_OSS}" != "no"; then
20170 if test "x${OSS_DIR}" != "x"; then
20171 if test -d ${OSS_DIR}/lib
; then
20172 pbxlibdir
="-L${OSS_DIR}/lib"
20174 pbxlibdir
="-L${OSS_DIR}"
20177 { echo "$as_me:$LINENO: checking for oss_ioctl_mixer in -lossaudio" >&5
20178 echo $ECHO_N "checking for oss_ioctl_mixer in -lossaudio... $ECHO_C" >&6; }
20179 if test "${ac_cv_lib_ossaudio_oss_ioctl_mixer+set}" = set; then
20180 echo $ECHO_N "(cached) $ECHO_C" >&6
20182 ac_check_lib_save_LIBS
=$LIBS
20183 LIBS
="-lossaudio ${pbxlibdir} $LIBS"
20184 cat >conftest.
$ac_ext <<_ACEOF
20187 cat confdefs.h
>>conftest.
$ac_ext
20188 cat >>conftest.
$ac_ext <<_ACEOF
20189 /* end confdefs.h. */
20191 /* Override any GCC internal prototype to avoid an error.
20192 Use char because int might match the return type of a GCC
20193 builtin and then its argument prototype would still apply. */
20197 char oss_ioctl_mixer ();
20201 return oss_ioctl_mixer ();
20206 rm -f conftest.
$ac_objext conftest
$ac_exeext
20207 if { (ac_try
="$ac_link"
20208 case "(($ac_try" in
20209 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20210 *) ac_try_echo=$ac_try;;
20212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20213 (eval "$ac_link") 2>conftest.er1
20215 grep -v '^ *+' conftest.er1 >conftest.err
20217 cat conftest.err >&5
20218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20219 (exit $ac_status); } &&
20220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20221 { (case "(($ac_try" in
20222 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20223 *) ac_try_echo
=$ac_try;;
20225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20226 (eval "$ac_try") 2>&5
20228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20229 (exit $ac_status); }; } &&
20230 { ac_try
='test -s conftest$ac_exeext'
20231 { (case "(($ac_try" in
20232 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20233 *) ac_try_echo=$ac_try;;
20235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20236 (eval "$ac_try") 2>&5
20238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239 (exit $ac_status); }; }; then
20240 ac_cv_lib_ossaudio_oss_ioctl_mixer=yes
20242 echo "$as_me: failed program was:" >&5
20243 sed 's/^/| /' conftest.$ac_ext >&5
20245 ac_cv_lib_ossaudio_oss_ioctl_mixer=no
20248 rm -f conftest.err conftest.$ac_objext \
20249 conftest$ac_exeext conftest.$ac_ext
20250 LIBS=$ac_check_lib_save_LIBS
20252 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio_oss_ioctl_mixer" >&5
20253 echo "${ECHO_T}$ac_cv_lib_ossaudio_oss_ioctl_mixer" >&6; }
20254 if test $ac_cv_lib_ossaudio_oss_ioctl_mixer = yes; then
20261 if test "${AST_OSS_FOUND}" = "yes"; then
20262 OSS_LIB="-lossaudio "
20263 OSS_HEADER_FOUND="1"
20264 if test "x${OSS_DIR}" != "x"; then
20265 OSS_LIB="${pbxlibdir} ${OSS_LIB}"
20266 OSS_INCLUDE="-I${OSS_DIR}/include"
20267 if test "xsoundcard.h" != "x" ; then
20268 as_ac_Header=`echo "ac_cv_header_${OSS_DIR}/include/soundcard.h" |
$as_tr_sh`
20269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20270 { echo "$as_me:$LINENO: checking for ${OSS_DIR}/include/soundcard.h" >&5
20271 echo $ECHO_N "checking for ${OSS_DIR}/include/soundcard.h... $ECHO_C" >&6; }
20272 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20273 echo $ECHO_N "(cached) $ECHO_C" >&6
20275 ac_res=`eval echo '${'$as_ac_Header'}'`
20276 { echo "$as_me:$LINENO: result: $ac_res" >&5
20277 echo "${ECHO_T}$ac_res" >&6; }
20279 # Is the header compilable?
20280 { echo "$as_me:$LINENO: checking ${OSS_DIR}/include/soundcard.h usability" >&5
20281 echo $ECHO_N "checking ${OSS_DIR}/include/soundcard.h usability... $ECHO_C" >&6; }
20282 cat >conftest.$ac_ext <<_ACEOF
20285 cat confdefs.h >>conftest.$ac_ext
20286 cat >>conftest.$ac_ext <<_ACEOF
20287 /* end confdefs.h. */
20288 $ac_includes_default
20289 #include <${OSS_DIR}/include/soundcard.h>
20291 rm -f conftest.$ac_objext
20292 if { (ac_try="$ac_compile"
20293 case "(($ac_try" in
20294 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20295 *) ac_try_echo
=$ac_try;;
20297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20298 (eval "$ac_compile") 2>conftest.er1
20300 grep -v '^ *+' conftest.er1
>conftest.err
20302 cat conftest.err
>&5
20303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20304 (exit $ac_status); } &&
20305 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20306 { (case "(($ac_try" in
20307 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20308 *) ac_try_echo=$ac_try;;
20310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20311 (eval "$ac_try") 2>&5
20313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20314 (exit $ac_status); }; } &&
20315 { ac_try='test -s conftest.$ac_objext'
20316 { (case "(($ac_try" in
20317 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20318 *) ac_try_echo
=$ac_try;;
20320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20321 (eval "$ac_try") 2>&5
20323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20324 (exit $ac_status); }; }; then
20325 ac_header_compiler
=yes
20327 echo "$as_me: failed program was:" >&5
20328 sed 's/^/| /' conftest.
$ac_ext >&5
20330 ac_header_compiler
=no
20333 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20334 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20335 echo "${ECHO_T}$ac_header_compiler" >&6; }
20337 # Is the header present?
20338 { echo "$as_me:$LINENO: checking ${OSS_DIR}/include/soundcard.h presence" >&5
20339 echo $ECHO_N "checking ${OSS_DIR}/include/soundcard.h presence... $ECHO_C" >&6; }
20340 cat >conftest.
$ac_ext <<_ACEOF
20343 cat confdefs.h
>>conftest.
$ac_ext
20344 cat >>conftest.
$ac_ext <<_ACEOF
20345 /* end confdefs.h. */
20346 #include <${OSS_DIR}/include/soundcard.h>
20348 if { (ac_try
="$ac_cpp conftest.$ac_ext"
20349 case "(($ac_try" in
20350 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20351 *) ac_try_echo=$ac_try;;
20353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20354 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20356 grep -v '^ *+' conftest.er1 >conftest.err
20358 cat conftest.err >&5
20359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20360 (exit $ac_status); } >/dev/null; then
20361 if test -s conftest.err; then
20362 ac_cpp_err=$ac_c_preproc_warn_flag
20363 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20370 if test -z "$ac_cpp_err"; then
20371 ac_header_preproc=yes
20373 echo "$as_me: failed program was:" >&5
20374 sed 's/^/| /' conftest.$ac_ext >&5
20376 ac_header_preproc=no
20379 rm -f conftest.err conftest.$ac_ext
20380 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20381 echo "${ECHO_T}$ac_header_preproc" >&6; }
20383 # So? What about this header?
20384 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20386 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
20387 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20388 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the compiler's result" >&5
20389 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the compiler's result" >&2;}
20390 ac_header_preproc=yes
20393 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: present but cannot be compiled" >&5
20394 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: present but cannot be compiled" >&2;}
20395 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: check for missing prerequisite headers?" >&5
20396 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: check for missing prerequisite headers?" >&2;}
20397 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: see the Autoconf documentation" >&5
20398 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: see the Autoconf documentation" >&2;}
20399 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
20400 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
20401 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the preprocessor's result" >&5
20402 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: proceeding with the preprocessor's result" >&2;}
20403 { echo "$as_me:$LINENO: WARNING: ${OSS_DIR}/include/soundcard.h: in the future, the compiler will take precedence" >&5
20404 echo "$as_me: WARNING: ${OSS_DIR}/include/soundcard.h: in the future, the compiler will take precedence" >&2;}
20408 { echo "$as_me:$LINENO: checking for ${OSS_DIR}/include/soundcard.h" >&5
20409 echo $ECHO_N "checking for ${OSS_DIR}/include/soundcard.h... $ECHO_C" >&6; }
20410 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20411 echo $ECHO_N "(cached) $ECHO_C" >&6
20413 eval "$as_ac_Header=\$ac_header_preproc"
20415 ac_res=`eval echo '${'$as_ac_Header'}'`
20416 { echo "$as_me:$LINENO: result: $ac_res" >&5
20417 echo "${ECHO_T}$ac_res" >&6; }
20420 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20429 if test "xsoundcard.h" != "x" ; then
20430 if test "${ac_cv_header_soundcard_h+set}" = set; then
20431 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
20432 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
20433 if test "${ac_cv_header_soundcard_h+set}" = set; then
20434 echo $ECHO_N "(cached) $ECHO_C" >&6
20436 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
20437 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
20439 # Is the header compilable?
20440 { echo "$as_me:$LINENO: checking soundcard.h usability" >&5
20441 echo $ECHO_N "checking soundcard.h usability... $ECHO_C" >&6; }
20442 cat >conftest.$ac_ext <<_ACEOF
20445 cat confdefs.h >>conftest.$ac_ext
20446 cat >>conftest.$ac_ext <<_ACEOF
20447 /* end confdefs.h. */
20448 $ac_includes_default
20449 #include <soundcard.h>
20451 rm -f conftest.$ac_objext
20452 if { (ac_try="$ac_compile"
20453 case "(($ac_try" in
20454 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20455 *) ac_try_echo
=$ac_try;;
20457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20458 (eval "$ac_compile") 2>conftest.er1
20460 grep -v '^ *+' conftest.er1
>conftest.err
20462 cat conftest.err
>&5
20463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20464 (exit $ac_status); } &&
20465 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20466 { (case "(($ac_try" in
20467 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20468 *) ac_try_echo=$ac_try;;
20470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20471 (eval "$ac_try") 2>&5
20473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20474 (exit $ac_status); }; } &&
20475 { ac_try='test -s conftest.$ac_objext'
20476 { (case "(($ac_try" in
20477 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20478 *) ac_try_echo
=$ac_try;;
20480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20481 (eval "$ac_try") 2>&5
20483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20484 (exit $ac_status); }; }; then
20485 ac_header_compiler
=yes
20487 echo "$as_me: failed program was:" >&5
20488 sed 's/^/| /' conftest.
$ac_ext >&5
20490 ac_header_compiler
=no
20493 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20494 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20495 echo "${ECHO_T}$ac_header_compiler" >&6; }
20497 # Is the header present?
20498 { echo "$as_me:$LINENO: checking soundcard.h presence" >&5
20499 echo $ECHO_N "checking soundcard.h presence... $ECHO_C" >&6; }
20500 cat >conftest.
$ac_ext <<_ACEOF
20503 cat confdefs.h
>>conftest.
$ac_ext
20504 cat >>conftest.
$ac_ext <<_ACEOF
20505 /* end confdefs.h. */
20506 #include <soundcard.h>
20508 if { (ac_try
="$ac_cpp conftest.$ac_ext"
20509 case "(($ac_try" in
20510 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20511 *) ac_try_echo=$ac_try;;
20513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20514 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20516 grep -v '^ *+' conftest.er1 >conftest.err
20518 cat conftest.err >&5
20519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20520 (exit $ac_status); } >/dev/null; then
20521 if test -s conftest.err; then
20522 ac_cpp_err=$ac_c_preproc_warn_flag
20523 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20530 if test -z "$ac_cpp_err"; then
20531 ac_header_preproc=yes
20533 echo "$as_me: failed program was:" >&5
20534 sed 's/^/| /' conftest.$ac_ext >&5
20536 ac_header_preproc=no
20539 rm -f conftest.err conftest.$ac_ext
20540 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20541 echo "${ECHO_T}$ac_header_preproc" >&6; }
20543 # So? What about this header?
20544 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20546 { echo "$as_me:$LINENO: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
20547 echo "$as_me: WARNING: soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20548 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the compiler's result" >&5
20549 echo "$as_me: WARNING: soundcard.h: proceeding with the compiler's result" >&2;}
20550 ac_header_preproc=yes
20553 { echo "$as_me:$LINENO: WARNING: soundcard.h: present but cannot be compiled" >&5
20554 echo "$as_me: WARNING: soundcard.h: present but cannot be compiled" >&2;}
20555 { echo "$as_me:$LINENO: WARNING: soundcard.h: check for missing prerequisite headers?" >&5
20556 echo "$as_me: WARNING: soundcard.h: check for missing prerequisite headers?" >&2;}
20557 { echo "$as_me:$LINENO: WARNING: soundcard.h: see the Autoconf documentation" >&5
20558 echo "$as_me: WARNING: soundcard.h: see the Autoconf documentation" >&2;}
20559 { echo "$as_me:$LINENO: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
20560 echo "$as_me: WARNING: soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
20561 { echo "$as_me:$LINENO: WARNING: soundcard.h: proceeding with the preprocessor's result" >&5
20562 echo "$as_me: WARNING: soundcard.h: proceeding with the preprocessor's result" >&2;}
20563 { echo "$as_me:$LINENO: WARNING: soundcard.h: in the future, the compiler will take precedence" >&5
20564 echo "$as_me: WARNING: soundcard.h: in the future, the compiler will take precedence" >&2;}
20568 { echo "$as_me:$LINENO: checking for soundcard.h" >&5
20569 echo $ECHO_N "checking for soundcard.h... $ECHO_C" >&6; }
20570 if test "${ac_cv_header_soundcard_h+set}" = set; then
20571 echo $ECHO_N "(cached) $ECHO_C" >&6
20573 ac_cv_header_soundcard_h=$ac_header_preproc
20575 { echo "$as_me:$LINENO: result: $ac_cv_header_soundcard_h" >&5
20576 echo "${ECHO_T}$ac_cv_header_soundcard_h" >&6; }
20579 if test $ac_cv_header_soundcard_h = yes; then
20588 if test "x${OSS_HEADER_FOUND}" = "x0" ; then
20589 if test ! -z "${OSS_MANDATORY}" ;
20592 echo " *** It appears that you do not have the ossaudio development package installed."
20593 echo " *** Please install it to include ${OSS_DESCRIP} support, or re-run configure"
20594 echo " *** without explicitly specifying --with-${OSS_OPTION}"
20603 cat >>confdefs.h <<_ACEOF
20608 elif test ! -z "${OSS_MANDATORY}";
20611 echo "*** The ${OSS_DESCRIP} installation on this system appears to be broken."
20612 echo "*** Either correct the installation, or run configure"
20613 echo "*** without explicitly specifying --with-${OSS_OPTION}"
20621 if test "${USE_PGSQL}" != "no"; then
20622 if test "x${PGSQL_DIR}" != "x"; then
20623 if test -n "$ac_tool_prefix"; then
20624 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
20625 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
20626 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20628 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
20629 echo $ECHO_N "(cached) $ECHO_C" >&6
20633 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
20636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20637 for as_dir in ${PGSQL_DIR}/bin
20640 test -z "$as_dir" && as_dir=.
20641 for ac_exec_ext in '' $ac_executable_extensions; do
20642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20643 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20654 PG_CONFIG=$ac_cv_path_PG_CONFIG
20655 if test -n "$PG_CONFIG"; then
20656 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
20657 echo "${ECHO_T}$PG_CONFIG" >&6; }
20659 { echo "$as_me:$LINENO: result: no" >&5
20660 echo "${ECHO_T}no" >&6; }
20665 if test -z "$ac_cv_path_PG_CONFIG"; then
20666 ac_pt_PG_CONFIG=$PG_CONFIG
20667 # Extract the first word of "pg_config", so it can be a program name with args.
20668 set dummy pg_config; ac_word=$2
20669 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20671 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
20672 echo $ECHO_N "(cached) $ECHO_C" >&6
20674 case $ac_pt_PG_CONFIG in
20676 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
20679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20680 for as_dir in ${PGSQL_DIR}/bin
20683 test -z "$as_dir" && as_dir=.
20684 for ac_exec_ext in '' $ac_executable_extensions; do
20685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20686 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20697 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
20698 if test -n "$ac_pt_PG_CONFIG"; then
20699 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
20700 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
20702 { echo "$as_me:$LINENO: result: no" >&5
20703 echo "${ECHO_T}no" >&6; }
20706 if test "x$ac_pt_PG_CONFIG" = x; then
20709 case $cross_compiling:$ac_tool_warned in
20711 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20712 whose name does not start with the host triplet. If you think this
20713 configuration is useful to you, please write to autoconf@gnu.org." >&5
20714 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20715 whose name does not start with the host triplet. If you think this
20716 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20717 ac_tool_warned=yes ;;
20719 PG_CONFIG=$ac_pt_PG_CONFIG
20722 PG_CONFIG="$ac_cv_path_PG_CONFIG"
20725 if test x"${PG_CONFIG}" = xNo; then
20727 echo "*** pg_config was not found in the path you specified:"
20728 echo "*** ${PGSQL_DIR}/bin"
20729 echo "*** Either correct the installation, or run configure"
20730 echo "*** including --without-postgres"
20734 if test -n "$ac_tool_prefix"; then
20735 # Extract the first word of "${ac_tool_prefix}pg_config", so it can be a program name with args.
20736 set dummy ${ac_tool_prefix}pg_config; ac_word=$2
20737 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20739 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
20740 echo $ECHO_N "(cached) $ECHO_C" >&6
20744 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
20747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20748 for as_dir in $PATH
20751 test -z "$as_dir" && as_dir=.
20752 for ac_exec_ext in '' $ac_executable_extensions; do
20753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20754 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20765 PG_CONFIG=$ac_cv_path_PG_CONFIG
20766 if test -n "$PG_CONFIG"; then
20767 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
20768 echo "${ECHO_T}$PG_CONFIG" >&6; }
20770 { echo "$as_me:$LINENO: result: no" >&5
20771 echo "${ECHO_T}no" >&6; }
20776 if test -z "$ac_cv_path_PG_CONFIG"; then
20777 ac_pt_PG_CONFIG=$PG_CONFIG
20778 # Extract the first word of "pg_config", so it can be a program name with args.
20779 set dummy pg_config; ac_word=$2
20780 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20782 if test "${ac_cv_path_ac_pt_PG_CONFIG+set}" = set; then
20783 echo $ECHO_N "(cached) $ECHO_C" >&6
20785 case $ac_pt_PG_CONFIG in
20787 ac_cv_path_ac_pt_PG_CONFIG="$ac_pt_PG_CONFIG" # Let the user override the test with a path.
20790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20791 for as_dir in $PATH
20794 test -z "$as_dir" && as_dir=.
20795 for ac_exec_ext in '' $ac_executable_extensions; do
20796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
20797 ac_cv_path_ac_pt_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20808 ac_pt_PG_CONFIG=$ac_cv_path_ac_pt_PG_CONFIG
20809 if test -n "$ac_pt_PG_CONFIG"; then
20810 { echo "$as_me:$LINENO: result: $ac_pt_PG_CONFIG" >&5
20811 echo "${ECHO_T}$ac_pt_PG_CONFIG" >&6; }
20813 { echo "$as_me:$LINENO: result: no" >&5
20814 echo "${ECHO_T}no" >&6; }
20817 if test "x$ac_pt_PG_CONFIG" = x; then
20820 case $cross_compiling:$ac_tool_warned in
20822 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20823 whose name does not start with the host triplet. If you think this
20824 configuration is useful to you, please write to autoconf@gnu.org." >&5
20825 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20826 whose name does not start with the host triplet. If you think this
20827 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20828 ac_tool_warned=yes ;;
20830 PG_CONFIG=$ac_pt_PG_CONFIG
20833 PG_CONFIG="$ac_cv_path_PG_CONFIG"
20838 if test "${PG_CONFIG}" != No; then
20839 PGSQL_libdir=`pg_config
--libdir`
20840 PGSQL_includedir=`pg_config
--includedir`
20842 { echo "$as_me:$LINENO: checking for PQexec in -lpq" >&5
20843 echo $ECHO_N "checking for PQexec in -lpq... $ECHO_C" >&6; }
20844 if test "${ac_cv_lib_pq_PQexec+set}" = set; then
20845 echo $ECHO_N "(cached) $ECHO_C" >&6
20847 ac_check_lib_save_LIBS=$LIBS
20848 LIBS="-lpq -L${PGSQL_libdir} -lz $LIBS"
20849 cat >conftest.$ac_ext <<_ACEOF
20852 cat confdefs.h >>conftest.$ac_ext
20853 cat >>conftest.$ac_ext <<_ACEOF
20854 /* end confdefs.h. */
20856 /* Override any GCC internal prototype to avoid an error.
20857 Use char because int might match the return type of a GCC
20858 builtin and then its argument prototype would still apply. */
20871 rm -f conftest.$ac_objext conftest$ac_exeext
20872 if { (ac_try="$ac_link"
20873 case "(($ac_try" in
20874 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20875 *) ac_try_echo
=$ac_try;;
20877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20878 (eval "$ac_link") 2>conftest.er1
20880 grep -v '^ *+' conftest.er1
>conftest.err
20882 cat conftest.err
>&5
20883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20884 (exit $ac_status); } &&
20885 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20886 { (case "(($ac_try" in
20887 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20888 *) ac_try_echo=$ac_try;;
20890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20891 (eval "$ac_try") 2>&5
20893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20894 (exit $ac_status); }; } &&
20895 { ac_try='test -s conftest$ac_exeext'
20896 { (case "(($ac_try" in
20897 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20898 *) ac_try_echo
=$ac_try;;
20900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20901 (eval "$ac_try") 2>&5
20903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20904 (exit $ac_status); }; }; then
20905 ac_cv_lib_pq_PQexec
=yes
20907 echo "$as_me: failed program was:" >&5
20908 sed 's/^/| /' conftest.
$ac_ext >&5
20910 ac_cv_lib_pq_PQexec
=no
20913 rm -f conftest.err conftest.
$ac_objext \
20914 conftest
$ac_exeext conftest.
$ac_ext
20915 LIBS
=$ac_check_lib_save_LIBS
20917 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQexec" >&5
20918 echo "${ECHO_T}$ac_cv_lib_pq_PQexec" >&6; }
20919 if test $ac_cv_lib_pq_PQexec = yes; then
20921 cat >>confdefs.h
<<_ACEOF
20922 #define HAVE_PGSQL 1
20928 if test "${ac_cv_lib_pq_PQexec}" = "yes"; then
20929 PGSQL_LIB
="-L${PGSQL_libdir} -lpq -lz"
20930 PGSQL_INCLUDE
="-I${PGSQL_includedir}"
20932 elif test ! -z "${PGSQL_MANDATORY}";
20935 echo "*** The PostgreSQL installation on this system appears to be broken."
20936 echo "*** Either correct the installation, or run configure"
20937 echo "*** including --without-postgres"
20940 elif test ! -z "${PGSQL_MANDATORY}";
20943 echo "*** The PostgreSQL installation on this system appears to be broken."
20944 echo "*** Either correct the installation, or run configure"
20945 echo "*** including --without-postgres"
20950 if test "${USE_POPT}" != "no"; then
20952 if test "x${POPT_DIR}" != "x"; then
20953 if test -d ${POPT_DIR}/lib
; then
20954 pbxlibdir
="-L${POPT_DIR}/lib"
20956 pbxlibdir
="-L${POPT_DIR}"
20959 { echo "$as_me:$LINENO: checking for poptStrerror in -lpopt" >&5
20960 echo $ECHO_N "checking for poptStrerror in -lpopt... $ECHO_C" >&6; }
20961 if test "${ac_cv_lib_popt_poptStrerror+set}" = set; then
20962 echo $ECHO_N "(cached) $ECHO_C" >&6
20964 ac_check_lib_save_LIBS
=$LIBS
20965 LIBS
="-lpopt ${pbxlibdir} $LIBS"
20966 cat >conftest.
$ac_ext <<_ACEOF
20969 cat confdefs.h
>>conftest.
$ac_ext
20970 cat >>conftest.
$ac_ext <<_ACEOF
20971 /* end confdefs.h. */
20973 /* Override any GCC internal prototype to avoid an error.
20974 Use char because int might match the return type of a GCC
20975 builtin and then its argument prototype would still apply. */
20979 char poptStrerror ();
20983 return poptStrerror ();
20988 rm -f conftest.
$ac_objext conftest
$ac_exeext
20989 if { (ac_try
="$ac_link"
20990 case "(($ac_try" in
20991 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20992 *) ac_try_echo=$ac_try;;
20994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20995 (eval "$ac_link") 2>conftest.er1
20997 grep -v '^ *+' conftest.er1 >conftest.err
20999 cat conftest.err >&5
21000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21001 (exit $ac_status); } &&
21002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21003 { (case "(($ac_try" in
21004 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21005 *) ac_try_echo
=$ac_try;;
21007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21008 (eval "$ac_try") 2>&5
21010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21011 (exit $ac_status); }; } &&
21012 { ac_try
='test -s conftest$ac_exeext'
21013 { (case "(($ac_try" in
21014 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21015 *) ac_try_echo=$ac_try;;
21017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21018 (eval "$ac_try") 2>&5
21020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21021 (exit $ac_status); }; }; then
21022 ac_cv_lib_popt_poptStrerror=yes
21024 echo "$as_me: failed program was:" >&5
21025 sed 's/^/| /' conftest.$ac_ext >&5
21027 ac_cv_lib_popt_poptStrerror=no
21030 rm -f conftest.err conftest.$ac_objext \
21031 conftest$ac_exeext conftest.$ac_ext
21032 LIBS=$ac_check_lib_save_LIBS
21034 { echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptStrerror" >&5
21035 echo "${ECHO_T}$ac_cv_lib_popt_poptStrerror" >&6; }
21036 if test $ac_cv_lib_popt_poptStrerror = yes; then
21043 if test "${AST_POPT_FOUND}" = "yes"; then
21045 POPT_HEADER_FOUND="1"
21046 if test "x${POPT_DIR}" != "x"; then
21047 POPT_LIB="${pbxlibdir} ${POPT_LIB}"
21048 POPT_INCLUDE="-I${POPT_DIR}/include"
21049 if test "xpopt.h" != "x" ; then
21050 as_ac_Header=`echo "ac_cv_header_${POPT_DIR}/include/popt.h" |
$as_tr_sh`
21051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21052 { echo "$as_me:$LINENO: checking for ${POPT_DIR}/include/popt.h" >&5
21053 echo $ECHO_N "checking for ${POPT_DIR}/include/popt.h... $ECHO_C" >&6; }
21054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21055 echo $ECHO_N "(cached) $ECHO_C" >&6
21057 ac_res=`eval echo '${'$as_ac_Header'}'`
21058 { echo "$as_me:$LINENO: result: $ac_res" >&5
21059 echo "${ECHO_T}$ac_res" >&6; }
21061 # Is the header compilable?
21062 { echo "$as_me:$LINENO: checking ${POPT_DIR}/include/popt.h usability" >&5
21063 echo $ECHO_N "checking ${POPT_DIR}/include/popt.h usability... $ECHO_C" >&6; }
21064 cat >conftest.$ac_ext <<_ACEOF
21067 cat confdefs.h >>conftest.$ac_ext
21068 cat >>conftest.$ac_ext <<_ACEOF
21069 /* end confdefs.h. */
21070 $ac_includes_default
21071 #include <${POPT_DIR}/include/popt.h>
21073 rm -f conftest.$ac_objext
21074 if { (ac_try="$ac_compile"
21075 case "(($ac_try" in
21076 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21077 *) ac_try_echo
=$ac_try;;
21079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21080 (eval "$ac_compile") 2>conftest.er1
21082 grep -v '^ *+' conftest.er1
>conftest.err
21084 cat conftest.err
>&5
21085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21086 (exit $ac_status); } &&
21087 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21088 { (case "(($ac_try" in
21089 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21090 *) ac_try_echo=$ac_try;;
21092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21093 (eval "$ac_try") 2>&5
21095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21096 (exit $ac_status); }; } &&
21097 { ac_try='test -s conftest.$ac_objext'
21098 { (case "(($ac_try" in
21099 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21100 *) ac_try_echo
=$ac_try;;
21102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21103 (eval "$ac_try") 2>&5
21105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21106 (exit $ac_status); }; }; then
21107 ac_header_compiler
=yes
21109 echo "$as_me: failed program was:" >&5
21110 sed 's/^/| /' conftest.
$ac_ext >&5
21112 ac_header_compiler
=no
21115 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21116 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21117 echo "${ECHO_T}$ac_header_compiler" >&6; }
21119 # Is the header present?
21120 { echo "$as_me:$LINENO: checking ${POPT_DIR}/include/popt.h presence" >&5
21121 echo $ECHO_N "checking ${POPT_DIR}/include/popt.h presence... $ECHO_C" >&6; }
21122 cat >conftest.
$ac_ext <<_ACEOF
21125 cat confdefs.h
>>conftest.
$ac_ext
21126 cat >>conftest.
$ac_ext <<_ACEOF
21127 /* end confdefs.h. */
21128 #include <${POPT_DIR}/include/popt.h>
21130 if { (ac_try
="$ac_cpp conftest.$ac_ext"
21131 case "(($ac_try" in
21132 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21133 *) ac_try_echo=$ac_try;;
21135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21136 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21138 grep -v '^ *+' conftest.er1 >conftest.err
21140 cat conftest.err >&5
21141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21142 (exit $ac_status); } >/dev/null; then
21143 if test -s conftest.err; then
21144 ac_cpp_err=$ac_c_preproc_warn_flag
21145 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21152 if test -z "$ac_cpp_err"; then
21153 ac_header_preproc=yes
21155 echo "$as_me: failed program was:" >&5
21156 sed 's/^/| /' conftest.$ac_ext >&5
21158 ac_header_preproc=no
21161 rm -f conftest.err conftest.$ac_ext
21162 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21163 echo "${ECHO_T}$ac_header_preproc" >&6; }
21165 # So? What about this header?
21166 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21168 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
21169 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21170 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the compiler's result" >&5
21171 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the compiler's result" >&2;}
21172 ac_header_preproc=yes
21175 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: present but cannot be compiled" >&5
21176 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: present but cannot be compiled" >&2;}
21177 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: check for missing prerequisite headers?" >&5
21178 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: check for missing prerequisite headers?" >&2;}
21179 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: see the Autoconf documentation" >&5
21180 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: see the Autoconf documentation" >&2;}
21181 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: section \"Present But Cannot Be Compiled\"" >&5
21182 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: section \"Present But Cannot Be Compiled\"" >&2;}
21183 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the preprocessor's result" >&5
21184 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: proceeding with the preprocessor's result" >&2;}
21185 { echo "$as_me:$LINENO: WARNING: ${POPT_DIR}/include/popt.h: in the future, the compiler will take precedence" >&5
21186 echo "$as_me: WARNING: ${POPT_DIR}/include/popt.h: in the future, the compiler will take precedence" >&2;}
21190 { echo "$as_me:$LINENO: checking for ${POPT_DIR}/include/popt.h" >&5
21191 echo $ECHO_N "checking for ${POPT_DIR}/include/popt.h... $ECHO_C" >&6; }
21192 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21193 echo $ECHO_N "(cached) $ECHO_C" >&6
21195 eval "$as_ac_Header=\$ac_header_preproc"
21197 ac_res=`eval echo '${'$as_ac_Header'}'`
21198 { echo "$as_me:$LINENO: result: $ac_res" >&5
21199 echo "${ECHO_T}$ac_res" >&6; }
21202 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21203 POPT_HEADER_FOUND=1
21205 POPT_HEADER_FOUND=0
21211 if test "xpopt.h" != "x" ; then
21212 if test "${ac_cv_header_popt_h+set}" = set; then
21213 { echo "$as_me:$LINENO: checking for popt.h" >&5
21214 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
21215 if test "${ac_cv_header_popt_h+set}" = set; then
21216 echo $ECHO_N "(cached) $ECHO_C" >&6
21218 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
21219 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
21221 # Is the header compilable?
21222 { echo "$as_me:$LINENO: checking popt.h usability" >&5
21223 echo $ECHO_N "checking popt.h usability... $ECHO_C" >&6; }
21224 cat >conftest.$ac_ext <<_ACEOF
21227 cat confdefs.h >>conftest.$ac_ext
21228 cat >>conftest.$ac_ext <<_ACEOF
21229 /* end confdefs.h. */
21230 $ac_includes_default
21233 rm -f conftest.$ac_objext
21234 if { (ac_try="$ac_compile"
21235 case "(($ac_try" in
21236 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21237 *) ac_try_echo
=$ac_try;;
21239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21240 (eval "$ac_compile") 2>conftest.er1
21242 grep -v '^ *+' conftest.er1
>conftest.err
21244 cat conftest.err
>&5
21245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21246 (exit $ac_status); } &&
21247 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21248 { (case "(($ac_try" in
21249 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21250 *) ac_try_echo=$ac_try;;
21252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21253 (eval "$ac_try") 2>&5
21255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21256 (exit $ac_status); }; } &&
21257 { ac_try='test -s conftest.$ac_objext'
21258 { (case "(($ac_try" in
21259 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21260 *) ac_try_echo
=$ac_try;;
21262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21263 (eval "$ac_try") 2>&5
21265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21266 (exit $ac_status); }; }; then
21267 ac_header_compiler
=yes
21269 echo "$as_me: failed program was:" >&5
21270 sed 's/^/| /' conftest.
$ac_ext >&5
21272 ac_header_compiler
=no
21275 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21276 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21277 echo "${ECHO_T}$ac_header_compiler" >&6; }
21279 # Is the header present?
21280 { echo "$as_me:$LINENO: checking popt.h presence" >&5
21281 echo $ECHO_N "checking popt.h presence... $ECHO_C" >&6; }
21282 cat >conftest.
$ac_ext <<_ACEOF
21285 cat confdefs.h
>>conftest.
$ac_ext
21286 cat >>conftest.
$ac_ext <<_ACEOF
21287 /* end confdefs.h. */
21290 if { (ac_try
="$ac_cpp conftest.$ac_ext"
21291 case "(($ac_try" in
21292 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21293 *) ac_try_echo=$ac_try;;
21295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21296 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21298 grep -v '^ *+' conftest.er1 >conftest.err
21300 cat conftest.err >&5
21301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21302 (exit $ac_status); } >/dev/null; then
21303 if test -s conftest.err; then
21304 ac_cpp_err=$ac_c_preproc_warn_flag
21305 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21312 if test -z "$ac_cpp_err"; then
21313 ac_header_preproc=yes
21315 echo "$as_me: failed program was:" >&5
21316 sed 's/^/| /' conftest.$ac_ext >&5
21318 ac_header_preproc=no
21321 rm -f conftest.err conftest.$ac_ext
21322 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21323 echo "${ECHO_T}$ac_header_preproc" >&6; }
21325 # So? What about this header?
21326 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21328 { echo "$as_me:$LINENO: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
21329 echo "$as_me: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21330 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the compiler's result" >&5
21331 echo "$as_me: WARNING: popt.h: proceeding with the compiler's result" >&2;}
21332 ac_header_preproc=yes
21335 { echo "$as_me:$LINENO: WARNING: popt.h: present but cannot be compiled" >&5
21336 echo "$as_me: WARNING: popt.h: present but cannot be compiled" >&2;}
21337 { echo "$as_me:$LINENO: WARNING: popt.h: check for missing prerequisite headers?" >&5
21338 echo "$as_me: WARNING: popt.h: check for missing prerequisite headers?" >&2;}
21339 { echo "$as_me:$LINENO: WARNING: popt.h: see the Autoconf documentation" >&5
21340 echo "$as_me: WARNING: popt.h: see the Autoconf documentation" >&2;}
21341 { echo "$as_me:$LINENO: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&5
21342 echo "$as_me: WARNING: popt.h: section \"Present But Cannot Be Compiled\"" >&2;}
21343 { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the preprocessor's result" >&5
21344 echo "$as_me: WARNING: popt.h: proceeding with the preprocessor's result" >&2;}
21345 { echo "$as_me:$LINENO: WARNING: popt.h: in the future, the compiler will take precedence" >&5
21346 echo "$as_me: WARNING: popt.h: in the future, the compiler will take precedence" >&2;}
21350 { echo "$as_me:$LINENO: checking for popt.h" >&5
21351 echo $ECHO_N "checking for popt.h... $ECHO_C" >&6; }
21352 if test "${ac_cv_header_popt_h+set}" = set; then
21353 echo $ECHO_N "(cached) $ECHO_C" >&6
21355 ac_cv_header_popt_h=$ac_header_preproc
21357 { echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
21358 echo "${ECHO_T}$ac_cv_header_popt_h" >&6; }
21361 if test $ac_cv_header_popt_h = yes; then
21362 POPT_HEADER_FOUND=1
21364 POPT_HEADER_FOUND=0
21370 if test "x${POPT_HEADER_FOUND}" = "x0" ; then
21371 if test ! -z "${POPT_MANDATORY}" ;
21374 echo " *** It appears that you do not have the popt development package installed."
21375 echo " *** Please install it to include ${POPT_DESCRIP} support, or re-run configure"
21376 echo " *** without explicitly specifying --with-${POPT_OPTION}"
21385 cat >>confdefs.h <<_ACEOF
21386 #define HAVE_POPT 1
21390 elif test ! -z "${POPT_MANDATORY}";
21393 echo "*** The ${POPT_DESCRIP} installation on this system appears to be broken."
21394 echo "*** Either correct the installation, or run configure"
21395 echo "*** without explicitly specifying --with-${POPT_OPTION}"
21402 if test "${USE_PRI}" != "no"; then
21404 if test "x${PRI_DIR}" != "x"; then
21405 if test -d ${PRI_DIR}/lib; then
21406 pbxlibdir="-L${PRI_DIR}/lib"
21408 pbxlibdir="-L${PRI_DIR}"
21411 { echo "$as_me:$LINENO: checking for pri_call in -lpri" >&5
21412 echo $ECHO_N "checking for pri_call in -lpri... $ECHO_C" >&6; }
21413 if test "${ac_cv_lib_pri_pri_call+set}" = set; then
21414 echo $ECHO_N "(cached) $ECHO_C" >&6
21416 ac_check_lib_save_LIBS=$LIBS
21417 LIBS="-lpri ${pbxlibdir} $LIBS"
21418 cat >conftest.$ac_ext <<_ACEOF
21421 cat confdefs.h >>conftest.$ac_ext
21422 cat >>conftest.$ac_ext <<_ACEOF
21423 /* end confdefs.h. */
21425 /* Override any GCC internal prototype to avoid an error.
21426 Use char because int might match the return type of a GCC
21427 builtin and then its argument prototype would still apply. */
21435 return pri_call ();
21440 rm -f conftest.$ac_objext conftest$ac_exeext
21441 if { (ac_try="$ac_link"
21442 case "(($ac_try" in
21443 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21444 *) ac_try_echo
=$ac_try;;
21446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21447 (eval "$ac_link") 2>conftest.er1
21449 grep -v '^ *+' conftest.er1
>conftest.err
21451 cat conftest.err
>&5
21452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21453 (exit $ac_status); } &&
21454 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21455 { (case "(($ac_try" in
21456 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21457 *) ac_try_echo=$ac_try;;
21459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21460 (eval "$ac_try") 2>&5
21462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21463 (exit $ac_status); }; } &&
21464 { ac_try='test -s conftest$ac_exeext'
21465 { (case "(($ac_try" in
21466 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21467 *) ac_try_echo
=$ac_try;;
21469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21470 (eval "$ac_try") 2>&5
21472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21473 (exit $ac_status); }; }; then
21474 ac_cv_lib_pri_pri_call
=yes
21476 echo "$as_me: failed program was:" >&5
21477 sed 's/^/| /' conftest.
$ac_ext >&5
21479 ac_cv_lib_pri_pri_call
=no
21482 rm -f conftest.err conftest.
$ac_objext \
21483 conftest
$ac_exeext conftest.
$ac_ext
21484 LIBS
=$ac_check_lib_save_LIBS
21486 { echo "$as_me:$LINENO: result: $ac_cv_lib_pri_pri_call" >&5
21487 echo "${ECHO_T}$ac_cv_lib_pri_pri_call" >&6; }
21488 if test $ac_cv_lib_pri_pri_call = yes; then
21495 if test "${AST_PRI_FOUND}" = "yes"; then
21497 PRI_HEADER_FOUND
="1"
21498 if test "x${PRI_DIR}" != "x"; then
21499 PRI_LIB
="${pbxlibdir} ${PRI_LIB}"
21500 PRI_INCLUDE
="-I${PRI_DIR}/include"
21501 if test "xlibpri.h" != "x" ; then
21502 as_ac_Header
=`echo "ac_cv_header_${PRI_DIR}/include/libpri.h" | $as_tr_sh`
21503 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21504 { echo "$as_me:$LINENO: checking for ${PRI_DIR}/include/libpri.h" >&5
21505 echo $ECHO_N "checking for ${PRI_DIR}/include/libpri.h... $ECHO_C" >&6; }
21506 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21507 echo $ECHO_N "(cached) $ECHO_C" >&6
21509 ac_res
=`eval echo '${'$as_ac_Header'}'`
21510 { echo "$as_me:$LINENO: result: $ac_res" >&5
21511 echo "${ECHO_T}$ac_res" >&6; }
21513 # Is the header compilable?
21514 { echo "$as_me:$LINENO: checking ${PRI_DIR}/include/libpri.h usability" >&5
21515 echo $ECHO_N "checking ${PRI_DIR}/include/libpri.h usability... $ECHO_C" >&6; }
21516 cat >conftest.
$ac_ext <<_ACEOF
21519 cat confdefs.h
>>conftest.
$ac_ext
21520 cat >>conftest.
$ac_ext <<_ACEOF
21521 /* end confdefs.h. */
21522 $ac_includes_default
21523 #include <${PRI_DIR}/include/libpri.h>
21525 rm -f conftest.
$ac_objext
21526 if { (ac_try
="$ac_compile"
21527 case "(($ac_try" in
21528 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21529 *) ac_try_echo=$ac_try;;
21531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21532 (eval "$ac_compile") 2>conftest.er1
21534 grep -v '^ *+' conftest.er1 >conftest.err
21536 cat conftest.err >&5
21537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21538 (exit $ac_status); } &&
21539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21540 { (case "(($ac_try" in
21541 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21542 *) ac_try_echo
=$ac_try;;
21544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21545 (eval "$ac_try") 2>&5
21547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21548 (exit $ac_status); }; } &&
21549 { ac_try
='test -s conftest.$ac_objext'
21550 { (case "(($ac_try" in
21551 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21552 *) ac_try_echo=$ac_try;;
21554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21555 (eval "$ac_try") 2>&5
21557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21558 (exit $ac_status); }; }; then
21559 ac_header_compiler=yes
21561 echo "$as_me: failed program was:" >&5
21562 sed 's/^/| /' conftest.$ac_ext >&5
21564 ac_header_compiler=no
21567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21568 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21569 echo "${ECHO_T}$ac_header_compiler" >&6; }
21571 # Is the header present?
21572 { echo "$as_me:$LINENO: checking ${PRI_DIR}/include/libpri.h presence" >&5
21573 echo $ECHO_N "checking ${PRI_DIR}/include/libpri.h presence... $ECHO_C" >&6; }
21574 cat >conftest.$ac_ext <<_ACEOF
21577 cat confdefs.h >>conftest.$ac_ext
21578 cat >>conftest.$ac_ext <<_ACEOF
21579 /* end confdefs.h. */
21580 #include <${PRI_DIR}/include/libpri.h>
21582 if { (ac_try="$ac_cpp conftest.$ac_ext"
21583 case "(($ac_try" in
21584 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21585 *) ac_try_echo
=$ac_try;;
21587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21588 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21590 grep -v '^ *+' conftest.er1
>conftest.err
21592 cat conftest.err
>&5
21593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21594 (exit $ac_status); } >/dev
/null
; then
21595 if test -s conftest.err
; then
21596 ac_cpp_err
=$ac_c_preproc_warn_flag
21597 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21604 if test -z "$ac_cpp_err"; then
21605 ac_header_preproc
=yes
21607 echo "$as_me: failed program was:" >&5
21608 sed 's/^/| /' conftest.
$ac_ext >&5
21610 ac_header_preproc
=no
21613 rm -f conftest.err conftest.
$ac_ext
21614 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21615 echo "${ECHO_T}$ac_header_preproc" >&6; }
21617 # So? What about this header?
21618 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21620 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
21621 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21622 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the compiler's result" >&5
21623 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the compiler's result" >&2;}
21624 ac_header_preproc
=yes
21627 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: present but cannot be compiled" >&5
21628 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: present but cannot be compiled" >&2;}
21629 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: check for missing prerequisite headers?" >&5
21630 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: check for missing prerequisite headers?" >&2;}
21631 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: see the Autoconf documentation" >&5
21632 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: see the Autoconf documentation" >&2;}
21633 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: section \"Present But Cannot Be Compiled\"" >&5
21634 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
21635 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the preprocessor's result" >&5
21636 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: proceeding with the preprocessor's result" >&2;}
21637 { echo "$as_me:$LINENO: WARNING: ${PRI_DIR}/include/libpri.h: in the future, the compiler will take precedence" >&5
21638 echo "$as_me: WARNING: ${PRI_DIR}/include/libpri.h: in the future, the compiler will take precedence" >&2;}
21642 { echo "$as_me:$LINENO: checking for ${PRI_DIR}/include/libpri.h" >&5
21643 echo $ECHO_N "checking for ${PRI_DIR}/include/libpri.h... $ECHO_C" >&6; }
21644 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21645 echo $ECHO_N "(cached) $ECHO_C" >&6
21647 eval "$as_ac_Header=\$ac_header_preproc"
21649 ac_res
=`eval echo '${'$as_ac_Header'}'`
21650 { echo "$as_me:$LINENO: result: $ac_res" >&5
21651 echo "${ECHO_T}$ac_res" >&6; }
21654 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21663 if test "xlibpri.h" != "x" ; then
21664 if test "${ac_cv_header_libpri_h+set}" = set; then
21665 { echo "$as_me:$LINENO: checking for libpri.h" >&5
21666 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
21667 if test "${ac_cv_header_libpri_h+set}" = set; then
21668 echo $ECHO_N "(cached) $ECHO_C" >&6
21670 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
21671 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
21673 # Is the header compilable?
21674 { echo "$as_me:$LINENO: checking libpri.h usability" >&5
21675 echo $ECHO_N "checking libpri.h usability... $ECHO_C" >&6; }
21676 cat >conftest.
$ac_ext <<_ACEOF
21679 cat confdefs.h
>>conftest.
$ac_ext
21680 cat >>conftest.
$ac_ext <<_ACEOF
21681 /* end confdefs.h. */
21682 $ac_includes_default
21683 #include <libpri.h>
21685 rm -f conftest.
$ac_objext
21686 if { (ac_try
="$ac_compile"
21687 case "(($ac_try" in
21688 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21689 *) ac_try_echo=$ac_try;;
21691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21692 (eval "$ac_compile") 2>conftest.er1
21694 grep -v '^ *+' conftest.er1 >conftest.err
21696 cat conftest.err >&5
21697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21698 (exit $ac_status); } &&
21699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21700 { (case "(($ac_try" in
21701 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21702 *) ac_try_echo
=$ac_try;;
21704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21705 (eval "$ac_try") 2>&5
21707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21708 (exit $ac_status); }; } &&
21709 { ac_try
='test -s conftest.$ac_objext'
21710 { (case "(($ac_try" in
21711 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21712 *) ac_try_echo=$ac_try;;
21714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21715 (eval "$ac_try") 2>&5
21717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21718 (exit $ac_status); }; }; then
21719 ac_header_compiler=yes
21721 echo "$as_me: failed program was:" >&5
21722 sed 's/^/| /' conftest.$ac_ext >&5
21724 ac_header_compiler=no
21727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21728 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21729 echo "${ECHO_T}$ac_header_compiler" >&6; }
21731 # Is the header present?
21732 { echo "$as_me:$LINENO: checking libpri.h presence" >&5
21733 echo $ECHO_N "checking libpri.h presence... $ECHO_C" >&6; }
21734 cat >conftest.$ac_ext <<_ACEOF
21737 cat confdefs.h >>conftest.$ac_ext
21738 cat >>conftest.$ac_ext <<_ACEOF
21739 /* end confdefs.h. */
21740 #include <libpri.h>
21742 if { (ac_try="$ac_cpp conftest.$ac_ext"
21743 case "(($ac_try" in
21744 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21745 *) ac_try_echo
=$ac_try;;
21747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21748 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21750 grep -v '^ *+' conftest.er1
>conftest.err
21752 cat conftest.err
>&5
21753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21754 (exit $ac_status); } >/dev
/null
; then
21755 if test -s conftest.err
; then
21756 ac_cpp_err
=$ac_c_preproc_warn_flag
21757 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21764 if test -z "$ac_cpp_err"; then
21765 ac_header_preproc
=yes
21767 echo "$as_me: failed program was:" >&5
21768 sed 's/^/| /' conftest.
$ac_ext >&5
21770 ac_header_preproc
=no
21773 rm -f conftest.err conftest.
$ac_ext
21774 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21775 echo "${ECHO_T}$ac_header_preproc" >&6; }
21777 # So? What about this header?
21778 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21780 { echo "$as_me:$LINENO: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&5
21781 echo "$as_me: WARNING: libpri.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21782 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the compiler's result" >&5
21783 echo "$as_me: WARNING: libpri.h: proceeding with the compiler's result" >&2;}
21784 ac_header_preproc
=yes
21787 { echo "$as_me:$LINENO: WARNING: libpri.h: present but cannot be compiled" >&5
21788 echo "$as_me: WARNING: libpri.h: present but cannot be compiled" >&2;}
21789 { echo "$as_me:$LINENO: WARNING: libpri.h: check for missing prerequisite headers?" >&5
21790 echo "$as_me: WARNING: libpri.h: check for missing prerequisite headers?" >&2;}
21791 { echo "$as_me:$LINENO: WARNING: libpri.h: see the Autoconf documentation" >&5
21792 echo "$as_me: WARNING: libpri.h: see the Autoconf documentation" >&2;}
21793 { echo "$as_me:$LINENO: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&5
21794 echo "$as_me: WARNING: libpri.h: section \"Present But Cannot Be Compiled\"" >&2;}
21795 { echo "$as_me:$LINENO: WARNING: libpri.h: proceeding with the preprocessor's result" >&5
21796 echo "$as_me: WARNING: libpri.h: proceeding with the preprocessor's result" >&2;}
21797 { echo "$as_me:$LINENO: WARNING: libpri.h: in the future, the compiler will take precedence" >&5
21798 echo "$as_me: WARNING: libpri.h: in the future, the compiler will take precedence" >&2;}
21802 { echo "$as_me:$LINENO: checking for libpri.h" >&5
21803 echo $ECHO_N "checking for libpri.h... $ECHO_C" >&6; }
21804 if test "${ac_cv_header_libpri_h+set}" = set; then
21805 echo $ECHO_N "(cached) $ECHO_C" >&6
21807 ac_cv_header_libpri_h
=$ac_header_preproc
21809 { echo "$as_me:$LINENO: result: $ac_cv_header_libpri_h" >&5
21810 echo "${ECHO_T}$ac_cv_header_libpri_h" >&6; }
21813 if test $ac_cv_header_libpri_h = yes; then
21822 if test "x${PRI_HEADER_FOUND}" = "x0" ; then
21823 if test ! -z "${PRI_MANDATORY}" ;
21826 echo " *** It appears that you do not have the pri development package installed."
21827 echo " *** Please install it to include ${PRI_DESCRIP} support, or re-run configure"
21828 echo " *** without explicitly specifying --with-${PRI_OPTION}"
21837 cat >>confdefs.h
<<_ACEOF
21842 elif test ! -z "${PRI_MANDATORY}";
21845 echo "*** The ${PRI_DESCRIP} installation on this system appears to be broken."
21846 echo "*** Either correct the installation, or run configure"
21847 echo "*** without explicitly specifying --with-${PRI_OPTION}"
21853 PLATFORM_PTLIB
="ptlib_${OSTYPE}_${MACHTYPE}_r"
21854 if test "${USE_PWLIB}" != "no"; then
21855 echo -n "checking for existence of pwlib... "
21857 saved_cppflags
="${CPPFLAGS}"
21858 saved_libs
="${LIBS}"
21859 LIBS
="${LIBS} -L${PWLIB_DIR} -l${PLATFORM_PTLIB}"
21860 CPPFLAGS
="${CPPFLAGS} -I${PWLIB_DIR}/include"
21862 cat >conftest.
$ac_ext <<_ACEOF
21866 cat confdefs.h
>>conftest.
$ac_ext
21867 cat >>conftest.
$ac_ext <<_ACEOF
21868 /* end confdefs.h. */
21873 int q = PTime::IsDaylightSaving();
21879 rm -f conftest.
$ac_objext conftest
$ac_exeext
21880 if { (ac_try
="$ac_link"
21881 case "(($ac_try" in
21882 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21883 *) ac_try_echo=$ac_try;;
21885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21886 (eval "$ac_link") 2>conftest.er1
21888 grep -v '^ *+' conftest.er1 >conftest.err
21890 cat conftest.err >&5
21891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21892 (exit $ac_status); } &&
21893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21894 { (case "(($ac_try" in
21895 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21896 *) ac_try_echo
=$ac_try;;
21898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21899 (eval "$ac_try") 2>&5
21901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21902 (exit $ac_status); }; } &&
21903 { ac_try
='test -s conftest$ac_exeext'
21904 { (case "(($ac_try" in
21905 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21906 *) ac_try_echo=$ac_try;;
21908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21909 (eval "$ac_try") 2>&5
21911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21912 (exit $ac_status); }; }; then
21913 { echo "$as_me:$LINENO: result: yes" >&5
21914 echo "${ECHO_T}yes" >&6; }
21915 ac_cv_lib_pwlib="yes"
21918 echo "$as_me: failed program was:" >&5
21919 sed 's/^/| /' conftest.$ac_ext >&5
21921 { echo "$as_me:$LINENO: result: no" >&5
21922 echo "${ECHO_T}no" >&6; }
21923 ac_cv_lib_pwlib="no"
21928 rm -f conftest.err conftest.$ac_objext \
21929 conftest$ac_exeext conftest.$ac_ext
21931 LIBS="${saved_libs}"
21932 CPPFLAGS="${saved_cppflags}"
21934 if test "${ac_cv_lib_pwlib}" = "yes"; then
21935 PWLIB_LIB="-l{PLATFORM_PWLIB}"
21936 if test "${PWLIB_DIR}" != ""; then
21937 PWLIB_LIB="-L${PWLIB_DIR}/lib ${PWLIB_LIB}"
21938 PWLIB_INCLUDE="-I${PWLIB_DIR}/include"
21942 cat >>confdefs.h <<\_ACEOF
21943 #define HAVE_PWLIB 1
21946 elif test ! -z "${PWLIB_MANDATORY}"; then
21948 echo "*** The PWLIB installation on this system appears to be broken."
21949 echo "*** Either correct the installation, or run configure"
21950 echo "*** including --without-pwlib"
21956 ac_cpp='$CXXCPP $CPPFLAGS'
21957 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21958 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21959 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21962 if test "${USE_QT}" != "no"; then
21963 echo -n "checking for QDate in -lqt... "
21964 saved_libs="${LIBS}"
21965 saved_cppflags="${CPPFLAGS}"
21966 if test "x${QT_DIR}" != "x"; then
21967 LIBS="${LIBS} -L${QT_DIR}/lib"
21968 CPPFLAGS="${CPPFLAGS} -I${QT_DIR}/include"
21970 LIBS="${LIBS} -lqt"
21972 cat >conftest.$ac_ext <<_ACEOF
21976 cat confdefs.h >>conftest.$ac_ext
21977 cat >>conftest.$ac_ext <<_ACEOF
21978 /* end confdefs.h. */
21979 #include <qt3/qdatetime.h>
21989 rm -f conftest.$ac_objext conftest$ac_exeext
21990 if { (ac_try="$ac_link"
21991 case "(($ac_try" in
21992 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21993 *) ac_try_echo
=$ac_try;;
21995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21996 (eval "$ac_link") 2>conftest.er1
21998 grep -v '^ *+' conftest.er1
>conftest.err
22000 cat conftest.err
>&5
22001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22002 (exit $ac_status); } &&
22003 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22004 { (case "(($ac_try" in
22005 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22006 *) ac_try_echo=$ac_try;;
22008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22009 (eval "$ac_try") 2>&5
22011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22012 (exit $ac_status); }; } &&
22013 { ac_try='test -s conftest$ac_exeext'
22014 { (case "(($ac_try" in
22015 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22016 *) ac_try_echo
=$ac_try;;
22018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22019 (eval "$ac_try") 2>&5
22021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22022 (exit $ac_status); }; }; then
22023 ac_cv_lib_qt_qt_date
="yes"
22025 echo "$as_me: failed program was:" >&5
22026 sed 's/^/| /' conftest.
$ac_ext >&5
22028 ac_cv_lib_qt_qt_date
="no"
22031 rm -f conftest.err conftest.
$ac_objext \
22032 conftest
$ac_exeext conftest.
$ac_ext
22033 LIBS
="${saved_libs}"
22034 CPPFLAGS
="${saved_cppflags}"
22036 if test "${ac_cv_lib_qt_qt_date}" = "no"; then
22037 saved_libs
="${LIBS}"
22038 saved_cppflags
="${CPPFLAGS}"
22039 if test "x${QT_DIR}" != "x"; then
22040 LIBS
="${LIBS} -L${QT_DIR}/lib"
22041 CPPFLAGS
="${CPPFLAGS} -I${QT_DIR}/include"
22043 LIBS
="${LIBS} -lqt-mt"
22045 cat >conftest.
$ac_ext <<_ACEOF
22049 cat confdefs.h
>>conftest.
$ac_ext
22050 cat >>conftest.
$ac_ext <<_ACEOF
22051 /* end confdefs.h. */
22052 #include <qt3/qdatetime.h>
22062 rm -f conftest.
$ac_objext conftest
$ac_exeext
22063 if { (ac_try
="$ac_link"
22064 case "(($ac_try" in
22065 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22066 *) ac_try_echo=$ac_try;;
22068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22069 (eval "$ac_link") 2>conftest.er1
22071 grep -v '^ *+' conftest.er1 >conftest.err
22073 cat conftest.err >&5
22074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22075 (exit $ac_status); } &&
22076 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22077 { (case "(($ac_try" in
22078 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22079 *) ac_try_echo
=$ac_try;;
22081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22082 (eval "$ac_try") 2>&5
22084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22085 (exit $ac_status); }; } &&
22086 { ac_try
='test -s conftest$ac_exeext'
22087 { (case "(($ac_try" in
22088 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22089 *) ac_try_echo=$ac_try;;
22091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22092 (eval "$ac_try") 2>&5
22094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22095 (exit $ac_status); }; }; then
22096 ac_cv_lib_qt_qt_date="yes"
22098 echo "$as_me: failed program was:" >&5
22099 sed 's/^/| /' conftest.$ac_ext >&5
22101 ac_cv_lib_qt_qt_date="no"
22104 rm -f conftest.err conftest.$ac_objext \
22105 conftest$ac_exeext conftest.$ac_ext
22106 LIBS="${saved_libs}"
22107 CPPFLAGS="${saved_cppflags}"
22110 if test "${ac_cv_lib_qt_qt_date}" = "yes"; then
22111 { echo "$as_me:$LINENO: result: yes" >&5
22112 echo "${ECHO_T}yes" >&6; }
22114 { echo "$as_me:$LINENO: result: no" >&5
22115 echo "${ECHO_T}no" >&6; }
22118 if test "${ac_cv_lib_qt_qt_date}" = "yes"; then
22119 QT_LIB="-l${qtlib}"
22120 if test "${QT_DIR}" != ""; then
22121 QT_LIB="-L${QT_DIR}/lib ${QT_LIB}"
22122 QT_INCLUDE="-I${QT_DIR}/include"
22126 cat >>confdefs.h <<\_ACEOF
22130 if test -n "$ac_tool_prefix"; then
22131 # Extract the first word of "${ac_tool_prefix}moc", so it can be a program name with args.
22132 set dummy ${ac_tool_prefix}moc; ac_word=$2
22133 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22135 if test "${ac_cv_path_QTMOC+set}" = set; then
22136 echo $ECHO_N "(cached) $ECHO_C" >&6
22140 ac_cv_path_QTMOC="$QTMOC" # Let the user override the test with a path.
22143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22144 for as_dir in $PATH
22147 test -z "$as_dir" && as_dir=.
22148 for ac_exec_ext in '' $ac_executable_extensions; do
22149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
22150 ac_cv_path_QTMOC="$as_dir/$ac_word$ac_exec_ext"
22151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22161 QTMOC=$ac_cv_path_QTMOC
22162 if test -n "$QTMOC"; then
22163 { echo "$as_me:$LINENO: result: $QTMOC" >&5
22164 echo "${ECHO_T}$QTMOC" >&6; }
22166 { echo "$as_me:$LINENO: result: no" >&5
22167 echo "${ECHO_T}no" >&6; }
22172 if test -z "$ac_cv_path_QTMOC"; then
22174 # Extract the first word of "moc", so it can be a program name with args.
22175 set dummy moc; ac_word=$2
22176 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22178 if test "${ac_cv_path_ac_pt_QTMOC+set}" = set; then
22179 echo $ECHO_N "(cached) $ECHO_C" >&6
22181 case $ac_pt_QTMOC in
22183 ac_cv_path_ac_pt_QTMOC="$ac_pt_QTMOC" # Let the user override the test with a path.
22186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22187 for as_dir in $PATH
22190 test -z "$as_dir" && as_dir=.
22191 for ac_exec_ext in '' $ac_executable_extensions; do
22192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
22193 ac_cv_path_ac_pt_QTMOC="$as_dir/$ac_word$ac_exec_ext"
22194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22204 ac_pt_QTMOC=$ac_cv_path_ac_pt_QTMOC
22205 if test -n "$ac_pt_QTMOC"; then
22206 { echo "$as_me:$LINENO: result: $ac_pt_QTMOC" >&5
22207 echo "${ECHO_T}$ac_pt_QTMOC" >&6; }
22209 { echo "$as_me:$LINENO: result: no" >&5
22210 echo "${ECHO_T}no" >&6; }
22213 if test "x$ac_pt_QTMOC" = x; then
22216 case $cross_compiling:$ac_tool_warned in
22218 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22219 whose name does not start with the host triplet. If you think this
22220 configuration is useful to you, please write to autoconf@gnu.org." >&5
22221 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22222 whose name does not start with the host triplet. If you think this
22223 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22224 ac_tool_warned=yes ;;
22229 QTMOC="$ac_cv_path_QTMOC"
22232 elif test ! -z "${QT_MANDATORY}";
22235 echo "*** The Qt installation on this system appears to be broken."
22236 echo "*** Either correct the installation, or run configure"
22237 echo "*** including --without-qt."
22243 ac_cpp='$CPP $CPPFLAGS'
22244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22250 if test "${USE_RADIUS}" != "no"; then
22252 if test "x${RADIUS_DIR}" != "x"; then
22253 if test -d ${RADIUS_DIR}/lib; then
22254 pbxlibdir="-L${RADIUS_DIR}/lib"
22256 pbxlibdir="-L${RADIUS_DIR}"
22259 { echo "$as_me:$LINENO: checking for rc_read_config in -lradiusclient-ng" >&5
22260 echo $ECHO_N "checking for rc_read_config in -lradiusclient-ng... $ECHO_C" >&6; }
22261 if test "${ac_cv_lib_radiusclient_ng_rc_read_config+set}" = set; then
22262 echo $ECHO_N "(cached) $ECHO_C" >&6
22264 ac_check_lib_save_LIBS=$LIBS
22265 LIBS="-lradiusclient-ng ${pbxlibdir} $LIBS"
22266 cat >conftest.$ac_ext <<_ACEOF
22269 cat confdefs.h >>conftest.$ac_ext
22270 cat >>conftest.$ac_ext <<_ACEOF
22271 /* end confdefs.h. */
22273 /* Override any GCC internal prototype to avoid an error.
22274 Use char because int might match the return type of a GCC
22275 builtin and then its argument prototype would still apply. */
22279 char rc_read_config ();
22283 return rc_read_config ();
22288 rm -f conftest.$ac_objext conftest$ac_exeext
22289 if { (ac_try="$ac_link"
22290 case "(($ac_try" in
22291 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22292 *) ac_try_echo
=$ac_try;;
22294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22295 (eval "$ac_link") 2>conftest.er1
22297 grep -v '^ *+' conftest.er1
>conftest.err
22299 cat conftest.err
>&5
22300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22301 (exit $ac_status); } &&
22302 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22303 { (case "(($ac_try" in
22304 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22305 *) ac_try_echo=$ac_try;;
22307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22308 (eval "$ac_try") 2>&5
22310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22311 (exit $ac_status); }; } &&
22312 { ac_try='test -s conftest$ac_exeext'
22313 { (case "(($ac_try" in
22314 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22315 *) ac_try_echo
=$ac_try;;
22317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22318 (eval "$ac_try") 2>&5
22320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22321 (exit $ac_status); }; }; then
22322 ac_cv_lib_radiusclient_ng_rc_read_config
=yes
22324 echo "$as_me: failed program was:" >&5
22325 sed 's/^/| /' conftest.
$ac_ext >&5
22327 ac_cv_lib_radiusclient_ng_rc_read_config
=no
22330 rm -f conftest.err conftest.
$ac_objext \
22331 conftest
$ac_exeext conftest.
$ac_ext
22332 LIBS
=$ac_check_lib_save_LIBS
22334 { echo "$as_me:$LINENO: result: $ac_cv_lib_radiusclient_ng_rc_read_config" >&5
22335 echo "${ECHO_T}$ac_cv_lib_radiusclient_ng_rc_read_config" >&6; }
22336 if test $ac_cv_lib_radiusclient_ng_rc_read_config = yes; then
22337 AST_RADIUS_FOUND
=yes
22339 AST_RADIUS_FOUND
=no
22343 if test "${AST_RADIUS_FOUND}" = "yes"; then
22344 RADIUS_LIB
="-lradiusclient-ng "
22345 RADIUS_HEADER_FOUND
="1"
22346 if test "x${RADIUS_DIR}" != "x"; then
22347 RADIUS_LIB
="${pbxlibdir} ${RADIUS_LIB}"
22348 RADIUS_INCLUDE
="-I${RADIUS_DIR}/include"
22349 if test "xradiusclient-ng.h" != "x" ; then
22350 as_ac_Header
=`echo "ac_cv_header_${RADIUS_DIR}/include/radiusclient-ng.h" | $as_tr_sh`
22351 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22352 { echo "$as_me:$LINENO: checking for ${RADIUS_DIR}/include/radiusclient-ng.h" >&5
22353 echo $ECHO_N "checking for ${RADIUS_DIR}/include/radiusclient-ng.h... $ECHO_C" >&6; }
22354 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22355 echo $ECHO_N "(cached) $ECHO_C" >&6
22357 ac_res
=`eval echo '${'$as_ac_Header'}'`
22358 { echo "$as_me:$LINENO: result: $ac_res" >&5
22359 echo "${ECHO_T}$ac_res" >&6; }
22361 # Is the header compilable?
22362 { echo "$as_me:$LINENO: checking ${RADIUS_DIR}/include/radiusclient-ng.h usability" >&5
22363 echo $ECHO_N "checking ${RADIUS_DIR}/include/radiusclient-ng.h usability... $ECHO_C" >&6; }
22364 cat >conftest.
$ac_ext <<_ACEOF
22367 cat confdefs.h
>>conftest.
$ac_ext
22368 cat >>conftest.
$ac_ext <<_ACEOF
22369 /* end confdefs.h. */
22370 $ac_includes_default
22371 #include <${RADIUS_DIR}/include/radiusclient-ng.h>
22373 rm -f conftest.
$ac_objext
22374 if { (ac_try
="$ac_compile"
22375 case "(($ac_try" in
22376 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22377 *) ac_try_echo=$ac_try;;
22379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22380 (eval "$ac_compile") 2>conftest.er1
22382 grep -v '^ *+' conftest.er1 >conftest.err
22384 cat conftest.err >&5
22385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22386 (exit $ac_status); } &&
22387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22388 { (case "(($ac_try" in
22389 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22390 *) ac_try_echo
=$ac_try;;
22392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22393 (eval "$ac_try") 2>&5
22395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22396 (exit $ac_status); }; } &&
22397 { ac_try
='test -s conftest.$ac_objext'
22398 { (case "(($ac_try" in
22399 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22400 *) ac_try_echo=$ac_try;;
22402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22403 (eval "$ac_try") 2>&5
22405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22406 (exit $ac_status); }; }; then
22407 ac_header_compiler=yes
22409 echo "$as_me: failed program was:" >&5
22410 sed 's/^/| /' conftest.$ac_ext >&5
22412 ac_header_compiler=no
22415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22416 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22417 echo "${ECHO_T}$ac_header_compiler" >&6; }
22419 # Is the header present?
22420 { echo "$as_me:$LINENO: checking ${RADIUS_DIR}/include/radiusclient-ng.h presence" >&5
22421 echo $ECHO_N "checking ${RADIUS_DIR}/include/radiusclient-ng.h presence... $ECHO_C" >&6; }
22422 cat >conftest.$ac_ext <<_ACEOF
22425 cat confdefs.h >>conftest.$ac_ext
22426 cat >>conftest.$ac_ext <<_ACEOF
22427 /* end confdefs.h. */
22428 #include <${RADIUS_DIR}/include/radiusclient-ng.h>
22430 if { (ac_try="$ac_cpp conftest.$ac_ext"
22431 case "(($ac_try" in
22432 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22433 *) ac_try_echo
=$ac_try;;
22435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22436 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22438 grep -v '^ *+' conftest.er1
>conftest.err
22440 cat conftest.err
>&5
22441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22442 (exit $ac_status); } >/dev
/null
; then
22443 if test -s conftest.err
; then
22444 ac_cpp_err
=$ac_c_preproc_warn_flag
22445 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
22452 if test -z "$ac_cpp_err"; then
22453 ac_header_preproc
=yes
22455 echo "$as_me: failed program was:" >&5
22456 sed 's/^/| /' conftest.
$ac_ext >&5
22458 ac_header_preproc
=no
22461 rm -f conftest.err conftest.
$ac_ext
22462 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22463 echo "${ECHO_T}$ac_header_preproc" >&6; }
22465 # So? What about this header?
22466 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22468 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
22469 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22470 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the compiler's result" >&5
22471 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the compiler's result" >&2;}
22472 ac_header_preproc
=yes
22475 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: present but cannot be compiled" >&5
22476 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: present but cannot be compiled" >&2;}
22477 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: check for missing prerequisite headers?" >&5
22478 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: check for missing prerequisite headers?" >&2;}
22479 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: see the Autoconf documentation" >&5
22480 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: see the Autoconf documentation" >&2;}
22481 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&5
22482 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&2;}
22483 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the preprocessor's result" >&5
22484 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: proceeding with the preprocessor's result" >&2;}
22485 { echo "$as_me:$LINENO: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: in the future, the compiler will take precedence" >&5
22486 echo "$as_me: WARNING: ${RADIUS_DIR}/include/radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
22490 { echo "$as_me:$LINENO: checking for ${RADIUS_DIR}/include/radiusclient-ng.h" >&5
22491 echo $ECHO_N "checking for ${RADIUS_DIR}/include/radiusclient-ng.h... $ECHO_C" >&6; }
22492 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22493 echo $ECHO_N "(cached) $ECHO_C" >&6
22495 eval "$as_ac_Header=\$ac_header_preproc"
22497 ac_res
=`eval echo '${'$as_ac_Header'}'`
22498 { echo "$as_me:$LINENO: result: $ac_res" >&5
22499 echo "${ECHO_T}$ac_res" >&6; }
22502 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22503 RADIUS_HEADER_FOUND
=1
22505 RADIUS_HEADER_FOUND
=0
22511 if test "xradiusclient-ng.h" != "x" ; then
22512 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
22513 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
22514 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
22515 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
22516 echo $ECHO_N "(cached) $ECHO_C" >&6
22518 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
22519 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
22521 # Is the header compilable?
22522 { echo "$as_me:$LINENO: checking radiusclient-ng.h usability" >&5
22523 echo $ECHO_N "checking radiusclient-ng.h usability... $ECHO_C" >&6; }
22524 cat >conftest.
$ac_ext <<_ACEOF
22527 cat confdefs.h
>>conftest.
$ac_ext
22528 cat >>conftest.
$ac_ext <<_ACEOF
22529 /* end confdefs.h. */
22530 $ac_includes_default
22531 #include <radiusclient-ng.h>
22533 rm -f conftest.
$ac_objext
22534 if { (ac_try
="$ac_compile"
22535 case "(($ac_try" in
22536 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22537 *) ac_try_echo=$ac_try;;
22539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22540 (eval "$ac_compile") 2>conftest.er1
22542 grep -v '^ *+' conftest.er1 >conftest.err
22544 cat conftest.err >&5
22545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22546 (exit $ac_status); } &&
22547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22548 { (case "(($ac_try" in
22549 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22550 *) ac_try_echo
=$ac_try;;
22552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22553 (eval "$ac_try") 2>&5
22555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22556 (exit $ac_status); }; } &&
22557 { ac_try
='test -s conftest.$ac_objext'
22558 { (case "(($ac_try" in
22559 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22560 *) ac_try_echo=$ac_try;;
22562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22563 (eval "$ac_try") 2>&5
22565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22566 (exit $ac_status); }; }; then
22567 ac_header_compiler=yes
22569 echo "$as_me: failed program was:" >&5
22570 sed 's/^/| /' conftest.$ac_ext >&5
22572 ac_header_compiler=no
22575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22576 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22577 echo "${ECHO_T}$ac_header_compiler" >&6; }
22579 # Is the header present?
22580 { echo "$as_me:$LINENO: checking radiusclient-ng.h presence" >&5
22581 echo $ECHO_N "checking radiusclient-ng.h presence... $ECHO_C" >&6; }
22582 cat >conftest.$ac_ext <<_ACEOF
22585 cat confdefs.h >>conftest.$ac_ext
22586 cat >>conftest.$ac_ext <<_ACEOF
22587 /* end confdefs.h. */
22588 #include <radiusclient-ng.h>
22590 if { (ac_try="$ac_cpp conftest.$ac_ext"
22591 case "(($ac_try" in
22592 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22593 *) ac_try_echo
=$ac_try;;
22595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22596 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22598 grep -v '^ *+' conftest.er1
>conftest.err
22600 cat conftest.err
>&5
22601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22602 (exit $ac_status); } >/dev
/null
; then
22603 if test -s conftest.err
; then
22604 ac_cpp_err
=$ac_c_preproc_warn_flag
22605 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
22612 if test -z "$ac_cpp_err"; then
22613 ac_header_preproc
=yes
22615 echo "$as_me: failed program was:" >&5
22616 sed 's/^/| /' conftest.
$ac_ext >&5
22618 ac_header_preproc
=no
22621 rm -f conftest.err conftest.
$ac_ext
22622 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22623 echo "${ECHO_T}$ac_header_preproc" >&6; }
22625 # So? What about this header?
22626 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22628 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&5
22629 echo "$as_me: WARNING: radiusclient-ng.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22630 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&5
22631 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the compiler's result" >&2;}
22632 ac_header_preproc
=yes
22635 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: present but cannot be compiled" >&5
22636 echo "$as_me: WARNING: radiusclient-ng.h: present but cannot be compiled" >&2;}
22637 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&5
22638 echo "$as_me: WARNING: radiusclient-ng.h: check for missing prerequisite headers?" >&2;}
22639 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&5
22640 echo "$as_me: WARNING: radiusclient-ng.h: see the Autoconf documentation" >&2;}
22641 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&5
22642 echo "$as_me: WARNING: radiusclient-ng.h: section \"Present But Cannot Be Compiled\"" >&2;}
22643 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&5
22644 echo "$as_me: WARNING: radiusclient-ng.h: proceeding with the preprocessor's result" >&2;}
22645 { echo "$as_me:$LINENO: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&5
22646 echo "$as_me: WARNING: radiusclient-ng.h: in the future, the compiler will take precedence" >&2;}
22650 { echo "$as_me:$LINENO: checking for radiusclient-ng.h" >&5
22651 echo $ECHO_N "checking for radiusclient-ng.h... $ECHO_C" >&6; }
22652 if test "${ac_cv_header_radiusclient_ng_h+set}" = set; then
22653 echo $ECHO_N "(cached) $ECHO_C" >&6
22655 ac_cv_header_radiusclient_ng_h
=$ac_header_preproc
22657 { echo "$as_me:$LINENO: result: $ac_cv_header_radiusclient_ng_h" >&5
22658 echo "${ECHO_T}$ac_cv_header_radiusclient_ng_h" >&6; }
22661 if test $ac_cv_header_radiusclient_ng_h = yes; then
22662 RADIUS_HEADER_FOUND
=1
22664 RADIUS_HEADER_FOUND
=0
22670 if test "x${RADIUS_HEADER_FOUND}" = "x0" ; then
22671 if test ! -z "${RADIUS_MANDATORY}" ;
22674 echo " *** It appears that you do not have the radiusclient-ng development package installed."
22675 echo " *** Please install it to include ${RADIUS_DESCRIP} support, or re-run configure"
22676 echo " *** without explicitly specifying --with-${RADIUS_OPTION}"
22685 cat >>confdefs.h
<<_ACEOF
22686 #define HAVE_RADIUS 1
22690 elif test ! -z "${RADIUS_MANDATORY}";
22693 echo "*** The ${RADIUS_DESCRIP} installation on this system appears to be broken."
22694 echo "*** Either correct the installation, or run configure"
22695 echo "*** without explicitly specifying --with-${RADIUS_OPTION}"
22702 if test "${USE_SPEEX}" != "no"; then
22704 if test "x${SPEEX_DIR}" != "x"; then
22705 if test -d ${SPEEX_DIR}/lib
; then
22706 pbxlibdir
="-L${SPEEX_DIR}/lib"
22708 pbxlibdir
="-L${SPEEX_DIR}"
22711 { echo "$as_me:$LINENO: checking for speex_encode in -lspeex" >&5
22712 echo $ECHO_N "checking for speex_encode in -lspeex... $ECHO_C" >&6; }
22713 if test "${ac_cv_lib_speex_speex_encode+set}" = set; then
22714 echo $ECHO_N "(cached) $ECHO_C" >&6
22716 ac_check_lib_save_LIBS
=$LIBS
22717 LIBS
="-lspeex ${pbxlibdir} -lm $LIBS"
22718 cat >conftest.
$ac_ext <<_ACEOF
22721 cat confdefs.h
>>conftest.
$ac_ext
22722 cat >>conftest.
$ac_ext <<_ACEOF
22723 /* end confdefs.h. */
22725 /* Override any GCC internal prototype to avoid an error.
22726 Use char because int might match the return type of a GCC
22727 builtin and then its argument prototype would still apply. */
22731 char speex_encode ();
22735 return speex_encode ();
22740 rm -f conftest.
$ac_objext conftest
$ac_exeext
22741 if { (ac_try
="$ac_link"
22742 case "(($ac_try" in
22743 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22744 *) ac_try_echo=$ac_try;;
22746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22747 (eval "$ac_link") 2>conftest.er1
22749 grep -v '^ *+' conftest.er1 >conftest.err
22751 cat conftest.err >&5
22752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22753 (exit $ac_status); } &&
22754 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22755 { (case "(($ac_try" in
22756 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22757 *) ac_try_echo
=$ac_try;;
22759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22760 (eval "$ac_try") 2>&5
22762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22763 (exit $ac_status); }; } &&
22764 { ac_try
='test -s conftest$ac_exeext'
22765 { (case "(($ac_try" in
22766 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22767 *) ac_try_echo=$ac_try;;
22769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22770 (eval "$ac_try") 2>&5
22772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22773 (exit $ac_status); }; }; then
22774 ac_cv_lib_speex_speex_encode=yes
22776 echo "$as_me: failed program was:" >&5
22777 sed 's/^/| /' conftest.$ac_ext >&5
22779 ac_cv_lib_speex_speex_encode=no
22782 rm -f conftest.err conftest.$ac_objext \
22783 conftest$ac_exeext conftest.$ac_ext
22784 LIBS=$ac_check_lib_save_LIBS
22786 { echo "$as_me:$LINENO: result: $ac_cv_lib_speex_speex_encode" >&5
22787 echo "${ECHO_T}$ac_cv_lib_speex_speex_encode" >&6; }
22788 if test $ac_cv_lib_speex_speex_encode = yes; then
22789 AST_SPEEX_FOUND=yes
22795 if test "${AST_SPEEX_FOUND}" = "yes"; then
22796 SPEEX_LIB="-lspeex -lm"
22797 SPEEX_HEADER_FOUND="1"
22798 if test "x${SPEEX_DIR}" != "x"; then
22799 SPEEX_LIB="${pbxlibdir} ${SPEEX_LIB}"
22800 SPEEX_INCLUDE="-I${SPEEX_DIR}/include"
22801 if test "xspeex/speex.h" != "x" ; then
22802 as_ac_Header=`echo "ac_cv_header_${SPEEX_DIR}/include/speex/speex.h" |
$as_tr_sh`
22803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22804 { echo "$as_me:$LINENO: checking for ${SPEEX_DIR}/include/speex/speex.h" >&5
22805 echo $ECHO_N "checking for ${SPEEX_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
22806 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22807 echo $ECHO_N "(cached) $ECHO_C" >&6
22809 ac_res=`eval echo '${'$as_ac_Header'}'`
22810 { echo "$as_me:$LINENO: result: $ac_res" >&5
22811 echo "${ECHO_T}$ac_res" >&6; }
22813 # Is the header compilable?
22814 { echo "$as_me:$LINENO: checking ${SPEEX_DIR}/include/speex/speex.h usability" >&5
22815 echo $ECHO_N "checking ${SPEEX_DIR}/include/speex/speex.h usability... $ECHO_C" >&6; }
22816 cat >conftest.$ac_ext <<_ACEOF
22819 cat confdefs.h >>conftest.$ac_ext
22820 cat >>conftest.$ac_ext <<_ACEOF
22821 /* end confdefs.h. */
22822 $ac_includes_default
22823 #include <${SPEEX_DIR}/include/speex/speex.h>
22825 rm -f conftest.$ac_objext
22826 if { (ac_try="$ac_compile"
22827 case "(($ac_try" in
22828 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22829 *) ac_try_echo
=$ac_try;;
22831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22832 (eval "$ac_compile") 2>conftest.er1
22834 grep -v '^ *+' conftest.er1
>conftest.err
22836 cat conftest.err
>&5
22837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22838 (exit $ac_status); } &&
22839 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22840 { (case "(($ac_try" in
22841 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22842 *) ac_try_echo=$ac_try;;
22844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22845 (eval "$ac_try") 2>&5
22847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22848 (exit $ac_status); }; } &&
22849 { ac_try='test -s conftest.$ac_objext'
22850 { (case "(($ac_try" in
22851 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22852 *) ac_try_echo
=$ac_try;;
22854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22855 (eval "$ac_try") 2>&5
22857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22858 (exit $ac_status); }; }; then
22859 ac_header_compiler
=yes
22861 echo "$as_me: failed program was:" >&5
22862 sed 's/^/| /' conftest.
$ac_ext >&5
22864 ac_header_compiler
=no
22867 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22868 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22869 echo "${ECHO_T}$ac_header_compiler" >&6; }
22871 # Is the header present?
22872 { echo "$as_me:$LINENO: checking ${SPEEX_DIR}/include/speex/speex.h presence" >&5
22873 echo $ECHO_N "checking ${SPEEX_DIR}/include/speex/speex.h presence... $ECHO_C" >&6; }
22874 cat >conftest.
$ac_ext <<_ACEOF
22877 cat confdefs.h
>>conftest.
$ac_ext
22878 cat >>conftest.
$ac_ext <<_ACEOF
22879 /* end confdefs.h. */
22880 #include <${SPEEX_DIR}/include/speex/speex.h>
22882 if { (ac_try
="$ac_cpp conftest.$ac_ext"
22883 case "(($ac_try" in
22884 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22885 *) ac_try_echo=$ac_try;;
22887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22888 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22890 grep -v '^ *+' conftest.er1 >conftest.err
22892 cat conftest.err >&5
22893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22894 (exit $ac_status); } >/dev/null; then
22895 if test -s conftest.err; then
22896 ac_cpp_err=$ac_c_preproc_warn_flag
22897 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22904 if test -z "$ac_cpp_err"; then
22905 ac_header_preproc=yes
22907 echo "$as_me: failed program was:" >&5
22908 sed 's/^/| /' conftest.$ac_ext >&5
22910 ac_header_preproc=no
22913 rm -f conftest.err conftest.$ac_ext
22914 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22915 echo "${ECHO_T}$ac_header_preproc" >&6; }
22917 # So? What about this header?
22918 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22920 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
22921 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22922 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&5
22923 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the compiler's result" >&2;}
22924 ac_header_preproc=yes
22927 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: present but cannot be compiled" >&5
22928 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: present but cannot be compiled" >&2;}
22929 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&5
22930 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: check for missing prerequisite headers?" >&2;}
22931 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: see the Autoconf documentation" >&5
22932 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: see the Autoconf documentation" >&2;}
22933 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
22934 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
22935 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&5
22936 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: proceeding with the preprocessor's result" >&2;}
22937 { echo "$as_me:$LINENO: WARNING: ${SPEEX_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&5
22938 echo "$as_me: WARNING: ${SPEEX_DIR}/include/speex/speex.h: in the future, the compiler will take precedence" >&2;}
22942 { echo "$as_me:$LINENO: checking for ${SPEEX_DIR}/include/speex/speex.h" >&5
22943 echo $ECHO_N "checking for ${SPEEX_DIR}/include/speex/speex.h... $ECHO_C" >&6; }
22944 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22945 echo $ECHO_N "(cached) $ECHO_C" >&6
22947 eval "$as_ac_Header=\$ac_header_preproc"
22949 ac_res=`eval echo '${'$as_ac_Header'}'`
22950 { echo "$as_me:$LINENO: result: $ac_res" >&5
22951 echo "${ECHO_T}$ac_res" >&6; }
22954 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22955 SPEEX_HEADER_FOUND=1
22957 SPEEX_HEADER_FOUND=0
22963 if test "xspeex/speex.h" != "x" ; then
22964 if test "${ac_cv_header_speex_speex_h+set}" = set; then
22965 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
22966 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
22967 if test "${ac_cv_header_speex_speex_h+set}" = set; then
22968 echo $ECHO_N "(cached) $ECHO_C" >&6
22970 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
22971 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
22973 # Is the header compilable?
22974 { echo "$as_me:$LINENO: checking speex/speex.h usability" >&5
22975 echo $ECHO_N "checking speex/speex.h usability... $ECHO_C" >&6; }
22976 cat >conftest.$ac_ext <<_ACEOF
22979 cat confdefs.h >>conftest.$ac_ext
22980 cat >>conftest.$ac_ext <<_ACEOF
22981 /* end confdefs.h. */
22982 $ac_includes_default
22983 #include <speex/speex.h>
22985 rm -f conftest.$ac_objext
22986 if { (ac_try="$ac_compile"
22987 case "(($ac_try" in
22988 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22989 *) ac_try_echo
=$ac_try;;
22991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22992 (eval "$ac_compile") 2>conftest.er1
22994 grep -v '^ *+' conftest.er1
>conftest.err
22996 cat conftest.err
>&5
22997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22998 (exit $ac_status); } &&
22999 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23000 { (case "(($ac_try" in
23001 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23002 *) ac_try_echo=$ac_try;;
23004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23005 (eval "$ac_try") 2>&5
23007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23008 (exit $ac_status); }; } &&
23009 { ac_try='test -s conftest.$ac_objext'
23010 { (case "(($ac_try" in
23011 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23012 *) ac_try_echo
=$ac_try;;
23014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23015 (eval "$ac_try") 2>&5
23017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23018 (exit $ac_status); }; }; then
23019 ac_header_compiler
=yes
23021 echo "$as_me: failed program was:" >&5
23022 sed 's/^/| /' conftest.
$ac_ext >&5
23024 ac_header_compiler
=no
23027 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
23028 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23029 echo "${ECHO_T}$ac_header_compiler" >&6; }
23031 # Is the header present?
23032 { echo "$as_me:$LINENO: checking speex/speex.h presence" >&5
23033 echo $ECHO_N "checking speex/speex.h presence... $ECHO_C" >&6; }
23034 cat >conftest.
$ac_ext <<_ACEOF
23037 cat confdefs.h
>>conftest.
$ac_ext
23038 cat >>conftest.
$ac_ext <<_ACEOF
23039 /* end confdefs.h. */
23040 #include <speex/speex.h>
23042 if { (ac_try
="$ac_cpp conftest.$ac_ext"
23043 case "(($ac_try" in
23044 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23045 *) ac_try_echo=$ac_try;;
23047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23048 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23050 grep -v '^ *+' conftest.er1 >conftest.err
23052 cat conftest.err >&5
23053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23054 (exit $ac_status); } >/dev/null; then
23055 if test -s conftest.err; then
23056 ac_cpp_err=$ac_c_preproc_warn_flag
23057 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23064 if test -z "$ac_cpp_err"; then
23065 ac_header_preproc=yes
23067 echo "$as_me: failed program was:" >&5
23068 sed 's/^/| /' conftest.$ac_ext >&5
23070 ac_header_preproc=no
23073 rm -f conftest.err conftest.$ac_ext
23074 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23075 echo "${ECHO_T}$ac_header_preproc" >&6; }
23077 # So? What about this header?
23078 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23080 { echo "$as_me:$LINENO: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&5
23081 echo "$as_me: WARNING: speex/speex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23082 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the compiler's result" >&5
23083 echo "$as_me: WARNING: speex/speex.h: proceeding with the compiler's result" >&2;}
23084 ac_header_preproc=yes
23087 { echo "$as_me:$LINENO: WARNING: speex/speex.h: present but cannot be compiled" >&5
23088 echo "$as_me: WARNING: speex/speex.h: present but cannot be compiled" >&2;}
23089 { echo "$as_me:$LINENO: WARNING: speex/speex.h: check for missing prerequisite headers?" >&5
23090 echo "$as_me: WARNING: speex/speex.h: check for missing prerequisite headers?" >&2;}
23091 { echo "$as_me:$LINENO: WARNING: speex/speex.h: see the Autoconf documentation" >&5
23092 echo "$as_me: WARNING: speex/speex.h: see the Autoconf documentation" >&2;}
23093 { echo "$as_me:$LINENO: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&5
23094 echo "$as_me: WARNING: speex/speex.h: section \"Present But Cannot Be Compiled\"" >&2;}
23095 { echo "$as_me:$LINENO: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&5
23096 echo "$as_me: WARNING: speex/speex.h: proceeding with the preprocessor's result" >&2;}
23097 { echo "$as_me:$LINENO: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&5
23098 echo "$as_me: WARNING: speex/speex.h: in the future, the compiler will take precedence" >&2;}
23102 { echo "$as_me:$LINENO: checking for speex/speex.h" >&5
23103 echo $ECHO_N "checking for speex/speex.h... $ECHO_C" >&6; }
23104 if test "${ac_cv_header_speex_speex_h+set}" = set; then
23105 echo $ECHO_N "(cached) $ECHO_C" >&6
23107 ac_cv_header_speex_speex_h=$ac_header_preproc
23109 { echo "$as_me:$LINENO: result: $ac_cv_header_speex_speex_h" >&5
23110 echo "${ECHO_T}$ac_cv_header_speex_speex_h" >&6; }
23113 if test $ac_cv_header_speex_speex_h = yes; then
23114 SPEEX_HEADER_FOUND=1
23116 SPEEX_HEADER_FOUND=0
23122 if test "x${SPEEX_HEADER_FOUND}" = "x0" ; then
23123 if test ! -z "${SPEEX_MANDATORY}" ;
23126 echo " *** It appears that you do not have the speex development package installed."
23127 echo " *** Please install it to include ${SPEEX_DESCRIP} support, or re-run configure"
23128 echo " *** without explicitly specifying --with-${SPEEX_OPTION}"
23137 cat >>confdefs.h <<_ACEOF
23138 #define HAVE_SPEEX 1
23142 elif test ! -z "${SPEEX_MANDATORY}";
23145 echo "*** The ${SPEEX_DESCRIP} installation on this system appears to be broken."
23146 echo "*** Either correct the installation, or run configure"
23147 echo "*** without explicitly specifying --with-${SPEEX_OPTION}"
23154 if test "${USE_SQLITE}" != "no"; then
23156 if test "x${SQLITE_DIR}" != "x"; then
23157 if test -d ${SQLITE_DIR}/lib; then
23158 pbxlibdir="-L${SQLITE_DIR}/lib"
23160 pbxlibdir="-L${SQLITE_DIR}"
23163 { echo "$as_me:$LINENO: checking for sqlite_exec in -lsqlite" >&5
23164 echo $ECHO_N "checking for sqlite_exec in -lsqlite... $ECHO_C" >&6; }
23165 if test "${ac_cv_lib_sqlite_sqlite_exec+set}" = set; then
23166 echo $ECHO_N "(cached) $ECHO_C" >&6
23168 ac_check_lib_save_LIBS=$LIBS
23169 LIBS="-lsqlite ${pbxlibdir} $LIBS"
23170 cat >conftest.$ac_ext <<_ACEOF
23173 cat confdefs.h >>conftest.$ac_ext
23174 cat >>conftest.$ac_ext <<_ACEOF
23175 /* end confdefs.h. */
23177 /* Override any GCC internal prototype to avoid an error.
23178 Use char because int might match the return type of a GCC
23179 builtin and then its argument prototype would still apply. */
23183 char sqlite_exec ();
23187 return sqlite_exec ();
23192 rm -f conftest.$ac_objext conftest$ac_exeext
23193 if { (ac_try="$ac_link"
23194 case "(($ac_try" in
23195 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23196 *) ac_try_echo
=$ac_try;;
23198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23199 (eval "$ac_link") 2>conftest.er1
23201 grep -v '^ *+' conftest.er1
>conftest.err
23203 cat conftest.err
>&5
23204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23205 (exit $ac_status); } &&
23206 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23207 { (case "(($ac_try" in
23208 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23209 *) ac_try_echo=$ac_try;;
23211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23212 (eval "$ac_try") 2>&5
23214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23215 (exit $ac_status); }; } &&
23216 { ac_try='test -s conftest$ac_exeext'
23217 { (case "(($ac_try" in
23218 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23219 *) ac_try_echo
=$ac_try;;
23221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23222 (eval "$ac_try") 2>&5
23224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23225 (exit $ac_status); }; }; then
23226 ac_cv_lib_sqlite_sqlite_exec
=yes
23228 echo "$as_me: failed program was:" >&5
23229 sed 's/^/| /' conftest.
$ac_ext >&5
23231 ac_cv_lib_sqlite_sqlite_exec
=no
23234 rm -f conftest.err conftest.
$ac_objext \
23235 conftest
$ac_exeext conftest.
$ac_ext
23236 LIBS
=$ac_check_lib_save_LIBS
23238 { echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite_sqlite_exec" >&5
23239 echo "${ECHO_T}$ac_cv_lib_sqlite_sqlite_exec" >&6; }
23240 if test $ac_cv_lib_sqlite_sqlite_exec = yes; then
23241 AST_SQLITE_FOUND
=yes
23243 AST_SQLITE_FOUND
=no
23247 if test "${AST_SQLITE_FOUND}" = "yes"; then
23248 SQLITE_LIB
="-lsqlite "
23249 SQLITE_HEADER_FOUND
="1"
23250 if test "x${SQLITE_DIR}" != "x"; then
23251 SQLITE_LIB
="${pbxlibdir} ${SQLITE_LIB}"
23252 SQLITE_INCLUDE
="-I${SQLITE_DIR}/include"
23253 if test "xsqlite.h" != "x" ; then
23254 as_ac_Header
=`echo "ac_cv_header_${SQLITE_DIR}/include/sqlite.h" | $as_tr_sh`
23255 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23256 { echo "$as_me:$LINENO: checking for ${SQLITE_DIR}/include/sqlite.h" >&5
23257 echo $ECHO_N "checking for ${SQLITE_DIR}/include/sqlite.h... $ECHO_C" >&6; }
23258 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23259 echo $ECHO_N "(cached) $ECHO_C" >&6
23261 ac_res
=`eval echo '${'$as_ac_Header'}'`
23262 { echo "$as_me:$LINENO: result: $ac_res" >&5
23263 echo "${ECHO_T}$ac_res" >&6; }
23265 # Is the header compilable?
23266 { echo "$as_me:$LINENO: checking ${SQLITE_DIR}/include/sqlite.h usability" >&5
23267 echo $ECHO_N "checking ${SQLITE_DIR}/include/sqlite.h usability... $ECHO_C" >&6; }
23268 cat >conftest.
$ac_ext <<_ACEOF
23271 cat confdefs.h
>>conftest.
$ac_ext
23272 cat >>conftest.
$ac_ext <<_ACEOF
23273 /* end confdefs.h. */
23274 $ac_includes_default
23275 #include <${SQLITE_DIR}/include/sqlite.h>
23277 rm -f conftest.
$ac_objext
23278 if { (ac_try
="$ac_compile"
23279 case "(($ac_try" in
23280 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23281 *) ac_try_echo=$ac_try;;
23283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23284 (eval "$ac_compile") 2>conftest.er1
23286 grep -v '^ *+' conftest.er1 >conftest.err
23288 cat conftest.err >&5
23289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23290 (exit $ac_status); } &&
23291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23292 { (case "(($ac_try" in
23293 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23294 *) ac_try_echo
=$ac_try;;
23296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23297 (eval "$ac_try") 2>&5
23299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23300 (exit $ac_status); }; } &&
23301 { ac_try
='test -s conftest.$ac_objext'
23302 { (case "(($ac_try" in
23303 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23304 *) ac_try_echo=$ac_try;;
23306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23307 (eval "$ac_try") 2>&5
23309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23310 (exit $ac_status); }; }; then
23311 ac_header_compiler=yes
23313 echo "$as_me: failed program was:" >&5
23314 sed 's/^/| /' conftest.$ac_ext >&5
23316 ac_header_compiler=no
23319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23320 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23321 echo "${ECHO_T}$ac_header_compiler" >&6; }
23323 # Is the header present?
23324 { echo "$as_me:$LINENO: checking ${SQLITE_DIR}/include/sqlite.h presence" >&5
23325 echo $ECHO_N "checking ${SQLITE_DIR}/include/sqlite.h presence... $ECHO_C" >&6; }
23326 cat >conftest.$ac_ext <<_ACEOF
23329 cat confdefs.h >>conftest.$ac_ext
23330 cat >>conftest.$ac_ext <<_ACEOF
23331 /* end confdefs.h. */
23332 #include <${SQLITE_DIR}/include/sqlite.h>
23334 if { (ac_try="$ac_cpp conftest.$ac_ext"
23335 case "(($ac_try" in
23336 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23337 *) ac_try_echo
=$ac_try;;
23339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23340 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23342 grep -v '^ *+' conftest.er1
>conftest.err
23344 cat conftest.err
>&5
23345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23346 (exit $ac_status); } >/dev
/null
; then
23347 if test -s conftest.err
; then
23348 ac_cpp_err
=$ac_c_preproc_warn_flag
23349 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
23356 if test -z "$ac_cpp_err"; then
23357 ac_header_preproc
=yes
23359 echo "$as_me: failed program was:" >&5
23360 sed 's/^/| /' conftest.
$ac_ext >&5
23362 ac_header_preproc
=no
23365 rm -f conftest.err conftest.
$ac_ext
23366 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23367 echo "${ECHO_T}$ac_header_preproc" >&6; }
23369 # So? What about this header?
23370 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23372 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
23373 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23374 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the compiler's result" >&5
23375 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the compiler's result" >&2;}
23376 ac_header_preproc
=yes
23379 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: present but cannot be compiled" >&5
23380 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: present but cannot be compiled" >&2;}
23381 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: check for missing prerequisite headers?" >&5
23382 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: check for missing prerequisite headers?" >&2;}
23383 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: see the Autoconf documentation" >&5
23384 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: see the Autoconf documentation" >&2;}
23385 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
23386 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
23387 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the preprocessor's result" >&5
23388 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: proceeding with the preprocessor's result" >&2;}
23389 { echo "$as_me:$LINENO: WARNING: ${SQLITE_DIR}/include/sqlite.h: in the future, the compiler will take precedence" >&5
23390 echo "$as_me: WARNING: ${SQLITE_DIR}/include/sqlite.h: in the future, the compiler will take precedence" >&2;}
23394 { echo "$as_me:$LINENO: checking for ${SQLITE_DIR}/include/sqlite.h" >&5
23395 echo $ECHO_N "checking for ${SQLITE_DIR}/include/sqlite.h... $ECHO_C" >&6; }
23396 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23397 echo $ECHO_N "(cached) $ECHO_C" >&6
23399 eval "$as_ac_Header=\$ac_header_preproc"
23401 ac_res
=`eval echo '${'$as_ac_Header'}'`
23402 { echo "$as_me:$LINENO: result: $ac_res" >&5
23403 echo "${ECHO_T}$ac_res" >&6; }
23406 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23407 SQLITE_HEADER_FOUND
=1
23409 SQLITE_HEADER_FOUND
=0
23415 if test "xsqlite.h" != "x" ; then
23416 if test "${ac_cv_header_sqlite_h+set}" = set; then
23417 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
23418 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
23419 if test "${ac_cv_header_sqlite_h+set}" = set; then
23420 echo $ECHO_N "(cached) $ECHO_C" >&6
23422 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
23423 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
23425 # Is the header compilable?
23426 { echo "$as_me:$LINENO: checking sqlite.h usability" >&5
23427 echo $ECHO_N "checking sqlite.h usability... $ECHO_C" >&6; }
23428 cat >conftest.
$ac_ext <<_ACEOF
23431 cat confdefs.h
>>conftest.
$ac_ext
23432 cat >>conftest.
$ac_ext <<_ACEOF
23433 /* end confdefs.h. */
23434 $ac_includes_default
23435 #include <sqlite.h>
23437 rm -f conftest.
$ac_objext
23438 if { (ac_try
="$ac_compile"
23439 case "(($ac_try" in
23440 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23441 *) ac_try_echo=$ac_try;;
23443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23444 (eval "$ac_compile") 2>conftest.er1
23446 grep -v '^ *+' conftest.er1 >conftest.err
23448 cat conftest.err >&5
23449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23450 (exit $ac_status); } &&
23451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23452 { (case "(($ac_try" in
23453 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23454 *) ac_try_echo
=$ac_try;;
23456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23457 (eval "$ac_try") 2>&5
23459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23460 (exit $ac_status); }; } &&
23461 { ac_try
='test -s conftest.$ac_objext'
23462 { (case "(($ac_try" in
23463 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23464 *) ac_try_echo=$ac_try;;
23466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23467 (eval "$ac_try") 2>&5
23469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23470 (exit $ac_status); }; }; then
23471 ac_header_compiler=yes
23473 echo "$as_me: failed program was:" >&5
23474 sed 's/^/| /' conftest.$ac_ext >&5
23476 ac_header_compiler=no
23479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23480 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23481 echo "${ECHO_T}$ac_header_compiler" >&6; }
23483 # Is the header present?
23484 { echo "$as_me:$LINENO: checking sqlite.h presence" >&5
23485 echo $ECHO_N "checking sqlite.h presence... $ECHO_C" >&6; }
23486 cat >conftest.$ac_ext <<_ACEOF
23489 cat confdefs.h >>conftest.$ac_ext
23490 cat >>conftest.$ac_ext <<_ACEOF
23491 /* end confdefs.h. */
23492 #include <sqlite.h>
23494 if { (ac_try="$ac_cpp conftest.$ac_ext"
23495 case "(($ac_try" in
23496 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23497 *) ac_try_echo
=$ac_try;;
23499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23500 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23502 grep -v '^ *+' conftest.er1
>conftest.err
23504 cat conftest.err
>&5
23505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23506 (exit $ac_status); } >/dev
/null
; then
23507 if test -s conftest.err
; then
23508 ac_cpp_err
=$ac_c_preproc_warn_flag
23509 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
23516 if test -z "$ac_cpp_err"; then
23517 ac_header_preproc
=yes
23519 echo "$as_me: failed program was:" >&5
23520 sed 's/^/| /' conftest.
$ac_ext >&5
23522 ac_header_preproc
=no
23525 rm -f conftest.err conftest.
$ac_ext
23526 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23527 echo "${ECHO_T}$ac_header_preproc" >&6; }
23529 # So? What about this header?
23530 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23532 { echo "$as_me:$LINENO: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&5
23533 echo "$as_me: WARNING: sqlite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23534 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the compiler's result" >&5
23535 echo "$as_me: WARNING: sqlite.h: proceeding with the compiler's result" >&2;}
23536 ac_header_preproc
=yes
23539 { echo "$as_me:$LINENO: WARNING: sqlite.h: present but cannot be compiled" >&5
23540 echo "$as_me: WARNING: sqlite.h: present but cannot be compiled" >&2;}
23541 { echo "$as_me:$LINENO: WARNING: sqlite.h: check for missing prerequisite headers?" >&5
23542 echo "$as_me: WARNING: sqlite.h: check for missing prerequisite headers?" >&2;}
23543 { echo "$as_me:$LINENO: WARNING: sqlite.h: see the Autoconf documentation" >&5
23544 echo "$as_me: WARNING: sqlite.h: see the Autoconf documentation" >&2;}
23545 { echo "$as_me:$LINENO: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&5
23546 echo "$as_me: WARNING: sqlite.h: section \"Present But Cannot Be Compiled\"" >&2;}
23547 { echo "$as_me:$LINENO: WARNING: sqlite.h: proceeding with the preprocessor's result" >&5
23548 echo "$as_me: WARNING: sqlite.h: proceeding with the preprocessor's result" >&2;}
23549 { echo "$as_me:$LINENO: WARNING: sqlite.h: in the future, the compiler will take precedence" >&5
23550 echo "$as_me: WARNING: sqlite.h: in the future, the compiler will take precedence" >&2;}
23554 { echo "$as_me:$LINENO: checking for sqlite.h" >&5
23555 echo $ECHO_N "checking for sqlite.h... $ECHO_C" >&6; }
23556 if test "${ac_cv_header_sqlite_h+set}" = set; then
23557 echo $ECHO_N "(cached) $ECHO_C" >&6
23559 ac_cv_header_sqlite_h
=$ac_header_preproc
23561 { echo "$as_me:$LINENO: result: $ac_cv_header_sqlite_h" >&5
23562 echo "${ECHO_T}$ac_cv_header_sqlite_h" >&6; }
23565 if test $ac_cv_header_sqlite_h = yes; then
23566 SQLITE_HEADER_FOUND
=1
23568 SQLITE_HEADER_FOUND
=0
23574 if test "x${SQLITE_HEADER_FOUND}" = "x0" ; then
23575 if test ! -z "${SQLITE_MANDATORY}" ;
23578 echo " *** It appears that you do not have the sqlite development package installed."
23579 echo " *** Please install it to include ${SQLITE_DESCRIP} support, or re-run configure"
23580 echo " *** without explicitly specifying --with-${SQLITE_OPTION}"
23589 cat >>confdefs.h
<<_ACEOF
23590 #define HAVE_SQLITE 1
23594 elif test ! -z "${SQLITE_MANDATORY}";
23597 echo "*** The ${SQLITE_DESCRIP} installation on this system appears to be broken."
23598 echo "*** Either correct the installation, or run configure"
23599 echo "*** without explicitly specifying --with-${SQLITE_OPTION}"
23606 if test "${USE_OPENSSL}" != "no"; then
23608 if test "x${OPENSSL_DIR}" != "x"; then
23609 if test -d ${OPENSSL_DIR}/lib
; then
23610 pbxlibdir
="-L${OPENSSL_DIR}/lib"
23612 pbxlibdir
="-L${OPENSSL_DIR}"
23615 { echo "$as_me:$LINENO: checking for ssl2_connect in -lssl" >&5
23616 echo $ECHO_N "checking for ssl2_connect in -lssl... $ECHO_C" >&6; }
23617 if test "${ac_cv_lib_ssl_ssl2_connect+set}" = set; then
23618 echo $ECHO_N "(cached) $ECHO_C" >&6
23620 ac_check_lib_save_LIBS
=$LIBS
23621 LIBS
="-lssl ${pbxlibdir} -lcrypto $LIBS"
23622 cat >conftest.
$ac_ext <<_ACEOF
23625 cat confdefs.h
>>conftest.
$ac_ext
23626 cat >>conftest.
$ac_ext <<_ACEOF
23627 /* end confdefs.h. */
23629 /* Override any GCC internal prototype to avoid an error.
23630 Use char because int might match the return type of a GCC
23631 builtin and then its argument prototype would still apply. */
23635 char ssl2_connect ();
23639 return ssl2_connect ();
23644 rm -f conftest.
$ac_objext conftest
$ac_exeext
23645 if { (ac_try
="$ac_link"
23646 case "(($ac_try" in
23647 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23648 *) ac_try_echo=$ac_try;;
23650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23651 (eval "$ac_link") 2>conftest.er1
23653 grep -v '^ *+' conftest.er1 >conftest.err
23655 cat conftest.err >&5
23656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23657 (exit $ac_status); } &&
23658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23659 { (case "(($ac_try" in
23660 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23661 *) ac_try_echo
=$ac_try;;
23663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23664 (eval "$ac_try") 2>&5
23666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23667 (exit $ac_status); }; } &&
23668 { ac_try
='test -s conftest$ac_exeext'
23669 { (case "(($ac_try" in
23670 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23671 *) ac_try_echo=$ac_try;;
23673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23674 (eval "$ac_try") 2>&5
23676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23677 (exit $ac_status); }; }; then
23678 ac_cv_lib_ssl_ssl2_connect=yes
23680 echo "$as_me: failed program was:" >&5
23681 sed 's/^/| /' conftest.$ac_ext >&5
23683 ac_cv_lib_ssl_ssl2_connect=no
23686 rm -f conftest.err conftest.$ac_objext \
23687 conftest$ac_exeext conftest.$ac_ext
23688 LIBS=$ac_check_lib_save_LIBS
23690 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl2_connect" >&5
23691 echo "${ECHO_T}$ac_cv_lib_ssl_ssl2_connect" >&6; }
23692 if test $ac_cv_lib_ssl_ssl2_connect = yes; then
23693 AST_OPENSSL_FOUND=yes
23695 AST_OPENSSL_FOUND=no
23699 if test "${AST_OPENSSL_FOUND}" = "yes"; then
23700 OPENSSL_LIB="-lssl -lcrypto"
23701 OPENSSL_HEADER_FOUND="1"
23702 if test "x${OPENSSL_DIR}" != "x"; then
23703 OPENSSL_LIB="${pbxlibdir} ${OPENSSL_LIB}"
23704 OPENSSL_INCLUDE="-I${OPENSSL_DIR}/include"
23705 if test "xopenssl/ssl.h" != "x" ; then
23706 as_ac_Header=`echo "ac_cv_header_${OPENSSL_DIR}/include/openssl/ssl.h" |
$as_tr_sh`
23707 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23708 { echo "$as_me:$LINENO: checking for ${OPENSSL_DIR}/include/openssl/ssl.h" >&5
23709 echo $ECHO_N "checking for ${OPENSSL_DIR}/include/openssl/ssl.h... $ECHO_C" >&6; }
23710 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23711 echo $ECHO_N "(cached) $ECHO_C" >&6
23713 ac_res=`eval echo '${'$as_ac_Header'}'`
23714 { echo "$as_me:$LINENO: result: $ac_res" >&5
23715 echo "${ECHO_T}$ac_res" >&6; }
23717 # Is the header compilable?
23718 { echo "$as_me:$LINENO: checking ${OPENSSL_DIR}/include/openssl/ssl.h usability" >&5
23719 echo $ECHO_N "checking ${OPENSSL_DIR}/include/openssl/ssl.h usability... $ECHO_C" >&6; }
23720 cat >conftest.$ac_ext <<_ACEOF
23723 cat confdefs.h >>conftest.$ac_ext
23724 cat >>conftest.$ac_ext <<_ACEOF
23725 /* end confdefs.h. */
23726 $ac_includes_default
23727 #include <${OPENSSL_DIR}/include/openssl/ssl.h>
23729 rm -f conftest.$ac_objext
23730 if { (ac_try="$ac_compile"
23731 case "(($ac_try" in
23732 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23733 *) ac_try_echo
=$ac_try;;
23735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23736 (eval "$ac_compile") 2>conftest.er1
23738 grep -v '^ *+' conftest.er1
>conftest.err
23740 cat conftest.err
>&5
23741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23742 (exit $ac_status); } &&
23743 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23744 { (case "(($ac_try" in
23745 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23746 *) ac_try_echo=$ac_try;;
23748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23749 (eval "$ac_try") 2>&5
23751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23752 (exit $ac_status); }; } &&
23753 { ac_try='test -s conftest.$ac_objext'
23754 { (case "(($ac_try" in
23755 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23756 *) ac_try_echo
=$ac_try;;
23758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23759 (eval "$ac_try") 2>&5
23761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23762 (exit $ac_status); }; }; then
23763 ac_header_compiler
=yes
23765 echo "$as_me: failed program was:" >&5
23766 sed 's/^/| /' conftest.
$ac_ext >&5
23768 ac_header_compiler
=no
23771 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
23772 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23773 echo "${ECHO_T}$ac_header_compiler" >&6; }
23775 # Is the header present?
23776 { echo "$as_me:$LINENO: checking ${OPENSSL_DIR}/include/openssl/ssl.h presence" >&5
23777 echo $ECHO_N "checking ${OPENSSL_DIR}/include/openssl/ssl.h presence... $ECHO_C" >&6; }
23778 cat >conftest.
$ac_ext <<_ACEOF
23781 cat confdefs.h
>>conftest.
$ac_ext
23782 cat >>conftest.
$ac_ext <<_ACEOF
23783 /* end confdefs.h. */
23784 #include <${OPENSSL_DIR}/include/openssl/ssl.h>
23786 if { (ac_try
="$ac_cpp conftest.$ac_ext"
23787 case "(($ac_try" in
23788 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23789 *) ac_try_echo=$ac_try;;
23791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23792 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23794 grep -v '^ *+' conftest.er1 >conftest.err
23796 cat conftest.err >&5
23797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23798 (exit $ac_status); } >/dev/null; then
23799 if test -s conftest.err; then
23800 ac_cpp_err=$ac_c_preproc_warn_flag
23801 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23808 if test -z "$ac_cpp_err"; then
23809 ac_header_preproc=yes
23811 echo "$as_me: failed program was:" >&5
23812 sed 's/^/| /' conftest.$ac_ext >&5
23814 ac_header_preproc=no
23817 rm -f conftest.err conftest.$ac_ext
23818 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23819 echo "${ECHO_T}$ac_header_preproc" >&6; }
23821 # So? What about this header?
23822 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23824 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
23825 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23826 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the compiler's result" >&5
23827 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the compiler's result" >&2;}
23828 ac_header_preproc=yes
23831 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: present but cannot be compiled" >&5
23832 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: present but cannot be compiled" >&2;}
23833 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: check for missing prerequisite headers?" >&5
23834 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: check for missing prerequisite headers?" >&2;}
23835 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: see the Autoconf documentation" >&5
23836 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: see the Autoconf documentation" >&2;}
23837 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
23838 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
23839 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the preprocessor's result" >&5
23840 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
23841 { echo "$as_me:$LINENO: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: in the future, the compiler will take precedence" >&5
23842 echo "$as_me: WARNING: ${OPENSSL_DIR}/include/openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
23846 { echo "$as_me:$LINENO: checking for ${OPENSSL_DIR}/include/openssl/ssl.h" >&5
23847 echo $ECHO_N "checking for ${OPENSSL_DIR}/include/openssl/ssl.h... $ECHO_C" >&6; }
23848 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23849 echo $ECHO_N "(cached) $ECHO_C" >&6
23851 eval "$as_ac_Header=\$ac_header_preproc"
23853 ac_res=`eval echo '${'$as_ac_Header'}'`
23854 { echo "$as_me:$LINENO: result: $ac_res" >&5
23855 echo "${ECHO_T}$ac_res" >&6; }
23858 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23859 OPENSSL_HEADER_FOUND=1
23861 OPENSSL_HEADER_FOUND=0
23867 if test "xopenssl/ssl.h" != "x" ; then
23868 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
23869 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
23870 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
23871 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
23872 echo $ECHO_N "(cached) $ECHO_C" >&6
23874 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
23875 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
23877 # Is the header compilable?
23878 { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
23879 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
23880 cat >conftest.$ac_ext <<_ACEOF
23883 cat confdefs.h >>conftest.$ac_ext
23884 cat >>conftest.$ac_ext <<_ACEOF
23885 /* end confdefs.h. */
23886 $ac_includes_default
23887 #include <openssl/ssl.h>
23889 rm -f conftest.$ac_objext
23890 if { (ac_try="$ac_compile"
23891 case "(($ac_try" in
23892 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23893 *) ac_try_echo
=$ac_try;;
23895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23896 (eval "$ac_compile") 2>conftest.er1
23898 grep -v '^ *+' conftest.er1
>conftest.err
23900 cat conftest.err
>&5
23901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23902 (exit $ac_status); } &&
23903 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23904 { (case "(($ac_try" in
23905 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23906 *) ac_try_echo=$ac_try;;
23908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23909 (eval "$ac_try") 2>&5
23911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23912 (exit $ac_status); }; } &&
23913 { ac_try='test -s conftest.$ac_objext'
23914 { (case "(($ac_try" in
23915 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23916 *) ac_try_echo
=$ac_try;;
23918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23919 (eval "$ac_try") 2>&5
23921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23922 (exit $ac_status); }; }; then
23923 ac_header_compiler
=yes
23925 echo "$as_me: failed program was:" >&5
23926 sed 's/^/| /' conftest.
$ac_ext >&5
23928 ac_header_compiler
=no
23931 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
23932 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23933 echo "${ECHO_T}$ac_header_compiler" >&6; }
23935 # Is the header present?
23936 { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
23937 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
23938 cat >conftest.
$ac_ext <<_ACEOF
23941 cat confdefs.h
>>conftest.
$ac_ext
23942 cat >>conftest.
$ac_ext <<_ACEOF
23943 /* end confdefs.h. */
23944 #include <openssl/ssl.h>
23946 if { (ac_try
="$ac_cpp conftest.$ac_ext"
23947 case "(($ac_try" in
23948 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23949 *) ac_try_echo=$ac_try;;
23951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23952 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23954 grep -v '^ *+' conftest.er1 >conftest.err
23956 cat conftest.err >&5
23957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23958 (exit $ac_status); } >/dev/null; then
23959 if test -s conftest.err; then
23960 ac_cpp_err=$ac_c_preproc_warn_flag
23961 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23968 if test -z "$ac_cpp_err"; then
23969 ac_header_preproc=yes
23971 echo "$as_me: failed program was:" >&5
23972 sed 's/^/| /' conftest.$ac_ext >&5
23974 ac_header_preproc=no
23977 rm -f conftest.err conftest.$ac_ext
23978 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23979 echo "${ECHO_T}$ac_header_preproc" >&6; }
23981 # So? What about this header?
23982 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23984 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
23985 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23986 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
23987 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
23988 ac_header_preproc=yes
23991 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
23992 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
23993 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&5
23994 echo "$as_me: WARNING: openssl/ssl.h: check for missing prerequisite headers?" >&2;}
23995 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
23996 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
23997 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&5
23998 echo "$as_me: WARNING: openssl/ssl.h: section \"Present But Cannot Be Compiled\"" >&2;}
23999 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
24000 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
24001 { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
24002 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
24006 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
24007 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
24008 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
24009 echo $ECHO_N "(cached) $ECHO_C" >&6
24011 ac_cv_header_openssl_ssl_h=$ac_header_preproc
24013 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
24014 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
24017 if test $ac_cv_header_openssl_ssl_h = yes; then
24018 OPENSSL_HEADER_FOUND=1
24020 OPENSSL_HEADER_FOUND=0
24026 if test "x${OPENSSL_HEADER_FOUND}" = "x0" ; then
24027 if test ! -z "${OPENSSL_MANDATORY}" ;
24030 echo " *** It appears that you do not have the ssl development package installed."
24031 echo " *** Please install it to include ${OPENSSL_DESCRIP} support, or re-run configure"
24032 echo " *** without explicitly specifying --with-${OPENSSL_OPTION}"
24041 cat >>confdefs.h <<_ACEOF
24042 #define HAVE_OPENSSL 1
24046 elif test ! -z "${OPENSSL_MANDATORY}";
24049 echo "*** The ${OPENSSL_DESCRIP} installation on this system appears to be broken."
24050 echo "*** Either correct the installation, or run configure"
24051 echo "*** without explicitly specifying --with-${OPENSSL_OPTION}"
24058 if test "${USE_FREETDS}" != "no"; then
24060 if test "x${FREETDS_DIR}" != "x"; then
24061 if test -d ${FREETDS_DIR}/lib; then
24062 pbxlibdir="-L${FREETDS_DIR}/lib"
24064 pbxlibdir="-L${FREETDS_DIR}"
24067 { echo "$as_me:$LINENO: checking for tds_version in -ltds" >&5
24068 echo $ECHO_N "checking for tds_version in -ltds... $ECHO_C" >&6; }
24069 if test "${ac_cv_lib_tds_tds_version+set}" = set; then
24070 echo $ECHO_N "(cached) $ECHO_C" >&6
24072 ac_check_lib_save_LIBS=$LIBS
24073 LIBS="-ltds ${pbxlibdir} $LIBS"
24074 cat >conftest.$ac_ext <<_ACEOF
24077 cat confdefs.h >>conftest.$ac_ext
24078 cat >>conftest.$ac_ext <<_ACEOF
24079 /* end confdefs.h. */
24081 /* Override any GCC internal prototype to avoid an error.
24082 Use char because int might match the return type of a GCC
24083 builtin and then its argument prototype would still apply. */
24087 char tds_version ();
24091 return tds_version ();
24096 rm -f conftest.$ac_objext conftest$ac_exeext
24097 if { (ac_try="$ac_link"
24098 case "(($ac_try" in
24099 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24100 *) ac_try_echo
=$ac_try;;
24102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24103 (eval "$ac_link") 2>conftest.er1
24105 grep -v '^ *+' conftest.er1
>conftest.err
24107 cat conftest.err
>&5
24108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24109 (exit $ac_status); } &&
24110 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24111 { (case "(($ac_try" in
24112 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24113 *) ac_try_echo=$ac_try;;
24115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24116 (eval "$ac_try") 2>&5
24118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24119 (exit $ac_status); }; } &&
24120 { ac_try='test -s conftest$ac_exeext'
24121 { (case "(($ac_try" in
24122 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24123 *) ac_try_echo
=$ac_try;;
24125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24126 (eval "$ac_try") 2>&5
24128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24129 (exit $ac_status); }; }; then
24130 ac_cv_lib_tds_tds_version
=yes
24132 echo "$as_me: failed program was:" >&5
24133 sed 's/^/| /' conftest.
$ac_ext >&5
24135 ac_cv_lib_tds_tds_version
=no
24138 rm -f conftest.err conftest.
$ac_objext \
24139 conftest
$ac_exeext conftest.
$ac_ext
24140 LIBS
=$ac_check_lib_save_LIBS
24142 { echo "$as_me:$LINENO: result: $ac_cv_lib_tds_tds_version" >&5
24143 echo "${ECHO_T}$ac_cv_lib_tds_tds_version" >&6; }
24144 if test $ac_cv_lib_tds_tds_version = yes; then
24145 AST_FREETDS_FOUND
=yes
24147 AST_FREETDS_FOUND
=no
24151 if test "${AST_FREETDS_FOUND}" = "yes"; then
24152 FREETDS_LIB
="-ltds "
24153 FREETDS_HEADER_FOUND
="1"
24154 if test "x${FREETDS_DIR}" != "x"; then
24155 FREETDS_LIB
="${pbxlibdir} ${FREETDS_LIB}"
24156 FREETDS_INCLUDE
="-I${FREETDS_DIR}/include"
24157 if test "xtds.h" != "x" ; then
24158 as_ac_Header
=`echo "ac_cv_header_${FREETDS_DIR}/include/tds.h" | $as_tr_sh`
24159 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24160 { echo "$as_me:$LINENO: checking for ${FREETDS_DIR}/include/tds.h" >&5
24161 echo $ECHO_N "checking for ${FREETDS_DIR}/include/tds.h... $ECHO_C" >&6; }
24162 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24163 echo $ECHO_N "(cached) $ECHO_C" >&6
24165 ac_res
=`eval echo '${'$as_ac_Header'}'`
24166 { echo "$as_me:$LINENO: result: $ac_res" >&5
24167 echo "${ECHO_T}$ac_res" >&6; }
24169 # Is the header compilable?
24170 { echo "$as_me:$LINENO: checking ${FREETDS_DIR}/include/tds.h usability" >&5
24171 echo $ECHO_N "checking ${FREETDS_DIR}/include/tds.h usability... $ECHO_C" >&6; }
24172 cat >conftest.
$ac_ext <<_ACEOF
24175 cat confdefs.h
>>conftest.
$ac_ext
24176 cat >>conftest.
$ac_ext <<_ACEOF
24177 /* end confdefs.h. */
24178 $ac_includes_default
24179 #include <${FREETDS_DIR}/include/tds.h>
24181 rm -f conftest.
$ac_objext
24182 if { (ac_try
="$ac_compile"
24183 case "(($ac_try" in
24184 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24185 *) ac_try_echo=$ac_try;;
24187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24188 (eval "$ac_compile") 2>conftest.er1
24190 grep -v '^ *+' conftest.er1 >conftest.err
24192 cat conftest.err >&5
24193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24194 (exit $ac_status); } &&
24195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24196 { (case "(($ac_try" in
24197 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24198 *) ac_try_echo
=$ac_try;;
24200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24201 (eval "$ac_try") 2>&5
24203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24204 (exit $ac_status); }; } &&
24205 { ac_try
='test -s conftest.$ac_objext'
24206 { (case "(($ac_try" in
24207 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24208 *) ac_try_echo=$ac_try;;
24210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24211 (eval "$ac_try") 2>&5
24213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24214 (exit $ac_status); }; }; then
24215 ac_header_compiler=yes
24217 echo "$as_me: failed program was:" >&5
24218 sed 's/^/| /' conftest.$ac_ext >&5
24220 ac_header_compiler=no
24223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24224 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24225 echo "${ECHO_T}$ac_header_compiler" >&6; }
24227 # Is the header present?
24228 { echo "$as_me:$LINENO: checking ${FREETDS_DIR}/include/tds.h presence" >&5
24229 echo $ECHO_N "checking ${FREETDS_DIR}/include/tds.h presence... $ECHO_C" >&6; }
24230 cat >conftest.$ac_ext <<_ACEOF
24233 cat confdefs.h >>conftest.$ac_ext
24234 cat >>conftest.$ac_ext <<_ACEOF
24235 /* end confdefs.h. */
24236 #include <${FREETDS_DIR}/include/tds.h>
24238 if { (ac_try="$ac_cpp conftest.$ac_ext"
24239 case "(($ac_try" in
24240 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24241 *) ac_try_echo
=$ac_try;;
24243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24244 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24246 grep -v '^ *+' conftest.er1
>conftest.err
24248 cat conftest.err
>&5
24249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24250 (exit $ac_status); } >/dev
/null
; then
24251 if test -s conftest.err
; then
24252 ac_cpp_err
=$ac_c_preproc_warn_flag
24253 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
24260 if test -z "$ac_cpp_err"; then
24261 ac_header_preproc
=yes
24263 echo "$as_me: failed program was:" >&5
24264 sed 's/^/| /' conftest.
$ac_ext >&5
24266 ac_header_preproc
=no
24269 rm -f conftest.err conftest.
$ac_ext
24270 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24271 echo "${ECHO_T}$ac_header_preproc" >&6; }
24273 # So? What about this header?
24274 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24276 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: accepted by the compiler, rejected by the preprocessor!" >&5
24277 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24278 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the compiler's result" >&5
24279 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the compiler's result" >&2;}
24280 ac_header_preproc
=yes
24283 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: present but cannot be compiled" >&5
24284 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: present but cannot be compiled" >&2;}
24285 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: check for missing prerequisite headers?" >&5
24286 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: check for missing prerequisite headers?" >&2;}
24287 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: see the Autoconf documentation" >&5
24288 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: see the Autoconf documentation" >&2;}
24289 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: section \"Present But Cannot Be Compiled\"" >&5
24290 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: section \"Present But Cannot Be Compiled\"" >&2;}
24291 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the preprocessor's result" >&5
24292 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: proceeding with the preprocessor's result" >&2;}
24293 { echo "$as_me:$LINENO: WARNING: ${FREETDS_DIR}/include/tds.h: in the future, the compiler will take precedence" >&5
24294 echo "$as_me: WARNING: ${FREETDS_DIR}/include/tds.h: in the future, the compiler will take precedence" >&2;}
24298 { echo "$as_me:$LINENO: checking for ${FREETDS_DIR}/include/tds.h" >&5
24299 echo $ECHO_N "checking for ${FREETDS_DIR}/include/tds.h... $ECHO_C" >&6; }
24300 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24301 echo $ECHO_N "(cached) $ECHO_C" >&6
24303 eval "$as_ac_Header=\$ac_header_preproc"
24305 ac_res
=`eval echo '${'$as_ac_Header'}'`
24306 { echo "$as_me:$LINENO: result: $ac_res" >&5
24307 echo "${ECHO_T}$ac_res" >&6; }
24310 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24311 FREETDS_HEADER_FOUND
=1
24313 FREETDS_HEADER_FOUND
=0
24319 if test "xtds.h" != "x" ; then
24320 if test "${ac_cv_header_tds_h+set}" = set; then
24321 { echo "$as_me:$LINENO: checking for tds.h" >&5
24322 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
24323 if test "${ac_cv_header_tds_h+set}" = set; then
24324 echo $ECHO_N "(cached) $ECHO_C" >&6
24326 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
24327 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
24329 # Is the header compilable?
24330 { echo "$as_me:$LINENO: checking tds.h usability" >&5
24331 echo $ECHO_N "checking tds.h usability... $ECHO_C" >&6; }
24332 cat >conftest.
$ac_ext <<_ACEOF
24335 cat confdefs.h
>>conftest.
$ac_ext
24336 cat >>conftest.
$ac_ext <<_ACEOF
24337 /* end confdefs.h. */
24338 $ac_includes_default
24341 rm -f conftest.
$ac_objext
24342 if { (ac_try
="$ac_compile"
24343 case "(($ac_try" in
24344 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24345 *) ac_try_echo=$ac_try;;
24347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24348 (eval "$ac_compile") 2>conftest.er1
24350 grep -v '^ *+' conftest.er1 >conftest.err
24352 cat conftest.err >&5
24353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24354 (exit $ac_status); } &&
24355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24356 { (case "(($ac_try" in
24357 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24358 *) ac_try_echo
=$ac_try;;
24360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24361 (eval "$ac_try") 2>&5
24363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24364 (exit $ac_status); }; } &&
24365 { ac_try
='test -s conftest.$ac_objext'
24366 { (case "(($ac_try" in
24367 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24368 *) ac_try_echo=$ac_try;;
24370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24371 (eval "$ac_try") 2>&5
24373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24374 (exit $ac_status); }; }; then
24375 ac_header_compiler=yes
24377 echo "$as_me: failed program was:" >&5
24378 sed 's/^/| /' conftest.$ac_ext >&5
24380 ac_header_compiler=no
24383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24384 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24385 echo "${ECHO_T}$ac_header_compiler" >&6; }
24387 # Is the header present?
24388 { echo "$as_me:$LINENO: checking tds.h presence" >&5
24389 echo $ECHO_N "checking tds.h presence... $ECHO_C" >&6; }
24390 cat >conftest.$ac_ext <<_ACEOF
24393 cat confdefs.h >>conftest.$ac_ext
24394 cat >>conftest.$ac_ext <<_ACEOF
24395 /* end confdefs.h. */
24398 if { (ac_try="$ac_cpp conftest.$ac_ext"
24399 case "(($ac_try" in
24400 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24401 *) ac_try_echo
=$ac_try;;
24403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24404 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24406 grep -v '^ *+' conftest.er1
>conftest.err
24408 cat conftest.err
>&5
24409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24410 (exit $ac_status); } >/dev
/null
; then
24411 if test -s conftest.err
; then
24412 ac_cpp_err
=$ac_c_preproc_warn_flag
24413 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
24420 if test -z "$ac_cpp_err"; then
24421 ac_header_preproc
=yes
24423 echo "$as_me: failed program was:" >&5
24424 sed 's/^/| /' conftest.
$ac_ext >&5
24426 ac_header_preproc
=no
24429 rm -f conftest.err conftest.
$ac_ext
24430 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24431 echo "${ECHO_T}$ac_header_preproc" >&6; }
24433 # So? What about this header?
24434 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24436 { echo "$as_me:$LINENO: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&5
24437 echo "$as_me: WARNING: tds.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24438 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the compiler's result" >&5
24439 echo "$as_me: WARNING: tds.h: proceeding with the compiler's result" >&2;}
24440 ac_header_preproc
=yes
24443 { echo "$as_me:$LINENO: WARNING: tds.h: present but cannot be compiled" >&5
24444 echo "$as_me: WARNING: tds.h: present but cannot be compiled" >&2;}
24445 { echo "$as_me:$LINENO: WARNING: tds.h: check for missing prerequisite headers?" >&5
24446 echo "$as_me: WARNING: tds.h: check for missing prerequisite headers?" >&2;}
24447 { echo "$as_me:$LINENO: WARNING: tds.h: see the Autoconf documentation" >&5
24448 echo "$as_me: WARNING: tds.h: see the Autoconf documentation" >&2;}
24449 { echo "$as_me:$LINENO: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&5
24450 echo "$as_me: WARNING: tds.h: section \"Present But Cannot Be Compiled\"" >&2;}
24451 { echo "$as_me:$LINENO: WARNING: tds.h: proceeding with the preprocessor's result" >&5
24452 echo "$as_me: WARNING: tds.h: proceeding with the preprocessor's result" >&2;}
24453 { echo "$as_me:$LINENO: WARNING: tds.h: in the future, the compiler will take precedence" >&5
24454 echo "$as_me: WARNING: tds.h: in the future, the compiler will take precedence" >&2;}
24458 { echo "$as_me:$LINENO: checking for tds.h" >&5
24459 echo $ECHO_N "checking for tds.h... $ECHO_C" >&6; }
24460 if test "${ac_cv_header_tds_h+set}" = set; then
24461 echo $ECHO_N "(cached) $ECHO_C" >&6
24463 ac_cv_header_tds_h
=$ac_header_preproc
24465 { echo "$as_me:$LINENO: result: $ac_cv_header_tds_h" >&5
24466 echo "${ECHO_T}$ac_cv_header_tds_h" >&6; }
24469 if test $ac_cv_header_tds_h = yes; then
24470 FREETDS_HEADER_FOUND
=1
24472 FREETDS_HEADER_FOUND
=0
24478 if test "x${FREETDS_HEADER_FOUND}" = "x0" ; then
24479 if test ! -z "${FREETDS_MANDATORY}" ;
24482 echo " *** It appears that you do not have the tds development package installed."
24483 echo " *** Please install it to include ${FREETDS_DESCRIP} support, or re-run configure"
24484 echo " *** without explicitly specifying --with-${FREETDS_OPTION}"
24493 cat >>confdefs.h
<<_ACEOF
24494 #define HAVE_FREETDS 1
24498 elif test ! -z "${FREETDS_MANDATORY}";
24501 echo "*** The ${FREETDS_DESCRIP} installation on this system appears to be broken."
24502 echo "*** Either correct the installation, or run configure"
24503 echo "*** without explicitly specifying --with-${FREETDS_OPTION}"
24508 if test "${PBX_FREETDS}" != "0";
24510 case `grep TDS_VERSION_NO ${FREETDS_DIR:-/usr/include}/tdsver.h` in
24512 FREETDS_INCLUDE
="${FREETDS_INCLUDE} -DFREETDS_0_63"
24515 FREETDS_INCLUDE
="${FREETDS_INCLUDE} -DFREETDS_0_62"
24518 FREETDS_INCLUDE
="${FREETDS_INCLUDE} -DFREETDS_PRE_0_62"
24524 if test "${USE_TERMCAP}" != "no"; then
24526 if test "x${TERMCAP_DIR}" != "x"; then
24527 if test -d ${TERMCAP_DIR}/lib
; then
24528 pbxlibdir
="-L${TERMCAP_DIR}/lib"
24530 pbxlibdir
="-L${TERMCAP_DIR}"
24533 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
24534 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
24535 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
24536 echo $ECHO_N "(cached) $ECHO_C" >&6
24538 ac_check_lib_save_LIBS
=$LIBS
24539 LIBS
="-ltermcap ${pbxlibdir} $LIBS"
24540 cat >conftest.
$ac_ext <<_ACEOF
24543 cat confdefs.h
>>conftest.
$ac_ext
24544 cat >>conftest.
$ac_ext <<_ACEOF
24545 /* end confdefs.h. */
24547 /* Override any GCC internal prototype to avoid an error.
24548 Use char because int might match the return type of a GCC
24549 builtin and then its argument prototype would still apply. */
24562 rm -f conftest.
$ac_objext conftest
$ac_exeext
24563 if { (ac_try
="$ac_link"
24564 case "(($ac_try" in
24565 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24566 *) ac_try_echo=$ac_try;;
24568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24569 (eval "$ac_link") 2>conftest.er1
24571 grep -v '^ *+' conftest.er1 >conftest.err
24573 cat conftest.err >&5
24574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24575 (exit $ac_status); } &&
24576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24577 { (case "(($ac_try" in
24578 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24579 *) ac_try_echo
=$ac_try;;
24581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24582 (eval "$ac_try") 2>&5
24584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24585 (exit $ac_status); }; } &&
24586 { ac_try
='test -s conftest$ac_exeext'
24587 { (case "(($ac_try" in
24588 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24589 *) ac_try_echo=$ac_try;;
24591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24592 (eval "$ac_try") 2>&5
24594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24595 (exit $ac_status); }; }; then
24596 ac_cv_lib_termcap_tgetent=yes
24598 echo "$as_me: failed program was:" >&5
24599 sed 's/^/| /' conftest.$ac_ext >&5
24601 ac_cv_lib_termcap_tgetent=no
24604 rm -f conftest.err conftest.$ac_objext \
24605 conftest$ac_exeext conftest.$ac_ext
24606 LIBS=$ac_check_lib_save_LIBS
24608 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
24609 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
24610 if test $ac_cv_lib_termcap_tgetent = yes; then
24611 AST_TERMCAP_FOUND=yes
24613 AST_TERMCAP_FOUND=no
24617 if test "${AST_TERMCAP_FOUND}" = "yes"; then
24618 TERMCAP_LIB="-ltermcap "
24619 TERMCAP_HEADER_FOUND="1"
24620 if test "x${TERMCAP_DIR}" != "x"; then
24621 TERMCAP_LIB="${pbxlibdir} ${TERMCAP_LIB}"
24622 TERMCAP_INCLUDE="-I${TERMCAP_DIR}/include"
24623 if test "x" != "x" ; then
24624 as_ac_Header=`echo "ac_cv_header_${TERMCAP_DIR}/include/" |
$as_tr_sh`
24625 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24626 { echo "$as_me:$LINENO: checking for ${TERMCAP_DIR}/include/" >&5
24627 echo $ECHO_N "checking for ${TERMCAP_DIR}/include/... $ECHO_C" >&6; }
24628 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24629 echo $ECHO_N "(cached) $ECHO_C" >&6
24631 ac_res=`eval echo '${'$as_ac_Header'}'`
24632 { echo "$as_me:$LINENO: result: $ac_res" >&5
24633 echo "${ECHO_T}$ac_res" >&6; }
24635 # Is the header compilable?
24636 { echo "$as_me:$LINENO: checking ${TERMCAP_DIR}/include/ usability" >&5
24637 echo $ECHO_N "checking ${TERMCAP_DIR}/include/ usability... $ECHO_C" >&6; }
24638 cat >conftest.$ac_ext <<_ACEOF
24641 cat confdefs.h >>conftest.$ac_ext
24642 cat >>conftest.$ac_ext <<_ACEOF
24643 /* end confdefs.h. */
24644 $ac_includes_default
24645 #include <${TERMCAP_DIR}/include/>
24647 rm -f conftest.$ac_objext
24648 if { (ac_try="$ac_compile"
24649 case "(($ac_try" in
24650 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24651 *) ac_try_echo
=$ac_try;;
24653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24654 (eval "$ac_compile") 2>conftest.er1
24656 grep -v '^ *+' conftest.er1
>conftest.err
24658 cat conftest.err
>&5
24659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24660 (exit $ac_status); } &&
24661 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24662 { (case "(($ac_try" in
24663 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24664 *) ac_try_echo=$ac_try;;
24666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24667 (eval "$ac_try") 2>&5
24669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24670 (exit $ac_status); }; } &&
24671 { ac_try='test -s conftest.$ac_objext'
24672 { (case "(($ac_try" in
24673 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24674 *) ac_try_echo
=$ac_try;;
24676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24677 (eval "$ac_try") 2>&5
24679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24680 (exit $ac_status); }; }; then
24681 ac_header_compiler
=yes
24683 echo "$as_me: failed program was:" >&5
24684 sed 's/^/| /' conftest.
$ac_ext >&5
24686 ac_header_compiler
=no
24689 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
24690 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24691 echo "${ECHO_T}$ac_header_compiler" >&6; }
24693 # Is the header present?
24694 { echo "$as_me:$LINENO: checking ${TERMCAP_DIR}/include/ presence" >&5
24695 echo $ECHO_N "checking ${TERMCAP_DIR}/include/ presence... $ECHO_C" >&6; }
24696 cat >conftest.
$ac_ext <<_ACEOF
24699 cat confdefs.h
>>conftest.
$ac_ext
24700 cat >>conftest.
$ac_ext <<_ACEOF
24701 /* end confdefs.h. */
24702 #include <${TERMCAP_DIR}/include/>
24704 if { (ac_try
="$ac_cpp conftest.$ac_ext"
24705 case "(($ac_try" in
24706 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24707 *) ac_try_echo=$ac_try;;
24709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24710 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24712 grep -v '^ *+' conftest.er1 >conftest.err
24714 cat conftest.err >&5
24715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24716 (exit $ac_status); } >/dev/null; then
24717 if test -s conftest.err; then
24718 ac_cpp_err=$ac_c_preproc_warn_flag
24719 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24726 if test -z "$ac_cpp_err"; then
24727 ac_header_preproc=yes
24729 echo "$as_me: failed program was:" >&5
24730 sed 's/^/| /' conftest.$ac_ext >&5
24732 ac_header_preproc=no
24735 rm -f conftest.err conftest.$ac_ext
24736 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24737 echo "${ECHO_T}$ac_header_preproc" >&6; }
24739 # So? What about this header?
24740 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24742 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
24743 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
24744 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: proceeding with the compiler's result" >&5
24745 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: proceeding with the compiler's result" >&2;}
24746 ac_header_preproc=yes
24749 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: present but cannot be compiled" >&5
24750 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: present but cannot be compiled" >&2;}
24751 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: check for missing prerequisite headers?" >&5
24752 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: check for missing prerequisite headers?" >&2;}
24753 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: see the Autoconf documentation" >&5
24754 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: see the Autoconf documentation" >&2;}
24755 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
24756 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
24757 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: proceeding with the preprocessor's result" >&5
24758 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: proceeding with the preprocessor's result" >&2;}
24759 { echo "$as_me:$LINENO: WARNING: ${TERMCAP_DIR}/include/: in the future, the compiler will take precedence" >&5
24760 echo "$as_me: WARNING: ${TERMCAP_DIR}/include/: in the future, the compiler will take precedence" >&2;}
24764 { echo "$as_me:$LINENO: checking for ${TERMCAP_DIR}/include/" >&5
24765 echo $ECHO_N "checking for ${TERMCAP_DIR}/include/... $ECHO_C" >&6; }
24766 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24767 echo $ECHO_N "(cached) $ECHO_C" >&6
24769 eval "$as_ac_Header=\$ac_header_preproc"
24771 ac_res=`eval echo '${'$as_ac_Header'}'`
24772 { echo "$as_me:$LINENO: result: $ac_res" >&5
24773 echo "${ECHO_T}$ac_res" >&6; }
24776 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24777 TERMCAP_HEADER_FOUND=1
24779 TERMCAP_HEADER_FOUND=0
24785 if test "x" != "x" ; then
24786 if test "${ac_cv_header_+set}" = set; then
24787 { echo "$as_me:$LINENO: checking for " >&5
24788 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
24789 if test "${ac_cv_header_+set}" = set; then
24790 echo $ECHO_N "(cached) $ECHO_C" >&6
24792 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
24793 echo "${ECHO_T}$ac_cv_header_" >&6; }
24795 # Is the header compilable?
24796 { echo "$as_me:$LINENO: checking usability" >&5
24797 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
24798 cat >conftest.$ac_ext <<_ACEOF
24801 cat confdefs.h >>conftest.$ac_ext
24802 cat >>conftest.$ac_ext <<_ACEOF
24803 /* end confdefs.h. */
24804 $ac_includes_default
24807 rm -f conftest.$ac_objext
24808 if { (ac_try="$ac_compile"
24809 case "(($ac_try" in
24810 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24811 *) ac_try_echo
=$ac_try;;
24813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24814 (eval "$ac_compile") 2>conftest.er1
24816 grep -v '^ *+' conftest.er1
>conftest.err
24818 cat conftest.err
>&5
24819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24820 (exit $ac_status); } &&
24821 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24822 { (case "(($ac_try" in
24823 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24824 *) ac_try_echo=$ac_try;;
24826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24827 (eval "$ac_try") 2>&5
24829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24830 (exit $ac_status); }; } &&
24831 { ac_try='test -s conftest.$ac_objext'
24832 { (case "(($ac_try" in
24833 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24834 *) ac_try_echo
=$ac_try;;
24836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24837 (eval "$ac_try") 2>&5
24839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24840 (exit $ac_status); }; }; then
24841 ac_header_compiler
=yes
24843 echo "$as_me: failed program was:" >&5
24844 sed 's/^/| /' conftest.
$ac_ext >&5
24846 ac_header_compiler
=no
24849 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
24850 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24851 echo "${ECHO_T}$ac_header_compiler" >&6; }
24853 # Is the header present?
24854 { echo "$as_me:$LINENO: checking presence" >&5
24855 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
24856 cat >conftest.
$ac_ext <<_ACEOF
24859 cat confdefs.h
>>conftest.
$ac_ext
24860 cat >>conftest.
$ac_ext <<_ACEOF
24861 /* end confdefs.h. */
24864 if { (ac_try
="$ac_cpp conftest.$ac_ext"
24865 case "(($ac_try" in
24866 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24867 *) ac_try_echo=$ac_try;;
24869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24870 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24872 grep -v '^ *+' conftest.er1 >conftest.err
24874 cat conftest.err >&5
24875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24876 (exit $ac_status); } >/dev/null; then
24877 if test -s conftest.err; then
24878 ac_cpp_err=$ac_c_preproc_warn_flag
24879 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24886 if test -z "$ac_cpp_err"; then
24887 ac_header_preproc=yes
24889 echo "$as_me: failed program was:" >&5
24890 sed 's/^/| /' conftest.$ac_ext >&5
24892 ac_header_preproc=no
24895 rm -f conftest.err conftest.$ac_ext
24896 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24897 echo "${ECHO_T}$ac_header_preproc" >&6; }
24899 # So? What about this header?
24900 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24902 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
24903 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
24904 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
24905 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
24906 ac_header_preproc=yes
24909 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
24910 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
24911 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
24912 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
24913 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
24914 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
24915 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
24916 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
24917 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
24918 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
24919 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
24920 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
24924 { echo "$as_me:$LINENO: checking for " >&5
24925 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
24926 if test "${ac_cv_header_+set}" = set; then
24927 echo $ECHO_N "(cached) $ECHO_C" >&6
24929 ac_cv_header_=$ac_header_preproc
24931 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
24932 echo "${ECHO_T}$ac_cv_header_" >&6; }
24935 if test $ac_cv_header_ = yes; then
24936 TERMCAP_HEADER_FOUND=1
24938 TERMCAP_HEADER_FOUND=0
24944 if test "x${TERMCAP_HEADER_FOUND}" = "x0" ; then
24945 if test ! -z "${TERMCAP_MANDATORY}" ;
24948 echo " *** It appears that you do not have the termcap development package installed."
24949 echo " *** Please install it to include ${TERMCAP_DESCRIP} support, or re-run configure"
24950 echo " *** without explicitly specifying --with-${TERMCAP_OPTION}"
24959 cat >>confdefs.h <<_ACEOF
24960 #define HAVE_TERMCAP 1
24964 elif test ! -z "${TERMCAP_MANDATORY}";
24967 echo "*** The ${TERMCAP_DESCRIP} installation on this system appears to be broken."
24968 echo "*** Either correct the installation, or run configure"
24969 echo "*** without explicitly specifying --with-${TERMCAP_OPTION}"
24976 if test "${USE_TINFO}" != "no"; then
24978 if test "x${TINFO_DIR}" != "x"; then
24979 if test -d ${TINFO_DIR}/lib; then
24980 pbxlibdir="-L${TINFO_DIR}/lib"
24982 pbxlibdir="-L${TINFO_DIR}"
24985 { echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
24986 echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6; }
24987 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
24988 echo $ECHO_N "(cached) $ECHO_C" >&6
24990 ac_check_lib_save_LIBS=$LIBS
24991 LIBS="-ltinfo ${pbxlibdir} $LIBS"
24992 cat >conftest.$ac_ext <<_ACEOF
24995 cat confdefs.h >>conftest.$ac_ext
24996 cat >>conftest.$ac_ext <<_ACEOF
24997 /* end confdefs.h. */
24999 /* Override any GCC internal prototype to avoid an error.
25000 Use char because int might match the return type of a GCC
25001 builtin and then its argument prototype would still apply. */
25014 rm -f conftest.$ac_objext conftest$ac_exeext
25015 if { (ac_try="$ac_link"
25016 case "(($ac_try" in
25017 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25018 *) ac_try_echo
=$ac_try;;
25020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25021 (eval "$ac_link") 2>conftest.er1
25023 grep -v '^ *+' conftest.er1
>conftest.err
25025 cat conftest.err
>&5
25026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25027 (exit $ac_status); } &&
25028 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25029 { (case "(($ac_try" in
25030 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25031 *) ac_try_echo=$ac_try;;
25033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25034 (eval "$ac_try") 2>&5
25036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25037 (exit $ac_status); }; } &&
25038 { ac_try='test -s conftest$ac_exeext'
25039 { (case "(($ac_try" in
25040 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25041 *) ac_try_echo
=$ac_try;;
25043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25044 (eval "$ac_try") 2>&5
25046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25047 (exit $ac_status); }; }; then
25048 ac_cv_lib_tinfo_tgetent
=yes
25050 echo "$as_me: failed program was:" >&5
25051 sed 's/^/| /' conftest.
$ac_ext >&5
25053 ac_cv_lib_tinfo_tgetent
=no
25056 rm -f conftest.err conftest.
$ac_objext \
25057 conftest
$ac_exeext conftest.
$ac_ext
25058 LIBS
=$ac_check_lib_save_LIBS
25060 { echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
25061 echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6; }
25062 if test $ac_cv_lib_tinfo_tgetent = yes; then
25063 AST_TINFO_FOUND
=yes
25069 if test "${AST_TINFO_FOUND}" = "yes"; then
25070 TINFO_LIB
="-ltinfo "
25071 TINFO_HEADER_FOUND
="1"
25072 if test "x${TINFO_DIR}" != "x"; then
25073 TINFO_LIB
="${pbxlibdir} ${TINFO_LIB}"
25074 TINFO_INCLUDE
="-I${TINFO_DIR}/include"
25075 if test "x" != "x" ; then
25076 as_ac_Header
=`echo "ac_cv_header_${TINFO_DIR}/include/" | $as_tr_sh`
25077 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25078 { echo "$as_me:$LINENO: checking for ${TINFO_DIR}/include/" >&5
25079 echo $ECHO_N "checking for ${TINFO_DIR}/include/... $ECHO_C" >&6; }
25080 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25081 echo $ECHO_N "(cached) $ECHO_C" >&6
25083 ac_res
=`eval echo '${'$as_ac_Header'}'`
25084 { echo "$as_me:$LINENO: result: $ac_res" >&5
25085 echo "${ECHO_T}$ac_res" >&6; }
25087 # Is the header compilable?
25088 { echo "$as_me:$LINENO: checking ${TINFO_DIR}/include/ usability" >&5
25089 echo $ECHO_N "checking ${TINFO_DIR}/include/ usability... $ECHO_C" >&6; }
25090 cat >conftest.
$ac_ext <<_ACEOF
25093 cat confdefs.h
>>conftest.
$ac_ext
25094 cat >>conftest.
$ac_ext <<_ACEOF
25095 /* end confdefs.h. */
25096 $ac_includes_default
25097 #include <${TINFO_DIR}/include/>
25099 rm -f conftest.
$ac_objext
25100 if { (ac_try
="$ac_compile"
25101 case "(($ac_try" in
25102 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25103 *) ac_try_echo=$ac_try;;
25105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25106 (eval "$ac_compile") 2>conftest.er1
25108 grep -v '^ *+' conftest.er1 >conftest.err
25110 cat conftest.err >&5
25111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25112 (exit $ac_status); } &&
25113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25114 { (case "(($ac_try" in
25115 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25116 *) ac_try_echo
=$ac_try;;
25118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25119 (eval "$ac_try") 2>&5
25121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25122 (exit $ac_status); }; } &&
25123 { ac_try
='test -s conftest.$ac_objext'
25124 { (case "(($ac_try" in
25125 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25126 *) ac_try_echo=$ac_try;;
25128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25129 (eval "$ac_try") 2>&5
25131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25132 (exit $ac_status); }; }; then
25133 ac_header_compiler=yes
25135 echo "$as_me: failed program was:" >&5
25136 sed 's/^/| /' conftest.$ac_ext >&5
25138 ac_header_compiler=no
25141 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25142 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25143 echo "${ECHO_T}$ac_header_compiler" >&6; }
25145 # Is the header present?
25146 { echo "$as_me:$LINENO: checking ${TINFO_DIR}/include/ presence" >&5
25147 echo $ECHO_N "checking ${TINFO_DIR}/include/ presence... $ECHO_C" >&6; }
25148 cat >conftest.$ac_ext <<_ACEOF
25151 cat confdefs.h >>conftest.$ac_ext
25152 cat >>conftest.$ac_ext <<_ACEOF
25153 /* end confdefs.h. */
25154 #include <${TINFO_DIR}/include/>
25156 if { (ac_try="$ac_cpp conftest.$ac_ext"
25157 case "(($ac_try" in
25158 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25159 *) ac_try_echo
=$ac_try;;
25161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25162 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25164 grep -v '^ *+' conftest.er1
>conftest.err
25166 cat conftest.err
>&5
25167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25168 (exit $ac_status); } >/dev
/null
; then
25169 if test -s conftest.err
; then
25170 ac_cpp_err
=$ac_c_preproc_warn_flag
25171 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
25178 if test -z "$ac_cpp_err"; then
25179 ac_header_preproc
=yes
25181 echo "$as_me: failed program was:" >&5
25182 sed 's/^/| /' conftest.
$ac_ext >&5
25184 ac_header_preproc
=no
25187 rm -f conftest.err conftest.
$ac_ext
25188 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25189 echo "${ECHO_T}$ac_header_preproc" >&6; }
25191 # So? What about this header?
25192 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25194 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&5
25195 echo "$as_me: WARNING: ${TINFO_DIR}/include/: accepted by the compiler, rejected by the preprocessor!" >&2;}
25196 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: proceeding with the compiler's result" >&5
25197 echo "$as_me: WARNING: ${TINFO_DIR}/include/: proceeding with the compiler's result" >&2;}
25198 ac_header_preproc
=yes
25201 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: present but cannot be compiled" >&5
25202 echo "$as_me: WARNING: ${TINFO_DIR}/include/: present but cannot be compiled" >&2;}
25203 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: check for missing prerequisite headers?" >&5
25204 echo "$as_me: WARNING: ${TINFO_DIR}/include/: check for missing prerequisite headers?" >&2;}
25205 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: see the Autoconf documentation" >&5
25206 echo "$as_me: WARNING: ${TINFO_DIR}/include/: see the Autoconf documentation" >&2;}
25207 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&5
25208 echo "$as_me: WARNING: ${TINFO_DIR}/include/: section \"Present But Cannot Be Compiled\"" >&2;}
25209 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: proceeding with the preprocessor's result" >&5
25210 echo "$as_me: WARNING: ${TINFO_DIR}/include/: proceeding with the preprocessor's result" >&2;}
25211 { echo "$as_me:$LINENO: WARNING: ${TINFO_DIR}/include/: in the future, the compiler will take precedence" >&5
25212 echo "$as_me: WARNING: ${TINFO_DIR}/include/: in the future, the compiler will take precedence" >&2;}
25216 { echo "$as_me:$LINENO: checking for ${TINFO_DIR}/include/" >&5
25217 echo $ECHO_N "checking for ${TINFO_DIR}/include/... $ECHO_C" >&6; }
25218 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25219 echo $ECHO_N "(cached) $ECHO_C" >&6
25221 eval "$as_ac_Header=\$ac_header_preproc"
25223 ac_res
=`eval echo '${'$as_ac_Header'}'`
25224 { echo "$as_me:$LINENO: result: $ac_res" >&5
25225 echo "${ECHO_T}$ac_res" >&6; }
25228 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25229 TINFO_HEADER_FOUND
=1
25231 TINFO_HEADER_FOUND
=0
25237 if test "x" != "x" ; then
25238 if test "${ac_cv_header_+set}" = set; then
25239 { echo "$as_me:$LINENO: checking for " >&5
25240 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
25241 if test "${ac_cv_header_+set}" = set; then
25242 echo $ECHO_N "(cached) $ECHO_C" >&6
25244 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
25245 echo "${ECHO_T}$ac_cv_header_" >&6; }
25247 # Is the header compilable?
25248 { echo "$as_me:$LINENO: checking usability" >&5
25249 echo $ECHO_N "checking usability... $ECHO_C" >&6; }
25250 cat >conftest.
$ac_ext <<_ACEOF
25253 cat confdefs.h
>>conftest.
$ac_ext
25254 cat >>conftest.
$ac_ext <<_ACEOF
25255 /* end confdefs.h. */
25256 $ac_includes_default
25259 rm -f conftest.
$ac_objext
25260 if { (ac_try
="$ac_compile"
25261 case "(($ac_try" in
25262 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25263 *) ac_try_echo=$ac_try;;
25265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25266 (eval "$ac_compile") 2>conftest.er1
25268 grep -v '^ *+' conftest.er1 >conftest.err
25270 cat conftest.err >&5
25271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25272 (exit $ac_status); } &&
25273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25274 { (case "(($ac_try" in
25275 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25276 *) ac_try_echo
=$ac_try;;
25278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25279 (eval "$ac_try") 2>&5
25281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25282 (exit $ac_status); }; } &&
25283 { ac_try
='test -s conftest.$ac_objext'
25284 { (case "(($ac_try" in
25285 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25286 *) ac_try_echo=$ac_try;;
25288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25289 (eval "$ac_try") 2>&5
25291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25292 (exit $ac_status); }; }; then
25293 ac_header_compiler=yes
25295 echo "$as_me: failed program was:" >&5
25296 sed 's/^/| /' conftest.$ac_ext >&5
25298 ac_header_compiler=no
25301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25302 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25303 echo "${ECHO_T}$ac_header_compiler" >&6; }
25305 # Is the header present?
25306 { echo "$as_me:$LINENO: checking presence" >&5
25307 echo $ECHO_N "checking presence... $ECHO_C" >&6; }
25308 cat >conftest.$ac_ext <<_ACEOF
25311 cat confdefs.h >>conftest.$ac_ext
25312 cat >>conftest.$ac_ext <<_ACEOF
25313 /* end confdefs.h. */
25316 if { (ac_try="$ac_cpp conftest.$ac_ext"
25317 case "(($ac_try" in
25318 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25319 *) ac_try_echo
=$ac_try;;
25321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25322 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25324 grep -v '^ *+' conftest.er1
>conftest.err
25326 cat conftest.err
>&5
25327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25328 (exit $ac_status); } >/dev
/null
; then
25329 if test -s conftest.err
; then
25330 ac_cpp_err
=$ac_c_preproc_warn_flag
25331 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
25338 if test -z "$ac_cpp_err"; then
25339 ac_header_preproc
=yes
25341 echo "$as_me: failed program was:" >&5
25342 sed 's/^/| /' conftest.
$ac_ext >&5
25344 ac_header_preproc
=no
25347 rm -f conftest.err conftest.
$ac_ext
25348 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25349 echo "${ECHO_T}$ac_header_preproc" >&6; }
25351 # So? What about this header?
25352 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25354 { echo "$as_me:$LINENO: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&5
25355 echo "$as_me: WARNING: : accepted by the compiler, rejected by the preprocessor!" >&2;}
25356 { echo "$as_me:$LINENO: WARNING: : proceeding with the compiler's result" >&5
25357 echo "$as_me: WARNING: : proceeding with the compiler's result" >&2;}
25358 ac_header_preproc
=yes
25361 { echo "$as_me:$LINENO: WARNING: : present but cannot be compiled" >&5
25362 echo "$as_me: WARNING: : present but cannot be compiled" >&2;}
25363 { echo "$as_me:$LINENO: WARNING: : check for missing prerequisite headers?" >&5
25364 echo "$as_me: WARNING: : check for missing prerequisite headers?" >&2;}
25365 { echo "$as_me:$LINENO: WARNING: : see the Autoconf documentation" >&5
25366 echo "$as_me: WARNING: : see the Autoconf documentation" >&2;}
25367 { echo "$as_me:$LINENO: WARNING: : section \"Present But Cannot Be Compiled\"" >&5
25368 echo "$as_me: WARNING: : section \"Present But Cannot Be Compiled\"" >&2;}
25369 { echo "$as_me:$LINENO: WARNING: : proceeding with the preprocessor's result" >&5
25370 echo "$as_me: WARNING: : proceeding with the preprocessor's result" >&2;}
25371 { echo "$as_me:$LINENO: WARNING: : in the future, the compiler will take precedence" >&5
25372 echo "$as_me: WARNING: : in the future, the compiler will take precedence" >&2;}
25376 { echo "$as_me:$LINENO: checking for " >&5
25377 echo $ECHO_N "checking for ... $ECHO_C" >&6; }
25378 if test "${ac_cv_header_+set}" = set; then
25379 echo $ECHO_N "(cached) $ECHO_C" >&6
25381 ac_cv_header_
=$ac_header_preproc
25383 { echo "$as_me:$LINENO: result: $ac_cv_header_" >&5
25384 echo "${ECHO_T}$ac_cv_header_" >&6; }
25387 if test $ac_cv_header_ = yes; then
25388 TINFO_HEADER_FOUND
=1
25390 TINFO_HEADER_FOUND
=0
25396 if test "x${TINFO_HEADER_FOUND}" = "x0" ; then
25397 if test ! -z "${TINFO_MANDATORY}" ;
25400 echo " *** It appears that you do not have the tinfo development package installed."
25401 echo " *** Please install it to include ${TINFO_DESCRIP} support, or re-run configure"
25402 echo " *** without explicitly specifying --with-${TINFO_OPTION}"
25411 cat >>confdefs.h
<<_ACEOF
25412 #define HAVE_TINFO 1
25416 elif test ! -z "${TINFO_MANDATORY}";
25419 echo "*** The ${TINFO_DESCRIP} installation on this system appears to be broken."
25420 echo "*** Either correct the installation, or run configure"
25421 echo "*** without explicitly specifying --with-${TINFO_OPTION}"
25427 if test "${PBX_OSTYPE}" != "Linux" ; then
25428 tonezone_extra
="-lm"
25432 if test "${USE_TONEZONE}" != "no"; then
25434 if test "x${TONEZONE_DIR}" != "x"; then
25435 if test -d ${TONEZONE_DIR}/lib
; then
25436 pbxlibdir
="-L${TONEZONE_DIR}/lib"
25438 pbxlibdir
="-L${TONEZONE_DIR}"
25441 { echo "$as_me:$LINENO: checking for tone_zone_find in -ltonezone" >&5
25442 echo $ECHO_N "checking for tone_zone_find in -ltonezone... $ECHO_C" >&6; }
25443 if test "${ac_cv_lib_tonezone_tone_zone_find+set}" = set; then
25444 echo $ECHO_N "(cached) $ECHO_C" >&6
25446 ac_check_lib_save_LIBS
=$LIBS
25447 LIBS
="-ltonezone ${pbxlibdir} ${tonezone_extra} $LIBS"
25448 cat >conftest.
$ac_ext <<_ACEOF
25451 cat confdefs.h
>>conftest.
$ac_ext
25452 cat >>conftest.
$ac_ext <<_ACEOF
25453 /* end confdefs.h. */
25455 /* Override any GCC internal prototype to avoid an error.
25456 Use char because int might match the return type of a GCC
25457 builtin and then its argument prototype would still apply. */
25461 char tone_zone_find ();
25465 return tone_zone_find ();
25470 rm -f conftest.
$ac_objext conftest
$ac_exeext
25471 if { (ac_try
="$ac_link"
25472 case "(($ac_try" in
25473 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25474 *) ac_try_echo=$ac_try;;
25476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25477 (eval "$ac_link") 2>conftest.er1
25479 grep -v '^ *+' conftest.er1 >conftest.err
25481 cat conftest.err >&5
25482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25483 (exit $ac_status); } &&
25484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25485 { (case "(($ac_try" in
25486 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25487 *) ac_try_echo
=$ac_try;;
25489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25490 (eval "$ac_try") 2>&5
25492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25493 (exit $ac_status); }; } &&
25494 { ac_try
='test -s conftest$ac_exeext'
25495 { (case "(($ac_try" in
25496 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25497 *) ac_try_echo=$ac_try;;
25499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25500 (eval "$ac_try") 2>&5
25502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25503 (exit $ac_status); }; }; then
25504 ac_cv_lib_tonezone_tone_zone_find=yes
25506 echo "$as_me: failed program was:" >&5
25507 sed 's/^/| /' conftest.$ac_ext >&5
25509 ac_cv_lib_tonezone_tone_zone_find=no
25512 rm -f conftest.err conftest.$ac_objext \
25513 conftest$ac_exeext conftest.$ac_ext
25514 LIBS=$ac_check_lib_save_LIBS
25516 { echo "$as_me:$LINENO: result: $ac_cv_lib_tonezone_tone_zone_find" >&5
25517 echo "${ECHO_T}$ac_cv_lib_tonezone_tone_zone_find" >&6; }
25518 if test $ac_cv_lib_tonezone_tone_zone_find = yes; then
25519 AST_TONEZONE_FOUND=yes
25521 AST_TONEZONE_FOUND=no
25525 if test "${AST_TONEZONE_FOUND}" = "yes"; then
25526 TONEZONE_LIB="-ltonezone ${tonezone_extra}"
25527 TONEZONE_HEADER_FOUND="1"
25528 if test "x${TONEZONE_DIR}" != "x"; then
25529 TONEZONE_LIB="${pbxlibdir} ${TONEZONE_LIB}"
25530 TONEZONE_INCLUDE="-I${TONEZONE_DIR}/include"
25531 if test "xzaptel/tonezone.h" != "x" ; then
25532 as_ac_Header=`echo "ac_cv_header_${TONEZONE_DIR}/include/zaptel/tonezone.h" |
$as_tr_sh`
25533 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25534 { echo "$as_me:$LINENO: checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h" >&5
25535 echo $ECHO_N "checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h... $ECHO_C" >&6; }
25536 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25537 echo $ECHO_N "(cached) $ECHO_C" >&6
25539 ac_res=`eval echo '${'$as_ac_Header'}'`
25540 { echo "$as_me:$LINENO: result: $ac_res" >&5
25541 echo "${ECHO_T}$ac_res" >&6; }
25543 # Is the header compilable?
25544 { echo "$as_me:$LINENO: checking ${TONEZONE_DIR}/include/zaptel/tonezone.h usability" >&5
25545 echo $ECHO_N "checking ${TONEZONE_DIR}/include/zaptel/tonezone.h usability... $ECHO_C" >&6; }
25546 cat >conftest.$ac_ext <<_ACEOF
25549 cat confdefs.h >>conftest.$ac_ext
25550 cat >>conftest.$ac_ext <<_ACEOF
25551 /* end confdefs.h. */
25552 $ac_includes_default
25553 #include <${TONEZONE_DIR}/include/zaptel/tonezone.h>
25555 rm -f conftest.$ac_objext
25556 if { (ac_try="$ac_compile"
25557 case "(($ac_try" in
25558 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25559 *) ac_try_echo
=$ac_try;;
25561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25562 (eval "$ac_compile") 2>conftest.er1
25564 grep -v '^ *+' conftest.er1
>conftest.err
25566 cat conftest.err
>&5
25567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25568 (exit $ac_status); } &&
25569 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25570 { (case "(($ac_try" in
25571 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25572 *) ac_try_echo=$ac_try;;
25574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25575 (eval "$ac_try") 2>&5
25577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25578 (exit $ac_status); }; } &&
25579 { ac_try='test -s conftest.$ac_objext'
25580 { (case "(($ac_try" in
25581 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25582 *) ac_try_echo
=$ac_try;;
25584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25585 (eval "$ac_try") 2>&5
25587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25588 (exit $ac_status); }; }; then
25589 ac_header_compiler
=yes
25591 echo "$as_me: failed program was:" >&5
25592 sed 's/^/| /' conftest.
$ac_ext >&5
25594 ac_header_compiler
=no
25597 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
25598 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25599 echo "${ECHO_T}$ac_header_compiler" >&6; }
25601 # Is the header present?
25602 { echo "$as_me:$LINENO: checking ${TONEZONE_DIR}/include/zaptel/tonezone.h presence" >&5
25603 echo $ECHO_N "checking ${TONEZONE_DIR}/include/zaptel/tonezone.h presence... $ECHO_C" >&6; }
25604 cat >conftest.
$ac_ext <<_ACEOF
25607 cat confdefs.h
>>conftest.
$ac_ext
25608 cat >>conftest.
$ac_ext <<_ACEOF
25609 /* end confdefs.h. */
25610 #include <${TONEZONE_DIR}/include/zaptel/tonezone.h>
25612 if { (ac_try
="$ac_cpp conftest.$ac_ext"
25613 case "(($ac_try" in
25614 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25615 *) ac_try_echo=$ac_try;;
25617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25618 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25620 grep -v '^ *+' conftest.er1 >conftest.err
25622 cat conftest.err >&5
25623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25624 (exit $ac_status); } >/dev/null; then
25625 if test -s conftest.err; then
25626 ac_cpp_err=$ac_c_preproc_warn_flag
25627 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25634 if test -z "$ac_cpp_err"; then
25635 ac_header_preproc=yes
25637 echo "$as_me: failed program was:" >&5
25638 sed 's/^/| /' conftest.$ac_ext >&5
25640 ac_header_preproc=no
25643 rm -f conftest.err conftest.$ac_ext
25644 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25645 echo "${ECHO_T}$ac_header_preproc" >&6; }
25647 # So? What about this header?
25648 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25650 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&5
25651 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25652 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the compiler's result" >&5
25653 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the compiler's result" >&2;}
25654 ac_header_preproc=yes
25657 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: present but cannot be compiled" >&5
25658 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: present but cannot be compiled" >&2;}
25659 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: check for missing prerequisite headers?" >&5
25660 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: check for missing prerequisite headers?" >&2;}
25661 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: see the Autoconf documentation" >&5
25662 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: see the Autoconf documentation" >&2;}
25663 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&5
25664 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&2;}
25665 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the preprocessor's result" >&5
25666 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: proceeding with the preprocessor's result" >&2;}
25667 { echo "$as_me:$LINENO: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: in the future, the compiler will take precedence" >&5
25668 echo "$as_me: WARNING: ${TONEZONE_DIR}/include/zaptel/tonezone.h: in the future, the compiler will take precedence" >&2;}
25672 { echo "$as_me:$LINENO: checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h" >&5
25673 echo $ECHO_N "checking for ${TONEZONE_DIR}/include/zaptel/tonezone.h... $ECHO_C" >&6; }
25674 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25675 echo $ECHO_N "(cached) $ECHO_C" >&6
25677 eval "$as_ac_Header=\$ac_header_preproc"
25679 ac_res=`eval echo '${'$as_ac_Header'}'`
25680 { echo "$as_me:$LINENO: result: $ac_res" >&5
25681 echo "${ECHO_T}$ac_res" >&6; }
25684 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25685 TONEZONE_HEADER_FOUND=1
25687 TONEZONE_HEADER_FOUND=0
25693 if test "xzaptel/tonezone.h" != "x" ; then
25694 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
25695 { echo "$as_me:$LINENO: checking for zaptel/tonezone.h" >&5
25696 echo $ECHO_N "checking for zaptel/tonezone.h... $ECHO_C" >&6; }
25697 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
25698 echo $ECHO_N "(cached) $ECHO_C" >&6
25700 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_tonezone_h" >&5
25701 echo "${ECHO_T}$ac_cv_header_zaptel_tonezone_h" >&6; }
25703 # Is the header compilable?
25704 { echo "$as_me:$LINENO: checking zaptel/tonezone.h usability" >&5
25705 echo $ECHO_N "checking zaptel/tonezone.h usability... $ECHO_C" >&6; }
25706 cat >conftest.$ac_ext <<_ACEOF
25709 cat confdefs.h >>conftest.$ac_ext
25710 cat >>conftest.$ac_ext <<_ACEOF
25711 /* end confdefs.h. */
25712 $ac_includes_default
25713 #include <zaptel/tonezone.h>
25715 rm -f conftest.$ac_objext
25716 if { (ac_try="$ac_compile"
25717 case "(($ac_try" in
25718 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25719 *) ac_try_echo
=$ac_try;;
25721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25722 (eval "$ac_compile") 2>conftest.er1
25724 grep -v '^ *+' conftest.er1
>conftest.err
25726 cat conftest.err
>&5
25727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25728 (exit $ac_status); } &&
25729 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25730 { (case "(($ac_try" in
25731 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25732 *) ac_try_echo=$ac_try;;
25734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25735 (eval "$ac_try") 2>&5
25737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25738 (exit $ac_status); }; } &&
25739 { ac_try='test -s conftest.$ac_objext'
25740 { (case "(($ac_try" in
25741 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25742 *) ac_try_echo
=$ac_try;;
25744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25745 (eval "$ac_try") 2>&5
25747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25748 (exit $ac_status); }; }; then
25749 ac_header_compiler
=yes
25751 echo "$as_me: failed program was:" >&5
25752 sed 's/^/| /' conftest.
$ac_ext >&5
25754 ac_header_compiler
=no
25757 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
25758 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25759 echo "${ECHO_T}$ac_header_compiler" >&6; }
25761 # Is the header present?
25762 { echo "$as_me:$LINENO: checking zaptel/tonezone.h presence" >&5
25763 echo $ECHO_N "checking zaptel/tonezone.h presence... $ECHO_C" >&6; }
25764 cat >conftest.
$ac_ext <<_ACEOF
25767 cat confdefs.h
>>conftest.
$ac_ext
25768 cat >>conftest.
$ac_ext <<_ACEOF
25769 /* end confdefs.h. */
25770 #include <zaptel/tonezone.h>
25772 if { (ac_try
="$ac_cpp conftest.$ac_ext"
25773 case "(($ac_try" in
25774 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25775 *) ac_try_echo=$ac_try;;
25777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25778 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25780 grep -v '^ *+' conftest.er1 >conftest.err
25782 cat conftest.err >&5
25783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25784 (exit $ac_status); } >/dev/null; then
25785 if test -s conftest.err; then
25786 ac_cpp_err=$ac_c_preproc_warn_flag
25787 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25794 if test -z "$ac_cpp_err"; then
25795 ac_header_preproc=yes
25797 echo "$as_me: failed program was:" >&5
25798 sed 's/^/| /' conftest.$ac_ext >&5
25800 ac_header_preproc=no
25803 rm -f conftest.err conftest.$ac_ext
25804 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25805 echo "${ECHO_T}$ac_header_preproc" >&6; }
25807 # So? What about this header?
25808 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25810 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&5
25811 echo "$as_me: WARNING: zaptel/tonezone.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25812 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: proceeding with the compiler's result" >&5
25813 echo "$as_me: WARNING: zaptel/tonezone.h: proceeding with the compiler's result" >&2;}
25814 ac_header_preproc=yes
25817 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: present but cannot be compiled" >&5
25818 echo "$as_me: WARNING: zaptel/tonezone.h: present but cannot be compiled" >&2;}
25819 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: check for missing prerequisite headers?" >&5
25820 echo "$as_me: WARNING: zaptel/tonezone.h: check for missing prerequisite headers?" >&2;}
25821 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: see the Autoconf documentation" >&5
25822 echo "$as_me: WARNING: zaptel/tonezone.h: see the Autoconf documentation" >&2;}
25823 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&5
25824 echo "$as_me: WARNING: zaptel/tonezone.h: section \"Present But Cannot Be Compiled\"" >&2;}
25825 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: proceeding with the preprocessor's result" >&5
25826 echo "$as_me: WARNING: zaptel/tonezone.h: proceeding with the preprocessor's result" >&2;}
25827 { echo "$as_me:$LINENO: WARNING: zaptel/tonezone.h: in the future, the compiler will take precedence" >&5
25828 echo "$as_me: WARNING: zaptel/tonezone.h: in the future, the compiler will take precedence" >&2;}
25832 { echo "$as_me:$LINENO: checking for zaptel/tonezone.h" >&5
25833 echo $ECHO_N "checking for zaptel/tonezone.h... $ECHO_C" >&6; }
25834 if test "${ac_cv_header_zaptel_tonezone_h+set}" = set; then
25835 echo $ECHO_N "(cached) $ECHO_C" >&6
25837 ac_cv_header_zaptel_tonezone_h=$ac_header_preproc
25839 { echo "$as_me:$LINENO: result: $ac_cv_header_zaptel_tonezone_h" >&5
25840 echo "${ECHO_T}$ac_cv_header_zaptel_tonezone_h" >&6; }
25843 if test $ac_cv_header_zaptel_tonezone_h = yes; then
25844 TONEZONE_HEADER_FOUND=1
25846 TONEZONE_HEADER_FOUND=0
25852 if test "x${TONEZONE_HEADER_FOUND}" = "x0" ; then
25853 if test ! -z "${TONEZONE_MANDATORY}" ;
25856 echo " *** It appears that you do not have the tonezone development package installed."
25857 echo " *** Please install it to include ${TONEZONE_DESCRIP} support, or re-run configure"
25858 echo " *** without explicitly specifying --with-${TONEZONE_OPTION}"
25862 TONEZONE_INCLUDE=""
25867 cat >>confdefs.h <<_ACEOF
25868 #define HAVE_TONEZONE 1
25872 elif test ! -z "${TONEZONE_MANDATORY}";
25875 echo "*** The ${TONEZONE_DESCRIP} installation on this system appears to be broken."
25876 echo "*** Either correct the installation, or run configure"
25877 echo "*** without explicitly specifying --with-${TONEZONE_OPTION}"
25884 if test "${USE_VORBIS}" != "no"; then
25886 if test "x${VORBIS_DIR}" != "x"; then
25887 if test -d ${VORBIS_DIR}/lib; then
25888 pbxlibdir="-L${VORBIS_DIR}/lib"
25890 pbxlibdir="-L${VORBIS_DIR}"
25893 { echo "$as_me:$LINENO: checking for vorbis_info_init in -lvorbis" >&5
25894 echo $ECHO_N "checking for vorbis_info_init in -lvorbis... $ECHO_C" >&6; }
25895 if test "${ac_cv_lib_vorbis_vorbis_info_init+set}" = set; then
25896 echo $ECHO_N "(cached) $ECHO_C" >&6
25898 ac_check_lib_save_LIBS=$LIBS
25899 LIBS="-lvorbis ${pbxlibdir} -lm -lvorbisenc $LIBS"
25900 cat >conftest.$ac_ext <<_ACEOF
25903 cat confdefs.h >>conftest.$ac_ext
25904 cat >>conftest.$ac_ext <<_ACEOF
25905 /* end confdefs.h. */
25907 /* Override any GCC internal prototype to avoid an error.
25908 Use char because int might match the return type of a GCC
25909 builtin and then its argument prototype would still apply. */
25913 char vorbis_info_init ();
25917 return vorbis_info_init ();
25922 rm -f conftest.$ac_objext conftest$ac_exeext
25923 if { (ac_try="$ac_link"
25924 case "(($ac_try" in
25925 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25926 *) ac_try_echo
=$ac_try;;
25928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25929 (eval "$ac_link") 2>conftest.er1
25931 grep -v '^ *+' conftest.er1
>conftest.err
25933 cat conftest.err
>&5
25934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25935 (exit $ac_status); } &&
25936 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25937 { (case "(($ac_try" in
25938 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25939 *) ac_try_echo=$ac_try;;
25941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25942 (eval "$ac_try") 2>&5
25944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25945 (exit $ac_status); }; } &&
25946 { ac_try='test -s conftest$ac_exeext'
25947 { (case "(($ac_try" in
25948 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25949 *) ac_try_echo
=$ac_try;;
25951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25952 (eval "$ac_try") 2>&5
25954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25955 (exit $ac_status); }; }; then
25956 ac_cv_lib_vorbis_vorbis_info_init
=yes
25958 echo "$as_me: failed program was:" >&5
25959 sed 's/^/| /' conftest.
$ac_ext >&5
25961 ac_cv_lib_vorbis_vorbis_info_init
=no
25964 rm -f conftest.err conftest.
$ac_objext \
25965 conftest
$ac_exeext conftest.
$ac_ext
25966 LIBS
=$ac_check_lib_save_LIBS
25968 { echo "$as_me:$LINENO: result: $ac_cv_lib_vorbis_vorbis_info_init" >&5
25969 echo "${ECHO_T}$ac_cv_lib_vorbis_vorbis_info_init" >&6; }
25970 if test $ac_cv_lib_vorbis_vorbis_info_init = yes; then
25971 AST_VORBIS_FOUND
=yes
25973 AST_VORBIS_FOUND
=no
25977 if test "${AST_VORBIS_FOUND}" = "yes"; then
25978 VORBIS_LIB
="-lvorbis -lm -lvorbisenc"
25979 VORBIS_HEADER_FOUND
="1"
25980 if test "x${VORBIS_DIR}" != "x"; then
25981 VORBIS_LIB
="${pbxlibdir} ${VORBIS_LIB}"
25982 VORBIS_INCLUDE
="-I${VORBIS_DIR}/include"
25983 if test "xvorbis/codec.h" != "x" ; then
25984 as_ac_Header
=`echo "ac_cv_header_${VORBIS_DIR}/include/vorbis/codec.h" | $as_tr_sh`
25985 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25986 { echo "$as_me:$LINENO: checking for ${VORBIS_DIR}/include/vorbis/codec.h" >&5
25987 echo $ECHO_N "checking for ${VORBIS_DIR}/include/vorbis/codec.h... $ECHO_C" >&6; }
25988 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25989 echo $ECHO_N "(cached) $ECHO_C" >&6
25991 ac_res
=`eval echo '${'$as_ac_Header'}'`
25992 { echo "$as_me:$LINENO: result: $ac_res" >&5
25993 echo "${ECHO_T}$ac_res" >&6; }
25995 # Is the header compilable?
25996 { echo "$as_me:$LINENO: checking ${VORBIS_DIR}/include/vorbis/codec.h usability" >&5
25997 echo $ECHO_N "checking ${VORBIS_DIR}/include/vorbis/codec.h usability... $ECHO_C" >&6; }
25998 cat >conftest.
$ac_ext <<_ACEOF
26001 cat confdefs.h
>>conftest.
$ac_ext
26002 cat >>conftest.
$ac_ext <<_ACEOF
26003 /* end confdefs.h. */
26004 $ac_includes_default
26005 #include <${VORBIS_DIR}/include/vorbis/codec.h>
26007 rm -f conftest.
$ac_objext
26008 if { (ac_try
="$ac_compile"
26009 case "(($ac_try" in
26010 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26011 *) ac_try_echo=$ac_try;;
26013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26014 (eval "$ac_compile") 2>conftest.er1
26016 grep -v '^ *+' conftest.er1 >conftest.err
26018 cat conftest.err >&5
26019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26020 (exit $ac_status); } &&
26021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26022 { (case "(($ac_try" in
26023 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26024 *) ac_try_echo
=$ac_try;;
26026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26027 (eval "$ac_try") 2>&5
26029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26030 (exit $ac_status); }; } &&
26031 { ac_try
='test -s conftest.$ac_objext'
26032 { (case "(($ac_try" in
26033 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26034 *) ac_try_echo=$ac_try;;
26036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26037 (eval "$ac_try") 2>&5
26039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26040 (exit $ac_status); }; }; then
26041 ac_header_compiler=yes
26043 echo "$as_me: failed program was:" >&5
26044 sed 's/^/| /' conftest.$ac_ext >&5
26046 ac_header_compiler=no
26049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26050 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26051 echo "${ECHO_T}$ac_header_compiler" >&6; }
26053 # Is the header present?
26054 { echo "$as_me:$LINENO: checking ${VORBIS_DIR}/include/vorbis/codec.h presence" >&5
26055 echo $ECHO_N "checking ${VORBIS_DIR}/include/vorbis/codec.h presence... $ECHO_C" >&6; }
26056 cat >conftest.$ac_ext <<_ACEOF
26059 cat confdefs.h >>conftest.$ac_ext
26060 cat >>conftest.$ac_ext <<_ACEOF
26061 /* end confdefs.h. */
26062 #include <${VORBIS_DIR}/include/vorbis/codec.h>
26064 if { (ac_try="$ac_cpp conftest.$ac_ext"
26065 case "(($ac_try" in
26066 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26067 *) ac_try_echo
=$ac_try;;
26069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26070 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26072 grep -v '^ *+' conftest.er1
>conftest.err
26074 cat conftest.err
>&5
26075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26076 (exit $ac_status); } >/dev
/null
; then
26077 if test -s conftest.err
; then
26078 ac_cpp_err
=$ac_c_preproc_warn_flag
26079 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
26086 if test -z "$ac_cpp_err"; then
26087 ac_header_preproc
=yes
26089 echo "$as_me: failed program was:" >&5
26090 sed 's/^/| /' conftest.
$ac_ext >&5
26092 ac_header_preproc
=no
26095 rm -f conftest.err conftest.
$ac_ext
26096 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26097 echo "${ECHO_T}$ac_header_preproc" >&6; }
26099 # So? What about this header?
26100 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26102 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
26103 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26104 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the compiler's result" >&5
26105 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the compiler's result" >&2;}
26106 ac_header_preproc
=yes
26109 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: present but cannot be compiled" >&5
26110 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: present but cannot be compiled" >&2;}
26111 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: check for missing prerequisite headers?" >&5
26112 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: check for missing prerequisite headers?" >&2;}
26113 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: see the Autoconf documentation" >&5
26114 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: see the Autoconf documentation" >&2;}
26115 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
26116 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
26117 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the preprocessor's result" >&5
26118 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
26119 { echo "$as_me:$LINENO: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: in the future, the compiler will take precedence" >&5
26120 echo "$as_me: WARNING: ${VORBIS_DIR}/include/vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
26124 { echo "$as_me:$LINENO: checking for ${VORBIS_DIR}/include/vorbis/codec.h" >&5
26125 echo $ECHO_N "checking for ${VORBIS_DIR}/include/vorbis/codec.h... $ECHO_C" >&6; }
26126 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26127 echo $ECHO_N "(cached) $ECHO_C" >&6
26129 eval "$as_ac_Header=\$ac_header_preproc"
26131 ac_res
=`eval echo '${'$as_ac_Header'}'`
26132 { echo "$as_me:$LINENO: result: $ac_res" >&5
26133 echo "${ECHO_T}$ac_res" >&6; }
26136 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26137 VORBIS_HEADER_FOUND
=1
26139 VORBIS_HEADER_FOUND
=0
26145 if test "xvorbis/codec.h" != "x" ; then
26146 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
26147 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
26148 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
26149 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
26150 echo $ECHO_N "(cached) $ECHO_C" >&6
26152 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
26153 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
26155 # Is the header compilable?
26156 { echo "$as_me:$LINENO: checking vorbis/codec.h usability" >&5
26157 echo $ECHO_N "checking vorbis/codec.h usability... $ECHO_C" >&6; }
26158 cat >conftest.
$ac_ext <<_ACEOF
26161 cat confdefs.h
>>conftest.
$ac_ext
26162 cat >>conftest.
$ac_ext <<_ACEOF
26163 /* end confdefs.h. */
26164 $ac_includes_default
26165 #include <vorbis/codec.h>
26167 rm -f conftest.
$ac_objext
26168 if { (ac_try
="$ac_compile"
26169 case "(($ac_try" in
26170 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26171 *) ac_try_echo=$ac_try;;
26173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26174 (eval "$ac_compile") 2>conftest.er1
26176 grep -v '^ *+' conftest.er1 >conftest.err
26178 cat conftest.err >&5
26179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26180 (exit $ac_status); } &&
26181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26182 { (case "(($ac_try" in
26183 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26184 *) ac_try_echo
=$ac_try;;
26186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26187 (eval "$ac_try") 2>&5
26189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26190 (exit $ac_status); }; } &&
26191 { ac_try
='test -s conftest.$ac_objext'
26192 { (case "(($ac_try" in
26193 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26194 *) ac_try_echo=$ac_try;;
26196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26197 (eval "$ac_try") 2>&5
26199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26200 (exit $ac_status); }; }; then
26201 ac_header_compiler=yes
26203 echo "$as_me: failed program was:" >&5
26204 sed 's/^/| /' conftest.$ac_ext >&5
26206 ac_header_compiler=no
26209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26210 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26211 echo "${ECHO_T}$ac_header_compiler" >&6; }
26213 # Is the header present?
26214 { echo "$as_me:$LINENO: checking vorbis/codec.h presence" >&5
26215 echo $ECHO_N "checking vorbis/codec.h presence... $ECHO_C" >&6; }
26216 cat >conftest.$ac_ext <<_ACEOF
26219 cat confdefs.h >>conftest.$ac_ext
26220 cat >>conftest.$ac_ext <<_ACEOF
26221 /* end confdefs.h. */
26222 #include <vorbis/codec.h>
26224 if { (ac_try="$ac_cpp conftest.$ac_ext"
26225 case "(($ac_try" in
26226 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26227 *) ac_try_echo
=$ac_try;;
26229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26230 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26232 grep -v '^ *+' conftest.er1
>conftest.err
26234 cat conftest.err
>&5
26235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26236 (exit $ac_status); } >/dev
/null
; then
26237 if test -s conftest.err
; then
26238 ac_cpp_err
=$ac_c_preproc_warn_flag
26239 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
26246 if test -z "$ac_cpp_err"; then
26247 ac_header_preproc
=yes
26249 echo "$as_me: failed program was:" >&5
26250 sed 's/^/| /' conftest.
$ac_ext >&5
26252 ac_header_preproc
=no
26255 rm -f conftest.err conftest.
$ac_ext
26256 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26257 echo "${ECHO_T}$ac_header_preproc" >&6; }
26259 # So? What about this header?
26260 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26262 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&5
26263 echo "$as_me: WARNING: vorbis/codec.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26264 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&5
26265 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the compiler's result" >&2;}
26266 ac_header_preproc
=yes
26269 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: present but cannot be compiled" >&5
26270 echo "$as_me: WARNING: vorbis/codec.h: present but cannot be compiled" >&2;}
26271 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&5
26272 echo "$as_me: WARNING: vorbis/codec.h: check for missing prerequisite headers?" >&2;}
26273 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: see the Autoconf documentation" >&5
26274 echo "$as_me: WARNING: vorbis/codec.h: see the Autoconf documentation" >&2;}
26275 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&5
26276 echo "$as_me: WARNING: vorbis/codec.h: section \"Present But Cannot Be Compiled\"" >&2;}
26277 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&5
26278 echo "$as_me: WARNING: vorbis/codec.h: proceeding with the preprocessor's result" >&2;}
26279 { echo "$as_me:$LINENO: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&5
26280 echo "$as_me: WARNING: vorbis/codec.h: in the future, the compiler will take precedence" >&2;}
26284 { echo "$as_me:$LINENO: checking for vorbis/codec.h" >&5
26285 echo $ECHO_N "checking for vorbis/codec.h... $ECHO_C" >&6; }
26286 if test "${ac_cv_header_vorbis_codec_h+set}" = set; then
26287 echo $ECHO_N "(cached) $ECHO_C" >&6
26289 ac_cv_header_vorbis_codec_h
=$ac_header_preproc
26291 { echo "$as_me:$LINENO: result: $ac_cv_header_vorbis_codec_h" >&5
26292 echo "${ECHO_T}$ac_cv_header_vorbis_codec_h" >&6; }
26295 if test $ac_cv_header_vorbis_codec_h = yes; then
26296 VORBIS_HEADER_FOUND
=1
26298 VORBIS_HEADER_FOUND
=0
26304 if test "x${VORBIS_HEADER_FOUND}" = "x0" ; then
26305 if test ! -z "${VORBIS_MANDATORY}" ;
26308 echo " *** It appears that you do not have the vorbis development package installed."
26309 echo " *** Please install it to include ${VORBIS_DESCRIP} support, or re-run configure"
26310 echo " *** without explicitly specifying --with-${VORBIS_OPTION}"
26319 cat >>confdefs.h
<<_ACEOF
26320 #define HAVE_VORBIS 1
26324 elif test ! -z "${VORBIS_MANDATORY}";
26327 echo "*** The ${VORBIS_DESCRIP} installation on this system appears to be broken."
26328 echo "*** Either correct the installation, or run configure"
26329 echo "*** without explicitly specifying --with-${VORBIS_OPTION}"
26336 ac_cpp
='$CXXCPP $CPPFLAGS'
26337 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26338 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26339 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
26342 if test "${USE_VPB}" != "no"; then
26343 echo -n "checking for vpb_open in -lvpb... "
26344 saved_libs
="${LIBS}"
26345 saved_cppflags
="${CPPFLAGS}"
26346 if test "x${VPB_DIR}" != "x"; then
26347 if test -d ${VPB_DIR}/lib
; then
26348 vpblibdir
=${VPB_DIR}/lib
26350 vpblibdir
=${VPB_DIR}
26352 LIBS
="${LIBS} -L${vpblibdir}"
26353 CPPFLAGS
="${CPPFLAGS} -I${VPB_DIR}/include"
26355 LIBS
="${LIBS} -lvpb -lpthread"
26356 cat >conftest.
$ac_ext <<_ACEOF
26360 cat confdefs.h
>>conftest.
$ac_ext
26361 cat >>conftest.
$ac_ext <<_ACEOF
26362 /* end confdefs.h. */
26363 #include <vpbapi.h>
26367 int q = vpb_open(0,0);
26373 rm -f conftest.
$ac_objext conftest
$ac_exeext
26374 if { (ac_try
="$ac_link"
26375 case "(($ac_try" in
26376 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26377 *) ac_try_echo=$ac_try;;
26379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26380 (eval "$ac_link") 2>conftest.er1
26382 grep -v '^ *+' conftest.er1 >conftest.err
26384 cat conftest.err >&5
26385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26386 (exit $ac_status); } &&
26387 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
26388 { (case "(($ac_try" in
26389 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26390 *) ac_try_echo
=$ac_try;;
26392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26393 (eval "$ac_try") 2>&5
26395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26396 (exit $ac_status); }; } &&
26397 { ac_try
='test -s conftest$ac_exeext'
26398 { (case "(($ac_try" in
26399 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26400 *) ac_try_echo=$ac_try;;
26402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26403 (eval "$ac_try") 2>&5
26405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26406 (exit $ac_status); }; }; then
26407 { echo "$as_me:$LINENO: result: yes" >&5
26408 echo "${ECHO_T}yes" >&6; }
26409 ac_cv_lib_vpb_vpb_open="yes"
26412 echo "$as_me: failed program was:" >&5
26413 sed 's/^/| /' conftest.$ac_ext >&5
26415 { echo "$as_me:$LINENO: result: no" >&5
26416 echo "${ECHO_T}no" >&6; }
26417 ac_cv_lib_vpb_vpb_open="no"
26422 rm -f conftest.err conftest.$ac_objext \
26423 conftest$ac_exeext conftest.$ac_ext
26424 LIBS="${saved_libs}"
26425 CPPFLAGS="${saved_cppflags}"
26426 if test "${ac_cv_lib_vpb_vpb_open}" = "yes"; then
26428 if test "${VPB_DIR}" != ""; then
26429 VPB_LIB="-L${vpblibdir} ${VPB_LIB}"
26430 VPB_INCLUDE="-I${VPB_DIR}/include"
26434 cat >>confdefs.h <<\_ACEOF
26438 elif test ! -z "${VPB_MANDATORY}"; then
26440 echo "*** The VoiceTronix (vpb) installation on this system appears to be broken."
26441 echo "*** Either correct the installation, or run configure"
26442 echo "*** including --without-vpb."
26448 ac_cpp='$CPP $CPPFLAGS'
26449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26455 if test "${USE_ZLIB}" != "no"; then
26457 if test "x${ZLIB_DIR}" != "x"; then
26458 if test -d ${ZLIB_DIR}/lib; then
26459 pbxlibdir="-L${ZLIB_DIR}/lib"
26461 pbxlibdir="-L${ZLIB_DIR}"
26464 { echo "$as_me:$LINENO: checking for compress in -lz" >&5
26465 echo $ECHO_N "checking for compress in -lz... $ECHO_C" >&6; }
26466 if test "${ac_cv_lib_z_compress+set}" = set; then
26467 echo $ECHO_N "(cached) $ECHO_C" >&6
26469 ac_check_lib_save_LIBS=$LIBS
26470 LIBS="-lz ${pbxlibdir} $LIBS"
26471 cat >conftest.$ac_ext <<_ACEOF
26474 cat confdefs.h >>conftest.$ac_ext
26475 cat >>conftest.$ac_ext <<_ACEOF
26476 /* end confdefs.h. */
26478 /* Override any GCC internal prototype to avoid an error.
26479 Use char because int might match the return type of a GCC
26480 builtin and then its argument prototype would still apply. */
26488 return compress ();
26493 rm -f conftest.$ac_objext conftest$ac_exeext
26494 if { (ac_try="$ac_link"
26495 case "(($ac_try" in
26496 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26497 *) ac_try_echo
=$ac_try;;
26499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26500 (eval "$ac_link") 2>conftest.er1
26502 grep -v '^ *+' conftest.er1
>conftest.err
26504 cat conftest.err
>&5
26505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26506 (exit $ac_status); } &&
26507 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26508 { (case "(($ac_try" in
26509 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26510 *) ac_try_echo=$ac_try;;
26512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26513 (eval "$ac_try") 2>&5
26515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26516 (exit $ac_status); }; } &&
26517 { ac_try='test -s conftest$ac_exeext'
26518 { (case "(($ac_try" in
26519 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26520 *) ac_try_echo
=$ac_try;;
26522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26523 (eval "$ac_try") 2>&5
26525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26526 (exit $ac_status); }; }; then
26527 ac_cv_lib_z_compress
=yes
26529 echo "$as_me: failed program was:" >&5
26530 sed 's/^/| /' conftest.
$ac_ext >&5
26532 ac_cv_lib_z_compress
=no
26535 rm -f conftest.err conftest.
$ac_objext \
26536 conftest
$ac_exeext conftest.
$ac_ext
26537 LIBS
=$ac_check_lib_save_LIBS
26539 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress" >&5
26540 echo "${ECHO_T}$ac_cv_lib_z_compress" >&6; }
26541 if test $ac_cv_lib_z_compress = yes; then
26548 if test "${AST_ZLIB_FOUND}" = "yes"; then
26550 ZLIB_HEADER_FOUND
="1"
26551 if test "x${ZLIB_DIR}" != "x"; then
26552 ZLIB_LIB
="${pbxlibdir} ${ZLIB_LIB}"
26553 ZLIB_INCLUDE
="-I${ZLIB_DIR}/include"
26554 if test "xzlib.h" != "x" ; then
26555 as_ac_Header
=`echo "ac_cv_header_${ZLIB_DIR}/include/zlib.h" | $as_tr_sh`
26556 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26557 { echo "$as_me:$LINENO: checking for ${ZLIB_DIR}/include/zlib.h" >&5
26558 echo $ECHO_N "checking for ${ZLIB_DIR}/include/zlib.h... $ECHO_C" >&6; }
26559 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26560 echo $ECHO_N "(cached) $ECHO_C" >&6
26562 ac_res
=`eval echo '${'$as_ac_Header'}'`
26563 { echo "$as_me:$LINENO: result: $ac_res" >&5
26564 echo "${ECHO_T}$ac_res" >&6; }
26566 # Is the header compilable?
26567 { echo "$as_me:$LINENO: checking ${ZLIB_DIR}/include/zlib.h usability" >&5
26568 echo $ECHO_N "checking ${ZLIB_DIR}/include/zlib.h usability... $ECHO_C" >&6; }
26569 cat >conftest.
$ac_ext <<_ACEOF
26572 cat confdefs.h
>>conftest.
$ac_ext
26573 cat >>conftest.
$ac_ext <<_ACEOF
26574 /* end confdefs.h. */
26575 $ac_includes_default
26576 #include <${ZLIB_DIR}/include/zlib.h>
26578 rm -f conftest.
$ac_objext
26579 if { (ac_try
="$ac_compile"
26580 case "(($ac_try" in
26581 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26582 *) ac_try_echo=$ac_try;;
26584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26585 (eval "$ac_compile") 2>conftest.er1
26587 grep -v '^ *+' conftest.er1 >conftest.err
26589 cat conftest.err >&5
26590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26591 (exit $ac_status); } &&
26592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26593 { (case "(($ac_try" in
26594 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26595 *) ac_try_echo
=$ac_try;;
26597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26598 (eval "$ac_try") 2>&5
26600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26601 (exit $ac_status); }; } &&
26602 { ac_try
='test -s conftest.$ac_objext'
26603 { (case "(($ac_try" in
26604 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26605 *) ac_try_echo=$ac_try;;
26607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26608 (eval "$ac_try") 2>&5
26610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26611 (exit $ac_status); }; }; then
26612 ac_header_compiler=yes
26614 echo "$as_me: failed program was:" >&5
26615 sed 's/^/| /' conftest.$ac_ext >&5
26617 ac_header_compiler=no
26620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26621 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26622 echo "${ECHO_T}$ac_header_compiler" >&6; }
26624 # Is the header present?
26625 { echo "$as_me:$LINENO: checking ${ZLIB_DIR}/include/zlib.h presence" >&5
26626 echo $ECHO_N "checking ${ZLIB_DIR}/include/zlib.h presence... $ECHO_C" >&6; }
26627 cat >conftest.$ac_ext <<_ACEOF
26630 cat confdefs.h >>conftest.$ac_ext
26631 cat >>conftest.$ac_ext <<_ACEOF
26632 /* end confdefs.h. */
26633 #include <${ZLIB_DIR}/include/zlib.h>
26635 if { (ac_try="$ac_cpp conftest.$ac_ext"
26636 case "(($ac_try" in
26637 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26638 *) ac_try_echo
=$ac_try;;
26640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26641 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26643 grep -v '^ *+' conftest.er1
>conftest.err
26645 cat conftest.err
>&5
26646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26647 (exit $ac_status); } >/dev
/null
; then
26648 if test -s conftest.err
; then
26649 ac_cpp_err
=$ac_c_preproc_warn_flag
26650 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
26657 if test -z "$ac_cpp_err"; then
26658 ac_header_preproc
=yes
26660 echo "$as_me: failed program was:" >&5
26661 sed 's/^/| /' conftest.
$ac_ext >&5
26663 ac_header_preproc
=no
26666 rm -f conftest.err conftest.
$ac_ext
26667 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26668 echo "${ECHO_T}$ac_header_preproc" >&6; }
26670 # So? What about this header?
26671 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26673 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
26674 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26675 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the compiler's result" >&5
26676 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the compiler's result" >&2;}
26677 ac_header_preproc
=yes
26680 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: present but cannot be compiled" >&5
26681 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: present but cannot be compiled" >&2;}
26682 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: check for missing prerequisite headers?" >&5
26683 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: check for missing prerequisite headers?" >&2;}
26684 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: see the Autoconf documentation" >&5
26685 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: see the Autoconf documentation" >&2;}
26686 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: section \"Present But Cannot Be Compiled\"" >&5
26687 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
26688 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the preprocessor's result" >&5
26689 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: proceeding with the preprocessor's result" >&2;}
26690 { echo "$as_me:$LINENO: WARNING: ${ZLIB_DIR}/include/zlib.h: in the future, the compiler will take precedence" >&5
26691 echo "$as_me: WARNING: ${ZLIB_DIR}/include/zlib.h: in the future, the compiler will take precedence" >&2;}
26695 { echo "$as_me:$LINENO: checking for ${ZLIB_DIR}/include/zlib.h" >&5
26696 echo $ECHO_N "checking for ${ZLIB_DIR}/include/zlib.h... $ECHO_C" >&6; }
26697 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26698 echo $ECHO_N "(cached) $ECHO_C" >&6
26700 eval "$as_ac_Header=\$ac_header_preproc"
26702 ac_res
=`eval echo '${'$as_ac_Header'}'`
26703 { echo "$as_me:$LINENO: result: $ac_res" >&5
26704 echo "${ECHO_T}$ac_res" >&6; }
26707 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26708 ZLIB_HEADER_FOUND
=1
26710 ZLIB_HEADER_FOUND
=0
26716 if test "xzlib.h" != "x" ; then
26717 if test "${ac_cv_header_zlib_h+set}" = set; then
26718 { echo "$as_me:$LINENO: checking for zlib.h" >&5
26719 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
26720 if test "${ac_cv_header_zlib_h+set}" = set; then
26721 echo $ECHO_N "(cached) $ECHO_C" >&6
26723 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
26724 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
26726 # Is the header compilable?
26727 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
26728 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
26729 cat >conftest.
$ac_ext <<_ACEOF
26732 cat confdefs.h
>>conftest.
$ac_ext
26733 cat >>conftest.
$ac_ext <<_ACEOF
26734 /* end confdefs.h. */
26735 $ac_includes_default
26738 rm -f conftest.
$ac_objext
26739 if { (ac_try
="$ac_compile"
26740 case "(($ac_try" in
26741 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26742 *) ac_try_echo=$ac_try;;
26744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26745 (eval "$ac_compile") 2>conftest.er1
26747 grep -v '^ *+' conftest.er1 >conftest.err
26749 cat conftest.err >&5
26750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26751 (exit $ac_status); } &&
26752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26753 { (case "(($ac_try" in
26754 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26755 *) ac_try_echo
=$ac_try;;
26757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26758 (eval "$ac_try") 2>&5
26760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26761 (exit $ac_status); }; } &&
26762 { ac_try
='test -s conftest.$ac_objext'
26763 { (case "(($ac_try" in
26764 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26765 *) ac_try_echo=$ac_try;;
26767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26768 (eval "$ac_try") 2>&5
26770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26771 (exit $ac_status); }; }; then
26772 ac_header_compiler=yes
26774 echo "$as_me: failed program was:" >&5
26775 sed 's/^/| /' conftest.$ac_ext >&5
26777 ac_header_compiler=no
26780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26781 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26782 echo "${ECHO_T}$ac_header_compiler" >&6; }
26784 # Is the header present?
26785 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
26786 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
26787 cat >conftest.$ac_ext <<_ACEOF
26790 cat confdefs.h >>conftest.$ac_ext
26791 cat >>conftest.$ac_ext <<_ACEOF
26792 /* end confdefs.h. */
26795 if { (ac_try="$ac_cpp conftest.$ac_ext"
26796 case "(($ac_try" in
26797 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26798 *) ac_try_echo
=$ac_try;;
26800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26801 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26803 grep -v '^ *+' conftest.er1
>conftest.err
26805 cat conftest.err
>&5
26806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26807 (exit $ac_status); } >/dev
/null
; then
26808 if test -s conftest.err
; then
26809 ac_cpp_err
=$ac_c_preproc_warn_flag
26810 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
26817 if test -z "$ac_cpp_err"; then
26818 ac_header_preproc
=yes
26820 echo "$as_me: failed program was:" >&5
26821 sed 's/^/| /' conftest.
$ac_ext >&5
26823 ac_header_preproc
=no
26826 rm -f conftest.err conftest.
$ac_ext
26827 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26828 echo "${ECHO_T}$ac_header_preproc" >&6; }
26830 # So? What about this header?
26831 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26833 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
26834 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26835 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
26836 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
26837 ac_header_preproc
=yes
26840 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
26841 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
26842 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
26843 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
26844 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
26845 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
26846 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
26847 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
26848 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
26849 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
26850 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
26851 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
26855 { echo "$as_me:$LINENO: checking for zlib.h" >&5
26856 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
26857 if test "${ac_cv_header_zlib_h+set}" = set; then
26858 echo $ECHO_N "(cached) $ECHO_C" >&6
26860 ac_cv_header_zlib_h
=$ac_header_preproc
26862 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
26863 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
26866 if test $ac_cv_header_zlib_h = yes; then
26867 ZLIB_HEADER_FOUND
=1
26869 ZLIB_HEADER_FOUND
=0
26875 if test "x${ZLIB_HEADER_FOUND}" = "x0" ; then
26876 if test ! -z "${ZLIB_MANDATORY}" ;
26879 echo " *** It appears that you do not have the z development package installed."
26880 echo " *** Please install it to include ${ZLIB_DESCRIP} support, or re-run configure"
26881 echo " *** without explicitly specifying --with-${ZLIB_OPTION}"
26890 cat >>confdefs.h
<<_ACEOF
26891 #define HAVE_ZLIB 1
26895 elif test ! -z "${ZLIB_MANDATORY}";
26898 echo "*** The ${ZLIB_DESCRIP} installation on this system appears to be broken."
26899 echo "*** Either correct the installation, or run configure"
26900 echo "*** without explicitly specifying --with-${ZLIB_OPTION}"
26906 if test "${USE_ZAPTEL}" != "no"; then
26907 echo -n "checking for zt_transcode_header in zaptel.h... "
26908 saved_cppflags
="${CPPFLAGS}"
26909 if test "x${ZAPTEL_DIR}" != "x"; then
26910 CPPFLAGS
="${CPPFLAGS} -I${ZAPTEL_DIR}/include"
26912 cat >conftest.
$ac_ext <<_ACEOF
26916 cat confdefs.h
>>conftest.
$ac_ext
26917 cat >>conftest.
$ac_ext <<_ACEOF
26918 /* end confdefs.h. */
26919 #include <zaptel/zaptel.h>
26923 struct zt_transcode_header test;
26929 rm -f conftest.
$ac_objext
26930 if { (ac_try
="$ac_compile"
26931 case "(($ac_try" in
26932 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26933 *) ac_try_echo=$ac_try;;
26935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26936 (eval "$ac_compile") 2>conftest.er1
26938 grep -v '^ *+' conftest.er1 >conftest.err
26940 cat conftest.err >&5
26941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26942 (exit $ac_status); } &&
26943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26944 { (case "(($ac_try" in
26945 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26946 *) ac_try_echo
=$ac_try;;
26948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26949 (eval "$ac_try") 2>&5
26951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26952 (exit $ac_status); }; } &&
26953 { ac_try
='test -s conftest.$ac_objext'
26954 { (case "(($ac_try" in
26955 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26956 *) ac_try_echo=$ac_try;;
26958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26959 (eval "$ac_try") 2>&5
26961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26962 (exit $ac_status); }; }; then
26963 { echo "$as_me:$LINENO: result: yes" >&5
26964 echo "${ECHO_T}yes" >&6; }
26965 ac_cv_zaptel_h="yes"
26968 echo "$as_me: failed program was:" >&5
26969 sed 's/^/| /' conftest.$ac_ext >&5
26971 { echo "$as_me:$LINENO: result: no" >&5
26972 echo "${ECHO_T}no" >&6; }
26973 ac_cv_zaptel_h="no"
26978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26979 CPPFLAGS="${saved_cppflags}"
26980 if test "${ac_cv_zaptel_h}" = "yes"; then
26981 if test "${ZAPTEL_DIR}" != ""; then
26982 ZAPTEL_INCLUDE="-I${ZAPTEL_DIR}/include"
26986 cat >>confdefs.h <<\_ACEOF
26987 #define HAVE_ZAPTEL 1
26990 elif test ! -z "${ZAPTEL_MANDATORY}";
26993 echo "*** The Zaptel installation on this system appears to be broken."
26994 echo "*** Either correct the installation, or run configure"
26995 echo "*** including --without-zaptel."
27001 if test "x$TERMCAP_LIB" != "x" ; then
27002 EDITLINE_LIB="$TERMCAP_LIB"
27003 elif test "x$TINFO_LIB" != "x" ; then
27004 EDITLINE_LIB="$TINFO_LIB"
27005 elif test "x$CURSES_LIB" != "x" ; then
27006 EDITLINE_LIB="$CURSES_LIB"
27007 elif test "x$NCURSES_LIB" != "x" ; then
27008 EDITLINE_LIB="$NCURSES_LIB"
27010 echo "*** termcap support not found"
27015 if test "${ac_cv_header_h323_h+set}" = set; then
27016 { echo "$as_me:$LINENO: checking for h323.h" >&5
27017 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
27018 if test "${ac_cv_header_h323_h+set}" = set; then
27019 echo $ECHO_N "(cached) $ECHO_C" >&6
27021 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
27022 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
27024 # Is the header compilable?
27025 { echo "$as_me:$LINENO: checking h323.h usability" >&5
27026 echo $ECHO_N "checking h323.h usability... $ECHO_C" >&6; }
27027 cat >conftest.$ac_ext <<_ACEOF
27030 cat confdefs.h >>conftest.$ac_ext
27031 cat >>conftest.$ac_ext <<_ACEOF
27032 /* end confdefs.h. */
27033 $ac_includes_default
27036 rm -f conftest.$ac_objext
27037 if { (ac_try="$ac_compile"
27038 case "(($ac_try" in
27039 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27040 *) ac_try_echo
=$ac_try;;
27042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27043 (eval "$ac_compile") 2>conftest.er1
27045 grep -v '^ *+' conftest.er1
>conftest.err
27047 cat conftest.err
>&5
27048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27049 (exit $ac_status); } &&
27050 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27051 { (case "(($ac_try" in
27052 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27053 *) ac_try_echo=$ac_try;;
27055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27056 (eval "$ac_try") 2>&5
27058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27059 (exit $ac_status); }; } &&
27060 { ac_try='test -s conftest.$ac_objext'
27061 { (case "(($ac_try" in
27062 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27063 *) ac_try_echo
=$ac_try;;
27065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27066 (eval "$ac_try") 2>&5
27068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27069 (exit $ac_status); }; }; then
27070 ac_header_compiler
=yes
27072 echo "$as_me: failed program was:" >&5
27073 sed 's/^/| /' conftest.
$ac_ext >&5
27075 ac_header_compiler
=no
27078 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
27079 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27080 echo "${ECHO_T}$ac_header_compiler" >&6; }
27082 # Is the header present?
27083 { echo "$as_me:$LINENO: checking h323.h presence" >&5
27084 echo $ECHO_N "checking h323.h presence... $ECHO_C" >&6; }
27085 cat >conftest.
$ac_ext <<_ACEOF
27088 cat confdefs.h
>>conftest.
$ac_ext
27089 cat >>conftest.
$ac_ext <<_ACEOF
27090 /* end confdefs.h. */
27093 if { (ac_try
="$ac_cpp conftest.$ac_ext"
27094 case "(($ac_try" in
27095 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27096 *) ac_try_echo=$ac_try;;
27098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27099 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27101 grep -v '^ *+' conftest.er1 >conftest.err
27103 cat conftest.err >&5
27104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27105 (exit $ac_status); } >/dev/null; then
27106 if test -s conftest.err; then
27107 ac_cpp_err=$ac_c_preproc_warn_flag
27108 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27115 if test -z "$ac_cpp_err"; then
27116 ac_header_preproc=yes
27118 echo "$as_me: failed program was:" >&5
27119 sed 's/^/| /' conftest.$ac_ext >&5
27121 ac_header_preproc=no
27124 rm -f conftest.err conftest.$ac_ext
27125 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27126 echo "${ECHO_T}$ac_header_preproc" >&6; }
27128 # So? What about this header?
27129 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27131 { echo "$as_me:$LINENO: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&5
27132 echo "$as_me: WARNING: h323.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27133 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the compiler's result" >&5
27134 echo "$as_me: WARNING: h323.h: proceeding with the compiler's result" >&2;}
27135 ac_header_preproc=yes
27138 { echo "$as_me:$LINENO: WARNING: h323.h: present but cannot be compiled" >&5
27139 echo "$as_me: WARNING: h323.h: present but cannot be compiled" >&2;}
27140 { echo "$as_me:$LINENO: WARNING: h323.h: check for missing prerequisite headers?" >&5
27141 echo "$as_me: WARNING: h323.h: check for missing prerequisite headers?" >&2;}
27142 { echo "$as_me:$LINENO: WARNING: h323.h: see the Autoconf documentation" >&5
27143 echo "$as_me: WARNING: h323.h: see the Autoconf documentation" >&2;}
27144 { echo "$as_me:$LINENO: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&5
27145 echo "$as_me: WARNING: h323.h: section \"Present But Cannot Be Compiled\"" >&2;}
27146 { echo "$as_me:$LINENO: WARNING: h323.h: proceeding with the preprocessor's result" >&5
27147 echo "$as_me: WARNING: h323.h: proceeding with the preprocessor's result" >&2;}
27148 { echo "$as_me:$LINENO: WARNING: h323.h: in the future, the compiler will take precedence" >&5
27149 echo "$as_me: WARNING: h323.h: in the future, the compiler will take precedence" >&2;}
27153 { echo "$as_me:$LINENO: checking for h323.h" >&5
27154 echo $ECHO_N "checking for h323.h... $ECHO_C" >&6; }
27155 if test "${ac_cv_header_h323_h+set}" = set; then
27156 echo $ECHO_N "(cached) $ECHO_C" >&6
27158 ac_cv_header_h323_h=$ac_header_preproc
27160 { echo "$as_me:$LINENO: result: $ac_cv_header_h323_h" >&5
27161 echo "${ECHO_T}$ac_cv_header_h323_h" >&6; }
27164 if test $ac_cv_header_h323_h = yes; then
27173 { echo "$as_me:$LINENO: checking for linux/ixjuser.h" >&5
27174 echo $ECHO_N "checking for linux/ixjuser.h... $ECHO_C" >&6; }
27175 if test "${ac_cv_header_linux_ixjuser_h+set}" = set; then
27176 echo $ECHO_N "(cached) $ECHO_C" >&6
27178 cat >conftest.$ac_ext <<_ACEOF
27181 cat confdefs.h >>conftest.$ac_ext
27182 cat >>conftest.$ac_ext <<_ACEOF
27183 /* end confdefs.h. */
27185 #include <linux/version.h>
27186 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
27187 #include <linux/compiler.h>
27191 #include <linux/ixjuser.h>
27193 rm -f conftest.$ac_objext
27194 if { (ac_try="$ac_compile"
27195 case "(($ac_try" in
27196 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27197 *) ac_try_echo
=$ac_try;;
27199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27200 (eval "$ac_compile") 2>conftest.er1
27202 grep -v '^ *+' conftest.er1
>conftest.err
27204 cat conftest.err
>&5
27205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27206 (exit $ac_status); } &&
27207 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27208 { (case "(($ac_try" in
27209 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
27210 *) ac_try_echo=$ac_try;;
27212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27213 (eval "$ac_try") 2>&5
27215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27216 (exit $ac_status); }; } &&
27217 { ac_try='test -s conftest.$ac_objext'
27218 { (case "(($ac_try" in
27219 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
27220 *) ac_try_echo
=$ac_try;;
27222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27223 (eval "$ac_try") 2>&5
27225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27226 (exit $ac_status); }; }; then
27227 ac_cv_header_linux_ixjuser_h
=yes
27229 echo "$as_me: failed program was:" >&5
27230 sed 's/^/| /' conftest.
$ac_ext >&5
27232 ac_cv_header_linux_ixjuser_h
=no
27235 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
27237 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_ixjuser_h" >&5
27238 echo "${ECHO_T}$ac_cv_header_linux_ixjuser_h" >&6; }
27239 if test $ac_cv_header_linux_ixjuser_h = yes; then
27249 if test -n "$ac_tool_prefix"; then
27250 # Extract the first word of "${ac_tool_prefix}gtk-config", so it can be a program name with args.
27251 set dummy
${ac_tool_prefix}gtk-config
; ac_word
=$2
27252 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27254 if test "${ac_cv_prog_GTKCONFIG+set}" = set; then
27255 echo $ECHO_N "(cached) $ECHO_C" >&6
27257 if test -n "$GTKCONFIG"; then
27258 ac_cv_prog_GTKCONFIG
="$GTKCONFIG" # Let the user override the test.
27260 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
27261 for as_dir
in $PATH
27264 test -z "$as_dir" && as_dir
=.
27265 for ac_exec_ext
in '' $ac_executable_extensions; do
27266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27267 ac_cv_prog_GTKCONFIG
="${ac_tool_prefix}gtk-config"
27268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27277 GTKCONFIG
=$ac_cv_prog_GTKCONFIG
27278 if test -n "$GTKCONFIG"; then
27279 { echo "$as_me:$LINENO: result: $GTKCONFIG" >&5
27280 echo "${ECHO_T}$GTKCONFIG" >&6; }
27282 { echo "$as_me:$LINENO: result: no" >&5
27283 echo "${ECHO_T}no" >&6; }
27288 if test -z "$ac_cv_prog_GTKCONFIG"; then
27289 ac_ct_GTKCONFIG
=$GTKCONFIG
27290 # Extract the first word of "gtk-config", so it can be a program name with args.
27291 set dummy gtk-config
; ac_word
=$2
27292 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27294 if test "${ac_cv_prog_ac_ct_GTKCONFIG+set}" = set; then
27295 echo $ECHO_N "(cached) $ECHO_C" >&6
27297 if test -n "$ac_ct_GTKCONFIG"; then
27298 ac_cv_prog_ac_ct_GTKCONFIG
="$ac_ct_GTKCONFIG" # Let the user override the test.
27300 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
27301 for as_dir
in $PATH
27304 test -z "$as_dir" && as_dir
=.
27305 for ac_exec_ext
in '' $ac_executable_extensions; do
27306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27307 ac_cv_prog_ac_ct_GTKCONFIG
="gtk-config"
27308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27317 ac_ct_GTKCONFIG
=$ac_cv_prog_ac_ct_GTKCONFIG
27318 if test -n "$ac_ct_GTKCONFIG"; then
27319 { echo "$as_me:$LINENO: result: $ac_ct_GTKCONFIG" >&5
27320 echo "${ECHO_T}$ac_ct_GTKCONFIG" >&6; }
27322 { echo "$as_me:$LINENO: result: no" >&5
27323 echo "${ECHO_T}no" >&6; }
27326 if test "x$ac_ct_GTKCONFIG" = x
; then
27329 case $cross_compiling:$ac_tool_warned in
27331 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
27332 whose name does not start with the host triplet. If you think this
27333 configuration is useful to you, please write to autoconf@gnu.org." >&5
27334 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
27335 whose name does not start with the host triplet. If you think this
27336 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
27337 ac_tool_warned
=yes ;;
27339 GTKCONFIG
=$ac_ct_GTKCONFIG
27342 GTKCONFIG
="$ac_cv_prog_GTKCONFIG"
27345 if test ! "x${GTKCONFIG}" = xNo
; then
27346 GTK_INCLUDE
=$
(${GTKCONFIG} --cflags gthread
)
27347 GTK_LIB
=$
(${GTKCONFIG} --libs gthread
)
27350 cat >>confdefs.h
<<\_ACEOF
27360 if test -n "$ac_tool_prefix"; then
27361 # Extract the first word of "${ac_tool_prefix}curl-config", so it can be a program name with args.
27362 set dummy
${ac_tool_prefix}curl-config
; ac_word
=$2
27363 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27365 if test "${ac_cv_path_CURL+set}" = set; then
27366 echo $ECHO_N "(cached) $ECHO_C" >&6
27370 ac_cv_path_CURL
="$CURL" # Let the user override the test with a path.
27373 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
27374 for as_dir
in $PATH
27377 test -z "$as_dir" && as_dir
=.
27378 for ac_exec_ext
in '' $ac_executable_extensions; do
27379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27380 ac_cv_path_CURL
="$as_dir/$ac_word$ac_exec_ext"
27381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27391 CURL
=$ac_cv_path_CURL
27392 if test -n "$CURL"; then
27393 { echo "$as_me:$LINENO: result: $CURL" >&5
27394 echo "${ECHO_T}$CURL" >&6; }
27396 { echo "$as_me:$LINENO: result: no" >&5
27397 echo "${ECHO_T}no" >&6; }
27402 if test -z "$ac_cv_path_CURL"; then
27404 # Extract the first word of "curl-config", so it can be a program name with args.
27405 set dummy curl-config
; ac_word
=$2
27406 { echo "$as_me:$LINENO: checking for $ac_word" >&5
27407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27408 if test "${ac_cv_path_ac_pt_CURL+set}" = set; then
27409 echo $ECHO_N "(cached) $ECHO_C" >&6
27411 case $ac_pt_CURL in
27413 ac_cv_path_ac_pt_CURL
="$ac_pt_CURL" # Let the user override the test with a path.
27416 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
27417 for as_dir
in $PATH
27420 test -z "$as_dir" && as_dir
=.
27421 for ac_exec_ext
in '' $ac_executable_extensions; do
27422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
27423 ac_cv_path_ac_pt_CURL
="$as_dir/$ac_word$ac_exec_ext"
27424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27434 ac_pt_CURL
=$ac_cv_path_ac_pt_CURL
27435 if test -n "$ac_pt_CURL"; then
27436 { echo "$as_me:$LINENO: result: $ac_pt_CURL" >&5
27437 echo "${ECHO_T}$ac_pt_CURL" >&6; }
27439 { echo "$as_me:$LINENO: result: no" >&5
27440 echo "${ECHO_T}no" >&6; }
27443 if test "x$ac_pt_CURL" = x
; then
27446 case $cross_compiling:$ac_tool_warned in
27448 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
27449 whose name does not start with the host triplet. If you think this
27450 configuration is useful to you, please write to autoconf@gnu.org." >&5
27451 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
27452 whose name does not start with the host triplet. If you think this
27453 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
27454 ac_tool_warned
=yes ;;
27459 CURL
="$ac_cv_path_CURL"
27462 if test ! x
"${CURL}" = xNo
; then
27463 # check for version
27464 CURLLIB
=$
(${CURL} --libs)
27467 cat >>confdefs.h
<<\_ACEOF
27468 #define HAVE_CURL 1
27475 ac_config_files
="$ac_config_files build_tools/menuselect-deps makeopts"
27477 cat >confcache
<<\_ACEOF
27478 # This file is a shell script that caches the results of configure
27479 # tests run on this system so they can be shared between configure
27480 # scripts and configure runs, see configure's option --config-cache.
27481 # It is not useful on other systems. If it contains results you don't
27482 # want to keep, you may remove or edit it.
27484 # config.status only pays attention to the cache file if you give it
27485 # the --recheck option to rerun configure.
27487 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27488 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27489 # following values.
27493 # The following way of writing the cache mishandles newlines in values,
27494 # but we know of no workaround that is simple, portable, and efficient.
27495 # So, we kill variables containing newlines.
27496 # Ultrix sh set writes to stderr and can't be redirected directly,
27497 # and sets the high bit in the cache file unless we assign to the vars.
27499 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27500 eval ac_val
=\$
$ac_var
27504 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
27505 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
27508 _ | IFS | as_nl
) ;; #(
27509 *) $as_unset $ac_var ;;
27515 case $as_nl`(ac_space=' '; set) 2>&1` in #(
27516 *${as_nl}ac_space
=\
*)
27517 # `set' does not quote correctly, so add quotes (double-quote
27518 # substitution turns \\\\ into \\, and sed turns \\ into \).
27521 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27524 # `set' quotes correctly as required by POSIX, so do not add quotes.
27525 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27534 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27536 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27538 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
27539 if test -w "$cache_file"; then
27540 test "x$cache_file" != "x/dev/null" &&
27541 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
27542 echo "$as_me: updating cache $cache_file" >&6;}
27543 cat confcache
>$cache_file
27545 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
27546 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27551 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
27552 # Let make expand exec_prefix.
27553 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
27555 DEFS
=-DHAVE_CONFIG_H
27559 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
27560 # 1. Remove the extension, and $U if already installed.
27561 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
27562 ac_i
=`echo "$ac_i" | sed "$ac_script"`
27563 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
27564 # will be set to the directory where LIBOBJS objects are built.
27565 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27566 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
27568 LIBOBJS
=$ac_libobjs
27570 LTLIBOBJS
=$ac_ltlibobjs
27574 : ${CONFIG_STATUS=./config.status}
27575 ac_clean_files_save
=$ac_clean_files
27576 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
27577 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
27578 echo "$as_me: creating $CONFIG_STATUS" >&6;}
27579 cat >$CONFIG_STATUS <<_ACEOF
27581 # Generated by $as_me.
27582 # Run this file to recreate the current configuration.
27583 # Compiler output produced by configure, useful for debugging
27584 # configure, is in config.log if it exists.
27587 ac_cs_recheck=false
27589 SHELL=\${CONFIG_SHELL-$SHELL}
27592 cat >>$CONFIG_STATUS <<\_ACEOF
27593 ## --------------------- ##
27594 ## M4sh Initialization. ##
27595 ## --------------------- ##
27597 # Be Bourne compatible
27598 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
27601 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
27602 # is contrary to our usage. Disable this feature.
27603 alias -g '${1+"$@"}'='"$@"'
27604 setopt NO_GLOB_SUBST
27606 case `(set -o) 2>/dev/null` in *posix
*) set -o posix
;; esac
27608 BIN_SH
=xpg4
; export BIN_SH
# for Tru64
27609 DUALCASE
=1; export DUALCASE
# for MKS sh
27613 # Avoid depending upon Character Ranges.
27614 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
27615 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27616 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
27617 as_cr_digits
='0123456789'
27618 as_cr_alnum
=$as_cr_Letters$as_cr_digits
27620 # The user is always right.
27621 if test "${PATH_SEPARATOR+set}" != set; then
27622 echo "#! /bin/sh" >conf$$.sh
27623 echo "exit 0" >>conf$$.sh
27625 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
27633 # Support unset when possible.
27634 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
27642 # We need space, tab and new line, in precisely that order. Quoting is
27643 # there to prevent editors from complaining about space-tab.
27644 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27645 # splitting by setting IFS to empty value.)
27650 # Find who we are. Look in the path if we contain no directory separator.
27652 *[\\/]* ) as_myself
=$0 ;;
27653 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
27654 for as_dir
in $PATH
27657 test -z "$as_dir" && as_dir
=.
27658 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
27664 # We did not find ourselves, most probably we were run as `sh COMMAND'
27665 # in which case we are not to be found in the path.
27666 if test "x$as_myself" = x
; then
27669 if test ! -f "$as_myself"; then
27670 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27671 { (exit 1); exit 1; }
27674 # Work around bugs in pre-3.0 UWIN ksh.
27675 for as_var
in ENV MAIL MAILPATH
27676 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
27684 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
27685 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
27686 LC_TELEPHONE LC_TIME
27688 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
27689 eval $as_var=C
; export $as_var
27691 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
27695 # Required to use basename.
27696 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
27697 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
27703 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27704 as_basename
=basename
27710 # Name of the executable.
27711 as_me
=`$as_basename -- "$0" ||
27712 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27713 X"$0" : 'X\(//\)$' \| \
27714 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27716 sed '/^.*\/\([^/][^/]*\)\/*$/{
27735 as_lineno_1
=$LINENO
27736 as_lineno_2
=$LINENO
27737 test "x$as_lineno_1" != "x$as_lineno_2" &&
27738 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
27740 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27741 # uniformly replaced by the line number. The first 'sed' inserts a
27742 # line-number line after each line using $LINENO; the second 'sed'
27743 # does the real work. The second script uses 'N' to pair each
27744 # line-number line with the line containing $LINENO, and appends
27745 # trailing '-' during substitution so that $LINENO is not a special
27746 # case at line end.
27747 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27748 # scripts with optimization help from Paolo Bonzini. Blame Lee
27749 # E. McMahon (1931-1989) for sed's syntax. :-)
27761 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
27764 ' >$as_me.lineno
&&
27765 chmod +x
"$as_me.lineno" ||
27766 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
27767 { (exit 1); exit 1; }; }
27769 # Don't try to exec as it changes $[0], causing all sort of problems
27770 # (the dirname of $[0] is not the place where we might find the
27771 # original and so on. Autoconf is especially sensitive to this).
27772 .
"./$as_me.lineno"
27773 # Exit status is that of the last command.
27778 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
27784 ECHO_C
= ECHO_N
= ECHO_T
=
27785 case `echo -n x` in
27787 case `echo 'x\c'` in
27788 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
27795 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
27796 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
27802 rm -f conf$$ conf$$.exe conf$$.
file
27803 if test -d conf$$.dir
; then
27804 rm -f conf$$.dir
/conf$$.
file
27810 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
27812 # ... but there are two gotchas:
27813 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27814 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27815 # In both cases, we have to default to `cp -p'.
27816 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
27818 elif ln conf$$.
file conf$$
2>/dev
/null
; then
27823 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
27824 rmdir conf$$.dir
2>/dev
/null
27826 if mkdir
-p .
2>/dev
/null
; then
27829 test -d .
/-p && rmdir .
/-p
27833 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
27834 # systems may use methods other than mode bits to determine executability.
27835 cat >conf$$.
file <<_ASEOF
27839 chmod +x conf$$.
file
27840 if test -x conf$$.
file >/dev
/null
2>&1; then
27841 as_executable_p
="test -x"
27847 # Sed expression to map a string onto a valid CPP name.
27848 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27850 # Sed expression to map a string onto a valid variable name.
27851 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27856 # Save the log message, to keep $[0] and so on meaningful, and to
27857 # report actual input values of CONFIG_FILES etc. instead of their
27858 # values after options handling.
27860 This file was extended by $as_me, which was
27861 generated by GNU Autoconf 2.59e. Invocation command line was
27863 CONFIG_FILES = $CONFIG_FILES
27864 CONFIG_HEADERS = $CONFIG_HEADERS
27865 CONFIG_LINKS = $CONFIG_LINKS
27866 CONFIG_COMMANDS = $CONFIG_COMMANDS
27869 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27874 cat >>$CONFIG_STATUS <<_ACEOF
27875 # Files that config.status was made for.
27876 config_files="$ac_config_files"
27877 config_headers="$ac_config_headers"
27881 cat >>$CONFIG_STATUS <<\_ACEOF
27883 \`$as_me' instantiates files from templates according to the
27884 current configuration.
27886 Usage: $0 [OPTIONS] [FILE]...
27888 -h, --help print this help, then exit
27889 -V, --version print version number, then exit
27890 -q, --quiet do not print progress messages
27891 -d, --debug don't remove temporary files
27892 --recheck update $as_me by reconfiguring in the same conditions
27893 --file=FILE[:TEMPLATE]
27894 instantiate the configuration file FILE
27895 --header=FILE[:TEMPLATE]
27896 instantiate the configuration header FILE
27898 Configuration files:
27901 Configuration headers:
27904 Report bugs to <bug-autoconf@gnu.org>."
27907 cat >>$CONFIG_STATUS <<_ACEOF
27910 configured by $0, generated by GNU Autoconf 2.59e,
27911 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27913 Copyright (C) 2006 Free Software Foundation, Inc.
27914 This config.status script is free software; the Free Software Foundation
27915 gives unlimited permission to copy, distribute and modify it."
27922 cat >>$CONFIG_STATUS <<\_ACEOF
27923 # If no file are specified by the user, then we need to provide default
27924 # value. By we need to know if files were specified by the user.
27930 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
27931 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
27942 # Handling of the options.
27943 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
27945 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
27946 echo "$ac_cs_version"; exit ;;
27947 --debug |
--debu |
--deb |
--de |
--d |
-d )
27949 --file |
--fil |
--fi |
--f )
27951 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
27952 ac_need_defaults
=false
;;
27953 --header |
--heade |
--head |
--hea )
27955 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
27956 ac_need_defaults
=false
;;
27958 # Conflict between --help and --header
27959 { echo "$as_me: error: ambiguous option: $1
27960 Try \`$0 --help' for more information." >&2
27961 { (exit 1); exit 1; }; };;
27962 --help |
--hel |
-h )
27963 echo "$ac_cs_usage"; exit ;;
27964 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
27965 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
27968 # This is an error.
27969 -*) { echo "$as_me: error: unrecognized option: $1
27970 Try \`$0 --help' for more information." >&2
27971 { (exit 1); exit 1; }; } ;;
27973 *) ac_config_targets
="$ac_config_targets $1"
27974 ac_need_defaults
=false
;;
27980 ac_configure_extra_args
=
27982 if $ac_cs_silent; then
27984 ac_configure_extra_args
="$ac_configure_extra_args --silent"
27988 cat >>$CONFIG_STATUS <<_ACEOF
27989 if \$ac_cs_recheck; then
27990 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
27991 CONFIG_SHELL=$SHELL
27992 export CONFIG_SHELL
27993 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27997 cat >>$CONFIG_STATUS <<\_ACEOF
28001 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28002 ## Running $as_me. ##
28008 cat >>$CONFIG_STATUS <<_ACEOF
28011 cat >>$CONFIG_STATUS <<\_ACEOF
28013 # Handling of arguments.
28014 for ac_config_target
in $ac_config_targets
28016 case $ac_config_target in
28017 "include/asterisk/autoconfig.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/asterisk/autoconfig.h" ;;
28018 "build_tools/menuselect-deps") CONFIG_FILES
="$CONFIG_FILES build_tools/menuselect-deps" ;;
28019 "makeopts") CONFIG_FILES
="$CONFIG_FILES makeopts" ;;
28021 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
28022 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
28023 { (exit 1); exit 1; }; };;
28028 # If the user did not use the arguments to specify the items to instantiate,
28029 # then the envvar interface is used. Set only those that are not.
28030 # We use the long form for the default assignment because of an extremely
28031 # bizarre bug on SunOS 4.1.3.
28032 if $ac_need_defaults; then
28033 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
28034 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
28037 # Have a temporary directory for convenience. Make it in the build tree
28038 # simply because there is no reason against having it here, and in addition,
28039 # creating and moving files from /tmp can sometimes cause problems.
28040 # Hook for its removal unless debugging.
28041 # Note that there is a small window in which the directory will not be cleaned:
28042 # after its creation but before its name has been assigned to `$tmp'.
28046 trap 'exit_status=$?
28047 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
28049 trap '{ (exit 1); exit 1; }' 1 2 13 15
28051 # Create a (secure) tmp directory for tmp files.
28054 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
28055 test -n "$tmp" && test -d "$tmp"
28058 tmp
=.
/conf$$
-$RANDOM
28059 (umask 077 && mkdir
"$tmp")
28062 echo "$me: cannot create a temporary directory in ." >&2
28063 { (exit 1); exit 1; }
28067 # Set up the sed scripts for CONFIG_FILES section.
28070 # No need to generate the scripts if there are no CONFIG_FILES.
28071 # This happens for instance when ./config.status config.h
28072 if test -n "$CONFIG_FILES"; then
28079 for ac_last_try
in false false false false false
:; do
28080 cat >conf$
$subs.
sed <<_ACEOF
28081 SHELL!$SHELL$ac_delim
28082 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
28083 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
28084 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
28085 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
28086 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
28087 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
28088 exec_prefix!$exec_prefix$ac_delim
28089 prefix!$prefix$ac_delim
28090 program_transform_name!$program_transform_name$ac_delim
28091 bindir!$bindir$ac_delim
28092 sbindir!$sbindir$ac_delim
28093 libexecdir!$libexecdir$ac_delim
28094 datarootdir!$datarootdir$ac_delim
28095 datadir!$datadir$ac_delim
28096 sysconfdir!$sysconfdir$ac_delim
28097 sharedstatedir!$sharedstatedir$ac_delim
28098 localstatedir!$localstatedir$ac_delim
28099 includedir!$includedir$ac_delim
28100 oldincludedir!$oldincludedir$ac_delim
28101 docdir!$docdir$ac_delim
28102 infodir!$infodir$ac_delim
28103 htmldir!$htmldir$ac_delim
28104 dvidir!$dvidir$ac_delim
28105 pdfdir!$pdfdir$ac_delim
28106 psdir!$psdir$ac_delim
28107 libdir!$libdir$ac_delim
28108 localedir!$localedir$ac_delim
28109 mandir!$mandir$ac_delim
28110 DEFS!$DEFS$ac_delim
28111 ECHO_C!$ECHO_C$ac_delim
28112 ECHO_N!$ECHO_N$ac_delim
28113 ECHO_T!$ECHO_T$ac_delim
28114 LIBS!$LIBS$ac_delim
28115 build_alias!$build_alias$ac_delim
28116 host_alias!$host_alias$ac_delim
28117 target_alias!$target_alias$ac_delim
28118 build!$build$ac_delim
28119 build_cpu!$build_cpu$ac_delim
28120 build_vendor!$build_vendor$ac_delim
28121 build_os!$build_os$ac_delim
28122 host!$host$ac_delim
28123 host_cpu!$host_cpu$ac_delim
28124 host_vendor!$host_vendor$ac_delim
28125 host_os!$host_os$ac_delim
28126 target!$target$ac_delim
28127 target_cpu!$target_cpu$ac_delim
28128 target_vendor!$target_vendor$ac_delim
28129 target_os!$target_os$ac_delim
28130 PBX_PLATFORM!$PBX_PLATFORM$ac_delim
28131 PBX_CPU!$PBX_CPU$ac_delim
28132 PBX_VENDOR!$PBX_VENDOR$ac_delim
28133 PBX_OS!$PBX_OS$ac_delim
28134 UNAME!$UNAME$ac_delim
28135 PBX_OSREV!$PBX_OSREV$ac_delim
28136 OSISWIN32!$OSISWIN32$ac_delim
28137 PBX_OSTYPE!$PBX_OSTYPE$ac_delim
28140 RANLIB!$RANLIB$ac_delim
28143 WINDRES!$WINDRES$ac_delim
28144 DLLWRAP!$DLLWRAP$ac_delim
28145 CFLAGS!$CFLAGS$ac_delim
28146 LDFLAGS!$LDFLAGS$ac_delim
28147 CPPFLAGS!$CPPFLAGS$ac_delim
28148 ac_ct_CC!$ac_ct_CC$ac_delim
28149 EXEEXT!$EXEEXT$ac_delim
28150 OBJEXT!$OBJEXT$ac_delim
28151 CXXFLAGS!$CXXFLAGS$ac_delim
28152 ac_ct_CXX!$ac_ct_CXX$ac_delim
28154 CXXCPP!$CXXCPP$ac_delim
28156 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
28157 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
28158 INSTALL_DATA!$INSTALL_DATA$ac_delim
28159 LN_S!$LN_S$ac_delim
28160 GNU_MAKE!$GNU_MAKE$ac_delim
28161 GREP!$GREP$ac_delim
28162 FIND!$FIND$ac_delim
28163 COMPRESS!$COMPRESS$ac_delim
28164 BASENAME!$BASENAME$ac_delim
28165 DIRNAME!$DIRNAME$ac_delim
28168 AST_DEVMODE!$AST_DEVMODE$ac_delim
28169 ALSA_LIB!$ALSA_LIB$ac_delim
28170 ALSA_INCLUDE!$ALSA_INCLUDE$ac_delim
28171 PBX_ALSA!$PBX_ALSA$ac_delim
28172 CURSES_LIB!$CURSES_LIB$ac_delim
28173 CURSES_INCLUDE!$CURSES_INCLUDE$ac_delim
28174 PBX_CURSES!$PBX_CURSES$ac_delim
28175 GSM_LIB!$GSM_LIB$ac_delim
28176 GSM_INCLUDE!$GSM_INCLUDE$ac_delim
28177 PBX_GSM!$PBX_GSM$ac_delim
28180 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
28182 elif $ac_last_try; then
28183 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28184 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
28185 { (exit 1); exit 1; }; }
28187 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
28191 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
28192 if test -n "$ac_eof"; then
28193 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
28194 ac_eof
=`expr $ac_eof + 1`
28197 cat >>$CONFIG_STATUS <<_ACEOF
28198 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
28199 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28202 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
28203 s/^/s,@/; s/!/@,|#_!!_#|/
28206 s/'"$ac_delim"'$/,g/; t
28208 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
28209 ' >>$CONFIG_STATUS <conf$
$subs.
sed
28210 rm -f conf$
$subs.
sed
28211 cat >>$CONFIG_STATUS <<_ACEOF
28217 for ac_last_try
in false false false false false
:; do
28218 cat >conf$
$subs.
sed <<_ACEOF
28219 IKSEMEL_LIB!$IKSEMEL_LIB$ac_delim
28220 IKSEMEL_INCLUDE!$IKSEMEL_INCLUDE$ac_delim
28221 PBX_IKSEMEL!$PBX_IKSEMEL$ac_delim
28222 IMAP_TK_LIB!$IMAP_TK_LIB$ac_delim
28223 IMAP_TK_INCLUDE!$IMAP_TK_INCLUDE$ac_delim
28224 PBX_IMAP_TK!$PBX_IMAP_TK$ac_delim
28225 KDE_LIB!$KDE_LIB$ac_delim
28226 KDE_INCLUDE!$KDE_INCLUDE$ac_delim
28227 PBX_KDE!$PBX_KDE$ac_delim
28228 NBS_LIB!$NBS_LIB$ac_delim
28229 NBS_INCLUDE!$NBS_INCLUDE$ac_delim
28230 PBX_NBS!$PBX_NBS$ac_delim
28231 NCURSES_LIB!$NCURSES_LIB$ac_delim
28232 NCURSES_INCLUDE!$NCURSES_INCLUDE$ac_delim
28233 PBX_NCURSES!$PBX_NCURSES$ac_delim
28234 NETSNMP_LIB!$NETSNMP_LIB$ac_delim
28235 NETSNMP_INCLUDE!$NETSNMP_INCLUDE$ac_delim
28236 PBX_NETSNMP!$PBX_NETSNMP$ac_delim
28237 NEWT_LIB!$NEWT_LIB$ac_delim
28238 NEWT_INCLUDE!$NEWT_INCLUDE$ac_delim
28239 PBX_NEWT!$PBX_NEWT$ac_delim
28240 UNIXODBC_LIB!$UNIXODBC_LIB$ac_delim
28241 UNIXODBC_INCLUDE!$UNIXODBC_INCLUDE$ac_delim
28242 PBX_UNIXODBC!$PBX_UNIXODBC$ac_delim
28243 OGG_LIB!$OGG_LIB$ac_delim
28244 OGG_INCLUDE!$OGG_INCLUDE$ac_delim
28245 PBX_OGG!$PBX_OGG$ac_delim
28246 OSPTK_LIB!$OSPTK_LIB$ac_delim
28247 OSPTK_INCLUDE!$OSPTK_INCLUDE$ac_delim
28248 PBX_OSPTK!$PBX_OSPTK$ac_delim
28249 OSS_LIB!$OSS_LIB$ac_delim
28250 OSS_INCLUDE!$OSS_INCLUDE$ac_delim
28251 PBX_OSS!$PBX_OSS$ac_delim
28252 POPT_LIB!$POPT_LIB$ac_delim
28253 POPT_INCLUDE!$POPT_INCLUDE$ac_delim
28254 PBX_POPT!$PBX_POPT$ac_delim
28255 PGSQL_LIB!$PGSQL_LIB$ac_delim
28256 PGSQL_INCLUDE!$PGSQL_INCLUDE$ac_delim
28257 PBX_PGSQL!$PBX_PGSQL$ac_delim
28258 PRI_LIB!$PRI_LIB$ac_delim
28259 PRI_INCLUDE!$PRI_INCLUDE$ac_delim
28260 PBX_PRI!$PBX_PRI$ac_delim
28261 PWLIB_LIB!$PWLIB_LIB$ac_delim
28262 PWLIB_INCLUDE!$PWLIB_INCLUDE$ac_delim
28263 PBX_PWLIB!$PBX_PWLIB$ac_delim
28264 QT_LIB!$QT_LIB$ac_delim
28265 QT_INCLUDE!$QT_INCLUDE$ac_delim
28266 PBX_QT!$PBX_QT$ac_delim
28267 RADIUS_LIB!$RADIUS_LIB$ac_delim
28268 RADIUS_INCLUDE!$RADIUS_INCLUDE$ac_delim
28269 PBX_RADIUS!$PBX_RADIUS$ac_delim
28270 SPEEX_LIB!$SPEEX_LIB$ac_delim
28271 SPEEX_INCLUDE!$SPEEX_INCLUDE$ac_delim
28272 PBX_SPEEX!$PBX_SPEEX$ac_delim
28273 SQLITE_LIB!$SQLITE_LIB$ac_delim
28274 SQLITE_INCLUDE!$SQLITE_INCLUDE$ac_delim
28275 PBX_SQLITE!$PBX_SQLITE$ac_delim
28276 OPENSSL_LIB!$OPENSSL_LIB$ac_delim
28277 OPENSSL_INCLUDE!$OPENSSL_INCLUDE$ac_delim
28278 PBX_OPENSSL!$PBX_OPENSSL$ac_delim
28279 FREETDS_LIB!$FREETDS_LIB$ac_delim
28280 FREETDS_INCLUDE!$FREETDS_INCLUDE$ac_delim
28281 PBX_FREETDS!$PBX_FREETDS$ac_delim
28282 TERMCAP_LIB!$TERMCAP_LIB$ac_delim
28283 TERMCAP_INCLUDE!$TERMCAP_INCLUDE$ac_delim
28284 PBX_TERMCAP!$PBX_TERMCAP$ac_delim
28285 TINFO_LIB!$TINFO_LIB$ac_delim
28286 TINFO_INCLUDE!$TINFO_INCLUDE$ac_delim
28287 PBX_TINFO!$PBX_TINFO$ac_delim
28288 TONEZONE_LIB!$TONEZONE_LIB$ac_delim
28289 TONEZONE_INCLUDE!$TONEZONE_INCLUDE$ac_delim
28290 PBX_TONEZONE!$PBX_TONEZONE$ac_delim
28291 VORBIS_LIB!$VORBIS_LIB$ac_delim
28292 VORBIS_INCLUDE!$VORBIS_INCLUDE$ac_delim
28293 PBX_VORBIS!$PBX_VORBIS$ac_delim
28294 VPB_LIB!$VPB_LIB$ac_delim
28295 VPB_INCLUDE!$VPB_INCLUDE$ac_delim
28296 PBX_VPB!$PBX_VPB$ac_delim
28297 ZLIB_LIB!$ZLIB_LIB$ac_delim
28298 ZLIB_INCLUDE!$ZLIB_INCLUDE$ac_delim
28299 PBX_ZLIB!$PBX_ZLIB$ac_delim
28300 ZAPTEL_LIB!$ZAPTEL_LIB$ac_delim
28301 ZAPTEL_INCLUDE!$ZAPTEL_INCLUDE$ac_delim
28302 PBX_ZAPTEL!$PBX_ZAPTEL$ac_delim
28303 ALLOCA!$ALLOCA$ac_delim
28304 EGREP!$EGREP$ac_delim
28305 LIBOBJS!$LIBOBJS$ac_delim
28306 POW_LIB!$POW_LIB$ac_delim
28307 KDEINIT!$KDEINIT$ac_delim
28308 KDEDIR!$KDEDIR$ac_delim
28309 NETSNMP_CONFIG!$NETSNMP_CONFIG$ac_delim
28310 PG_CONFIG!$PG_CONFIG$ac_delim
28311 QTMOC!$QTMOC$ac_delim
28312 EDITLINE_LIB!$EDITLINE_LIB$ac_delim
28313 PBX_H323!$PBX_H323$ac_delim
28314 PBX_IXJUSER!$PBX_IXJUSER$ac_delim
28315 GTKCONFIG!$GTKCONFIG$ac_delim
28318 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
28320 elif $ac_last_try; then
28321 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28322 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
28323 { (exit 1); exit 1; }; }
28325 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
28329 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
28330 if test -n "$ac_eof"; then
28331 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
28332 ac_eof
=`expr $ac_eof + 1`
28335 cat >>$CONFIG_STATUS <<_ACEOF
28336 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
28337 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28340 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
28341 s/^/s,@/; s/!/@,|#_!!_#|/
28344 s/'"$ac_delim"'$/,g/; t
28346 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
28347 ' >>$CONFIG_STATUS <conf$
$subs.
sed
28348 rm -f conf$
$subs.
sed
28349 cat >>$CONFIG_STATUS <<_ACEOF
28355 for ac_last_try
in false false false false false
:; do
28356 cat >conf$
$subs.
sed <<_ACEOF
28357 PBX_GTK!$PBX_GTK$ac_delim
28358 GTK_INCLUDE!$GTK_INCLUDE$ac_delim
28359 GTK_LIB!$GTK_LIB$ac_delim
28360 CURL!$CURL$ac_delim
28361 PBX_CURL!$PBX_CURL$ac_delim
28362 CURLLIB!$CURLLIB$ac_delim
28363 LTLIBOBJS!$LTLIBOBJS$ac_delim
28366 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 7; then
28368 elif $ac_last_try; then
28369 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
28370 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
28371 { (exit 1); exit 1; }; }
28373 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
28377 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
28378 if test -n "$ac_eof"; then
28379 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
28380 ac_eof
=`expr $ac_eof + 1`
28383 cat >>$CONFIG_STATUS <<_ACEOF
28384 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
28385 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
28388 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
28389 s/^/s,@/; s/!/@,|#_!!_#|/
28392 s/'"$ac_delim"'$/,g/; t
28394 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
28395 ' >>$CONFIG_STATUS <conf$
$subs.
sed
28396 rm -f conf$
$subs.
sed
28397 cat >>$CONFIG_STATUS <<_ACEOF
28404 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28405 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28406 # trailing colons and then remove the whole line if VPATH becomes empty
28407 # (actually we leave an empty line to preserve line numbers).
28408 if test "x$srcdir" = x.
; then
28409 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
28410 s/:*\$(srcdir):*/:/
28411 s/:*\${srcdir}:*/:/
28413 s/^\([^=]*=[ ]*\):*/\1/
28419 cat >>$CONFIG_STATUS <<\_ACEOF
28420 fi # test -n "$CONFIG_FILES"
28423 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS
28426 :[FHLC
]) ac_mode
=$ac_tag; continue;;
28428 case $ac_mode$ac_tag in
28430 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
28431 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
28432 { (exit 1); exit 1; }; };;
28433 :[FH
]-) ac_tag
=-:-;;
28434 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
28451 -) ac_f
="$tmp/stdin";;
28452 *) # Look for the file first in the build tree, then in the source tree
28453 # (if the path is not absolute). The absolute path cannot be DOS-style,
28454 # because $ac_f cannot contain `:'.
28458 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
28460 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
28461 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
28462 { (exit 1); exit 1; }; };;
28464 ac_file_inputs
="$ac_file_inputs $ac_f"
28467 # Let's still pretend it is `configure' which instantiates (i.e., don't
28468 # use $as_me), people would be surprised to read:
28469 # /* config.h. Generated by config.status. */
28470 configure_input
="Generated from "`IFS=:
28471 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
28472 if test x
"$ac_file" != x-
; then
28473 configure_input
="$ac_file. $configure_input"
28474 { echo "$as_me:$LINENO: creating $ac_file" >&5
28475 echo "$as_me: creating $ac_file" >&6;}
28479 *:-:* |
*:-) cat >"$tmp/stdin";;
28484 ac_dir
=`$as_dirname -- "$ac_file" ||
28485 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28486 X"$ac_file" : 'X\(//\)[^/]' \| \
28487 X"$ac_file" : 'X\(//\)$' \| \
28488 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28490 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28494 /^X\(\/\/\)[^/].*/{
28509 -*) as_dir
=.
/$as_dir;;
28511 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
28515 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
28516 *) as_qdir
=$as_dir;;
28518 as_dirs
="'$as_qdir' $as_dirs"
28519 as_dir
=`$as_dirname -- "$as_dir" ||
28520 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28521 X"$as_dir" : 'X\(//\)[^/]' \| \
28522 X"$as_dir" : 'X\(//\)$' \| \
28523 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28525 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28529 /^X\(\/\/\)[^/].*/{
28542 test -d "$as_dir" && break
28544 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
28545 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
28546 echo "$as_me: error: cannot create directory $as_dir" >&2;}
28547 { (exit 1); exit 1; }; }; }
28551 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28553 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28554 # A ".." for each directory in $ac_dir_suffix.
28555 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
28556 case $ac_top_builddir_sub in
28557 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
28558 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
28561 ac_abs_top_builddir
=$ac_pwd
28562 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
28563 # for backward compatibility:
28564 ac_top_builddir
=$ac_top_build_prefix
28567 .
) # We are building in place.
28569 ac_top_srcdir
=$ac_top_builddir_sub
28570 ac_abs_top_srcdir
=$ac_pwd ;;
28571 [\\/]* | ?
:[\\/]* ) # Absolute name.
28572 ac_srcdir
=$srcdir$ac_dir_suffix;
28573 ac_top_srcdir
=$srcdir
28574 ac_abs_top_srcdir
=$srcdir ;;
28575 *) # Relative name.
28576 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
28577 ac_top_srcdir
=$ac_top_build_prefix$srcdir
28578 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
28580 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
28590 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
28591 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
28595 cat >>$CONFIG_STATUS <<\_ACEOF
28596 # If the template does not know about datarootdir, expand it.
28597 # FIXME: This hack should be removed a few years after 2.60.
28598 ac_datarootdir_hack
=; ac_datarootdir_seen
=
28600 case `sed -n '/datarootdir/ {
28609 ' $ac_file_inputs` in
28610 *datarootdir
*) ac_datarootdir_seen
=yes;;
28611 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
28612 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28613 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28615 cat >>$CONFIG_STATUS <<_ACEOF
28616 ac_datarootdir_hack='
28617 s&@datadir@&$datadir&g
28618 s&@docdir@&$docdir&g
28619 s&@infodir@&$infodir&g
28620 s&@localedir@&$localedir&g
28621 s&@mandir@&$mandir&g
28622 s&\\\${datarootdir}&$datarootdir&g' ;;
28626 # Neutralize VPATH when `$srcdir' = `.'.
28627 # Shell code in configure.ac might set extrasub.
28628 # FIXME: do we really want to maintain this feature?
28629 cat >>$CONFIG_STATUS <<_ACEOF
28633 cat >>$CONFIG_STATUS <<\_ACEOF
28635 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
28636 s
&@configure_input@
&$configure_input&;t t
28637 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
28638 s
&@srcdir@
&$ac_srcdir&;t t
28639 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
28640 s
&@top_srcdir@
&$ac_top_srcdir&;t t
28641 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
28642 s
&@builddir@
&$ac_builddir&;t t
28643 s
&@abs_builddir@
&$ac_abs_builddir&;t t
28644 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
28645 s
&@INSTALL@
&$ac_INSTALL&;t t
28646 $ac_datarootdir_hack
28647 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" | sed -f "$tmp/subs-3.
sed" >$tmp/out
28649 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28650 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
28651 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
28652 which seems to be undefined. Please make sure it is defined." >&5
28653 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
28654 which seems to be undefined. Please make sure it is defined." >&2;}
28658 -) cat "$tmp/out"; rm -f "$tmp/out";;
28659 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
28668 # Transform confdefs.h into a sed script `conftest.defines', that
28669 # substitutes the proper values into config.h.in to produce config.h.
28670 rm -f conftest.defines conftest.
tail
28671 # First, append a space to every undef/define line, to ease matching.
28672 echo 's/$/ /' >conftest.defines
28673 # Then, protect against being on the right side of a sed subst, or in
28674 # an unquoted here document, in config.status. If some macros were
28675 # called several times there might be several #defines for the same
28676 # symbol, which is useless. But do not sort them, since the last
28677 # AC_DEFINE must be honored.
28678 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
28679 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
28680 # NAME is the cpp macro being defined, VALUE is the value it is being given.
28681 # PARAMS is the parameter list in the macro definition--in most cases, it's
28682 # just an empty string.
28683 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
28684 ac_dB
='\\)[ (].*,\\1define\\2'
28692 s/^[ ]*#[ ]*define[ ][ ]*//
28697 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
28698 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
28699 ' >>conftest.defines
28701 # Remove the space that was appended to ease matching.
28702 # Then replace #undef with comments. This is necessary, for
28703 # example, in the case of _POSIX_SOURCE, which is predefined and required
28704 # on some systems where configure will not decide to define it.
28705 # (The regexp can be short, since the line contains either #define or #undef.)
28707 s,^[ #]*u.*,/* & */,' >>conftest.defines
28709 # Break up conftest.defines:
28710 ac_max_sed_lines
=50
28712 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
28713 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
28714 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
28716 ac_in
='$ac_file_inputs'
28717 ac_out
='"$tmp/out1"'
28718 ac_nxt
='"$tmp/out2"'
28722 # Write a here document:
28723 cat >>$CONFIG_STATUS <<_ACEOF
28724 # First, check the format of the line:
28725 cat >"\$tmp/defines.sed" <<\\CEOF
28726 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
28727 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
28731 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
28733 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
28734 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
28735 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
28736 grep . conftest.
tail >/dev
/null ||
break
28737 rm -f conftest.defines
28738 mv conftest.
tail conftest.defines
28740 rm -f conftest.defines conftest.
tail
28742 echo "ac_result=$ac_in" >>$CONFIG_STATUS
28743 cat >>$CONFIG_STATUS <<\_ACEOF
28744 if test x
"$ac_file" != x-
; then
28745 echo "/* $configure_input */" >"$tmp/config.h"
28746 cat "$ac_result" >>"$tmp/config.h"
28747 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
28748 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28749 echo "$as_me: $ac_file is unchanged" >&6;}
28752 mv "$tmp/config.h" $ac_file
28755 echo "/* $configure_input */"
28767 { (exit 0); exit 0; }
28769 chmod +x
$CONFIG_STATUS
28770 ac_clean_files
=$ac_clean_files_save
28773 # configure is writing to config.log, and then calls config.status.
28774 # config.status does its own redirection, appending to config.log.
28775 # Unfortunately, on DOS this fails, as config.log is still kept open
28776 # by configure, so config.status won't be able to write to it; its
28777 # output is simply discarded. So we exec the FD to /dev/null,
28778 # effectively closing config.log, so it can be properly (re)opened and
28779 # appended to by config.status. When coming back to configure, we
28780 # need to make the FD available again.
28781 if test "$no_create" != yes; then
28783 ac_config_status_args
=
28784 test "$silent" = yes &&
28785 ac_config_status_args
="$ac_config_status_args --quiet"
28787 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
28789 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28790 # would make configure fail if this is the last instruction.
28791 $ac_cs_success ||
{ (exit 1); exit 1; }
28796 echo " .\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$=.. "
28797 echo " .\$7\$7.. .7\$\$7:. "
28798 echo " .\$\$:. ,\$7.7 "
28799 echo " .\$7. 7\$\$\$\$ .\$\$77 "
28800 echo " ..\$\$. \$\$\$\$\$ .\$\$\$7 "
28801 echo " ..7\$ .?. \$\$\$\$\$ .?. 7\$\$\$."
28802 echo " \$.\$. .\$\$\$7. \$\$\$\$7 .7\$\$\$. .\$\$\$."
28803 echo " .777. .\$\$\$\$\$\$77\$\$\$77\$\$\$\$\$7. \$\$\$,"
28804 echo " \$\$\$~ .7\$\$\$\$\$\$\$\$\$\$\$\$\$7. .\$\$\$."
28805 echo ".\$\$7 .7\$\$\$\$\$\$\$7: ?\$\$\$."
28806 echo "\$\$\$ ?7\$\$\$\$\$\$\$\$\$\$I .\$\$\$7 "
28807 echo "\$\$\$ .7\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$ :\$\$\$. "
28808 echo "\$\$\$ \$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$\$\$\$ .\$\$\$. "
28809 echo "\$\$\$ \$\$\$ 7\$\$\$7 .\$\$\$ .\$\$\$. "
28810 echo "\$\$\$\$ \$\$\$\$7 .\$\$\$. "
28811 echo "7\$\$\$7 7\$\$\$\$ 7\$\$\$ "
28812 echo " \$\$\$\$\$ \$\$\$ "
28813 echo " \$\$\$\$7. \$\$ (TM) "
28814 echo " \$\$\$\$\$\$\$. .7\$\$\$\$\$\$ \$\$ "
28815 echo " \$\$\$\$\$\$\$\$\$\$\$\$7\$\$\$\$\$\$\$\$\$.\$\$\$\$\$\$ "
28816 echo " \$\$\$\$\$\$\$\$\$\$\$\$\$\$\$\$. "
28819 echo "Package configured for: "
28820 echo " OS type : $PBX_OSTYPE"
28821 echo " Host CPU : $host_cpu"
28822 if test "x${crossCompile}" = xYes
; then
28824 echo " Cross Compilation = YES"
28825 echo " Target = ${host}"